1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for libXxf86vm 1.1.6. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxxf86vm/-/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 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195 test \$(( 1 + 1 )) = 2 || 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/lib/libxxf86vm/-/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='libXxf86vm' 617 PACKAGE_TARNAME='libXxf86vm' 618 PACKAGE_VERSION='1.1.6' 619 PACKAGE_STRING='libXxf86vm 1.1.6' 620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxxf86vm/-/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 XXF86VM_LIBS 661 XXF86VM_CFLAGS 662 XTMALLOC_ZERO_CFLAGS 663 XMALLOC_ZERO_CFLAGS 664 MALLOC_ZERO_CFLAGS 665 MAN_SUBSTS 666 XORG_MAN_PAGE 667 ADMIN_MAN_DIR 668 DRIVER_MAN_DIR 669 MISC_MAN_DIR 670 FILE_MAN_DIR 671 LIB_MAN_DIR 672 APP_MAN_DIR 673 ADMIN_MAN_SUFFIX 674 DRIVER_MAN_SUFFIX 675 MISC_MAN_SUFFIX 676 FILE_MAN_SUFFIX 677 LIB_MAN_SUFFIX 678 APP_MAN_SUFFIX 679 INSTALL_CMD 680 PKG_CONFIG_LIBDIR 681 PKG_CONFIG_PATH 682 PKG_CONFIG 683 CHANGELOG_CMD 684 STRICT_CFLAGS 685 CWARNFLAGS 686 BASE_CFLAGS 687 LT_SYS_LIBRARY_PATH 688 OTOOL64 689 OTOOL 690 LIPO 691 NMEDIT 692 DSYMUTIL 693 MANIFEST_TOOL 694 RANLIB 695 ac_ct_AR 696 AR 697 DLLTOOL 698 OBJDUMP 699 FILECMD 700 LN_S 701 NM 702 ac_ct_DUMPBIN 703 DUMPBIN 704 LD 705 FGREP 706 EGREP 707 GREP 708 SED 709 am__fastdepCC_FALSE 710 am__fastdepCC_TRUE 711 CCDEPMODE 712 am__nodep 713 AMDEPBACKSLASH 714 AMDEP_FALSE 715 AMDEP_TRUE 716 am__include 717 DEPDIR 718 OBJEXT 719 EXEEXT 720 ac_ct_CC 721 CPPFLAGS 722 LDFLAGS 723 CFLAGS 724 CC 725 host_os 726 host_vendor 727 host_cpu 728 host 729 build_os 730 build_vendor 731 build_cpu 732 build 733 LIBTOOL 734 am__xargs_n 735 am__rm_f_notfound 736 AM_BACKSLASH 737 AM_DEFAULT_VERBOSITY 738 AM_DEFAULT_V 739 AM_V 740 CSCOPE 741 ETAGS 742 CTAGS 743 am__untar 744 am__tar 745 AMTAR 746 am__leading_dot 747 SET_MAKE 748 AWK 749 mkdir_p 750 MKDIR_P 751 INSTALL_STRIP_PROGRAM 752 STRIP 753 install_sh 754 MAKEINFO 755 AUTOHEADER 756 AUTOMAKE 757 AUTOCONF 758 ACLOCAL 759 VERSION 760 PACKAGE 761 CYGPATH_W 762 am__isrc 763 INSTALL_DATA 764 INSTALL_SCRIPT 765 INSTALL_PROGRAM 766 target_alias 767 host_alias 768 build_alias 769 LIBS 770 ECHO_T 771 ECHO_N 772 ECHO_C 773 DEFS 774 mandir 775 localedir 776 libdir 777 psdir 778 pdfdir 779 dvidir 780 htmldir 781 infodir 782 docdir 783 oldincludedir 784 includedir 785 runstatedir 786 localstatedir 787 sharedstatedir 788 sysconfdir 789 datadir 790 datarootdir 791 libexecdir 792 sbindir 793 bindir 794 program_transform_name 795 prefix 796 exec_prefix 797 PACKAGE_URL 798 PACKAGE_BUGREPORT 799 PACKAGE_STRING 800 PACKAGE_VERSION 801 PACKAGE_TARNAME 802 PACKAGE_NAME 803 PATH_SEPARATOR 804 SHELL 805 am__quote' 806 ac_subst_files='' 807 ac_user_opts=' 808 enable_option_checking 809 enable_silent_rules 810 enable_shared 811 enable_static 812 enable_pic 813 with_pic 814 enable_fast_install 815 enable_aix_soname 816 with_aix_soname 817 enable_dependency_tracking 818 with_gnu_ld 819 with_sysroot 820 enable_libtool_lock 821 enable_selective_werror 822 enable_strict_compilation 823 enable_malloc0returnsnull 824 ' 825 ac_precious_vars='build_alias 826 host_alias 827 target_alias 828 CC 829 CFLAGS 830 LDFLAGS 831 LIBS 832 CPPFLAGS 833 LT_SYS_LIBRARY_PATH 834 PKG_CONFIG 835 PKG_CONFIG_PATH 836 PKG_CONFIG_LIBDIR 837 XXF86VM_CFLAGS 838 XXF86VM_LIBS' 839 840 841 # Initialize some variables set by options. 842 ac_init_help= 843 ac_init_version=false 844 ac_unrecognized_opts= 845 ac_unrecognized_sep= 846 # The variables have the same names as the options, with 847 # dashes changed to underlines. 848 cache_file=/dev/null 849 exec_prefix=NONE 850 no_create= 851 no_recursion= 852 prefix=NONE 853 program_prefix=NONE 854 program_suffix=NONE 855 program_transform_name=s,x,x, 856 silent= 857 site= 858 srcdir= 859 verbose= 860 x_includes=NONE 861 x_libraries=NONE 862 863 # Installation directory options. 864 # These are left unexpanded so users can "make install exec_prefix=/foo" 865 # and all the variables that are supposed to be based on exec_prefix 866 # by default will actually change. 867 # Use braces instead of parens because sh, perl, etc. also accept them. 868 # (The list follows the same order as the GNU Coding Standards.) 869 bindir='${exec_prefix}/bin' 870 sbindir='${exec_prefix}/sbin' 871 libexecdir='${exec_prefix}/libexec' 872 datarootdir='${prefix}/share' 873 datadir='${datarootdir}' 874 sysconfdir='${prefix}/etc' 875 sharedstatedir='${prefix}/com' 876 localstatedir='${prefix}/var' 877 runstatedir='${localstatedir}/run' 878 includedir='${prefix}/include' 879 oldincludedir='/usr/include' 880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 881 infodir='${datarootdir}/info' 882 htmldir='${docdir}' 883 dvidir='${docdir}' 884 pdfdir='${docdir}' 885 psdir='${docdir}' 886 libdir='${exec_prefix}/lib' 887 localedir='${datarootdir}/locale' 888 mandir='${datarootdir}/man' 889 890 ac_prev= 891 ac_dashdash= 892 for ac_option 893 do 894 # If the previous option needs an argument, assign it. 895 if test -n "$ac_prev"; then 896 eval $ac_prev=\$ac_option 897 ac_prev= 898 continue 899 fi 900 901 case $ac_option in 902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 903 *=) ac_optarg= ;; 904 *) ac_optarg=yes ;; 905 esac 906 907 case $ac_dashdash$ac_option in 908 --) 909 ac_dashdash=yes ;; 910 911 -bindir | --bindir | --bindi | --bind | --bin | --bi) 912 ac_prev=bindir ;; 913 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 914 bindir=$ac_optarg ;; 915 916 -build | --build | --buil | --bui | --bu) 917 ac_prev=build_alias ;; 918 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 919 build_alias=$ac_optarg ;; 920 921 -cache-file | --cache-file | --cache-fil | --cache-fi \ 922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 923 ac_prev=cache_file ;; 924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 926 cache_file=$ac_optarg ;; 927 928 --config-cache | -C) 929 cache_file=config.cache ;; 930 931 -datadir | --datadir | --datadi | --datad) 932 ac_prev=datadir ;; 933 -datadir=* | --datadir=* | --datadi=* | --datad=*) 934 datadir=$ac_optarg ;; 935 936 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 937 | --dataroo | --dataro | --datar) 938 ac_prev=datarootdir ;; 939 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 940 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 941 datarootdir=$ac_optarg ;; 942 943 -disable-* | --disable-*) 944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 945 # Reject names that are not valid shell variable names. 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 947 as_fn_error $? "invalid feature name: '$ac_useropt'" 948 ac_useropt_orig=$ac_useropt 949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 950 case $ac_user_opts in 951 *" 952 "enable_$ac_useropt" 953 "*) ;; 954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 955 ac_unrecognized_sep=', ';; 956 esac 957 eval enable_$ac_useropt=no ;; 958 959 -docdir | --docdir | --docdi | --doc | --do) 960 ac_prev=docdir ;; 961 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 962 docdir=$ac_optarg ;; 963 964 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 965 ac_prev=dvidir ;; 966 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 967 dvidir=$ac_optarg ;; 968 969 -enable-* | --enable-*) 970 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 971 # Reject names that are not valid shell variable names. 972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 973 as_fn_error $? "invalid feature name: '$ac_useropt'" 974 ac_useropt_orig=$ac_useropt 975 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 976 case $ac_user_opts in 977 *" 978 "enable_$ac_useropt" 979 "*) ;; 980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 981 ac_unrecognized_sep=', ';; 982 esac 983 eval enable_$ac_useropt=\$ac_optarg ;; 984 985 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 986 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 987 | --exec | --exe | --ex) 988 ac_prev=exec_prefix ;; 989 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 990 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 991 | --exec=* | --exe=* | --ex=*) 992 exec_prefix=$ac_optarg ;; 993 994 -gas | --gas | --ga | --g) 995 # Obsolete; use --with-gas. 996 with_gas=yes ;; 997 998 -help | --help | --hel | --he | -h) 999 ac_init_help=long ;; 1000 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1001 ac_init_help=recursive ;; 1002 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1003 ac_init_help=short ;; 1004 1005 -host | --host | --hos | --ho) 1006 ac_prev=host_alias ;; 1007 -host=* | --host=* | --hos=* | --ho=*) 1008 host_alias=$ac_optarg ;; 1009 1010 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1011 ac_prev=htmldir ;; 1012 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1013 | --ht=*) 1014 htmldir=$ac_optarg ;; 1015 1016 -includedir | --includedir | --includedi | --included | --include \ 1017 | --includ | --inclu | --incl | --inc) 1018 ac_prev=includedir ;; 1019 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1020 | --includ=* | --inclu=* | --incl=* | --inc=*) 1021 includedir=$ac_optarg ;; 1022 1023 -infodir | --infodir | --infodi | --infod | --info | --inf) 1024 ac_prev=infodir ;; 1025 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1026 infodir=$ac_optarg ;; 1027 1028 -libdir | --libdir | --libdi | --libd) 1029 ac_prev=libdir ;; 1030 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1031 libdir=$ac_optarg ;; 1032 1033 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1034 | --libexe | --libex | --libe) 1035 ac_prev=libexecdir ;; 1036 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1037 | --libexe=* | --libex=* | --libe=*) 1038 libexecdir=$ac_optarg ;; 1039 1040 -localedir | --localedir | --localedi | --localed | --locale) 1041 ac_prev=localedir ;; 1042 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1043 localedir=$ac_optarg ;; 1044 1045 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1046 | --localstate | --localstat | --localsta | --localst | --locals) 1047 ac_prev=localstatedir ;; 1048 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1049 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1050 localstatedir=$ac_optarg ;; 1051 1052 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1053 ac_prev=mandir ;; 1054 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1055 mandir=$ac_optarg ;; 1056 1057 -nfp | --nfp | --nf) 1058 # Obsolete; use --without-fp. 1059 with_fp=no ;; 1060 1061 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1062 | --no-cr | --no-c | -n) 1063 no_create=yes ;; 1064 1065 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1066 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1067 no_recursion=yes ;; 1068 1069 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1070 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1071 | --oldin | --oldi | --old | --ol | --o) 1072 ac_prev=oldincludedir ;; 1073 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1074 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1075 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1076 oldincludedir=$ac_optarg ;; 1077 1078 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1079 ac_prev=prefix ;; 1080 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1081 prefix=$ac_optarg ;; 1082 1083 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1084 | --program-pre | --program-pr | --program-p) 1085 ac_prev=program_prefix ;; 1086 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1087 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1088 program_prefix=$ac_optarg ;; 1089 1090 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1091 | --program-suf | --program-su | --program-s) 1092 ac_prev=program_suffix ;; 1093 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1094 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1095 program_suffix=$ac_optarg ;; 1096 1097 -program-transform-name | --program-transform-name \ 1098 | --program-transform-nam | --program-transform-na \ 1099 | --program-transform-n | --program-transform- \ 1100 | --program-transform | --program-transfor \ 1101 | --program-transfo | --program-transf \ 1102 | --program-trans | --program-tran \ 1103 | --progr-tra | --program-tr | --program-t) 1104 ac_prev=program_transform_name ;; 1105 -program-transform-name=* | --program-transform-name=* \ 1106 | --program-transform-nam=* | --program-transform-na=* \ 1107 | --program-transform-n=* | --program-transform-=* \ 1108 | --program-transform=* | --program-transfor=* \ 1109 | --program-transfo=* | --program-transf=* \ 1110 | --program-trans=* | --program-tran=* \ 1111 | --progr-tra=* | --program-tr=* | --program-t=*) 1112 program_transform_name=$ac_optarg ;; 1113 1114 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1115 ac_prev=pdfdir ;; 1116 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1117 pdfdir=$ac_optarg ;; 1118 1119 -psdir | --psdir | --psdi | --psd | --ps) 1120 ac_prev=psdir ;; 1121 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1122 psdir=$ac_optarg ;; 1123 1124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1125 | -silent | --silent | --silen | --sile | --sil) 1126 silent=yes ;; 1127 1128 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1129 | --runstate | --runstat | --runsta | --runst | --runs \ 1130 | --run | --ru | --r) 1131 ac_prev=runstatedir ;; 1132 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1133 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1134 | --run=* | --ru=* | --r=*) 1135 runstatedir=$ac_optarg ;; 1136 1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1138 ac_prev=sbindir ;; 1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1140 | --sbi=* | --sb=*) 1141 sbindir=$ac_optarg ;; 1142 1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1145 | --sharedst | --shareds | --shared | --share | --shar \ 1146 | --sha | --sh) 1147 ac_prev=sharedstatedir ;; 1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1151 | --sha=* | --sh=*) 1152 sharedstatedir=$ac_optarg ;; 1153 1154 -site | --site | --sit) 1155 ac_prev=site ;; 1156 -site=* | --site=* | --sit=*) 1157 site=$ac_optarg ;; 1158 1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1160 ac_prev=srcdir ;; 1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1162 srcdir=$ac_optarg ;; 1163 1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1165 | --syscon | --sysco | --sysc | --sys | --sy) 1166 ac_prev=sysconfdir ;; 1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1169 sysconfdir=$ac_optarg ;; 1170 1171 -target | --target | --targe | --targ | --tar | --ta | --t) 1172 ac_prev=target_alias ;; 1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1174 target_alias=$ac_optarg ;; 1175 1176 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1177 verbose=yes ;; 1178 1179 -version | --version | --versio | --versi | --vers | -V) 1180 ac_init_version=: ;; 1181 1182 -with-* | --with-*) 1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1184 # Reject names that are not valid shell variable names. 1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1186 as_fn_error $? "invalid package name: '$ac_useropt'" 1187 ac_useropt_orig=$ac_useropt 1188 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1189 case $ac_user_opts in 1190 *" 1191 "with_$ac_useropt" 1192 "*) ;; 1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1194 ac_unrecognized_sep=', ';; 1195 esac 1196 eval with_$ac_useropt=\$ac_optarg ;; 1197 1198 -without-* | --without-*) 1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1200 # Reject names that are not valid shell variable names. 1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1202 as_fn_error $? "invalid package name: '$ac_useropt'" 1203 ac_useropt_orig=$ac_useropt 1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1205 case $ac_user_opts in 1206 *" 1207 "with_$ac_useropt" 1208 "*) ;; 1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1210 ac_unrecognized_sep=', ';; 1211 esac 1212 eval with_$ac_useropt=no ;; 1213 1214 --x) 1215 # Obsolete; use --with-x. 1216 with_x=yes ;; 1217 1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1219 | --x-incl | --x-inc | --x-in | --x-i) 1220 ac_prev=x_includes ;; 1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1223 x_includes=$ac_optarg ;; 1224 1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1227 ac_prev=x_libraries ;; 1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1230 x_libraries=$ac_optarg ;; 1231 1232 -*) as_fn_error $? "unrecognized option: '$ac_option' 1233 Try '$0 --help' for more information" 1234 ;; 1235 1236 *=*) 1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1238 # Reject names that are not valid shell variable names. 1239 case $ac_envvar in #( 1240 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1241 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1242 esac 1243 eval $ac_envvar=\$ac_optarg 1244 export $ac_envvar ;; 1245 1246 *) 1247 # FIXME: should be removed in autoconf 3.0. 1248 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1250 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1251 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1252 ;; 1253 1254 esac 1255 done 1256 1257 if test -n "$ac_prev"; then 1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1259 as_fn_error $? "missing argument to $ac_option" 1260 fi 1261 1262 if test -n "$ac_unrecognized_opts"; then 1263 case $enable_option_checking in 1264 no) ;; 1265 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1266 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1267 esac 1268 fi 1269 1270 # Check all directory arguments for consistency. 1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1272 datadir sysconfdir sharedstatedir localstatedir includedir \ 1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1274 libdir localedir mandir runstatedir 1275 do 1276 eval ac_val=\$$ac_var 1277 # Remove trailing slashes. 1278 case $ac_val in 1279 */ ) 1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1281 eval $ac_var=\$ac_val;; 1282 esac 1283 # Be sure to have absolute directory names. 1284 case $ac_val in 1285 [\\/$]* | ?:[\\/]* ) continue;; 1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1287 esac 1288 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1289 done 1290 1291 # There might be people who depend on the old broken behavior: '$host' 1292 # used to hold the argument of --host etc. 1293 # FIXME: To remove some day. 1294 build=$build_alias 1295 host=$host_alias 1296 target=$target_alias 1297 1298 # FIXME: To remove some day. 1299 if test "x$host_alias" != x; then 1300 if test "x$build_alias" = x; then 1301 cross_compiling=maybe 1302 elif test "x$build_alias" != "x$host_alias"; then 1303 cross_compiling=yes 1304 fi 1305 fi 1306 1307 ac_tool_prefix= 1308 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1309 1310 test "$silent" = yes && exec 6>/dev/null 1311 1312 1313 ac_pwd=`pwd` && test -n "$ac_pwd" && 1314 ac_ls_di=`ls -di .` && 1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1316 as_fn_error $? "working directory cannot be determined" 1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1318 as_fn_error $? "pwd does not report name of working directory" 1319 1320 1321 # Find the source files, if location was not specified. 1322 if test -z "$srcdir"; then 1323 ac_srcdir_defaulted=yes 1324 # Try the directory containing this script, then the parent directory. 1325 ac_confdir=`$as_dirname -- "$as_myself" || 1326 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1327 X"$as_myself" : 'X\(//\)[^/]' \| \ 1328 X"$as_myself" : 'X\(//\)$' \| \ 1329 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1330 printf "%s\n" X"$as_myself" | 1331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1332 s//\1/ 1333 q 1334 } 1335 /^X\(\/\/\)[^/].*/{ 1336 s//\1/ 1337 q 1338 } 1339 /^X\(\/\/\)$/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\).*/{ 1344 s//\1/ 1345 q 1346 } 1347 s/.*/./; q'` 1348 srcdir=$ac_confdir 1349 if test ! -r "$srcdir/$ac_unique_file"; then 1350 srcdir=.. 1351 fi 1352 else 1353 ac_srcdir_defaulted=no 1354 fi 1355 if test ! -r "$srcdir/$ac_unique_file"; then 1356 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1357 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1358 fi 1359 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1360 ac_abs_confdir=`( 1361 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1362 pwd)` 1363 # When building in place, set srcdir=. 1364 if test "$ac_abs_confdir" = "$ac_pwd"; then 1365 srcdir=. 1366 fi 1367 # Remove unnecessary trailing slashes from srcdir. 1368 # Double slashes in file names in object file debugging info 1369 # mess up M-x gdb in Emacs. 1370 case $srcdir in 1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1372 esac 1373 for ac_var in $ac_precious_vars; do 1374 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1375 eval ac_env_${ac_var}_value=\$${ac_var} 1376 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1377 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1378 done 1379 1380 # 1381 # Report the --help message. 1382 # 1383 if test "$ac_init_help" = "long"; then 1384 # Omit some internal or obsolete options to make the list less imposing. 1385 # This message is too long to be a string in the A/UX 3.1 sh. 1386 cat <<_ACEOF 1387 'configure' configures libXxf86vm 1.1.6 to adapt to many kinds of systems. 1388 1389 Usage: $0 [OPTION]... [VAR=VALUE]... 1390 1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1392 VAR=VALUE. See below for descriptions of some of the useful variables. 1393 1394 Defaults for the options are specified in brackets. 1395 1396 Configuration: 1397 -h, --help display this help and exit 1398 --help=short display options specific to this package 1399 --help=recursive display the short help of all the included packages 1400 -V, --version display version information and exit 1401 -q, --quiet, --silent do not print 'checking ...' messages 1402 --cache-file=FILE cache test results in FILE [disabled] 1403 -C, --config-cache alias for '--cache-file=config.cache' 1404 -n, --no-create do not create output files 1405 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1406 1407 Installation directories: 1408 --prefix=PREFIX install architecture-independent files in PREFIX 1409 [$ac_default_prefix] 1410 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1411 [PREFIX] 1412 1413 By default, 'make install' will install all the files in 1414 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1415 an installation prefix other than '$ac_default_prefix' using '--prefix', 1416 for instance '--prefix=\$HOME'. 1417 1418 For better control, use the options below. 1419 1420 Fine tuning of the installation directories: 1421 --bindir=DIR user executables [EPREFIX/bin] 1422 --sbindir=DIR system admin executables [EPREFIX/sbin] 1423 --libexecdir=DIR program executables [EPREFIX/libexec] 1424 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1425 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1426 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1427 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1428 --libdir=DIR object code libraries [EPREFIX/lib] 1429 --includedir=DIR C header files [PREFIX/include] 1430 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1433 --infodir=DIR info documentation [DATAROOTDIR/info] 1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1435 --mandir=DIR man documentation [DATAROOTDIR/man] 1436 --docdir=DIR documentation root [DATAROOTDIR/doc/libXxf86vm] 1437 --htmldir=DIR html documentation [DOCDIR] 1438 --dvidir=DIR dvi documentation [DOCDIR] 1439 --pdfdir=DIR pdf documentation [DOCDIR] 1440 --psdir=DIR ps documentation [DOCDIR] 1441 _ACEOF 1442 1443 cat <<\_ACEOF 1444 1445 Program names: 1446 --program-prefix=PREFIX prepend PREFIX to installed program names 1447 --program-suffix=SUFFIX append SUFFIX to installed program names 1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1449 1450 System types: 1451 --build=BUILD configure for building on BUILD [guessed] 1452 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1453 _ACEOF 1454 fi 1455 1456 if test -n "$ac_init_help"; then 1457 case $ac_init_help in 1458 short | recursive ) echo "Configuration of libXxf86vm 1.1.6:";; 1459 esac 1460 cat <<\_ACEOF 1461 1462 Optional Features: 1463 --disable-option-checking ignore unrecognized --enable/--with options 1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1466 --enable-silent-rules less verbose build output (undo: "make V=1") 1467 --disable-silent-rules verbose build output (undo: "make V=0") 1468 --enable-shared[=PKGS] build shared libraries [default=yes] 1469 --enable-static[=PKGS] build static libraries [default=yes] 1470 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1471 both] 1472 --enable-fast-install[=PKGS] 1473 optimize for fast installation [default=yes] 1474 --enable-aix-soname=aix|svr4|both 1475 shared library versioning (aka "SONAME") variant to 1476 provide on AIX, [default=aix]. 1477 --enable-dependency-tracking 1478 do not reject slow dependency extractors 1479 --disable-dependency-tracking 1480 speeds up one-time build 1481 --disable-libtool-lock avoid locking (might break parallel builds) 1482 --disable-selective-werror 1483 Turn off selective compiler errors. (default: 1484 enabled) 1485 --enable-strict-compilation 1486 Enable all warnings from compiler and make them 1487 errors (default: disabled) 1488 --enable-malloc0returnsnull 1489 assume malloc(0) can return NULL (default: yes) 1490 1491 Optional Packages: 1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1494 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1495 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1496 compiler's sysroot if not specified). 1497 1498 Some influential environment variables: 1499 CC C compiler command 1500 CFLAGS C compiler flags 1501 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1502 nonstandard directory <lib dir> 1503 LIBS libraries to pass to the linker, e.g. -l<library> 1504 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1505 you have headers in a nonstandard directory <include dir> 1506 LT_SYS_LIBRARY_PATH 1507 User-defined run-time library search path. 1508 PKG_CONFIG path to pkg-config utility 1509 PKG_CONFIG_PATH 1510 directories to add to pkg-config's search path 1511 PKG_CONFIG_LIBDIR 1512 path overriding pkg-config's built-in search path 1513 XXF86VM_CFLAGS 1514 C compiler flags for XXF86VM, overriding pkg-config 1515 XXF86VM_LIBS 1516 linker flags for XXF86VM, overriding pkg-config 1517 1518 Use these variables to override the choices made by 'configure' or to help 1519 it to find libraries and programs with nonstandard names/locations. 1520 1521 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxxf86vm/-/issues>. 1522 _ACEOF 1523 ac_status=$? 1524 fi 1525 1526 if test "$ac_init_help" = "recursive"; then 1527 # If there are subdirs, report their specific --help. 1528 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1529 test -d "$ac_dir" || 1530 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1531 continue 1532 ac_builddir=. 1533 1534 case "$ac_dir" in 1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1536 *) 1537 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1538 # A ".." for each directory in $ac_dir_suffix. 1539 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1540 case $ac_top_builddir_sub in 1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1543 esac ;; 1544 esac 1545 ac_abs_top_builddir=$ac_pwd 1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1547 # for backward compatibility: 1548 ac_top_builddir=$ac_top_build_prefix 1549 1550 case $srcdir in 1551 .) # We are building in place. 1552 ac_srcdir=. 1553 ac_top_srcdir=$ac_top_builddir_sub 1554 ac_abs_top_srcdir=$ac_pwd ;; 1555 [\\/]* | ?:[\\/]* ) # Absolute name. 1556 ac_srcdir=$srcdir$ac_dir_suffix; 1557 ac_top_srcdir=$srcdir 1558 ac_abs_top_srcdir=$srcdir ;; 1559 *) # Relative name. 1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1561 ac_top_srcdir=$ac_top_build_prefix$srcdir 1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1563 esac 1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1565 1566 cd "$ac_dir" || { ac_status=$?; continue; } 1567 # Check for configure.gnu first; this name is used for a wrapper for 1568 # Metaconfig's "Configure" on case-insensitive file systems. 1569 if test -f "$ac_srcdir/configure.gnu"; then 1570 echo && 1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1572 elif test -f "$ac_srcdir/configure"; then 1573 echo && 1574 $SHELL "$ac_srcdir/configure" --help=recursive 1575 else 1576 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1577 fi || ac_status=$? 1578 cd "$ac_pwd" || { ac_status=$?; break; } 1579 done 1580 fi 1581 1582 test -n "$ac_init_help" && exit $ac_status 1583 if $ac_init_version; then 1584 cat <<\_ACEOF 1585 libXxf86vm configure 1.1.6 1586 generated by GNU Autoconf 2.72 1587 1588 Copyright (C) 2023 Free Software Foundation, Inc. 1589 This configure script is free software; the Free Software Foundation 1590 gives unlimited permission to copy, distribute and modify it. 1591 _ACEOF 1592 exit 1593 fi 1594 1595 ## ------------------------ ## 1596 ## Autoconf initialization. ## 1597 ## ------------------------ ## 1598 1599 # ac_fn_c_try_compile LINENO 1600 # -------------------------- 1601 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1602 ac_fn_c_try_compile () 1603 { 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 rm -f conftest.$ac_objext conftest.beam 1606 if { { ac_try="$ac_compile" 1607 case "(($ac_try" in 1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1609 *) ac_try_echo=$ac_try;; 1610 esac 1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1612 printf "%s\n" "$ac_try_echo"; } >&5 1613 (eval "$ac_compile") 2>conftest.err 1614 ac_status=$? 1615 if test -s conftest.err; then 1616 grep -v '^ *+' conftest.err >conftest.er1 1617 cat conftest.er1 >&5 1618 mv -f conftest.er1 conftest.err 1619 fi 1620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1621 test $ac_status = 0; } && { 1622 test -z "$ac_c_werror_flag" || 1623 test ! -s conftest.err 1624 } && test -s conftest.$ac_objext 1625 then : 1626 ac_retval=0 1627 else case e in #( 1628 e) printf "%s\n" "$as_me: failed program was:" >&5 1629 sed 's/^/| /' conftest.$ac_ext >&5 1630 1631 ac_retval=1 ;; 1632 esac 1633 fi 1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1635 as_fn_set_status $ac_retval 1636 1637 } # ac_fn_c_try_compile 1638 1639 # ac_fn_c_try_link LINENO 1640 # ----------------------- 1641 # Try to link conftest.$ac_ext, and return whether this succeeded. 1642 ac_fn_c_try_link () 1643 { 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1646 if { { ac_try="$ac_link" 1647 case "(($ac_try" in 1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1649 *) ac_try_echo=$ac_try;; 1650 esac 1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1652 printf "%s\n" "$ac_try_echo"; } >&5 1653 (eval "$ac_link") 2>conftest.err 1654 ac_status=$? 1655 if test -s conftest.err; then 1656 grep -v '^ *+' conftest.err >conftest.er1 1657 cat conftest.er1 >&5 1658 mv -f conftest.er1 conftest.err 1659 fi 1660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1661 test $ac_status = 0; } && { 1662 test -z "$ac_c_werror_flag" || 1663 test ! -s conftest.err 1664 } && test -s conftest$ac_exeext && { 1665 test "$cross_compiling" = yes || 1666 test -x conftest$ac_exeext 1667 } 1668 then : 1669 ac_retval=0 1670 else case e in #( 1671 e) printf "%s\n" "$as_me: failed program was:" >&5 1672 sed 's/^/| /' conftest.$ac_ext >&5 1673 1674 ac_retval=1 ;; 1675 esac 1676 fi 1677 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1678 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1679 # interfere with the next link command; also delete a directory that is 1680 # left behind by Apple's compiler. We do this before executing the actions. 1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1683 as_fn_set_status $ac_retval 1684 1685 } # ac_fn_c_try_link 1686 1687 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1688 # ------------------------------------------------------- 1689 # Tests whether HEADER exists and can be compiled using the include files in 1690 # INCLUDES, setting the cache variable VAR accordingly. 1691 ac_fn_c_check_header_compile () 1692 { 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1695 printf %s "checking for $2... " >&6; } 1696 if eval test \${$3+y} 1697 then : 1698 printf %s "(cached) " >&6 1699 else case e in #( 1700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1701 /* end confdefs.h. */ 1702 $4 1703 #include <$2> 1704 _ACEOF 1705 if ac_fn_c_try_compile "$LINENO" 1706 then : 1707 eval "$3=yes" 1708 else case e in #( 1709 e) eval "$3=no" ;; 1710 esac 1711 fi 1712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1713 esac 1714 fi 1715 eval ac_res=\$$3 1716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1717 printf "%s\n" "$ac_res" >&6; } 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 1720 } # ac_fn_c_check_header_compile 1721 1722 # ac_fn_c_check_func LINENO FUNC VAR 1723 # ---------------------------------- 1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1725 ac_fn_c_check_func () 1726 { 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1729 printf %s "checking for $2... " >&6; } 1730 if eval test \${$3+y} 1731 then : 1732 printf %s "(cached) " >&6 1733 else case e in #( 1734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1735 /* end confdefs.h. */ 1736 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1737 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1738 #define $2 innocuous_$2 1739 1740 /* System header to define __stub macros and hopefully few prototypes, 1741 which can conflict with char $2 (void); below. */ 1742 1743 #include <limits.h> 1744 #undef $2 1745 1746 /* Override any GCC internal prototype to avoid an error. 1747 Use char because int might match the return type of a GCC 1748 builtin and then its argument prototype would still apply. */ 1749 #ifdef __cplusplus 1750 extern "C" 1751 #endif 1752 char $2 (void); 1753 /* The GNU C library defines this for functions which it implements 1754 to always fail with ENOSYS. Some functions are actually named 1755 something starting with __ and the normal name is an alias. */ 1756 #if defined __stub_$2 || defined __stub___$2 1757 choke me 1758 #endif 1759 1760 int 1761 main (void) 1762 { 1763 return $2 (); 1764 ; 1765 return 0; 1766 } 1767 _ACEOF 1768 if ac_fn_c_try_link "$LINENO" 1769 then : 1770 eval "$3=yes" 1771 else case e in #( 1772 e) eval "$3=no" ;; 1773 esac 1774 fi 1775 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1776 conftest$ac_exeext conftest.$ac_ext ;; 1777 esac 1778 fi 1779 eval ac_res=\$$3 1780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1781 printf "%s\n" "$ac_res" >&6; } 1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1783 1784 } # ac_fn_c_check_func 1785 1786 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1787 # ------------------------------------------------------------------ 1788 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1789 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1790 ac_fn_check_decl () 1791 { 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 as_decl_name=`echo $2|sed 's/ *(.*//'` 1794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1795 printf %s "checking whether $as_decl_name is declared... " >&6; } 1796 if eval test \${$3+y} 1797 then : 1798 printf %s "(cached) " >&6 1799 else case e in #( 1800 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1801 eval ac_save_FLAGS=\$$6 1802 as_fn_append $6 " $5" 1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1804 /* end confdefs.h. */ 1805 $4 1806 int 1807 main (void) 1808 { 1809 #ifndef $as_decl_name 1810 #ifdef __cplusplus 1811 (void) $as_decl_use; 1812 #else 1813 (void) $as_decl_name; 1814 #endif 1815 #endif 1816 1817 ; 1818 return 0; 1819 } 1820 _ACEOF 1821 if ac_fn_c_try_compile "$LINENO" 1822 then : 1823 eval "$3=yes" 1824 else case e in #( 1825 e) eval "$3=no" ;; 1826 esac 1827 fi 1828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1829 eval $6=\$ac_save_FLAGS 1830 ;; 1831 esac 1832 fi 1833 eval ac_res=\$$3 1834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1835 printf "%s\n" "$ac_res" >&6; } 1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1837 1838 } # ac_fn_check_decl 1839 ac_configure_args_raw= 1840 for ac_arg 1841 do 1842 case $ac_arg in 1843 *\'*) 1844 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1845 esac 1846 as_fn_append ac_configure_args_raw " '$ac_arg'" 1847 done 1848 1849 case $ac_configure_args_raw in 1850 *$as_nl*) 1851 ac_safe_unquote= ;; 1852 *) 1853 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1854 ac_unsafe_a="$ac_unsafe_z#~" 1855 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1856 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1857 esac 1858 1859 cat >config.log <<_ACEOF 1860 This file contains any messages produced by compilers while 1861 running configure, to aid debugging if configure makes a mistake. 1862 1863 It was created by libXxf86vm $as_me 1.1.6, which was 1864 generated by GNU Autoconf 2.72. Invocation command line was 1865 1866 $ $0$ac_configure_args_raw 1867 1868 _ACEOF 1869 exec 5>>config.log 1870 { 1871 cat <<_ASUNAME 1872 ## --------- ## 1873 ## Platform. ## 1874 ## --------- ## 1875 1876 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1877 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1878 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1879 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1880 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1881 1882 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1883 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1884 1885 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1886 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1887 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1888 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1889 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1890 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1891 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1892 1893 _ASUNAME 1894 1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1896 for as_dir in $PATH 1897 do 1898 IFS=$as_save_IFS 1899 case $as_dir in #((( 1900 '') as_dir=./ ;; 1901 */) ;; 1902 *) as_dir=$as_dir/ ;; 1903 esac 1904 printf "%s\n" "PATH: $as_dir" 1905 done 1906 IFS=$as_save_IFS 1907 1908 } >&5 1909 1910 cat >&5 <<_ACEOF 1911 1912 1913 ## ----------- ## 1914 ## Core tests. ## 1915 ## ----------- ## 1916 1917 _ACEOF 1918 1919 1920 # Keep a trace of the command line. 1921 # Strip out --no-create and --no-recursion so they do not pile up. 1922 # Strip out --silent because we don't want to record it for future runs. 1923 # Also quote any args containing shell meta-characters. 1924 # Make two passes to allow for proper duplicate-argument suppression. 1925 ac_configure_args= 1926 ac_configure_args0= 1927 ac_configure_args1= 1928 ac_must_keep_next=false 1929 for ac_pass in 1 2 1930 do 1931 for ac_arg 1932 do 1933 case $ac_arg in 1934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1936 | -silent | --silent | --silen | --sile | --sil) 1937 continue ;; 1938 *\'*) 1939 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1940 esac 1941 case $ac_pass in 1942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1943 2) 1944 as_fn_append ac_configure_args1 " '$ac_arg'" 1945 if test $ac_must_keep_next = true; then 1946 ac_must_keep_next=false # Got value, back to normal. 1947 else 1948 case $ac_arg in 1949 *=* | --config-cache | -C | -disable-* | --disable-* \ 1950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1952 | -with-* | --with-* | -without-* | --without-* | --x) 1953 case "$ac_configure_args0 " in 1954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1955 esac 1956 ;; 1957 -* ) ac_must_keep_next=true ;; 1958 esac 1959 fi 1960 as_fn_append ac_configure_args " '$ac_arg'" 1961 ;; 1962 esac 1963 done 1964 done 1965 { ac_configure_args0=; unset ac_configure_args0;} 1966 { ac_configure_args1=; unset ac_configure_args1;} 1967 1968 # When interrupted or exit'd, cleanup temporary files, and complete 1969 # config.log. We remove comments because anyway the quotes in there 1970 # would cause problems or look ugly. 1971 # WARNING: Use '\'' to represent an apostrophe within the trap. 1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1973 trap 'exit_status=$? 1974 # Sanitize IFS. 1975 IFS=" "" $as_nl" 1976 # Save into config.log some information that might help in debugging. 1977 { 1978 echo 1979 1980 printf "%s\n" "## ---------------- ## 1981 ## Cache variables. ## 1982 ## ---------------- ##" 1983 echo 1984 # The following way of writing the cache mishandles newlines in values, 1985 ( 1986 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1987 eval ac_val=\$$ac_var 1988 case $ac_val in #( 1989 *${as_nl}*) 1990 case $ac_var in #( 1991 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1992 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1993 esac 1994 case $ac_var in #( 1995 _ | IFS | as_nl) ;; #( 1996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1997 *) { eval $ac_var=; unset $ac_var;} ;; 1998 esac ;; 1999 esac 2000 done 2001 (set) 2>&1 | 2002 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2003 *${as_nl}ac_space=\ *) 2004 sed -n \ 2005 "s/'\''/'\''\\\\'\'''\''/g; 2006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2007 ;; #( 2008 *) 2009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2010 ;; 2011 esac | 2012 sort 2013 ) 2014 echo 2015 2016 printf "%s\n" "## ----------------- ## 2017 ## Output variables. ## 2018 ## ----------------- ##" 2019 echo 2020 for ac_var in $ac_subst_vars 2021 do 2022 eval ac_val=\$$ac_var 2023 case $ac_val in 2024 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2025 esac 2026 printf "%s\n" "$ac_var='\''$ac_val'\''" 2027 done | sort 2028 echo 2029 2030 if test -n "$ac_subst_files"; then 2031 printf "%s\n" "## ------------------- ## 2032 ## File substitutions. ## 2033 ## ------------------- ##" 2034 echo 2035 for ac_var in $ac_subst_files 2036 do 2037 eval ac_val=\$$ac_var 2038 case $ac_val in 2039 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2040 esac 2041 printf "%s\n" "$ac_var='\''$ac_val'\''" 2042 done | sort 2043 echo 2044 fi 2045 2046 if test -s confdefs.h; then 2047 printf "%s\n" "## ----------- ## 2048 ## confdefs.h. ## 2049 ## ----------- ##" 2050 echo 2051 cat confdefs.h 2052 echo 2053 fi 2054 test "$ac_signal" != 0 && 2055 printf "%s\n" "$as_me: caught signal $ac_signal" 2056 printf "%s\n" "$as_me: exit $exit_status" 2057 } >&5 2058 rm -f core *.core core.conftest.* && 2059 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2060 exit $exit_status 2061 ' 0 2062 for ac_signal in 1 2 13 15; do 2063 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2064 done 2065 ac_signal=0 2066 2067 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2068 rm -f -r conftest* confdefs.h 2069 2070 printf "%s\n" "/* confdefs.h */" > confdefs.h 2071 2072 # Predefined preprocessor variables. 2073 2074 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2075 2076 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2077 2078 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2079 2080 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2081 2082 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2083 2084 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2085 2086 2087 # Let the site file select an alternate cache file if it wants to. 2088 # Prefer an explicitly selected file to automatically selected ones. 2089 if test -n "$CONFIG_SITE"; then 2090 ac_site_files="$CONFIG_SITE" 2091 elif test "x$prefix" != xNONE; then 2092 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2093 else 2094 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2095 fi 2096 2097 for ac_site_file in $ac_site_files 2098 do 2099 case $ac_site_file in #( 2100 */*) : 2101 ;; #( 2102 *) : 2103 ac_site_file=./$ac_site_file ;; 2104 esac 2105 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2107 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2108 sed 's/^/| /' "$ac_site_file" >&5 2109 . "$ac_site_file" \ 2110 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2111 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2112 as_fn_error $? "failed to load site script $ac_site_file 2113 See 'config.log' for more details" "$LINENO" 5; } 2114 fi 2115 done 2116 2117 if test -r "$cache_file"; then 2118 # Some versions of bash will fail to source /dev/null (special files 2119 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2120 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2122 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2123 case $cache_file in 2124 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2125 *) . "./$cache_file";; 2126 esac 2127 fi 2128 else 2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2130 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2131 >$cache_file 2132 fi 2133 2134 # Test code for whether the C compiler supports C89 (global declarations) 2135 ac_c_conftest_c89_globals=' 2136 /* Does the compiler advertise C89 conformance? 2137 Do not test the value of __STDC__, because some compilers set it to 0 2138 while being otherwise adequately conformant. */ 2139 #if !defined __STDC__ 2140 # error "Compiler does not advertise C89 conformance" 2141 #endif 2142 2143 #include <stddef.h> 2144 #include <stdarg.h> 2145 struct stat; 2146 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2147 struct buf { int x; }; 2148 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2149 static char *e (char **p, int i) 2150 { 2151 return p[i]; 2152 } 2153 static char *f (char * (*g) (char **, int), char **p, ...) 2154 { 2155 char *s; 2156 va_list v; 2157 va_start (v,p); 2158 s = g (p, va_arg (v,int)); 2159 va_end (v); 2160 return s; 2161 } 2162 2163 /* C89 style stringification. */ 2164 #define noexpand_stringify(a) #a 2165 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2166 2167 /* C89 style token pasting. Exercises some of the corner cases that 2168 e.g. old MSVC gets wrong, but not very hard. */ 2169 #define noexpand_concat(a,b) a##b 2170 #define expand_concat(a,b) noexpand_concat(a,b) 2171 extern int vA; 2172 extern int vbee; 2173 #define aye A 2174 #define bee B 2175 int *pvA = &expand_concat(v,aye); 2176 int *pvbee = &noexpand_concat(v,bee); 2177 2178 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2179 function prototypes and stuff, but not \xHH hex character constants. 2180 These do not provoke an error unfortunately, instead are silently treated 2181 as an "x". The following induces an error, until -std is added to get 2182 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2183 array size at least. It is necessary to write \x00 == 0 to get something 2184 that is true only with -std. */ 2185 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2186 2187 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2188 inside strings and character constants. */ 2189 #define FOO(x) '\''x'\'' 2190 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2191 2192 int test (int i, double x); 2193 struct s1 {int (*f) (int a);}; 2194 struct s2 {int (*f) (double a);}; 2195 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2196 int, int);' 2197 2198 # Test code for whether the C compiler supports C89 (body of main). 2199 ac_c_conftest_c89_main=' 2200 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2201 ' 2202 2203 # Test code for whether the C compiler supports C99 (global declarations) 2204 ac_c_conftest_c99_globals=' 2205 /* Does the compiler advertise C99 conformance? */ 2206 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2207 # error "Compiler does not advertise C99 conformance" 2208 #endif 2209 2210 // See if C++-style comments work. 2211 2212 #include <stdbool.h> 2213 extern int puts (const char *); 2214 extern int printf (const char *, ...); 2215 extern int dprintf (int, const char *, ...); 2216 extern void *malloc (size_t); 2217 extern void free (void *); 2218 2219 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2220 // dprintf is used instead of fprintf to avoid needing to declare 2221 // FILE and stderr. 2222 #define debug(...) dprintf (2, __VA_ARGS__) 2223 #define showlist(...) puts (#__VA_ARGS__) 2224 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2225 static void 2226 test_varargs_macros (void) 2227 { 2228 int x = 1234; 2229 int y = 5678; 2230 debug ("Flag"); 2231 debug ("X = %d\n", x); 2232 showlist (The first, second, and third items.); 2233 report (x>y, "x is %d but y is %d", x, y); 2234 } 2235 2236 // Check long long types. 2237 #define BIG64 18446744073709551615ull 2238 #define BIG32 4294967295ul 2239 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2240 #if !BIG_OK 2241 #error "your preprocessor is broken" 2242 #endif 2243 #if BIG_OK 2244 #else 2245 #error "your preprocessor is broken" 2246 #endif 2247 static long long int bignum = -9223372036854775807LL; 2248 static unsigned long long int ubignum = BIG64; 2249 2250 struct incomplete_array 2251 { 2252 int datasize; 2253 double data[]; 2254 }; 2255 2256 struct named_init { 2257 int number; 2258 const wchar_t *name; 2259 double average; 2260 }; 2261 2262 typedef const char *ccp; 2263 2264 static inline int 2265 test_restrict (ccp restrict text) 2266 { 2267 // Iterate through items via the restricted pointer. 2268 // Also check for declarations in for loops. 2269 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2270 continue; 2271 return 0; 2272 } 2273 2274 // Check varargs and va_copy. 2275 static bool 2276 test_varargs (const char *format, ...) 2277 { 2278 va_list args; 2279 va_start (args, format); 2280 va_list args_copy; 2281 va_copy (args_copy, args); 2282 2283 const char *str = ""; 2284 int number = 0; 2285 float fnumber = 0; 2286 2287 while (*format) 2288 { 2289 switch (*format++) 2290 { 2291 case '\''s'\'': // string 2292 str = va_arg (args_copy, const char *); 2293 break; 2294 case '\''d'\'': // int 2295 number = va_arg (args_copy, int); 2296 break; 2297 case '\''f'\'': // float 2298 fnumber = va_arg (args_copy, double); 2299 break; 2300 default: 2301 break; 2302 } 2303 } 2304 va_end (args_copy); 2305 va_end (args); 2306 2307 return *str && number && fnumber; 2308 } 2309 ' 2310 2311 # Test code for whether the C compiler supports C99 (body of main). 2312 ac_c_conftest_c99_main=' 2313 // Check bool. 2314 _Bool success = false; 2315 success |= (argc != 0); 2316 2317 // Check restrict. 2318 if (test_restrict ("String literal") == 0) 2319 success = true; 2320 char *restrict newvar = "Another string"; 2321 2322 // Check varargs. 2323 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2324 test_varargs_macros (); 2325 2326 // Check flexible array members. 2327 struct incomplete_array *ia = 2328 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2329 ia->datasize = 10; 2330 for (int i = 0; i < ia->datasize; ++i) 2331 ia->data[i] = i * 1.234; 2332 // Work around memory leak warnings. 2333 free (ia); 2334 2335 // Check named initializers. 2336 struct named_init ni = { 2337 .number = 34, 2338 .name = L"Test wide string", 2339 .average = 543.34343, 2340 }; 2341 2342 ni.number = 58; 2343 2344 int dynamic_array[ni.number]; 2345 dynamic_array[0] = argv[0][0]; 2346 dynamic_array[ni.number - 1] = 543; 2347 2348 // work around unused variable warnings 2349 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2350 || dynamic_array[ni.number - 1] != 543); 2351 ' 2352 2353 # Test code for whether the C compiler supports C11 (global declarations) 2354 ac_c_conftest_c11_globals=' 2355 /* Does the compiler advertise C11 conformance? */ 2356 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2357 # error "Compiler does not advertise C11 conformance" 2358 #endif 2359 2360 // Check _Alignas. 2361 char _Alignas (double) aligned_as_double; 2362 char _Alignas (0) no_special_alignment; 2363 extern char aligned_as_int; 2364 char _Alignas (0) _Alignas (int) aligned_as_int; 2365 2366 // Check _Alignof. 2367 enum 2368 { 2369 int_alignment = _Alignof (int), 2370 int_array_alignment = _Alignof (int[100]), 2371 char_alignment = _Alignof (char) 2372 }; 2373 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2374 2375 // Check _Noreturn. 2376 int _Noreturn does_not_return (void) { for (;;) continue; } 2377 2378 // Check _Static_assert. 2379 struct test_static_assert 2380 { 2381 int x; 2382 _Static_assert (sizeof (int) <= sizeof (long int), 2383 "_Static_assert does not work in struct"); 2384 long int y; 2385 }; 2386 2387 // Check UTF-8 literals. 2388 #define u8 syntax error! 2389 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2390 2391 // Check duplicate typedefs. 2392 typedef long *long_ptr; 2393 typedef long int *long_ptr; 2394 typedef long_ptr long_ptr; 2395 2396 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2397 struct anonymous 2398 { 2399 union { 2400 struct { int i; int j; }; 2401 struct { int k; long int l; } w; 2402 }; 2403 int m; 2404 } v1; 2405 ' 2406 2407 # Test code for whether the C compiler supports C11 (body of main). 2408 ac_c_conftest_c11_main=' 2409 _Static_assert ((offsetof (struct anonymous, i) 2410 == offsetof (struct anonymous, w.k)), 2411 "Anonymous union alignment botch"); 2412 v1.i = 2; 2413 v1.w.k = 5; 2414 ok |= v1.i != 5; 2415 ' 2416 2417 # Test code for whether the C compiler supports C11 (complete). 2418 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2419 ${ac_c_conftest_c99_globals} 2420 ${ac_c_conftest_c11_globals} 2421 2422 int 2423 main (int argc, char **argv) 2424 { 2425 int ok = 0; 2426 ${ac_c_conftest_c89_main} 2427 ${ac_c_conftest_c99_main} 2428 ${ac_c_conftest_c11_main} 2429 return ok; 2430 } 2431 " 2432 2433 # Test code for whether the C compiler supports C99 (complete). 2434 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2435 ${ac_c_conftest_c99_globals} 2436 2437 int 2438 main (int argc, char **argv) 2439 { 2440 int ok = 0; 2441 ${ac_c_conftest_c89_main} 2442 ${ac_c_conftest_c99_main} 2443 return ok; 2444 } 2445 " 2446 2447 # Test code for whether the C compiler supports C89 (complete). 2448 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2449 2450 int 2451 main (int argc, char **argv) 2452 { 2453 int ok = 0; 2454 ${ac_c_conftest_c89_main} 2455 return ok; 2456 } 2457 " 2458 2459 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2460 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2461 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2462 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2463 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2464 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2465 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2466 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2467 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2468 2469 # Auxiliary files required by this configure script. 2470 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2471 2472 # Locations in which to look for auxiliary files. 2473 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2474 2475 # Search for a directory containing all of the required auxiliary files, 2476 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2477 # If we don't find one directory that contains all the files we need, 2478 # we report the set of missing files from the *first* directory in 2479 # $ac_aux_dir_candidates and give up. 2480 ac_missing_aux_files="" 2481 ac_first_candidate=: 2482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2484 as_found=false 2485 for as_dir in $ac_aux_dir_candidates 2486 do 2487 IFS=$as_save_IFS 2488 case $as_dir in #((( 2489 '') as_dir=./ ;; 2490 */) ;; 2491 *) as_dir=$as_dir/ ;; 2492 esac 2493 as_found=: 2494 2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2496 ac_aux_dir_found=yes 2497 ac_install_sh= 2498 for ac_aux in $ac_aux_files 2499 do 2500 # As a special case, if "install-sh" is required, that requirement 2501 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2502 # and $ac_install_sh is set appropriately for whichever one is found. 2503 if test x"$ac_aux" = x"install-sh" 2504 then 2505 if test -f "${as_dir}install-sh"; then 2506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2507 ac_install_sh="${as_dir}install-sh -c" 2508 elif test -f "${as_dir}install.sh"; then 2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2510 ac_install_sh="${as_dir}install.sh -c" 2511 elif test -f "${as_dir}shtool"; then 2512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2513 ac_install_sh="${as_dir}shtool install -c" 2514 else 2515 ac_aux_dir_found=no 2516 if $ac_first_candidate; then 2517 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2518 else 2519 break 2520 fi 2521 fi 2522 else 2523 if test -f "${as_dir}${ac_aux}"; then 2524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2525 else 2526 ac_aux_dir_found=no 2527 if $ac_first_candidate; then 2528 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2529 else 2530 break 2531 fi 2532 fi 2533 fi 2534 done 2535 if test "$ac_aux_dir_found" = yes; then 2536 ac_aux_dir="$as_dir" 2537 break 2538 fi 2539 ac_first_candidate=false 2540 2541 as_found=false 2542 done 2543 IFS=$as_save_IFS 2544 if $as_found 2545 then : 2546 2547 else case e in #( 2548 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2549 esac 2550 fi 2551 2552 2553 # These three variables are undocumented and unsupported, 2554 # and are intended to be withdrawn in a future Autoconf release. 2555 # They can cause serious problems if a builder's source tree is in a directory 2556 # whose full name contains unusual characters. 2557 if test -f "${ac_aux_dir}config.guess"; then 2558 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2559 fi 2560 if test -f "${ac_aux_dir}config.sub"; then 2561 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2562 fi 2563 if test -f "$ac_aux_dir/configure"; then 2564 ac_configure="$SHELL ${ac_aux_dir}configure" 2565 fi 2566 2567 # Check that the precious variables saved in the cache have kept the same 2568 # value. 2569 ac_cache_corrupted=false 2570 for ac_var in $ac_precious_vars; do 2571 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2572 eval ac_new_set=\$ac_env_${ac_var}_set 2573 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2574 eval ac_new_val=\$ac_env_${ac_var}_value 2575 case $ac_old_set,$ac_new_set in 2576 set,) 2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2578 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2579 ac_cache_corrupted=: ;; 2580 ,set) 2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2582 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2583 ac_cache_corrupted=: ;; 2584 ,);; 2585 *) 2586 if test "x$ac_old_val" != "x$ac_new_val"; then 2587 # differences in whitespace do not lead to failure. 2588 ac_old_val_w=`echo x $ac_old_val` 2589 ac_new_val_w=`echo x $ac_new_val` 2590 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2592 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2593 ac_cache_corrupted=: 2594 else 2595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2596 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2597 eval $ac_var=\$ac_old_val 2598 fi 2599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2600 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2602 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2603 fi;; 2604 esac 2605 # Pass precious variables to config.status. 2606 if test "$ac_new_set" = set; then 2607 case $ac_new_val in 2608 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2609 *) ac_arg=$ac_var=$ac_new_val ;; 2610 esac 2611 case " $ac_configure_args " in 2612 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2613 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2614 esac 2615 fi 2616 done 2617 if $ac_cache_corrupted; then 2618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2619 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2621 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2622 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2623 and start over" "$LINENO" 5 2624 fi 2625 ## -------------------- ## 2626 ## Main body of script. ## 2627 ## -------------------- ## 2628 2629 ac_ext=c 2630 ac_cpp='$CPP $CPPFLAGS' 2631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2633 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2634 2635 2636 2637 ac_config_headers="$ac_config_headers src/config.h" 2638 2639 2640 2641 # Initialize Automake 2642 am__api_version='1.17' 2643 2644 2645 2646 # Find a good install program. We prefer a C program (faster), 2647 # so one script is as good as another. But avoid the broken or 2648 # incompatible versions: 2649 # SysV /etc/install, /usr/sbin/install 2650 # SunOS /usr/etc/install 2651 # IRIX /sbin/install 2652 # AIX /bin/install 2653 # AmigaOS /C/install, which installs bootblocks on floppy discs 2654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2657 # OS/2's system install, which has a completely different semantic 2658 # ./install, which can be erroneously created by make from ./install.sh. 2659 # Reject install programs that cannot install multiple files. 2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2661 printf %s "checking for a BSD-compatible install... " >&6; } 2662 if test -z "$INSTALL"; then 2663 if test ${ac_cv_path_install+y} 2664 then : 2665 printf %s "(cached) " >&6 2666 else case e in #( 2667 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2668 for as_dir in $PATH 2669 do 2670 IFS=$as_save_IFS 2671 case $as_dir in #((( 2672 '') as_dir=./ ;; 2673 */) ;; 2674 *) as_dir=$as_dir/ ;; 2675 esac 2676 # Account for fact that we put trailing slashes in our PATH walk. 2677 case $as_dir in #(( 2678 ./ | /[cC]/* | \ 2679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2680 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2681 /usr/ucb/* ) ;; 2682 *) 2683 # OSF1 and SCO ODT 3.0 have their own names for install. 2684 # Don't use installbsd from OSF since it installs stuff as root 2685 # by default. 2686 for ac_prog in ginstall scoinst install; do 2687 for ac_exec_ext in '' $ac_executable_extensions; do 2688 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2689 if test $ac_prog = install && 2690 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2691 # AIX install. It has an incompatible calling convention. 2692 : 2693 elif test $ac_prog = install && 2694 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2695 # program-specific install script used by HP pwplus--don't use. 2696 : 2697 else 2698 rm -rf conftest.one conftest.two conftest.dir 2699 echo one > conftest.one 2700 echo two > conftest.two 2701 mkdir conftest.dir 2702 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2703 test -s conftest.one && test -s conftest.two && 2704 test -s conftest.dir/conftest.one && 2705 test -s conftest.dir/conftest.two 2706 then 2707 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2708 break 3 2709 fi 2710 fi 2711 fi 2712 done 2713 done 2714 ;; 2715 esac 2716 2717 done 2718 IFS=$as_save_IFS 2719 2720 rm -rf conftest.one conftest.two conftest.dir 2721 ;; 2722 esac 2723 fi 2724 if test ${ac_cv_path_install+y}; then 2725 INSTALL=$ac_cv_path_install 2726 else 2727 # As a last resort, use the slow shell script. Don't cache a 2728 # value for INSTALL within a source directory, because that will 2729 # break other packages using the cache if that directory is 2730 # removed, or if the value is a relative name. 2731 INSTALL=$ac_install_sh 2732 fi 2733 fi 2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2735 printf "%s\n" "$INSTALL" >&6; } 2736 2737 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2738 # It thinks the first close brace ends the variable substitution. 2739 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2740 2741 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2742 2743 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2744 2745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2746 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2747 if test ${am_cv_sleep_fractional_seconds+y} 2748 then : 2749 printf %s "(cached) " >&6 2750 else case e in #( 2751 e) if sleep 0.001 2>/dev/null 2752 then : 2753 am_cv_sleep_fractional_seconds=yes 2754 else case e in #( 2755 e) am_cv_sleep_fractional_seconds=no ;; 2756 esac 2757 fi 2758 ;; 2759 esac 2760 fi 2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2762 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2763 2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2765 printf %s "checking filesystem timestamp resolution... " >&6; } 2766 if test ${am_cv_filesystem_timestamp_resolution+y} 2767 then : 2768 printf %s "(cached) " >&6 2769 else case e in #( 2770 e) # Default to the worst case. 2771 am_cv_filesystem_timestamp_resolution=2 2772 2773 # Only try to go finer than 1 sec if sleep can do it. 2774 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2775 # - 1 sec is not much of a win compared to 2 sec, and 2776 # - it takes 2 seconds to perform the test whether 1 sec works. 2777 # 2778 # Instead, just use the default 2s on platforms that have 1s resolution, 2779 # accept the extra 1s delay when using $sleep in the Automake tests, in 2780 # exchange for not incurring the 2s delay for running the test for all 2781 # packages. 2782 # 2783 am_try_resolutions= 2784 if test "$am_cv_sleep_fractional_seconds" = yes; then 2785 # Even a millisecond often causes a bunch of false positives, 2786 # so just try a hundredth of a second. The time saved between .001 and 2787 # .01 is not terribly consequential. 2788 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2789 fi 2790 2791 # In order to catch current-generation FAT out, we must *modify* files 2792 # that already exist; the *creation* timestamp is finer. Use names 2793 # that make ls -t sort them differently when they have equal 2794 # timestamps than when they have distinct timestamps, keeping 2795 # in mind that ls -t prints the *newest* file first. 2796 rm -f conftest.ts? 2797 : > conftest.ts1 2798 : > conftest.ts2 2799 : > conftest.ts3 2800 2801 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2802 # clobber the current shell's arguments. (Outer-level square brackets 2803 # are removed by m4; they're present so that m4 does not expand 2804 # <dollar><star>; be careful, easy to get confused.) 2805 if ( 2806 set X `ls -t conftest.ts[12]` && 2807 { 2808 test "$*" != "X conftest.ts1 conftest.ts2" || 2809 test "$*" != "X conftest.ts2 conftest.ts1"; 2810 } 2811 ); then :; else 2812 # If neither matched, then we have a broken ls. This can happen 2813 # if, for instance, CONFIG_SHELL is bash and it inherits a 2814 # broken ls alias from the environment. This has actually 2815 # happened. Such a system could not be considered "sane". 2816 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2818 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2819 as_fn_error $? "ls -t produces unexpected output. 2820 Make sure there is not a broken ls alias in your environment. 2821 See 'config.log' for more details" "$LINENO" 5; } 2822 fi 2823 2824 for am_try_res in $am_try_resolutions; do 2825 # Any one fine-grained sleep might happen to cross the boundary 2826 # between two values of a coarser actual resolution, but if we do 2827 # two fine-grained sleeps in a row, at least one of them will fall 2828 # entirely within a coarse interval. 2829 echo alpha > conftest.ts1 2830 sleep $am_try_res 2831 echo beta > conftest.ts2 2832 sleep $am_try_res 2833 echo gamma > conftest.ts3 2834 2835 # We assume that 'ls -t' will make use of high-resolution 2836 # timestamps if the operating system supports them at all. 2837 if (set X `ls -t conftest.ts?` && 2838 test "$2" = conftest.ts3 && 2839 test "$3" = conftest.ts2 && 2840 test "$4" = conftest.ts1); then 2841 # 2842 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2843 # because we don't need to test make. 2844 make_ok=true 2845 if test $am_try_res != 1; then 2846 # But if we've succeeded so far with a subsecond resolution, we 2847 # have one more thing to check: make. It can happen that 2848 # everything else supports the subsecond mtimes, but make doesn't; 2849 # notably on macOS, which ships make 3.81 from 2006 (the last one 2850 # released under GPLv2). https://bugs.gnu.org/68808 2851 # 2852 # We test $MAKE if it is defined in the environment, else "make". 2853 # It might get overridden later, but our hope is that in practice 2854 # it does not matter: it is the system "make" which is (by far) 2855 # the most likely to be broken, whereas if the user overrides it, 2856 # probably they did so with a better, or at least not worse, make. 2857 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2858 # 2859 # Create a Makefile (real tab character here): 2860 rm -f conftest.mk 2861 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2862 echo ' touch conftest.ts2' >>conftest.mk 2863 # 2864 # Now, running 2865 # touch conftest.ts1; touch conftest.ts2; make 2866 # should touch ts1 because ts2 is newer. This could happen by luck, 2867 # but most often, it will fail if make's support is insufficient. So 2868 # test for several consecutive successes. 2869 # 2870 # (We reuse conftest.ts[12] because we still want to modify existing 2871 # files, not create new ones, per above.) 2872 n=0 2873 make=${MAKE-make} 2874 until test $n -eq 3; do 2875 echo one > conftest.ts1 2876 sleep $am_try_res 2877 echo two > conftest.ts2 # ts2 should now be newer than ts1 2878 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2879 make_ok=false 2880 break # out of $n loop 2881 fi 2882 n=`expr $n + 1` 2883 done 2884 fi 2885 # 2886 if $make_ok; then 2887 # Everything we know to check worked out, so call this resolution good. 2888 am_cv_filesystem_timestamp_resolution=$am_try_res 2889 break # out of $am_try_res loop 2890 fi 2891 # Otherwise, we'll go on to check the next resolution. 2892 fi 2893 done 2894 rm -f conftest.ts? 2895 # (end _am_filesystem_timestamp_resolution) 2896 ;; 2897 esac 2898 fi 2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2900 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2901 2902 # This check should not be cached, as it may vary across builds of 2903 # different projects. 2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2905 printf %s "checking whether build environment is sane... " >&6; } 2906 # Reject unsafe characters in $srcdir or the absolute working directory 2907 # name. Accept space and tab only in the latter. 2908 am_lf=' 2909 ' 2910 case `pwd` in 2911 *[\\\"\#\$\&\'\`$am_lf]*) 2912 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2913 esac 2914 case $srcdir in 2915 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2916 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2917 esac 2918 2919 # Do 'set' in a subshell so we don't clobber the current shell's 2920 # arguments. Must try -L first in case configure is actually a 2921 # symlink; some systems play weird games with the mod time of symlinks 2922 # (eg FreeBSD returns the mod time of the symlink's containing 2923 # directory). 2924 am_build_env_is_sane=no 2925 am_has_slept=no 2926 rm -f conftest.file 2927 for am_try in 1 2; do 2928 echo "timestamp, slept: $am_has_slept" > conftest.file 2929 if ( 2930 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2931 if test "$*" = "X"; then 2932 # -L didn't work. 2933 set X `ls -t "$srcdir/configure" conftest.file` 2934 fi 2935 test "$2" = conftest.file 2936 ); then 2937 am_build_env_is_sane=yes 2938 break 2939 fi 2940 # Just in case. 2941 sleep "$am_cv_filesystem_timestamp_resolution" 2942 am_has_slept=yes 2943 done 2944 2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2946 printf "%s\n" "$am_build_env_is_sane" >&6; } 2947 if test "$am_build_env_is_sane" = no; then 2948 as_fn_error $? "newly created file is older than distributed files! 2949 Check your system clock" "$LINENO" 5 2950 fi 2951 2952 # If we didn't sleep, we still need to ensure time stamps of config.status and 2953 # generated files are strictly newer. 2954 am_sleep_pid= 2955 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2956 then : 2957 2958 else case e in #( 2959 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2960 am_sleep_pid=$! 2961 ;; 2962 esac 2963 fi 2964 2965 rm -f conftest.file 2966 2967 test "$program_prefix" != NONE && 2968 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2969 # Use a double $ so make ignores it. 2970 test "$program_suffix" != NONE && 2971 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2972 # Double any \ or $. 2973 # By default was 's,x,x', remove it if useless. 2974 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2975 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2976 2977 2978 # Expand $ac_aux_dir to an absolute path. 2979 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2980 2981 2982 if test x"${MISSING+set}" != xset; then 2983 MISSING="\${SHELL} '$am_aux_dir/missing'" 2984 fi 2985 # Use eval to expand $SHELL 2986 if eval "$MISSING --is-lightweight"; then 2987 am_missing_run="$MISSING " 2988 else 2989 am_missing_run= 2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2991 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2992 fi 2993 2994 if test x"${install_sh+set}" != xset; then 2995 case $am_aux_dir in 2996 *\ * | *\ *) 2997 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2998 *) 2999 install_sh="\${SHELL} $am_aux_dir/install-sh" 3000 esac 3001 fi 3002 3003 # Installed binaries are usually stripped using 'strip' when the user 3004 # run "make install-strip". However 'strip' might not be the right 3005 # tool to use in cross-compilation environments, therefore Automake 3006 # will honor the 'STRIP' environment variable to overrule this program. 3007 if test "$cross_compiling" != no; then 3008 if test -n "$ac_tool_prefix"; then 3009 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3010 set dummy ${ac_tool_prefix}strip; ac_word=$2 3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3012 printf %s "checking for $ac_word... " >&6; } 3013 if test ${ac_cv_prog_STRIP+y} 3014 then : 3015 printf %s "(cached) " >&6 3016 else case e in #( 3017 e) if test -n "$STRIP"; then 3018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3019 else 3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3021 for as_dir in $PATH 3022 do 3023 IFS=$as_save_IFS 3024 case $as_dir in #((( 3025 '') as_dir=./ ;; 3026 */) ;; 3027 *) as_dir=$as_dir/ ;; 3028 esac 3029 for ac_exec_ext in '' $ac_executable_extensions; do 3030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3031 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3033 break 2 3034 fi 3035 done 3036 done 3037 IFS=$as_save_IFS 3038 3039 fi ;; 3040 esac 3041 fi 3042 STRIP=$ac_cv_prog_STRIP 3043 if test -n "$STRIP"; then 3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3045 printf "%s\n" "$STRIP" >&6; } 3046 else 3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3048 printf "%s\n" "no" >&6; } 3049 fi 3050 3051 3052 fi 3053 if test -z "$ac_cv_prog_STRIP"; then 3054 ac_ct_STRIP=$STRIP 3055 # Extract the first word of "strip", so it can be a program name with args. 3056 set dummy strip; ac_word=$2 3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3058 printf %s "checking for $ac_word... " >&6; } 3059 if test ${ac_cv_prog_ac_ct_STRIP+y} 3060 then : 3061 printf %s "(cached) " >&6 3062 else case e in #( 3063 e) if test -n "$ac_ct_STRIP"; then 3064 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3065 else 3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3067 for as_dir in $PATH 3068 do 3069 IFS=$as_save_IFS 3070 case $as_dir in #((( 3071 '') as_dir=./ ;; 3072 */) ;; 3073 *) as_dir=$as_dir/ ;; 3074 esac 3075 for ac_exec_ext in '' $ac_executable_extensions; do 3076 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3077 ac_cv_prog_ac_ct_STRIP="strip" 3078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3079 break 2 3080 fi 3081 done 3082 done 3083 IFS=$as_save_IFS 3084 3085 fi ;; 3086 esac 3087 fi 3088 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3089 if test -n "$ac_ct_STRIP"; then 3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3091 printf "%s\n" "$ac_ct_STRIP" >&6; } 3092 else 3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3094 printf "%s\n" "no" >&6; } 3095 fi 3096 3097 if test "x$ac_ct_STRIP" = x; then 3098 STRIP=":" 3099 else 3100 case $cross_compiling:$ac_tool_warned in 3101 yes:) 3102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3103 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3104 ac_tool_warned=yes ;; 3105 esac 3106 STRIP=$ac_ct_STRIP 3107 fi 3108 else 3109 STRIP="$ac_cv_prog_STRIP" 3110 fi 3111 3112 fi 3113 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3114 3115 3116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3117 printf %s "checking for a race-free mkdir -p... " >&6; } 3118 if test -z "$MKDIR_P"; then 3119 if test ${ac_cv_path_mkdir+y} 3120 then : 3121 printf %s "(cached) " >&6 3122 else case e in #( 3123 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3124 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3125 do 3126 IFS=$as_save_IFS 3127 case $as_dir in #((( 3128 '') as_dir=./ ;; 3129 */) ;; 3130 *) as_dir=$as_dir/ ;; 3131 esac 3132 for ac_prog in mkdir gmkdir; do 3133 for ac_exec_ext in '' $ac_executable_extensions; do 3134 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3135 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3136 'mkdir ('*'coreutils) '* | \ 3137 *'BusyBox '* | \ 3138 'mkdir (fileutils) '4.1*) 3139 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3140 break 3;; 3141 esac 3142 done 3143 done 3144 done 3145 IFS=$as_save_IFS 3146 ;; 3147 esac 3148 fi 3149 3150 test -d ./--version && rmdir ./--version 3151 if test ${ac_cv_path_mkdir+y}; then 3152 MKDIR_P="$ac_cv_path_mkdir -p" 3153 else 3154 # As a last resort, use plain mkdir -p, 3155 # in the hope it doesn't have the bugs of ancient mkdir. 3156 MKDIR_P='mkdir -p' 3157 fi 3158 fi 3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3160 printf "%s\n" "$MKDIR_P" >&6; } 3161 3162 for ac_prog in gawk mawk nawk awk 3163 do 3164 # Extract the first word of "$ac_prog", so it can be a program name with args. 3165 set dummy $ac_prog; ac_word=$2 3166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3167 printf %s "checking for $ac_word... " >&6; } 3168 if test ${ac_cv_prog_AWK+y} 3169 then : 3170 printf %s "(cached) " >&6 3171 else case e in #( 3172 e) if test -n "$AWK"; then 3173 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3174 else 3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3176 for as_dir in $PATH 3177 do 3178 IFS=$as_save_IFS 3179 case $as_dir in #((( 3180 '') as_dir=./ ;; 3181 */) ;; 3182 *) as_dir=$as_dir/ ;; 3183 esac 3184 for ac_exec_ext in '' $ac_executable_extensions; do 3185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3186 ac_cv_prog_AWK="$ac_prog" 3187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3188 break 2 3189 fi 3190 done 3191 done 3192 IFS=$as_save_IFS 3193 3194 fi ;; 3195 esac 3196 fi 3197 AWK=$ac_cv_prog_AWK 3198 if test -n "$AWK"; then 3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3200 printf "%s\n" "$AWK" >&6; } 3201 else 3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3203 printf "%s\n" "no" >&6; } 3204 fi 3205 3206 3207 test -n "$AWK" && break 3208 done 3209 3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3211 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3212 set x ${MAKE-make} 3213 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3214 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3215 then : 3216 printf %s "(cached) " >&6 3217 else case e in #( 3218 e) cat >conftest.make <<\_ACEOF 3219 SHELL = /bin/sh 3220 all: 3221 @echo '@@@%%%=$(MAKE)=@@@%%%' 3222 _ACEOF 3223 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3224 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3225 *@@@%%%=?*=@@@%%%*) 3226 eval ac_cv_prog_make_${ac_make}_set=yes;; 3227 *) 3228 eval ac_cv_prog_make_${ac_make}_set=no;; 3229 esac 3230 rm -f conftest.make ;; 3231 esac 3232 fi 3233 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3235 printf "%s\n" "yes" >&6; } 3236 SET_MAKE= 3237 else 3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3239 printf "%s\n" "no" >&6; } 3240 SET_MAKE="MAKE=${MAKE-make}" 3241 fi 3242 3243 rm -rf .tst 2>/dev/null 3244 mkdir .tst 2>/dev/null 3245 if test -d .tst; then 3246 am__leading_dot=. 3247 else 3248 am__leading_dot=_ 3249 fi 3250 rmdir .tst 2>/dev/null 3251 3252 AM_DEFAULT_VERBOSITY=1 3253 # Check whether --enable-silent-rules was given. 3254 if test ${enable_silent_rules+y} 3255 then : 3256 enableval=$enable_silent_rules; 3257 fi 3258 3259 am_make=${MAKE-make} 3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3261 printf %s "checking whether $am_make supports nested variables... " >&6; } 3262 if test ${am_cv_make_support_nested_variables+y} 3263 then : 3264 printf %s "(cached) " >&6 3265 else case e in #( 3266 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3267 BAR0=false 3268 BAR1=true 3269 V=1 3270 am__doit: 3271 @$(TRUE) 3272 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3273 am_cv_make_support_nested_variables=yes 3274 else 3275 am_cv_make_support_nested_variables=no 3276 fi ;; 3277 esac 3278 fi 3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3280 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3281 AM_BACKSLASH='\' 3282 3283 am__rm_f_notfound= 3284 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3285 then : 3286 3287 else case e in #( 3288 e) am__rm_f_notfound='""' ;; 3289 esac 3290 fi 3291 3292 3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3294 printf %s "checking xargs -n works... " >&6; } 3295 if test ${am_cv_xargs_n_works+y} 3296 then : 3297 printf %s "(cached) " >&6 3298 else case e in #( 3299 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3300 3" 3301 then : 3302 am_cv_xargs_n_works=yes 3303 else case e in #( 3304 e) am_cv_xargs_n_works=no ;; 3305 esac 3306 fi ;; 3307 esac 3308 fi 3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3310 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3311 if test "$am_cv_xargs_n_works" = yes 3312 then : 3313 am__xargs_n='xargs -n' 3314 else case e in #( 3315 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3316 ;; 3317 esac 3318 fi 3319 3320 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3321 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3322 # is not polluted with repeated "-I." 3323 am__isrc=' -I$(srcdir)' 3324 # test to see if srcdir already configured 3325 if test -f $srcdir/config.status; then 3326 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3327 fi 3328 fi 3329 3330 # test whether we have cygpath 3331 if test -z "$CYGPATH_W"; then 3332 if (cygpath --version) >/dev/null 2>/dev/null; then 3333 CYGPATH_W='cygpath -w' 3334 else 3335 CYGPATH_W=echo 3336 fi 3337 fi 3338 3339 3340 # Define the identity of the package. 3341 PACKAGE='libXxf86vm' 3342 VERSION='1.1.6' 3343 3344 3345 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3346 3347 3348 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3349 3350 # Some tools Automake needs. 3351 3352 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3353 3354 3355 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3356 3357 3358 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3359 3360 3361 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3362 3363 3364 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3365 3366 # For better backward compatibility. To be removed once Automake 1.9.x 3367 # dies out for good. For more background, see: 3368 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3369 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3370 mkdir_p='$(MKDIR_P)' 3371 3372 # We need awk for the "check" target (and possibly the TAP driver). The 3373 # system "awk" is bad on some platforms. 3374 # Always define AMTAR for backward compatibility. Yes, it's still used 3375 # in the wild :-( We should find a proper way to deprecate it ... 3376 AMTAR='$${TAR-tar}' 3377 3378 3379 # We'll loop over all known methods to create a tar archive until one works. 3380 _am_tools='gnutar pax cpio none' 3381 3382 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3383 3384 3385 3386 3387 3388 # Variables for tags utilities; see am/tags.am 3389 if test -z "$CTAGS"; then 3390 CTAGS=ctags 3391 fi 3392 3393 if test -z "$ETAGS"; then 3394 ETAGS=etags 3395 fi 3396 3397 if test -z "$CSCOPE"; then 3398 CSCOPE=cscope 3399 fi 3400 3401 3402 3403 3404 3405 3406 3407 3408 # Initialize libtool 3409 case `pwd` in 3410 *\ * | *\ *) 3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3412 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3413 esac 3414 3415 3416 3417 macro_version='2.5.4' 3418 macro_revision='2.5.4' 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 ltmain=$ac_aux_dir/ltmain.sh 3434 3435 3436 3437 # Make sure we can run config.sub. 3438 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3439 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3440 3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3442 printf %s "checking build system type... " >&6; } 3443 if test ${ac_cv_build+y} 3444 then : 3445 printf %s "(cached) " >&6 3446 else case e in #( 3447 e) ac_build_alias=$build_alias 3448 test "x$ac_build_alias" = x && 3449 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3450 test "x$ac_build_alias" = x && 3451 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3452 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3453 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3454 ;; 3455 esac 3456 fi 3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3458 printf "%s\n" "$ac_cv_build" >&6; } 3459 case $ac_cv_build in 3460 *-*-*) ;; 3461 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3462 esac 3463 build=$ac_cv_build 3464 ac_save_IFS=$IFS; IFS='-' 3465 set x $ac_cv_build 3466 shift 3467 build_cpu=$1 3468 build_vendor=$2 3469 shift; shift 3470 # Remember, the first character of IFS is used to create $*, 3471 # except with old shells: 3472 build_os=$* 3473 IFS=$ac_save_IFS 3474 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3475 3476 3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3478 printf %s "checking host system type... " >&6; } 3479 if test ${ac_cv_host+y} 3480 then : 3481 printf %s "(cached) " >&6 3482 else case e in #( 3483 e) if test "x$host_alias" = x; then 3484 ac_cv_host=$ac_cv_build 3485 else 3486 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3487 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3488 fi 3489 ;; 3490 esac 3491 fi 3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3493 printf "%s\n" "$ac_cv_host" >&6; } 3494 case $ac_cv_host in 3495 *-*-*) ;; 3496 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3497 esac 3498 host=$ac_cv_host 3499 ac_save_IFS=$IFS; IFS='-' 3500 set x $ac_cv_host 3501 shift 3502 host_cpu=$1 3503 host_vendor=$2 3504 shift; shift 3505 # Remember, the first character of IFS is used to create $*, 3506 # except with old shells: 3507 host_os=$* 3508 IFS=$ac_save_IFS 3509 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3510 3511 3512 # Backslashify metacharacters that are still active within 3513 # double-quoted strings. 3514 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3515 3516 # Same as above, but do not quote variable references. 3517 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3518 3519 # Sed substitution to delay expansion of an escaped shell variable in a 3520 # double_quote_subst'ed string. 3521 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3522 3523 # Sed substitution to delay expansion of an escaped single quote. 3524 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3525 3526 # Sed substitution to avoid accidental globbing in evaled expressions 3527 no_glob_subst='s/\*/\\\*/g' 3528 3529 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3530 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3531 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3532 3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3534 printf %s "checking how to print strings... " >&6; } 3535 # Test print first, because it will be a builtin if present. 3536 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3537 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3538 ECHO='print -r --' 3539 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3540 ECHO='printf %s\n' 3541 else 3542 # Use this function as a fallback that always works. 3543 func_fallback_echo () 3544 { 3545 eval 'cat <<_LTECHO_EOF 3546 $1 3547 _LTECHO_EOF' 3548 } 3549 ECHO='func_fallback_echo' 3550 fi 3551 3552 # func_echo_all arg... 3553 # Invoke $ECHO with all args, space-separated. 3554 func_echo_all () 3555 { 3556 $ECHO "" 3557 } 3558 3559 case $ECHO in 3560 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3561 printf "%s\n" "printf" >&6; } ;; 3562 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3563 printf "%s\n" "print -r" >&6; } ;; 3564 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3565 printf "%s\n" "cat" >&6; } ;; 3566 esac 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 DEPDIR="${am__leading_dot}deps" 3591 3592 ac_config_commands="$ac_config_commands depfiles" 3593 3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3595 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3596 cat > confinc.mk << 'END' 3597 am__doit: 3598 @echo this is the am__doit target >confinc.out 3599 .PHONY: am__doit 3600 END 3601 am__include="#" 3602 am__quote= 3603 # BSD make does it like this. 3604 echo '.include "confinc.mk" # ignored' > confmf.BSD 3605 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3606 echo 'include confinc.mk # ignored' > confmf.GNU 3607 _am_result=no 3608 for s in GNU BSD; do 3609 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3610 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3611 ac_status=$? 3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3613 (exit $ac_status); } 3614 case $?:`cat confinc.out 2>/dev/null` in #( 3615 '0:this is the am__doit target') : 3616 case $s in #( 3617 BSD) : 3618 am__include='.include' am__quote='"' ;; #( 3619 *) : 3620 am__include='include' am__quote='' ;; 3621 esac ;; #( 3622 *) : 3623 ;; 3624 esac 3625 if test "$am__include" != "#"; then 3626 _am_result="yes ($s style)" 3627 break 3628 fi 3629 done 3630 rm -f confinc.* confmf.* 3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3632 printf "%s\n" "${_am_result}" >&6; } 3633 3634 # Check whether --enable-dependency-tracking was given. 3635 if test ${enable_dependency_tracking+y} 3636 then : 3637 enableval=$enable_dependency_tracking; 3638 fi 3639 3640 if test "x$enable_dependency_tracking" != xno; then 3641 am_depcomp="$ac_aux_dir/depcomp" 3642 AMDEPBACKSLASH='\' 3643 am__nodep='_no' 3644 fi 3645 if test "x$enable_dependency_tracking" != xno; then 3646 AMDEP_TRUE= 3647 AMDEP_FALSE='#' 3648 else 3649 AMDEP_TRUE='#' 3650 AMDEP_FALSE= 3651 fi 3652 3653 3654 ac_ext=c 3655 ac_cpp='$CPP $CPPFLAGS' 3656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3658 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3659 if test -n "$ac_tool_prefix"; then 3660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3661 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3663 printf %s "checking for $ac_word... " >&6; } 3664 if test ${ac_cv_prog_CC+y} 3665 then : 3666 printf %s "(cached) " >&6 3667 else case e in #( 3668 e) if test -n "$CC"; then 3669 ac_cv_prog_CC="$CC" # Let the user override the test. 3670 else 3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3672 for as_dir in $PATH 3673 do 3674 IFS=$as_save_IFS 3675 case $as_dir in #((( 3676 '') as_dir=./ ;; 3677 */) ;; 3678 *) as_dir=$as_dir/ ;; 3679 esac 3680 for ac_exec_ext in '' $ac_executable_extensions; do 3681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3682 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3684 break 2 3685 fi 3686 done 3687 done 3688 IFS=$as_save_IFS 3689 3690 fi ;; 3691 esac 3692 fi 3693 CC=$ac_cv_prog_CC 3694 if test -n "$CC"; then 3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3696 printf "%s\n" "$CC" >&6; } 3697 else 3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3699 printf "%s\n" "no" >&6; } 3700 fi 3701 3702 3703 fi 3704 if test -z "$ac_cv_prog_CC"; then 3705 ac_ct_CC=$CC 3706 # Extract the first word of "gcc", so it can be a program name with args. 3707 set dummy gcc; ac_word=$2 3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3709 printf %s "checking for $ac_word... " >&6; } 3710 if test ${ac_cv_prog_ac_ct_CC+y} 3711 then : 3712 printf %s "(cached) " >&6 3713 else case e in #( 3714 e) if test -n "$ac_ct_CC"; then 3715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3716 else 3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3718 for as_dir in $PATH 3719 do 3720 IFS=$as_save_IFS 3721 case $as_dir in #((( 3722 '') as_dir=./ ;; 3723 */) ;; 3724 *) as_dir=$as_dir/ ;; 3725 esac 3726 for ac_exec_ext in '' $ac_executable_extensions; do 3727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3728 ac_cv_prog_ac_ct_CC="gcc" 3729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3730 break 2 3731 fi 3732 done 3733 done 3734 IFS=$as_save_IFS 3735 3736 fi ;; 3737 esac 3738 fi 3739 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3740 if test -n "$ac_ct_CC"; then 3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3742 printf "%s\n" "$ac_ct_CC" >&6; } 3743 else 3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3745 printf "%s\n" "no" >&6; } 3746 fi 3747 3748 if test "x$ac_ct_CC" = x; then 3749 CC="" 3750 else 3751 case $cross_compiling:$ac_tool_warned in 3752 yes:) 3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3754 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3755 ac_tool_warned=yes ;; 3756 esac 3757 CC=$ac_ct_CC 3758 fi 3759 else 3760 CC="$ac_cv_prog_CC" 3761 fi 3762 3763 if test -z "$CC"; then 3764 if test -n "$ac_tool_prefix"; then 3765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3766 set dummy ${ac_tool_prefix}cc; ac_word=$2 3767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3768 printf %s "checking for $ac_word... " >&6; } 3769 if test ${ac_cv_prog_CC+y} 3770 then : 3771 printf %s "(cached) " >&6 3772 else case e in #( 3773 e) if test -n "$CC"; then 3774 ac_cv_prog_CC="$CC" # Let the user override the test. 3775 else 3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3777 for as_dir in $PATH 3778 do 3779 IFS=$as_save_IFS 3780 case $as_dir in #((( 3781 '') as_dir=./ ;; 3782 */) ;; 3783 *) as_dir=$as_dir/ ;; 3784 esac 3785 for ac_exec_ext in '' $ac_executable_extensions; do 3786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3787 ac_cv_prog_CC="${ac_tool_prefix}cc" 3788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3789 break 2 3790 fi 3791 done 3792 done 3793 IFS=$as_save_IFS 3794 3795 fi ;; 3796 esac 3797 fi 3798 CC=$ac_cv_prog_CC 3799 if test -n "$CC"; then 3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3801 printf "%s\n" "$CC" >&6; } 3802 else 3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3804 printf "%s\n" "no" >&6; } 3805 fi 3806 3807 3808 fi 3809 fi 3810 if test -z "$CC"; then 3811 # Extract the first word of "cc", so it can be a program name with args. 3812 set dummy cc; ac_word=$2 3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3814 printf %s "checking for $ac_word... " >&6; } 3815 if test ${ac_cv_prog_CC+y} 3816 then : 3817 printf %s "(cached) " >&6 3818 else case e in #( 3819 e) if test -n "$CC"; then 3820 ac_cv_prog_CC="$CC" # Let the user override the test. 3821 else 3822 ac_prog_rejected=no 3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3824 for as_dir in $PATH 3825 do 3826 IFS=$as_save_IFS 3827 case $as_dir in #((( 3828 '') as_dir=./ ;; 3829 */) ;; 3830 *) as_dir=$as_dir/ ;; 3831 esac 3832 for ac_exec_ext in '' $ac_executable_extensions; do 3833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3834 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3835 ac_prog_rejected=yes 3836 continue 3837 fi 3838 ac_cv_prog_CC="cc" 3839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3840 break 2 3841 fi 3842 done 3843 done 3844 IFS=$as_save_IFS 3845 3846 if test $ac_prog_rejected = yes; then 3847 # We found a bogon in the path, so make sure we never use it. 3848 set dummy $ac_cv_prog_CC 3849 shift 3850 if test $# != 0; then 3851 # We chose a different compiler from the bogus one. 3852 # However, it has the same basename, so the bogon will be chosen 3853 # first if we set CC to just the basename; use the full file name. 3854 shift 3855 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3856 fi 3857 fi 3858 fi ;; 3859 esac 3860 fi 3861 CC=$ac_cv_prog_CC 3862 if test -n "$CC"; then 3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3864 printf "%s\n" "$CC" >&6; } 3865 else 3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3867 printf "%s\n" "no" >&6; } 3868 fi 3869 3870 3871 fi 3872 if test -z "$CC"; then 3873 if test -n "$ac_tool_prefix"; then 3874 for ac_prog in cl.exe 3875 do 3876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3879 printf %s "checking for $ac_word... " >&6; } 3880 if test ${ac_cv_prog_CC+y} 3881 then : 3882 printf %s "(cached) " >&6 3883 else case e in #( 3884 e) if test -n "$CC"; then 3885 ac_cv_prog_CC="$CC" # Let the user override the test. 3886 else 3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3888 for as_dir in $PATH 3889 do 3890 IFS=$as_save_IFS 3891 case $as_dir in #((( 3892 '') as_dir=./ ;; 3893 */) ;; 3894 *) as_dir=$as_dir/ ;; 3895 esac 3896 for ac_exec_ext in '' $ac_executable_extensions; do 3897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3898 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3900 break 2 3901 fi 3902 done 3903 done 3904 IFS=$as_save_IFS 3905 3906 fi ;; 3907 esac 3908 fi 3909 CC=$ac_cv_prog_CC 3910 if test -n "$CC"; then 3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3912 printf "%s\n" "$CC" >&6; } 3913 else 3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3915 printf "%s\n" "no" >&6; } 3916 fi 3917 3918 3919 test -n "$CC" && break 3920 done 3921 fi 3922 if test -z "$CC"; then 3923 ac_ct_CC=$CC 3924 for ac_prog in cl.exe 3925 do 3926 # Extract the first word of "$ac_prog", so it can be a program name with args. 3927 set dummy $ac_prog; ac_word=$2 3928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3929 printf %s "checking for $ac_word... " >&6; } 3930 if test ${ac_cv_prog_ac_ct_CC+y} 3931 then : 3932 printf %s "(cached) " >&6 3933 else case e in #( 3934 e) if test -n "$ac_ct_CC"; then 3935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3936 else 3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3938 for as_dir in $PATH 3939 do 3940 IFS=$as_save_IFS 3941 case $as_dir in #((( 3942 '') as_dir=./ ;; 3943 */) ;; 3944 *) as_dir=$as_dir/ ;; 3945 esac 3946 for ac_exec_ext in '' $ac_executable_extensions; do 3947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3948 ac_cv_prog_ac_ct_CC="$ac_prog" 3949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3950 break 2 3951 fi 3952 done 3953 done 3954 IFS=$as_save_IFS 3955 3956 fi ;; 3957 esac 3958 fi 3959 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3960 if test -n "$ac_ct_CC"; then 3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3962 printf "%s\n" "$ac_ct_CC" >&6; } 3963 else 3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3965 printf "%s\n" "no" >&6; } 3966 fi 3967 3968 3969 test -n "$ac_ct_CC" && break 3970 done 3971 3972 if test "x$ac_ct_CC" = x; then 3973 CC="" 3974 else 3975 case $cross_compiling:$ac_tool_warned in 3976 yes:) 3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3978 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3979 ac_tool_warned=yes ;; 3980 esac 3981 CC=$ac_ct_CC 3982 fi 3983 fi 3984 3985 fi 3986 if test -z "$CC"; then 3987 if test -n "$ac_tool_prefix"; then 3988 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3989 set dummy ${ac_tool_prefix}clang; ac_word=$2 3990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3991 printf %s "checking for $ac_word... " >&6; } 3992 if test ${ac_cv_prog_CC+y} 3993 then : 3994 printf %s "(cached) " >&6 3995 else case e in #( 3996 e) if test -n "$CC"; then 3997 ac_cv_prog_CC="$CC" # Let the user override the test. 3998 else 3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4000 for as_dir in $PATH 4001 do 4002 IFS=$as_save_IFS 4003 case $as_dir in #((( 4004 '') as_dir=./ ;; 4005 */) ;; 4006 *) as_dir=$as_dir/ ;; 4007 esac 4008 for ac_exec_ext in '' $ac_executable_extensions; do 4009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4010 ac_cv_prog_CC="${ac_tool_prefix}clang" 4011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4012 break 2 4013 fi 4014 done 4015 done 4016 IFS=$as_save_IFS 4017 4018 fi ;; 4019 esac 4020 fi 4021 CC=$ac_cv_prog_CC 4022 if test -n "$CC"; then 4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4024 printf "%s\n" "$CC" >&6; } 4025 else 4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4027 printf "%s\n" "no" >&6; } 4028 fi 4029 4030 4031 fi 4032 if test -z "$ac_cv_prog_CC"; then 4033 ac_ct_CC=$CC 4034 # Extract the first word of "clang", so it can be a program name with args. 4035 set dummy clang; ac_word=$2 4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4037 printf %s "checking for $ac_word... " >&6; } 4038 if test ${ac_cv_prog_ac_ct_CC+y} 4039 then : 4040 printf %s "(cached) " >&6 4041 else case e in #( 4042 e) if test -n "$ac_ct_CC"; then 4043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4044 else 4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4046 for as_dir in $PATH 4047 do 4048 IFS=$as_save_IFS 4049 case $as_dir in #((( 4050 '') as_dir=./ ;; 4051 */) ;; 4052 *) as_dir=$as_dir/ ;; 4053 esac 4054 for ac_exec_ext in '' $ac_executable_extensions; do 4055 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4056 ac_cv_prog_ac_ct_CC="clang" 4057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4058 break 2 4059 fi 4060 done 4061 done 4062 IFS=$as_save_IFS 4063 4064 fi ;; 4065 esac 4066 fi 4067 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4068 if test -n "$ac_ct_CC"; then 4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4070 printf "%s\n" "$ac_ct_CC" >&6; } 4071 else 4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4073 printf "%s\n" "no" >&6; } 4074 fi 4075 4076 if test "x$ac_ct_CC" = x; then 4077 CC="" 4078 else 4079 case $cross_compiling:$ac_tool_warned in 4080 yes:) 4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4082 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4083 ac_tool_warned=yes ;; 4084 esac 4085 CC=$ac_ct_CC 4086 fi 4087 else 4088 CC="$ac_cv_prog_CC" 4089 fi 4090 4091 fi 4092 4093 4094 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4095 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4096 as_fn_error $? "no acceptable C compiler found in \$PATH 4097 See 'config.log' for more details" "$LINENO" 5; } 4098 4099 # Provide some information about the compiler. 4100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4101 set X $ac_compile 4102 ac_compiler=$2 4103 for ac_option in --version -v -V -qversion -version; do 4104 { { ac_try="$ac_compiler $ac_option >&5" 4105 case "(($ac_try" in 4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4107 *) ac_try_echo=$ac_try;; 4108 esac 4109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4110 printf "%s\n" "$ac_try_echo"; } >&5 4111 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4112 ac_status=$? 4113 if test -s conftest.err; then 4114 sed '10a\ 4115 ... rest of stderr output deleted ... 4116 10q' conftest.err >conftest.er1 4117 cat conftest.er1 >&5 4118 fi 4119 rm -f conftest.er1 conftest.err 4120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4121 test $ac_status = 0; } 4122 done 4123 4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4125 /* end confdefs.h. */ 4126 4127 int 4128 main (void) 4129 { 4130 4131 ; 4132 return 0; 4133 } 4134 _ACEOF 4135 ac_clean_files_save=$ac_clean_files 4136 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4137 # Try to create an executable without -o first, disregard a.out. 4138 # It will help us diagnose broken compilers, and finding out an intuition 4139 # of exeext. 4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4141 printf %s "checking whether the C compiler works... " >&6; } 4142 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4143 4144 # The possible output files: 4145 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4146 4147 ac_rmfiles= 4148 for ac_file in $ac_files 4149 do 4150 case $ac_file in 4151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4152 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4153 esac 4154 done 4155 rm -f $ac_rmfiles 4156 4157 if { { ac_try="$ac_link_default" 4158 case "(($ac_try" in 4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4160 *) ac_try_echo=$ac_try;; 4161 esac 4162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4163 printf "%s\n" "$ac_try_echo"; } >&5 4164 (eval "$ac_link_default") 2>&5 4165 ac_status=$? 4166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4167 test $ac_status = 0; } 4168 then : 4169 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4170 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4171 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4172 # so that the user can short-circuit this test for compilers unknown to 4173 # Autoconf. 4174 for ac_file in $ac_files '' 4175 do 4176 test -f "$ac_file" || continue 4177 case $ac_file in 4178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4179 ;; 4180 [ab].out ) 4181 # We found the default executable, but exeext='' is most 4182 # certainly right. 4183 break;; 4184 *.* ) 4185 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4186 then :; else 4187 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4188 fi 4189 # We set ac_cv_exeext here because the later test for it is not 4190 # safe: cross compilers may not add the suffix if given an '-o' 4191 # argument, so we may need to know it at that point already. 4192 # Even if this section looks crufty: it has the advantage of 4193 # actually working. 4194 break;; 4195 * ) 4196 break;; 4197 esac 4198 done 4199 test "$ac_cv_exeext" = no && ac_cv_exeext= 4200 4201 else case e in #( 4202 e) ac_file='' ;; 4203 esac 4204 fi 4205 if test -z "$ac_file" 4206 then : 4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4208 printf "%s\n" "no" >&6; } 4209 printf "%s\n" "$as_me: failed program was:" >&5 4210 sed 's/^/| /' conftest.$ac_ext >&5 4211 4212 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4213 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4214 as_fn_error 77 "C compiler cannot create executables 4215 See 'config.log' for more details" "$LINENO" 5; } 4216 else case e in #( 4217 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4218 printf "%s\n" "yes" >&6; } ;; 4219 esac 4220 fi 4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4222 printf %s "checking for C compiler default output file name... " >&6; } 4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4224 printf "%s\n" "$ac_file" >&6; } 4225 ac_exeext=$ac_cv_exeext 4226 4227 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4228 ac_clean_files=$ac_clean_files_save 4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4230 printf %s "checking for suffix of executables... " >&6; } 4231 if { { ac_try="$ac_link" 4232 case "(($ac_try" in 4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4234 *) ac_try_echo=$ac_try;; 4235 esac 4236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4237 printf "%s\n" "$ac_try_echo"; } >&5 4238 (eval "$ac_link") 2>&5 4239 ac_status=$? 4240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4241 test $ac_status = 0; } 4242 then : 4243 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4244 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4245 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4246 # 'rm'. 4247 for ac_file in conftest.exe conftest conftest.*; do 4248 test -f "$ac_file" || continue 4249 case $ac_file in 4250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4251 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4252 break;; 4253 * ) break;; 4254 esac 4255 done 4256 else case e in #( 4257 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4258 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4259 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4260 See 'config.log' for more details" "$LINENO" 5; } ;; 4261 esac 4262 fi 4263 rm -f conftest conftest$ac_cv_exeext 4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4265 printf "%s\n" "$ac_cv_exeext" >&6; } 4266 4267 rm -f conftest.$ac_ext 4268 EXEEXT=$ac_cv_exeext 4269 ac_exeext=$EXEEXT 4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4271 /* end confdefs.h. */ 4272 #include <stdio.h> 4273 int 4274 main (void) 4275 { 4276 FILE *f = fopen ("conftest.out", "w"); 4277 if (!f) 4278 return 1; 4279 return ferror (f) || fclose (f) != 0; 4280 4281 ; 4282 return 0; 4283 } 4284 _ACEOF 4285 ac_clean_files="$ac_clean_files conftest.out" 4286 # Check that the compiler produces executables we can run. If not, either 4287 # the compiler is broken, or we cross compile. 4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4289 printf %s "checking whether we are cross compiling... " >&6; } 4290 if test "$cross_compiling" != yes; then 4291 { { ac_try="$ac_link" 4292 case "(($ac_try" in 4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4294 *) ac_try_echo=$ac_try;; 4295 esac 4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4297 printf "%s\n" "$ac_try_echo"; } >&5 4298 (eval "$ac_link") 2>&5 4299 ac_status=$? 4300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4301 test $ac_status = 0; } 4302 if { ac_try='./conftest$ac_cv_exeext' 4303 { { case "(($ac_try" in 4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4305 *) ac_try_echo=$ac_try;; 4306 esac 4307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4308 printf "%s\n" "$ac_try_echo"; } >&5 4309 (eval "$ac_try") 2>&5 4310 ac_status=$? 4311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4312 test $ac_status = 0; }; }; then 4313 cross_compiling=no 4314 else 4315 if test "$cross_compiling" = maybe; then 4316 cross_compiling=yes 4317 else 4318 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4319 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4320 as_fn_error 77 "cannot run C compiled programs. 4321 If you meant to cross compile, use '--host'. 4322 See 'config.log' for more details" "$LINENO" 5; } 4323 fi 4324 fi 4325 fi 4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4327 printf "%s\n" "$cross_compiling" >&6; } 4328 4329 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4330 conftest.o conftest.obj conftest.out 4331 ac_clean_files=$ac_clean_files_save 4332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4333 printf %s "checking for suffix of object files... " >&6; } 4334 if test ${ac_cv_objext+y} 4335 then : 4336 printf %s "(cached) " >&6 4337 else case e in #( 4338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4339 /* end confdefs.h. */ 4340 4341 int 4342 main (void) 4343 { 4344 4345 ; 4346 return 0; 4347 } 4348 _ACEOF 4349 rm -f conftest.o conftest.obj 4350 if { { ac_try="$ac_compile" 4351 case "(($ac_try" in 4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4353 *) ac_try_echo=$ac_try;; 4354 esac 4355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4356 printf "%s\n" "$ac_try_echo"; } >&5 4357 (eval "$ac_compile") 2>&5 4358 ac_status=$? 4359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4360 test $ac_status = 0; } 4361 then : 4362 for ac_file in conftest.o conftest.obj conftest.*; do 4363 test -f "$ac_file" || continue; 4364 case $ac_file in 4365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4366 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4367 break;; 4368 esac 4369 done 4370 else case e in #( 4371 e) printf "%s\n" "$as_me: failed program was:" >&5 4372 sed 's/^/| /' conftest.$ac_ext >&5 4373 4374 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4375 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4376 as_fn_error $? "cannot compute suffix of object files: cannot compile 4377 See 'config.log' for more details" "$LINENO" 5; } ;; 4378 esac 4379 fi 4380 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4381 esac 4382 fi 4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4384 printf "%s\n" "$ac_cv_objext" >&6; } 4385 OBJEXT=$ac_cv_objext 4386 ac_objext=$OBJEXT 4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4388 printf %s "checking whether the compiler supports GNU C... " >&6; } 4389 if test ${ac_cv_c_compiler_gnu+y} 4390 then : 4391 printf %s "(cached) " >&6 4392 else case e in #( 4393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4394 /* end confdefs.h. */ 4395 4396 int 4397 main (void) 4398 { 4399 #ifndef __GNUC__ 4400 choke me 4401 #endif 4402 4403 ; 4404 return 0; 4405 } 4406 _ACEOF 4407 if ac_fn_c_try_compile "$LINENO" 4408 then : 4409 ac_compiler_gnu=yes 4410 else case e in #( 4411 e) ac_compiler_gnu=no ;; 4412 esac 4413 fi 4414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4415 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4416 ;; 4417 esac 4418 fi 4419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4420 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4422 4423 if test $ac_compiler_gnu = yes; then 4424 GCC=yes 4425 else 4426 GCC= 4427 fi 4428 ac_test_CFLAGS=${CFLAGS+y} 4429 ac_save_CFLAGS=$CFLAGS 4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4431 printf %s "checking whether $CC accepts -g... " >&6; } 4432 if test ${ac_cv_prog_cc_g+y} 4433 then : 4434 printf %s "(cached) " >&6 4435 else case e in #( 4436 e) ac_save_c_werror_flag=$ac_c_werror_flag 4437 ac_c_werror_flag=yes 4438 ac_cv_prog_cc_g=no 4439 CFLAGS="-g" 4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4441 /* end confdefs.h. */ 4442 4443 int 4444 main (void) 4445 { 4446 4447 ; 4448 return 0; 4449 } 4450 _ACEOF 4451 if ac_fn_c_try_compile "$LINENO" 4452 then : 4453 ac_cv_prog_cc_g=yes 4454 else case e in #( 4455 e) CFLAGS="" 4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4457 /* end confdefs.h. */ 4458 4459 int 4460 main (void) 4461 { 4462 4463 ; 4464 return 0; 4465 } 4466 _ACEOF 4467 if ac_fn_c_try_compile "$LINENO" 4468 then : 4469 4470 else case e in #( 4471 e) ac_c_werror_flag=$ac_save_c_werror_flag 4472 CFLAGS="-g" 4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4474 /* end confdefs.h. */ 4475 4476 int 4477 main (void) 4478 { 4479 4480 ; 4481 return 0; 4482 } 4483 _ACEOF 4484 if ac_fn_c_try_compile "$LINENO" 4485 then : 4486 ac_cv_prog_cc_g=yes 4487 fi 4488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4489 esac 4490 fi 4491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4492 esac 4493 fi 4494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4495 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4496 esac 4497 fi 4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4499 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4500 if test $ac_test_CFLAGS; then 4501 CFLAGS=$ac_save_CFLAGS 4502 elif test $ac_cv_prog_cc_g = yes; then 4503 if test "$GCC" = yes; then 4504 CFLAGS="-g -O2" 4505 else 4506 CFLAGS="-g" 4507 fi 4508 else 4509 if test "$GCC" = yes; then 4510 CFLAGS="-O2" 4511 else 4512 CFLAGS= 4513 fi 4514 fi 4515 ac_prog_cc_stdc=no 4516 if test x$ac_prog_cc_stdc = xno 4517 then : 4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4519 printf %s "checking for $CC option to enable C11 features... " >&6; } 4520 if test ${ac_cv_prog_cc_c11+y} 4521 then : 4522 printf %s "(cached) " >&6 4523 else case e in #( 4524 e) ac_cv_prog_cc_c11=no 4525 ac_save_CC=$CC 4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4527 /* end confdefs.h. */ 4528 $ac_c_conftest_c11_program 4529 _ACEOF 4530 for ac_arg in '' -std=gnu11 4531 do 4532 CC="$ac_save_CC $ac_arg" 4533 if ac_fn_c_try_compile "$LINENO" 4534 then : 4535 ac_cv_prog_cc_c11=$ac_arg 4536 fi 4537 rm -f core conftest.err conftest.$ac_objext conftest.beam 4538 test "x$ac_cv_prog_cc_c11" != "xno" && break 4539 done 4540 rm -f conftest.$ac_ext 4541 CC=$ac_save_CC ;; 4542 esac 4543 fi 4544 4545 if test "x$ac_cv_prog_cc_c11" = xno 4546 then : 4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4548 printf "%s\n" "unsupported" >&6; } 4549 else case e in #( 4550 e) if test "x$ac_cv_prog_cc_c11" = x 4551 then : 4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4553 printf "%s\n" "none needed" >&6; } 4554 else case e in #( 4555 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4556 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4557 CC="$CC $ac_cv_prog_cc_c11" ;; 4558 esac 4559 fi 4560 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4561 ac_prog_cc_stdc=c11 ;; 4562 esac 4563 fi 4564 fi 4565 if test x$ac_prog_cc_stdc = xno 4566 then : 4567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4568 printf %s "checking for $CC option to enable C99 features... " >&6; } 4569 if test ${ac_cv_prog_cc_c99+y} 4570 then : 4571 printf %s "(cached) " >&6 4572 else case e in #( 4573 e) ac_cv_prog_cc_c99=no 4574 ac_save_CC=$CC 4575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4576 /* end confdefs.h. */ 4577 $ac_c_conftest_c99_program 4578 _ACEOF 4579 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4580 do 4581 CC="$ac_save_CC $ac_arg" 4582 if ac_fn_c_try_compile "$LINENO" 4583 then : 4584 ac_cv_prog_cc_c99=$ac_arg 4585 fi 4586 rm -f core conftest.err conftest.$ac_objext conftest.beam 4587 test "x$ac_cv_prog_cc_c99" != "xno" && break 4588 done 4589 rm -f conftest.$ac_ext 4590 CC=$ac_save_CC ;; 4591 esac 4592 fi 4593 4594 if test "x$ac_cv_prog_cc_c99" = xno 4595 then : 4596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4597 printf "%s\n" "unsupported" >&6; } 4598 else case e in #( 4599 e) if test "x$ac_cv_prog_cc_c99" = x 4600 then : 4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4602 printf "%s\n" "none needed" >&6; } 4603 else case e in #( 4604 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4605 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4606 CC="$CC $ac_cv_prog_cc_c99" ;; 4607 esac 4608 fi 4609 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4610 ac_prog_cc_stdc=c99 ;; 4611 esac 4612 fi 4613 fi 4614 if test x$ac_prog_cc_stdc = xno 4615 then : 4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4617 printf %s "checking for $CC option to enable C89 features... " >&6; } 4618 if test ${ac_cv_prog_cc_c89+y} 4619 then : 4620 printf %s "(cached) " >&6 4621 else case e in #( 4622 e) ac_cv_prog_cc_c89=no 4623 ac_save_CC=$CC 4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4625 /* end confdefs.h. */ 4626 $ac_c_conftest_c89_program 4627 _ACEOF 4628 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4629 do 4630 CC="$ac_save_CC $ac_arg" 4631 if ac_fn_c_try_compile "$LINENO" 4632 then : 4633 ac_cv_prog_cc_c89=$ac_arg 4634 fi 4635 rm -f core conftest.err conftest.$ac_objext conftest.beam 4636 test "x$ac_cv_prog_cc_c89" != "xno" && break 4637 done 4638 rm -f conftest.$ac_ext 4639 CC=$ac_save_CC ;; 4640 esac 4641 fi 4642 4643 if test "x$ac_cv_prog_cc_c89" = xno 4644 then : 4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4646 printf "%s\n" "unsupported" >&6; } 4647 else case e in #( 4648 e) if test "x$ac_cv_prog_cc_c89" = x 4649 then : 4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4651 printf "%s\n" "none needed" >&6; } 4652 else case e in #( 4653 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4654 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4655 CC="$CC $ac_cv_prog_cc_c89" ;; 4656 esac 4657 fi 4658 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4659 ac_prog_cc_stdc=c89 ;; 4660 esac 4661 fi 4662 fi 4663 4664 ac_ext=c 4665 ac_cpp='$CPP $CPPFLAGS' 4666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4668 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4669 4670 4671 ac_ext=c 4672 ac_cpp='$CPP $CPPFLAGS' 4673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4675 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4677 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4678 if test ${am_cv_prog_cc_c_o+y} 4679 then : 4680 printf %s "(cached) " >&6 4681 else case e in #( 4682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4683 /* end confdefs.h. */ 4684 4685 int 4686 main (void) 4687 { 4688 4689 ; 4690 return 0; 4691 } 4692 _ACEOF 4693 # Make sure it works both with $CC and with simple cc. 4694 # Following AC_PROG_CC_C_O, we do the test twice because some 4695 # compilers refuse to overwrite an existing .o file with -o, 4696 # though they will create one. 4697 am_cv_prog_cc_c_o=yes 4698 for am_i in 1 2; do 4699 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4700 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4701 ac_status=$? 4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4703 (exit $ac_status); } \ 4704 && test -f conftest2.$ac_objext; then 4705 : OK 4706 else 4707 am_cv_prog_cc_c_o=no 4708 break 4709 fi 4710 done 4711 rm -f core conftest* 4712 unset am_i ;; 4713 esac 4714 fi 4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4716 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4717 if test "$am_cv_prog_cc_c_o" != yes; then 4718 # Losing compiler, so override with the script. 4719 # FIXME: It is wrong to rewrite CC. 4720 # But if we don't then we get into trouble of one sort or another. 4721 # A longer-term fix would be to have automake use am__CC in this case, 4722 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4723 CC="$am_aux_dir/compile $CC" 4724 fi 4725 ac_ext=c 4726 ac_cpp='$CPP $CPPFLAGS' 4727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4729 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4730 4731 4732 depcc="$CC" am_compiler_list= 4733 4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4735 printf %s "checking dependency style of $depcc... " >&6; } 4736 if test ${am_cv_CC_dependencies_compiler_type+y} 4737 then : 4738 printf %s "(cached) " >&6 4739 else case e in #( 4740 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4741 # We make a subdir and do the tests there. Otherwise we can end up 4742 # making bogus files that we don't know about and never remove. For 4743 # instance it was reported that on HP-UX the gcc test will end up 4744 # making a dummy file named 'D' -- because '-MD' means "put the output 4745 # in D". 4746 rm -rf conftest.dir 4747 mkdir conftest.dir 4748 # Copy depcomp to subdir because otherwise we won't find it if we're 4749 # using a relative directory. 4750 cp "$am_depcomp" conftest.dir 4751 cd conftest.dir 4752 # We will build objects and dependencies in a subdirectory because 4753 # it helps to detect inapplicable dependency modes. For instance 4754 # both Tru64's cc and ICC support -MD to output dependencies as a 4755 # side effect of compilation, but ICC will put the dependencies in 4756 # the current directory while Tru64 will put them in the object 4757 # directory. 4758 mkdir sub 4759 4760 am_cv_CC_dependencies_compiler_type=none 4761 if test "$am_compiler_list" = ""; then 4762 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4763 fi 4764 am__universal=false 4765 case " $depcc " in #( 4766 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4767 esac 4768 4769 for depmode in $am_compiler_list; do 4770 # Setup a source with many dependencies, because some compilers 4771 # like to wrap large dependency lists on column 80 (with \), and 4772 # we should not choose a depcomp mode which is confused by this. 4773 # 4774 # We need to recreate these files for each test, as the compiler may 4775 # overwrite some of them when testing with obscure command lines. 4776 # This happens at least with the AIX C compiler. 4777 : > sub/conftest.c 4778 for i in 1 2 3 4 5 6; do 4779 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4780 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4781 # Solaris 10 /bin/sh. 4782 echo '/* dummy */' > sub/conftst$i.h 4783 done 4784 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4785 4786 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4787 # mode. It turns out that the SunPro C++ compiler does not properly 4788 # handle '-M -o', and we need to detect this. Also, some Intel 4789 # versions had trouble with output in subdirs. 4790 am__obj=sub/conftest.${OBJEXT-o} 4791 am__minus_obj="-o $am__obj" 4792 case $depmode in 4793 gcc) 4794 # This depmode causes a compiler race in universal mode. 4795 test "$am__universal" = false || continue 4796 ;; 4797 nosideeffect) 4798 # After this tag, mechanisms are not by side-effect, so they'll 4799 # only be used when explicitly requested. 4800 if test "x$enable_dependency_tracking" = xyes; then 4801 continue 4802 else 4803 break 4804 fi 4805 ;; 4806 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4807 # This compiler won't grok '-c -o', but also, the minuso test has 4808 # not run yet. These depmodes are late enough in the game, and 4809 # so weak that their functioning should not be impacted. 4810 am__obj=conftest.${OBJEXT-o} 4811 am__minus_obj= 4812 ;; 4813 none) break ;; 4814 esac 4815 if depmode=$depmode \ 4816 source=sub/conftest.c object=$am__obj \ 4817 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4818 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4819 >/dev/null 2>conftest.err && 4820 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4821 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4822 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4823 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4824 # icc doesn't choke on unknown options, it will just issue warnings 4825 # or remarks (even with -Werror). So we grep stderr for any message 4826 # that says an option was ignored or not supported. 4827 # When given -MP, icc 7.0 and 7.1 complain thus: 4828 # icc: Command line warning: ignoring option '-M'; no argument required 4829 # The diagnosis changed in icc 8.0: 4830 # icc: Command line remark: option '-MP' not supported 4831 if (grep 'ignoring option' conftest.err || 4832 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4833 am_cv_CC_dependencies_compiler_type=$depmode 4834 break 4835 fi 4836 fi 4837 done 4838 4839 cd .. 4840 rm -rf conftest.dir 4841 else 4842 am_cv_CC_dependencies_compiler_type=none 4843 fi 4844 ;; 4845 esac 4846 fi 4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4848 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4849 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4850 4851 if 4852 test "x$enable_dependency_tracking" != xno \ 4853 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4854 am__fastdepCC_TRUE= 4855 am__fastdepCC_FALSE='#' 4856 else 4857 am__fastdepCC_TRUE='#' 4858 am__fastdepCC_FALSE= 4859 fi 4860 4861 4862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4863 printf %s "checking for a sed that does not truncate output... " >&6; } 4864 if test ${ac_cv_path_SED+y} 4865 then : 4866 printf %s "(cached) " >&6 4867 else case e in #( 4868 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4869 for ac_i in 1 2 3 4 5 6 7; do 4870 ac_script="$ac_script$as_nl$ac_script" 4871 done 4872 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4873 { ac_script=; unset ac_script;} 4874 if test -z "$SED"; then 4875 ac_path_SED_found=false 4876 # Loop through the user's path and test for each of PROGNAME-LIST 4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4878 for as_dir in $PATH 4879 do 4880 IFS=$as_save_IFS 4881 case $as_dir in #((( 4882 '') as_dir=./ ;; 4883 */) ;; 4884 *) as_dir=$as_dir/ ;; 4885 esac 4886 for ac_prog in sed gsed 4887 do 4888 for ac_exec_ext in '' $ac_executable_extensions; do 4889 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4890 as_fn_executable_p "$ac_path_SED" || continue 4891 # Check for GNU ac_path_SED and select it if it is found. 4892 # Check for GNU $ac_path_SED 4893 case `"$ac_path_SED" --version 2>&1` in #( 4894 *GNU*) 4895 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4896 #( 4897 *) 4898 ac_count=0 4899 printf %s 0123456789 >"conftest.in" 4900 while : 4901 do 4902 cat "conftest.in" "conftest.in" >"conftest.tmp" 4903 mv "conftest.tmp" "conftest.in" 4904 cp "conftest.in" "conftest.nl" 4905 printf "%s\n" '' >> "conftest.nl" 4906 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4908 as_fn_arith $ac_count + 1 && ac_count=$as_val 4909 if test $ac_count -gt ${ac_path_SED_max-0}; then 4910 # Best one so far, save it but keep looking for a better one 4911 ac_cv_path_SED="$ac_path_SED" 4912 ac_path_SED_max=$ac_count 4913 fi 4914 # 10*(2^10) chars as input seems more than enough 4915 test $ac_count -gt 10 && break 4916 done 4917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4918 esac 4919 4920 $ac_path_SED_found && break 3 4921 done 4922 done 4923 done 4924 IFS=$as_save_IFS 4925 if test -z "$ac_cv_path_SED"; then 4926 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4927 fi 4928 else 4929 ac_cv_path_SED=$SED 4930 fi 4931 ;; 4932 esac 4933 fi 4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4935 printf "%s\n" "$ac_cv_path_SED" >&6; } 4936 SED="$ac_cv_path_SED" 4937 rm -f conftest.sed 4938 4939 test -z "$SED" && SED=sed 4940 Xsed="$SED -e 1s/^X//" 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4953 printf %s "checking for grep that handles long lines and -e... " >&6; } 4954 if test ${ac_cv_path_GREP+y} 4955 then : 4956 printf %s "(cached) " >&6 4957 else case e in #( 4958 e) if test -z "$GREP"; then 4959 ac_path_GREP_found=false 4960 # Loop through the user's path and test for each of PROGNAME-LIST 4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4962 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4963 do 4964 IFS=$as_save_IFS 4965 case $as_dir in #((( 4966 '') as_dir=./ ;; 4967 */) ;; 4968 *) as_dir=$as_dir/ ;; 4969 esac 4970 for ac_prog in grep ggrep 4971 do 4972 for ac_exec_ext in '' $ac_executable_extensions; do 4973 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4974 as_fn_executable_p "$ac_path_GREP" || continue 4975 # Check for GNU ac_path_GREP and select it if it is found. 4976 # Check for GNU $ac_path_GREP 4977 case `"$ac_path_GREP" --version 2>&1` in #( 4978 *GNU*) 4979 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4980 #( 4981 *) 4982 ac_count=0 4983 printf %s 0123456789 >"conftest.in" 4984 while : 4985 do 4986 cat "conftest.in" "conftest.in" >"conftest.tmp" 4987 mv "conftest.tmp" "conftest.in" 4988 cp "conftest.in" "conftest.nl" 4989 printf "%s\n" 'GREP' >> "conftest.nl" 4990 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4992 as_fn_arith $ac_count + 1 && ac_count=$as_val 4993 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4994 # Best one so far, save it but keep looking for a better one 4995 ac_cv_path_GREP="$ac_path_GREP" 4996 ac_path_GREP_max=$ac_count 4997 fi 4998 # 10*(2^10) chars as input seems more than enough 4999 test $ac_count -gt 10 && break 5000 done 5001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5002 esac 5003 5004 $ac_path_GREP_found && break 3 5005 done 5006 done 5007 done 5008 IFS=$as_save_IFS 5009 if test -z "$ac_cv_path_GREP"; then 5010 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5011 fi 5012 else 5013 ac_cv_path_GREP=$GREP 5014 fi 5015 ;; 5016 esac 5017 fi 5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5019 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5020 GREP="$ac_cv_path_GREP" 5021 5022 5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5024 printf %s "checking for egrep... " >&6; } 5025 if test ${ac_cv_path_EGREP+y} 5026 then : 5027 printf %s "(cached) " >&6 5028 else case e in #( 5029 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5030 then ac_cv_path_EGREP="$GREP -E" 5031 else 5032 if test -z "$EGREP"; then 5033 ac_path_EGREP_found=false 5034 # Loop through the user's path and test for each of PROGNAME-LIST 5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5036 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5037 do 5038 IFS=$as_save_IFS 5039 case $as_dir in #((( 5040 '') as_dir=./ ;; 5041 */) ;; 5042 *) as_dir=$as_dir/ ;; 5043 esac 5044 for ac_prog in egrep 5045 do 5046 for ac_exec_ext in '' $ac_executable_extensions; do 5047 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5048 as_fn_executable_p "$ac_path_EGREP" || continue 5049 # Check for GNU ac_path_EGREP and select it if it is found. 5050 # Check for GNU $ac_path_EGREP 5051 case `"$ac_path_EGREP" --version 2>&1` in #( 5052 *GNU*) 5053 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5054 #( 5055 *) 5056 ac_count=0 5057 printf %s 0123456789 >"conftest.in" 5058 while : 5059 do 5060 cat "conftest.in" "conftest.in" >"conftest.tmp" 5061 mv "conftest.tmp" "conftest.in" 5062 cp "conftest.in" "conftest.nl" 5063 printf "%s\n" 'EGREP' >> "conftest.nl" 5064 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5066 as_fn_arith $ac_count + 1 && ac_count=$as_val 5067 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5068 # Best one so far, save it but keep looking for a better one 5069 ac_cv_path_EGREP="$ac_path_EGREP" 5070 ac_path_EGREP_max=$ac_count 5071 fi 5072 # 10*(2^10) chars as input seems more than enough 5073 test $ac_count -gt 10 && break 5074 done 5075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5076 esac 5077 5078 $ac_path_EGREP_found && break 3 5079 done 5080 done 5081 done 5082 IFS=$as_save_IFS 5083 if test -z "$ac_cv_path_EGREP"; then 5084 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5085 fi 5086 else 5087 ac_cv_path_EGREP=$EGREP 5088 fi 5089 5090 fi ;; 5091 esac 5092 fi 5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5094 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5095 EGREP="$ac_cv_path_EGREP" 5096 5097 EGREP_TRADITIONAL=$EGREP 5098 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5099 5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5101 printf %s "checking for fgrep... " >&6; } 5102 if test ${ac_cv_path_FGREP+y} 5103 then : 5104 printf %s "(cached) " >&6 5105 else case e in #( 5106 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5107 then ac_cv_path_FGREP="$GREP -F" 5108 else 5109 if test -z "$FGREP"; then 5110 ac_path_FGREP_found=false 5111 # Loop through the user's path and test for each of PROGNAME-LIST 5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5114 do 5115 IFS=$as_save_IFS 5116 case $as_dir in #((( 5117 '') as_dir=./ ;; 5118 */) ;; 5119 *) as_dir=$as_dir/ ;; 5120 esac 5121 for ac_prog in fgrep 5122 do 5123 for ac_exec_ext in '' $ac_executable_extensions; do 5124 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5125 as_fn_executable_p "$ac_path_FGREP" || continue 5126 # Check for GNU ac_path_FGREP and select it if it is found. 5127 # Check for GNU $ac_path_FGREP 5128 case `"$ac_path_FGREP" --version 2>&1` in #( 5129 *GNU*) 5130 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5131 #( 5132 *) 5133 ac_count=0 5134 printf %s 0123456789 >"conftest.in" 5135 while : 5136 do 5137 cat "conftest.in" "conftest.in" >"conftest.tmp" 5138 mv "conftest.tmp" "conftest.in" 5139 cp "conftest.in" "conftest.nl" 5140 printf "%s\n" 'FGREP' >> "conftest.nl" 5141 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5143 as_fn_arith $ac_count + 1 && ac_count=$as_val 5144 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5145 # Best one so far, save it but keep looking for a better one 5146 ac_cv_path_FGREP="$ac_path_FGREP" 5147 ac_path_FGREP_max=$ac_count 5148 fi 5149 # 10*(2^10) chars as input seems more than enough 5150 test $ac_count -gt 10 && break 5151 done 5152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5153 esac 5154 5155 $ac_path_FGREP_found && break 3 5156 done 5157 done 5158 done 5159 IFS=$as_save_IFS 5160 if test -z "$ac_cv_path_FGREP"; then 5161 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5162 fi 5163 else 5164 ac_cv_path_FGREP=$FGREP 5165 fi 5166 5167 fi ;; 5168 esac 5169 fi 5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5171 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5172 FGREP="$ac_cv_path_FGREP" 5173 5174 5175 test -z "$GREP" && GREP=grep 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 # Check whether --with-gnu-ld was given. 5196 if test ${with_gnu_ld+y} 5197 then : 5198 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5199 else case e in #( 5200 e) with_gnu_ld=no ;; 5201 esac 5202 fi 5203 5204 ac_prog=ld 5205 if test yes = "$GCC"; then 5206 # Check if gcc -print-prog-name=ld gives a path. 5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5208 printf %s "checking for ld used by $CC... " >&6; } 5209 case $host in 5210 *-*-mingw* | *-*-windows*) 5211 # gcc leaves a trailing carriage return, which upsets mingw 5212 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5213 *) 5214 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5215 esac 5216 case $ac_prog in 5217 # Accept absolute paths. 5218 [\\/]* | ?:[\\/]*) 5219 re_direlt='/[^/][^/]*/\.\./' 5220 # Canonicalize the pathname of ld 5221 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5222 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5223 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5224 done 5225 test -z "$LD" && LD=$ac_prog 5226 ;; 5227 "") 5228 # If it fails, then pretend we aren't using GCC. 5229 ac_prog=ld 5230 ;; 5231 *) 5232 # If it is relative, then search for the first ld in PATH. 5233 with_gnu_ld=unknown 5234 ;; 5235 esac 5236 elif test yes = "$with_gnu_ld"; then 5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5238 printf %s "checking for GNU ld... " >&6; } 5239 else 5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5241 printf %s "checking for non-GNU ld... " >&6; } 5242 fi 5243 if test ${lt_cv_path_LD+y} 5244 then : 5245 printf %s "(cached) " >&6 5246 else case e in #( 5247 e) if test -z "$LD"; then 5248 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5249 for ac_dir in $PATH; do 5250 IFS=$lt_save_ifs 5251 test -z "$ac_dir" && ac_dir=. 5252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5253 lt_cv_path_LD=$ac_dir/$ac_prog 5254 # Check to see if the program is GNU ld. I'd rather use --version, 5255 # but apparently some variants of GNU ld only accept -v. 5256 # Break only if it was the GNU/non-GNU ld that we prefer. 5257 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5258 *GNU* | *'with BFD'*) 5259 test no != "$with_gnu_ld" && break 5260 ;; 5261 *) 5262 test yes != "$with_gnu_ld" && break 5263 ;; 5264 esac 5265 fi 5266 done 5267 IFS=$lt_save_ifs 5268 else 5269 lt_cv_path_LD=$LD # Let the user override the test with a path. 5270 fi ;; 5271 esac 5272 fi 5273 5274 LD=$lt_cv_path_LD 5275 if test -n "$LD"; then 5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5277 printf "%s\n" "$LD" >&6; } 5278 else 5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5280 printf "%s\n" "no" >&6; } 5281 fi 5282 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5284 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5285 if test ${lt_cv_prog_gnu_ld+y} 5286 then : 5287 printf %s "(cached) " >&6 5288 else case e in #( 5289 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5290 case `$LD -v 2>&1 </dev/null` in 5291 *GNU* | *'with BFD'*) 5292 lt_cv_prog_gnu_ld=yes 5293 ;; 5294 *) 5295 lt_cv_prog_gnu_ld=no 5296 ;; 5297 esac ;; 5298 esac 5299 fi 5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5301 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5302 with_gnu_ld=$lt_cv_prog_gnu_ld 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5313 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5314 if test ${lt_cv_path_NM+y} 5315 then : 5316 printf %s "(cached) " >&6 5317 else case e in #( 5318 e) if test -n "$NM"; then 5319 # Let the user override the test. 5320 lt_cv_path_NM=$NM 5321 else 5322 lt_nm_to_check=${ac_tool_prefix}nm 5323 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5324 lt_nm_to_check="$lt_nm_to_check nm" 5325 fi 5326 for lt_tmp_nm in $lt_nm_to_check; do 5327 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5328 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5329 IFS=$lt_save_ifs 5330 test -z "$ac_dir" && ac_dir=. 5331 tmp_nm=$ac_dir/$lt_tmp_nm 5332 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5333 # Check to see if the nm accepts a BSD-compat flag. 5334 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5335 # nm: unknown option "B" ignored 5336 # Tru64's nm complains that /dev/null is an invalid object file 5337 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5338 case $build_os in 5339 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 5340 *) lt_bad_file=/dev/null ;; 5341 esac 5342 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5343 *$lt_bad_file* | *'Invalid file or object type'*) 5344 lt_cv_path_NM="$tmp_nm -B" 5345 break 2 5346 ;; 5347 *) 5348 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5349 */dev/null*) 5350 lt_cv_path_NM="$tmp_nm -p" 5351 break 2 5352 ;; 5353 *) 5354 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5355 continue # so that we can try to find one that supports BSD flags 5356 ;; 5357 esac 5358 ;; 5359 esac 5360 fi 5361 done 5362 IFS=$lt_save_ifs 5363 done 5364 : ${lt_cv_path_NM=no} 5365 fi ;; 5366 esac 5367 fi 5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5369 printf "%s\n" "$lt_cv_path_NM" >&6; } 5370 if test no != "$lt_cv_path_NM"; then 5371 NM=$lt_cv_path_NM 5372 else 5373 # Didn't find any BSD compatible name lister, look for dumpbin. 5374 if test -n "$DUMPBIN"; then : 5375 # Let the user override the test. 5376 else 5377 if test -n "$ac_tool_prefix"; then 5378 for ac_prog in dumpbin "link -dump" 5379 do 5380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5383 printf %s "checking for $ac_word... " >&6; } 5384 if test ${ac_cv_prog_DUMPBIN+y} 5385 then : 5386 printf %s "(cached) " >&6 5387 else case e in #( 5388 e) if test -n "$DUMPBIN"; then 5389 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5390 else 5391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5392 for as_dir in $PATH 5393 do 5394 IFS=$as_save_IFS 5395 case $as_dir in #((( 5396 '') as_dir=./ ;; 5397 */) ;; 5398 *) as_dir=$as_dir/ ;; 5399 esac 5400 for ac_exec_ext in '' $ac_executable_extensions; do 5401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5402 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5404 break 2 5405 fi 5406 done 5407 done 5408 IFS=$as_save_IFS 5409 5410 fi ;; 5411 esac 5412 fi 5413 DUMPBIN=$ac_cv_prog_DUMPBIN 5414 if test -n "$DUMPBIN"; then 5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5416 printf "%s\n" "$DUMPBIN" >&6; } 5417 else 5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5419 printf "%s\n" "no" >&6; } 5420 fi 5421 5422 5423 test -n "$DUMPBIN" && break 5424 done 5425 fi 5426 if test -z "$DUMPBIN"; then 5427 ac_ct_DUMPBIN=$DUMPBIN 5428 for ac_prog in dumpbin "link -dump" 5429 do 5430 # Extract the first word of "$ac_prog", so it can be a program name with args. 5431 set dummy $ac_prog; ac_word=$2 5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5433 printf %s "checking for $ac_word... " >&6; } 5434 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5435 then : 5436 printf %s "(cached) " >&6 5437 else case e in #( 5438 e) if test -n "$ac_ct_DUMPBIN"; then 5439 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5440 else 5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5442 for as_dir in $PATH 5443 do 5444 IFS=$as_save_IFS 5445 case $as_dir in #((( 5446 '') as_dir=./ ;; 5447 */) ;; 5448 *) as_dir=$as_dir/ ;; 5449 esac 5450 for ac_exec_ext in '' $ac_executable_extensions; do 5451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5452 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5454 break 2 5455 fi 5456 done 5457 done 5458 IFS=$as_save_IFS 5459 5460 fi ;; 5461 esac 5462 fi 5463 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5464 if test -n "$ac_ct_DUMPBIN"; then 5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5466 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5467 else 5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5469 printf "%s\n" "no" >&6; } 5470 fi 5471 5472 5473 test -n "$ac_ct_DUMPBIN" && break 5474 done 5475 5476 if test "x$ac_ct_DUMPBIN" = x; then 5477 DUMPBIN=":" 5478 else 5479 case $cross_compiling:$ac_tool_warned in 5480 yes:) 5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5482 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5483 ac_tool_warned=yes ;; 5484 esac 5485 DUMPBIN=$ac_ct_DUMPBIN 5486 fi 5487 fi 5488 5489 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5490 *COFF*) 5491 DUMPBIN="$DUMPBIN -symbols -headers" 5492 ;; 5493 *) 5494 DUMPBIN=: 5495 ;; 5496 esac 5497 fi 5498 5499 if test : != "$DUMPBIN"; then 5500 NM=$DUMPBIN 5501 fi 5502 fi 5503 test -z "$NM" && NM=nm 5504 5505 5506 5507 5508 5509 5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5511 printf %s "checking the name lister ($NM) interface... " >&6; } 5512 if test ${lt_cv_nm_interface+y} 5513 then : 5514 printf %s "(cached) " >&6 5515 else case e in #( 5516 e) lt_cv_nm_interface="BSD nm" 5517 echo "int some_variable = 0;" > conftest.$ac_ext 5518 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5519 (eval "$ac_compile" 2>conftest.err) 5520 cat conftest.err >&5 5521 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5522 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5523 cat conftest.err >&5 5524 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5525 cat conftest.out >&5 5526 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5527 lt_cv_nm_interface="MS dumpbin" 5528 fi 5529 rm -f conftest* ;; 5530 esac 5531 fi 5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5533 printf "%s\n" "$lt_cv_nm_interface" >&6; } 5534 5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5536 printf %s "checking whether ln -s works... " >&6; } 5537 LN_S=$as_ln_s 5538 if test "$LN_S" = "ln -s"; then 5539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5540 printf "%s\n" "yes" >&6; } 5541 else 5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5543 printf "%s\n" "no, using $LN_S" >&6; } 5544 fi 5545 5546 # find the maximum length of command line arguments 5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5548 printf %s "checking the maximum length of command line arguments... " >&6; } 5549 if test ${lt_cv_sys_max_cmd_len+y} 5550 then : 5551 printf %s "(cached) " >&6 5552 else case e in #( 5553 e) i=0 5554 teststring=ABCD 5555 5556 case $build_os in 5557 msdosdjgpp*) 5558 # On DJGPP, this test can blow up pretty badly due to problems in libc 5559 # (any single argument exceeding 2000 bytes causes a buffer overrun 5560 # during glob expansion). Even if it were fixed, the result of this 5561 # check would be larger than it should be. 5562 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5563 ;; 5564 5565 gnu* | ironclad*) 5566 # Under GNU Hurd and Ironclad, this test is not required because there 5567 # is no limit to the length of command line arguments. 5568 # Libtool will interpret -1 as no limit whatsoever 5569 lt_cv_sys_max_cmd_len=-1; 5570 ;; 5571 5572 cygwin* | mingw* | windows* | cegcc*) 5573 # On Win9x/ME, this test blows up -- it succeeds, but takes 5574 # about 5 minutes as the teststring grows exponentially. 5575 # Worse, since 9x/ME are not pre-emptively multitasking, 5576 # you end up with a "frozen" computer, even though with patience 5577 # the test eventually succeeds (with a max line length of 256k). 5578 # Instead, let's just punt: use the minimum linelength reported by 5579 # all of the supported platforms: 8192 (on NT/2K/XP). 5580 lt_cv_sys_max_cmd_len=8192; 5581 ;; 5582 5583 mint*) 5584 # On MiNT this can take a long time and run out of memory. 5585 lt_cv_sys_max_cmd_len=8192; 5586 ;; 5587 5588 amigaos*) 5589 # On AmigaOS with pdksh, this test takes hours, literally. 5590 # So we just punt and use a minimum line length of 8192. 5591 lt_cv_sys_max_cmd_len=8192; 5592 ;; 5593 5594 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5595 # This has been around since 386BSD, at least. Likely further. 5596 if test -x /sbin/sysctl; then 5597 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5598 elif test -x /usr/sbin/sysctl; then 5599 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5600 else 5601 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5602 fi 5603 # And add a safety zone 5604 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5606 ;; 5607 5608 interix*) 5609 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5610 lt_cv_sys_max_cmd_len=196608 5611 ;; 5612 5613 os2*) 5614 # The test takes a long time on OS/2. 5615 lt_cv_sys_max_cmd_len=8192 5616 ;; 5617 5618 osf*) 5619 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5620 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5621 # nice to cause kernel panics so lets avoid the loop below. 5622 # First set a reasonable default. 5623 lt_cv_sys_max_cmd_len=16384 5624 # 5625 if test -x /sbin/sysconfig; then 5626 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5627 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5628 esac 5629 fi 5630 ;; 5631 sco3.2v5*) 5632 lt_cv_sys_max_cmd_len=102400 5633 ;; 5634 sysv5* | sco5v6* | sysv4.2uw2*) 5635 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5636 if test -n "$kargmax"; then 5637 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5638 else 5639 lt_cv_sys_max_cmd_len=32768 5640 fi 5641 ;; 5642 *) 5643 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5644 if test -n "$lt_cv_sys_max_cmd_len" && \ 5645 test undefined != "$lt_cv_sys_max_cmd_len"; then 5646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5647 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5648 else 5649 # Make teststring a little bigger before we do anything with it. 5650 # a 1K string should be a reasonable start. 5651 for i in 1 2 3 4 5 6 7 8; do 5652 teststring=$teststring$teststring 5653 done 5654 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5655 # If test is not a shell built-in, we'll probably end up computing a 5656 # maximum length that is only half of the actual maximum length, but 5657 # we can't tell. 5658 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5659 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5660 test 17 != "$i" # 1/2 MB should be enough 5661 do 5662 i=`expr $i + 1` 5663 teststring=$teststring$teststring 5664 done 5665 # Only check the string length outside the loop. 5666 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5667 teststring= 5668 # Add a significant safety factor because C++ compilers can tack on 5669 # massive amounts of additional arguments before passing them to the 5670 # linker. It appears as though 1/2 is a usable value. 5671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5672 fi 5673 ;; 5674 esac 5675 ;; 5676 esac 5677 fi 5678 5679 if test -n "$lt_cv_sys_max_cmd_len"; then 5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5681 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5682 else 5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5684 printf "%s\n" "none" >&6; } 5685 fi 5686 max_cmd_len=$lt_cv_sys_max_cmd_len 5687 5688 5689 5690 5691 5692 5693 : ${CP="cp -f"} 5694 : ${MV="mv -f"} 5695 : ${RM="rm -f"} 5696 5697 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5698 lt_unset=unset 5699 else 5700 lt_unset=false 5701 fi 5702 5703 5704 5705 5706 5707 # test EBCDIC or ASCII 5708 case `echo X|tr X '\101'` in 5709 A) # ASCII based system 5710 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5711 lt_SP2NL='tr \040 \012' 5712 lt_NL2SP='tr \015\012 \040\040' 5713 ;; 5714 *) # EBCDIC based system 5715 lt_SP2NL='tr \100 \n' 5716 lt_NL2SP='tr \r\n \100\100' 5717 ;; 5718 esac 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5729 printf %s "checking how to convert $build file names to $host format... " >&6; } 5730 if test ${lt_cv_to_host_file_cmd+y} 5731 then : 5732 printf %s "(cached) " >&6 5733 else case e in #( 5734 e) case $host in 5735 *-*-mingw* ) 5736 case $build in 5737 *-*-mingw* | *-*-windows* ) # actually msys 5738 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5739 ;; 5740 *-*-cygwin* ) 5741 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5742 ;; 5743 * ) # otherwise, assume *nix 5744 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5745 ;; 5746 esac 5747 ;; 5748 *-*-cygwin* ) 5749 case $build in 5750 *-*-mingw* | *-*-windows* ) # actually msys 5751 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5752 ;; 5753 *-*-cygwin* ) 5754 lt_cv_to_host_file_cmd=func_convert_file_noop 5755 ;; 5756 * ) # otherwise, assume *nix 5757 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5758 ;; 5759 esac 5760 ;; 5761 * ) # unhandled hosts (and "normal" native builds) 5762 lt_cv_to_host_file_cmd=func_convert_file_noop 5763 ;; 5764 esac 5765 ;; 5766 esac 5767 fi 5768 5769 to_host_file_cmd=$lt_cv_to_host_file_cmd 5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5771 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5772 5773 5774 5775 5776 5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5778 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5779 if test ${lt_cv_to_tool_file_cmd+y} 5780 then : 5781 printf %s "(cached) " >&6 5782 else case e in #( 5783 e) #assume ordinary cross tools, or native build. 5784 lt_cv_to_tool_file_cmd=func_convert_file_noop 5785 case $host in 5786 *-*-mingw* | *-*-windows* ) 5787 case $build in 5788 *-*-mingw* | *-*-windows* ) # actually msys 5789 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5790 ;; 5791 esac 5792 ;; 5793 esac 5794 ;; 5795 esac 5796 fi 5797 5798 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5800 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5801 5802 5803 5804 5805 5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5807 printf %s "checking for $LD option to reload object files... " >&6; } 5808 if test ${lt_cv_ld_reload_flag+y} 5809 then : 5810 printf %s "(cached) " >&6 5811 else case e in #( 5812 e) lt_cv_ld_reload_flag='-r' ;; 5813 esac 5814 fi 5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5816 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5817 reload_flag=$lt_cv_ld_reload_flag 5818 case $reload_flag in 5819 "" | " "*) ;; 5820 *) reload_flag=" $reload_flag" ;; 5821 esac 5822 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5823 case $host_os in 5824 cygwin* | mingw* | windows* | pw32* | cegcc*) 5825 if test yes != "$GCC"; then 5826 reload_cmds=false 5827 fi 5828 ;; 5829 darwin*) 5830 if test yes = "$GCC"; then 5831 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5832 else 5833 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5834 fi 5835 ;; 5836 esac 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 # Extract the first word of "file", so it can be a program name with args. 5847 set dummy file; ac_word=$2 5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5849 printf %s "checking for $ac_word... " >&6; } 5850 if test ${ac_cv_prog_FILECMD+y} 5851 then : 5852 printf %s "(cached) " >&6 5853 else case e in #( 5854 e) if test -n "$FILECMD"; then 5855 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5856 else 5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5858 for as_dir in $PATH 5859 do 5860 IFS=$as_save_IFS 5861 case $as_dir in #((( 5862 '') as_dir=./ ;; 5863 */) ;; 5864 *) as_dir=$as_dir/ ;; 5865 esac 5866 for ac_exec_ext in '' $ac_executable_extensions; do 5867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5868 ac_cv_prog_FILECMD="file" 5869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5870 break 2 5871 fi 5872 done 5873 done 5874 IFS=$as_save_IFS 5875 5876 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 5877 fi ;; 5878 esac 5879 fi 5880 FILECMD=$ac_cv_prog_FILECMD 5881 if test -n "$FILECMD"; then 5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5883 printf "%s\n" "$FILECMD" >&6; } 5884 else 5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5886 printf "%s\n" "no" >&6; } 5887 fi 5888 5889 5890 5891 5892 5893 5894 5895 5896 if test -n "$ac_tool_prefix"; then 5897 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5898 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5900 printf %s "checking for $ac_word... " >&6; } 5901 if test ${ac_cv_prog_OBJDUMP+y} 5902 then : 5903 printf %s "(cached) " >&6 5904 else case e in #( 5905 e) if test -n "$OBJDUMP"; then 5906 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5907 else 5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5909 for as_dir in $PATH 5910 do 5911 IFS=$as_save_IFS 5912 case $as_dir in #((( 5913 '') as_dir=./ ;; 5914 */) ;; 5915 *) as_dir=$as_dir/ ;; 5916 esac 5917 for ac_exec_ext in '' $ac_executable_extensions; do 5918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5919 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5921 break 2 5922 fi 5923 done 5924 done 5925 IFS=$as_save_IFS 5926 5927 fi ;; 5928 esac 5929 fi 5930 OBJDUMP=$ac_cv_prog_OBJDUMP 5931 if test -n "$OBJDUMP"; then 5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5933 printf "%s\n" "$OBJDUMP" >&6; } 5934 else 5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5936 printf "%s\n" "no" >&6; } 5937 fi 5938 5939 5940 fi 5941 if test -z "$ac_cv_prog_OBJDUMP"; then 5942 ac_ct_OBJDUMP=$OBJDUMP 5943 # Extract the first word of "objdump", so it can be a program name with args. 5944 set dummy objdump; ac_word=$2 5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5946 printf %s "checking for $ac_word... " >&6; } 5947 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5948 then : 5949 printf %s "(cached) " >&6 5950 else case e in #( 5951 e) if test -n "$ac_ct_OBJDUMP"; then 5952 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5953 else 5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5955 for as_dir in $PATH 5956 do 5957 IFS=$as_save_IFS 5958 case $as_dir in #((( 5959 '') as_dir=./ ;; 5960 */) ;; 5961 *) as_dir=$as_dir/ ;; 5962 esac 5963 for ac_exec_ext in '' $ac_executable_extensions; do 5964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5965 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5967 break 2 5968 fi 5969 done 5970 done 5971 IFS=$as_save_IFS 5972 5973 fi ;; 5974 esac 5975 fi 5976 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5977 if test -n "$ac_ct_OBJDUMP"; then 5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5979 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5980 else 5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5982 printf "%s\n" "no" >&6; } 5983 fi 5984 5985 if test "x$ac_ct_OBJDUMP" = x; then 5986 OBJDUMP="false" 5987 else 5988 case $cross_compiling:$ac_tool_warned in 5989 yes:) 5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5992 ac_tool_warned=yes ;; 5993 esac 5994 OBJDUMP=$ac_ct_OBJDUMP 5995 fi 5996 else 5997 OBJDUMP="$ac_cv_prog_OBJDUMP" 5998 fi 5999 6000 test -z "$OBJDUMP" && OBJDUMP=objdump 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6011 printf %s "checking how to recognize dependent libraries... " >&6; } 6012 if test ${lt_cv_deplibs_check_method+y} 6013 then : 6014 printf %s "(cached) " >&6 6015 else case e in #( 6016 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6017 lt_cv_file_magic_test_file= 6018 lt_cv_deplibs_check_method='unknown' 6019 # Need to set the preceding variable on all platforms that support 6020 # interlibrary dependencies. 6021 # 'none' -- dependencies not supported. 6022 # 'unknown' -- same as none, but documents that we really don't know. 6023 # 'pass_all' -- all dependencies passed with no checks. 6024 # 'file_magic [[regex]]' -- check by looking for files in library path 6025 # that responds to the $file_magic_cmd with a given extended regex. 6026 # If you have 'file' or equivalent on your system and you're not sure 6027 # whether 'pass_all' will *always* work, you probably want this one. 6028 6029 case $host_os in 6030 aix[4-9]*) 6031 lt_cv_deplibs_check_method=pass_all 6032 ;; 6033 6034 beos*) 6035 lt_cv_deplibs_check_method=pass_all 6036 ;; 6037 6038 bsdi[45]*) 6039 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6040 lt_cv_file_magic_cmd='$FILECMD -L' 6041 lt_cv_file_magic_test_file=/shlib/libc.so 6042 ;; 6043 6044 cygwin*) 6045 # func_win32_libid is a shell function defined in ltmain.sh 6046 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6047 lt_cv_file_magic_cmd='func_win32_libid' 6048 ;; 6049 6050 mingw* | windows* | pw32*) 6051 # Base MSYS/MinGW do not provide the 'file' command needed by 6052 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6053 # unless we find 'file', for example because we are cross-compiling. 6054 if ( file / ) >/dev/null 2>&1; then 6055 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6056 lt_cv_file_magic_cmd='func_win32_libid' 6057 else 6058 # Keep this pattern in sync with the one in func_win32_libid. 6059 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 6060 lt_cv_file_magic_cmd='$OBJDUMP -f' 6061 fi 6062 ;; 6063 6064 cegcc*) 6065 # use the weaker test based on 'objdump'. See mingw*. 6066 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6067 lt_cv_file_magic_cmd='$OBJDUMP -f' 6068 ;; 6069 6070 darwin* | rhapsody*) 6071 lt_cv_deplibs_check_method=pass_all 6072 ;; 6073 6074 freebsd* | dragonfly* | midnightbsd*) 6075 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6076 case $host_cpu in 6077 i*86 ) 6078 # Not sure whether the presence of OpenBSD here was a mistake. 6079 # Let's accept both of them until this is cleared up. 6080 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6081 lt_cv_file_magic_cmd=$FILECMD 6082 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6083 ;; 6084 esac 6085 else 6086 lt_cv_deplibs_check_method=pass_all 6087 fi 6088 ;; 6089 6090 haiku*) 6091 lt_cv_deplibs_check_method=pass_all 6092 ;; 6093 6094 hpux10.20* | hpux11*) 6095 lt_cv_file_magic_cmd=$FILECMD 6096 case $host_cpu in 6097 ia64*) 6098 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6099 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6100 ;; 6101 hppa*64*) 6102 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]' 6103 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6104 ;; 6105 *) 6106 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6107 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6108 ;; 6109 esac 6110 ;; 6111 6112 interix[3-9]*) 6113 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6115 ;; 6116 6117 irix5* | irix6* | nonstopux*) 6118 case $LD in 6119 *-32|*"-32 ") libmagic=32-bit;; 6120 *-n32|*"-n32 ") libmagic=N32;; 6121 *-64|*"-64 ") libmagic=64-bit;; 6122 *) libmagic=never-match;; 6123 esac 6124 lt_cv_deplibs_check_method=pass_all 6125 ;; 6126 6127 # This must be glibc/ELF. 6128 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6129 lt_cv_deplibs_check_method=pass_all 6130 ;; 6131 6132 *-mlibc) 6133 lt_cv_deplibs_check_method=pass_all 6134 ;; 6135 6136 netbsd* | netbsdelf*-gnu) 6137 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6139 else 6140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6141 fi 6142 ;; 6143 6144 newos6*) 6145 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6146 lt_cv_file_magic_cmd=$FILECMD 6147 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6148 ;; 6149 6150 *nto* | *qnx*) 6151 lt_cv_deplibs_check_method=pass_all 6152 ;; 6153 6154 openbsd*) 6155 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6157 else 6158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6159 fi 6160 ;; 6161 6162 osf3* | osf4* | osf5*) 6163 lt_cv_deplibs_check_method=pass_all 6164 ;; 6165 6166 rdos*) 6167 lt_cv_deplibs_check_method=pass_all 6168 ;; 6169 6170 serenity*) 6171 lt_cv_deplibs_check_method=pass_all 6172 ;; 6173 6174 solaris*) 6175 lt_cv_deplibs_check_method=pass_all 6176 ;; 6177 6178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6179 lt_cv_deplibs_check_method=pass_all 6180 ;; 6181 6182 sysv4 | sysv4.3*) 6183 case $host_vendor in 6184 motorola) 6185 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]' 6186 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6187 ;; 6188 ncr) 6189 lt_cv_deplibs_check_method=pass_all 6190 ;; 6191 sequent) 6192 lt_cv_file_magic_cmd='/bin/file' 6193 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6194 ;; 6195 sni) 6196 lt_cv_file_magic_cmd='/bin/file' 6197 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6198 lt_cv_file_magic_test_file=/lib/libc.so 6199 ;; 6200 siemens) 6201 lt_cv_deplibs_check_method=pass_all 6202 ;; 6203 pc) 6204 lt_cv_deplibs_check_method=pass_all 6205 ;; 6206 esac 6207 ;; 6208 6209 tpf*) 6210 lt_cv_deplibs_check_method=pass_all 6211 ;; 6212 os2*) 6213 lt_cv_deplibs_check_method=pass_all 6214 ;; 6215 esac 6216 ;; 6217 esac 6218 fi 6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6220 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6221 6222 file_magic_glob= 6223 want_nocaseglob=no 6224 if test "$build" = "$host"; then 6225 case $host_os in 6226 mingw* | windows* | pw32*) 6227 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6228 want_nocaseglob=yes 6229 else 6230 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6231 fi 6232 ;; 6233 esac 6234 fi 6235 6236 file_magic_cmd=$lt_cv_file_magic_cmd 6237 deplibs_check_method=$lt_cv_deplibs_check_method 6238 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 if test -n "$ac_tool_prefix"; then 6262 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6263 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6265 printf %s "checking for $ac_word... " >&6; } 6266 if test ${ac_cv_prog_DLLTOOL+y} 6267 then : 6268 printf %s "(cached) " >&6 6269 else case e in #( 6270 e) if test -n "$DLLTOOL"; then 6271 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6272 else 6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6274 for as_dir in $PATH 6275 do 6276 IFS=$as_save_IFS 6277 case $as_dir in #((( 6278 '') as_dir=./ ;; 6279 */) ;; 6280 *) as_dir=$as_dir/ ;; 6281 esac 6282 for ac_exec_ext in '' $ac_executable_extensions; do 6283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6284 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6286 break 2 6287 fi 6288 done 6289 done 6290 IFS=$as_save_IFS 6291 6292 fi ;; 6293 esac 6294 fi 6295 DLLTOOL=$ac_cv_prog_DLLTOOL 6296 if test -n "$DLLTOOL"; then 6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6298 printf "%s\n" "$DLLTOOL" >&6; } 6299 else 6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6301 printf "%s\n" "no" >&6; } 6302 fi 6303 6304 6305 fi 6306 if test -z "$ac_cv_prog_DLLTOOL"; then 6307 ac_ct_DLLTOOL=$DLLTOOL 6308 # Extract the first word of "dlltool", so it can be a program name with args. 6309 set dummy dlltool; ac_word=$2 6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6311 printf %s "checking for $ac_word... " >&6; } 6312 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6313 then : 6314 printf %s "(cached) " >&6 6315 else case e in #( 6316 e) if test -n "$ac_ct_DLLTOOL"; then 6317 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6318 else 6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6320 for as_dir in $PATH 6321 do 6322 IFS=$as_save_IFS 6323 case $as_dir in #((( 6324 '') as_dir=./ ;; 6325 */) ;; 6326 *) as_dir=$as_dir/ ;; 6327 esac 6328 for ac_exec_ext in '' $ac_executable_extensions; do 6329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6330 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6332 break 2 6333 fi 6334 done 6335 done 6336 IFS=$as_save_IFS 6337 6338 fi ;; 6339 esac 6340 fi 6341 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6342 if test -n "$ac_ct_DLLTOOL"; then 6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6344 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6345 else 6346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6347 printf "%s\n" "no" >&6; } 6348 fi 6349 6350 if test "x$ac_ct_DLLTOOL" = x; then 6351 DLLTOOL="false" 6352 else 6353 case $cross_compiling:$ac_tool_warned in 6354 yes:) 6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6356 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6357 ac_tool_warned=yes ;; 6358 esac 6359 DLLTOOL=$ac_ct_DLLTOOL 6360 fi 6361 else 6362 DLLTOOL="$ac_cv_prog_DLLTOOL" 6363 fi 6364 6365 test -z "$DLLTOOL" && DLLTOOL=dlltool 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6377 printf %s "checking how to associate runtime and link libraries... " >&6; } 6378 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6379 then : 6380 printf %s "(cached) " >&6 6381 else case e in #( 6382 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6383 6384 case $host_os in 6385 cygwin* | mingw* | windows* | pw32* | cegcc*) 6386 # two different shell functions defined in ltmain.sh; 6387 # decide which one to use based on capabilities of $DLLTOOL 6388 case `$DLLTOOL --help 2>&1` in 6389 *--identify-strict*) 6390 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6391 ;; 6392 *) 6393 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6394 ;; 6395 esac 6396 ;; 6397 *) 6398 # fallback: assume linklib IS sharedlib 6399 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6400 ;; 6401 esac 6402 ;; 6403 esac 6404 fi 6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6406 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6407 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6408 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6409 6410 6411 6412 6413 6414 6415 6416 6417 if test -n "$ac_tool_prefix"; then 6418 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6419 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6421 printf %s "checking for $ac_word... " >&6; } 6422 if test ${ac_cv_prog_RANLIB+y} 6423 then : 6424 printf %s "(cached) " >&6 6425 else case e in #( 6426 e) if test -n "$RANLIB"; then 6427 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6428 else 6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6430 for as_dir in $PATH 6431 do 6432 IFS=$as_save_IFS 6433 case $as_dir in #((( 6434 '') as_dir=./ ;; 6435 */) ;; 6436 *) as_dir=$as_dir/ ;; 6437 esac 6438 for ac_exec_ext in '' $ac_executable_extensions; do 6439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6440 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6442 break 2 6443 fi 6444 done 6445 done 6446 IFS=$as_save_IFS 6447 6448 fi ;; 6449 esac 6450 fi 6451 RANLIB=$ac_cv_prog_RANLIB 6452 if test -n "$RANLIB"; then 6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6454 printf "%s\n" "$RANLIB" >&6; } 6455 else 6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6457 printf "%s\n" "no" >&6; } 6458 fi 6459 6460 6461 fi 6462 if test -z "$ac_cv_prog_RANLIB"; then 6463 ac_ct_RANLIB=$RANLIB 6464 # Extract the first word of "ranlib", so it can be a program name with args. 6465 set dummy ranlib; ac_word=$2 6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6467 printf %s "checking for $ac_word... " >&6; } 6468 if test ${ac_cv_prog_ac_ct_RANLIB+y} 6469 then : 6470 printf %s "(cached) " >&6 6471 else case e in #( 6472 e) if test -n "$ac_ct_RANLIB"; then 6473 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6474 else 6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6476 for as_dir in $PATH 6477 do 6478 IFS=$as_save_IFS 6479 case $as_dir in #((( 6480 '') as_dir=./ ;; 6481 */) ;; 6482 *) as_dir=$as_dir/ ;; 6483 esac 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6486 ac_cv_prog_ac_ct_RANLIB="ranlib" 6487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490 done 6491 done 6492 IFS=$as_save_IFS 6493 6494 fi ;; 6495 esac 6496 fi 6497 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6498 if test -n "$ac_ct_RANLIB"; then 6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6500 printf "%s\n" "$ac_ct_RANLIB" >&6; } 6501 else 6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6503 printf "%s\n" "no" >&6; } 6504 fi 6505 6506 if test "x$ac_ct_RANLIB" = x; then 6507 RANLIB=":" 6508 else 6509 case $cross_compiling:$ac_tool_warned in 6510 yes:) 6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6512 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6513 ac_tool_warned=yes ;; 6514 esac 6515 RANLIB=$ac_ct_RANLIB 6516 fi 6517 else 6518 RANLIB="$ac_cv_prog_RANLIB" 6519 fi 6520 6521 if test -n "$ac_tool_prefix"; then 6522 for ac_prog in ar 6523 do 6524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6527 printf %s "checking for $ac_word... " >&6; } 6528 if test ${ac_cv_prog_AR+y} 6529 then : 6530 printf %s "(cached) " >&6 6531 else case e in #( 6532 e) if test -n "$AR"; then 6533 ac_cv_prog_AR="$AR" # Let the user override the test. 6534 else 6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6536 for as_dir in $PATH 6537 do 6538 IFS=$as_save_IFS 6539 case $as_dir in #((( 6540 '') as_dir=./ ;; 6541 */) ;; 6542 *) as_dir=$as_dir/ ;; 6543 esac 6544 for ac_exec_ext in '' $ac_executable_extensions; do 6545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6546 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6548 break 2 6549 fi 6550 done 6551 done 6552 IFS=$as_save_IFS 6553 6554 fi ;; 6555 esac 6556 fi 6557 AR=$ac_cv_prog_AR 6558 if test -n "$AR"; then 6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6560 printf "%s\n" "$AR" >&6; } 6561 else 6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6563 printf "%s\n" "no" >&6; } 6564 fi 6565 6566 6567 test -n "$AR" && break 6568 done 6569 fi 6570 if test -z "$AR"; then 6571 ac_ct_AR=$AR 6572 for ac_prog in ar 6573 do 6574 # Extract the first word of "$ac_prog", so it can be a program name with args. 6575 set dummy $ac_prog; ac_word=$2 6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6577 printf %s "checking for $ac_word... " >&6; } 6578 if test ${ac_cv_prog_ac_ct_AR+y} 6579 then : 6580 printf %s "(cached) " >&6 6581 else case e in #( 6582 e) if test -n "$ac_ct_AR"; then 6583 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6584 else 6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6586 for as_dir in $PATH 6587 do 6588 IFS=$as_save_IFS 6589 case $as_dir in #((( 6590 '') as_dir=./ ;; 6591 */) ;; 6592 *) as_dir=$as_dir/ ;; 6593 esac 6594 for ac_exec_ext in '' $ac_executable_extensions; do 6595 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6596 ac_cv_prog_ac_ct_AR="$ac_prog" 6597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6598 break 2 6599 fi 6600 done 6601 done 6602 IFS=$as_save_IFS 6603 6604 fi ;; 6605 esac 6606 fi 6607 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6608 if test -n "$ac_ct_AR"; then 6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6610 printf "%s\n" "$ac_ct_AR" >&6; } 6611 else 6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6613 printf "%s\n" "no" >&6; } 6614 fi 6615 6616 6617 test -n "$ac_ct_AR" && break 6618 done 6619 6620 if test "x$ac_ct_AR" = x; then 6621 AR="false" 6622 else 6623 case $cross_compiling:$ac_tool_warned in 6624 yes:) 6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6626 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6627 ac_tool_warned=yes ;; 6628 esac 6629 AR=$ac_ct_AR 6630 fi 6631 fi 6632 6633 : ${AR=ar} 6634 6635 6636 6637 6638 6639 6640 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 6641 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6642 # higher priority because that's what people were doing historically (setting 6643 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6644 # variable obsoleted/removed. 6645 6646 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6647 lt_ar_flags=$AR_FLAGS 6648 6649 6650 6651 6652 6653 6654 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6655 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6656 6657 6658 6659 6660 6661 6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6663 printf %s "checking for archiver @FILE support... " >&6; } 6664 if test ${lt_cv_ar_at_file+y} 6665 then : 6666 printf %s "(cached) " >&6 6667 else case e in #( 6668 e) lt_cv_ar_at_file=no 6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6670 /* end confdefs.h. */ 6671 6672 int 6673 main (void) 6674 { 6675 6676 ; 6677 return 0; 6678 } 6679 _ACEOF 6680 if ac_fn_c_try_compile "$LINENO" 6681 then : 6682 echo conftest.$ac_objext > conftest.lst 6683 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6685 (eval $lt_ar_try) 2>&5 6686 ac_status=$? 6687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6688 test $ac_status = 0; } 6689 if test 0 -eq "$ac_status"; then 6690 # Ensure the archiver fails upon bogus file names. 6691 rm -f conftest.$ac_objext libconftest.a 6692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6693 (eval $lt_ar_try) 2>&5 6694 ac_status=$? 6695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6696 test $ac_status = 0; } 6697 if test 0 -ne "$ac_status"; then 6698 lt_cv_ar_at_file=@ 6699 fi 6700 fi 6701 rm -f conftest.* libconftest.a 6702 6703 fi 6704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6705 ;; 6706 esac 6707 fi 6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6709 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6710 6711 if test no = "$lt_cv_ar_at_file"; then 6712 archiver_list_spec= 6713 else 6714 archiver_list_spec=$lt_cv_ar_at_file 6715 fi 6716 6717 6718 6719 6720 6721 6722 6723 if test -n "$ac_tool_prefix"; then 6724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6725 set dummy ${ac_tool_prefix}strip; ac_word=$2 6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6727 printf %s "checking for $ac_word... " >&6; } 6728 if test ${ac_cv_prog_STRIP+y} 6729 then : 6730 printf %s "(cached) " >&6 6731 else case e in #( 6732 e) if test -n "$STRIP"; then 6733 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6734 else 6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6736 for as_dir in $PATH 6737 do 6738 IFS=$as_save_IFS 6739 case $as_dir in #((( 6740 '') as_dir=./ ;; 6741 */) ;; 6742 *) as_dir=$as_dir/ ;; 6743 esac 6744 for ac_exec_ext in '' $ac_executable_extensions; do 6745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6746 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6748 break 2 6749 fi 6750 done 6751 done 6752 IFS=$as_save_IFS 6753 6754 fi ;; 6755 esac 6756 fi 6757 STRIP=$ac_cv_prog_STRIP 6758 if test -n "$STRIP"; then 6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6760 printf "%s\n" "$STRIP" >&6; } 6761 else 6762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6763 printf "%s\n" "no" >&6; } 6764 fi 6765 6766 6767 fi 6768 if test -z "$ac_cv_prog_STRIP"; then 6769 ac_ct_STRIP=$STRIP 6770 # Extract the first word of "strip", so it can be a program name with args. 6771 set dummy strip; ac_word=$2 6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6773 printf %s "checking for $ac_word... " >&6; } 6774 if test ${ac_cv_prog_ac_ct_STRIP+y} 6775 then : 6776 printf %s "(cached) " >&6 6777 else case e in #( 6778 e) if test -n "$ac_ct_STRIP"; then 6779 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6780 else 6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6782 for as_dir in $PATH 6783 do 6784 IFS=$as_save_IFS 6785 case $as_dir in #((( 6786 '') as_dir=./ ;; 6787 */) ;; 6788 *) as_dir=$as_dir/ ;; 6789 esac 6790 for ac_exec_ext in '' $ac_executable_extensions; do 6791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6792 ac_cv_prog_ac_ct_STRIP="strip" 6793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6794 break 2 6795 fi 6796 done 6797 done 6798 IFS=$as_save_IFS 6799 6800 fi ;; 6801 esac 6802 fi 6803 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6804 if test -n "$ac_ct_STRIP"; then 6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6806 printf "%s\n" "$ac_ct_STRIP" >&6; } 6807 else 6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6809 printf "%s\n" "no" >&6; } 6810 fi 6811 6812 if test "x$ac_ct_STRIP" = x; then 6813 STRIP=":" 6814 else 6815 case $cross_compiling:$ac_tool_warned in 6816 yes:) 6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6818 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6819 ac_tool_warned=yes ;; 6820 esac 6821 STRIP=$ac_ct_STRIP 6822 fi 6823 else 6824 STRIP="$ac_cv_prog_STRIP" 6825 fi 6826 6827 test -z "$STRIP" && STRIP=: 6828 6829 6830 6831 6832 6833 6834 6835 test -z "$RANLIB" && RANLIB=: 6836 6837 6838 6839 6840 6841 6842 # Determine commands to create old-style static archives. 6843 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6844 old_postinstall_cmds='chmod 644 $oldlib' 6845 old_postuninstall_cmds= 6846 6847 if test -n "$RANLIB"; then 6848 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6849 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6850 fi 6851 6852 case $host_os in 6853 darwin*) 6854 lock_old_archive_extraction=yes ;; 6855 *) 6856 lock_old_archive_extraction=no ;; 6857 esac 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 # If no C compiler was specified, use CC. 6898 LTCC=${LTCC-"$CC"} 6899 6900 # If no C compiler flags were specified, use CFLAGS. 6901 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6902 6903 # Allow CC to be a program name with arguments. 6904 compiler=$CC 6905 6906 6907 # Check for command to grab the raw symbol name followed by C symbol from nm. 6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6909 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6910 if test ${lt_cv_sys_global_symbol_pipe+y} 6911 then : 6912 printf %s "(cached) " >&6 6913 else case e in #( 6914 e) 6915 # These are sane defaults that work on at least a few old systems. 6916 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6917 6918 # Character class describing NM global symbol codes. 6919 symcode='[BCDEGRST]' 6920 6921 # Regexp to match symbols that can be accessed directly from C. 6922 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6923 6924 # Define system-specific variables. 6925 case $host_os in 6926 aix*) 6927 symcode='[BCDT]' 6928 ;; 6929 cygwin* | mingw* | windows* | pw32* | cegcc*) 6930 symcode='[ABCDGISTW]' 6931 ;; 6932 hpux*) 6933 if test ia64 = "$host_cpu"; then 6934 symcode='[ABCDEGRST]' 6935 fi 6936 ;; 6937 irix* | nonstopux*) 6938 symcode='[BCDEGRST]' 6939 ;; 6940 osf*) 6941 symcode='[BCDEGQRST]' 6942 ;; 6943 solaris*) 6944 symcode='[BCDRT]' 6945 ;; 6946 sco3.2v5*) 6947 symcode='[DT]' 6948 ;; 6949 sysv4.2uw2*) 6950 symcode='[DT]' 6951 ;; 6952 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6953 symcode='[ABDT]' 6954 ;; 6955 sysv4) 6956 symcode='[DFNSTU]' 6957 ;; 6958 esac 6959 6960 # If we're using GNU nm, then use its standard symbol codes. 6961 case `$NM -V 2>&1` in 6962 *GNU* | *'with BFD'*) 6963 symcode='[ABCDGIRSTW]' ;; 6964 esac 6965 6966 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6967 # Gets list of data symbols to import. 6968 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6969 # Adjust the below global symbol transforms to fixup imported variables. 6970 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6971 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6972 lt_c_name_lib_hook="\ 6973 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6974 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6975 else 6976 # Disable hooks by default. 6977 lt_cv_sys_global_symbol_to_import= 6978 lt_cdecl_hook= 6979 lt_c_name_hook= 6980 lt_c_name_lib_hook= 6981 fi 6982 6983 # Transform an extracted symbol line into a proper C declaration. 6984 # Some systems (esp. on ia64) link data and code symbols differently, 6985 # so use this general approach. 6986 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6987 $lt_cdecl_hook\ 6988 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6989 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6990 6991 # Transform an extracted symbol line into symbol name and symbol address 6992 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6993 $lt_c_name_hook\ 6994 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6995 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6996 6997 # Transform an extracted symbol line into symbol name with lib prefix and 6998 # symbol address. 6999 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7000 $lt_c_name_lib_hook\ 7001 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7002 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7003 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7004 7005 # Handle CRLF in mingw tool chain 7006 opt_cr= 7007 case $build_os in 7008 mingw* | windows*) 7009 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7010 ;; 7011 esac 7012 7013 # Try without a prefix underscore, then with it. 7014 for ac_symprfx in "" "_"; do 7015 7016 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7017 symxfrm="\\1 $ac_symprfx\\2 \\2" 7018 7019 # Write the raw and C identifiers. 7020 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7021 # Fake it for dumpbin and say T for any non-static function, 7022 # D for any global variable and I for any imported variable. 7023 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7024 # which start with @ or ?. 7025 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7026 " {last_section=section; section=\$ 3};"\ 7027 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7028 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7029 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7030 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7031 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7032 " \$ 0!~/External *\|/{next};"\ 7033 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7034 " {if(hide[section]) next};"\ 7035 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7036 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7037 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7038 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7039 " ' prfx=^$ac_symprfx" 7040 else 7041 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7042 fi 7043 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7044 7045 # Check to see that the pipe works correctly. 7046 pipe_works=no 7047 7048 rm -f conftest* 7049 cat > conftest.$ac_ext <<_LT_EOF 7050 #ifdef __cplusplus 7051 extern "C" { 7052 #endif 7053 char nm_test_var; 7054 void nm_test_func(void); 7055 void nm_test_func(void){} 7056 #ifdef __cplusplus 7057 } 7058 #endif 7059 int main(void){nm_test_var='a';nm_test_func();return(0);} 7060 _LT_EOF 7061 7062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7063 (eval $ac_compile) 2>&5 7064 ac_status=$? 7065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7066 test $ac_status = 0; }; then 7067 # Now try to grab the symbols. 7068 nlist=conftest.nm 7069 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7070 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7071 # Try sorting and uniquifying the output. 7072 if sort "$nlist" | uniq > "$nlist"T; then 7073 mv -f "$nlist"T "$nlist" 7074 else 7075 rm -f "$nlist"T 7076 fi 7077 7078 # Make sure that we snagged all the symbols we need. 7079 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7080 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7081 cat <<_LT_EOF > conftest.$ac_ext 7082 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7083 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7084 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7085 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7086 # define LT_DLSYM_CONST 7087 #elif defined __osf__ 7088 /* This system does not cope well with relocations in const data. */ 7089 # define LT_DLSYM_CONST 7090 #else 7091 # define LT_DLSYM_CONST const 7092 #endif 7093 7094 #ifdef __cplusplus 7095 extern "C" { 7096 #endif 7097 7098 _LT_EOF 7099 # Now generate the symbol file. 7100 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7101 7102 cat <<_LT_EOF >> conftest.$ac_ext 7103 7104 /* The mapping between symbol names and symbols. */ 7105 LT_DLSYM_CONST struct { 7106 const char *name; 7107 void *address; 7108 } 7109 lt__PROGRAM__LTX_preloaded_symbols[] = 7110 { 7111 { "@PROGRAM@", (void *) 0 }, 7112 _LT_EOF 7113 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7114 cat <<\_LT_EOF >> conftest.$ac_ext 7115 {0, (void *) 0} 7116 }; 7117 7118 /* This works around a problem in FreeBSD linker */ 7119 #ifdef FREEBSD_WORKAROUND 7120 static const void *lt_preloaded_setup() { 7121 return lt__PROGRAM__LTX_preloaded_symbols; 7122 } 7123 #endif 7124 7125 #ifdef __cplusplus 7126 } 7127 #endif 7128 _LT_EOF 7129 # Now try linking the two files. 7130 mv conftest.$ac_objext conftstm.$ac_objext 7131 lt_globsym_save_LIBS=$LIBS 7132 lt_globsym_save_CFLAGS=$CFLAGS 7133 LIBS=conftstm.$ac_objext 7134 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7136 (eval $ac_link) 2>&5 7137 ac_status=$? 7138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7139 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7140 pipe_works=yes 7141 fi 7142 LIBS=$lt_globsym_save_LIBS 7143 CFLAGS=$lt_globsym_save_CFLAGS 7144 else 7145 echo "cannot find nm_test_func in $nlist" >&5 7146 fi 7147 else 7148 echo "cannot find nm_test_var in $nlist" >&5 7149 fi 7150 else 7151 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7152 fi 7153 else 7154 echo "$progname: failed program was:" >&5 7155 cat conftest.$ac_ext >&5 7156 fi 7157 rm -rf conftest* conftst* 7158 7159 # Do not use the global_symbol_pipe unless it works. 7160 if test yes = "$pipe_works"; then 7161 break 7162 else 7163 lt_cv_sys_global_symbol_pipe= 7164 fi 7165 done 7166 ;; 7167 esac 7168 fi 7169 7170 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7171 lt_cv_sys_global_symbol_to_cdecl= 7172 fi 7173 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7175 printf "%s\n" "failed" >&6; } 7176 else 7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7178 printf "%s\n" "ok" >&6; } 7179 fi 7180 7181 # Response file support. 7182 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7183 nm_file_list_spec='@' 7184 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7185 nm_file_list_spec='@' 7186 fi 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7225 printf %s "checking for sysroot... " >&6; } 7226 7227 # Check whether --with-sysroot was given. 7228 if test ${with_sysroot+y} 7229 then : 7230 withval=$with_sysroot; 7231 else case e in #( 7232 e) with_sysroot=no ;; 7233 esac 7234 fi 7235 7236 7237 lt_sysroot= 7238 case $with_sysroot in #( 7239 yes) 7240 if test yes = "$GCC"; then 7241 # Trim trailing / since we'll always append absolute paths and we want 7242 # to avoid //, if only for less confusing output for the user. 7243 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 7244 fi 7245 ;; #( 7246 /*) 7247 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7248 ;; #( 7249 no|'') 7250 ;; #( 7251 *) 7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7253 printf "%s\n" "$with_sysroot" >&6; } 7254 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7255 ;; 7256 esac 7257 7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7259 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7260 7261 7262 7263 7264 7265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7266 printf %s "checking for a working dd... " >&6; } 7267 if test ${ac_cv_path_lt_DD+y} 7268 then : 7269 printf %s "(cached) " >&6 7270 else case e in #( 7271 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7272 cat conftest.i conftest.i >conftest2.i 7273 : ${lt_DD:=$DD} 7274 if test -z "$lt_DD"; then 7275 ac_path_lt_DD_found=false 7276 # Loop through the user's path and test for each of PROGNAME-LIST 7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7278 for as_dir in $PATH 7279 do 7280 IFS=$as_save_IFS 7281 case $as_dir in #((( 7282 '') as_dir=./ ;; 7283 */) ;; 7284 *) as_dir=$as_dir/ ;; 7285 esac 7286 for ac_prog in dd 7287 do 7288 for ac_exec_ext in '' $ac_executable_extensions; do 7289 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7290 as_fn_executable_p "$ac_path_lt_DD" || continue 7291 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7292 cmp -s conftest.i conftest.out \ 7293 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7294 fi 7295 $ac_path_lt_DD_found && break 3 7296 done 7297 done 7298 done 7299 IFS=$as_save_IFS 7300 if test -z "$ac_cv_path_lt_DD"; then 7301 : 7302 fi 7303 else 7304 ac_cv_path_lt_DD=$lt_DD 7305 fi 7306 7307 rm -f conftest.i conftest2.i conftest.out ;; 7308 esac 7309 fi 7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7311 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7312 7313 7314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7315 printf %s "checking how to truncate binary pipes... " >&6; } 7316 if test ${lt_cv_truncate_bin+y} 7317 then : 7318 printf %s "(cached) " >&6 7319 else case e in #( 7320 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7321 cat conftest.i conftest.i >conftest2.i 7322 lt_cv_truncate_bin= 7323 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7324 cmp -s conftest.i conftest.out \ 7325 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7326 fi 7327 rm -f conftest.i conftest2.i conftest.out 7328 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7329 esac 7330 fi 7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7332 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7333 7334 7335 7336 7337 7338 7339 7340 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7341 func_cc_basename () 7342 { 7343 for cc_temp in $*""; do 7344 case $cc_temp in 7345 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7346 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7347 \-*) ;; 7348 *) break;; 7349 esac 7350 done 7351 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7352 } 7353 7354 # Check whether --enable-libtool-lock was given. 7355 if test ${enable_libtool_lock+y} 7356 then : 7357 enableval=$enable_libtool_lock; 7358 fi 7359 7360 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7361 7362 # Some flags need to be propagated to the compiler or linker for good 7363 # libtool support. 7364 case $host in 7365 ia64-*-hpux*) 7366 # Find out what ABI is being produced by ac_compile, and set mode 7367 # options accordingly. 7368 echo 'int i;' > conftest.$ac_ext 7369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7370 (eval $ac_compile) 2>&5 7371 ac_status=$? 7372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7373 test $ac_status = 0; }; then 7374 case `$FILECMD conftest.$ac_objext` in 7375 *ELF-32*) 7376 HPUX_IA64_MODE=32 7377 ;; 7378 *ELF-64*) 7379 HPUX_IA64_MODE=64 7380 ;; 7381 esac 7382 fi 7383 rm -rf conftest* 7384 ;; 7385 *-*-irix6*) 7386 # Find out what ABI is being produced by ac_compile, and set linker 7387 # options accordingly. 7388 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7390 (eval $ac_compile) 2>&5 7391 ac_status=$? 7392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7393 test $ac_status = 0; }; then 7394 if test yes = "$lt_cv_prog_gnu_ld"; then 7395 case `$FILECMD conftest.$ac_objext` in 7396 *32-bit*) 7397 LD="${LD-ld} -melf32bsmip" 7398 ;; 7399 *N32*) 7400 LD="${LD-ld} -melf32bmipn32" 7401 ;; 7402 *64-bit*) 7403 LD="${LD-ld} -melf64bmip" 7404 ;; 7405 esac 7406 else 7407 case `$FILECMD conftest.$ac_objext` in 7408 *32-bit*) 7409 LD="${LD-ld} -32" 7410 ;; 7411 *N32*) 7412 LD="${LD-ld} -n32" 7413 ;; 7414 *64-bit*) 7415 LD="${LD-ld} -64" 7416 ;; 7417 esac 7418 fi 7419 fi 7420 rm -rf conftest* 7421 ;; 7422 7423 mips64*-*linux*) 7424 # Find out what ABI is being produced by ac_compile, and set linker 7425 # options accordingly. 7426 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7428 (eval $ac_compile) 2>&5 7429 ac_status=$? 7430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7431 test $ac_status = 0; }; then 7432 emul=elf 7433 case `$FILECMD conftest.$ac_objext` in 7434 *32-bit*) 7435 emul="${emul}32" 7436 ;; 7437 *64-bit*) 7438 emul="${emul}64" 7439 ;; 7440 esac 7441 case `$FILECMD conftest.$ac_objext` in 7442 *MSB*) 7443 emul="${emul}btsmip" 7444 ;; 7445 *LSB*) 7446 emul="${emul}ltsmip" 7447 ;; 7448 esac 7449 case `$FILECMD conftest.$ac_objext` in 7450 *N32*) 7451 emul="${emul}n32" 7452 ;; 7453 esac 7454 LD="${LD-ld} -m $emul" 7455 fi 7456 rm -rf conftest* 7457 ;; 7458 7459 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7460 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 7461 # Find out what ABI is being produced by ac_compile, and set linker 7462 # options accordingly. Note that the listed cases only cover the 7463 # situations where additional linker options are needed (such as when 7464 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7465 # vice versa); the common cases where no linker options are needed do 7466 # not appear in the list. 7467 echo 'int i;' > conftest.$ac_ext 7468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7469 (eval $ac_compile) 2>&5 7470 ac_status=$? 7471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7472 test $ac_status = 0; }; then 7473 case `$FILECMD conftest.o` in 7474 *32-bit*) 7475 case $host in 7476 x86_64-*kfreebsd*-gnu) 7477 LD="${LD-ld} -m elf_i386_fbsd" 7478 ;; 7479 x86_64-*linux*|x86_64-gnu*) 7480 case `$FILECMD conftest.o` in 7481 *x86-64*) 7482 LD="${LD-ld} -m elf32_x86_64" 7483 ;; 7484 *) 7485 LD="${LD-ld} -m elf_i386" 7486 ;; 7487 esac 7488 ;; 7489 powerpc64le-*linux*) 7490 LD="${LD-ld} -m elf32lppclinux" 7491 ;; 7492 powerpc64-*linux*) 7493 LD="${LD-ld} -m elf32ppclinux" 7494 ;; 7495 s390x-*linux*) 7496 LD="${LD-ld} -m elf_s390" 7497 ;; 7498 sparc64-*linux*) 7499 LD="${LD-ld} -m elf32_sparc" 7500 ;; 7501 esac 7502 ;; 7503 *64-bit*) 7504 case $host in 7505 x86_64-*kfreebsd*-gnu) 7506 LD="${LD-ld} -m elf_x86_64_fbsd" 7507 ;; 7508 x86_64-*linux*|x86_64-gnu*) 7509 LD="${LD-ld} -m elf_x86_64" 7510 ;; 7511 powerpcle-*linux*) 7512 LD="${LD-ld} -m elf64lppc" 7513 ;; 7514 powerpc-*linux*) 7515 LD="${LD-ld} -m elf64ppc" 7516 ;; 7517 s390*-*linux*|s390*-*tpf*) 7518 LD="${LD-ld} -m elf64_s390" 7519 ;; 7520 sparc*-*linux*) 7521 LD="${LD-ld} -m elf64_sparc" 7522 ;; 7523 esac 7524 ;; 7525 esac 7526 fi 7527 rm -rf conftest* 7528 ;; 7529 7530 *-*-sco3.2v5*) 7531 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7532 SAVE_CFLAGS=$CFLAGS 7533 CFLAGS="$CFLAGS -belf" 7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7535 printf %s "checking whether the C compiler needs -belf... " >&6; } 7536 if test ${lt_cv_cc_needs_belf+y} 7537 then : 7538 printf %s "(cached) " >&6 7539 else case e in #( 7540 e) ac_ext=c 7541 ac_cpp='$CPP $CPPFLAGS' 7542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7544 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7545 7546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7547 /* end confdefs.h. */ 7548 7549 int 7550 main (void) 7551 { 7552 7553 ; 7554 return 0; 7555 } 7556 _ACEOF 7557 if ac_fn_c_try_link "$LINENO" 7558 then : 7559 lt_cv_cc_needs_belf=yes 7560 else case e in #( 7561 e) lt_cv_cc_needs_belf=no ;; 7562 esac 7563 fi 7564 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7565 conftest$ac_exeext conftest.$ac_ext 7566 ac_ext=c 7567 ac_cpp='$CPP $CPPFLAGS' 7568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7570 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7571 ;; 7572 esac 7573 fi 7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7575 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7576 if test yes != "$lt_cv_cc_needs_belf"; then 7577 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7578 CFLAGS=$SAVE_CFLAGS 7579 fi 7580 ;; 7581 *-*solaris*) 7582 # Find out what ABI is being produced by ac_compile, and set linker 7583 # options accordingly. 7584 echo 'int i;' > conftest.$ac_ext 7585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7586 (eval $ac_compile) 2>&5 7587 ac_status=$? 7588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7589 test $ac_status = 0; }; then 7590 case `$FILECMD conftest.o` in 7591 *64-bit*) 7592 case $lt_cv_prog_gnu_ld in 7593 yes*) 7594 case $host in 7595 i?86-*-solaris*|x86_64-*-solaris*) 7596 LD="${LD-ld} -m elf_x86_64" 7597 ;; 7598 sparc*-*-solaris*) 7599 LD="${LD-ld} -m elf64_sparc" 7600 ;; 7601 esac 7602 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7603 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7604 LD=${LD-ld}_sol2 7605 fi 7606 ;; 7607 *) 7608 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7609 LD="${LD-ld} -64" 7610 fi 7611 ;; 7612 esac 7613 ;; 7614 esac 7615 fi 7616 rm -rf conftest* 7617 ;; 7618 esac 7619 7620 need_locks=$enable_libtool_lock 7621 7622 if test -n "$ac_tool_prefix"; then 7623 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7624 set dummy ${ac_tool_prefix}mt; ac_word=$2 7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7626 printf %s "checking for $ac_word... " >&6; } 7627 if test ${ac_cv_prog_MANIFEST_TOOL+y} 7628 then : 7629 printf %s "(cached) " >&6 7630 else case e in #( 7631 e) if test -n "$MANIFEST_TOOL"; then 7632 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7633 else 7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7635 for as_dir in $PATH 7636 do 7637 IFS=$as_save_IFS 7638 case $as_dir in #((( 7639 '') as_dir=./ ;; 7640 */) ;; 7641 *) as_dir=$as_dir/ ;; 7642 esac 7643 for ac_exec_ext in '' $ac_executable_extensions; do 7644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7645 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7647 break 2 7648 fi 7649 done 7650 done 7651 IFS=$as_save_IFS 7652 7653 fi ;; 7654 esac 7655 fi 7656 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7657 if test -n "$MANIFEST_TOOL"; then 7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7659 printf "%s\n" "$MANIFEST_TOOL" >&6; } 7660 else 7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7662 printf "%s\n" "no" >&6; } 7663 fi 7664 7665 7666 fi 7667 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7668 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7669 # Extract the first word of "mt", so it can be a program name with args. 7670 set dummy mt; ac_word=$2 7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7672 printf %s "checking for $ac_word... " >&6; } 7673 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7674 then : 7675 printf %s "(cached) " >&6 7676 else case e in #( 7677 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 7678 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7679 else 7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7681 for as_dir in $PATH 7682 do 7683 IFS=$as_save_IFS 7684 case $as_dir in #((( 7685 '') as_dir=./ ;; 7686 */) ;; 7687 *) as_dir=$as_dir/ ;; 7688 esac 7689 for ac_exec_ext in '' $ac_executable_extensions; do 7690 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7691 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7693 break 2 7694 fi 7695 done 7696 done 7697 IFS=$as_save_IFS 7698 7699 fi ;; 7700 esac 7701 fi 7702 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7703 if test -n "$ac_ct_MANIFEST_TOOL"; then 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7705 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7706 else 7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7708 printf "%s\n" "no" >&6; } 7709 fi 7710 7711 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7712 MANIFEST_TOOL=":" 7713 else 7714 case $cross_compiling:$ac_tool_warned in 7715 yes:) 7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7717 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7718 ac_tool_warned=yes ;; 7719 esac 7720 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7721 fi 7722 else 7723 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7724 fi 7725 7726 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7728 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7729 if test ${lt_cv_path_manifest_tool+y} 7730 then : 7731 printf %s "(cached) " >&6 7732 else case e in #( 7733 e) lt_cv_path_manifest_tool=no 7734 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7735 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7736 cat conftest.err >&5 7737 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7738 lt_cv_path_manifest_tool=yes 7739 fi 7740 rm -f conftest* ;; 7741 esac 7742 fi 7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 7744 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 7745 if test yes != "$lt_cv_path_manifest_tool"; then 7746 MANIFEST_TOOL=: 7747 fi 7748 7749 7750 7751 7752 7753 7754 case $host_os in 7755 rhapsody* | darwin*) 7756 if test -n "$ac_tool_prefix"; then 7757 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7758 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7760 printf %s "checking for $ac_word... " >&6; } 7761 if test ${ac_cv_prog_DSYMUTIL+y} 7762 then : 7763 printf %s "(cached) " >&6 7764 else case e in #( 7765 e) if test -n "$DSYMUTIL"; then 7766 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7767 else 7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7769 for as_dir in $PATH 7770 do 7771 IFS=$as_save_IFS 7772 case $as_dir in #((( 7773 '') as_dir=./ ;; 7774 */) ;; 7775 *) as_dir=$as_dir/ ;; 7776 esac 7777 for ac_exec_ext in '' $ac_executable_extensions; do 7778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7779 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7781 break 2 7782 fi 7783 done 7784 done 7785 IFS=$as_save_IFS 7786 7787 fi ;; 7788 esac 7789 fi 7790 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7791 if test -n "$DSYMUTIL"; then 7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7793 printf "%s\n" "$DSYMUTIL" >&6; } 7794 else 7795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7796 printf "%s\n" "no" >&6; } 7797 fi 7798 7799 7800 fi 7801 if test -z "$ac_cv_prog_DSYMUTIL"; then 7802 ac_ct_DSYMUTIL=$DSYMUTIL 7803 # Extract the first word of "dsymutil", so it can be a program name with args. 7804 set dummy dsymutil; ac_word=$2 7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7806 printf %s "checking for $ac_word... " >&6; } 7807 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7808 then : 7809 printf %s "(cached) " >&6 7810 else case e in #( 7811 e) if test -n "$ac_ct_DSYMUTIL"; then 7812 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7813 else 7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7815 for as_dir in $PATH 7816 do 7817 IFS=$as_save_IFS 7818 case $as_dir in #((( 7819 '') as_dir=./ ;; 7820 */) ;; 7821 *) as_dir=$as_dir/ ;; 7822 esac 7823 for ac_exec_ext in '' $ac_executable_extensions; do 7824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7825 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7827 break 2 7828 fi 7829 done 7830 done 7831 IFS=$as_save_IFS 7832 7833 fi ;; 7834 esac 7835 fi 7836 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7837 if test -n "$ac_ct_DSYMUTIL"; then 7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7839 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7840 else 7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7842 printf "%s\n" "no" >&6; } 7843 fi 7844 7845 if test "x$ac_ct_DSYMUTIL" = x; then 7846 DSYMUTIL=":" 7847 else 7848 case $cross_compiling:$ac_tool_warned in 7849 yes:) 7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7851 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7852 ac_tool_warned=yes ;; 7853 esac 7854 DSYMUTIL=$ac_ct_DSYMUTIL 7855 fi 7856 else 7857 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7858 fi 7859 7860 if test -n "$ac_tool_prefix"; then 7861 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7862 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7864 printf %s "checking for $ac_word... " >&6; } 7865 if test ${ac_cv_prog_NMEDIT+y} 7866 then : 7867 printf %s "(cached) " >&6 7868 else case e in #( 7869 e) if test -n "$NMEDIT"; then 7870 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7871 else 7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7873 for as_dir in $PATH 7874 do 7875 IFS=$as_save_IFS 7876 case $as_dir in #((( 7877 '') as_dir=./ ;; 7878 */) ;; 7879 *) as_dir=$as_dir/ ;; 7880 esac 7881 for ac_exec_ext in '' $ac_executable_extensions; do 7882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7883 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7885 break 2 7886 fi 7887 done 7888 done 7889 IFS=$as_save_IFS 7890 7891 fi ;; 7892 esac 7893 fi 7894 NMEDIT=$ac_cv_prog_NMEDIT 7895 if test -n "$NMEDIT"; then 7896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7897 printf "%s\n" "$NMEDIT" >&6; } 7898 else 7899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7900 printf "%s\n" "no" >&6; } 7901 fi 7902 7903 7904 fi 7905 if test -z "$ac_cv_prog_NMEDIT"; then 7906 ac_ct_NMEDIT=$NMEDIT 7907 # Extract the first word of "nmedit", so it can be a program name with args. 7908 set dummy nmedit; ac_word=$2 7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7910 printf %s "checking for $ac_word... " >&6; } 7911 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7912 then : 7913 printf %s "(cached) " >&6 7914 else case e in #( 7915 e) if test -n "$ac_ct_NMEDIT"; then 7916 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7917 else 7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7919 for as_dir in $PATH 7920 do 7921 IFS=$as_save_IFS 7922 case $as_dir in #((( 7923 '') as_dir=./ ;; 7924 */) ;; 7925 *) as_dir=$as_dir/ ;; 7926 esac 7927 for ac_exec_ext in '' $ac_executable_extensions; do 7928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7929 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7931 break 2 7932 fi 7933 done 7934 done 7935 IFS=$as_save_IFS 7936 7937 fi ;; 7938 esac 7939 fi 7940 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7941 if test -n "$ac_ct_NMEDIT"; then 7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7943 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7944 else 7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7946 printf "%s\n" "no" >&6; } 7947 fi 7948 7949 if test "x$ac_ct_NMEDIT" = x; then 7950 NMEDIT=":" 7951 else 7952 case $cross_compiling:$ac_tool_warned in 7953 yes:) 7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7955 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7956 ac_tool_warned=yes ;; 7957 esac 7958 NMEDIT=$ac_ct_NMEDIT 7959 fi 7960 else 7961 NMEDIT="$ac_cv_prog_NMEDIT" 7962 fi 7963 7964 if test -n "$ac_tool_prefix"; then 7965 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7966 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7968 printf %s "checking for $ac_word... " >&6; } 7969 if test ${ac_cv_prog_LIPO+y} 7970 then : 7971 printf %s "(cached) " >&6 7972 else case e in #( 7973 e) if test -n "$LIPO"; then 7974 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7975 else 7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7977 for as_dir in $PATH 7978 do 7979 IFS=$as_save_IFS 7980 case $as_dir in #((( 7981 '') as_dir=./ ;; 7982 */) ;; 7983 *) as_dir=$as_dir/ ;; 7984 esac 7985 for ac_exec_ext in '' $ac_executable_extensions; do 7986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7987 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7989 break 2 7990 fi 7991 done 7992 done 7993 IFS=$as_save_IFS 7994 7995 fi ;; 7996 esac 7997 fi 7998 LIPO=$ac_cv_prog_LIPO 7999 if test -n "$LIPO"; then 8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8001 printf "%s\n" "$LIPO" >&6; } 8002 else 8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8004 printf "%s\n" "no" >&6; } 8005 fi 8006 8007 8008 fi 8009 if test -z "$ac_cv_prog_LIPO"; then 8010 ac_ct_LIPO=$LIPO 8011 # Extract the first word of "lipo", so it can be a program name with args. 8012 set dummy lipo; ac_word=$2 8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8014 printf %s "checking for $ac_word... " >&6; } 8015 if test ${ac_cv_prog_ac_ct_LIPO+y} 8016 then : 8017 printf %s "(cached) " >&6 8018 else case e in #( 8019 e) if test -n "$ac_ct_LIPO"; then 8020 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8021 else 8022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8023 for as_dir in $PATH 8024 do 8025 IFS=$as_save_IFS 8026 case $as_dir in #((( 8027 '') as_dir=./ ;; 8028 */) ;; 8029 *) as_dir=$as_dir/ ;; 8030 esac 8031 for ac_exec_ext in '' $ac_executable_extensions; do 8032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8033 ac_cv_prog_ac_ct_LIPO="lipo" 8034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8035 break 2 8036 fi 8037 done 8038 done 8039 IFS=$as_save_IFS 8040 8041 fi ;; 8042 esac 8043 fi 8044 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8045 if test -n "$ac_ct_LIPO"; then 8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8047 printf "%s\n" "$ac_ct_LIPO" >&6; } 8048 else 8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8050 printf "%s\n" "no" >&6; } 8051 fi 8052 8053 if test "x$ac_ct_LIPO" = x; then 8054 LIPO=":" 8055 else 8056 case $cross_compiling:$ac_tool_warned in 8057 yes:) 8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8059 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8060 ac_tool_warned=yes ;; 8061 esac 8062 LIPO=$ac_ct_LIPO 8063 fi 8064 else 8065 LIPO="$ac_cv_prog_LIPO" 8066 fi 8067 8068 if test -n "$ac_tool_prefix"; then 8069 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8070 set dummy ${ac_tool_prefix}otool; ac_word=$2 8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8072 printf %s "checking for $ac_word... " >&6; } 8073 if test ${ac_cv_prog_OTOOL+y} 8074 then : 8075 printf %s "(cached) " >&6 8076 else case e in #( 8077 e) if test -n "$OTOOL"; then 8078 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8079 else 8080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8081 for as_dir in $PATH 8082 do 8083 IFS=$as_save_IFS 8084 case $as_dir in #((( 8085 '') as_dir=./ ;; 8086 */) ;; 8087 *) as_dir=$as_dir/ ;; 8088 esac 8089 for ac_exec_ext in '' $ac_executable_extensions; do 8090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8091 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8093 break 2 8094 fi 8095 done 8096 done 8097 IFS=$as_save_IFS 8098 8099 fi ;; 8100 esac 8101 fi 8102 OTOOL=$ac_cv_prog_OTOOL 8103 if test -n "$OTOOL"; then 8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8105 printf "%s\n" "$OTOOL" >&6; } 8106 else 8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8108 printf "%s\n" "no" >&6; } 8109 fi 8110 8111 8112 fi 8113 if test -z "$ac_cv_prog_OTOOL"; then 8114 ac_ct_OTOOL=$OTOOL 8115 # Extract the first word of "otool", so it can be a program name with args. 8116 set dummy otool; ac_word=$2 8117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8118 printf %s "checking for $ac_word... " >&6; } 8119 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8120 then : 8121 printf %s "(cached) " >&6 8122 else case e in #( 8123 e) if test -n "$ac_ct_OTOOL"; then 8124 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8125 else 8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8127 for as_dir in $PATH 8128 do 8129 IFS=$as_save_IFS 8130 case $as_dir in #((( 8131 '') as_dir=./ ;; 8132 */) ;; 8133 *) as_dir=$as_dir/ ;; 8134 esac 8135 for ac_exec_ext in '' $ac_executable_extensions; do 8136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8137 ac_cv_prog_ac_ct_OTOOL="otool" 8138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8139 break 2 8140 fi 8141 done 8142 done 8143 IFS=$as_save_IFS 8144 8145 fi ;; 8146 esac 8147 fi 8148 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8149 if test -n "$ac_ct_OTOOL"; then 8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8151 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8152 else 8153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8154 printf "%s\n" "no" >&6; } 8155 fi 8156 8157 if test "x$ac_ct_OTOOL" = x; then 8158 OTOOL=":" 8159 else 8160 case $cross_compiling:$ac_tool_warned in 8161 yes:) 8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8163 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8164 ac_tool_warned=yes ;; 8165 esac 8166 OTOOL=$ac_ct_OTOOL 8167 fi 8168 else 8169 OTOOL="$ac_cv_prog_OTOOL" 8170 fi 8171 8172 if test -n "$ac_tool_prefix"; then 8173 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8174 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8176 printf %s "checking for $ac_word... " >&6; } 8177 if test ${ac_cv_prog_OTOOL64+y} 8178 then : 8179 printf %s "(cached) " >&6 8180 else case e in #( 8181 e) if test -n "$OTOOL64"; then 8182 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8183 else 8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8185 for as_dir in $PATH 8186 do 8187 IFS=$as_save_IFS 8188 case $as_dir in #((( 8189 '') as_dir=./ ;; 8190 */) ;; 8191 *) as_dir=$as_dir/ ;; 8192 esac 8193 for ac_exec_ext in '' $ac_executable_extensions; do 8194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8195 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8197 break 2 8198 fi 8199 done 8200 done 8201 IFS=$as_save_IFS 8202 8203 fi ;; 8204 esac 8205 fi 8206 OTOOL64=$ac_cv_prog_OTOOL64 8207 if test -n "$OTOOL64"; then 8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8209 printf "%s\n" "$OTOOL64" >&6; } 8210 else 8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8212 printf "%s\n" "no" >&6; } 8213 fi 8214 8215 8216 fi 8217 if test -z "$ac_cv_prog_OTOOL64"; then 8218 ac_ct_OTOOL64=$OTOOL64 8219 # Extract the first word of "otool64", so it can be a program name with args. 8220 set dummy otool64; ac_word=$2 8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8222 printf %s "checking for $ac_word... " >&6; } 8223 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8224 then : 8225 printf %s "(cached) " >&6 8226 else case e in #( 8227 e) if test -n "$ac_ct_OTOOL64"; then 8228 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8229 else 8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8231 for as_dir in $PATH 8232 do 8233 IFS=$as_save_IFS 8234 case $as_dir in #((( 8235 '') as_dir=./ ;; 8236 */) ;; 8237 *) as_dir=$as_dir/ ;; 8238 esac 8239 for ac_exec_ext in '' $ac_executable_extensions; do 8240 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8241 ac_cv_prog_ac_ct_OTOOL64="otool64" 8242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8243 break 2 8244 fi 8245 done 8246 done 8247 IFS=$as_save_IFS 8248 8249 fi ;; 8250 esac 8251 fi 8252 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8253 if test -n "$ac_ct_OTOOL64"; then 8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8255 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8256 else 8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8258 printf "%s\n" "no" >&6; } 8259 fi 8260 8261 if test "x$ac_ct_OTOOL64" = x; then 8262 OTOOL64=":" 8263 else 8264 case $cross_compiling:$ac_tool_warned in 8265 yes:) 8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8267 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8268 ac_tool_warned=yes ;; 8269 esac 8270 OTOOL64=$ac_ct_OTOOL64 8271 fi 8272 else 8273 OTOOL64="$ac_cv_prog_OTOOL64" 8274 fi 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8303 printf %s "checking for -single_module linker flag... " >&6; } 8304 if test ${lt_cv_apple_cc_single_mod+y} 8305 then : 8306 printf %s "(cached) " >&6 8307 else case e in #( 8308 e) lt_cv_apple_cc_single_mod=no 8309 if test -z "$LT_MULTI_MODULE"; then 8310 # By default we will add the -single_module flag. You can override 8311 # by either setting the environment variable LT_MULTI_MODULE 8312 # non-empty at configure time, or by adding -multi_module to the 8313 # link flags. 8314 rm -rf libconftest.dylib* 8315 echo "int foo(void){return 1;}" > conftest.c 8316 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8317 -dynamiclib -Wl,-single_module conftest.c" >&5 8318 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8319 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8320 _lt_result=$? 8321 # If there is a non-empty error log, and "single_module" 8322 # appears in it, assume the flag caused a linker warning 8323 if test -s conftest.err && $GREP single_module conftest.err; then 8324 cat conftest.err >&5 8325 # Otherwise, if the output was created with a 0 exit code from 8326 # the compiler, it worked. 8327 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8328 lt_cv_apple_cc_single_mod=yes 8329 else 8330 cat conftest.err >&5 8331 fi 8332 rm -rf libconftest.dylib* 8333 rm -f conftest.* 8334 fi ;; 8335 esac 8336 fi 8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8338 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8339 8340 # Feature test to disable chained fixups since it is not 8341 # compatible with '-undefined dynamic_lookup' 8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 8343 printf %s "checking for -no_fixup_chains linker flag... " >&6; } 8344 if test ${lt_cv_support_no_fixup_chains+y} 8345 then : 8346 printf %s "(cached) " >&6 8347 else case e in #( 8348 e) save_LDFLAGS=$LDFLAGS 8349 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8351 /* end confdefs.h. */ 8352 8353 int 8354 main (void) 8355 { 8356 8357 ; 8358 return 0; 8359 } 8360 _ACEOF 8361 if ac_fn_c_try_link "$LINENO" 8362 then : 8363 lt_cv_support_no_fixup_chains=yes 8364 else case e in #( 8365 e) lt_cv_support_no_fixup_chains=no 8366 ;; 8367 esac 8368 fi 8369 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8370 conftest$ac_exeext conftest.$ac_ext 8371 LDFLAGS=$save_LDFLAGS 8372 8373 ;; 8374 esac 8375 fi 8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 8377 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 8378 8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8380 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8381 if test ${lt_cv_ld_exported_symbols_list+y} 8382 then : 8383 printf %s "(cached) " >&6 8384 else case e in #( 8385 e) lt_cv_ld_exported_symbols_list=no 8386 save_LDFLAGS=$LDFLAGS 8387 echo "_main" > conftest.sym 8388 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8390 /* end confdefs.h. */ 8391 8392 int 8393 main (void) 8394 { 8395 8396 ; 8397 return 0; 8398 } 8399 _ACEOF 8400 if ac_fn_c_try_link "$LINENO" 8401 then : 8402 lt_cv_ld_exported_symbols_list=yes 8403 else case e in #( 8404 e) lt_cv_ld_exported_symbols_list=no ;; 8405 esac 8406 fi 8407 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8408 conftest$ac_exeext conftest.$ac_ext 8409 LDFLAGS=$save_LDFLAGS 8410 ;; 8411 esac 8412 fi 8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8414 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8415 8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8417 printf %s "checking for -force_load linker flag... " >&6; } 8418 if test ${lt_cv_ld_force_load+y} 8419 then : 8420 printf %s "(cached) " >&6 8421 else case e in #( 8422 e) lt_cv_ld_force_load=no 8423 cat > conftest.c << _LT_EOF 8424 int forced_loaded() { return 2;} 8425 _LT_EOF 8426 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8427 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8428 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8429 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8430 echo "$RANLIB libconftest.a" >&5 8431 $RANLIB libconftest.a 2>&5 8432 cat > conftest.c << _LT_EOF 8433 int main(void) { return 0;} 8434 _LT_EOF 8435 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8436 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8437 _lt_result=$? 8438 if test -s conftest.err && $GREP force_load conftest.err; then 8439 cat conftest.err >&5 8440 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8441 lt_cv_ld_force_load=yes 8442 else 8443 cat conftest.err >&5 8444 fi 8445 rm -f conftest.err libconftest.a conftest conftest.c 8446 rm -rf conftest.dSYM 8447 ;; 8448 esac 8449 fi 8450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8451 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8452 case $host_os in 8453 rhapsody* | darwin1.[012]) 8454 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8455 darwin1.*) 8456 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8457 darwin*) 8458 case $MACOSX_DEPLOYMENT_TARGET,$host in 8459 10.[012],*|,*powerpc*-darwin[5-8]*) 8460 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8461 *) 8462 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 8463 if test yes = "$lt_cv_support_no_fixup_chains"; then 8464 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 8465 fi 8466 ;; 8467 esac 8468 ;; 8469 esac 8470 if test yes = "$lt_cv_apple_cc_single_mod"; then 8471 _lt_dar_single_mod='$single_module' 8472 fi 8473 _lt_dar_needs_single_mod=no 8474 case $host_os in 8475 rhapsody* | darwin1.*) 8476 _lt_dar_needs_single_mod=yes ;; 8477 darwin*) 8478 # When targeting Mac OS X 10.4 (darwin 8) or later, 8479 # -single_module is the default and -multi_module is unsupported. 8480 # The toolchain on macOS 10.14 (darwin 18) and later cannot 8481 # target any OS version that needs -single_module. 8482 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8483 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 8484 _lt_dar_needs_single_mod=yes ;; 8485 esac 8486 ;; 8487 esac 8488 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8489 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8490 else 8491 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8492 fi 8493 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8494 _lt_dsymutil='~$DSYMUTIL $lib || :' 8495 else 8496 _lt_dsymutil= 8497 fi 8498 ;; 8499 esac 8500 8501 # func_munge_path_list VARIABLE PATH 8502 # ----------------------------------- 8503 # VARIABLE is name of variable containing _space_ separated list of 8504 # directories to be munged by the contents of PATH, which is string 8505 # having a format: 8506 # "DIR[:DIR]:" 8507 # string "DIR[ DIR]" will be prepended to VARIABLE 8508 # ":DIR[:DIR]" 8509 # string "DIR[ DIR]" will be appended to VARIABLE 8510 # "DIRP[:DIRP]::[DIRA:]DIRA" 8511 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8512 # "DIRA[ DIRA]" will be appended to VARIABLE 8513 # "DIR[:DIR]" 8514 # VARIABLE will be replaced by "DIR[ DIR]" 8515 func_munge_path_list () 8516 { 8517 case x$2 in 8518 x) 8519 ;; 8520 *:) 8521 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8522 ;; 8523 x:*) 8524 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8525 ;; 8526 *::*) 8527 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8528 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8529 ;; 8530 *) 8531 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8532 ;; 8533 esac 8534 } 8535 8536 ac_header= ac_cache= 8537 for ac_item in $ac_header_c_list 8538 do 8539 if test $ac_cache; then 8540 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8541 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8542 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8543 fi 8544 ac_header= ac_cache= 8545 elif test $ac_header; then 8546 ac_cache=$ac_item 8547 else 8548 ac_header=$ac_item 8549 fi 8550 done 8551 8552 8553 8554 8555 8556 8557 8558 8559 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8560 then : 8561 8562 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8563 8564 fi 8565 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8566 " 8567 if test "x$ac_cv_header_dlfcn_h" = xyes 8568 then : 8569 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8570 8571 fi 8572 8573 8574 8575 8576 8577 # Set options 8578 8579 8580 8581 enable_dlopen=no 8582 8583 8584 enable_win32_dll=no 8585 8586 8587 # Check whether --enable-shared was given. 8588 if test ${enable_shared+y} 8589 then : 8590 enableval=$enable_shared; p=${PACKAGE-default} 8591 case $enableval in 8592 yes) enable_shared=yes ;; 8593 no) enable_shared=no ;; 8594 *) 8595 enable_shared=no 8596 # Look at the argument we got. We use all the common list separators. 8597 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8598 for pkg in $enableval; do 8599 IFS=$lt_save_ifs 8600 if test "X$pkg" = "X$p"; then 8601 enable_shared=yes 8602 fi 8603 done 8604 IFS=$lt_save_ifs 8605 ;; 8606 esac 8607 else case e in #( 8608 e) enable_shared=yes ;; 8609 esac 8610 fi 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 # Check whether --enable-static was given. 8621 if test ${enable_static+y} 8622 then : 8623 enableval=$enable_static; p=${PACKAGE-default} 8624 case $enableval in 8625 yes) enable_static=yes ;; 8626 no) enable_static=no ;; 8627 *) 8628 enable_static=no 8629 # Look at the argument we got. We use all the common list separators. 8630 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8631 for pkg in $enableval; do 8632 IFS=$lt_save_ifs 8633 if test "X$pkg" = "X$p"; then 8634 enable_static=yes 8635 fi 8636 done 8637 IFS=$lt_save_ifs 8638 ;; 8639 esac 8640 else case e in #( 8641 e) enable_static=yes ;; 8642 esac 8643 fi 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 # Check whether --enable-pic was given. 8654 if test ${enable_pic+y} 8655 then : 8656 enableval=$enable_pic; lt_p=${PACKAGE-default} 8657 case $enableval in 8658 yes|no) pic_mode=$enableval ;; 8659 *) 8660 pic_mode=default 8661 # Look at the argument we got. We use all the common list separators. 8662 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8663 for lt_pkg in $enableval; do 8664 IFS=$lt_save_ifs 8665 if test "X$lt_pkg" = "X$lt_p"; then 8666 pic_mode=yes 8667 fi 8668 done 8669 IFS=$lt_save_ifs 8670 ;; 8671 esac 8672 else case e in #( 8673 e) # Check whether --with-pic was given. 8674 if test ${with_pic+y} 8675 then : 8676 withval=$with_pic; lt_p=${PACKAGE-default} 8677 case $withval in 8678 yes|no) pic_mode=$withval ;; 8679 *) 8680 pic_mode=default 8681 # Look at the argument we got. We use all the common list separators. 8682 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8683 for lt_pkg in $withval; do 8684 IFS=$lt_save_ifs 8685 if test "X$lt_pkg" = "X$lt_p"; then 8686 pic_mode=yes 8687 fi 8688 done 8689 IFS=$lt_save_ifs 8690 ;; 8691 esac 8692 else case e in #( 8693 e) pic_mode=default ;; 8694 esac 8695 fi 8696 8697 ;; 8698 esac 8699 fi 8700 8701 8702 8703 8704 8705 8706 8707 8708 # Check whether --enable-fast-install was given. 8709 if test ${enable_fast_install+y} 8710 then : 8711 enableval=$enable_fast_install; p=${PACKAGE-default} 8712 case $enableval in 8713 yes) enable_fast_install=yes ;; 8714 no) enable_fast_install=no ;; 8715 *) 8716 enable_fast_install=no 8717 # Look at the argument we got. We use all the common list separators. 8718 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8719 for pkg in $enableval; do 8720 IFS=$lt_save_ifs 8721 if test "X$pkg" = "X$p"; then 8722 enable_fast_install=yes 8723 fi 8724 done 8725 IFS=$lt_save_ifs 8726 ;; 8727 esac 8728 else case e in #( 8729 e) enable_fast_install=yes ;; 8730 esac 8731 fi 8732 8733 8734 8735 8736 8737 8738 8739 8740 shared_archive_member_spec= 8741 case $host,$enable_shared in 8742 power*-*-aix[5-9]*,yes) 8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8744 printf %s "checking which variant of shared library versioning to provide... " >&6; } 8745 # Check whether --enable-aix-soname was given. 8746 if test ${enable_aix_soname+y} 8747 then : 8748 enableval=$enable_aix_soname; case $enableval in 8749 aix|svr4|both) 8750 ;; 8751 *) 8752 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 8753 ;; 8754 esac 8755 lt_cv_with_aix_soname=$enable_aix_soname 8756 else case e in #( 8757 e) # Check whether --with-aix-soname was given. 8758 if test ${with_aix_soname+y} 8759 then : 8760 withval=$with_aix_soname; case $withval in 8761 aix|svr4|both) 8762 ;; 8763 *) 8764 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8765 ;; 8766 esac 8767 lt_cv_with_aix_soname=$with_aix_soname 8768 else case e in #( 8769 e) if test ${lt_cv_with_aix_soname+y} 8770 then : 8771 printf %s "(cached) " >&6 8772 else case e in #( 8773 e) lt_cv_with_aix_soname=aix ;; 8774 esac 8775 fi 8776 ;; 8777 esac 8778 fi 8779 8780 enable_aix_soname=$lt_cv_with_aix_soname ;; 8781 esac 8782 fi 8783 8784 with_aix_soname=$enable_aix_soname 8785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8786 printf "%s\n" "$with_aix_soname" >&6; } 8787 if test aix != "$with_aix_soname"; then 8788 # For the AIX way of multilib, we name the shared archive member 8789 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8790 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8791 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8792 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8793 if test 64 = "${OBJECT_MODE-32}"; then 8794 shared_archive_member_spec=shr_64 8795 else 8796 shared_archive_member_spec=shr 8797 fi 8798 fi 8799 ;; 8800 *) 8801 with_aix_soname=aix 8802 ;; 8803 esac 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 # This can be used to rebuild libtool when needed 8815 LIBTOOL_DEPS=$ltmain 8816 8817 # Always use our own libtool. 8818 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 test -z "$LN_S" && LN_S="ln -s" 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 if test -n "${ZSH_VERSION+set}"; then 8865 setopt NO_GLOB_SUBST 8866 fi 8867 8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8869 printf %s "checking for objdir... " >&6; } 8870 if test ${lt_cv_objdir+y} 8871 then : 8872 printf %s "(cached) " >&6 8873 else case e in #( 8874 e) rm -f .libs 2>/dev/null 8875 mkdir .libs 2>/dev/null 8876 if test -d .libs; then 8877 lt_cv_objdir=.libs 8878 else 8879 # MS-DOS does not allow filenames that begin with a dot. 8880 lt_cv_objdir=_libs 8881 fi 8882 rmdir .libs 2>/dev/null ;; 8883 esac 8884 fi 8885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8886 printf "%s\n" "$lt_cv_objdir" >&6; } 8887 objdir=$lt_cv_objdir 8888 8889 8890 8891 8892 8893 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8894 8895 8896 8897 8898 case $host_os in 8899 aix3*) 8900 # AIX sometimes has problems with the GCC collect2 program. For some 8901 # reason, if we set the COLLECT_NAMES environment variable, the problems 8902 # vanish in a puff of smoke. 8903 if test set != "${COLLECT_NAMES+set}"; then 8904 COLLECT_NAMES= 8905 export COLLECT_NAMES 8906 fi 8907 ;; 8908 esac 8909 8910 # Global variables: 8911 ofile=libtool 8912 can_build_shared=yes 8913 8914 # All known linkers require a '.a' archive for static linking (except MSVC and 8915 # ICC, which need '.lib'). 8916 libext=a 8917 8918 with_gnu_ld=$lt_cv_prog_gnu_ld 8919 8920 old_CC=$CC 8921 old_CFLAGS=$CFLAGS 8922 8923 # Set sane defaults for various variables 8924 test -z "$CC" && CC=cc 8925 test -z "$LTCC" && LTCC=$CC 8926 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8927 test -z "$LD" && LD=ld 8928 test -z "$ac_objext" && ac_objext=o 8929 8930 func_cc_basename $compiler 8931 cc_basename=$func_cc_basename_result 8932 8933 8934 # Only perform the check for file, if the check method requires it 8935 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8936 case $deplibs_check_method in 8937 file_magic*) 8938 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8940 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8941 if test ${lt_cv_path_MAGIC_CMD+y} 8942 then : 8943 printf %s "(cached) " >&6 8944 else case e in #( 8945 e) case $MAGIC_CMD in 8946 [\\/*] | ?:[\\/]*) 8947 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8948 ;; 8949 *) 8950 lt_save_MAGIC_CMD=$MAGIC_CMD 8951 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8952 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8953 for ac_dir in $ac_dummy; do 8954 IFS=$lt_save_ifs 8955 test -z "$ac_dir" && ac_dir=. 8956 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8957 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8958 if test -n "$file_magic_test_file"; then 8959 case $deplibs_check_method in 8960 "file_magic "*) 8961 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8962 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8963 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8964 $EGREP "$file_magic_regex" > /dev/null; then 8965 : 8966 else 8967 cat <<_LT_EOF 1>&2 8968 8969 *** Warning: the command libtool uses to detect shared libraries, 8970 *** $file_magic_cmd, produces output that libtool cannot recognize. 8971 *** The result is that libtool may fail to recognize shared libraries 8972 *** as such. This will affect the creation of libtool libraries that 8973 *** depend on shared libraries, but programs linked with such libtool 8974 *** libraries will work regardless of this problem. Nevertheless, you 8975 *** may want to report the problem to your system manager and/or to 8976 *** bug-libtool@gnu.org 8977 8978 _LT_EOF 8979 fi ;; 8980 esac 8981 fi 8982 break 8983 fi 8984 done 8985 IFS=$lt_save_ifs 8986 MAGIC_CMD=$lt_save_MAGIC_CMD 8987 ;; 8988 esac ;; 8989 esac 8990 fi 8991 8992 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8993 if test -n "$MAGIC_CMD"; then 8994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8995 printf "%s\n" "$MAGIC_CMD" >&6; } 8996 else 8997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8998 printf "%s\n" "no" >&6; } 8999 fi 9000 9001 9002 9003 9004 9005 if test -z "$lt_cv_path_MAGIC_CMD"; then 9006 if test -n "$ac_tool_prefix"; then 9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9008 printf %s "checking for file... " >&6; } 9009 if test ${lt_cv_path_MAGIC_CMD+y} 9010 then : 9011 printf %s "(cached) " >&6 9012 else case e in #( 9013 e) case $MAGIC_CMD in 9014 [\\/*] | ?:[\\/]*) 9015 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9016 ;; 9017 *) 9018 lt_save_MAGIC_CMD=$MAGIC_CMD 9019 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9020 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9021 for ac_dir in $ac_dummy; do 9022 IFS=$lt_save_ifs 9023 test -z "$ac_dir" && ac_dir=. 9024 if test -f "$ac_dir/file"; then 9025 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9026 if test -n "$file_magic_test_file"; then 9027 case $deplibs_check_method in 9028 "file_magic "*) 9029 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9030 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9031 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9032 $EGREP "$file_magic_regex" > /dev/null; then 9033 : 9034 else 9035 cat <<_LT_EOF 1>&2 9036 9037 *** Warning: the command libtool uses to detect shared libraries, 9038 *** $file_magic_cmd, produces output that libtool cannot recognize. 9039 *** The result is that libtool may fail to recognize shared libraries 9040 *** as such. This will affect the creation of libtool libraries that 9041 *** depend on shared libraries, but programs linked with such libtool 9042 *** libraries will work regardless of this problem. Nevertheless, you 9043 *** may want to report the problem to your system manager and/or to 9044 *** bug-libtool@gnu.org 9045 9046 _LT_EOF 9047 fi ;; 9048 esac 9049 fi 9050 break 9051 fi 9052 done 9053 IFS=$lt_save_ifs 9054 MAGIC_CMD=$lt_save_MAGIC_CMD 9055 ;; 9056 esac ;; 9057 esac 9058 fi 9059 9060 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9061 if test -n "$MAGIC_CMD"; then 9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9063 printf "%s\n" "$MAGIC_CMD" >&6; } 9064 else 9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9066 printf "%s\n" "no" >&6; } 9067 fi 9068 9069 9070 else 9071 MAGIC_CMD=: 9072 fi 9073 fi 9074 9075 fi 9076 ;; 9077 esac 9078 9079 # Use C for the default configuration in the libtool script 9080 9081 lt_save_CC=$CC 9082 ac_ext=c 9083 ac_cpp='$CPP $CPPFLAGS' 9084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9086 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9087 9088 9089 # Source file extension for C test sources. 9090 ac_ext=c 9091 9092 # Object file extension for compiled C test sources. 9093 objext=o 9094 objext=$objext 9095 9096 # Code to be used in simple compile tests 9097 lt_simple_compile_test_code="int some_variable = 0;" 9098 9099 # Code to be used in simple link tests 9100 lt_simple_link_test_code='int main(void){return(0);}' 9101 9102 9103 9104 9105 9106 9107 9108 # If no C compiler was specified, use CC. 9109 LTCC=${LTCC-"$CC"} 9110 9111 # If no C compiler flags were specified, use CFLAGS. 9112 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9113 9114 # Allow CC to be a program name with arguments. 9115 compiler=$CC 9116 9117 # Save the default compiler, since it gets overwritten when the other 9118 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9119 compiler_DEFAULT=$CC 9120 9121 # save warnings/boilerplate of simple test code 9122 ac_outfile=conftest.$ac_objext 9123 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9124 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9125 _lt_compiler_boilerplate=`cat conftest.err` 9126 $RM conftest* 9127 9128 ac_outfile=conftest.$ac_objext 9129 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9130 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9131 _lt_linker_boilerplate=`cat conftest.err` 9132 $RM -r conftest* 9133 9134 9135 ## CAVEAT EMPTOR: 9136 ## There is no encapsulation within the following macros, do not change 9137 ## the running order or otherwise move them around unless you know exactly 9138 ## what you are doing... 9139 if test -n "$compiler"; then 9140 9141 lt_prog_compiler_no_builtin_flag= 9142 9143 if test yes = "$GCC"; then 9144 case $cc_basename in 9145 nvcc*) 9146 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9147 *) 9148 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9149 esac 9150 9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9152 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9153 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9154 then : 9155 printf %s "(cached) " >&6 9156 else case e in #( 9157 e) lt_cv_prog_compiler_rtti_exceptions=no 9158 ac_outfile=conftest.$ac_objext 9159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9160 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9161 # Insert the option either (1) after the last *FLAGS variable, or 9162 # (2) before a word containing "conftest.", or (3) at the end. 9163 # Note that $ac_compile itself does not contain backslashes and begins 9164 # with a dollar sign (not a hyphen), so the echo should work correctly. 9165 # The option is referenced via a variable to avoid confusing sed. 9166 lt_compile=`echo "$ac_compile" | $SED \ 9167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9169 -e 's:$: $lt_compiler_flag:'` 9170 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9171 (eval "$lt_compile" 2>conftest.err) 9172 ac_status=$? 9173 cat conftest.err >&5 9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9175 if (exit $ac_status) && test -s "$ac_outfile"; then 9176 # The compiler can only warn and ignore the option if not recognized 9177 # So say no if there are warnings other than the usual output. 9178 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9180 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9181 lt_cv_prog_compiler_rtti_exceptions=yes 9182 fi 9183 fi 9184 $RM conftest* 9185 ;; 9186 esac 9187 fi 9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9189 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9190 9191 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9192 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9193 else 9194 : 9195 fi 9196 9197 fi 9198 9199 9200 9201 9202 9203 9204 lt_prog_compiler_wl= 9205 lt_prog_compiler_pic= 9206 lt_prog_compiler_static= 9207 9208 9209 if test yes = "$GCC"; then 9210 lt_prog_compiler_wl='-Wl,' 9211 lt_prog_compiler_static='-static' 9212 9213 case $host_os in 9214 aix*) 9215 # All AIX code is PIC. 9216 if test ia64 = "$host_cpu"; then 9217 # AIX 5 now supports IA64 processor 9218 lt_prog_compiler_static='-Bstatic' 9219 fi 9220 lt_prog_compiler_pic='-fPIC' 9221 ;; 9222 9223 amigaos*) 9224 case $host_cpu in 9225 powerpc) 9226 # see comment about AmigaOS4 .so support 9227 lt_prog_compiler_pic='-fPIC' 9228 ;; 9229 m68k) 9230 # FIXME: we need at least 68020 code to build shared libraries, but 9231 # adding the '-m68020' flag to GCC prevents building anything better, 9232 # like '-m68040'. 9233 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9234 ;; 9235 esac 9236 ;; 9237 9238 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9239 # PIC is the default for these OSes. 9240 ;; 9241 9242 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9243 # This hack is so that the source file can tell whether it is being 9244 # built for inclusion in a dll (and should export symbols for example). 9245 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9246 # (--disable-auto-import) libraries 9247 lt_prog_compiler_pic='-DDLL_EXPORT' 9248 case $host_os in 9249 os2*) 9250 lt_prog_compiler_static='$wl-static' 9251 ;; 9252 esac 9253 ;; 9254 9255 darwin* | rhapsody*) 9256 # PIC is the default on this platform 9257 # Common symbols not allowed in MH_DYLIB files 9258 lt_prog_compiler_pic='-fno-common' 9259 ;; 9260 9261 haiku*) 9262 # PIC is the default for Haiku. 9263 # The "-static" flag exists, but is broken. 9264 lt_prog_compiler_static= 9265 ;; 9266 9267 hpux*) 9268 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9269 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9270 # sets the default TLS model and affects inlining. 9271 case $host_cpu in 9272 hppa*64*) 9273 # +Z the default 9274 ;; 9275 *) 9276 lt_prog_compiler_pic='-fPIC' 9277 ;; 9278 esac 9279 ;; 9280 9281 interix[3-9]*) 9282 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9283 # Instead, we relocate shared libraries at runtime. 9284 ;; 9285 9286 msdosdjgpp*) 9287 # Just because we use GCC doesn't mean we suddenly get shared libraries 9288 # on systems that don't support them. 9289 lt_prog_compiler_can_build_shared=no 9290 enable_shared=no 9291 ;; 9292 9293 *nto* | *qnx*) 9294 # QNX uses GNU C++, but need to define -shared option too, otherwise 9295 # it will coredump. 9296 lt_prog_compiler_pic='-fPIC -shared' 9297 ;; 9298 9299 sysv4*MP*) 9300 if test -d /usr/nec; then 9301 lt_prog_compiler_pic=-Kconform_pic 9302 fi 9303 ;; 9304 9305 *) 9306 lt_prog_compiler_pic='-fPIC' 9307 ;; 9308 esac 9309 9310 case $cc_basename in 9311 nvcc*) # Cuda Compiler Driver 2.2 9312 lt_prog_compiler_wl='-Xlinker ' 9313 if test -n "$lt_prog_compiler_pic"; then 9314 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9315 fi 9316 ;; 9317 esac 9318 else 9319 # PORTME Check for flag to pass linker flags through the system compiler. 9320 case $host_os in 9321 aix*) 9322 lt_prog_compiler_wl='-Wl,' 9323 if test ia64 = "$host_cpu"; then 9324 # AIX 5 now supports IA64 processor 9325 lt_prog_compiler_static='-Bstatic' 9326 else 9327 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9328 fi 9329 ;; 9330 9331 darwin* | rhapsody*) 9332 # PIC is the default on this platform 9333 # Common symbols not allowed in MH_DYLIB files 9334 lt_prog_compiler_pic='-fno-common' 9335 case $cc_basename in 9336 nagfor*) 9337 # NAG Fortran compiler 9338 lt_prog_compiler_wl='-Wl,-Wl,,' 9339 lt_prog_compiler_pic='-PIC' 9340 lt_prog_compiler_static='-Bstatic' 9341 ;; 9342 esac 9343 ;; 9344 9345 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9346 # This hack is so that the source file can tell whether it is being 9347 # built for inclusion in a dll (and should export symbols for example). 9348 lt_prog_compiler_pic='-DDLL_EXPORT' 9349 case $host_os in 9350 os2*) 9351 lt_prog_compiler_static='$wl-static' 9352 ;; 9353 esac 9354 ;; 9355 9356 hpux9* | hpux10* | hpux11*) 9357 lt_prog_compiler_wl='-Wl,' 9358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9359 # not for PA HP-UX. 9360 case $host_cpu in 9361 hppa*64*|ia64*) 9362 # +Z the default 9363 ;; 9364 *) 9365 lt_prog_compiler_pic='+Z' 9366 ;; 9367 esac 9368 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9369 lt_prog_compiler_static='$wl-a ${wl}archive' 9370 ;; 9371 9372 irix5* | irix6* | nonstopux*) 9373 lt_prog_compiler_wl='-Wl,' 9374 # PIC (with -KPIC) is the default. 9375 lt_prog_compiler_static='-non_shared' 9376 ;; 9377 9378 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9379 case $cc_basename in 9380 # old Intel for x86_64, which still supported -KPIC. 9381 ecc*) 9382 lt_prog_compiler_wl='-Wl,' 9383 lt_prog_compiler_pic='-KPIC' 9384 lt_prog_compiler_static='-static' 9385 ;; 9386 *flang* | ftn | f18* | f95*) 9387 # Flang compiler. 9388 lt_prog_compiler_wl='-Wl,' 9389 lt_prog_compiler_pic='-fPIC' 9390 lt_prog_compiler_static='-static' 9391 ;; 9392 # icc used to be incompatible with GCC. 9393 # ICC 10 doesn't accept -KPIC any more. 9394 icc* | ifort*) 9395 lt_prog_compiler_wl='-Wl,' 9396 lt_prog_compiler_pic='-fPIC' 9397 lt_prog_compiler_static='-static' 9398 ;; 9399 # Lahey Fortran 8.1. 9400 lf95*) 9401 lt_prog_compiler_wl='-Wl,' 9402 lt_prog_compiler_pic='--shared' 9403 lt_prog_compiler_static='--static' 9404 ;; 9405 nagfor*) 9406 # NAG Fortran compiler 9407 lt_prog_compiler_wl='-Wl,-Wl,,' 9408 lt_prog_compiler_pic='-PIC' 9409 lt_prog_compiler_static='-Bstatic' 9410 ;; 9411 tcc*) 9412 # Fabrice Bellard et al's Tiny C Compiler 9413 lt_prog_compiler_wl='-Wl,' 9414 lt_prog_compiler_pic='-fPIC' 9415 lt_prog_compiler_static='-static' 9416 ;; 9417 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9418 # Portland Group compilers (*not* the Pentium gcc compiler, 9419 # which looks to be a dead project) 9420 lt_prog_compiler_wl='-Wl,' 9421 lt_prog_compiler_pic='-fpic' 9422 lt_prog_compiler_static='-Bstatic' 9423 ;; 9424 ccc*) 9425 lt_prog_compiler_wl='-Wl,' 9426 # All Alpha code is PIC. 9427 lt_prog_compiler_static='-non_shared' 9428 ;; 9429 xl* | bgxl* | bgf* | mpixl*) 9430 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9431 lt_prog_compiler_wl='-Wl,' 9432 lt_prog_compiler_pic='-qpic' 9433 lt_prog_compiler_static='-qstaticlink' 9434 ;; 9435 *) 9436 case `$CC -V 2>&1 | $SED 5q` in 9437 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9438 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9439 lt_prog_compiler_pic='-KPIC' 9440 lt_prog_compiler_static='-Bstatic' 9441 lt_prog_compiler_wl='' 9442 ;; 9443 *Sun\ F* | *Sun*Fortran*) 9444 lt_prog_compiler_pic='-KPIC' 9445 lt_prog_compiler_static='-Bstatic' 9446 lt_prog_compiler_wl='-Qoption ld ' 9447 ;; 9448 *Sun\ C*) 9449 # Sun C 5.9 9450 lt_prog_compiler_pic='-KPIC' 9451 lt_prog_compiler_static='-Bstatic' 9452 lt_prog_compiler_wl='-Wl,' 9453 ;; 9454 *Intel*\ [CF]*Compiler*) 9455 lt_prog_compiler_wl='-Wl,' 9456 lt_prog_compiler_pic='-fPIC' 9457 lt_prog_compiler_static='-static' 9458 ;; 9459 *Portland\ Group*) 9460 lt_prog_compiler_wl='-Wl,' 9461 lt_prog_compiler_pic='-fpic' 9462 lt_prog_compiler_static='-Bstatic' 9463 ;; 9464 esac 9465 ;; 9466 esac 9467 ;; 9468 9469 newsos6) 9470 lt_prog_compiler_pic='-KPIC' 9471 lt_prog_compiler_static='-Bstatic' 9472 ;; 9473 9474 *-mlibc) 9475 lt_prog_compiler_wl='-Wl,' 9476 lt_prog_compiler_pic='-fPIC' 9477 lt_prog_compiler_static='-static' 9478 ;; 9479 9480 *nto* | *qnx*) 9481 # QNX uses GNU C++, but need to define -shared option too, otherwise 9482 # it will coredump. 9483 lt_prog_compiler_pic='-fPIC -shared' 9484 ;; 9485 9486 osf3* | osf4* | osf5*) 9487 lt_prog_compiler_wl='-Wl,' 9488 # All OSF/1 code is PIC. 9489 lt_prog_compiler_static='-non_shared' 9490 ;; 9491 9492 rdos*) 9493 lt_prog_compiler_static='-non_shared' 9494 ;; 9495 9496 serenity*) 9497 ;; 9498 9499 solaris*) 9500 lt_prog_compiler_pic='-KPIC' 9501 lt_prog_compiler_static='-Bstatic' 9502 case $cc_basename in 9503 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9504 lt_prog_compiler_wl='-Qoption ld ';; 9505 *) 9506 lt_prog_compiler_wl='-Wl,';; 9507 esac 9508 ;; 9509 9510 sunos4*) 9511 lt_prog_compiler_wl='-Qoption ld ' 9512 lt_prog_compiler_pic='-PIC' 9513 lt_prog_compiler_static='-Bstatic' 9514 ;; 9515 9516 sysv4 | sysv4.2uw2* | sysv4.3*) 9517 lt_prog_compiler_wl='-Wl,' 9518 lt_prog_compiler_pic='-KPIC' 9519 lt_prog_compiler_static='-Bstatic' 9520 ;; 9521 9522 sysv4*MP*) 9523 if test -d /usr/nec; then 9524 lt_prog_compiler_pic='-Kconform_pic' 9525 lt_prog_compiler_static='-Bstatic' 9526 fi 9527 ;; 9528 9529 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9530 lt_prog_compiler_wl='-Wl,' 9531 lt_prog_compiler_pic='-KPIC' 9532 lt_prog_compiler_static='-Bstatic' 9533 ;; 9534 9535 unicos*) 9536 lt_prog_compiler_wl='-Wl,' 9537 lt_prog_compiler_can_build_shared=no 9538 ;; 9539 9540 uts4*) 9541 lt_prog_compiler_pic='-pic' 9542 lt_prog_compiler_static='-Bstatic' 9543 ;; 9544 9545 *) 9546 lt_prog_compiler_can_build_shared=no 9547 ;; 9548 esac 9549 fi 9550 9551 case $host_os in 9552 # For platforms that do not support PIC, -DPIC is meaningless: 9553 *djgpp*) 9554 lt_prog_compiler_pic= 9555 ;; 9556 *) 9557 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9558 ;; 9559 esac 9560 9561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9562 printf %s "checking for $compiler option to produce PIC... " >&6; } 9563 if test ${lt_cv_prog_compiler_pic+y} 9564 then : 9565 printf %s "(cached) " >&6 9566 else case e in #( 9567 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9568 esac 9569 fi 9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9571 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9572 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9573 9574 # 9575 # Check to make sure the PIC flag actually works. 9576 # 9577 if test -n "$lt_prog_compiler_pic"; then 9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9579 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9580 if test ${lt_cv_prog_compiler_pic_works+y} 9581 then : 9582 printf %s "(cached) " >&6 9583 else case e in #( 9584 e) lt_cv_prog_compiler_pic_works=no 9585 ac_outfile=conftest.$ac_objext 9586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9588 # Insert the option either (1) after the last *FLAGS variable, or 9589 # (2) before a word containing "conftest.", or (3) at the end. 9590 # Note that $ac_compile itself does not contain backslashes and begins 9591 # with a dollar sign (not a hyphen), so the echo should work correctly. 9592 # The option is referenced via a variable to avoid confusing sed. 9593 lt_compile=`echo "$ac_compile" | $SED \ 9594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9596 -e 's:$: $lt_compiler_flag:'` 9597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9598 (eval "$lt_compile" 2>conftest.err) 9599 ac_status=$? 9600 cat conftest.err >&5 9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9602 if (exit $ac_status) && test -s "$ac_outfile"; then 9603 # The compiler can only warn and ignore the option if not recognized 9604 # So say no if there are warnings other than the usual output. 9605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9608 lt_cv_prog_compiler_pic_works=yes 9609 fi 9610 fi 9611 $RM conftest* 9612 ;; 9613 esac 9614 fi 9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9616 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9617 9618 if test yes = "$lt_cv_prog_compiler_pic_works"; then 9619 case $lt_prog_compiler_pic in 9620 "" | " "*) ;; 9621 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9622 esac 9623 else 9624 lt_prog_compiler_pic= 9625 lt_prog_compiler_can_build_shared=no 9626 fi 9627 9628 fi 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 # 9641 # Check to make sure the static flag actually works. 9642 # 9643 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9645 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9646 if test ${lt_cv_prog_compiler_static_works+y} 9647 then : 9648 printf %s "(cached) " >&6 9649 else case e in #( 9650 e) lt_cv_prog_compiler_static_works=no 9651 save_LDFLAGS=$LDFLAGS 9652 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9653 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9654 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9655 # The linker can only warn and ignore the option if not recognized 9656 # So say no if there are warnings 9657 if test -s conftest.err; then 9658 # Append any errors to the config.log. 9659 cat conftest.err 1>&5 9660 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9662 if diff conftest.exp conftest.er2 >/dev/null; then 9663 lt_cv_prog_compiler_static_works=yes 9664 fi 9665 else 9666 lt_cv_prog_compiler_static_works=yes 9667 fi 9668 fi 9669 $RM -r conftest* 9670 LDFLAGS=$save_LDFLAGS 9671 ;; 9672 esac 9673 fi 9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9675 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9676 9677 if test yes = "$lt_cv_prog_compiler_static_works"; then 9678 : 9679 else 9680 lt_prog_compiler_static= 9681 fi 9682 9683 9684 9685 9686 9687 9688 9689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9690 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9691 if test ${lt_cv_prog_compiler_c_o+y} 9692 then : 9693 printf %s "(cached) " >&6 9694 else case e in #( 9695 e) lt_cv_prog_compiler_c_o=no 9696 $RM -r conftest 2>/dev/null 9697 mkdir conftest 9698 cd conftest 9699 mkdir out 9700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9701 9702 lt_compiler_flag="-o out/conftest2.$ac_objext" 9703 # Insert the option either (1) after the last *FLAGS variable, or 9704 # (2) before a word containing "conftest.", or (3) at the end. 9705 # Note that $ac_compile itself does not contain backslashes and begins 9706 # with a dollar sign (not a hyphen), so the echo should work correctly. 9707 lt_compile=`echo "$ac_compile" | $SED \ 9708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9710 -e 's:$: $lt_compiler_flag:'` 9711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9712 (eval "$lt_compile" 2>out/conftest.err) 9713 ac_status=$? 9714 cat out/conftest.err >&5 9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9716 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9717 then 9718 # The compiler can only warn and ignore the option if not recognized 9719 # So say no if there are warnings 9720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9723 lt_cv_prog_compiler_c_o=yes 9724 fi 9725 fi 9726 chmod u+w . 2>&5 9727 $RM conftest* 9728 # SGI C++ compiler will create directory out/ii_files/ for 9729 # template instantiation 9730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9731 $RM out/* && rmdir out 9732 cd .. 9733 $RM -r conftest 9734 $RM conftest* 9735 ;; 9736 esac 9737 fi 9738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9739 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9740 9741 9742 9743 9744 9745 9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9747 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9748 if test ${lt_cv_prog_compiler_c_o+y} 9749 then : 9750 printf %s "(cached) " >&6 9751 else case e in #( 9752 e) lt_cv_prog_compiler_c_o=no 9753 $RM -r conftest 2>/dev/null 9754 mkdir conftest 9755 cd conftest 9756 mkdir out 9757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9758 9759 lt_compiler_flag="-o out/conftest2.$ac_objext" 9760 # Insert the option either (1) after the last *FLAGS variable, or 9761 # (2) before a word containing "conftest.", or (3) at the end. 9762 # Note that $ac_compile itself does not contain backslashes and begins 9763 # with a dollar sign (not a hyphen), so the echo should work correctly. 9764 lt_compile=`echo "$ac_compile" | $SED \ 9765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9767 -e 's:$: $lt_compiler_flag:'` 9768 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9769 (eval "$lt_compile" 2>out/conftest.err) 9770 ac_status=$? 9771 cat out/conftest.err >&5 9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9773 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9774 then 9775 # The compiler can only warn and ignore the option if not recognized 9776 # So say no if there are warnings 9777 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9778 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9779 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9780 lt_cv_prog_compiler_c_o=yes 9781 fi 9782 fi 9783 chmod u+w . 2>&5 9784 $RM conftest* 9785 # SGI C++ compiler will create directory out/ii_files/ for 9786 # template instantiation 9787 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9788 $RM out/* && rmdir out 9789 cd .. 9790 $RM -r conftest 9791 $RM conftest* 9792 ;; 9793 esac 9794 fi 9795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9796 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9797 9798 9799 9800 9801 hard_links=nottested 9802 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9803 # do not overwrite the value of need_locks provided by the user 9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9805 printf %s "checking if we can lock with hard links... " >&6; } 9806 hard_links=yes 9807 $RM conftest* 9808 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9809 touch conftest.a 9810 ln conftest.a conftest.b 2>&5 || hard_links=no 9811 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9813 printf "%s\n" "$hard_links" >&6; } 9814 if test no = "$hard_links"; then 9815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9816 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9817 need_locks=warn 9818 fi 9819 else 9820 need_locks=no 9821 fi 9822 9823 9824 9825 9826 9827 9828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9829 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9830 9831 runpath_var= 9832 allow_undefined_flag= 9833 always_export_symbols=no 9834 archive_cmds= 9835 archive_expsym_cmds= 9836 compiler_needs_object=no 9837 enable_shared_with_static_runtimes=no 9838 export_dynamic_flag_spec= 9839 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9840 hardcode_automatic=no 9841 hardcode_direct=no 9842 hardcode_direct_absolute=no 9843 hardcode_libdir_flag_spec= 9844 hardcode_libdir_separator= 9845 hardcode_minus_L=no 9846 hardcode_shlibpath_var=unsupported 9847 inherit_rpath=no 9848 link_all_deplibs=unknown 9849 module_cmds= 9850 module_expsym_cmds= 9851 old_archive_from_new_cmds= 9852 old_archive_from_expsyms_cmds= 9853 thread_safe_flag_spec= 9854 whole_archive_flag_spec= 9855 # include_expsyms should be a list of space-separated symbols to be *always* 9856 # included in the symbol list 9857 include_expsyms= 9858 # exclude_expsyms can be an extended regexp of symbols to exclude 9859 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9860 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9861 # as well as any symbol that contains 'd'. 9862 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9863 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9864 # platforms (ab)use it in PIC code, but their linkers get confused if 9865 # the symbol is explicitly referenced. Since portable code cannot 9866 # rely on this symbol name, it's probably fine to never include it in 9867 # preloaded symbol tables. 9868 # Exclude shared library initialization/finalization symbols. 9869 extract_expsyms_cmds= 9870 9871 case $host_os in 9872 cygwin* | mingw* | windows* | pw32* | cegcc*) 9873 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9874 # When not using gcc, we currently assume that we are using 9875 # Microsoft Visual C++ or Intel C++ Compiler. 9876 if test yes != "$GCC"; then 9877 with_gnu_ld=no 9878 fi 9879 ;; 9880 interix*) 9881 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9882 with_gnu_ld=yes 9883 ;; 9884 esac 9885 9886 ld_shlibs=yes 9887 9888 # On some targets, GNU ld is compatible enough with the native linker 9889 # that we're better off using the native interface for both. 9890 lt_use_gnu_ld_interface=no 9891 if test yes = "$with_gnu_ld"; then 9892 case $host_os in 9893 aix*) 9894 # The AIX port of GNU ld has always aspired to compatibility 9895 # with the native linker. However, as the warning in the GNU ld 9896 # block says, versions before 2.19.5* couldn't really create working 9897 # shared libraries, regardless of the interface used. 9898 case `$LD -v 2>&1` in 9899 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9900 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9901 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9902 *) 9903 lt_use_gnu_ld_interface=yes 9904 ;; 9905 esac 9906 ;; 9907 *) 9908 lt_use_gnu_ld_interface=yes 9909 ;; 9910 esac 9911 fi 9912 9913 if test yes = "$lt_use_gnu_ld_interface"; then 9914 # If archive_cmds runs LD, not CC, wlarc should be empty 9915 wlarc='$wl' 9916 9917 # Set some defaults for GNU ld with shared library support. These 9918 # are reset later if shared libraries are not supported. Putting them 9919 # here allows them to be overridden if necessary. 9920 runpath_var=LD_RUN_PATH 9921 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9922 export_dynamic_flag_spec='$wl--export-dynamic' 9923 # ancient GNU ld didn't support --whole-archive et. al. 9924 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9925 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9926 else 9927 whole_archive_flag_spec= 9928 fi 9929 supports_anon_versioning=no 9930 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9931 *GNU\ gold*) supports_anon_versioning=yes ;; 9932 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9933 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9934 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9935 *\ 2.11.*) ;; # other 2.11 versions 9936 *) supports_anon_versioning=yes ;; 9937 esac 9938 9939 # See if GNU ld supports shared libraries. 9940 case $host_os in 9941 aix[3-9]*) 9942 # On AIX/PPC, the GNU linker is very broken 9943 if test ia64 != "$host_cpu"; then 9944 ld_shlibs=no 9945 cat <<_LT_EOF 1>&2 9946 9947 *** Warning: the GNU linker, at least up to release 2.19, is reported 9948 *** to be unable to reliably create shared libraries on AIX. 9949 *** Therefore, libtool is disabling shared libraries support. If you 9950 *** really care for shared libraries, you may want to install binutils 9951 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9952 *** You will then need to restart the configuration process. 9953 9954 _LT_EOF 9955 fi 9956 ;; 9957 9958 amigaos*) 9959 case $host_cpu in 9960 powerpc) 9961 # see comment about AmigaOS4 .so support 9962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9963 archive_expsym_cmds='' 9964 ;; 9965 m68k) 9966 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)' 9967 hardcode_libdir_flag_spec='-L$libdir' 9968 hardcode_minus_L=yes 9969 ;; 9970 esac 9971 ;; 9972 9973 beos*) 9974 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9975 allow_undefined_flag=unsupported 9976 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9977 # support --undefined. This deserves some investigation. FIXME 9978 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9979 else 9980 ld_shlibs=no 9981 fi 9982 ;; 9983 9984 cygwin* | mingw* | windows* | pw32* | cegcc*) 9985 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9986 # as there is no search path for DLLs. 9987 hardcode_libdir_flag_spec='-L$libdir' 9988 export_dynamic_flag_spec='$wl--export-all-symbols' 9989 allow_undefined_flag=unsupported 9990 always_export_symbols=no 9991 enable_shared_with_static_runtimes=yes 9992 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' 9993 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9994 file_list_spec='@' 9995 9996 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9998 # If the export-symbols file already is a .def file, use it as 9999 # is; otherwise, prepend EXPORTS... 10000 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10001 cp $export_symbols $output_objdir/$soname.def; 10002 else 10003 echo EXPORTS > $output_objdir/$soname.def; 10004 cat $export_symbols >> $output_objdir/$soname.def; 10005 fi~ 10006 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10007 else 10008 ld_shlibs=no 10009 fi 10010 ;; 10011 10012 haiku*) 10013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10014 link_all_deplibs=no 10015 ;; 10016 10017 os2*) 10018 hardcode_libdir_flag_spec='-L$libdir' 10019 hardcode_minus_L=yes 10020 allow_undefined_flag=unsupported 10021 shrext_cmds=.dll 10022 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10023 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10024 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10025 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10026 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10027 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10028 emximp -o $lib $output_objdir/$libname.def' 10029 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10030 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10031 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10032 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10033 prefix_cmds="$SED"~ 10034 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10035 prefix_cmds="$prefix_cmds -e 1d"; 10036 fi~ 10037 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10038 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10039 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10040 emximp -o $lib $output_objdir/$libname.def' 10041 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10042 enable_shared_with_static_runtimes=yes 10043 file_list_spec='@' 10044 ;; 10045 10046 interix[3-9]*) 10047 hardcode_direct=no 10048 hardcode_shlibpath_var=no 10049 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10050 export_dynamic_flag_spec='$wl-E' 10051 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10052 # Instead, shared libraries are loaded at an image base (0x10000000 by 10053 # default) and relocated if they conflict, which is a slow very memory 10054 # consuming and fragmenting process. To avoid this, we pick a random, 10055 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10056 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10057 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10058 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' 10059 ;; 10060 10061 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10062 tmp_diet=no 10063 if test linux-dietlibc = "$host_os"; then 10064 case $cc_basename in 10065 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10066 esac 10067 fi 10068 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10069 && test no = "$tmp_diet" 10070 then 10071 tmp_addflag=' $pic_flag' 10072 tmp_sharedflag='-shared' 10073 case $cc_basename,$host_cpu in 10074 pgcc*) # Portland Group C compiler 10075 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' 10076 tmp_addflag=' $pic_flag' 10077 ;; 10078 pgf77* | pgf90* | pgf95* | pgfortran*) 10079 # Portland Group f77 and f90 compilers 10080 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' 10081 tmp_addflag=' $pic_flag -Mnomain' ;; 10082 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10083 tmp_addflag=' -i_dynamic' ;; 10084 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10085 tmp_addflag=' -i_dynamic -nofor_main' ;; 10086 ifc* | ifort*) # Intel Fortran compiler 10087 tmp_addflag=' -nofor_main' ;; 10088 lf95*) # Lahey Fortran 8.1 10089 whole_archive_flag_spec= 10090 tmp_sharedflag='--shared' ;; 10091 nagfor*) # NAGFOR 5.3 10092 tmp_sharedflag='-Wl,-shared' ;; 10093 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10094 tmp_sharedflag='-qmkshrobj' 10095 tmp_addflag= ;; 10096 nvcc*) # Cuda Compiler Driver 2.2 10097 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' 10098 compiler_needs_object=yes 10099 ;; 10100 esac 10101 case `$CC -V 2>&1 | $SED 5q` in 10102 *Sun\ C*) # Sun C 5.9 10103 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' 10104 compiler_needs_object=yes 10105 tmp_sharedflag='-G' ;; 10106 *Sun\ F*) # Sun Fortran 8.3 10107 tmp_sharedflag='-G' ;; 10108 esac 10109 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10110 10111 if test yes = "$supports_anon_versioning"; then 10112 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10113 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10114 echo "local: *; };" >> $output_objdir/$libname.ver~ 10115 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10116 fi 10117 10118 case $cc_basename in 10119 tcc*) 10120 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10121 export_dynamic_flag_spec='-rdynamic' 10122 ;; 10123 xlf* | bgf* | bgxlf* | mpixlf*) 10124 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10125 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10126 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10127 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10128 if test yes = "$supports_anon_versioning"; then 10129 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10130 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10131 echo "local: *; };" >> $output_objdir/$libname.ver~ 10132 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10133 fi 10134 ;; 10135 esac 10136 else 10137 ld_shlibs=no 10138 fi 10139 ;; 10140 10141 *-mlibc) 10142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10143 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10144 ;; 10145 10146 netbsd* | netbsdelf*-gnu) 10147 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10148 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10149 wlarc= 10150 else 10151 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10152 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10153 fi 10154 ;; 10155 10156 solaris*) 10157 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10158 ld_shlibs=no 10159 cat <<_LT_EOF 1>&2 10160 10161 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10162 *** create shared libraries on Solaris systems. Therefore, libtool 10163 *** is disabling shared libraries support. We urge you to upgrade GNU 10164 *** binutils to release 2.9.1 or newer. Another option is to modify 10165 *** your PATH or compiler configuration so that the native linker is 10166 *** used, and then restart. 10167 10168 _LT_EOF 10169 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10170 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10171 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10172 else 10173 ld_shlibs=no 10174 fi 10175 ;; 10176 10177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10178 case `$LD -v 2>&1` in 10179 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10180 ld_shlibs=no 10181 cat <<_LT_EOF 1>&2 10182 10183 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10184 *** reliably create shared libraries on SCO systems. Therefore, libtool 10185 *** is disabling shared libraries support. We urge you to upgrade GNU 10186 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10187 *** your PATH or compiler configuration so that the native linker is 10188 *** used, and then restart. 10189 10190 _LT_EOF 10191 ;; 10192 *) 10193 # For security reasons, it is highly recommended that you always 10194 # use absolute paths for naming shared libraries, and exclude the 10195 # DT_RUNPATH tag from executables and libraries. But doing so 10196 # requires that you compile everything twice, which is a pain. 10197 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10198 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10200 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10201 else 10202 ld_shlibs=no 10203 fi 10204 ;; 10205 esac 10206 ;; 10207 10208 sunos4*) 10209 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10210 wlarc= 10211 hardcode_direct=yes 10212 hardcode_shlibpath_var=no 10213 ;; 10214 10215 *) 10216 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10217 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10218 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10219 else 10220 ld_shlibs=no 10221 fi 10222 ;; 10223 esac 10224 10225 if test no = "$ld_shlibs"; then 10226 runpath_var= 10227 hardcode_libdir_flag_spec= 10228 export_dynamic_flag_spec= 10229 whole_archive_flag_spec= 10230 fi 10231 else 10232 # PORTME fill in a description of your system's linker (not GNU ld) 10233 case $host_os in 10234 aix3*) 10235 allow_undefined_flag=unsupported 10236 always_export_symbols=yes 10237 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' 10238 # Note: this linker hardcodes the directories in LIBPATH if there 10239 # are no directories specified by -L. 10240 hardcode_minus_L=yes 10241 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10242 # Neither direct hardcoding nor static linking is supported with a 10243 # broken collect2. 10244 hardcode_direct=unsupported 10245 fi 10246 ;; 10247 10248 aix[4-9]*) 10249 if test ia64 = "$host_cpu"; then 10250 # On IA64, the linker does run time linking by default, so we don't 10251 # have to do anything special. 10252 aix_use_runtimelinking=no 10253 exp_sym_flag='-Bexport' 10254 no_entry_flag= 10255 else 10256 # If we're using GNU nm, then we don't want the "-C" option. 10257 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10258 # Without the "-l" option, or with the "-B" option, AIX nm treats 10259 # weak defined symbols like other global defined symbols, whereas 10260 # GNU nm marks them as "W". 10261 # While the 'weak' keyword is ignored in the Export File, we need 10262 # it in the Import File for the 'aix-soname' feature, so we have 10263 # to replace the "-B" option with "-P" for AIX nm. 10264 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10265 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' 10266 else 10267 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' 10268 fi 10269 aix_use_runtimelinking=no 10270 10271 # Test if we are trying to use run time linking or normal 10272 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10273 # have runtime linking enabled, and use it for executables. 10274 # For shared libraries, we enable/disable runtime linking 10275 # depending on the kind of the shared library created - 10276 # when "with_aix_soname,aix_use_runtimelinking" is: 10277 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10278 # "aix,yes" lib.so shared, rtl:yes, for executables 10279 # lib.a static archive 10280 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10281 # lib.a(lib.so.V) shared, rtl:no, for executables 10282 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10283 # lib.a(lib.so.V) shared, rtl:no 10284 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10285 # lib.a static archive 10286 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10287 for ld_flag in $LDFLAGS; do 10288 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10289 aix_use_runtimelinking=yes 10290 break 10291 fi 10292 done 10293 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10294 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10295 # so we don't have lib.a shared libs to link our executables. 10296 # We have to force runtime linking in this case. 10297 aix_use_runtimelinking=yes 10298 LDFLAGS="$LDFLAGS -Wl,-brtl" 10299 fi 10300 ;; 10301 esac 10302 10303 exp_sym_flag='-bexport' 10304 no_entry_flag='-bnoentry' 10305 fi 10306 10307 # When large executables or shared objects are built, AIX ld can 10308 # have problems creating the table of contents. If linking a library 10309 # or program results in "error TOC overflow" add -mminimal-toc to 10310 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10311 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10312 10313 archive_cmds='' 10314 hardcode_direct=yes 10315 hardcode_direct_absolute=yes 10316 hardcode_libdir_separator=':' 10317 link_all_deplibs=yes 10318 file_list_spec='$wl-f,' 10319 case $with_aix_soname,$aix_use_runtimelinking in 10320 aix,*) ;; # traditional, no import file 10321 svr4,* | *,yes) # use import file 10322 # The Import File defines what to hardcode. 10323 hardcode_direct=no 10324 hardcode_direct_absolute=no 10325 ;; 10326 esac 10327 10328 if test yes = "$GCC"; then 10329 case $host_os in aix4.[012]|aix4.[012].*) 10330 # We only want to do this on AIX 4.2 and lower, the check 10331 # below for broken collect2 doesn't work under 4.3+ 10332 collect2name=`$CC -print-prog-name=collect2` 10333 if test -f "$collect2name" && 10334 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10335 then 10336 # We have reworked collect2 10337 : 10338 else 10339 # We have old collect2 10340 hardcode_direct=unsupported 10341 # It fails to find uninstalled libraries when the uninstalled 10342 # path is not listed in the libpath. Setting hardcode_minus_L 10343 # to unsupported forces relinking 10344 hardcode_minus_L=yes 10345 hardcode_libdir_flag_spec='-L$libdir' 10346 hardcode_libdir_separator= 10347 fi 10348 ;; 10349 esac 10350 shared_flag='-shared' 10351 if test yes = "$aix_use_runtimelinking"; then 10352 shared_flag="$shared_flag "'$wl-G' 10353 fi 10354 # Need to ensure runtime linking is disabled for the traditional 10355 # shared library, or the linker may eventually find shared libraries 10356 # /with/ Import File - we do not want to mix them. 10357 shared_flag_aix='-shared' 10358 shared_flag_svr4='-shared $wl-G' 10359 else 10360 # not using gcc 10361 if test ia64 = "$host_cpu"; then 10362 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10363 # chokes on -Wl,-G. The following line is correct: 10364 shared_flag='-G' 10365 else 10366 if test yes = "$aix_use_runtimelinking"; then 10367 shared_flag='$wl-G' 10368 else 10369 shared_flag='$wl-bM:SRE' 10370 fi 10371 shared_flag_aix='$wl-bM:SRE' 10372 shared_flag_svr4='$wl-G' 10373 fi 10374 fi 10375 10376 export_dynamic_flag_spec='$wl-bexpall' 10377 # It seems that -bexpall does not export symbols beginning with 10378 # underscore (_), so it is better to generate a list of symbols to export. 10379 always_export_symbols=yes 10380 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10381 # Warning - without using the other runtime loading flags (-brtl), 10382 # -berok will link without error, but may produce a broken library. 10383 allow_undefined_flag='-berok' 10384 # Determine the default libpath from the value encoded in an 10385 # empty executable. 10386 if test set = "${lt_cv_aix_libpath+set}"; then 10387 aix_libpath=$lt_cv_aix_libpath 10388 else 10389 if test ${lt_cv_aix_libpath_+y} 10390 then : 10391 printf %s "(cached) " >&6 10392 else case e in #( 10393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10394 /* end confdefs.h. */ 10395 10396 int 10397 main (void) 10398 { 10399 10400 ; 10401 return 0; 10402 } 10403 _ACEOF 10404 if ac_fn_c_try_link "$LINENO" 10405 then : 10406 10407 lt_aix_libpath_sed=' 10408 /Import File Strings/,/^$/ { 10409 /^0/ { 10410 s/^0 *\([^ ]*\) *$/\1/ 10411 p 10412 } 10413 }' 10414 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10415 # Check for a 64-bit object if we didn't find anything. 10416 if test -z "$lt_cv_aix_libpath_"; then 10417 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10418 fi 10419 fi 10420 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10421 conftest$ac_exeext conftest.$ac_ext 10422 if test -z "$lt_cv_aix_libpath_"; then 10423 lt_cv_aix_libpath_=/usr/lib:/lib 10424 fi 10425 ;; 10426 esac 10427 fi 10428 10429 aix_libpath=$lt_cv_aix_libpath_ 10430 fi 10431 10432 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10433 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 10434 else 10435 if test ia64 = "$host_cpu"; then 10436 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10437 allow_undefined_flag="-z nodefs" 10438 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" 10439 else 10440 # Determine the default libpath from the value encoded in an 10441 # empty executable. 10442 if test set = "${lt_cv_aix_libpath+set}"; then 10443 aix_libpath=$lt_cv_aix_libpath 10444 else 10445 if test ${lt_cv_aix_libpath_+y} 10446 then : 10447 printf %s "(cached) " >&6 10448 else case e in #( 10449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10450 /* end confdefs.h. */ 10451 10452 int 10453 main (void) 10454 { 10455 10456 ; 10457 return 0; 10458 } 10459 _ACEOF 10460 if ac_fn_c_try_link "$LINENO" 10461 then : 10462 10463 lt_aix_libpath_sed=' 10464 /Import File Strings/,/^$/ { 10465 /^0/ { 10466 s/^0 *\([^ ]*\) *$/\1/ 10467 p 10468 } 10469 }' 10470 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10471 # Check for a 64-bit object if we didn't find anything. 10472 if test -z "$lt_cv_aix_libpath_"; then 10473 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10474 fi 10475 fi 10476 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10477 conftest$ac_exeext conftest.$ac_ext 10478 if test -z "$lt_cv_aix_libpath_"; then 10479 lt_cv_aix_libpath_=/usr/lib:/lib 10480 fi 10481 ;; 10482 esac 10483 fi 10484 10485 aix_libpath=$lt_cv_aix_libpath_ 10486 fi 10487 10488 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10489 # Warning - without using the other run time loading flags, 10490 # -berok will link without error, but may produce a broken library. 10491 no_undefined_flag=' $wl-bernotok' 10492 allow_undefined_flag=' $wl-berok' 10493 if test yes = "$with_gnu_ld"; then 10494 # We only use this code for GNU lds that support --whole-archive. 10495 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10496 else 10497 # Exported symbols can be pulled into shared objects from archives 10498 whole_archive_flag_spec='$convenience' 10499 fi 10500 archive_cmds_need_lc=yes 10501 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10502 # -brtl affects multiple linker settings, -berok does not and is overridden later 10503 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10504 if test svr4 != "$with_aix_soname"; then 10505 # This is similar to how AIX traditionally builds its shared libraries. 10506 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' 10507 fi 10508 if test aix != "$with_aix_soname"; then 10509 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' 10510 else 10511 # used by -dlpreopen to get the symbols 10512 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10513 fi 10514 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10515 fi 10516 fi 10517 ;; 10518 10519 amigaos*) 10520 case $host_cpu in 10521 powerpc) 10522 # see comment about AmigaOS4 .so support 10523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10524 archive_expsym_cmds='' 10525 ;; 10526 m68k) 10527 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)' 10528 hardcode_libdir_flag_spec='-L$libdir' 10529 hardcode_minus_L=yes 10530 ;; 10531 esac 10532 ;; 10533 10534 bsdi[45]*) 10535 export_dynamic_flag_spec=-rdynamic 10536 ;; 10537 10538 cygwin* | mingw* | windows* | pw32* | cegcc*) 10539 # When not using gcc, we currently assume that we are using 10540 # Microsoft Visual C++ or Intel C++ Compiler. 10541 # hardcode_libdir_flag_spec is actually meaningless, as there is 10542 # no search path for DLLs. 10543 case $cc_basename in 10544 cl* | icl*) 10545 # Native MSVC or ICC 10546 hardcode_libdir_flag_spec=' ' 10547 allow_undefined_flag=unsupported 10548 always_export_symbols=yes 10549 file_list_spec='@' 10550 # Tell ltmain to make .lib files, not .a files. 10551 libext=lib 10552 # Tell ltmain to make .dll files, not .so files. 10553 shrext_cmds=.dll 10554 # FIXME: Setting linknames here is a bad hack. 10555 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10556 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10557 cp "$export_symbols" "$output_objdir/$soname.def"; 10558 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10559 else 10560 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10561 fi~ 10562 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10563 linknames=' 10564 # The linker will not automatically build a static lib if we build a DLL. 10565 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10566 enable_shared_with_static_runtimes=yes 10567 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10568 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10569 # Don't use ranlib 10570 old_postinstall_cmds='chmod 644 $oldlib' 10571 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10572 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10573 case $lt_outputfile in 10574 *.exe|*.EXE) ;; 10575 *) 10576 lt_outputfile=$lt_outputfile.exe 10577 lt_tool_outputfile=$lt_tool_outputfile.exe 10578 ;; 10579 esac~ 10580 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10581 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10582 $RM "$lt_outputfile.manifest"; 10583 fi' 10584 ;; 10585 *) 10586 # Assume MSVC and ICC wrapper 10587 hardcode_libdir_flag_spec=' ' 10588 allow_undefined_flag=unsupported 10589 # Tell ltmain to make .lib files, not .a files. 10590 libext=lib 10591 # Tell ltmain to make .dll files, not .so files. 10592 shrext_cmds=.dll 10593 # FIXME: Setting linknames here is a bad hack. 10594 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10595 # The linker will automatically build a .lib file if we build a DLL. 10596 old_archive_from_new_cmds='true' 10597 # FIXME: Should let the user specify the lib program. 10598 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10599 enable_shared_with_static_runtimes=yes 10600 ;; 10601 esac 10602 ;; 10603 10604 darwin* | rhapsody*) 10605 10606 10607 archive_cmds_need_lc=no 10608 hardcode_direct=no 10609 hardcode_automatic=yes 10610 hardcode_shlibpath_var=unsupported 10611 if test yes = "$lt_cv_ld_force_load"; then 10612 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\"`' 10613 10614 else 10615 whole_archive_flag_spec='' 10616 fi 10617 link_all_deplibs=yes 10618 allow_undefined_flag=$_lt_dar_allow_undefined 10619 case $cc_basename in 10620 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10621 *) _lt_dar_can_shared=$GCC ;; 10622 esac 10623 if test yes = "$_lt_dar_can_shared"; then 10624 output_verbose_link_cmd=func_echo_all 10625 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10626 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10627 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" 10628 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" 10629 10630 else 10631 ld_shlibs=no 10632 fi 10633 10634 ;; 10635 10636 dgux*) 10637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10638 hardcode_libdir_flag_spec='-L$libdir' 10639 hardcode_shlibpath_var=no 10640 ;; 10641 10642 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10643 # support. Future versions do this automatically, but an explicit c++rt0.o 10644 # does not break anything, and helps significantly (at the cost of a little 10645 # extra space). 10646 freebsd2.2*) 10647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10648 hardcode_libdir_flag_spec='-R$libdir' 10649 hardcode_direct=yes 10650 hardcode_shlibpath_var=no 10651 ;; 10652 10653 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10654 freebsd2.*) 10655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10656 hardcode_direct=yes 10657 hardcode_minus_L=yes 10658 hardcode_shlibpath_var=no 10659 ;; 10660 10661 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10662 freebsd* | dragonfly* | midnightbsd*) 10663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10664 hardcode_libdir_flag_spec='-R$libdir' 10665 hardcode_direct=yes 10666 hardcode_shlibpath_var=no 10667 ;; 10668 10669 hpux9*) 10670 if test yes = "$GCC"; then 10671 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' 10672 else 10673 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' 10674 fi 10675 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10676 hardcode_libdir_separator=: 10677 hardcode_direct=yes 10678 10679 # hardcode_minus_L: Not really in the search PATH, 10680 # but as the default location of the library. 10681 hardcode_minus_L=yes 10682 export_dynamic_flag_spec='$wl-E' 10683 ;; 10684 10685 hpux10*) 10686 if test yes,no = "$GCC,$with_gnu_ld"; then 10687 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10688 else 10689 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10690 fi 10691 if test no = "$with_gnu_ld"; then 10692 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10693 hardcode_libdir_separator=: 10694 hardcode_direct=yes 10695 hardcode_direct_absolute=yes 10696 export_dynamic_flag_spec='$wl-E' 10697 # hardcode_minus_L: Not really in the search PATH, 10698 # but as the default location of the library. 10699 hardcode_minus_L=yes 10700 fi 10701 ;; 10702 10703 hpux11*) 10704 if test yes,no = "$GCC,$with_gnu_ld"; then 10705 case $host_cpu in 10706 hppa*64*) 10707 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10708 ;; 10709 ia64*) 10710 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10711 ;; 10712 *) 10713 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10714 ;; 10715 esac 10716 else 10717 case $host_cpu in 10718 hppa*64*) 10719 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10720 ;; 10721 ia64*) 10722 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10723 ;; 10724 *) 10725 10726 # Older versions of the 11.00 compiler do not understand -b yet 10727 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10729 printf %s "checking if $CC understands -b... " >&6; } 10730 if test ${lt_cv_prog_compiler__b+y} 10731 then : 10732 printf %s "(cached) " >&6 10733 else case e in #( 10734 e) lt_cv_prog_compiler__b=no 10735 save_LDFLAGS=$LDFLAGS 10736 LDFLAGS="$LDFLAGS -b" 10737 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10738 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10739 # The linker can only warn and ignore the option if not recognized 10740 # So say no if there are warnings 10741 if test -s conftest.err; then 10742 # Append any errors to the config.log. 10743 cat conftest.err 1>&5 10744 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10746 if diff conftest.exp conftest.er2 >/dev/null; then 10747 lt_cv_prog_compiler__b=yes 10748 fi 10749 else 10750 lt_cv_prog_compiler__b=yes 10751 fi 10752 fi 10753 $RM -r conftest* 10754 LDFLAGS=$save_LDFLAGS 10755 ;; 10756 esac 10757 fi 10758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10759 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10760 10761 if test yes = "$lt_cv_prog_compiler__b"; then 10762 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10763 else 10764 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10765 fi 10766 10767 ;; 10768 esac 10769 fi 10770 if test no = "$with_gnu_ld"; then 10771 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10772 hardcode_libdir_separator=: 10773 10774 case $host_cpu in 10775 hppa*64*|ia64*) 10776 hardcode_direct=no 10777 hardcode_shlibpath_var=no 10778 ;; 10779 *) 10780 hardcode_direct=yes 10781 hardcode_direct_absolute=yes 10782 export_dynamic_flag_spec='$wl-E' 10783 10784 # hardcode_minus_L: Not really in the search PATH, 10785 # but as the default location of the library. 10786 hardcode_minus_L=yes 10787 ;; 10788 esac 10789 fi 10790 ;; 10791 10792 irix5* | irix6* | nonstopux*) 10793 if test yes = "$GCC"; then 10794 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' 10795 # Try to use the -exported_symbol ld option, if it does not 10796 # work, assume that -exports_file does not work either and 10797 # implicitly export all symbols. 10798 # This should be the same for all languages, so no per-tag cache variable. 10799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10800 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10801 if test ${lt_cv_irix_exported_symbol+y} 10802 then : 10803 printf %s "(cached) " >&6 10804 else case e in #( 10805 e) save_LDFLAGS=$LDFLAGS 10806 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10808 /* end confdefs.h. */ 10809 int foo (void) { return 0; } 10810 _ACEOF 10811 if ac_fn_c_try_link "$LINENO" 10812 then : 10813 lt_cv_irix_exported_symbol=yes 10814 else case e in #( 10815 e) lt_cv_irix_exported_symbol=no ;; 10816 esac 10817 fi 10818 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10819 conftest$ac_exeext conftest.$ac_ext 10820 LDFLAGS=$save_LDFLAGS ;; 10821 esac 10822 fi 10823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10824 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10825 if test yes = "$lt_cv_irix_exported_symbol"; then 10826 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' 10827 fi 10828 else 10829 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' 10830 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' 10831 fi 10832 archive_cmds_need_lc='no' 10833 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10834 hardcode_libdir_separator=: 10835 inherit_rpath=yes 10836 link_all_deplibs=yes 10837 ;; 10838 10839 linux*) 10840 case $cc_basename in 10841 tcc*) 10842 # Fabrice Bellard et al's Tiny C Compiler 10843 ld_shlibs=yes 10844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10845 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10846 ;; 10847 esac 10848 ;; 10849 10850 *-mlibc) 10851 ;; 10852 10853 netbsd* | netbsdelf*-gnu) 10854 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10856 else 10857 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10858 fi 10859 hardcode_libdir_flag_spec='-R$libdir' 10860 hardcode_direct=yes 10861 hardcode_shlibpath_var=no 10862 ;; 10863 10864 newsos6) 10865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10866 hardcode_direct=yes 10867 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10868 hardcode_libdir_separator=: 10869 hardcode_shlibpath_var=no 10870 ;; 10871 10872 *nto* | *qnx*) 10873 ;; 10874 10875 openbsd*) 10876 if test -f /usr/libexec/ld.so; then 10877 hardcode_direct=yes 10878 hardcode_shlibpath_var=no 10879 hardcode_direct_absolute=yes 10880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10881 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10882 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10883 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10884 export_dynamic_flag_spec='$wl-E' 10885 else 10886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10887 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10888 fi 10889 else 10890 ld_shlibs=no 10891 fi 10892 ;; 10893 10894 os2*) 10895 hardcode_libdir_flag_spec='-L$libdir' 10896 hardcode_minus_L=yes 10897 allow_undefined_flag=unsupported 10898 shrext_cmds=.dll 10899 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10900 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10901 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10902 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10903 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10904 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10905 emximp -o $lib $output_objdir/$libname.def' 10906 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10907 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10908 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10909 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10910 prefix_cmds="$SED"~ 10911 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10912 prefix_cmds="$prefix_cmds -e 1d"; 10913 fi~ 10914 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10915 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10916 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10917 emximp -o $lib $output_objdir/$libname.def' 10918 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10919 enable_shared_with_static_runtimes=yes 10920 file_list_spec='@' 10921 ;; 10922 10923 osf3*) 10924 if test yes = "$GCC"; then 10925 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10926 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' 10927 else 10928 allow_undefined_flag=' -expect_unresolved \*' 10929 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' 10930 fi 10931 archive_cmds_need_lc='no' 10932 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10933 hardcode_libdir_separator=: 10934 ;; 10935 10936 osf4* | osf5*) # as osf3* with the addition of -msym flag 10937 if test yes = "$GCC"; then 10938 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10939 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' 10940 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10941 else 10942 allow_undefined_flag=' -expect_unresolved \*' 10943 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' 10944 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~ 10945 $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' 10946 10947 # Both c and cxx compiler support -rpath directly 10948 hardcode_libdir_flag_spec='-rpath $libdir' 10949 fi 10950 archive_cmds_need_lc='no' 10951 hardcode_libdir_separator=: 10952 ;; 10953 10954 serenity*) 10955 ;; 10956 10957 solaris*) 10958 no_undefined_flag=' -z defs' 10959 if test yes = "$GCC"; then 10960 wlarc='$wl' 10961 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10962 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10963 $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' 10964 else 10965 case `$CC -V 2>&1` in 10966 *"Compilers 5.0"*) 10967 wlarc='' 10968 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10969 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10970 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10971 ;; 10972 *) 10973 wlarc='$wl' 10974 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10975 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10976 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10977 ;; 10978 esac 10979 fi 10980 hardcode_libdir_flag_spec='-R$libdir' 10981 hardcode_shlibpath_var=no 10982 case $host_os in 10983 solaris2.[0-5] | solaris2.[0-5].*) ;; 10984 *) 10985 # The compiler driver will combine and reorder linker options, 10986 # but understands '-z linker_flag'. GCC discards it without '$wl', 10987 # but is careful enough not to reorder. 10988 # Supported since Solaris 2.6 (maybe 2.5.1?) 10989 if test yes = "$GCC"; then 10990 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10991 else 10992 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10993 fi 10994 ;; 10995 esac 10996 link_all_deplibs=yes 10997 ;; 10998 10999 sunos4*) 11000 if test sequent = "$host_vendor"; then 11001 # Use $CC to link under sequent, because it throws in some extra .o 11002 # files that make .init and .fini sections work. 11003 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11004 else 11005 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11006 fi 11007 hardcode_libdir_flag_spec='-L$libdir' 11008 hardcode_direct=yes 11009 hardcode_minus_L=yes 11010 hardcode_shlibpath_var=no 11011 ;; 11012 11013 sysv4) 11014 case $host_vendor in 11015 sni) 11016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11017 hardcode_direct=yes # is this really true??? 11018 ;; 11019 siemens) 11020 ## LD is ld it makes a PLAMLIB 11021 ## CC just makes a GrossModule. 11022 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11023 reload_cmds='$CC -r -o $output$reload_objs' 11024 hardcode_direct=no 11025 ;; 11026 motorola) 11027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11028 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11029 ;; 11030 esac 11031 runpath_var='LD_RUN_PATH' 11032 hardcode_shlibpath_var=no 11033 ;; 11034 11035 sysv4.3*) 11036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11037 hardcode_shlibpath_var=no 11038 export_dynamic_flag_spec='-Bexport' 11039 ;; 11040 11041 sysv4*MP*) 11042 if test -d /usr/nec; then 11043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11044 hardcode_shlibpath_var=no 11045 runpath_var=LD_RUN_PATH 11046 hardcode_runpath_var=yes 11047 ld_shlibs=yes 11048 fi 11049 ;; 11050 11051 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11052 no_undefined_flag='$wl-z,text' 11053 archive_cmds_need_lc=no 11054 hardcode_shlibpath_var=no 11055 runpath_var='LD_RUN_PATH' 11056 11057 if test yes = "$GCC"; then 11058 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11059 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11060 else 11061 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11062 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11063 fi 11064 ;; 11065 11066 sysv5* | sco3.2v5* | sco5v6*) 11067 # Note: We CANNOT use -z defs as we might desire, because we do not 11068 # link with -lc, and that would cause any symbols used from libc to 11069 # always be unresolved, which means just about no library would 11070 # ever link correctly. If we're not using GNU ld we use -z text 11071 # though, which does catch some bad symbols but isn't as heavy-handed 11072 # as -z defs. 11073 no_undefined_flag='$wl-z,text' 11074 allow_undefined_flag='$wl-z,nodefs' 11075 archive_cmds_need_lc=no 11076 hardcode_shlibpath_var=no 11077 hardcode_libdir_flag_spec='$wl-R,$libdir' 11078 hardcode_libdir_separator=':' 11079 link_all_deplibs=yes 11080 export_dynamic_flag_spec='$wl-Bexport' 11081 runpath_var='LD_RUN_PATH' 11082 11083 if test yes = "$GCC"; then 11084 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11085 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11086 else 11087 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11088 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11089 fi 11090 ;; 11091 11092 uts4*) 11093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11094 hardcode_libdir_flag_spec='-L$libdir' 11095 hardcode_shlibpath_var=no 11096 ;; 11097 11098 *) 11099 ld_shlibs=no 11100 ;; 11101 esac 11102 11103 if test sni = "$host_vendor"; then 11104 case $host in 11105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11106 export_dynamic_flag_spec='$wl-Blargedynsym' 11107 ;; 11108 esac 11109 fi 11110 fi 11111 11112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11113 printf "%s\n" "$ld_shlibs" >&6; } 11114 test no = "$ld_shlibs" && can_build_shared=no 11115 11116 with_gnu_ld=$with_gnu_ld 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 # 11133 # Do we need to explicitly link libc? 11134 # 11135 case "x$archive_cmds_need_lc" in 11136 x|xyes) 11137 # Assume -lc should be added 11138 archive_cmds_need_lc=yes 11139 11140 if test yes,yes = "$GCC,$enable_shared"; then 11141 case $archive_cmds in 11142 *'~'*) 11143 # FIXME: we may have to deal with multi-command sequences. 11144 ;; 11145 '$CC '*) 11146 # Test whether the compiler implicitly links with -lc since on some 11147 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11148 # to ld, don't add -lc before -lgcc. 11149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11150 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11151 if test ${lt_cv_archive_cmds_need_lc+y} 11152 then : 11153 printf %s "(cached) " >&6 11154 else case e in #( 11155 e) $RM conftest* 11156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11157 11158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11159 (eval $ac_compile) 2>&5 11160 ac_status=$? 11161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11162 test $ac_status = 0; } 2>conftest.err; then 11163 soname=conftest 11164 lib=conftest 11165 libobjs=conftest.$ac_objext 11166 deplibs= 11167 wl=$lt_prog_compiler_wl 11168 pic_flag=$lt_prog_compiler_pic 11169 compiler_flags=-v 11170 linker_flags=-v 11171 verstring= 11172 output_objdir=. 11173 libname=conftest 11174 lt_save_allow_undefined_flag=$allow_undefined_flag 11175 allow_undefined_flag= 11176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11177 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11178 ac_status=$? 11179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11180 test $ac_status = 0; } 11181 then 11182 lt_cv_archive_cmds_need_lc=no 11183 else 11184 lt_cv_archive_cmds_need_lc=yes 11185 fi 11186 allow_undefined_flag=$lt_save_allow_undefined_flag 11187 else 11188 cat conftest.err 1>&5 11189 fi 11190 $RM conftest* 11191 ;; 11192 esac 11193 fi 11194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11195 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11196 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11197 ;; 11198 esac 11199 fi 11200 ;; 11201 esac 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11355 printf %s "checking dynamic linker characteristics... " >&6; } 11356 11357 if test yes = "$GCC"; then 11358 case $host_os in 11359 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11360 *) lt_awk_arg='/^libraries:/' ;; 11361 esac 11362 case $host_os in 11363 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11364 *) lt_sed_strip_eq='s|=/|/|g' ;; 11365 esac 11366 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11367 case $lt_search_path_spec in 11368 *\;*) 11369 # if the path contains ";" then we assume it to be the separator 11370 # otherwise default to the standard path separator (i.e. ":") - it is 11371 # assumed that no part of a normal pathname contains ";" but that should 11372 # okay in the real world where ";" in dirpaths is itself problematic. 11373 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11374 ;; 11375 *) 11376 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11377 ;; 11378 esac 11379 # Ok, now we have the path, separated by spaces, we can step through it 11380 # and add multilib dir if necessary... 11381 lt_tmp_lt_search_path_spec= 11382 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11383 # ...but if some path component already ends with the multilib dir we assume 11384 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11385 case "$lt_multi_os_dir; $lt_search_path_spec " in 11386 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11387 lt_multi_os_dir= 11388 ;; 11389 esac 11390 for lt_sys_path in $lt_search_path_spec; do 11391 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11392 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11393 elif test -n "$lt_multi_os_dir"; then 11394 test -d "$lt_sys_path" && \ 11395 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11396 fi 11397 done 11398 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11399 BEGIN {RS = " "; FS = "/|\n";} { 11400 lt_foo = ""; 11401 lt_count = 0; 11402 for (lt_i = NF; lt_i > 0; lt_i--) { 11403 if ($lt_i != "" && $lt_i != ".") { 11404 if ($lt_i == "..") { 11405 lt_count++; 11406 } else { 11407 if (lt_count == 0) { 11408 lt_foo = "/" $lt_i lt_foo; 11409 } else { 11410 lt_count--; 11411 } 11412 } 11413 } 11414 } 11415 if (lt_foo != "") { lt_freq[lt_foo]++; } 11416 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11417 }'` 11418 # AWK program above erroneously prepends '/' to C:/dos/paths 11419 # for these hosts. 11420 case $host_os in 11421 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11422 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11423 esac 11424 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11425 else 11426 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11427 fi 11428 library_names_spec= 11429 libname_spec='lib$name' 11430 soname_spec= 11431 shrext_cmds=.so 11432 postinstall_cmds= 11433 postuninstall_cmds= 11434 finish_cmds= 11435 finish_eval= 11436 shlibpath_var= 11437 shlibpath_overrides_runpath=unknown 11438 version_type=none 11439 dynamic_linker="$host_os ld.so" 11440 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11441 need_lib_prefix=unknown 11442 hardcode_into_libs=no 11443 11444 # when you set need_version to no, make sure it does not cause -set_version 11445 # flags to be left without arguments 11446 need_version=unknown 11447 11448 11449 11450 case $host_os in 11451 aix3*) 11452 version_type=linux # correct to gnu/linux during the next big refactor 11453 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11454 shlibpath_var=LIBPATH 11455 11456 # AIX 3 has no versioning support, so we append a major version to the name. 11457 soname_spec='$libname$release$shared_ext$major' 11458 ;; 11459 11460 aix[4-9]*) 11461 version_type=linux # correct to gnu/linux during the next big refactor 11462 need_lib_prefix=no 11463 need_version=no 11464 hardcode_into_libs=yes 11465 if test ia64 = "$host_cpu"; then 11466 # AIX 5 supports IA64 11467 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11468 shlibpath_var=LD_LIBRARY_PATH 11469 else 11470 # With GCC up to 2.95.x, collect2 would create an import file 11471 # for dependence libraries. The import file would start with 11472 # the line '#! .'. This would cause the generated library to 11473 # depend on '.', always an invalid library. This was fixed in 11474 # development snapshots of GCC prior to 3.0. 11475 case $host_os in 11476 aix4 | aix4.[01] | aix4.[01].*) 11477 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11478 echo ' yes ' 11479 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11480 : 11481 else 11482 can_build_shared=no 11483 fi 11484 ;; 11485 esac 11486 # Using Import Files as archive members, it is possible to support 11487 # filename-based versioning of shared library archives on AIX. While 11488 # this would work for both with and without runtime linking, it will 11489 # prevent static linking of such archives. So we do filename-based 11490 # shared library versioning with .so extension only, which is used 11491 # when both runtime linking and shared linking is enabled. 11492 # Unfortunately, runtime linking may impact performance, so we do 11493 # not want this to be the default eventually. Also, we use the 11494 # versioned .so libs for executables only if there is the -brtl 11495 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 11496 # To allow for filename-based versioning support, we need to create 11497 # libNAME.so.V as an archive file, containing: 11498 # *) an Import File, referring to the versioned filename of the 11499 # archive as well as the shared archive member, telling the 11500 # bitwidth (32 or 64) of that shared object, and providing the 11501 # list of exported symbols of that shared object, eventually 11502 # decorated with the 'weak' keyword 11503 # *) the shared object with the F_LOADONLY flag set, to really avoid 11504 # it being seen by the linker. 11505 # At run time we better use the real file rather than another symlink, 11506 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11507 11508 case $with_aix_soname,$aix_use_runtimelinking in 11509 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11510 # soname into executable. Probably we can add versioning support to 11511 # collect2, so additional links can be useful in future. 11512 aix,yes) # traditional libtool 11513 dynamic_linker='AIX unversionable lib.so' 11514 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11515 # instead of lib<name>.a to let people know that these are not 11516 # typical AIX shared libraries. 11517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11518 ;; 11519 aix,no) # traditional AIX only 11520 dynamic_linker='AIX lib.a(lib.so.V)' 11521 # We preserve .a as extension for shared libraries through AIX4.2 11522 # and later when we are not doing run time linking. 11523 library_names_spec='$libname$release.a $libname.a' 11524 soname_spec='$libname$release$shared_ext$major' 11525 ;; 11526 svr4,*) # full svr4 only 11527 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11528 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11529 # We do not specify a path in Import Files, so LIBPATH fires. 11530 shlibpath_overrides_runpath=yes 11531 ;; 11532 *,yes) # both, prefer svr4 11533 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11534 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11535 # unpreferred sharedlib libNAME.a needs extra handling 11536 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"' 11537 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"' 11538 # We do not specify a path in Import Files, so LIBPATH fires. 11539 shlibpath_overrides_runpath=yes 11540 ;; 11541 *,no) # both, prefer aix 11542 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11543 library_names_spec='$libname$release.a $libname.a' 11544 soname_spec='$libname$release$shared_ext$major' 11545 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11546 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)' 11547 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"' 11548 ;; 11549 esac 11550 shlibpath_var=LIBPATH 11551 fi 11552 ;; 11553 11554 amigaos*) 11555 case $host_cpu in 11556 powerpc) 11557 # Since July 2007 AmigaOS4 officially supports .so libraries. 11558 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11560 ;; 11561 m68k) 11562 library_names_spec='$libname.ixlibrary $libname.a' 11563 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11564 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' 11565 ;; 11566 esac 11567 ;; 11568 11569 beos*) 11570 library_names_spec='$libname$shared_ext' 11571 dynamic_linker="$host_os ld.so" 11572 shlibpath_var=LIBRARY_PATH 11573 ;; 11574 11575 bsdi[45]*) 11576 version_type=linux # correct to gnu/linux during the next big refactor 11577 need_version=no 11578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11579 soname_spec='$libname$release$shared_ext$major' 11580 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11581 shlibpath_var=LD_LIBRARY_PATH 11582 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11583 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11584 # the default ld.so.conf also contains /usr/contrib/lib and 11585 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11586 # libtool to hard-code these into programs 11587 ;; 11588 11589 cygwin* | mingw* | windows* | pw32* | cegcc*) 11590 version_type=windows 11591 shrext_cmds=.dll 11592 need_version=no 11593 need_lib_prefix=no 11594 11595 case $GCC,$cc_basename in 11596 yes,*) 11597 # gcc 11598 library_names_spec='$libname.dll.a' 11599 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11600 # If user builds GCC with multilib enabled, 11601 # it should just install on $(libdir) 11602 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 11603 if test xyes = x"$multilib"; then 11604 postinstall_cmds='base_file=`basename \$file`~ 11605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11606 dldir=$destdir/`dirname \$dlpath`~ 11607 $install_prog $dir/$dlname $destdir/$dlname~ 11608 chmod a+x $destdir/$dlname~ 11609 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11610 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 11611 fi' 11612 else 11613 postinstall_cmds='base_file=`basename \$file`~ 11614 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11615 dldir=$destdir/`dirname \$dlpath`~ 11616 test -d \$dldir || mkdir -p \$dldir~ 11617 $install_prog $dir/$dlname \$dldir/$dlname~ 11618 chmod a+x \$dldir/$dlname~ 11619 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11620 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11621 fi' 11622 fi 11623 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11624 dlpath=$dir/\$dldll~ 11625 $RM \$dlpath' 11626 shlibpath_overrides_runpath=yes 11627 11628 case $host_os in 11629 cygwin*) 11630 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11631 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11632 11633 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11634 ;; 11635 mingw* | windows* | cegcc*) 11636 # MinGW DLLs use traditional 'lib' prefix 11637 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11638 ;; 11639 pw32*) 11640 # pw32 DLLs use 'pw' prefix rather than 'lib' 11641 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11642 ;; 11643 esac 11644 dynamic_linker='Win32 ld.exe' 11645 ;; 11646 11647 *,cl* | *,icl*) 11648 # Native MSVC or ICC 11649 libname_spec='$name' 11650 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11651 library_names_spec='$libname.dll.lib' 11652 11653 case $build_os in 11654 mingw* | windows*) 11655 sys_lib_search_path_spec= 11656 lt_save_ifs=$IFS 11657 IFS=';' 11658 for lt_path in $LIB 11659 do 11660 IFS=$lt_save_ifs 11661 # Let DOS variable expansion print the short 8.3 style file name. 11662 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11663 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11664 done 11665 IFS=$lt_save_ifs 11666 # Convert to MSYS style. 11667 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11668 ;; 11669 cygwin*) 11670 # Convert to unix form, then to dos form, then back to unix form 11671 # but this time dos style (no spaces!) so that the unix form looks 11672 # like /cygdrive/c/PROGRA~1:/cygdr... 11673 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11674 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11675 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11676 ;; 11677 *) 11678 sys_lib_search_path_spec=$LIB 11679 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11680 # It is most probably a Windows format PATH. 11681 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11682 else 11683 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11684 fi 11685 # FIXME: find the short name or the path components, as spaces are 11686 # common. (e.g. "Program Files" -> "PROGRA~1") 11687 ;; 11688 esac 11689 11690 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11691 postinstall_cmds='base_file=`basename \$file`~ 11692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11693 dldir=$destdir/`dirname \$dlpath`~ 11694 test -d \$dldir || mkdir -p \$dldir~ 11695 $install_prog $dir/$dlname \$dldir/$dlname' 11696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11697 dlpath=$dir/\$dldll~ 11698 $RM \$dlpath' 11699 shlibpath_overrides_runpath=yes 11700 dynamic_linker='Win32 link.exe' 11701 ;; 11702 11703 *) 11704 # Assume MSVC and ICC wrapper 11705 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11706 dynamic_linker='Win32 ld.exe' 11707 ;; 11708 esac 11709 # FIXME: first we should search . and the directory the executable is in 11710 shlibpath_var=PATH 11711 ;; 11712 11713 darwin* | rhapsody*) 11714 dynamic_linker="$host_os dyld" 11715 version_type=darwin 11716 need_lib_prefix=no 11717 need_version=no 11718 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11719 soname_spec='$libname$release$major$shared_ext' 11720 shlibpath_overrides_runpath=yes 11721 shlibpath_var=DYLD_LIBRARY_PATH 11722 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11723 11724 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11726 ;; 11727 11728 dgux*) 11729 version_type=linux # correct to gnu/linux during the next big refactor 11730 need_lib_prefix=no 11731 need_version=no 11732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11733 soname_spec='$libname$release$shared_ext$major' 11734 shlibpath_var=LD_LIBRARY_PATH 11735 ;; 11736 11737 freebsd* | dragonfly* | midnightbsd*) 11738 # DragonFly does not have aout. When/if they implement a new 11739 # versioning mechanism, adjust this. 11740 if test -x /usr/bin/objformat; then 11741 objformat=`/usr/bin/objformat` 11742 else 11743 case $host_os in 11744 freebsd[23].*) objformat=aout ;; 11745 *) objformat=elf ;; 11746 esac 11747 fi 11748 version_type=freebsd-$objformat 11749 case $version_type in 11750 freebsd-elf*) 11751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11752 soname_spec='$libname$release$shared_ext$major' 11753 need_version=no 11754 need_lib_prefix=no 11755 ;; 11756 freebsd-*) 11757 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11758 need_version=yes 11759 ;; 11760 esac 11761 case $host_cpu in 11762 powerpc64) 11763 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 11764 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 11765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11766 /* end confdefs.h. */ 11767 int test_pointer_size[sizeof (void *) - 5]; 11768 11769 _ACEOF 11770 if ac_fn_c_try_compile "$LINENO" 11771 then : 11772 shlibpath_var=LD_LIBRARY_PATH 11773 else case e in #( 11774 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 11775 esac 11776 fi 11777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11778 ;; 11779 *) 11780 shlibpath_var=LD_LIBRARY_PATH 11781 ;; 11782 esac 11783 case $host_os in 11784 freebsd2.*) 11785 shlibpath_overrides_runpath=yes 11786 ;; 11787 freebsd3.[01]* | freebsdelf3.[01]*) 11788 shlibpath_overrides_runpath=yes 11789 hardcode_into_libs=yes 11790 ;; 11791 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11792 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11793 shlibpath_overrides_runpath=no 11794 hardcode_into_libs=yes 11795 ;; 11796 *) # from 4.6 on, and DragonFly 11797 shlibpath_overrides_runpath=yes 11798 hardcode_into_libs=yes 11799 ;; 11800 esac 11801 ;; 11802 11803 haiku*) 11804 version_type=linux # correct to gnu/linux during the next big refactor 11805 need_lib_prefix=no 11806 need_version=no 11807 dynamic_linker="$host_os runtime_loader" 11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11809 soname_spec='$libname$release$shared_ext$major' 11810 shlibpath_var=LIBRARY_PATH 11811 shlibpath_overrides_runpath=no 11812 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 11813 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 11814 hardcode_into_libs=no 11815 ;; 11816 11817 hpux9* | hpux10* | hpux11*) 11818 # Give a soname corresponding to the major version so that dld.sl refuses to 11819 # link against other versions. 11820 version_type=sunos 11821 need_lib_prefix=no 11822 need_version=no 11823 case $host_cpu in 11824 ia64*) 11825 shrext_cmds='.so' 11826 hardcode_into_libs=yes 11827 dynamic_linker="$host_os dld.so" 11828 shlibpath_var=LD_LIBRARY_PATH 11829 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11831 soname_spec='$libname$release$shared_ext$major' 11832 if test 32 = "$HPUX_IA64_MODE"; then 11833 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11834 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11835 else 11836 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11837 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11838 fi 11839 ;; 11840 hppa*64*) 11841 shrext_cmds='.sl' 11842 hardcode_into_libs=yes 11843 dynamic_linker="$host_os dld.sl" 11844 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11847 soname_spec='$libname$release$shared_ext$major' 11848 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11849 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11850 ;; 11851 *) 11852 shrext_cmds='.sl' 11853 dynamic_linker="$host_os dld.sl" 11854 shlibpath_var=SHLIB_PATH 11855 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11857 soname_spec='$libname$release$shared_ext$major' 11858 ;; 11859 esac 11860 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11861 postinstall_cmds='chmod 555 $lib' 11862 # or fails outright, so override atomically: 11863 install_override_mode=555 11864 ;; 11865 11866 interix[3-9]*) 11867 version_type=linux # correct to gnu/linux during the next big refactor 11868 need_lib_prefix=no 11869 need_version=no 11870 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11871 soname_spec='$libname$release$shared_ext$major' 11872 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11873 shlibpath_var=LD_LIBRARY_PATH 11874 shlibpath_overrides_runpath=no 11875 hardcode_into_libs=yes 11876 ;; 11877 11878 irix5* | irix6* | nonstopux*) 11879 case $host_os in 11880 nonstopux*) version_type=nonstopux ;; 11881 *) 11882 if test yes = "$lt_cv_prog_gnu_ld"; then 11883 version_type=linux # correct to gnu/linux during the next big refactor 11884 else 11885 version_type=irix 11886 fi ;; 11887 esac 11888 need_lib_prefix=no 11889 need_version=no 11890 soname_spec='$libname$release$shared_ext$major' 11891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11892 case $host_os in 11893 irix5* | nonstopux*) 11894 libsuff= shlibsuff= 11895 ;; 11896 *) 11897 case $LD in # libtool.m4 will add one of these switches to LD 11898 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11899 libsuff= shlibsuff= libmagic=32-bit;; 11900 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11901 libsuff=32 shlibsuff=N32 libmagic=N32;; 11902 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11903 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11904 *) libsuff= shlibsuff= libmagic=never-match;; 11905 esac 11906 ;; 11907 esac 11908 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11909 shlibpath_overrides_runpath=no 11910 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11911 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11912 hardcode_into_libs=yes 11913 ;; 11914 11915 # No shared lib support for Linux oldld, aout, or coff. 11916 linux*oldld* | linux*aout* | linux*coff*) 11917 dynamic_linker=no 11918 ;; 11919 11920 linux*android*) 11921 version_type=none # Android doesn't support versioned libraries. 11922 need_lib_prefix=no 11923 need_version=no 11924 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 11925 soname_spec='$libname$release$shared_ext' 11926 finish_cmds= 11927 shlibpath_var=LD_LIBRARY_PATH 11928 shlibpath_overrides_runpath=yes 11929 11930 # This implies no fast_install, which is unacceptable. 11931 # Some rework will be needed to allow for fast_install 11932 # before this can be enabled. 11933 hardcode_into_libs=yes 11934 11935 dynamic_linker='Android linker' 11936 # -rpath works at least for libraries that are not overridden by 11937 # libraries installed in system locations. 11938 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11939 ;; 11940 11941 # This must be glibc/ELF. 11942 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11943 version_type=linux # correct to gnu/linux during the next big refactor 11944 need_lib_prefix=no 11945 need_version=no 11946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11947 soname_spec='$libname$release$shared_ext$major' 11948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11949 shlibpath_var=LD_LIBRARY_PATH 11950 shlibpath_overrides_runpath=no 11951 11952 # Some binutils ld are patched to set DT_RUNPATH 11953 if test ${lt_cv_shlibpath_overrides_runpath+y} 11954 then : 11955 printf %s "(cached) " >&6 11956 else case e in #( 11957 e) lt_cv_shlibpath_overrides_runpath=no 11958 save_LDFLAGS=$LDFLAGS 11959 save_libdir=$libdir 11960 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11961 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11963 /* end confdefs.h. */ 11964 11965 int 11966 main (void) 11967 { 11968 11969 ; 11970 return 0; 11971 } 11972 _ACEOF 11973 if ac_fn_c_try_link "$LINENO" 11974 then : 11975 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11976 then : 11977 lt_cv_shlibpath_overrides_runpath=yes 11978 fi 11979 fi 11980 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11981 conftest$ac_exeext conftest.$ac_ext 11982 LDFLAGS=$save_LDFLAGS 11983 libdir=$save_libdir 11984 ;; 11985 esac 11986 fi 11987 11988 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11989 11990 # This implies no fast_install, which is unacceptable. 11991 # Some rework will be needed to allow for fast_install 11992 # before this can be enabled. 11993 hardcode_into_libs=yes 11994 11995 # Ideally, we could use ldconfig to report *all* directories which are 11996 # searched for libraries, however this is still not possible. Aside from not 11997 # being certain /sbin/ldconfig is available, command 11998 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11999 # even though it is searched at run-time. Try to do the best guess by 12000 # appending ld.so.conf contents (and includes) to the search path. 12001 if test -f /etc/ld.so.conf; then 12002 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' ' '` 12003 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12004 fi 12005 12006 # We used to test for /lib/ld.so.1 and disable shared libraries on 12007 # powerpc, because MkLinux only supported shared libraries with the 12008 # GNU dynamic linker. Since this was broken with cross compilers, 12009 # most powerpc-linux boxes support dynamic linking these days and 12010 # people can always --disable-shared, the test was removed, and we 12011 # assume the GNU/Linux dynamic linker is in use. 12012 dynamic_linker='GNU/Linux ld.so' 12013 ;; 12014 12015 netbsdelf*-gnu) 12016 version_type=linux 12017 need_lib_prefix=no 12018 need_version=no 12019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12020 soname_spec='$libname$release$shared_ext$major' 12021 shlibpath_var=LD_LIBRARY_PATH 12022 shlibpath_overrides_runpath=no 12023 hardcode_into_libs=yes 12024 dynamic_linker='NetBSD ld.elf_so' 12025 ;; 12026 12027 netbsd*) 12028 version_type=sunos 12029 need_lib_prefix=no 12030 need_version=no 12031 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12032 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12034 dynamic_linker='NetBSD (a.out) ld.so' 12035 else 12036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12037 soname_spec='$libname$release$shared_ext$major' 12038 dynamic_linker='NetBSD ld.elf_so' 12039 fi 12040 shlibpath_var=LD_LIBRARY_PATH 12041 shlibpath_overrides_runpath=yes 12042 hardcode_into_libs=yes 12043 ;; 12044 12045 *-mlibc) 12046 version_type=linux # correct to gnu/linux during the next big refactor 12047 need_lib_prefix=no 12048 need_version=no 12049 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12050 soname_spec='$libname$release$shared_ext$major' 12051 dynamic_linker='mlibc ld.so' 12052 shlibpath_var=LD_LIBRARY_PATH 12053 shlibpath_overrides_runpath=no 12054 hardcode_into_libs=yes 12055 ;; 12056 12057 newsos6) 12058 version_type=linux # correct to gnu/linux during the next big refactor 12059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12060 shlibpath_var=LD_LIBRARY_PATH 12061 shlibpath_overrides_runpath=yes 12062 ;; 12063 12064 *nto* | *qnx*) 12065 version_type=qnx 12066 need_lib_prefix=no 12067 need_version=no 12068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12069 soname_spec='$libname$release$shared_ext$major' 12070 shlibpath_var=LD_LIBRARY_PATH 12071 shlibpath_overrides_runpath=no 12072 hardcode_into_libs=yes 12073 dynamic_linker='ldqnx.so' 12074 ;; 12075 12076 openbsd*) 12077 version_type=sunos 12078 sys_lib_dlsearch_path_spec=/usr/lib 12079 need_lib_prefix=no 12080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12081 need_version=no 12082 else 12083 need_version=yes 12084 fi 12085 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12087 shlibpath_var=LD_LIBRARY_PATH 12088 shlibpath_overrides_runpath=yes 12089 ;; 12090 12091 os2*) 12092 libname_spec='$name' 12093 version_type=windows 12094 shrext_cmds=.dll 12095 need_version=no 12096 need_lib_prefix=no 12097 # OS/2 can only load a DLL with a base name of 8 characters or less. 12098 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12099 v=$($ECHO $release$versuffix | tr -d .-); 12100 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12101 $ECHO $n$v`$shared_ext' 12102 library_names_spec='${libname}_dll.$libext' 12103 dynamic_linker='OS/2 ld.exe' 12104 shlibpath_var=BEGINLIBPATH 12105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12107 postinstall_cmds='base_file=`basename \$file`~ 12108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12109 dldir=$destdir/`dirname \$dlpath`~ 12110 test -d \$dldir || mkdir -p \$dldir~ 12111 $install_prog $dir/$dlname \$dldir/$dlname~ 12112 chmod a+x \$dldir/$dlname~ 12113 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12114 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12115 fi' 12116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12117 dlpath=$dir/\$dldll~ 12118 $RM \$dlpath' 12119 ;; 12120 12121 osf3* | osf4* | osf5*) 12122 version_type=osf 12123 need_lib_prefix=no 12124 need_version=no 12125 soname_spec='$libname$release$shared_ext$major' 12126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12127 shlibpath_var=LD_LIBRARY_PATH 12128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12130 ;; 12131 12132 rdos*) 12133 dynamic_linker=no 12134 ;; 12135 12136 serenity*) 12137 version_type=linux # correct to gnu/linux during the next big refactor 12138 need_lib_prefix=no 12139 need_version=no 12140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12141 soname_spec='$libname$release$shared_ext$major' 12142 shlibpath_var=LD_LIBRARY_PATH 12143 shlibpath_overrides_runpath=no 12144 dynamic_linker='SerenityOS LibELF' 12145 ;; 12146 12147 solaris*) 12148 version_type=linux # correct to gnu/linux during the next big refactor 12149 need_lib_prefix=no 12150 need_version=no 12151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12152 soname_spec='$libname$release$shared_ext$major' 12153 shlibpath_var=LD_LIBRARY_PATH 12154 shlibpath_overrides_runpath=yes 12155 hardcode_into_libs=yes 12156 # ldd complains unless libraries are executable 12157 postinstall_cmds='chmod +x $lib' 12158 ;; 12159 12160 sunos4*) 12161 version_type=sunos 12162 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12163 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12164 shlibpath_var=LD_LIBRARY_PATH 12165 shlibpath_overrides_runpath=yes 12166 if test yes = "$with_gnu_ld"; then 12167 need_lib_prefix=no 12168 fi 12169 need_version=yes 12170 ;; 12171 12172 sysv4 | sysv4.3*) 12173 version_type=linux # correct to gnu/linux during the next big refactor 12174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12175 soname_spec='$libname$release$shared_ext$major' 12176 shlibpath_var=LD_LIBRARY_PATH 12177 case $host_vendor in 12178 sni) 12179 shlibpath_overrides_runpath=no 12180 need_lib_prefix=no 12181 runpath_var=LD_RUN_PATH 12182 ;; 12183 siemens) 12184 need_lib_prefix=no 12185 ;; 12186 motorola) 12187 need_lib_prefix=no 12188 need_version=no 12189 shlibpath_overrides_runpath=no 12190 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12191 ;; 12192 esac 12193 ;; 12194 12195 sysv4*MP*) 12196 if test -d /usr/nec; then 12197 version_type=linux # correct to gnu/linux during the next big refactor 12198 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12199 soname_spec='$libname$shared_ext.$major' 12200 shlibpath_var=LD_LIBRARY_PATH 12201 fi 12202 ;; 12203 12204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12205 version_type=sco 12206 need_lib_prefix=no 12207 need_version=no 12208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12209 soname_spec='$libname$release$shared_ext$major' 12210 shlibpath_var=LD_LIBRARY_PATH 12211 shlibpath_overrides_runpath=yes 12212 hardcode_into_libs=yes 12213 if test yes = "$with_gnu_ld"; then 12214 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12215 else 12216 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12217 case $host_os in 12218 sco3.2v5*) 12219 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12220 ;; 12221 esac 12222 fi 12223 sys_lib_dlsearch_path_spec='/usr/lib' 12224 ;; 12225 12226 tpf*) 12227 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12228 version_type=linux # correct to gnu/linux during the next big refactor 12229 need_lib_prefix=no 12230 need_version=no 12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12232 shlibpath_var=LD_LIBRARY_PATH 12233 shlibpath_overrides_runpath=no 12234 hardcode_into_libs=yes 12235 ;; 12236 12237 uts4*) 12238 version_type=linux # correct to gnu/linux during the next big refactor 12239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12240 soname_spec='$libname$release$shared_ext$major' 12241 shlibpath_var=LD_LIBRARY_PATH 12242 ;; 12243 12244 emscripten*) 12245 version_type=none 12246 need_lib_prefix=no 12247 need_version=no 12248 library_names_spec='$libname$release$shared_ext' 12249 soname_spec='$libname$release$shared_ext' 12250 finish_cmds= 12251 dynamic_linker="Emscripten linker" 12252 lt_prog_compiler_wl= 12253 lt_prog_compiler_pic= 12254 lt_prog_compiler_static= 12255 12256 12257 if test yes = "$GCC"; then 12258 lt_prog_compiler_wl='-Wl,' 12259 lt_prog_compiler_static='-static' 12260 12261 case $host_os in 12262 aix*) 12263 # All AIX code is PIC. 12264 if test ia64 = "$host_cpu"; then 12265 # AIX 5 now supports IA64 processor 12266 lt_prog_compiler_static='-Bstatic' 12267 fi 12268 lt_prog_compiler_pic='-fPIC' 12269 ;; 12270 12271 amigaos*) 12272 case $host_cpu in 12273 powerpc) 12274 # see comment about AmigaOS4 .so support 12275 lt_prog_compiler_pic='-fPIC' 12276 ;; 12277 m68k) 12278 # FIXME: we need at least 68020 code to build shared libraries, but 12279 # adding the '-m68020' flag to GCC prevents building anything better, 12280 # like '-m68040'. 12281 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12282 ;; 12283 esac 12284 ;; 12285 12286 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12287 # PIC is the default for these OSes. 12288 ;; 12289 12290 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12291 # This hack is so that the source file can tell whether it is being 12292 # built for inclusion in a dll (and should export symbols for example). 12293 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12294 # (--disable-auto-import) libraries 12295 lt_prog_compiler_pic='-DDLL_EXPORT' 12296 case $host_os in 12297 os2*) 12298 lt_prog_compiler_static='$wl-static' 12299 ;; 12300 esac 12301 ;; 12302 12303 darwin* | rhapsody*) 12304 # PIC is the default on this platform 12305 # Common symbols not allowed in MH_DYLIB files 12306 lt_prog_compiler_pic='-fno-common' 12307 ;; 12308 12309 haiku*) 12310 # PIC is the default for Haiku. 12311 # The "-static" flag exists, but is broken. 12312 lt_prog_compiler_static= 12313 ;; 12314 12315 hpux*) 12316 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12317 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12318 # sets the default TLS model and affects inlining. 12319 case $host_cpu in 12320 hppa*64*) 12321 # +Z the default 12322 ;; 12323 *) 12324 lt_prog_compiler_pic='-fPIC' 12325 ;; 12326 esac 12327 ;; 12328 12329 interix[3-9]*) 12330 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12331 # Instead, we relocate shared libraries at runtime. 12332 ;; 12333 12334 msdosdjgpp*) 12335 # Just because we use GCC doesn't mean we suddenly get shared libraries 12336 # on systems that don't support them. 12337 lt_prog_compiler_can_build_shared=no 12338 enable_shared=no 12339 ;; 12340 12341 *nto* | *qnx*) 12342 # QNX uses GNU C++, but need to define -shared option too, otherwise 12343 # it will coredump. 12344 lt_prog_compiler_pic='-fPIC -shared' 12345 ;; 12346 12347 sysv4*MP*) 12348 if test -d /usr/nec; then 12349 lt_prog_compiler_pic=-Kconform_pic 12350 fi 12351 ;; 12352 12353 *) 12354 lt_prog_compiler_pic='-fPIC' 12355 ;; 12356 esac 12357 12358 case $cc_basename in 12359 nvcc*) # Cuda Compiler Driver 2.2 12360 lt_prog_compiler_wl='-Xlinker ' 12361 if test -n "$lt_prog_compiler_pic"; then 12362 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12363 fi 12364 ;; 12365 esac 12366 else 12367 # PORTME Check for flag to pass linker flags through the system compiler. 12368 case $host_os in 12369 aix*) 12370 lt_prog_compiler_wl='-Wl,' 12371 if test ia64 = "$host_cpu"; then 12372 # AIX 5 now supports IA64 processor 12373 lt_prog_compiler_static='-Bstatic' 12374 else 12375 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12376 fi 12377 ;; 12378 12379 darwin* | rhapsody*) 12380 # PIC is the default on this platform 12381 # Common symbols not allowed in MH_DYLIB files 12382 lt_prog_compiler_pic='-fno-common' 12383 case $cc_basename in 12384 nagfor*) 12385 # NAG Fortran compiler 12386 lt_prog_compiler_wl='-Wl,-Wl,,' 12387 lt_prog_compiler_pic='-PIC' 12388 lt_prog_compiler_static='-Bstatic' 12389 ;; 12390 esac 12391 ;; 12392 12393 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12394 # This hack is so that the source file can tell whether it is being 12395 # built for inclusion in a dll (and should export symbols for example). 12396 lt_prog_compiler_pic='-DDLL_EXPORT' 12397 case $host_os in 12398 os2*) 12399 lt_prog_compiler_static='$wl-static' 12400 ;; 12401 esac 12402 ;; 12403 12404 hpux9* | hpux10* | hpux11*) 12405 lt_prog_compiler_wl='-Wl,' 12406 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12407 # not for PA HP-UX. 12408 case $host_cpu in 12409 hppa*64*|ia64*) 12410 # +Z the default 12411 ;; 12412 *) 12413 lt_prog_compiler_pic='+Z' 12414 ;; 12415 esac 12416 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12417 lt_prog_compiler_static='$wl-a ${wl}archive' 12418 ;; 12419 12420 irix5* | irix6* | nonstopux*) 12421 lt_prog_compiler_wl='-Wl,' 12422 # PIC (with -KPIC) is the default. 12423 lt_prog_compiler_static='-non_shared' 12424 ;; 12425 12426 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12427 case $cc_basename in 12428 # old Intel for x86_64, which still supported -KPIC. 12429 ecc*) 12430 lt_prog_compiler_wl='-Wl,' 12431 lt_prog_compiler_pic='-KPIC' 12432 lt_prog_compiler_static='-static' 12433 ;; 12434 *flang* | ftn | f18* | f95*) 12435 # Flang compiler. 12436 lt_prog_compiler_wl='-Wl,' 12437 lt_prog_compiler_pic='-fPIC' 12438 lt_prog_compiler_static='-static' 12439 ;; 12440 # icc used to be incompatible with GCC. 12441 # ICC 10 doesn't accept -KPIC any more. 12442 icc* | ifort*) 12443 lt_prog_compiler_wl='-Wl,' 12444 lt_prog_compiler_pic='-fPIC' 12445 lt_prog_compiler_static='-static' 12446 ;; 12447 # Lahey Fortran 8.1. 12448 lf95*) 12449 lt_prog_compiler_wl='-Wl,' 12450 lt_prog_compiler_pic='--shared' 12451 lt_prog_compiler_static='--static' 12452 ;; 12453 nagfor*) 12454 # NAG Fortran compiler 12455 lt_prog_compiler_wl='-Wl,-Wl,,' 12456 lt_prog_compiler_pic='-PIC' 12457 lt_prog_compiler_static='-Bstatic' 12458 ;; 12459 tcc*) 12460 # Fabrice Bellard et al's Tiny C Compiler 12461 lt_prog_compiler_wl='-Wl,' 12462 lt_prog_compiler_pic='-fPIC' 12463 lt_prog_compiler_static='-static' 12464 ;; 12465 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12466 # Portland Group compilers (*not* the Pentium gcc compiler, 12467 # which looks to be a dead project) 12468 lt_prog_compiler_wl='-Wl,' 12469 lt_prog_compiler_pic='-fpic' 12470 lt_prog_compiler_static='-Bstatic' 12471 ;; 12472 ccc*) 12473 lt_prog_compiler_wl='-Wl,' 12474 # All Alpha code is PIC. 12475 lt_prog_compiler_static='-non_shared' 12476 ;; 12477 xl* | bgxl* | bgf* | mpixl*) 12478 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12479 lt_prog_compiler_wl='-Wl,' 12480 lt_prog_compiler_pic='-qpic' 12481 lt_prog_compiler_static='-qstaticlink' 12482 ;; 12483 *) 12484 case `$CC -V 2>&1 | $SED 5q` in 12485 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12486 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12487 lt_prog_compiler_pic='-KPIC' 12488 lt_prog_compiler_static='-Bstatic' 12489 lt_prog_compiler_wl='' 12490 ;; 12491 *Sun\ F* | *Sun*Fortran*) 12492 lt_prog_compiler_pic='-KPIC' 12493 lt_prog_compiler_static='-Bstatic' 12494 lt_prog_compiler_wl='-Qoption ld ' 12495 ;; 12496 *Sun\ C*) 12497 # Sun C 5.9 12498 lt_prog_compiler_pic='-KPIC' 12499 lt_prog_compiler_static='-Bstatic' 12500 lt_prog_compiler_wl='-Wl,' 12501 ;; 12502 *Intel*\ [CF]*Compiler*) 12503 lt_prog_compiler_wl='-Wl,' 12504 lt_prog_compiler_pic='-fPIC' 12505 lt_prog_compiler_static='-static' 12506 ;; 12507 *Portland\ Group*) 12508 lt_prog_compiler_wl='-Wl,' 12509 lt_prog_compiler_pic='-fpic' 12510 lt_prog_compiler_static='-Bstatic' 12511 ;; 12512 esac 12513 ;; 12514 esac 12515 ;; 12516 12517 newsos6) 12518 lt_prog_compiler_pic='-KPIC' 12519 lt_prog_compiler_static='-Bstatic' 12520 ;; 12521 12522 *-mlibc) 12523 lt_prog_compiler_wl='-Wl,' 12524 lt_prog_compiler_pic='-fPIC' 12525 lt_prog_compiler_static='-static' 12526 ;; 12527 12528 *nto* | *qnx*) 12529 # QNX uses GNU C++, but need to define -shared option too, otherwise 12530 # it will coredump. 12531 lt_prog_compiler_pic='-fPIC -shared' 12532 ;; 12533 12534 osf3* | osf4* | osf5*) 12535 lt_prog_compiler_wl='-Wl,' 12536 # All OSF/1 code is PIC. 12537 lt_prog_compiler_static='-non_shared' 12538 ;; 12539 12540 rdos*) 12541 lt_prog_compiler_static='-non_shared' 12542 ;; 12543 12544 serenity*) 12545 ;; 12546 12547 solaris*) 12548 lt_prog_compiler_pic='-KPIC' 12549 lt_prog_compiler_static='-Bstatic' 12550 case $cc_basename in 12551 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12552 lt_prog_compiler_wl='-Qoption ld ';; 12553 *) 12554 lt_prog_compiler_wl='-Wl,';; 12555 esac 12556 ;; 12557 12558 sunos4*) 12559 lt_prog_compiler_wl='-Qoption ld ' 12560 lt_prog_compiler_pic='-PIC' 12561 lt_prog_compiler_static='-Bstatic' 12562 ;; 12563 12564 sysv4 | sysv4.2uw2* | sysv4.3*) 12565 lt_prog_compiler_wl='-Wl,' 12566 lt_prog_compiler_pic='-KPIC' 12567 lt_prog_compiler_static='-Bstatic' 12568 ;; 12569 12570 sysv4*MP*) 12571 if test -d /usr/nec; then 12572 lt_prog_compiler_pic='-Kconform_pic' 12573 lt_prog_compiler_static='-Bstatic' 12574 fi 12575 ;; 12576 12577 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12578 lt_prog_compiler_wl='-Wl,' 12579 lt_prog_compiler_pic='-KPIC' 12580 lt_prog_compiler_static='-Bstatic' 12581 ;; 12582 12583 unicos*) 12584 lt_prog_compiler_wl='-Wl,' 12585 lt_prog_compiler_can_build_shared=no 12586 ;; 12587 12588 uts4*) 12589 lt_prog_compiler_pic='-pic' 12590 lt_prog_compiler_static='-Bstatic' 12591 ;; 12592 12593 *) 12594 lt_prog_compiler_can_build_shared=no 12595 ;; 12596 esac 12597 fi 12598 12599 case $host_os in 12600 # For platforms that do not support PIC, -DPIC is meaningless: 12601 *djgpp*) 12602 lt_prog_compiler_pic= 12603 ;; 12604 *) 12605 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 12606 ;; 12607 esac 12608 12609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12610 printf %s "checking for $compiler option to produce PIC... " >&6; } 12611 if test ${lt_cv_prog_compiler_pic+y} 12612 then : 12613 printf %s "(cached) " >&6 12614 else case e in #( 12615 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 12616 esac 12617 fi 12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 12619 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 12620 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 12621 12622 # 12623 # Check to make sure the PIC flag actually works. 12624 # 12625 if test -n "$lt_prog_compiler_pic"; then 12626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 12627 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 12628 if test ${lt_cv_prog_compiler_pic_works+y} 12629 then : 12630 printf %s "(cached) " >&6 12631 else case e in #( 12632 e) lt_cv_prog_compiler_pic_works=no 12633 ac_outfile=conftest.$ac_objext 12634 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12635 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 12636 # Insert the option either (1) after the last *FLAGS variable, or 12637 # (2) before a word containing "conftest.", or (3) at the end. 12638 # Note that $ac_compile itself does not contain backslashes and begins 12639 # with a dollar sign (not a hyphen), so the echo should work correctly. 12640 # The option is referenced via a variable to avoid confusing sed. 12641 lt_compile=`echo "$ac_compile" | $SED \ 12642 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12643 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12644 -e 's:$: $lt_compiler_flag:'` 12645 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 12646 (eval "$lt_compile" 2>conftest.err) 12647 ac_status=$? 12648 cat conftest.err >&5 12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12650 if (exit $ac_status) && test -s "$ac_outfile"; then 12651 # The compiler can only warn and ignore the option if not recognized 12652 # So say no if there are warnings other than the usual output. 12653 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 12654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12655 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12656 lt_cv_prog_compiler_pic_works=yes 12657 fi 12658 fi 12659 $RM conftest* 12660 ;; 12661 esac 12662 fi 12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 12664 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 12665 12666 if test yes = "$lt_cv_prog_compiler_pic_works"; then 12667 case $lt_prog_compiler_pic in 12668 "" | " "*) ;; 12669 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 12670 esac 12671 else 12672 lt_prog_compiler_pic= 12673 lt_prog_compiler_can_build_shared=no 12674 fi 12675 12676 fi 12677 12678 12679 12680 12681 12682 # 12683 # Check to make sure the static flag actually works. 12684 # 12685 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 12686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12687 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12688 if test ${lt_cv_prog_compiler_static_works+y} 12689 then : 12690 printf %s "(cached) " >&6 12691 else case e in #( 12692 e) lt_cv_prog_compiler_static_works=no 12693 save_LDFLAGS=$LDFLAGS 12694 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12695 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12697 # The linker can only warn and ignore the option if not recognized 12698 # So say no if there are warnings 12699 if test -s conftest.err; then 12700 # Append any errors to the config.log. 12701 cat conftest.err 1>&5 12702 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12704 if diff conftest.exp conftest.er2 >/dev/null; then 12705 lt_cv_prog_compiler_static_works=yes 12706 fi 12707 else 12708 lt_cv_prog_compiler_static_works=yes 12709 fi 12710 fi 12711 $RM -r conftest* 12712 LDFLAGS=$save_LDFLAGS 12713 ;; 12714 esac 12715 fi 12716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 12717 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 12718 12719 if test yes = "$lt_cv_prog_compiler_static_works"; then 12720 : 12721 else 12722 lt_prog_compiler_static= 12723 fi 12724 12725 12726 12727 ='-fPIC' 12728 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 12729 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' 12730 archive_cmds_need_lc=no 12731 no_undefined_flag= 12732 ;; 12733 12734 *) 12735 dynamic_linker=no 12736 ;; 12737 esac 12738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12739 printf "%s\n" "$dynamic_linker" >&6; } 12740 test no = "$dynamic_linker" && can_build_shared=no 12741 12742 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12743 if test yes = "$GCC"; then 12744 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12745 fi 12746 12747 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12748 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12749 fi 12750 12751 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12752 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12753 fi 12754 12755 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12756 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12757 12758 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12759 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12760 12761 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12762 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12861 printf %s "checking how to hardcode library paths into programs... " >&6; } 12862 hardcode_action= 12863 if test -n "$hardcode_libdir_flag_spec" || 12864 test -n "$runpath_var" || 12865 test yes = "$hardcode_automatic"; then 12866 12867 # We can hardcode non-existent directories. 12868 if test no != "$hardcode_direct" && 12869 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12870 # have to relink, otherwise we might link with an installed library 12871 # when we should be linking with a yet-to-be-installed one 12872 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12873 test no != "$hardcode_minus_L"; then 12874 # Linking always hardcodes the temporary library directory. 12875 hardcode_action=relink 12876 else 12877 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12878 hardcode_action=immediate 12879 fi 12880 else 12881 # We cannot hardcode anything, or else we can only hardcode existing 12882 # directories. 12883 hardcode_action=unsupported 12884 fi 12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12886 printf "%s\n" "$hardcode_action" >&6; } 12887 12888 if test relink = "$hardcode_action" || 12889 test yes = "$inherit_rpath"; then 12890 # Fast installation is not supported 12891 enable_fast_install=no 12892 elif test yes = "$shlibpath_overrides_runpath" || 12893 test no = "$enable_shared"; then 12894 # Fast installation is not necessary 12895 enable_fast_install=needless 12896 fi 12897 12898 12899 12900 12901 12902 12903 if test yes != "$enable_dlopen"; then 12904 enable_dlopen=unknown 12905 enable_dlopen_self=unknown 12906 enable_dlopen_self_static=unknown 12907 else 12908 lt_cv_dlopen=no 12909 lt_cv_dlopen_libs= 12910 12911 case $host_os in 12912 beos*) 12913 lt_cv_dlopen=load_add_on 12914 lt_cv_dlopen_libs= 12915 lt_cv_dlopen_self=yes 12916 ;; 12917 12918 mingw* | windows* | pw32* | cegcc*) 12919 lt_cv_dlopen=LoadLibrary 12920 lt_cv_dlopen_libs= 12921 ;; 12922 12923 cygwin*) 12924 lt_cv_dlopen=dlopen 12925 lt_cv_dlopen_libs= 12926 ;; 12927 12928 darwin*) 12929 # if libdl is installed we need to link against it 12930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12931 printf %s "checking for dlopen in -ldl... " >&6; } 12932 if test ${ac_cv_lib_dl_dlopen+y} 12933 then : 12934 printf %s "(cached) " >&6 12935 else case e in #( 12936 e) ac_check_lib_save_LIBS=$LIBS 12937 LIBS="-ldl $LIBS" 12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12939 /* end confdefs.h. */ 12940 12941 /* Override any GCC internal prototype to avoid an error. 12942 Use char because int might match the return type of a GCC 12943 builtin and then its argument prototype would still apply. 12944 The 'extern "C"' is for builds by C++ compilers; 12945 although this is not generally supported in C code supporting it here 12946 has little cost and some practical benefit (sr 110532). */ 12947 #ifdef __cplusplus 12948 extern "C" 12949 #endif 12950 char dlopen (void); 12951 int 12952 main (void) 12953 { 12954 return dlopen (); 12955 ; 12956 return 0; 12957 } 12958 _ACEOF 12959 if ac_fn_c_try_link "$LINENO" 12960 then : 12961 ac_cv_lib_dl_dlopen=yes 12962 else case e in #( 12963 e) ac_cv_lib_dl_dlopen=no ;; 12964 esac 12965 fi 12966 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12967 conftest$ac_exeext conftest.$ac_ext 12968 LIBS=$ac_check_lib_save_LIBS ;; 12969 esac 12970 fi 12971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12972 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12973 if test "x$ac_cv_lib_dl_dlopen" = xyes 12974 then : 12975 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12976 else case e in #( 12977 e) 12978 lt_cv_dlopen=dyld 12979 lt_cv_dlopen_libs= 12980 lt_cv_dlopen_self=yes 12981 ;; 12982 esac 12983 fi 12984 12985 ;; 12986 12987 tpf*) 12988 # Don't try to run any link tests for TPF. We know it's impossible 12989 # because TPF is a cross-compiler, and we know how we open DSOs. 12990 lt_cv_dlopen=dlopen 12991 lt_cv_dlopen_libs= 12992 lt_cv_dlopen_self=no 12993 ;; 12994 12995 *) 12996 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12997 if test "x$ac_cv_func_shl_load" = xyes 12998 then : 12999 lt_cv_dlopen=shl_load 13000 else case e in #( 13001 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13002 printf %s "checking for shl_load in -ldld... " >&6; } 13003 if test ${ac_cv_lib_dld_shl_load+y} 13004 then : 13005 printf %s "(cached) " >&6 13006 else case e in #( 13007 e) ac_check_lib_save_LIBS=$LIBS 13008 LIBS="-ldld $LIBS" 13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13010 /* end confdefs.h. */ 13011 13012 /* Override any GCC internal prototype to avoid an error. 13013 Use char because int might match the return type of a GCC 13014 builtin and then its argument prototype would still apply. 13015 The 'extern "C"' is for builds by C++ compilers; 13016 although this is not generally supported in C code supporting it here 13017 has little cost and some practical benefit (sr 110532). */ 13018 #ifdef __cplusplus 13019 extern "C" 13020 #endif 13021 char shl_load (void); 13022 int 13023 main (void) 13024 { 13025 return shl_load (); 13026 ; 13027 return 0; 13028 } 13029 _ACEOF 13030 if ac_fn_c_try_link "$LINENO" 13031 then : 13032 ac_cv_lib_dld_shl_load=yes 13033 else case e in #( 13034 e) ac_cv_lib_dld_shl_load=no ;; 13035 esac 13036 fi 13037 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13038 conftest$ac_exeext conftest.$ac_ext 13039 LIBS=$ac_check_lib_save_LIBS ;; 13040 esac 13041 fi 13042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13043 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13044 if test "x$ac_cv_lib_dld_shl_load" = xyes 13045 then : 13046 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13047 else case e in #( 13048 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13049 if test "x$ac_cv_func_dlopen" = xyes 13050 then : 13051 lt_cv_dlopen=dlopen 13052 else case e in #( 13053 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13054 printf %s "checking for dlopen in -ldl... " >&6; } 13055 if test ${ac_cv_lib_dl_dlopen+y} 13056 then : 13057 printf %s "(cached) " >&6 13058 else case e in #( 13059 e) ac_check_lib_save_LIBS=$LIBS 13060 LIBS="-ldl $LIBS" 13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13062 /* end confdefs.h. */ 13063 13064 /* Override any GCC internal prototype to avoid an error. 13065 Use char because int might match the return type of a GCC 13066 builtin and then its argument prototype would still apply. 13067 The 'extern "C"' is for builds by C++ compilers; 13068 although this is not generally supported in C code supporting it here 13069 has little cost and some practical benefit (sr 110532). */ 13070 #ifdef __cplusplus 13071 extern "C" 13072 #endif 13073 char dlopen (void); 13074 int 13075 main (void) 13076 { 13077 return dlopen (); 13078 ; 13079 return 0; 13080 } 13081 _ACEOF 13082 if ac_fn_c_try_link "$LINENO" 13083 then : 13084 ac_cv_lib_dl_dlopen=yes 13085 else case e in #( 13086 e) ac_cv_lib_dl_dlopen=no ;; 13087 esac 13088 fi 13089 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13090 conftest$ac_exeext conftest.$ac_ext 13091 LIBS=$ac_check_lib_save_LIBS ;; 13092 esac 13093 fi 13094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13095 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13096 if test "x$ac_cv_lib_dl_dlopen" = xyes 13097 then : 13098 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13099 else case e in #( 13100 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13101 printf %s "checking for dlopen in -lsvld... " >&6; } 13102 if test ${ac_cv_lib_svld_dlopen+y} 13103 then : 13104 printf %s "(cached) " >&6 13105 else case e in #( 13106 e) ac_check_lib_save_LIBS=$LIBS 13107 LIBS="-lsvld $LIBS" 13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13109 /* end confdefs.h. */ 13110 13111 /* Override any GCC internal prototype to avoid an error. 13112 Use char because int might match the return type of a GCC 13113 builtin and then its argument prototype would still apply. 13114 The 'extern "C"' is for builds by C++ compilers; 13115 although this is not generally supported in C code supporting it here 13116 has little cost and some practical benefit (sr 110532). */ 13117 #ifdef __cplusplus 13118 extern "C" 13119 #endif 13120 char dlopen (void); 13121 int 13122 main (void) 13123 { 13124 return dlopen (); 13125 ; 13126 return 0; 13127 } 13128 _ACEOF 13129 if ac_fn_c_try_link "$LINENO" 13130 then : 13131 ac_cv_lib_svld_dlopen=yes 13132 else case e in #( 13133 e) ac_cv_lib_svld_dlopen=no ;; 13134 esac 13135 fi 13136 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13137 conftest$ac_exeext conftest.$ac_ext 13138 LIBS=$ac_check_lib_save_LIBS ;; 13139 esac 13140 fi 13141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13142 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13143 if test "x$ac_cv_lib_svld_dlopen" = xyes 13144 then : 13145 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13146 else case e in #( 13147 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13148 printf %s "checking for dld_link in -ldld... " >&6; } 13149 if test ${ac_cv_lib_dld_dld_link+y} 13150 then : 13151 printf %s "(cached) " >&6 13152 else case e in #( 13153 e) ac_check_lib_save_LIBS=$LIBS 13154 LIBS="-ldld $LIBS" 13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13156 /* end confdefs.h. */ 13157 13158 /* Override any GCC internal prototype to avoid an error. 13159 Use char because int might match the return type of a GCC 13160 builtin and then its argument prototype would still apply. 13161 The 'extern "C"' is for builds by C++ compilers; 13162 although this is not generally supported in C code supporting it here 13163 has little cost and some practical benefit (sr 110532). */ 13164 #ifdef __cplusplus 13165 extern "C" 13166 #endif 13167 char dld_link (void); 13168 int 13169 main (void) 13170 { 13171 return dld_link (); 13172 ; 13173 return 0; 13174 } 13175 _ACEOF 13176 if ac_fn_c_try_link "$LINENO" 13177 then : 13178 ac_cv_lib_dld_dld_link=yes 13179 else case e in #( 13180 e) ac_cv_lib_dld_dld_link=no ;; 13181 esac 13182 fi 13183 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13184 conftest$ac_exeext conftest.$ac_ext 13185 LIBS=$ac_check_lib_save_LIBS ;; 13186 esac 13187 fi 13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13189 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13190 if test "x$ac_cv_lib_dld_dld_link" = xyes 13191 then : 13192 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13193 fi 13194 13195 ;; 13196 esac 13197 fi 13198 13199 ;; 13200 esac 13201 fi 13202 13203 ;; 13204 esac 13205 fi 13206 13207 ;; 13208 esac 13209 fi 13210 13211 ;; 13212 esac 13213 fi 13214 13215 ;; 13216 esac 13217 13218 if test no = "$lt_cv_dlopen"; then 13219 enable_dlopen=no 13220 else 13221 enable_dlopen=yes 13222 fi 13223 13224 case $lt_cv_dlopen in 13225 dlopen) 13226 save_CPPFLAGS=$CPPFLAGS 13227 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13228 13229 save_LDFLAGS=$LDFLAGS 13230 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13231 13232 save_LIBS=$LIBS 13233 LIBS="$lt_cv_dlopen_libs $LIBS" 13234 13235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13236 printf %s "checking whether a program can dlopen itself... " >&6; } 13237 if test ${lt_cv_dlopen_self+y} 13238 then : 13239 printf %s "(cached) " >&6 13240 else case e in #( 13241 e) if test yes = "$cross_compiling"; then : 13242 lt_cv_dlopen_self=cross 13243 else 13244 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13245 lt_status=$lt_dlunknown 13246 cat > conftest.$ac_ext <<_LT_EOF 13247 #line $LINENO "configure" 13248 #include "confdefs.h" 13249 13250 #if HAVE_DLFCN_H 13251 #include <dlfcn.h> 13252 #endif 13253 13254 #include <stdio.h> 13255 13256 #ifdef RTLD_GLOBAL 13257 # define LT_DLGLOBAL RTLD_GLOBAL 13258 #else 13259 # ifdef DL_GLOBAL 13260 # define LT_DLGLOBAL DL_GLOBAL 13261 # else 13262 # define LT_DLGLOBAL 0 13263 # endif 13264 #endif 13265 13266 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13267 find out it does not work in some platform. */ 13268 #ifndef LT_DLLAZY_OR_NOW 13269 # ifdef RTLD_LAZY 13270 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13271 # else 13272 # ifdef DL_LAZY 13273 # define LT_DLLAZY_OR_NOW DL_LAZY 13274 # else 13275 # ifdef RTLD_NOW 13276 # define LT_DLLAZY_OR_NOW RTLD_NOW 13277 # else 13278 # ifdef DL_NOW 13279 # define LT_DLLAZY_OR_NOW DL_NOW 13280 # else 13281 # define LT_DLLAZY_OR_NOW 0 13282 # endif 13283 # endif 13284 # endif 13285 # endif 13286 #endif 13287 13288 /* When -fvisibility=hidden is used, assume the code has been annotated 13289 correspondingly for the symbols needed. */ 13290 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13291 int fnord (void) __attribute__((visibility("default"))); 13292 #endif 13293 13294 int fnord (void) { return 42; } 13295 int main (void) 13296 { 13297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13298 int status = $lt_dlunknown; 13299 13300 if (self) 13301 { 13302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13303 else 13304 { 13305 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13306 else puts (dlerror ()); 13307 } 13308 /* dlclose (self); */ 13309 } 13310 else 13311 puts (dlerror ()); 13312 13313 return status; 13314 } 13315 _LT_EOF 13316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13317 (eval $ac_link) 2>&5 13318 ac_status=$? 13319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13320 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13321 (./conftest; exit; ) >&5 2>/dev/null 13322 lt_status=$? 13323 case x$lt_status in 13324 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13325 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13326 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13327 esac 13328 else : 13329 # compilation failed 13330 lt_cv_dlopen_self=no 13331 fi 13332 fi 13333 rm -fr conftest* 13334 13335 ;; 13336 esac 13337 fi 13338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13339 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13340 13341 if test yes = "$lt_cv_dlopen_self"; then 13342 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13344 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13345 if test ${lt_cv_dlopen_self_static+y} 13346 then : 13347 printf %s "(cached) " >&6 13348 else case e in #( 13349 e) if test yes = "$cross_compiling"; then : 13350 lt_cv_dlopen_self_static=cross 13351 else 13352 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13353 lt_status=$lt_dlunknown 13354 cat > conftest.$ac_ext <<_LT_EOF 13355 #line $LINENO "configure" 13356 #include "confdefs.h" 13357 13358 #if HAVE_DLFCN_H 13359 #include <dlfcn.h> 13360 #endif 13361 13362 #include <stdio.h> 13363 13364 #ifdef RTLD_GLOBAL 13365 # define LT_DLGLOBAL RTLD_GLOBAL 13366 #else 13367 # ifdef DL_GLOBAL 13368 # define LT_DLGLOBAL DL_GLOBAL 13369 # else 13370 # define LT_DLGLOBAL 0 13371 # endif 13372 #endif 13373 13374 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13375 find out it does not work in some platform. */ 13376 #ifndef LT_DLLAZY_OR_NOW 13377 # ifdef RTLD_LAZY 13378 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13379 # else 13380 # ifdef DL_LAZY 13381 # define LT_DLLAZY_OR_NOW DL_LAZY 13382 # else 13383 # ifdef RTLD_NOW 13384 # define LT_DLLAZY_OR_NOW RTLD_NOW 13385 # else 13386 # ifdef DL_NOW 13387 # define LT_DLLAZY_OR_NOW DL_NOW 13388 # else 13389 # define LT_DLLAZY_OR_NOW 0 13390 # endif 13391 # endif 13392 # endif 13393 # endif 13394 #endif 13395 13396 /* When -fvisibility=hidden is used, assume the code has been annotated 13397 correspondingly for the symbols needed. */ 13398 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13399 int fnord (void) __attribute__((visibility("default"))); 13400 #endif 13401 13402 int fnord (void) { return 42; } 13403 int main (void) 13404 { 13405 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13406 int status = $lt_dlunknown; 13407 13408 if (self) 13409 { 13410 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13411 else 13412 { 13413 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13414 else puts (dlerror ()); 13415 } 13416 /* dlclose (self); */ 13417 } 13418 else 13419 puts (dlerror ()); 13420 13421 return status; 13422 } 13423 _LT_EOF 13424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13425 (eval $ac_link) 2>&5 13426 ac_status=$? 13427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13428 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13429 (./conftest; exit; ) >&5 2>/dev/null 13430 lt_status=$? 13431 case x$lt_status in 13432 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13433 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13434 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13435 esac 13436 else : 13437 # compilation failed 13438 lt_cv_dlopen_self_static=no 13439 fi 13440 fi 13441 rm -fr conftest* 13442 13443 ;; 13444 esac 13445 fi 13446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13447 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13448 fi 13449 13450 CPPFLAGS=$save_CPPFLAGS 13451 LDFLAGS=$save_LDFLAGS 13452 LIBS=$save_LIBS 13453 ;; 13454 esac 13455 13456 case $lt_cv_dlopen_self in 13457 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13458 *) enable_dlopen_self=unknown ;; 13459 esac 13460 13461 case $lt_cv_dlopen_self_static in 13462 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13463 *) enable_dlopen_self_static=unknown ;; 13464 esac 13465 fi 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 striplib= 13484 old_striplib= 13485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13486 printf %s "checking whether stripping libraries is possible... " >&6; } 13487 if test -z "$STRIP"; then 13488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13489 printf "%s\n" "no" >&6; } 13490 else 13491 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13492 old_striplib="$STRIP --strip-debug" 13493 striplib="$STRIP --strip-unneeded" 13494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13495 printf "%s\n" "yes" >&6; } 13496 else 13497 case $host_os in 13498 darwin*) 13499 # FIXME - insert some real tests, host_os isn't really good enough 13500 striplib="$STRIP -x" 13501 old_striplib="$STRIP -S" 13502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13503 printf "%s\n" "yes" >&6; } 13504 ;; 13505 freebsd*) 13506 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13507 old_striplib="$STRIP --strip-debug" 13508 striplib="$STRIP --strip-unneeded" 13509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13510 printf "%s\n" "yes" >&6; } 13511 else 13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13513 printf "%s\n" "no" >&6; } 13514 fi 13515 ;; 13516 *) 13517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13518 printf "%s\n" "no" >&6; } 13519 ;; 13520 esac 13521 fi 13522 fi 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 # Report what library types will actually be built 13536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13537 printf %s "checking if libtool supports shared libraries... " >&6; } 13538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13539 printf "%s\n" "$can_build_shared" >&6; } 13540 13541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13542 printf %s "checking whether to build shared libraries... " >&6; } 13543 test no = "$can_build_shared" && enable_shared=no 13544 13545 # On AIX, shared libraries and static libraries use the same namespace, and 13546 # are all built from PIC. 13547 case $host_os in 13548 aix3*) 13549 test yes = "$enable_shared" && enable_static=no 13550 if test -n "$RANLIB"; then 13551 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13552 postinstall_cmds='$RANLIB $lib' 13553 fi 13554 ;; 13555 13556 aix[4-9]*) 13557 if test ia64 != "$host_cpu"; then 13558 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13559 yes,aix,yes) ;; # shared object as lib.so file only 13560 yes,svr4,*) ;; # shared object as lib.so archive member only 13561 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13562 esac 13563 fi 13564 ;; 13565 esac 13566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13567 printf "%s\n" "$enable_shared" >&6; } 13568 13569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13570 printf %s "checking whether to build static libraries... " >&6; } 13571 # Make sure either enable_shared or enable_static is yes. 13572 test yes = "$enable_shared" || enable_static=yes 13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13574 printf "%s\n" "$enable_static" >&6; } 13575 13576 13577 13578 13579 fi 13580 ac_ext=c 13581 ac_cpp='$CPP $CPPFLAGS' 13582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13584 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13585 13586 CC=$lt_save_CC 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 ac_config_commands="$ac_config_commands libtool" 13603 13604 13605 13606 13607 # Only expand once: 13608 13609 13610 13611 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13624 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13625 if test ${ac_cv_c_undeclared_builtin_options+y} 13626 then : 13627 printf %s "(cached) " >&6 13628 else case e in #( 13629 e) ac_save_CFLAGS=$CFLAGS 13630 ac_cv_c_undeclared_builtin_options='cannot detect' 13631 for ac_arg in '' -fno-builtin; do 13632 CFLAGS="$ac_save_CFLAGS $ac_arg" 13633 # This test program should *not* compile successfully. 13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13635 /* end confdefs.h. */ 13636 13637 int 13638 main (void) 13639 { 13640 (void) strchr; 13641 ; 13642 return 0; 13643 } 13644 _ACEOF 13645 if ac_fn_c_try_compile "$LINENO" 13646 then : 13647 13648 else case e in #( 13649 e) # This test program should compile successfully. 13650 # No library function is consistently available on 13651 # freestanding implementations, so test against a dummy 13652 # declaration. Include always-available headers on the 13653 # off chance that they somehow elicit warnings. 13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13655 /* end confdefs.h. */ 13656 #include <float.h> 13657 #include <limits.h> 13658 #include <stdarg.h> 13659 #include <stddef.h> 13660 extern void ac_decl (int, char *); 13661 13662 int 13663 main (void) 13664 { 13665 (void) ac_decl (0, (char *) 0); 13666 (void) ac_decl; 13667 13668 ; 13669 return 0; 13670 } 13671 _ACEOF 13672 if ac_fn_c_try_compile "$LINENO" 13673 then : 13674 if test x"$ac_arg" = x 13675 then : 13676 ac_cv_c_undeclared_builtin_options='none needed' 13677 else case e in #( 13678 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13679 esac 13680 fi 13681 break 13682 fi 13683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13684 esac 13685 fi 13686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13687 done 13688 CFLAGS=$ac_save_CFLAGS 13689 ;; 13690 esac 13691 fi 13692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13693 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13694 case $ac_cv_c_undeclared_builtin_options in #( 13695 'cannot detect') : 13696 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13697 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13698 as_fn_error $? "cannot make $CC report undeclared builtins 13699 See 'config.log' for more details" "$LINENO" 5; } ;; #( 13700 'none needed') : 13701 ac_c_undeclared_builtin_options='' ;; #( 13702 *) : 13703 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13704 esac 13705 13706 13707 13708 13709 13710 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13711 if test "x$ac_cv_have_decl___clang__" = xyes 13712 then : 13713 CLANGCC="yes" 13714 else case e in #( 13715 e) CLANGCC="no" ;; 13716 esac 13717 fi 13718 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13719 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13720 then : 13721 INTELCC="yes" 13722 else case e in #( 13723 e) INTELCC="no" ;; 13724 esac 13725 fi 13726 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13727 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13728 then : 13729 SUNCC="yes" 13730 else case e in #( 13731 e) SUNCC="no" ;; 13732 esac 13733 fi 13734 13735 13736 13737 13738 13739 13740 13741 13742 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13743 if test -n "$ac_tool_prefix"; then 13744 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13745 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13747 printf %s "checking for $ac_word... " >&6; } 13748 if test ${ac_cv_path_PKG_CONFIG+y} 13749 then : 13750 printf %s "(cached) " >&6 13751 else case e in #( 13752 e) case $PKG_CONFIG in 13753 [\\/]* | ?:[\\/]*) 13754 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13755 ;; 13756 *) 13757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13758 for as_dir in $PATH 13759 do 13760 IFS=$as_save_IFS 13761 case $as_dir in #((( 13762 '') as_dir=./ ;; 13763 */) ;; 13764 *) as_dir=$as_dir/ ;; 13765 esac 13766 for ac_exec_ext in '' $ac_executable_extensions; do 13767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13768 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13770 break 2 13771 fi 13772 done 13773 done 13774 IFS=$as_save_IFS 13775 13776 ;; 13777 esac ;; 13778 esac 13779 fi 13780 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13781 if test -n "$PKG_CONFIG"; then 13782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13783 printf "%s\n" "$PKG_CONFIG" >&6; } 13784 else 13785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13786 printf "%s\n" "no" >&6; } 13787 fi 13788 13789 13790 fi 13791 if test -z "$ac_cv_path_PKG_CONFIG"; then 13792 ac_pt_PKG_CONFIG=$PKG_CONFIG 13793 # Extract the first word of "pkg-config", so it can be a program name with args. 13794 set dummy pkg-config; ac_word=$2 13795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13796 printf %s "checking for $ac_word... " >&6; } 13797 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13798 then : 13799 printf %s "(cached) " >&6 13800 else case e in #( 13801 e) case $ac_pt_PKG_CONFIG in 13802 [\\/]* | ?:[\\/]*) 13803 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13804 ;; 13805 *) 13806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13807 for as_dir in $PATH 13808 do 13809 IFS=$as_save_IFS 13810 case $as_dir in #((( 13811 '') as_dir=./ ;; 13812 */) ;; 13813 *) as_dir=$as_dir/ ;; 13814 esac 13815 for ac_exec_ext in '' $ac_executable_extensions; do 13816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13817 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13819 break 2 13820 fi 13821 done 13822 done 13823 IFS=$as_save_IFS 13824 13825 ;; 13826 esac ;; 13827 esac 13828 fi 13829 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13830 if test -n "$ac_pt_PKG_CONFIG"; then 13831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13832 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13833 else 13834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13835 printf "%s\n" "no" >&6; } 13836 fi 13837 13838 if test "x$ac_pt_PKG_CONFIG" = x; then 13839 PKG_CONFIG="" 13840 else 13841 case $cross_compiling:$ac_tool_warned in 13842 yes:) 13843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13844 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13845 ac_tool_warned=yes ;; 13846 esac 13847 PKG_CONFIG=$ac_pt_PKG_CONFIG 13848 fi 13849 else 13850 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13851 fi 13852 13853 fi 13854 if test -n "$PKG_CONFIG"; then 13855 _pkg_min_version=0.9.0 13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13857 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13858 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13860 printf "%s\n" "yes" >&6; } 13861 else 13862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13863 printf "%s\n" "no" >&6; } 13864 PKG_CONFIG="" 13865 fi 13866 fi 13867 13868 13869 13870 13871 13872 # Check whether --enable-selective-werror was given. 13873 if test ${enable_selective_werror+y} 13874 then : 13875 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13876 else case e in #( 13877 e) SELECTIVE_WERROR=yes ;; 13878 esac 13879 fi 13880 13881 13882 13883 13884 13885 # -v is too short to test reliably with XORG_TESTSET_CFLAG 13886 if test "x$SUNCC" = "xyes"; then 13887 BASE_CFLAGS="-v" 13888 else 13889 BASE_CFLAGS="" 13890 fi 13891 13892 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 xorg_testset_save_CFLAGS="$CFLAGS" 13907 13908 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13911 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13912 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13913 then : 13914 printf %s "(cached) " >&6 13915 else case e in #( 13916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13917 /* end confdefs.h. */ 13918 int i; 13919 _ACEOF 13920 if ac_fn_c_try_compile "$LINENO" 13921 then : 13922 xorg_cv_cc_flag_unknown_warning_option=yes 13923 else case e in #( 13924 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13925 esac 13926 fi 13927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13928 esac 13929 fi 13930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13931 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13933 CFLAGS="$xorg_testset_save_CFLAGS" 13934 fi 13935 13936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13939 fi 13940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13942 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13943 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13944 then : 13945 printf %s "(cached) " >&6 13946 else case e in #( 13947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13948 /* end confdefs.h. */ 13949 int i; 13950 _ACEOF 13951 if ac_fn_c_try_compile "$LINENO" 13952 then : 13953 xorg_cv_cc_flag_unused_command_line_argument=yes 13954 else case e in #( 13955 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13956 esac 13957 fi 13958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13959 esac 13960 fi 13961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13962 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13964 CFLAGS="$xorg_testset_save_CFLAGS" 13965 fi 13966 13967 found="no" 13968 13969 if test $found = "no" ; then 13970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13972 fi 13973 13974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13976 fi 13977 13978 CFLAGS="$CFLAGS -Wall" 13979 13980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13981 printf %s "checking if $CC supports -Wall... " >&6; } 13982 cacheid=xorg_cv_cc_flag__Wall 13983 if eval test \${$cacheid+y} 13984 then : 13985 printf %s "(cached) " >&6 13986 else case e in #( 13987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13988 /* end confdefs.h. */ 13989 int i; 13990 int 13991 main (void) 13992 { 13993 13994 ; 13995 return 0; 13996 } 13997 _ACEOF 13998 if ac_fn_c_try_link "$LINENO" 13999 then : 14000 eval $cacheid=yes 14001 else case e in #( 14002 e) eval $cacheid=no ;; 14003 esac 14004 fi 14005 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14006 conftest$ac_exeext conftest.$ac_ext ;; 14007 esac 14008 fi 14009 14010 14011 CFLAGS="$xorg_testset_save_CFLAGS" 14012 14013 eval supported=\$$cacheid 14014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14015 printf "%s\n" "$supported" >&6; } 14016 if test "$supported" = "yes" ; then 14017 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14018 found="yes" 14019 fi 14020 fi 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 xorg_testset_save_CFLAGS="$CFLAGS" 14037 14038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14041 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14042 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14043 then : 14044 printf %s "(cached) " >&6 14045 else case e in #( 14046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14047 /* end confdefs.h. */ 14048 int i; 14049 _ACEOF 14050 if ac_fn_c_try_compile "$LINENO" 14051 then : 14052 xorg_cv_cc_flag_unknown_warning_option=yes 14053 else case e in #( 14054 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14055 esac 14056 fi 14057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14058 esac 14059 fi 14060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14061 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14063 CFLAGS="$xorg_testset_save_CFLAGS" 14064 fi 14065 14066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14069 fi 14070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14072 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14073 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14074 then : 14075 printf %s "(cached) " >&6 14076 else case e in #( 14077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14078 /* end confdefs.h. */ 14079 int i; 14080 _ACEOF 14081 if ac_fn_c_try_compile "$LINENO" 14082 then : 14083 xorg_cv_cc_flag_unused_command_line_argument=yes 14084 else case e in #( 14085 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14086 esac 14087 fi 14088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14089 esac 14090 fi 14091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14092 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14094 CFLAGS="$xorg_testset_save_CFLAGS" 14095 fi 14096 14097 found="no" 14098 14099 if test $found = "no" ; then 14100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14102 fi 14103 14104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14106 fi 14107 14108 CFLAGS="$CFLAGS -Wpointer-arith" 14109 14110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14111 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14112 cacheid=xorg_cv_cc_flag__Wpointer_arith 14113 if eval test \${$cacheid+y} 14114 then : 14115 printf %s "(cached) " >&6 14116 else case e in #( 14117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14118 /* end confdefs.h. */ 14119 int i; 14120 int 14121 main (void) 14122 { 14123 14124 ; 14125 return 0; 14126 } 14127 _ACEOF 14128 if ac_fn_c_try_link "$LINENO" 14129 then : 14130 eval $cacheid=yes 14131 else case e in #( 14132 e) eval $cacheid=no ;; 14133 esac 14134 fi 14135 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14136 conftest$ac_exeext conftest.$ac_ext ;; 14137 esac 14138 fi 14139 14140 14141 CFLAGS="$xorg_testset_save_CFLAGS" 14142 14143 eval supported=\$$cacheid 14144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14145 printf "%s\n" "$supported" >&6; } 14146 if test "$supported" = "yes" ; then 14147 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14148 found="yes" 14149 fi 14150 fi 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 xorg_testset_save_CFLAGS="$CFLAGS" 14167 14168 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14171 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14172 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14173 then : 14174 printf %s "(cached) " >&6 14175 else case e in #( 14176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14177 /* end confdefs.h. */ 14178 int i; 14179 _ACEOF 14180 if ac_fn_c_try_compile "$LINENO" 14181 then : 14182 xorg_cv_cc_flag_unknown_warning_option=yes 14183 else case e in #( 14184 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14185 esac 14186 fi 14187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14188 esac 14189 fi 14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14191 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14193 CFLAGS="$xorg_testset_save_CFLAGS" 14194 fi 14195 14196 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14199 fi 14200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14202 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14203 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14204 then : 14205 printf %s "(cached) " >&6 14206 else case e in #( 14207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14208 /* end confdefs.h. */ 14209 int i; 14210 _ACEOF 14211 if ac_fn_c_try_compile "$LINENO" 14212 then : 14213 xorg_cv_cc_flag_unused_command_line_argument=yes 14214 else case e in #( 14215 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14216 esac 14217 fi 14218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14219 esac 14220 fi 14221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14222 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14224 CFLAGS="$xorg_testset_save_CFLAGS" 14225 fi 14226 14227 found="no" 14228 14229 if test $found = "no" ; then 14230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14232 fi 14233 14234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14236 fi 14237 14238 CFLAGS="$CFLAGS -Wmissing-declarations" 14239 14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14241 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14242 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14243 if eval test \${$cacheid+y} 14244 then : 14245 printf %s "(cached) " >&6 14246 else case e in #( 14247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14248 /* end confdefs.h. */ 14249 int i; 14250 int 14251 main (void) 14252 { 14253 14254 ; 14255 return 0; 14256 } 14257 _ACEOF 14258 if ac_fn_c_try_link "$LINENO" 14259 then : 14260 eval $cacheid=yes 14261 else case e in #( 14262 e) eval $cacheid=no ;; 14263 esac 14264 fi 14265 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14266 conftest$ac_exeext conftest.$ac_ext ;; 14267 esac 14268 fi 14269 14270 14271 CFLAGS="$xorg_testset_save_CFLAGS" 14272 14273 eval supported=\$$cacheid 14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14275 printf "%s\n" "$supported" >&6; } 14276 if test "$supported" = "yes" ; then 14277 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14278 found="yes" 14279 fi 14280 fi 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 xorg_testset_save_CFLAGS="$CFLAGS" 14297 14298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14301 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14302 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14303 then : 14304 printf %s "(cached) " >&6 14305 else case e in #( 14306 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14307 /* end confdefs.h. */ 14308 int i; 14309 _ACEOF 14310 if ac_fn_c_try_compile "$LINENO" 14311 then : 14312 xorg_cv_cc_flag_unknown_warning_option=yes 14313 else case e in #( 14314 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14315 esac 14316 fi 14317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14318 esac 14319 fi 14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14321 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14323 CFLAGS="$xorg_testset_save_CFLAGS" 14324 fi 14325 14326 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14329 fi 14330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14332 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14333 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14334 then : 14335 printf %s "(cached) " >&6 14336 else case e in #( 14337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14338 /* end confdefs.h. */ 14339 int i; 14340 _ACEOF 14341 if ac_fn_c_try_compile "$LINENO" 14342 then : 14343 xorg_cv_cc_flag_unused_command_line_argument=yes 14344 else case e in #( 14345 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14346 esac 14347 fi 14348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14349 esac 14350 fi 14351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14352 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14354 CFLAGS="$xorg_testset_save_CFLAGS" 14355 fi 14356 14357 found="no" 14358 14359 if test $found = "no" ; then 14360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14362 fi 14363 14364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14366 fi 14367 14368 CFLAGS="$CFLAGS -Wformat=2" 14369 14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14371 printf %s "checking if $CC supports -Wformat=2... " >&6; } 14372 cacheid=xorg_cv_cc_flag__Wformat_2 14373 if eval test \${$cacheid+y} 14374 then : 14375 printf %s "(cached) " >&6 14376 else case e in #( 14377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14378 /* end confdefs.h. */ 14379 int i; 14380 int 14381 main (void) 14382 { 14383 14384 ; 14385 return 0; 14386 } 14387 _ACEOF 14388 if ac_fn_c_try_link "$LINENO" 14389 then : 14390 eval $cacheid=yes 14391 else case e in #( 14392 e) eval $cacheid=no ;; 14393 esac 14394 fi 14395 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14396 conftest$ac_exeext conftest.$ac_ext ;; 14397 esac 14398 fi 14399 14400 14401 CFLAGS="$xorg_testset_save_CFLAGS" 14402 14403 eval supported=\$$cacheid 14404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14405 printf "%s\n" "$supported" >&6; } 14406 if test "$supported" = "yes" ; then 14407 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14408 found="yes" 14409 fi 14410 fi 14411 14412 if test $found = "no" ; then 14413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14415 fi 14416 14417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14419 fi 14420 14421 CFLAGS="$CFLAGS -Wformat" 14422 14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14424 printf %s "checking if $CC supports -Wformat... " >&6; } 14425 cacheid=xorg_cv_cc_flag__Wformat 14426 if eval test \${$cacheid+y} 14427 then : 14428 printf %s "(cached) " >&6 14429 else case e in #( 14430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14431 /* end confdefs.h. */ 14432 int i; 14433 int 14434 main (void) 14435 { 14436 14437 ; 14438 return 0; 14439 } 14440 _ACEOF 14441 if ac_fn_c_try_link "$LINENO" 14442 then : 14443 eval $cacheid=yes 14444 else case e in #( 14445 e) eval $cacheid=no ;; 14446 esac 14447 fi 14448 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14449 conftest$ac_exeext conftest.$ac_ext ;; 14450 esac 14451 fi 14452 14453 14454 CFLAGS="$xorg_testset_save_CFLAGS" 14455 14456 eval supported=\$$cacheid 14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14458 printf "%s\n" "$supported" >&6; } 14459 if test "$supported" = "yes" ; then 14460 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14461 found="yes" 14462 fi 14463 fi 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 xorg_testset_save_CFLAGS="$CFLAGS" 14482 14483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14484 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14486 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14487 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14488 then : 14489 printf %s "(cached) " >&6 14490 else case e in #( 14491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14492 /* end confdefs.h. */ 14493 int i; 14494 _ACEOF 14495 if ac_fn_c_try_compile "$LINENO" 14496 then : 14497 xorg_cv_cc_flag_unknown_warning_option=yes 14498 else case e in #( 14499 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14500 esac 14501 fi 14502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14503 esac 14504 fi 14505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14506 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14507 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14508 CFLAGS="$xorg_testset_save_CFLAGS" 14509 fi 14510 14511 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14514 fi 14515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14517 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14518 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14519 then : 14520 printf %s "(cached) " >&6 14521 else case e in #( 14522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14523 /* end confdefs.h. */ 14524 int i; 14525 _ACEOF 14526 if ac_fn_c_try_compile "$LINENO" 14527 then : 14528 xorg_cv_cc_flag_unused_command_line_argument=yes 14529 else case e in #( 14530 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14531 esac 14532 fi 14533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14534 esac 14535 fi 14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14537 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14539 CFLAGS="$xorg_testset_save_CFLAGS" 14540 fi 14541 14542 found="no" 14543 14544 if test $found = "no" ; then 14545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14547 fi 14548 14549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14551 fi 14552 14553 CFLAGS="$CFLAGS -Wstrict-prototypes" 14554 14555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14556 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14557 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14558 if eval test \${$cacheid+y} 14559 then : 14560 printf %s "(cached) " >&6 14561 else case e in #( 14562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14563 /* end confdefs.h. */ 14564 int i; 14565 int 14566 main (void) 14567 { 14568 14569 ; 14570 return 0; 14571 } 14572 _ACEOF 14573 if ac_fn_c_try_link "$LINENO" 14574 then : 14575 eval $cacheid=yes 14576 else case e in #( 14577 e) eval $cacheid=no ;; 14578 esac 14579 fi 14580 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14581 conftest$ac_exeext conftest.$ac_ext ;; 14582 esac 14583 fi 14584 14585 14586 CFLAGS="$xorg_testset_save_CFLAGS" 14587 14588 eval supported=\$$cacheid 14589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14590 printf "%s\n" "$supported" >&6; } 14591 if test "$supported" = "yes" ; then 14592 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14593 found="yes" 14594 fi 14595 fi 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 xorg_testset_save_CFLAGS="$CFLAGS" 14612 14613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14616 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14617 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14618 then : 14619 printf %s "(cached) " >&6 14620 else case e in #( 14621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14622 /* end confdefs.h. */ 14623 int i; 14624 _ACEOF 14625 if ac_fn_c_try_compile "$LINENO" 14626 then : 14627 xorg_cv_cc_flag_unknown_warning_option=yes 14628 else case e in #( 14629 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14630 esac 14631 fi 14632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14633 esac 14634 fi 14635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14636 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14638 CFLAGS="$xorg_testset_save_CFLAGS" 14639 fi 14640 14641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14644 fi 14645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14647 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14648 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14649 then : 14650 printf %s "(cached) " >&6 14651 else case e in #( 14652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14653 /* end confdefs.h. */ 14654 int i; 14655 _ACEOF 14656 if ac_fn_c_try_compile "$LINENO" 14657 then : 14658 xorg_cv_cc_flag_unused_command_line_argument=yes 14659 else case e in #( 14660 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14661 esac 14662 fi 14663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14664 esac 14665 fi 14666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14667 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14669 CFLAGS="$xorg_testset_save_CFLAGS" 14670 fi 14671 14672 found="no" 14673 14674 if test $found = "no" ; then 14675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14677 fi 14678 14679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14681 fi 14682 14683 CFLAGS="$CFLAGS -Wmissing-prototypes" 14684 14685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14686 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14687 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14688 if eval test \${$cacheid+y} 14689 then : 14690 printf %s "(cached) " >&6 14691 else case e in #( 14692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14693 /* end confdefs.h. */ 14694 int i; 14695 int 14696 main (void) 14697 { 14698 14699 ; 14700 return 0; 14701 } 14702 _ACEOF 14703 if ac_fn_c_try_link "$LINENO" 14704 then : 14705 eval $cacheid=yes 14706 else case e in #( 14707 e) eval $cacheid=no ;; 14708 esac 14709 fi 14710 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14711 conftest$ac_exeext conftest.$ac_ext ;; 14712 esac 14713 fi 14714 14715 14716 CFLAGS="$xorg_testset_save_CFLAGS" 14717 14718 eval supported=\$$cacheid 14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14720 printf "%s\n" "$supported" >&6; } 14721 if test "$supported" = "yes" ; then 14722 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14723 found="yes" 14724 fi 14725 fi 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 xorg_testset_save_CFLAGS="$CFLAGS" 14742 14743 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14746 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14747 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14748 then : 14749 printf %s "(cached) " >&6 14750 else case e in #( 14751 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14752 /* end confdefs.h. */ 14753 int i; 14754 _ACEOF 14755 if ac_fn_c_try_compile "$LINENO" 14756 then : 14757 xorg_cv_cc_flag_unknown_warning_option=yes 14758 else case e in #( 14759 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14760 esac 14761 fi 14762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14763 esac 14764 fi 14765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14766 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14768 CFLAGS="$xorg_testset_save_CFLAGS" 14769 fi 14770 14771 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14774 fi 14775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14777 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14778 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14779 then : 14780 printf %s "(cached) " >&6 14781 else case e in #( 14782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14783 /* end confdefs.h. */ 14784 int i; 14785 _ACEOF 14786 if ac_fn_c_try_compile "$LINENO" 14787 then : 14788 xorg_cv_cc_flag_unused_command_line_argument=yes 14789 else case e in #( 14790 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14791 esac 14792 fi 14793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14794 esac 14795 fi 14796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14797 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14799 CFLAGS="$xorg_testset_save_CFLAGS" 14800 fi 14801 14802 found="no" 14803 14804 if test $found = "no" ; then 14805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14807 fi 14808 14809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14811 fi 14812 14813 CFLAGS="$CFLAGS -Wnested-externs" 14814 14815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14816 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14817 cacheid=xorg_cv_cc_flag__Wnested_externs 14818 if eval test \${$cacheid+y} 14819 then : 14820 printf %s "(cached) " >&6 14821 else case e in #( 14822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14823 /* end confdefs.h. */ 14824 int i; 14825 int 14826 main (void) 14827 { 14828 14829 ; 14830 return 0; 14831 } 14832 _ACEOF 14833 if ac_fn_c_try_link "$LINENO" 14834 then : 14835 eval $cacheid=yes 14836 else case e in #( 14837 e) eval $cacheid=no ;; 14838 esac 14839 fi 14840 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14841 conftest$ac_exeext conftest.$ac_ext ;; 14842 esac 14843 fi 14844 14845 14846 CFLAGS="$xorg_testset_save_CFLAGS" 14847 14848 eval supported=\$$cacheid 14849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14850 printf "%s\n" "$supported" >&6; } 14851 if test "$supported" = "yes" ; then 14852 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14853 found="yes" 14854 fi 14855 fi 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 xorg_testset_save_CFLAGS="$CFLAGS" 14872 14873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14876 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14877 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14878 then : 14879 printf %s "(cached) " >&6 14880 else case e in #( 14881 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14882 /* end confdefs.h. */ 14883 int i; 14884 _ACEOF 14885 if ac_fn_c_try_compile "$LINENO" 14886 then : 14887 xorg_cv_cc_flag_unknown_warning_option=yes 14888 else case e in #( 14889 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14890 esac 14891 fi 14892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14893 esac 14894 fi 14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14896 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14898 CFLAGS="$xorg_testset_save_CFLAGS" 14899 fi 14900 14901 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14904 fi 14905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14907 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14908 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14909 then : 14910 printf %s "(cached) " >&6 14911 else case e in #( 14912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14913 /* end confdefs.h. */ 14914 int i; 14915 _ACEOF 14916 if ac_fn_c_try_compile "$LINENO" 14917 then : 14918 xorg_cv_cc_flag_unused_command_line_argument=yes 14919 else case e in #( 14920 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14921 esac 14922 fi 14923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14924 esac 14925 fi 14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14927 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14928 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14929 CFLAGS="$xorg_testset_save_CFLAGS" 14930 fi 14931 14932 found="no" 14933 14934 if test $found = "no" ; then 14935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14937 fi 14938 14939 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14941 fi 14942 14943 CFLAGS="$CFLAGS -Wbad-function-cast" 14944 14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14946 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14947 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14948 if eval test \${$cacheid+y} 14949 then : 14950 printf %s "(cached) " >&6 14951 else case e in #( 14952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14953 /* end confdefs.h. */ 14954 int i; 14955 int 14956 main (void) 14957 { 14958 14959 ; 14960 return 0; 14961 } 14962 _ACEOF 14963 if ac_fn_c_try_link "$LINENO" 14964 then : 14965 eval $cacheid=yes 14966 else case e in #( 14967 e) eval $cacheid=no ;; 14968 esac 14969 fi 14970 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14971 conftest$ac_exeext conftest.$ac_ext ;; 14972 esac 14973 fi 14974 14975 14976 CFLAGS="$xorg_testset_save_CFLAGS" 14977 14978 eval supported=\$$cacheid 14979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14980 printf "%s\n" "$supported" >&6; } 14981 if test "$supported" = "yes" ; then 14982 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14983 found="yes" 14984 fi 14985 fi 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 xorg_testset_save_CFLAGS="$CFLAGS" 15002 15003 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15006 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15007 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15008 then : 15009 printf %s "(cached) " >&6 15010 else case e in #( 15011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15012 /* end confdefs.h. */ 15013 int i; 15014 _ACEOF 15015 if ac_fn_c_try_compile "$LINENO" 15016 then : 15017 xorg_cv_cc_flag_unknown_warning_option=yes 15018 else case e in #( 15019 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15020 esac 15021 fi 15022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15023 esac 15024 fi 15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15026 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15027 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15028 CFLAGS="$xorg_testset_save_CFLAGS" 15029 fi 15030 15031 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15034 fi 15035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15037 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15038 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15039 then : 15040 printf %s "(cached) " >&6 15041 else case e in #( 15042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15043 /* end confdefs.h. */ 15044 int i; 15045 _ACEOF 15046 if ac_fn_c_try_compile "$LINENO" 15047 then : 15048 xorg_cv_cc_flag_unused_command_line_argument=yes 15049 else case e in #( 15050 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15051 esac 15052 fi 15053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15054 esac 15055 fi 15056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15057 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15059 CFLAGS="$xorg_testset_save_CFLAGS" 15060 fi 15061 15062 found="no" 15063 15064 if test $found = "no" ; then 15065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15067 fi 15068 15069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15071 fi 15072 15073 CFLAGS="$CFLAGS -Wold-style-definition" 15074 15075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15076 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15077 cacheid=xorg_cv_cc_flag__Wold_style_definition 15078 if eval test \${$cacheid+y} 15079 then : 15080 printf %s "(cached) " >&6 15081 else case e in #( 15082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15083 /* end confdefs.h. */ 15084 int i; 15085 int 15086 main (void) 15087 { 15088 15089 ; 15090 return 0; 15091 } 15092 _ACEOF 15093 if ac_fn_c_try_link "$LINENO" 15094 then : 15095 eval $cacheid=yes 15096 else case e in #( 15097 e) eval $cacheid=no ;; 15098 esac 15099 fi 15100 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15101 conftest$ac_exeext conftest.$ac_ext ;; 15102 esac 15103 fi 15104 15105 15106 CFLAGS="$xorg_testset_save_CFLAGS" 15107 15108 eval supported=\$$cacheid 15109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15110 printf "%s\n" "$supported" >&6; } 15111 if test "$supported" = "yes" ; then 15112 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15113 found="yes" 15114 fi 15115 fi 15116 15117 if test $found = "no" ; then 15118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15120 fi 15121 15122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15124 fi 15125 15126 CFLAGS="$CFLAGS -fd" 15127 15128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15129 printf %s "checking if $CC supports -fd... " >&6; } 15130 cacheid=xorg_cv_cc_flag__fd 15131 if eval test \${$cacheid+y} 15132 then : 15133 printf %s "(cached) " >&6 15134 else case e in #( 15135 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15136 /* end confdefs.h. */ 15137 int i; 15138 int 15139 main (void) 15140 { 15141 15142 ; 15143 return 0; 15144 } 15145 _ACEOF 15146 if ac_fn_c_try_link "$LINENO" 15147 then : 15148 eval $cacheid=yes 15149 else case e in #( 15150 e) eval $cacheid=no ;; 15151 esac 15152 fi 15153 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15154 conftest$ac_exeext conftest.$ac_ext ;; 15155 esac 15156 fi 15157 15158 15159 CFLAGS="$xorg_testset_save_CFLAGS" 15160 15161 eval supported=\$$cacheid 15162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15163 printf "%s\n" "$supported" >&6; } 15164 if test "$supported" = "yes" ; then 15165 BASE_CFLAGS="$BASE_CFLAGS -fd" 15166 found="yes" 15167 fi 15168 fi 15169 15170 15171 15172 15173 15174 # This chunk adds additional warnings that could catch undesired effects. 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 xorg_testset_save_CFLAGS="$CFLAGS" 15189 15190 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15193 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15194 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15195 then : 15196 printf %s "(cached) " >&6 15197 else case e in #( 15198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15199 /* end confdefs.h. */ 15200 int i; 15201 _ACEOF 15202 if ac_fn_c_try_compile "$LINENO" 15203 then : 15204 xorg_cv_cc_flag_unknown_warning_option=yes 15205 else case e in #( 15206 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15207 esac 15208 fi 15209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15210 esac 15211 fi 15212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15213 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15215 CFLAGS="$xorg_testset_save_CFLAGS" 15216 fi 15217 15218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15221 fi 15222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15224 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15225 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15226 then : 15227 printf %s "(cached) " >&6 15228 else case e in #( 15229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15230 /* end confdefs.h. */ 15231 int i; 15232 _ACEOF 15233 if ac_fn_c_try_compile "$LINENO" 15234 then : 15235 xorg_cv_cc_flag_unused_command_line_argument=yes 15236 else case e in #( 15237 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15238 esac 15239 fi 15240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15241 esac 15242 fi 15243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15244 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15246 CFLAGS="$xorg_testset_save_CFLAGS" 15247 fi 15248 15249 found="no" 15250 15251 if test $found = "no" ; then 15252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15254 fi 15255 15256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15258 fi 15259 15260 CFLAGS="$CFLAGS -Wunused" 15261 15262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15263 printf %s "checking if $CC supports -Wunused... " >&6; } 15264 cacheid=xorg_cv_cc_flag__Wunused 15265 if eval test \${$cacheid+y} 15266 then : 15267 printf %s "(cached) " >&6 15268 else case e in #( 15269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15270 /* end confdefs.h. */ 15271 int i; 15272 int 15273 main (void) 15274 { 15275 15276 ; 15277 return 0; 15278 } 15279 _ACEOF 15280 if ac_fn_c_try_link "$LINENO" 15281 then : 15282 eval $cacheid=yes 15283 else case e in #( 15284 e) eval $cacheid=no ;; 15285 esac 15286 fi 15287 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15288 conftest$ac_exeext conftest.$ac_ext ;; 15289 esac 15290 fi 15291 15292 15293 CFLAGS="$xorg_testset_save_CFLAGS" 15294 15295 eval supported=\$$cacheid 15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15297 printf "%s\n" "$supported" >&6; } 15298 if test "$supported" = "yes" ; then 15299 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15300 found="yes" 15301 fi 15302 fi 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 xorg_testset_save_CFLAGS="$CFLAGS" 15319 15320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15323 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15324 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15325 then : 15326 printf %s "(cached) " >&6 15327 else case e in #( 15328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15329 /* end confdefs.h. */ 15330 int i; 15331 _ACEOF 15332 if ac_fn_c_try_compile "$LINENO" 15333 then : 15334 xorg_cv_cc_flag_unknown_warning_option=yes 15335 else case e in #( 15336 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15337 esac 15338 fi 15339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15340 esac 15341 fi 15342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15343 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15345 CFLAGS="$xorg_testset_save_CFLAGS" 15346 fi 15347 15348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15351 fi 15352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15354 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15355 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15356 then : 15357 printf %s "(cached) " >&6 15358 else case e in #( 15359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15360 /* end confdefs.h. */ 15361 int i; 15362 _ACEOF 15363 if ac_fn_c_try_compile "$LINENO" 15364 then : 15365 xorg_cv_cc_flag_unused_command_line_argument=yes 15366 else case e in #( 15367 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15368 esac 15369 fi 15370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15371 esac 15372 fi 15373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15374 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15376 CFLAGS="$xorg_testset_save_CFLAGS" 15377 fi 15378 15379 found="no" 15380 15381 if test $found = "no" ; then 15382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15384 fi 15385 15386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15388 fi 15389 15390 CFLAGS="$CFLAGS -Wuninitialized" 15391 15392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15393 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15394 cacheid=xorg_cv_cc_flag__Wuninitialized 15395 if eval test \${$cacheid+y} 15396 then : 15397 printf %s "(cached) " >&6 15398 else case e in #( 15399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15400 /* end confdefs.h. */ 15401 int i; 15402 int 15403 main (void) 15404 { 15405 15406 ; 15407 return 0; 15408 } 15409 _ACEOF 15410 if ac_fn_c_try_link "$LINENO" 15411 then : 15412 eval $cacheid=yes 15413 else case e in #( 15414 e) eval $cacheid=no ;; 15415 esac 15416 fi 15417 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15418 conftest$ac_exeext conftest.$ac_ext ;; 15419 esac 15420 fi 15421 15422 15423 CFLAGS="$xorg_testset_save_CFLAGS" 15424 15425 eval supported=\$$cacheid 15426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15427 printf "%s\n" "$supported" >&6; } 15428 if test "$supported" = "yes" ; then 15429 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15430 found="yes" 15431 fi 15432 fi 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 xorg_testset_save_CFLAGS="$CFLAGS" 15449 15450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15453 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15454 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15455 then : 15456 printf %s "(cached) " >&6 15457 else case e in #( 15458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15459 /* end confdefs.h. */ 15460 int i; 15461 _ACEOF 15462 if ac_fn_c_try_compile "$LINENO" 15463 then : 15464 xorg_cv_cc_flag_unknown_warning_option=yes 15465 else case e in #( 15466 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15467 esac 15468 fi 15469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15470 esac 15471 fi 15472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15473 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15475 CFLAGS="$xorg_testset_save_CFLAGS" 15476 fi 15477 15478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15481 fi 15482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15484 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15485 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15486 then : 15487 printf %s "(cached) " >&6 15488 else case e in #( 15489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15490 /* end confdefs.h. */ 15491 int i; 15492 _ACEOF 15493 if ac_fn_c_try_compile "$LINENO" 15494 then : 15495 xorg_cv_cc_flag_unused_command_line_argument=yes 15496 else case e in #( 15497 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15498 esac 15499 fi 15500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15501 esac 15502 fi 15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15504 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15506 CFLAGS="$xorg_testset_save_CFLAGS" 15507 fi 15508 15509 found="no" 15510 15511 if test $found = "no" ; then 15512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15514 fi 15515 15516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15518 fi 15519 15520 CFLAGS="$CFLAGS -Wshadow" 15521 15522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15523 printf %s "checking if $CC supports -Wshadow... " >&6; } 15524 cacheid=xorg_cv_cc_flag__Wshadow 15525 if eval test \${$cacheid+y} 15526 then : 15527 printf %s "(cached) " >&6 15528 else case e in #( 15529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15530 /* end confdefs.h. */ 15531 int i; 15532 int 15533 main (void) 15534 { 15535 15536 ; 15537 return 0; 15538 } 15539 _ACEOF 15540 if ac_fn_c_try_link "$LINENO" 15541 then : 15542 eval $cacheid=yes 15543 else case e in #( 15544 e) eval $cacheid=no ;; 15545 esac 15546 fi 15547 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15548 conftest$ac_exeext conftest.$ac_ext ;; 15549 esac 15550 fi 15551 15552 15553 CFLAGS="$xorg_testset_save_CFLAGS" 15554 15555 eval supported=\$$cacheid 15556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15557 printf "%s\n" "$supported" >&6; } 15558 if test "$supported" = "yes" ; then 15559 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15560 found="yes" 15561 fi 15562 fi 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 xorg_testset_save_CFLAGS="$CFLAGS" 15579 15580 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15583 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15584 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15585 then : 15586 printf %s "(cached) " >&6 15587 else case e in #( 15588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15589 /* end confdefs.h. */ 15590 int i; 15591 _ACEOF 15592 if ac_fn_c_try_compile "$LINENO" 15593 then : 15594 xorg_cv_cc_flag_unknown_warning_option=yes 15595 else case e in #( 15596 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15597 esac 15598 fi 15599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15600 esac 15601 fi 15602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15603 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15605 CFLAGS="$xorg_testset_save_CFLAGS" 15606 fi 15607 15608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15611 fi 15612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15614 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15615 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15616 then : 15617 printf %s "(cached) " >&6 15618 else case e in #( 15619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15620 /* end confdefs.h. */ 15621 int i; 15622 _ACEOF 15623 if ac_fn_c_try_compile "$LINENO" 15624 then : 15625 xorg_cv_cc_flag_unused_command_line_argument=yes 15626 else case e in #( 15627 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15628 esac 15629 fi 15630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15631 esac 15632 fi 15633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15634 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15636 CFLAGS="$xorg_testset_save_CFLAGS" 15637 fi 15638 15639 found="no" 15640 15641 if test $found = "no" ; then 15642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15644 fi 15645 15646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15648 fi 15649 15650 CFLAGS="$CFLAGS -Wmissing-noreturn" 15651 15652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15653 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15654 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15655 if eval test \${$cacheid+y} 15656 then : 15657 printf %s "(cached) " >&6 15658 else case e in #( 15659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15660 /* end confdefs.h. */ 15661 int i; 15662 int 15663 main (void) 15664 { 15665 15666 ; 15667 return 0; 15668 } 15669 _ACEOF 15670 if ac_fn_c_try_link "$LINENO" 15671 then : 15672 eval $cacheid=yes 15673 else case e in #( 15674 e) eval $cacheid=no ;; 15675 esac 15676 fi 15677 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15678 conftest$ac_exeext conftest.$ac_ext ;; 15679 esac 15680 fi 15681 15682 15683 CFLAGS="$xorg_testset_save_CFLAGS" 15684 15685 eval supported=\$$cacheid 15686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15687 printf "%s\n" "$supported" >&6; } 15688 if test "$supported" = "yes" ; then 15689 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15690 found="yes" 15691 fi 15692 fi 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 xorg_testset_save_CFLAGS="$CFLAGS" 15709 15710 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15713 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15714 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15715 then : 15716 printf %s "(cached) " >&6 15717 else case e in #( 15718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15719 /* end confdefs.h. */ 15720 int i; 15721 _ACEOF 15722 if ac_fn_c_try_compile "$LINENO" 15723 then : 15724 xorg_cv_cc_flag_unknown_warning_option=yes 15725 else case e in #( 15726 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15727 esac 15728 fi 15729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15730 esac 15731 fi 15732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15733 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15735 CFLAGS="$xorg_testset_save_CFLAGS" 15736 fi 15737 15738 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15741 fi 15742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15744 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15745 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15746 then : 15747 printf %s "(cached) " >&6 15748 else case e in #( 15749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15750 /* end confdefs.h. */ 15751 int i; 15752 _ACEOF 15753 if ac_fn_c_try_compile "$LINENO" 15754 then : 15755 xorg_cv_cc_flag_unused_command_line_argument=yes 15756 else case e in #( 15757 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15758 esac 15759 fi 15760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15761 esac 15762 fi 15763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15764 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15766 CFLAGS="$xorg_testset_save_CFLAGS" 15767 fi 15768 15769 found="no" 15770 15771 if test $found = "no" ; then 15772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15774 fi 15775 15776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15778 fi 15779 15780 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15781 15782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15783 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15784 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15785 if eval test \${$cacheid+y} 15786 then : 15787 printf %s "(cached) " >&6 15788 else case e in #( 15789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15790 /* end confdefs.h. */ 15791 int i; 15792 int 15793 main (void) 15794 { 15795 15796 ; 15797 return 0; 15798 } 15799 _ACEOF 15800 if ac_fn_c_try_link "$LINENO" 15801 then : 15802 eval $cacheid=yes 15803 else case e in #( 15804 e) eval $cacheid=no ;; 15805 esac 15806 fi 15807 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15808 conftest$ac_exeext conftest.$ac_ext ;; 15809 esac 15810 fi 15811 15812 15813 CFLAGS="$xorg_testset_save_CFLAGS" 15814 15815 eval supported=\$$cacheid 15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15817 printf "%s\n" "$supported" >&6; } 15818 if test "$supported" = "yes" ; then 15819 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15820 found="yes" 15821 fi 15822 fi 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 xorg_testset_save_CFLAGS="$CFLAGS" 15839 15840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15843 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15844 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15845 then : 15846 printf %s "(cached) " >&6 15847 else case e in #( 15848 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15849 /* end confdefs.h. */ 15850 int i; 15851 _ACEOF 15852 if ac_fn_c_try_compile "$LINENO" 15853 then : 15854 xorg_cv_cc_flag_unknown_warning_option=yes 15855 else case e in #( 15856 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15857 esac 15858 fi 15859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15860 esac 15861 fi 15862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15863 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15865 CFLAGS="$xorg_testset_save_CFLAGS" 15866 fi 15867 15868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15871 fi 15872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15874 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15875 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15876 then : 15877 printf %s "(cached) " >&6 15878 else case e in #( 15879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15880 /* end confdefs.h. */ 15881 int i; 15882 _ACEOF 15883 if ac_fn_c_try_compile "$LINENO" 15884 then : 15885 xorg_cv_cc_flag_unused_command_line_argument=yes 15886 else case e in #( 15887 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15888 esac 15889 fi 15890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15891 esac 15892 fi 15893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15894 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15895 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15896 CFLAGS="$xorg_testset_save_CFLAGS" 15897 fi 15898 15899 found="no" 15900 15901 if test $found = "no" ; then 15902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15904 fi 15905 15906 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15908 fi 15909 15910 CFLAGS="$CFLAGS -Wredundant-decls" 15911 15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15913 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15914 cacheid=xorg_cv_cc_flag__Wredundant_decls 15915 if eval test \${$cacheid+y} 15916 then : 15917 printf %s "(cached) " >&6 15918 else case e in #( 15919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15920 /* end confdefs.h. */ 15921 int i; 15922 int 15923 main (void) 15924 { 15925 15926 ; 15927 return 0; 15928 } 15929 _ACEOF 15930 if ac_fn_c_try_link "$LINENO" 15931 then : 15932 eval $cacheid=yes 15933 else case e in #( 15934 e) eval $cacheid=no ;; 15935 esac 15936 fi 15937 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15938 conftest$ac_exeext conftest.$ac_ext ;; 15939 esac 15940 fi 15941 15942 15943 CFLAGS="$xorg_testset_save_CFLAGS" 15944 15945 eval supported=\$$cacheid 15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15947 printf "%s\n" "$supported" >&6; } 15948 if test "$supported" = "yes" ; then 15949 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15950 found="yes" 15951 fi 15952 fi 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 xorg_testset_save_CFLAGS="$CFLAGS" 15969 15970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15973 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15974 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15975 then : 15976 printf %s "(cached) " >&6 15977 else case e in #( 15978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15979 /* end confdefs.h. */ 15980 int i; 15981 _ACEOF 15982 if ac_fn_c_try_compile "$LINENO" 15983 then : 15984 xorg_cv_cc_flag_unknown_warning_option=yes 15985 else case e in #( 15986 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15987 esac 15988 fi 15989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15990 esac 15991 fi 15992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15993 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15994 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15995 CFLAGS="$xorg_testset_save_CFLAGS" 15996 fi 15997 15998 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16001 fi 16002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16004 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16005 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16006 then : 16007 printf %s "(cached) " >&6 16008 else case e in #( 16009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16010 /* end confdefs.h. */ 16011 int i; 16012 _ACEOF 16013 if ac_fn_c_try_compile "$LINENO" 16014 then : 16015 xorg_cv_cc_flag_unused_command_line_argument=yes 16016 else case e in #( 16017 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16018 esac 16019 fi 16020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16021 esac 16022 fi 16023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16024 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16026 CFLAGS="$xorg_testset_save_CFLAGS" 16027 fi 16028 16029 found="no" 16030 16031 if test $found = "no" ; then 16032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16034 fi 16035 16036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16038 fi 16039 16040 CFLAGS="$CFLAGS -Wlogical-op" 16041 16042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16043 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16044 cacheid=xorg_cv_cc_flag__Wlogical_op 16045 if eval test \${$cacheid+y} 16046 then : 16047 printf %s "(cached) " >&6 16048 else case e in #( 16049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16050 /* end confdefs.h. */ 16051 int i; 16052 int 16053 main (void) 16054 { 16055 16056 ; 16057 return 0; 16058 } 16059 _ACEOF 16060 if ac_fn_c_try_link "$LINENO" 16061 then : 16062 eval $cacheid=yes 16063 else case e in #( 16064 e) eval $cacheid=no ;; 16065 esac 16066 fi 16067 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16068 conftest$ac_exeext conftest.$ac_ext ;; 16069 esac 16070 fi 16071 16072 16073 CFLAGS="$xorg_testset_save_CFLAGS" 16074 16075 eval supported=\$$cacheid 16076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16077 printf "%s\n" "$supported" >&6; } 16078 if test "$supported" = "yes" ; then 16079 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16080 found="yes" 16081 fi 16082 fi 16083 16084 16085 16086 # These are currently disabled because they are noisy. They will be enabled 16087 # in the future once the codebase is sufficiently modernized to silence 16088 # them. For now, I don't want them to drown out the other warnings. 16089 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16090 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16091 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16092 16093 # Turn some warnings into errors, so we don't accidentally get successful builds 16094 # when there are problems that should be fixed. 16095 16096 if test "x$SELECTIVE_WERROR" = "xyes" ; then 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 xorg_testset_save_CFLAGS="$CFLAGS" 16111 16112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16115 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16116 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16117 then : 16118 printf %s "(cached) " >&6 16119 else case e in #( 16120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16121 /* end confdefs.h. */ 16122 int i; 16123 _ACEOF 16124 if ac_fn_c_try_compile "$LINENO" 16125 then : 16126 xorg_cv_cc_flag_unknown_warning_option=yes 16127 else case e in #( 16128 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16129 esac 16130 fi 16131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16132 esac 16133 fi 16134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16135 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16136 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16137 CFLAGS="$xorg_testset_save_CFLAGS" 16138 fi 16139 16140 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16142 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16143 fi 16144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16146 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16147 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16148 then : 16149 printf %s "(cached) " >&6 16150 else case e in #( 16151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16152 /* end confdefs.h. */ 16153 int i; 16154 _ACEOF 16155 if ac_fn_c_try_compile "$LINENO" 16156 then : 16157 xorg_cv_cc_flag_unused_command_line_argument=yes 16158 else case e in #( 16159 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16160 esac 16161 fi 16162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16163 esac 16164 fi 16165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16166 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16167 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16168 CFLAGS="$xorg_testset_save_CFLAGS" 16169 fi 16170 16171 found="no" 16172 16173 if test $found = "no" ; then 16174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16176 fi 16177 16178 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16180 fi 16181 16182 CFLAGS="$CFLAGS -Werror=implicit" 16183 16184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16185 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16186 cacheid=xorg_cv_cc_flag__Werror_implicit 16187 if eval test \${$cacheid+y} 16188 then : 16189 printf %s "(cached) " >&6 16190 else case e in #( 16191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16192 /* end confdefs.h. */ 16193 int i; 16194 int 16195 main (void) 16196 { 16197 16198 ; 16199 return 0; 16200 } 16201 _ACEOF 16202 if ac_fn_c_try_link "$LINENO" 16203 then : 16204 eval $cacheid=yes 16205 else case e in #( 16206 e) eval $cacheid=no ;; 16207 esac 16208 fi 16209 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16210 conftest$ac_exeext conftest.$ac_ext ;; 16211 esac 16212 fi 16213 16214 16215 CFLAGS="$xorg_testset_save_CFLAGS" 16216 16217 eval supported=\$$cacheid 16218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16219 printf "%s\n" "$supported" >&6; } 16220 if test "$supported" = "yes" ; then 16221 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16222 found="yes" 16223 fi 16224 fi 16225 16226 if test $found = "no" ; then 16227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16229 fi 16230 16231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16233 fi 16234 16235 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16236 16237 { 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 16238 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16239 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16240 if eval test \${$cacheid+y} 16241 then : 16242 printf %s "(cached) " >&6 16243 else case e in #( 16244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16245 /* end confdefs.h. */ 16246 int i; 16247 int 16248 main (void) 16249 { 16250 16251 ; 16252 return 0; 16253 } 16254 _ACEOF 16255 if ac_fn_c_try_link "$LINENO" 16256 then : 16257 eval $cacheid=yes 16258 else case e in #( 16259 e) eval $cacheid=no ;; 16260 esac 16261 fi 16262 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16263 conftest$ac_exeext conftest.$ac_ext ;; 16264 esac 16265 fi 16266 16267 16268 CFLAGS="$xorg_testset_save_CFLAGS" 16269 16270 eval supported=\$$cacheid 16271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16272 printf "%s\n" "$supported" >&6; } 16273 if test "$supported" = "yes" ; then 16274 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16275 found="yes" 16276 fi 16277 fi 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 xorg_testset_save_CFLAGS="$CFLAGS" 16294 16295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16298 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16299 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16300 then : 16301 printf %s "(cached) " >&6 16302 else case e in #( 16303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16304 /* end confdefs.h. */ 16305 int i; 16306 _ACEOF 16307 if ac_fn_c_try_compile "$LINENO" 16308 then : 16309 xorg_cv_cc_flag_unknown_warning_option=yes 16310 else case e in #( 16311 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16312 esac 16313 fi 16314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16315 esac 16316 fi 16317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16318 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16320 CFLAGS="$xorg_testset_save_CFLAGS" 16321 fi 16322 16323 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16326 fi 16327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16329 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16330 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16331 then : 16332 printf %s "(cached) " >&6 16333 else case e in #( 16334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16335 /* end confdefs.h. */ 16336 int i; 16337 _ACEOF 16338 if ac_fn_c_try_compile "$LINENO" 16339 then : 16340 xorg_cv_cc_flag_unused_command_line_argument=yes 16341 else case e in #( 16342 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16343 esac 16344 fi 16345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16346 esac 16347 fi 16348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16349 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16351 CFLAGS="$xorg_testset_save_CFLAGS" 16352 fi 16353 16354 found="no" 16355 16356 if test $found = "no" ; then 16357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16359 fi 16360 16361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16363 fi 16364 16365 CFLAGS="$CFLAGS -Werror=nonnull" 16366 16367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16368 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16369 cacheid=xorg_cv_cc_flag__Werror_nonnull 16370 if eval test \${$cacheid+y} 16371 then : 16372 printf %s "(cached) " >&6 16373 else case e in #( 16374 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16375 /* end confdefs.h. */ 16376 int i; 16377 int 16378 main (void) 16379 { 16380 16381 ; 16382 return 0; 16383 } 16384 _ACEOF 16385 if ac_fn_c_try_link "$LINENO" 16386 then : 16387 eval $cacheid=yes 16388 else case e in #( 16389 e) eval $cacheid=no ;; 16390 esac 16391 fi 16392 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16393 conftest$ac_exeext conftest.$ac_ext ;; 16394 esac 16395 fi 16396 16397 16398 CFLAGS="$xorg_testset_save_CFLAGS" 16399 16400 eval supported=\$$cacheid 16401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16402 printf "%s\n" "$supported" >&6; } 16403 if test "$supported" = "yes" ; then 16404 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16405 found="yes" 16406 fi 16407 fi 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 xorg_testset_save_CFLAGS="$CFLAGS" 16424 16425 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16428 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16429 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16430 then : 16431 printf %s "(cached) " >&6 16432 else case e in #( 16433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16434 /* end confdefs.h. */ 16435 int i; 16436 _ACEOF 16437 if ac_fn_c_try_compile "$LINENO" 16438 then : 16439 xorg_cv_cc_flag_unknown_warning_option=yes 16440 else case e in #( 16441 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16442 esac 16443 fi 16444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16445 esac 16446 fi 16447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16448 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16450 CFLAGS="$xorg_testset_save_CFLAGS" 16451 fi 16452 16453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16456 fi 16457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16459 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16460 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16461 then : 16462 printf %s "(cached) " >&6 16463 else case e in #( 16464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16465 /* end confdefs.h. */ 16466 int i; 16467 _ACEOF 16468 if ac_fn_c_try_compile "$LINENO" 16469 then : 16470 xorg_cv_cc_flag_unused_command_line_argument=yes 16471 else case e in #( 16472 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16473 esac 16474 fi 16475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16476 esac 16477 fi 16478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16479 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16481 CFLAGS="$xorg_testset_save_CFLAGS" 16482 fi 16483 16484 found="no" 16485 16486 if test $found = "no" ; then 16487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16489 fi 16490 16491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16493 fi 16494 16495 CFLAGS="$CFLAGS -Werror=init-self" 16496 16497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16498 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16499 cacheid=xorg_cv_cc_flag__Werror_init_self 16500 if eval test \${$cacheid+y} 16501 then : 16502 printf %s "(cached) " >&6 16503 else case e in #( 16504 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16505 /* end confdefs.h. */ 16506 int i; 16507 int 16508 main (void) 16509 { 16510 16511 ; 16512 return 0; 16513 } 16514 _ACEOF 16515 if ac_fn_c_try_link "$LINENO" 16516 then : 16517 eval $cacheid=yes 16518 else case e in #( 16519 e) eval $cacheid=no ;; 16520 esac 16521 fi 16522 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16523 conftest$ac_exeext conftest.$ac_ext ;; 16524 esac 16525 fi 16526 16527 16528 CFLAGS="$xorg_testset_save_CFLAGS" 16529 16530 eval supported=\$$cacheid 16531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16532 printf "%s\n" "$supported" >&6; } 16533 if test "$supported" = "yes" ; then 16534 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16535 found="yes" 16536 fi 16537 fi 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 xorg_testset_save_CFLAGS="$CFLAGS" 16554 16555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16558 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16559 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16560 then : 16561 printf %s "(cached) " >&6 16562 else case e in #( 16563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16564 /* end confdefs.h. */ 16565 int i; 16566 _ACEOF 16567 if ac_fn_c_try_compile "$LINENO" 16568 then : 16569 xorg_cv_cc_flag_unknown_warning_option=yes 16570 else case e in #( 16571 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16572 esac 16573 fi 16574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16575 esac 16576 fi 16577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16578 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16580 CFLAGS="$xorg_testset_save_CFLAGS" 16581 fi 16582 16583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16586 fi 16587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16589 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16590 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16591 then : 16592 printf %s "(cached) " >&6 16593 else case e in #( 16594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16595 /* end confdefs.h. */ 16596 int i; 16597 _ACEOF 16598 if ac_fn_c_try_compile "$LINENO" 16599 then : 16600 xorg_cv_cc_flag_unused_command_line_argument=yes 16601 else case e in #( 16602 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16603 esac 16604 fi 16605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16606 esac 16607 fi 16608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16609 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16611 CFLAGS="$xorg_testset_save_CFLAGS" 16612 fi 16613 16614 found="no" 16615 16616 if test $found = "no" ; then 16617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16619 fi 16620 16621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16623 fi 16624 16625 CFLAGS="$CFLAGS -Werror=main" 16626 16627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16628 printf %s "checking if $CC supports -Werror=main... " >&6; } 16629 cacheid=xorg_cv_cc_flag__Werror_main 16630 if eval test \${$cacheid+y} 16631 then : 16632 printf %s "(cached) " >&6 16633 else case e in #( 16634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16635 /* end confdefs.h. */ 16636 int i; 16637 int 16638 main (void) 16639 { 16640 16641 ; 16642 return 0; 16643 } 16644 _ACEOF 16645 if ac_fn_c_try_link "$LINENO" 16646 then : 16647 eval $cacheid=yes 16648 else case e in #( 16649 e) eval $cacheid=no ;; 16650 esac 16651 fi 16652 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16653 conftest$ac_exeext conftest.$ac_ext ;; 16654 esac 16655 fi 16656 16657 16658 CFLAGS="$xorg_testset_save_CFLAGS" 16659 16660 eval supported=\$$cacheid 16661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16662 printf "%s\n" "$supported" >&6; } 16663 if test "$supported" = "yes" ; then 16664 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16665 found="yes" 16666 fi 16667 fi 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 xorg_testset_save_CFLAGS="$CFLAGS" 16684 16685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16688 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16689 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16690 then : 16691 printf %s "(cached) " >&6 16692 else case e in #( 16693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16694 /* end confdefs.h. */ 16695 int i; 16696 _ACEOF 16697 if ac_fn_c_try_compile "$LINENO" 16698 then : 16699 xorg_cv_cc_flag_unknown_warning_option=yes 16700 else case e in #( 16701 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16702 esac 16703 fi 16704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16705 esac 16706 fi 16707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16708 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16710 CFLAGS="$xorg_testset_save_CFLAGS" 16711 fi 16712 16713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16716 fi 16717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16719 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16720 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16721 then : 16722 printf %s "(cached) " >&6 16723 else case e in #( 16724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16725 /* end confdefs.h. */ 16726 int i; 16727 _ACEOF 16728 if ac_fn_c_try_compile "$LINENO" 16729 then : 16730 xorg_cv_cc_flag_unused_command_line_argument=yes 16731 else case e in #( 16732 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16733 esac 16734 fi 16735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16736 esac 16737 fi 16738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16739 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16741 CFLAGS="$xorg_testset_save_CFLAGS" 16742 fi 16743 16744 found="no" 16745 16746 if test $found = "no" ; then 16747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16749 fi 16750 16751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16753 fi 16754 16755 CFLAGS="$CFLAGS -Werror=missing-braces" 16756 16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16758 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16759 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16760 if eval test \${$cacheid+y} 16761 then : 16762 printf %s "(cached) " >&6 16763 else case e in #( 16764 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16765 /* end confdefs.h. */ 16766 int i; 16767 int 16768 main (void) 16769 { 16770 16771 ; 16772 return 0; 16773 } 16774 _ACEOF 16775 if ac_fn_c_try_link "$LINENO" 16776 then : 16777 eval $cacheid=yes 16778 else case e in #( 16779 e) eval $cacheid=no ;; 16780 esac 16781 fi 16782 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16783 conftest$ac_exeext conftest.$ac_ext ;; 16784 esac 16785 fi 16786 16787 16788 CFLAGS="$xorg_testset_save_CFLAGS" 16789 16790 eval supported=\$$cacheid 16791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16792 printf "%s\n" "$supported" >&6; } 16793 if test "$supported" = "yes" ; then 16794 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16795 found="yes" 16796 fi 16797 fi 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 xorg_testset_save_CFLAGS="$CFLAGS" 16814 16815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16818 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16819 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16820 then : 16821 printf %s "(cached) " >&6 16822 else case e in #( 16823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16824 /* end confdefs.h. */ 16825 int i; 16826 _ACEOF 16827 if ac_fn_c_try_compile "$LINENO" 16828 then : 16829 xorg_cv_cc_flag_unknown_warning_option=yes 16830 else case e in #( 16831 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16832 esac 16833 fi 16834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16835 esac 16836 fi 16837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16838 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16840 CFLAGS="$xorg_testset_save_CFLAGS" 16841 fi 16842 16843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16846 fi 16847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16849 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16850 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16851 then : 16852 printf %s "(cached) " >&6 16853 else case e in #( 16854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16855 /* end confdefs.h. */ 16856 int i; 16857 _ACEOF 16858 if ac_fn_c_try_compile "$LINENO" 16859 then : 16860 xorg_cv_cc_flag_unused_command_line_argument=yes 16861 else case e in #( 16862 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16863 esac 16864 fi 16865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16866 esac 16867 fi 16868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16869 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16871 CFLAGS="$xorg_testset_save_CFLAGS" 16872 fi 16873 16874 found="no" 16875 16876 if test $found = "no" ; then 16877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16879 fi 16880 16881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16883 fi 16884 16885 CFLAGS="$CFLAGS -Werror=sequence-point" 16886 16887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16888 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16889 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16890 if eval test \${$cacheid+y} 16891 then : 16892 printf %s "(cached) " >&6 16893 else case e in #( 16894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16895 /* end confdefs.h. */ 16896 int i; 16897 int 16898 main (void) 16899 { 16900 16901 ; 16902 return 0; 16903 } 16904 _ACEOF 16905 if ac_fn_c_try_link "$LINENO" 16906 then : 16907 eval $cacheid=yes 16908 else case e in #( 16909 e) eval $cacheid=no ;; 16910 esac 16911 fi 16912 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16913 conftest$ac_exeext conftest.$ac_ext ;; 16914 esac 16915 fi 16916 16917 16918 CFLAGS="$xorg_testset_save_CFLAGS" 16919 16920 eval supported=\$$cacheid 16921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16922 printf "%s\n" "$supported" >&6; } 16923 if test "$supported" = "yes" ; then 16924 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16925 found="yes" 16926 fi 16927 fi 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 xorg_testset_save_CFLAGS="$CFLAGS" 16944 16945 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16948 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16949 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16950 then : 16951 printf %s "(cached) " >&6 16952 else case e in #( 16953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16954 /* end confdefs.h. */ 16955 int i; 16956 _ACEOF 16957 if ac_fn_c_try_compile "$LINENO" 16958 then : 16959 xorg_cv_cc_flag_unknown_warning_option=yes 16960 else case e in #( 16961 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16962 esac 16963 fi 16964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16965 esac 16966 fi 16967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16968 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16970 CFLAGS="$xorg_testset_save_CFLAGS" 16971 fi 16972 16973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16976 fi 16977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16979 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16980 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16981 then : 16982 printf %s "(cached) " >&6 16983 else case e in #( 16984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16985 /* end confdefs.h. */ 16986 int i; 16987 _ACEOF 16988 if ac_fn_c_try_compile "$LINENO" 16989 then : 16990 xorg_cv_cc_flag_unused_command_line_argument=yes 16991 else case e in #( 16992 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16993 esac 16994 fi 16995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16996 esac 16997 fi 16998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16999 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17001 CFLAGS="$xorg_testset_save_CFLAGS" 17002 fi 17003 17004 found="no" 17005 17006 if test $found = "no" ; then 17007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17009 fi 17010 17011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17013 fi 17014 17015 CFLAGS="$CFLAGS -Werror=return-type" 17016 17017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17018 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17019 cacheid=xorg_cv_cc_flag__Werror_return_type 17020 if eval test \${$cacheid+y} 17021 then : 17022 printf %s "(cached) " >&6 17023 else case e in #( 17024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17025 /* end confdefs.h. */ 17026 int i; 17027 int 17028 main (void) 17029 { 17030 17031 ; 17032 return 0; 17033 } 17034 _ACEOF 17035 if ac_fn_c_try_link "$LINENO" 17036 then : 17037 eval $cacheid=yes 17038 else case e in #( 17039 e) eval $cacheid=no ;; 17040 esac 17041 fi 17042 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17043 conftest$ac_exeext conftest.$ac_ext ;; 17044 esac 17045 fi 17046 17047 17048 CFLAGS="$xorg_testset_save_CFLAGS" 17049 17050 eval supported=\$$cacheid 17051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17052 printf "%s\n" "$supported" >&6; } 17053 if test "$supported" = "yes" ; then 17054 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17055 found="yes" 17056 fi 17057 fi 17058 17059 if test $found = "no" ; then 17060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17062 fi 17063 17064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17066 fi 17067 17068 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17069 17070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17071 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17072 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17073 if eval test \${$cacheid+y} 17074 then : 17075 printf %s "(cached) " >&6 17076 else case e in #( 17077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17078 /* end confdefs.h. */ 17079 int i; 17080 int 17081 main (void) 17082 { 17083 17084 ; 17085 return 0; 17086 } 17087 _ACEOF 17088 if ac_fn_c_try_link "$LINENO" 17089 then : 17090 eval $cacheid=yes 17091 else case e in #( 17092 e) eval $cacheid=no ;; 17093 esac 17094 fi 17095 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17096 conftest$ac_exeext conftest.$ac_ext ;; 17097 esac 17098 fi 17099 17100 17101 CFLAGS="$xorg_testset_save_CFLAGS" 17102 17103 eval supported=\$$cacheid 17104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17105 printf "%s\n" "$supported" >&6; } 17106 if test "$supported" = "yes" ; then 17107 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17108 found="yes" 17109 fi 17110 fi 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 xorg_testset_save_CFLAGS="$CFLAGS" 17127 17128 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17131 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17132 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17133 then : 17134 printf %s "(cached) " >&6 17135 else case e in #( 17136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17137 /* end confdefs.h. */ 17138 int i; 17139 _ACEOF 17140 if ac_fn_c_try_compile "$LINENO" 17141 then : 17142 xorg_cv_cc_flag_unknown_warning_option=yes 17143 else case e in #( 17144 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17145 esac 17146 fi 17147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17148 esac 17149 fi 17150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17151 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17153 CFLAGS="$xorg_testset_save_CFLAGS" 17154 fi 17155 17156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17159 fi 17160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17162 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17163 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17164 then : 17165 printf %s "(cached) " >&6 17166 else case e in #( 17167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17168 /* end confdefs.h. */ 17169 int i; 17170 _ACEOF 17171 if ac_fn_c_try_compile "$LINENO" 17172 then : 17173 xorg_cv_cc_flag_unused_command_line_argument=yes 17174 else case e in #( 17175 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17176 esac 17177 fi 17178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17179 esac 17180 fi 17181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17182 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17184 CFLAGS="$xorg_testset_save_CFLAGS" 17185 fi 17186 17187 found="no" 17188 17189 if test $found = "no" ; then 17190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17192 fi 17193 17194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17196 fi 17197 17198 CFLAGS="$CFLAGS -Werror=trigraphs" 17199 17200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17201 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17202 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17203 if eval test \${$cacheid+y} 17204 then : 17205 printf %s "(cached) " >&6 17206 else case e in #( 17207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17208 /* end confdefs.h. */ 17209 int i; 17210 int 17211 main (void) 17212 { 17213 17214 ; 17215 return 0; 17216 } 17217 _ACEOF 17218 if ac_fn_c_try_link "$LINENO" 17219 then : 17220 eval $cacheid=yes 17221 else case e in #( 17222 e) eval $cacheid=no ;; 17223 esac 17224 fi 17225 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17226 conftest$ac_exeext conftest.$ac_ext ;; 17227 esac 17228 fi 17229 17230 17231 CFLAGS="$xorg_testset_save_CFLAGS" 17232 17233 eval supported=\$$cacheid 17234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17235 printf "%s\n" "$supported" >&6; } 17236 if test "$supported" = "yes" ; then 17237 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17238 found="yes" 17239 fi 17240 fi 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 xorg_testset_save_CFLAGS="$CFLAGS" 17257 17258 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17261 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17262 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17263 then : 17264 printf %s "(cached) " >&6 17265 else case e in #( 17266 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17267 /* end confdefs.h. */ 17268 int i; 17269 _ACEOF 17270 if ac_fn_c_try_compile "$LINENO" 17271 then : 17272 xorg_cv_cc_flag_unknown_warning_option=yes 17273 else case e in #( 17274 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17275 esac 17276 fi 17277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17278 esac 17279 fi 17280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17281 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17283 CFLAGS="$xorg_testset_save_CFLAGS" 17284 fi 17285 17286 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17289 fi 17290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17292 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17293 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17294 then : 17295 printf %s "(cached) " >&6 17296 else case e in #( 17297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17298 /* end confdefs.h. */ 17299 int i; 17300 _ACEOF 17301 if ac_fn_c_try_compile "$LINENO" 17302 then : 17303 xorg_cv_cc_flag_unused_command_line_argument=yes 17304 else case e in #( 17305 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17306 esac 17307 fi 17308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17309 esac 17310 fi 17311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17312 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17314 CFLAGS="$xorg_testset_save_CFLAGS" 17315 fi 17316 17317 found="no" 17318 17319 if test $found = "no" ; then 17320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17322 fi 17323 17324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17326 fi 17327 17328 CFLAGS="$CFLAGS -Werror=array-bounds" 17329 17330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17331 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17332 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17333 if eval test \${$cacheid+y} 17334 then : 17335 printf %s "(cached) " >&6 17336 else case e in #( 17337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17338 /* end confdefs.h. */ 17339 int i; 17340 int 17341 main (void) 17342 { 17343 17344 ; 17345 return 0; 17346 } 17347 _ACEOF 17348 if ac_fn_c_try_link "$LINENO" 17349 then : 17350 eval $cacheid=yes 17351 else case e in #( 17352 e) eval $cacheid=no ;; 17353 esac 17354 fi 17355 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17356 conftest$ac_exeext conftest.$ac_ext ;; 17357 esac 17358 fi 17359 17360 17361 CFLAGS="$xorg_testset_save_CFLAGS" 17362 17363 eval supported=\$$cacheid 17364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17365 printf "%s\n" "$supported" >&6; } 17366 if test "$supported" = "yes" ; then 17367 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17368 found="yes" 17369 fi 17370 fi 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 xorg_testset_save_CFLAGS="$CFLAGS" 17387 17388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17391 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17392 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17393 then : 17394 printf %s "(cached) " >&6 17395 else case e in #( 17396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17397 /* end confdefs.h. */ 17398 int i; 17399 _ACEOF 17400 if ac_fn_c_try_compile "$LINENO" 17401 then : 17402 xorg_cv_cc_flag_unknown_warning_option=yes 17403 else case e in #( 17404 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17405 esac 17406 fi 17407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17408 esac 17409 fi 17410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17411 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17413 CFLAGS="$xorg_testset_save_CFLAGS" 17414 fi 17415 17416 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17419 fi 17420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17422 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17423 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17424 then : 17425 printf %s "(cached) " >&6 17426 else case e in #( 17427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17428 /* end confdefs.h. */ 17429 int i; 17430 _ACEOF 17431 if ac_fn_c_try_compile "$LINENO" 17432 then : 17433 xorg_cv_cc_flag_unused_command_line_argument=yes 17434 else case e in #( 17435 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17436 esac 17437 fi 17438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17439 esac 17440 fi 17441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17442 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17444 CFLAGS="$xorg_testset_save_CFLAGS" 17445 fi 17446 17447 found="no" 17448 17449 if test $found = "no" ; then 17450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17452 fi 17453 17454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17456 fi 17457 17458 CFLAGS="$CFLAGS -Werror=write-strings" 17459 17460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17461 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17462 cacheid=xorg_cv_cc_flag__Werror_write_strings 17463 if eval test \${$cacheid+y} 17464 then : 17465 printf %s "(cached) " >&6 17466 else case e in #( 17467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17468 /* end confdefs.h. */ 17469 int i; 17470 int 17471 main (void) 17472 { 17473 17474 ; 17475 return 0; 17476 } 17477 _ACEOF 17478 if ac_fn_c_try_link "$LINENO" 17479 then : 17480 eval $cacheid=yes 17481 else case e in #( 17482 e) eval $cacheid=no ;; 17483 esac 17484 fi 17485 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17486 conftest$ac_exeext conftest.$ac_ext ;; 17487 esac 17488 fi 17489 17490 17491 CFLAGS="$xorg_testset_save_CFLAGS" 17492 17493 eval supported=\$$cacheid 17494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17495 printf "%s\n" "$supported" >&6; } 17496 if test "$supported" = "yes" ; then 17497 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17498 found="yes" 17499 fi 17500 fi 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 xorg_testset_save_CFLAGS="$CFLAGS" 17517 17518 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17521 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17522 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17523 then : 17524 printf %s "(cached) " >&6 17525 else case e in #( 17526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17527 /* end confdefs.h. */ 17528 int i; 17529 _ACEOF 17530 if ac_fn_c_try_compile "$LINENO" 17531 then : 17532 xorg_cv_cc_flag_unknown_warning_option=yes 17533 else case e in #( 17534 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17535 esac 17536 fi 17537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17538 esac 17539 fi 17540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17541 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17543 CFLAGS="$xorg_testset_save_CFLAGS" 17544 fi 17545 17546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17549 fi 17550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17552 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17553 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17554 then : 17555 printf %s "(cached) " >&6 17556 else case e in #( 17557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17558 /* end confdefs.h. */ 17559 int i; 17560 _ACEOF 17561 if ac_fn_c_try_compile "$LINENO" 17562 then : 17563 xorg_cv_cc_flag_unused_command_line_argument=yes 17564 else case e in #( 17565 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17566 esac 17567 fi 17568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17569 esac 17570 fi 17571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17572 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17574 CFLAGS="$xorg_testset_save_CFLAGS" 17575 fi 17576 17577 found="no" 17578 17579 if test $found = "no" ; then 17580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17582 fi 17583 17584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17586 fi 17587 17588 CFLAGS="$CFLAGS -Werror=address" 17589 17590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17591 printf %s "checking if $CC supports -Werror=address... " >&6; } 17592 cacheid=xorg_cv_cc_flag__Werror_address 17593 if eval test \${$cacheid+y} 17594 then : 17595 printf %s "(cached) " >&6 17596 else case e in #( 17597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17598 /* end confdefs.h. */ 17599 int i; 17600 int 17601 main (void) 17602 { 17603 17604 ; 17605 return 0; 17606 } 17607 _ACEOF 17608 if ac_fn_c_try_link "$LINENO" 17609 then : 17610 eval $cacheid=yes 17611 else case e in #( 17612 e) eval $cacheid=no ;; 17613 esac 17614 fi 17615 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17616 conftest$ac_exeext conftest.$ac_ext ;; 17617 esac 17618 fi 17619 17620 17621 CFLAGS="$xorg_testset_save_CFLAGS" 17622 17623 eval supported=\$$cacheid 17624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17625 printf "%s\n" "$supported" >&6; } 17626 if test "$supported" = "yes" ; then 17627 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17628 found="yes" 17629 fi 17630 fi 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 xorg_testset_save_CFLAGS="$CFLAGS" 17647 17648 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17651 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17652 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17653 then : 17654 printf %s "(cached) " >&6 17655 else case e in #( 17656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17657 /* end confdefs.h. */ 17658 int i; 17659 _ACEOF 17660 if ac_fn_c_try_compile "$LINENO" 17661 then : 17662 xorg_cv_cc_flag_unknown_warning_option=yes 17663 else case e in #( 17664 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17665 esac 17666 fi 17667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17668 esac 17669 fi 17670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17671 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17673 CFLAGS="$xorg_testset_save_CFLAGS" 17674 fi 17675 17676 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17679 fi 17680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17682 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17683 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17684 then : 17685 printf %s "(cached) " >&6 17686 else case e in #( 17687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17688 /* end confdefs.h. */ 17689 int i; 17690 _ACEOF 17691 if ac_fn_c_try_compile "$LINENO" 17692 then : 17693 xorg_cv_cc_flag_unused_command_line_argument=yes 17694 else case e in #( 17695 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17696 esac 17697 fi 17698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17699 esac 17700 fi 17701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17702 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17704 CFLAGS="$xorg_testset_save_CFLAGS" 17705 fi 17706 17707 found="no" 17708 17709 if test $found = "no" ; then 17710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17712 fi 17713 17714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17716 fi 17717 17718 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17719 17720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17721 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17722 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17723 if eval test \${$cacheid+y} 17724 then : 17725 printf %s "(cached) " >&6 17726 else case e in #( 17727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17728 /* end confdefs.h. */ 17729 int i; 17730 int 17731 main (void) 17732 { 17733 17734 ; 17735 return 0; 17736 } 17737 _ACEOF 17738 if ac_fn_c_try_link "$LINENO" 17739 then : 17740 eval $cacheid=yes 17741 else case e in #( 17742 e) eval $cacheid=no ;; 17743 esac 17744 fi 17745 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17746 conftest$ac_exeext conftest.$ac_ext ;; 17747 esac 17748 fi 17749 17750 17751 CFLAGS="$xorg_testset_save_CFLAGS" 17752 17753 eval supported=\$$cacheid 17754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17755 printf "%s\n" "$supported" >&6; } 17756 if test "$supported" = "yes" ; then 17757 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17758 found="yes" 17759 fi 17760 fi 17761 17762 if test $found = "no" ; then 17763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17765 fi 17766 17767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17769 fi 17770 17771 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17772 17773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17774 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17775 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17776 if eval test \${$cacheid+y} 17777 then : 17778 printf %s "(cached) " >&6 17779 else case e in #( 17780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17781 /* end confdefs.h. */ 17782 int i; 17783 int 17784 main (void) 17785 { 17786 17787 ; 17788 return 0; 17789 } 17790 _ACEOF 17791 if ac_fn_c_try_link "$LINENO" 17792 then : 17793 eval $cacheid=yes 17794 else case e in #( 17795 e) eval $cacheid=no ;; 17796 esac 17797 fi 17798 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17799 conftest$ac_exeext conftest.$ac_ext ;; 17800 esac 17801 fi 17802 17803 17804 CFLAGS="$xorg_testset_save_CFLAGS" 17805 17806 eval supported=\$$cacheid 17807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17808 printf "%s\n" "$supported" >&6; } 17809 if test "$supported" = "yes" ; then 17810 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17811 found="yes" 17812 fi 17813 fi 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 xorg_testset_save_CFLAGS="$CFLAGS" 17830 17831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17834 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17835 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17836 then : 17837 printf %s "(cached) " >&6 17838 else case e in #( 17839 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17840 /* end confdefs.h. */ 17841 int i; 17842 _ACEOF 17843 if ac_fn_c_try_compile "$LINENO" 17844 then : 17845 xorg_cv_cc_flag_unknown_warning_option=yes 17846 else case e in #( 17847 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17848 esac 17849 fi 17850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17851 esac 17852 fi 17853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17854 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17856 CFLAGS="$xorg_testset_save_CFLAGS" 17857 fi 17858 17859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17862 fi 17863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17865 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17866 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17867 then : 17868 printf %s "(cached) " >&6 17869 else case e in #( 17870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17871 /* end confdefs.h. */ 17872 int i; 17873 _ACEOF 17874 if ac_fn_c_try_compile "$LINENO" 17875 then : 17876 xorg_cv_cc_flag_unused_command_line_argument=yes 17877 else case e in #( 17878 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17879 esac 17880 fi 17881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17882 esac 17883 fi 17884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17885 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17887 CFLAGS="$xorg_testset_save_CFLAGS" 17888 fi 17889 17890 found="no" 17891 17892 if test $found = "no" ; then 17893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17895 fi 17896 17897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17899 fi 17900 17901 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17902 17903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17904 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17905 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17906 if eval test \${$cacheid+y} 17907 then : 17908 printf %s "(cached) " >&6 17909 else case e in #( 17910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17911 /* end confdefs.h. */ 17912 int i; 17913 int 17914 main (void) 17915 { 17916 17917 ; 17918 return 0; 17919 } 17920 _ACEOF 17921 if ac_fn_c_try_link "$LINENO" 17922 then : 17923 eval $cacheid=yes 17924 else case e in #( 17925 e) eval $cacheid=no ;; 17926 esac 17927 fi 17928 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17929 conftest$ac_exeext conftest.$ac_ext ;; 17930 esac 17931 fi 17932 17933 17934 CFLAGS="$xorg_testset_save_CFLAGS" 17935 17936 eval supported=\$$cacheid 17937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17938 printf "%s\n" "$supported" >&6; } 17939 if test "$supported" = "yes" ; then 17940 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17941 found="yes" 17942 fi 17943 fi 17944 17945 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17946 else 17947 { 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 17948 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;} 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 xorg_testset_save_CFLAGS="$CFLAGS" 17963 17964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17965 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17967 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17968 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17969 then : 17970 printf %s "(cached) " >&6 17971 else case e in #( 17972 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17973 /* end confdefs.h. */ 17974 int i; 17975 _ACEOF 17976 if ac_fn_c_try_compile "$LINENO" 17977 then : 17978 xorg_cv_cc_flag_unknown_warning_option=yes 17979 else case e in #( 17980 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17981 esac 17982 fi 17983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17984 esac 17985 fi 17986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17987 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17989 CFLAGS="$xorg_testset_save_CFLAGS" 17990 fi 17991 17992 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17995 fi 17996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17998 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17999 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18000 then : 18001 printf %s "(cached) " >&6 18002 else case e in #( 18003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18004 /* end confdefs.h. */ 18005 int i; 18006 _ACEOF 18007 if ac_fn_c_try_compile "$LINENO" 18008 then : 18009 xorg_cv_cc_flag_unused_command_line_argument=yes 18010 else case e in #( 18011 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18012 esac 18013 fi 18014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18015 esac 18016 fi 18017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18018 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18020 CFLAGS="$xorg_testset_save_CFLAGS" 18021 fi 18022 18023 found="no" 18024 18025 if test $found = "no" ; then 18026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18028 fi 18029 18030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18032 fi 18033 18034 CFLAGS="$CFLAGS -Wimplicit" 18035 18036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18037 printf %s "checking if $CC supports -Wimplicit... " >&6; } 18038 cacheid=xorg_cv_cc_flag__Wimplicit 18039 if eval test \${$cacheid+y} 18040 then : 18041 printf %s "(cached) " >&6 18042 else case e in #( 18043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18044 /* end confdefs.h. */ 18045 int i; 18046 int 18047 main (void) 18048 { 18049 18050 ; 18051 return 0; 18052 } 18053 _ACEOF 18054 if ac_fn_c_try_link "$LINENO" 18055 then : 18056 eval $cacheid=yes 18057 else case e in #( 18058 e) eval $cacheid=no ;; 18059 esac 18060 fi 18061 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18062 conftest$ac_exeext conftest.$ac_ext ;; 18063 esac 18064 fi 18065 18066 18067 CFLAGS="$xorg_testset_save_CFLAGS" 18068 18069 eval supported=\$$cacheid 18070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18071 printf "%s\n" "$supported" >&6; } 18072 if test "$supported" = "yes" ; then 18073 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18074 found="yes" 18075 fi 18076 fi 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 xorg_testset_save_CFLAGS="$CFLAGS" 18093 18094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18097 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18098 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18099 then : 18100 printf %s "(cached) " >&6 18101 else case e in #( 18102 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18103 /* end confdefs.h. */ 18104 int i; 18105 _ACEOF 18106 if ac_fn_c_try_compile "$LINENO" 18107 then : 18108 xorg_cv_cc_flag_unknown_warning_option=yes 18109 else case e in #( 18110 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18111 esac 18112 fi 18113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18114 esac 18115 fi 18116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18117 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18119 CFLAGS="$xorg_testset_save_CFLAGS" 18120 fi 18121 18122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18125 fi 18126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18128 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18129 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18130 then : 18131 printf %s "(cached) " >&6 18132 else case e in #( 18133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18134 /* end confdefs.h. */ 18135 int i; 18136 _ACEOF 18137 if ac_fn_c_try_compile "$LINENO" 18138 then : 18139 xorg_cv_cc_flag_unused_command_line_argument=yes 18140 else case e in #( 18141 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18142 esac 18143 fi 18144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18145 esac 18146 fi 18147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18148 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18150 CFLAGS="$xorg_testset_save_CFLAGS" 18151 fi 18152 18153 found="no" 18154 18155 if test $found = "no" ; then 18156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18158 fi 18159 18160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18162 fi 18163 18164 CFLAGS="$CFLAGS -Wnonnull" 18165 18166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18167 printf %s "checking if $CC supports -Wnonnull... " >&6; } 18168 cacheid=xorg_cv_cc_flag__Wnonnull 18169 if eval test \${$cacheid+y} 18170 then : 18171 printf %s "(cached) " >&6 18172 else case e in #( 18173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18174 /* end confdefs.h. */ 18175 int i; 18176 int 18177 main (void) 18178 { 18179 18180 ; 18181 return 0; 18182 } 18183 _ACEOF 18184 if ac_fn_c_try_link "$LINENO" 18185 then : 18186 eval $cacheid=yes 18187 else case e in #( 18188 e) eval $cacheid=no ;; 18189 esac 18190 fi 18191 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18192 conftest$ac_exeext conftest.$ac_ext ;; 18193 esac 18194 fi 18195 18196 18197 CFLAGS="$xorg_testset_save_CFLAGS" 18198 18199 eval supported=\$$cacheid 18200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18201 printf "%s\n" "$supported" >&6; } 18202 if test "$supported" = "yes" ; then 18203 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18204 found="yes" 18205 fi 18206 fi 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 xorg_testset_save_CFLAGS="$CFLAGS" 18223 18224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18227 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18228 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18229 then : 18230 printf %s "(cached) " >&6 18231 else case e in #( 18232 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18233 /* end confdefs.h. */ 18234 int i; 18235 _ACEOF 18236 if ac_fn_c_try_compile "$LINENO" 18237 then : 18238 xorg_cv_cc_flag_unknown_warning_option=yes 18239 else case e in #( 18240 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18241 esac 18242 fi 18243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18244 esac 18245 fi 18246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18247 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18249 CFLAGS="$xorg_testset_save_CFLAGS" 18250 fi 18251 18252 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18255 fi 18256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18258 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18259 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18260 then : 18261 printf %s "(cached) " >&6 18262 else case e in #( 18263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18264 /* end confdefs.h. */ 18265 int i; 18266 _ACEOF 18267 if ac_fn_c_try_compile "$LINENO" 18268 then : 18269 xorg_cv_cc_flag_unused_command_line_argument=yes 18270 else case e in #( 18271 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18272 esac 18273 fi 18274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18275 esac 18276 fi 18277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18278 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18280 CFLAGS="$xorg_testset_save_CFLAGS" 18281 fi 18282 18283 found="no" 18284 18285 if test $found = "no" ; then 18286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18288 fi 18289 18290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18292 fi 18293 18294 CFLAGS="$CFLAGS -Winit-self" 18295 18296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18297 printf %s "checking if $CC supports -Winit-self... " >&6; } 18298 cacheid=xorg_cv_cc_flag__Winit_self 18299 if eval test \${$cacheid+y} 18300 then : 18301 printf %s "(cached) " >&6 18302 else case e in #( 18303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18304 /* end confdefs.h. */ 18305 int i; 18306 int 18307 main (void) 18308 { 18309 18310 ; 18311 return 0; 18312 } 18313 _ACEOF 18314 if ac_fn_c_try_link "$LINENO" 18315 then : 18316 eval $cacheid=yes 18317 else case e in #( 18318 e) eval $cacheid=no ;; 18319 esac 18320 fi 18321 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18322 conftest$ac_exeext conftest.$ac_ext ;; 18323 esac 18324 fi 18325 18326 18327 CFLAGS="$xorg_testset_save_CFLAGS" 18328 18329 eval supported=\$$cacheid 18330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18331 printf "%s\n" "$supported" >&6; } 18332 if test "$supported" = "yes" ; then 18333 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18334 found="yes" 18335 fi 18336 fi 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 xorg_testset_save_CFLAGS="$CFLAGS" 18353 18354 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18357 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18358 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18359 then : 18360 printf %s "(cached) " >&6 18361 else case e in #( 18362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18363 /* end confdefs.h. */ 18364 int i; 18365 _ACEOF 18366 if ac_fn_c_try_compile "$LINENO" 18367 then : 18368 xorg_cv_cc_flag_unknown_warning_option=yes 18369 else case e in #( 18370 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18371 esac 18372 fi 18373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18374 esac 18375 fi 18376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18377 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18379 CFLAGS="$xorg_testset_save_CFLAGS" 18380 fi 18381 18382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18385 fi 18386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18388 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18389 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18390 then : 18391 printf %s "(cached) " >&6 18392 else case e in #( 18393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18394 /* end confdefs.h. */ 18395 int i; 18396 _ACEOF 18397 if ac_fn_c_try_compile "$LINENO" 18398 then : 18399 xorg_cv_cc_flag_unused_command_line_argument=yes 18400 else case e in #( 18401 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18402 esac 18403 fi 18404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18405 esac 18406 fi 18407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18408 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18410 CFLAGS="$xorg_testset_save_CFLAGS" 18411 fi 18412 18413 found="no" 18414 18415 if test $found = "no" ; then 18416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18418 fi 18419 18420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18422 fi 18423 18424 CFLAGS="$CFLAGS -Wmain" 18425 18426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18427 printf %s "checking if $CC supports -Wmain... " >&6; } 18428 cacheid=xorg_cv_cc_flag__Wmain 18429 if eval test \${$cacheid+y} 18430 then : 18431 printf %s "(cached) " >&6 18432 else case e in #( 18433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18434 /* end confdefs.h. */ 18435 int i; 18436 int 18437 main (void) 18438 { 18439 18440 ; 18441 return 0; 18442 } 18443 _ACEOF 18444 if ac_fn_c_try_link "$LINENO" 18445 then : 18446 eval $cacheid=yes 18447 else case e in #( 18448 e) eval $cacheid=no ;; 18449 esac 18450 fi 18451 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18452 conftest$ac_exeext conftest.$ac_ext ;; 18453 esac 18454 fi 18455 18456 18457 CFLAGS="$xorg_testset_save_CFLAGS" 18458 18459 eval supported=\$$cacheid 18460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18461 printf "%s\n" "$supported" >&6; } 18462 if test "$supported" = "yes" ; then 18463 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18464 found="yes" 18465 fi 18466 fi 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 xorg_testset_save_CFLAGS="$CFLAGS" 18483 18484 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18487 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18488 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18489 then : 18490 printf %s "(cached) " >&6 18491 else case e in #( 18492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18493 /* end confdefs.h. */ 18494 int i; 18495 _ACEOF 18496 if ac_fn_c_try_compile "$LINENO" 18497 then : 18498 xorg_cv_cc_flag_unknown_warning_option=yes 18499 else case e in #( 18500 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18501 esac 18502 fi 18503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18504 esac 18505 fi 18506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18507 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18509 CFLAGS="$xorg_testset_save_CFLAGS" 18510 fi 18511 18512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18515 fi 18516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18518 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18519 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18520 then : 18521 printf %s "(cached) " >&6 18522 else case e in #( 18523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18524 /* end confdefs.h. */ 18525 int i; 18526 _ACEOF 18527 if ac_fn_c_try_compile "$LINENO" 18528 then : 18529 xorg_cv_cc_flag_unused_command_line_argument=yes 18530 else case e in #( 18531 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18532 esac 18533 fi 18534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18535 esac 18536 fi 18537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18538 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18540 CFLAGS="$xorg_testset_save_CFLAGS" 18541 fi 18542 18543 found="no" 18544 18545 if test $found = "no" ; then 18546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18548 fi 18549 18550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18552 fi 18553 18554 CFLAGS="$CFLAGS -Wmissing-braces" 18555 18556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18557 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18558 cacheid=xorg_cv_cc_flag__Wmissing_braces 18559 if eval test \${$cacheid+y} 18560 then : 18561 printf %s "(cached) " >&6 18562 else case e in #( 18563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18564 /* end confdefs.h. */ 18565 int i; 18566 int 18567 main (void) 18568 { 18569 18570 ; 18571 return 0; 18572 } 18573 _ACEOF 18574 if ac_fn_c_try_link "$LINENO" 18575 then : 18576 eval $cacheid=yes 18577 else case e in #( 18578 e) eval $cacheid=no ;; 18579 esac 18580 fi 18581 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18582 conftest$ac_exeext conftest.$ac_ext ;; 18583 esac 18584 fi 18585 18586 18587 CFLAGS="$xorg_testset_save_CFLAGS" 18588 18589 eval supported=\$$cacheid 18590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18591 printf "%s\n" "$supported" >&6; } 18592 if test "$supported" = "yes" ; then 18593 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18594 found="yes" 18595 fi 18596 fi 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 xorg_testset_save_CFLAGS="$CFLAGS" 18613 18614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18617 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18618 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18619 then : 18620 printf %s "(cached) " >&6 18621 else case e in #( 18622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18623 /* end confdefs.h. */ 18624 int i; 18625 _ACEOF 18626 if ac_fn_c_try_compile "$LINENO" 18627 then : 18628 xorg_cv_cc_flag_unknown_warning_option=yes 18629 else case e in #( 18630 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18631 esac 18632 fi 18633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18634 esac 18635 fi 18636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18637 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18639 CFLAGS="$xorg_testset_save_CFLAGS" 18640 fi 18641 18642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18645 fi 18646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18648 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18649 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18650 then : 18651 printf %s "(cached) " >&6 18652 else case e in #( 18653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18654 /* end confdefs.h. */ 18655 int i; 18656 _ACEOF 18657 if ac_fn_c_try_compile "$LINENO" 18658 then : 18659 xorg_cv_cc_flag_unused_command_line_argument=yes 18660 else case e in #( 18661 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18662 esac 18663 fi 18664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18665 esac 18666 fi 18667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18668 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18670 CFLAGS="$xorg_testset_save_CFLAGS" 18671 fi 18672 18673 found="no" 18674 18675 if test $found = "no" ; then 18676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18678 fi 18679 18680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18682 fi 18683 18684 CFLAGS="$CFLAGS -Wsequence-point" 18685 18686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18687 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18688 cacheid=xorg_cv_cc_flag__Wsequence_point 18689 if eval test \${$cacheid+y} 18690 then : 18691 printf %s "(cached) " >&6 18692 else case e in #( 18693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18694 /* end confdefs.h. */ 18695 int i; 18696 int 18697 main (void) 18698 { 18699 18700 ; 18701 return 0; 18702 } 18703 _ACEOF 18704 if ac_fn_c_try_link "$LINENO" 18705 then : 18706 eval $cacheid=yes 18707 else case e in #( 18708 e) eval $cacheid=no ;; 18709 esac 18710 fi 18711 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18712 conftest$ac_exeext conftest.$ac_ext ;; 18713 esac 18714 fi 18715 18716 18717 CFLAGS="$xorg_testset_save_CFLAGS" 18718 18719 eval supported=\$$cacheid 18720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18721 printf "%s\n" "$supported" >&6; } 18722 if test "$supported" = "yes" ; then 18723 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18724 found="yes" 18725 fi 18726 fi 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 xorg_testset_save_CFLAGS="$CFLAGS" 18743 18744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18747 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18748 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18749 then : 18750 printf %s "(cached) " >&6 18751 else case e in #( 18752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18753 /* end confdefs.h. */ 18754 int i; 18755 _ACEOF 18756 if ac_fn_c_try_compile "$LINENO" 18757 then : 18758 xorg_cv_cc_flag_unknown_warning_option=yes 18759 else case e in #( 18760 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18761 esac 18762 fi 18763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18764 esac 18765 fi 18766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18767 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18769 CFLAGS="$xorg_testset_save_CFLAGS" 18770 fi 18771 18772 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18775 fi 18776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18778 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18779 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18780 then : 18781 printf %s "(cached) " >&6 18782 else case e in #( 18783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18784 /* end confdefs.h. */ 18785 int i; 18786 _ACEOF 18787 if ac_fn_c_try_compile "$LINENO" 18788 then : 18789 xorg_cv_cc_flag_unused_command_line_argument=yes 18790 else case e in #( 18791 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18792 esac 18793 fi 18794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18795 esac 18796 fi 18797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18798 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18800 CFLAGS="$xorg_testset_save_CFLAGS" 18801 fi 18802 18803 found="no" 18804 18805 if test $found = "no" ; then 18806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18808 fi 18809 18810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18812 fi 18813 18814 CFLAGS="$CFLAGS -Wreturn-type" 18815 18816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18817 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18818 cacheid=xorg_cv_cc_flag__Wreturn_type 18819 if eval test \${$cacheid+y} 18820 then : 18821 printf %s "(cached) " >&6 18822 else case e in #( 18823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18824 /* end confdefs.h. */ 18825 int i; 18826 int 18827 main (void) 18828 { 18829 18830 ; 18831 return 0; 18832 } 18833 _ACEOF 18834 if ac_fn_c_try_link "$LINENO" 18835 then : 18836 eval $cacheid=yes 18837 else case e in #( 18838 e) eval $cacheid=no ;; 18839 esac 18840 fi 18841 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18842 conftest$ac_exeext conftest.$ac_ext ;; 18843 esac 18844 fi 18845 18846 18847 CFLAGS="$xorg_testset_save_CFLAGS" 18848 18849 eval supported=\$$cacheid 18850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18851 printf "%s\n" "$supported" >&6; } 18852 if test "$supported" = "yes" ; then 18853 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18854 found="yes" 18855 fi 18856 fi 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 xorg_testset_save_CFLAGS="$CFLAGS" 18873 18874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18877 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18878 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18879 then : 18880 printf %s "(cached) " >&6 18881 else case e in #( 18882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18883 /* end confdefs.h. */ 18884 int i; 18885 _ACEOF 18886 if ac_fn_c_try_compile "$LINENO" 18887 then : 18888 xorg_cv_cc_flag_unknown_warning_option=yes 18889 else case e in #( 18890 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18891 esac 18892 fi 18893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18894 esac 18895 fi 18896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18897 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18899 CFLAGS="$xorg_testset_save_CFLAGS" 18900 fi 18901 18902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18905 fi 18906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18908 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18909 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18910 then : 18911 printf %s "(cached) " >&6 18912 else case e in #( 18913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18914 /* end confdefs.h. */ 18915 int i; 18916 _ACEOF 18917 if ac_fn_c_try_compile "$LINENO" 18918 then : 18919 xorg_cv_cc_flag_unused_command_line_argument=yes 18920 else case e in #( 18921 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18922 esac 18923 fi 18924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18925 esac 18926 fi 18927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18928 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18930 CFLAGS="$xorg_testset_save_CFLAGS" 18931 fi 18932 18933 found="no" 18934 18935 if test $found = "no" ; then 18936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18938 fi 18939 18940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18942 fi 18943 18944 CFLAGS="$CFLAGS -Wtrigraphs" 18945 18946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18947 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18948 cacheid=xorg_cv_cc_flag__Wtrigraphs 18949 if eval test \${$cacheid+y} 18950 then : 18951 printf %s "(cached) " >&6 18952 else case e in #( 18953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18954 /* end confdefs.h. */ 18955 int i; 18956 int 18957 main (void) 18958 { 18959 18960 ; 18961 return 0; 18962 } 18963 _ACEOF 18964 if ac_fn_c_try_link "$LINENO" 18965 then : 18966 eval $cacheid=yes 18967 else case e in #( 18968 e) eval $cacheid=no ;; 18969 esac 18970 fi 18971 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18972 conftest$ac_exeext conftest.$ac_ext ;; 18973 esac 18974 fi 18975 18976 18977 CFLAGS="$xorg_testset_save_CFLAGS" 18978 18979 eval supported=\$$cacheid 18980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18981 printf "%s\n" "$supported" >&6; } 18982 if test "$supported" = "yes" ; then 18983 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18984 found="yes" 18985 fi 18986 fi 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 xorg_testset_save_CFLAGS="$CFLAGS" 19003 19004 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19007 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19008 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19009 then : 19010 printf %s "(cached) " >&6 19011 else case e in #( 19012 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19013 /* end confdefs.h. */ 19014 int i; 19015 _ACEOF 19016 if ac_fn_c_try_compile "$LINENO" 19017 then : 19018 xorg_cv_cc_flag_unknown_warning_option=yes 19019 else case e in #( 19020 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19021 esac 19022 fi 19023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19024 esac 19025 fi 19026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19027 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19029 CFLAGS="$xorg_testset_save_CFLAGS" 19030 fi 19031 19032 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19035 fi 19036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19038 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19039 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19040 then : 19041 printf %s "(cached) " >&6 19042 else case e in #( 19043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19044 /* end confdefs.h. */ 19045 int i; 19046 _ACEOF 19047 if ac_fn_c_try_compile "$LINENO" 19048 then : 19049 xorg_cv_cc_flag_unused_command_line_argument=yes 19050 else case e in #( 19051 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19052 esac 19053 fi 19054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19055 esac 19056 fi 19057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19058 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19060 CFLAGS="$xorg_testset_save_CFLAGS" 19061 fi 19062 19063 found="no" 19064 19065 if test $found = "no" ; then 19066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19068 fi 19069 19070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19072 fi 19073 19074 CFLAGS="$CFLAGS -Warray-bounds" 19075 19076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19077 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19078 cacheid=xorg_cv_cc_flag__Warray_bounds 19079 if eval test \${$cacheid+y} 19080 then : 19081 printf %s "(cached) " >&6 19082 else case e in #( 19083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19084 /* end confdefs.h. */ 19085 int i; 19086 int 19087 main (void) 19088 { 19089 19090 ; 19091 return 0; 19092 } 19093 _ACEOF 19094 if ac_fn_c_try_link "$LINENO" 19095 then : 19096 eval $cacheid=yes 19097 else case e in #( 19098 e) eval $cacheid=no ;; 19099 esac 19100 fi 19101 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19102 conftest$ac_exeext conftest.$ac_ext ;; 19103 esac 19104 fi 19105 19106 19107 CFLAGS="$xorg_testset_save_CFLAGS" 19108 19109 eval supported=\$$cacheid 19110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19111 printf "%s\n" "$supported" >&6; } 19112 if test "$supported" = "yes" ; then 19113 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19114 found="yes" 19115 fi 19116 fi 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 xorg_testset_save_CFLAGS="$CFLAGS" 19133 19134 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19137 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19138 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19139 then : 19140 printf %s "(cached) " >&6 19141 else case e in #( 19142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19143 /* end confdefs.h. */ 19144 int i; 19145 _ACEOF 19146 if ac_fn_c_try_compile "$LINENO" 19147 then : 19148 xorg_cv_cc_flag_unknown_warning_option=yes 19149 else case e in #( 19150 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19151 esac 19152 fi 19153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19154 esac 19155 fi 19156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19157 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19159 CFLAGS="$xorg_testset_save_CFLAGS" 19160 fi 19161 19162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19165 fi 19166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19168 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19169 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19170 then : 19171 printf %s "(cached) " >&6 19172 else case e in #( 19173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19174 /* end confdefs.h. */ 19175 int i; 19176 _ACEOF 19177 if ac_fn_c_try_compile "$LINENO" 19178 then : 19179 xorg_cv_cc_flag_unused_command_line_argument=yes 19180 else case e in #( 19181 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19182 esac 19183 fi 19184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19185 esac 19186 fi 19187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19188 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19190 CFLAGS="$xorg_testset_save_CFLAGS" 19191 fi 19192 19193 found="no" 19194 19195 if test $found = "no" ; then 19196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19198 fi 19199 19200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19202 fi 19203 19204 CFLAGS="$CFLAGS -Wwrite-strings" 19205 19206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19207 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19208 cacheid=xorg_cv_cc_flag__Wwrite_strings 19209 if eval test \${$cacheid+y} 19210 then : 19211 printf %s "(cached) " >&6 19212 else case e in #( 19213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19214 /* end confdefs.h. */ 19215 int i; 19216 int 19217 main (void) 19218 { 19219 19220 ; 19221 return 0; 19222 } 19223 _ACEOF 19224 if ac_fn_c_try_link "$LINENO" 19225 then : 19226 eval $cacheid=yes 19227 else case e in #( 19228 e) eval $cacheid=no ;; 19229 esac 19230 fi 19231 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19232 conftest$ac_exeext conftest.$ac_ext ;; 19233 esac 19234 fi 19235 19236 19237 CFLAGS="$xorg_testset_save_CFLAGS" 19238 19239 eval supported=\$$cacheid 19240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19241 printf "%s\n" "$supported" >&6; } 19242 if test "$supported" = "yes" ; then 19243 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19244 found="yes" 19245 fi 19246 fi 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 xorg_testset_save_CFLAGS="$CFLAGS" 19263 19264 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19267 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19268 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19269 then : 19270 printf %s "(cached) " >&6 19271 else case e in #( 19272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19273 /* end confdefs.h. */ 19274 int i; 19275 _ACEOF 19276 if ac_fn_c_try_compile "$LINENO" 19277 then : 19278 xorg_cv_cc_flag_unknown_warning_option=yes 19279 else case e in #( 19280 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19281 esac 19282 fi 19283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19284 esac 19285 fi 19286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19287 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19289 CFLAGS="$xorg_testset_save_CFLAGS" 19290 fi 19291 19292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19295 fi 19296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19298 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19299 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19300 then : 19301 printf %s "(cached) " >&6 19302 else case e in #( 19303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19304 /* end confdefs.h. */ 19305 int i; 19306 _ACEOF 19307 if ac_fn_c_try_compile "$LINENO" 19308 then : 19309 xorg_cv_cc_flag_unused_command_line_argument=yes 19310 else case e in #( 19311 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19312 esac 19313 fi 19314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19315 esac 19316 fi 19317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19318 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19320 CFLAGS="$xorg_testset_save_CFLAGS" 19321 fi 19322 19323 found="no" 19324 19325 if test $found = "no" ; then 19326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19328 fi 19329 19330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19332 fi 19333 19334 CFLAGS="$CFLAGS -Waddress" 19335 19336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19337 printf %s "checking if $CC supports -Waddress... " >&6; } 19338 cacheid=xorg_cv_cc_flag__Waddress 19339 if eval test \${$cacheid+y} 19340 then : 19341 printf %s "(cached) " >&6 19342 else case e in #( 19343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19344 /* end confdefs.h. */ 19345 int i; 19346 int 19347 main (void) 19348 { 19349 19350 ; 19351 return 0; 19352 } 19353 _ACEOF 19354 if ac_fn_c_try_link "$LINENO" 19355 then : 19356 eval $cacheid=yes 19357 else case e in #( 19358 e) eval $cacheid=no ;; 19359 esac 19360 fi 19361 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19362 conftest$ac_exeext conftest.$ac_ext ;; 19363 esac 19364 fi 19365 19366 19367 CFLAGS="$xorg_testset_save_CFLAGS" 19368 19369 eval supported=\$$cacheid 19370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19371 printf "%s\n" "$supported" >&6; } 19372 if test "$supported" = "yes" ; then 19373 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19374 found="yes" 19375 fi 19376 fi 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 xorg_testset_save_CFLAGS="$CFLAGS" 19393 19394 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19397 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19398 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19399 then : 19400 printf %s "(cached) " >&6 19401 else case e in #( 19402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19403 /* end confdefs.h. */ 19404 int i; 19405 _ACEOF 19406 if ac_fn_c_try_compile "$LINENO" 19407 then : 19408 xorg_cv_cc_flag_unknown_warning_option=yes 19409 else case e in #( 19410 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19411 esac 19412 fi 19413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19414 esac 19415 fi 19416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19417 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19419 CFLAGS="$xorg_testset_save_CFLAGS" 19420 fi 19421 19422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19425 fi 19426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19428 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19429 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19430 then : 19431 printf %s "(cached) " >&6 19432 else case e in #( 19433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19434 /* end confdefs.h. */ 19435 int i; 19436 _ACEOF 19437 if ac_fn_c_try_compile "$LINENO" 19438 then : 19439 xorg_cv_cc_flag_unused_command_line_argument=yes 19440 else case e in #( 19441 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19442 esac 19443 fi 19444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19445 esac 19446 fi 19447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19448 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19450 CFLAGS="$xorg_testset_save_CFLAGS" 19451 fi 19452 19453 found="no" 19454 19455 if test $found = "no" ; then 19456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19458 fi 19459 19460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19462 fi 19463 19464 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19465 19466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19467 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19468 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19469 if eval test \${$cacheid+y} 19470 then : 19471 printf %s "(cached) " >&6 19472 else case e in #( 19473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19474 /* end confdefs.h. */ 19475 int i; 19476 int 19477 main (void) 19478 { 19479 19480 ; 19481 return 0; 19482 } 19483 _ACEOF 19484 if ac_fn_c_try_link "$LINENO" 19485 then : 19486 eval $cacheid=yes 19487 else case e in #( 19488 e) eval $cacheid=no ;; 19489 esac 19490 fi 19491 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19492 conftest$ac_exeext conftest.$ac_ext ;; 19493 esac 19494 fi 19495 19496 19497 CFLAGS="$xorg_testset_save_CFLAGS" 19498 19499 eval supported=\$$cacheid 19500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19501 printf "%s\n" "$supported" >&6; } 19502 if test "$supported" = "yes" ; then 19503 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19504 found="yes" 19505 fi 19506 fi 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 xorg_testset_save_CFLAGS="$CFLAGS" 19523 19524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19527 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19528 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19529 then : 19530 printf %s "(cached) " >&6 19531 else case e in #( 19532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19533 /* end confdefs.h. */ 19534 int i; 19535 _ACEOF 19536 if ac_fn_c_try_compile "$LINENO" 19537 then : 19538 xorg_cv_cc_flag_unknown_warning_option=yes 19539 else case e in #( 19540 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19541 esac 19542 fi 19543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19544 esac 19545 fi 19546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19547 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19549 CFLAGS="$xorg_testset_save_CFLAGS" 19550 fi 19551 19552 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19555 fi 19556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19558 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19559 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19560 then : 19561 printf %s "(cached) " >&6 19562 else case e in #( 19563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19564 /* end confdefs.h. */ 19565 int i; 19566 _ACEOF 19567 if ac_fn_c_try_compile "$LINENO" 19568 then : 19569 xorg_cv_cc_flag_unused_command_line_argument=yes 19570 else case e in #( 19571 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19572 esac 19573 fi 19574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19575 esac 19576 fi 19577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19578 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19580 CFLAGS="$xorg_testset_save_CFLAGS" 19581 fi 19582 19583 found="no" 19584 19585 if test $found = "no" ; then 19586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19588 fi 19589 19590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19592 fi 19593 19594 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19595 19596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19597 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19598 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19599 if eval test \${$cacheid+y} 19600 then : 19601 printf %s "(cached) " >&6 19602 else case e in #( 19603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19604 /* end confdefs.h. */ 19605 int i; 19606 int 19607 main (void) 19608 { 19609 19610 ; 19611 return 0; 19612 } 19613 _ACEOF 19614 if ac_fn_c_try_link "$LINENO" 19615 then : 19616 eval $cacheid=yes 19617 else case e in #( 19618 e) eval $cacheid=no ;; 19619 esac 19620 fi 19621 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19622 conftest$ac_exeext conftest.$ac_ext ;; 19623 esac 19624 fi 19625 19626 19627 CFLAGS="$xorg_testset_save_CFLAGS" 19628 19629 eval supported=\$$cacheid 19630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19631 printf "%s\n" "$supported" >&6; } 19632 if test "$supported" = "yes" ; then 19633 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19634 found="yes" 19635 fi 19636 fi 19637 19638 19639 fi 19640 19641 19642 19643 19644 19645 19646 19647 CWARNFLAGS="$BASE_CFLAGS" 19648 if test "x$GCC" = xyes ; then 19649 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19650 fi 19651 19652 19653 19654 19655 19656 19657 19658 19659 # Check whether --enable-strict-compilation was given. 19660 if test ${enable_strict_compilation+y} 19661 then : 19662 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19663 else case e in #( 19664 e) STRICT_COMPILE=no ;; 19665 esac 19666 fi 19667 19668 19669 19670 19671 19672 19673 STRICT_CFLAGS="" 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 xorg_testset_save_CFLAGS="$CFLAGS" 19688 19689 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19692 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19693 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19694 then : 19695 printf %s "(cached) " >&6 19696 else case e in #( 19697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19698 /* end confdefs.h. */ 19699 int i; 19700 _ACEOF 19701 if ac_fn_c_try_compile "$LINENO" 19702 then : 19703 xorg_cv_cc_flag_unknown_warning_option=yes 19704 else case e in #( 19705 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19706 esac 19707 fi 19708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19709 esac 19710 fi 19711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19712 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19714 CFLAGS="$xorg_testset_save_CFLAGS" 19715 fi 19716 19717 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19720 fi 19721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19723 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19724 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19725 then : 19726 printf %s "(cached) " >&6 19727 else case e in #( 19728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19729 /* end confdefs.h. */ 19730 int i; 19731 _ACEOF 19732 if ac_fn_c_try_compile "$LINENO" 19733 then : 19734 xorg_cv_cc_flag_unused_command_line_argument=yes 19735 else case e in #( 19736 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19737 esac 19738 fi 19739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19740 esac 19741 fi 19742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19743 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19745 CFLAGS="$xorg_testset_save_CFLAGS" 19746 fi 19747 19748 found="no" 19749 19750 if test $found = "no" ; then 19751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19753 fi 19754 19755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19757 fi 19758 19759 CFLAGS="$CFLAGS -pedantic" 19760 19761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19762 printf %s "checking if $CC supports -pedantic... " >&6; } 19763 cacheid=xorg_cv_cc_flag__pedantic 19764 if eval test \${$cacheid+y} 19765 then : 19766 printf %s "(cached) " >&6 19767 else case e in #( 19768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19769 /* end confdefs.h. */ 19770 int i; 19771 int 19772 main (void) 19773 { 19774 19775 ; 19776 return 0; 19777 } 19778 _ACEOF 19779 if ac_fn_c_try_link "$LINENO" 19780 then : 19781 eval $cacheid=yes 19782 else case e in #( 19783 e) eval $cacheid=no ;; 19784 esac 19785 fi 19786 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19787 conftest$ac_exeext conftest.$ac_ext ;; 19788 esac 19789 fi 19790 19791 19792 CFLAGS="$xorg_testset_save_CFLAGS" 19793 19794 eval supported=\$$cacheid 19795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19796 printf "%s\n" "$supported" >&6; } 19797 if test "$supported" = "yes" ; then 19798 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19799 found="yes" 19800 fi 19801 fi 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 xorg_testset_save_CFLAGS="$CFLAGS" 19818 19819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19822 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19823 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19824 then : 19825 printf %s "(cached) " >&6 19826 else case e in #( 19827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19828 /* end confdefs.h. */ 19829 int i; 19830 _ACEOF 19831 if ac_fn_c_try_compile "$LINENO" 19832 then : 19833 xorg_cv_cc_flag_unknown_warning_option=yes 19834 else case e in #( 19835 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19836 esac 19837 fi 19838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19839 esac 19840 fi 19841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19842 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19843 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19844 CFLAGS="$xorg_testset_save_CFLAGS" 19845 fi 19846 19847 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19850 fi 19851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19853 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19854 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19855 then : 19856 printf %s "(cached) " >&6 19857 else case e in #( 19858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19859 /* end confdefs.h. */ 19860 int i; 19861 _ACEOF 19862 if ac_fn_c_try_compile "$LINENO" 19863 then : 19864 xorg_cv_cc_flag_unused_command_line_argument=yes 19865 else case e in #( 19866 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19867 esac 19868 fi 19869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19870 esac 19871 fi 19872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19873 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19875 CFLAGS="$xorg_testset_save_CFLAGS" 19876 fi 19877 19878 found="no" 19879 19880 if test $found = "no" ; then 19881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19883 fi 19884 19885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19887 fi 19888 19889 CFLAGS="$CFLAGS -Werror" 19890 19891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19892 printf %s "checking if $CC supports -Werror... " >&6; } 19893 cacheid=xorg_cv_cc_flag__Werror 19894 if eval test \${$cacheid+y} 19895 then : 19896 printf %s "(cached) " >&6 19897 else case e in #( 19898 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19899 /* end confdefs.h. */ 19900 int i; 19901 int 19902 main (void) 19903 { 19904 19905 ; 19906 return 0; 19907 } 19908 _ACEOF 19909 if ac_fn_c_try_link "$LINENO" 19910 then : 19911 eval $cacheid=yes 19912 else case e in #( 19913 e) eval $cacheid=no ;; 19914 esac 19915 fi 19916 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19917 conftest$ac_exeext conftest.$ac_ext ;; 19918 esac 19919 fi 19920 19921 19922 CFLAGS="$xorg_testset_save_CFLAGS" 19923 19924 eval supported=\$$cacheid 19925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19926 printf "%s\n" "$supported" >&6; } 19927 if test "$supported" = "yes" ; then 19928 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19929 found="yes" 19930 fi 19931 fi 19932 19933 if test $found = "no" ; then 19934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19936 fi 19937 19938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19940 fi 19941 19942 CFLAGS="$CFLAGS -errwarn" 19943 19944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19945 printf %s "checking if $CC supports -errwarn... " >&6; } 19946 cacheid=xorg_cv_cc_flag__errwarn 19947 if eval test \${$cacheid+y} 19948 then : 19949 printf %s "(cached) " >&6 19950 else case e in #( 19951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19952 /* end confdefs.h. */ 19953 int i; 19954 int 19955 main (void) 19956 { 19957 19958 ; 19959 return 0; 19960 } 19961 _ACEOF 19962 if ac_fn_c_try_link "$LINENO" 19963 then : 19964 eval $cacheid=yes 19965 else case e in #( 19966 e) eval $cacheid=no ;; 19967 esac 19968 fi 19969 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19970 conftest$ac_exeext conftest.$ac_ext ;; 19971 esac 19972 fi 19973 19974 19975 CFLAGS="$xorg_testset_save_CFLAGS" 19976 19977 eval supported=\$$cacheid 19978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19979 printf "%s\n" "$supported" >&6; } 19980 if test "$supported" = "yes" ; then 19981 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19982 found="yes" 19983 fi 19984 fi 19985 19986 19987 19988 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19989 # activate it with -Werror, so we add it here explicitly. 19990 19991 19992 19993 19994 19995 19996 19997 19998 19999 20000 20001 20002 20003 xorg_testset_save_CFLAGS="$CFLAGS" 20004 20005 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20008 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20009 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20010 then : 20011 printf %s "(cached) " >&6 20012 else case e in #( 20013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20014 /* end confdefs.h. */ 20015 int i; 20016 _ACEOF 20017 if ac_fn_c_try_compile "$LINENO" 20018 then : 20019 xorg_cv_cc_flag_unknown_warning_option=yes 20020 else case e in #( 20021 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20022 esac 20023 fi 20024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20025 esac 20026 fi 20027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20028 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20030 CFLAGS="$xorg_testset_save_CFLAGS" 20031 fi 20032 20033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20036 fi 20037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20039 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20040 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20041 then : 20042 printf %s "(cached) " >&6 20043 else case e in #( 20044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20045 /* end confdefs.h. */ 20046 int i; 20047 _ACEOF 20048 if ac_fn_c_try_compile "$LINENO" 20049 then : 20050 xorg_cv_cc_flag_unused_command_line_argument=yes 20051 else case e in #( 20052 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20053 esac 20054 fi 20055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20056 esac 20057 fi 20058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20059 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20061 CFLAGS="$xorg_testset_save_CFLAGS" 20062 fi 20063 20064 found="no" 20065 20066 if test $found = "no" ; then 20067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20069 fi 20070 20071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20073 fi 20074 20075 CFLAGS="$CFLAGS -Werror=attributes" 20076 20077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20078 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20079 cacheid=xorg_cv_cc_flag__Werror_attributes 20080 if eval test \${$cacheid+y} 20081 then : 20082 printf %s "(cached) " >&6 20083 else case e in #( 20084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20085 /* end confdefs.h. */ 20086 int i; 20087 int 20088 main (void) 20089 { 20090 20091 ; 20092 return 0; 20093 } 20094 _ACEOF 20095 if ac_fn_c_try_link "$LINENO" 20096 then : 20097 eval $cacheid=yes 20098 else case e in #( 20099 e) eval $cacheid=no ;; 20100 esac 20101 fi 20102 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20103 conftest$ac_exeext conftest.$ac_ext ;; 20104 esac 20105 fi 20106 20107 20108 CFLAGS="$xorg_testset_save_CFLAGS" 20109 20110 eval supported=\$$cacheid 20111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20112 printf "%s\n" "$supported" >&6; } 20113 if test "$supported" = "yes" ; then 20114 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20115 found="yes" 20116 fi 20117 fi 20118 20119 20120 20121 if test "x$STRICT_COMPILE" = "xyes"; then 20122 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20123 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20124 fi 20125 20126 20127 20128 20129 20130 20131 20132 20133 cat >>confdefs.h <<_ACEOF 20134 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20135 _ACEOF 20136 20137 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20138 if test "x$PVM" = "x"; then 20139 PVM="0" 20140 fi 20141 20142 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20143 20144 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20145 if test "x$PVP" = "x"; then 20146 PVP="0" 20147 fi 20148 20149 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20150 20151 20152 20153 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20154 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20155 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20156 touch \$(top_srcdir)/ChangeLog; \ 20157 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20158 20159 20160 20161 20162 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20163 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20164 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20165 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20166 touch \$(top_srcdir)/INSTALL; \ 20167 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20168 20169 20170 20171 20172 20173 20174 case $host_os in 20175 solaris*) 20176 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20177 # check for a man page file found in later versions that use 20178 # traditional section numbers instead 20179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20180 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20181 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20182 then : 20183 printf %s "(cached) " >&6 20184 else case e in #( 20185 e) test "$cross_compiling" = yes && 20186 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20187 if test -r "/usr/share/man/man7/attributes.7"; then 20188 ac_cv_file__usr_share_man_man7_attributes_7=yes 20189 else 20190 ac_cv_file__usr_share_man_man7_attributes_7=no 20191 fi ;; 20192 esac 20193 fi 20194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20195 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20196 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20197 then : 20198 SYSV_MAN_SECTIONS=false 20199 else case e in #( 20200 e) SYSV_MAN_SECTIONS=true ;; 20201 esac 20202 fi 20203 20204 ;; 20205 *) SYSV_MAN_SECTIONS=false ;; 20206 esac 20207 20208 if test x$APP_MAN_SUFFIX = x ; then 20209 APP_MAN_SUFFIX=1 20210 fi 20211 if test x$APP_MAN_DIR = x ; then 20212 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20213 fi 20214 20215 if test x$LIB_MAN_SUFFIX = x ; then 20216 LIB_MAN_SUFFIX=3 20217 fi 20218 if test x$LIB_MAN_DIR = x ; then 20219 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20220 fi 20221 20222 if test x$FILE_MAN_SUFFIX = x ; then 20223 case $SYSV_MAN_SECTIONS in 20224 true) FILE_MAN_SUFFIX=4 ;; 20225 *) FILE_MAN_SUFFIX=5 ;; 20226 esac 20227 fi 20228 if test x$FILE_MAN_DIR = x ; then 20229 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20230 fi 20231 20232 if test x$MISC_MAN_SUFFIX = x ; then 20233 case $SYSV_MAN_SECTIONS in 20234 true) MISC_MAN_SUFFIX=5 ;; 20235 *) MISC_MAN_SUFFIX=7 ;; 20236 esac 20237 fi 20238 if test x$MISC_MAN_DIR = x ; then 20239 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20240 fi 20241 20242 if test x$DRIVER_MAN_SUFFIX = x ; then 20243 case $SYSV_MAN_SECTIONS in 20244 true) DRIVER_MAN_SUFFIX=7 ;; 20245 *) DRIVER_MAN_SUFFIX=4 ;; 20246 esac 20247 fi 20248 if test x$DRIVER_MAN_DIR = x ; then 20249 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20250 fi 20251 20252 if test x$ADMIN_MAN_SUFFIX = x ; then 20253 case $SYSV_MAN_SECTIONS in 20254 true) ADMIN_MAN_SUFFIX=1m ;; 20255 *) ADMIN_MAN_SUFFIX=8 ;; 20256 esac 20257 fi 20258 if test x$ADMIN_MAN_DIR = x ; then 20259 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20260 fi 20261 20262 20263 20264 20265 20266 20267 20268 20269 20270 20271 20272 20273 20274 20275 20276 XORG_MAN_PAGE="X Version 11" 20277 20278 MAN_SUBSTS="\ 20279 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20280 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20281 -e 's|__xservername__|Xorg|g' \ 20282 -e 's|__xconfigfile__|xorg.conf|g' \ 20283 -e 's|__projectroot__|\$(prefix)|g' \ 20284 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20285 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20286 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20287 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20288 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20289 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20290 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20291 20292 20293 20294 20295 AM_DEFAULT_VERBOSITY=0 20296 20297 20298 20299 # Check whether --enable-malloc0returnsnull was given. 20300 if test ${enable_malloc0returnsnull+y} 20301 then : 20302 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 20303 else case e in #( 20304 e) MALLOC_ZERO_RETURNS_NULL=yes ;; 20305 esac 20306 fi 20307 20308 20309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to act as if malloc(0) can return NULL" >&5 20310 printf %s "checking whether to act as if malloc(0) can return NULL... " >&6; } 20311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 20312 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 20313 20314 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 20315 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 20316 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 20317 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 20318 else 20319 MALLOC_ZERO_CFLAGS="" 20320 XMALLOC_ZERO_CFLAGS="" 20321 XTMALLOC_ZERO_CFLAGS="" 20322 fi 20323 20324 20325 20326 20327 20328 20329 # Obtain compiler/linker options for dependencies 20330 20331 pkg_failed=no 20332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XXF86VM" >&5 20333 printf %s "checking for XXF86VM... " >&6; } 20334 20335 if test -n "$XXF86VM_CFLAGS"; then 20336 pkg_cv_XXF86VM_CFLAGS="$XXF86VM_CFLAGS" 20337 elif test -n "$PKG_CONFIG"; then 20338 if test -n "$PKG_CONFIG" && \ 20339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1\""; } >&5 20340 ($PKG_CONFIG --exists --print-errors "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1") 2>&5 20341 ac_status=$? 20342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20343 test $ac_status = 0; }; then 20344 pkg_cv_XXF86VM_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>/dev/null` 20345 test "x$?" != "x0" && pkg_failed=yes 20346 else 20347 pkg_failed=yes 20348 fi 20349 else 20350 pkg_failed=untried 20351 fi 20352 if test -n "$XXF86VM_LIBS"; then 20353 pkg_cv_XXF86VM_LIBS="$XXF86VM_LIBS" 20354 elif test -n "$PKG_CONFIG"; then 20355 if test -n "$PKG_CONFIG" && \ 20356 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1\""; } >&5 20357 ($PKG_CONFIG --exists --print-errors "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1") 2>&5 20358 ac_status=$? 20359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20360 test $ac_status = 0; }; then 20361 pkg_cv_XXF86VM_LIBS=`$PKG_CONFIG --libs "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>/dev/null` 20362 test "x$?" != "x0" && pkg_failed=yes 20363 else 20364 pkg_failed=yes 20365 fi 20366 else 20367 pkg_failed=untried 20368 fi 20369 20370 20371 20372 if test $pkg_failed = yes; then 20373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20374 printf "%s\n" "no" >&6; } 20375 20376 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20377 _pkg_short_errors_supported=yes 20378 else 20379 _pkg_short_errors_supported=no 20380 fi 20381 if test $_pkg_short_errors_supported = yes; then 20382 XXF86VM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>&1` 20383 else 20384 XXF86VM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1" 2>&1` 20385 fi 20386 # Put the nasty error message in config.log where it belongs 20387 echo "$XXF86VM_PKG_ERRORS" >&5 20388 20389 as_fn_error $? "Package requirements (xproto x11 >= 1.6 xextproto xext xf86vidmodeproto >= 2.2.99.1) were not met: 20390 20391 $XXF86VM_PKG_ERRORS 20392 20393 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20394 installed software in a non-standard prefix. 20395 20396 Alternatively, you may set the environment variables XXF86VM_CFLAGS 20397 and XXF86VM_LIBS to avoid the need to call pkg-config. 20398 See the pkg-config man page for more details." "$LINENO" 5 20399 elif test $pkg_failed = untried; then 20400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20401 printf "%s\n" "no" >&6; } 20402 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20403 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20404 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20405 is in your PATH or set the PKG_CONFIG environment variable to the full 20406 path to pkg-config. 20407 20408 Alternatively, you may set the environment variables XXF86VM_CFLAGS 20409 and XXF86VM_LIBS to avoid the need to call pkg-config. 20410 See the pkg-config man page for more details. 20411 20412 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20413 See 'config.log' for more details" "$LINENO" 5; } 20414 else 20415 XXF86VM_CFLAGS=$pkg_cv_XXF86VM_CFLAGS 20416 XXF86VM_LIBS=$pkg_cv_XXF86VM_LIBS 20417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20418 printf "%s\n" "yes" >&6; } 20419 20420 fi 20421 20422 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xxf86vm.pc" 20423 20424 cat >confcache <<\_ACEOF 20425 # This file is a shell script that caches the results of configure 20426 # tests run on this system so they can be shared between configure 20427 # scripts and configure runs, see configure's option --config-cache. 20428 # It is not useful on other systems. If it contains results you don't 20429 # want to keep, you may remove or edit it. 20430 # 20431 # config.status only pays attention to the cache file if you give it 20432 # the --recheck option to rerun configure. 20433 # 20434 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 20435 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 20436 # following values. 20437 20438 _ACEOF 20439 20440 # The following way of writing the cache mishandles newlines in values, 20441 # but we know of no workaround that is simple, portable, and efficient. 20442 # So, we kill variables containing newlines. 20443 # Ultrix sh set writes to stderr and can't be redirected directly, 20444 # and sets the high bit in the cache file unless we assign to the vars. 20445 ( 20446 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20447 eval ac_val=\$$ac_var 20448 case $ac_val in #( 20449 *${as_nl}*) 20450 case $ac_var in #( 20451 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20452 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20453 esac 20454 case $ac_var in #( 20455 _ | IFS | as_nl) ;; #( 20456 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20457 *) { eval $ac_var=; unset $ac_var;} ;; 20458 esac ;; 20459 esac 20460 done 20461 20462 (set) 2>&1 | 20463 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20464 *${as_nl}ac_space=\ *) 20465 # 'set' does not quote correctly, so add quotes: double-quote 20466 # substitution turns \\\\ into \\, and sed turns \\ into \. 20467 sed -n \ 20468 "s/'/'\\\\''/g; 20469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20470 ;; #( 20471 *) 20472 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20474 ;; 20475 esac | 20476 sort 20477 ) | 20478 sed ' 20479 /^ac_cv_env_/b end 20480 t clear 20481 :clear 20482 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20483 t end 20484 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20485 :end' >>confcache 20486 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20487 if test -w "$cache_file"; then 20488 if test "x$cache_file" != "x/dev/null"; then 20489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20490 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20491 if test ! -f "$cache_file" || test -h "$cache_file"; then 20492 cat confcache >"$cache_file" 20493 else 20494 case $cache_file in #( 20495 */* | ?:*) 20496 mv -f confcache "$cache_file"$$ && 20497 mv -f "$cache_file"$$ "$cache_file" ;; #( 20498 *) 20499 mv -f confcache "$cache_file" ;; 20500 esac 20501 fi 20502 fi 20503 else 20504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20505 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20506 fi 20507 fi 20508 rm -f confcache 20509 20510 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20511 # Let make expand exec_prefix. 20512 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20513 20514 DEFS=-DHAVE_CONFIG_H 20515 20516 ac_libobjs= 20517 ac_ltlibobjs= 20518 U= 20519 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20520 # 1. Remove the extension, and $U if already installed. 20521 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20522 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20523 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20524 # will be set to the directory where LIBOBJS objects are built. 20525 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20526 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20527 done 20528 LIBOBJS=$ac_libobjs 20529 20530 LTLIBOBJS=$ac_ltlibobjs 20531 20532 20533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20534 printf %s "checking that generated files are newer than configure... " >&6; } 20535 if test -n "$am_sleep_pid"; then 20536 # Hide warnings about reused PIDs. 20537 wait $am_sleep_pid 2>/dev/null 20538 fi 20539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20540 printf "%s\n" "done" >&6; } 20541 case $enable_silent_rules in # ((( 20542 yes) AM_DEFAULT_VERBOSITY=0;; 20543 no) AM_DEFAULT_VERBOSITY=1;; 20544 esac 20545 if test $am_cv_make_support_nested_variables = yes; then 20546 AM_V='$(V)' 20547 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 20548 else 20549 AM_V=$AM_DEFAULT_VERBOSITY 20550 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 20551 fi 20552 20553 if test -n "$EXEEXT"; then 20554 am__EXEEXT_TRUE= 20555 am__EXEEXT_FALSE='#' 20556 else 20557 am__EXEEXT_TRUE='#' 20558 am__EXEEXT_FALSE= 20559 fi 20560 20561 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20562 as_fn_error $? "conditional \"AMDEP\" was never defined. 20563 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20564 fi 20565 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20566 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20567 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20568 fi 20569 20570 : "${CONFIG_STATUS=./config.status}" 20571 ac_write_fail=0 20572 ac_clean_files_save=$ac_clean_files 20573 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20575 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20576 as_write_fail=0 20577 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20578 #! $SHELL 20579 # Generated by $as_me. 20580 # Run this file to recreate the current configuration. 20581 # Compiler output produced by configure, useful for debugging 20582 # configure, is in config.log if it exists. 20583 20584 debug=false 20585 ac_cs_recheck=false 20586 ac_cs_silent=false 20587 20588 SHELL=\${CONFIG_SHELL-$SHELL} 20589 export SHELL 20590 _ASEOF 20591 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20592 ## -------------------- ## 20593 ## M4sh Initialization. ## 20594 ## -------------------- ## 20595 20596 # Be more Bourne compatible 20597 DUALCASE=1; export DUALCASE # for MKS sh 20598 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20599 then : 20600 emulate sh 20601 NULLCMD=: 20602 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20603 # is contrary to our usage. Disable this feature. 20604 alias -g '${1+"$@"}'='"$@"' 20605 setopt NO_GLOB_SUBST 20606 else case e in #( 20607 e) case `(set -o) 2>/dev/null` in #( 20608 *posix*) : 20609 set -o posix ;; #( 20610 *) : 20611 ;; 20612 esac ;; 20613 esac 20614 fi 20615 20616 20617 20618 # Reset variables that may have inherited troublesome values from 20619 # the environment. 20620 20621 # IFS needs to be set, to space, tab, and newline, in precisely that order. 20622 # (If _AS_PATH_WALK were called with IFS unset, it would have the 20623 # side effect of setting IFS to empty, thus disabling word splitting.) 20624 # Quoting is to prevent editors from complaining about space-tab. 20625 as_nl=' 20626 ' 20627 export as_nl 20628 IFS=" "" $as_nl" 20629 20630 PS1='$ ' 20631 PS2='> ' 20632 PS4='+ ' 20633 20634 # Ensure predictable behavior from utilities with locale-dependent output. 20635 LC_ALL=C 20636 export LC_ALL 20637 LANGUAGE=C 20638 export LANGUAGE 20639 20640 # We cannot yet rely on "unset" to work, but we need these variables 20641 # to be unset--not just set to an empty or harmless value--now, to 20642 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20643 # also avoids known problems related to "unset" and subshell syntax 20644 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20645 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20646 do eval test \${$as_var+y} \ 20647 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20648 done 20649 20650 # Ensure that fds 0, 1, and 2 are open. 20651 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20652 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20653 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20654 20655 # The user is always right. 20656 if ${PATH_SEPARATOR+false} :; then 20657 PATH_SEPARATOR=: 20658 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20659 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20660 PATH_SEPARATOR=';' 20661 } 20662 fi 20663 20664 20665 # Find who we are. Look in the path if we contain no directory separator. 20666 as_myself= 20667 case $0 in #(( 20668 *[\\/]* ) as_myself=$0 ;; 20669 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20670 for as_dir in $PATH 20671 do 20672 IFS=$as_save_IFS 20673 case $as_dir in #((( 20674 '') as_dir=./ ;; 20675 */) ;; 20676 *) as_dir=$as_dir/ ;; 20677 esac 20678 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20679 done 20680 IFS=$as_save_IFS 20681 20682 ;; 20683 esac 20684 # We did not find ourselves, most probably we were run as 'sh COMMAND' 20685 # in which case we are not to be found in the path. 20686 if test "x$as_myself" = x; then 20687 as_myself=$0 20688 fi 20689 if test ! -f "$as_myself"; then 20690 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20691 exit 1 20692 fi 20693 20694 20695 20696 # as_fn_error STATUS ERROR [LINENO LOG_FD] 20697 # ---------------------------------------- 20698 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20699 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20700 # script with STATUS, using 1 if that was 0. 20701 as_fn_error () 20702 { 20703 as_status=$1; test $as_status -eq 0 && as_status=1 20704 if test "$4"; then 20705 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20707 fi 20708 printf "%s\n" "$as_me: error: $2" >&2 20709 as_fn_exit $as_status 20710 } # as_fn_error 20711 20712 20713 # as_fn_set_status STATUS 20714 # ----------------------- 20715 # Set $? to STATUS, without forking. 20716 as_fn_set_status () 20717 { 20718 return $1 20719 } # as_fn_set_status 20720 20721 # as_fn_exit STATUS 20722 # ----------------- 20723 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20724 as_fn_exit () 20725 { 20726 set +e 20727 as_fn_set_status $1 20728 exit $1 20729 } # as_fn_exit 20730 20731 # as_fn_unset VAR 20732 # --------------- 20733 # Portably unset VAR. 20734 as_fn_unset () 20735 { 20736 { eval $1=; unset $1;} 20737 } 20738 as_unset=as_fn_unset 20739 20740 # as_fn_append VAR VALUE 20741 # ---------------------- 20742 # Append the text in VALUE to the end of the definition contained in VAR. Take 20743 # advantage of any shell optimizations that allow amortized linear growth over 20744 # repeated appends, instead of the typical quadratic growth present in naive 20745 # implementations. 20746 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20747 then : 20748 eval 'as_fn_append () 20749 { 20750 eval $1+=\$2 20751 }' 20752 else case e in #( 20753 e) as_fn_append () 20754 { 20755 eval $1=\$$1\$2 20756 } ;; 20757 esac 20758 fi # as_fn_append 20759 20760 # as_fn_arith ARG... 20761 # ------------------ 20762 # Perform arithmetic evaluation on the ARGs, and store the result in the 20763 # global $as_val. Take advantage of shells that can avoid forks. The arguments 20764 # must be portable across $(()) and expr. 20765 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20766 then : 20767 eval 'as_fn_arith () 20768 { 20769 as_val=$(( $* )) 20770 }' 20771 else case e in #( 20772 e) as_fn_arith () 20773 { 20774 as_val=`expr "$@" || test $? -eq 1` 20775 } ;; 20776 esac 20777 fi # as_fn_arith 20778 20779 20780 if expr a : '\(a\)' >/dev/null 2>&1 && 20781 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20782 as_expr=expr 20783 else 20784 as_expr=false 20785 fi 20786 20787 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20788 as_basename=basename 20789 else 20790 as_basename=false 20791 fi 20792 20793 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20794 as_dirname=dirname 20795 else 20796 as_dirname=false 20797 fi 20798 20799 as_me=`$as_basename -- "$0" || 20800 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20801 X"$0" : 'X\(//\)$' \| \ 20802 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20803 printf "%s\n" X/"$0" | 20804 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20805 s//\1/ 20806 q 20807 } 20808 /^X\/\(\/\/\)$/{ 20809 s//\1/ 20810 q 20811 } 20812 /^X\/\(\/\).*/{ 20813 s//\1/ 20814 q 20815 } 20816 s/.*/./; q'` 20817 20818 # Avoid depending upon Character Ranges. 20819 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20820 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20821 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20822 as_cr_digits='0123456789' 20823 as_cr_alnum=$as_cr_Letters$as_cr_digits 20824 20825 20826 # Determine whether it's possible to make 'echo' print without a newline. 20827 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20828 # for compatibility with existing Makefiles. 20829 ECHO_C= ECHO_N= ECHO_T= 20830 case `echo -n x` in #((((( 20831 -n*) 20832 case `echo 'xy\c'` in 20833 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20834 xy) ECHO_C='\c';; 20835 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20836 ECHO_T=' ';; 20837 esac;; 20838 *) 20839 ECHO_N='-n';; 20840 esac 20841 20842 # For backward compatibility with old third-party macros, we provide 20843 # the shell variables $as_echo and $as_echo_n. New code should use 20844 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20845 as_echo='printf %s\n' 20846 as_echo_n='printf %s' 20847 20848 rm -f conf$$ conf$$.exe conf$$.file 20849 if test -d conf$$.dir; then 20850 rm -f conf$$.dir/conf$$.file 20851 else 20852 rm -f conf$$.dir 20853 mkdir conf$$.dir 2>/dev/null 20854 fi 20855 if (echo >conf$$.file) 2>/dev/null; then 20856 if ln -s conf$$.file conf$$ 2>/dev/null; then 20857 as_ln_s='ln -s' 20858 # ... but there are two gotchas: 20859 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 20860 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 20861 # In both cases, we have to default to 'cp -pR'. 20862 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20863 as_ln_s='cp -pR' 20864 elif ln conf$$.file conf$$ 2>/dev/null; then 20865 as_ln_s=ln 20866 else 20867 as_ln_s='cp -pR' 20868 fi 20869 else 20870 as_ln_s='cp -pR' 20871 fi 20872 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20873 rmdir conf$$.dir 2>/dev/null 20874 20875 20876 # as_fn_mkdir_p 20877 # ------------- 20878 # Create "$as_dir" as a directory, including parents if necessary. 20879 as_fn_mkdir_p () 20880 { 20881 20882 case $as_dir in #( 20883 -*) as_dir=./$as_dir;; 20884 esac 20885 test -d "$as_dir" || eval $as_mkdir_p || { 20886 as_dirs= 20887 while :; do 20888 case $as_dir in #( 20889 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20890 *) as_qdir=$as_dir;; 20891 esac 20892 as_dirs="'$as_qdir' $as_dirs" 20893 as_dir=`$as_dirname -- "$as_dir" || 20894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20895 X"$as_dir" : 'X\(//\)[^/]' \| \ 20896 X"$as_dir" : 'X\(//\)$' \| \ 20897 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20898 printf "%s\n" X"$as_dir" | 20899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20900 s//\1/ 20901 q 20902 } 20903 /^X\(\/\/\)[^/].*/{ 20904 s//\1/ 20905 q 20906 } 20907 /^X\(\/\/\)$/{ 20908 s//\1/ 20909 q 20910 } 20911 /^X\(\/\).*/{ 20912 s//\1/ 20913 q 20914 } 20915 s/.*/./; q'` 20916 test -d "$as_dir" && break 20917 done 20918 test -z "$as_dirs" || eval "mkdir $as_dirs" 20919 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20920 20921 20922 } # as_fn_mkdir_p 20923 if mkdir -p . 2>/dev/null; then 20924 as_mkdir_p='mkdir -p "$as_dir"' 20925 else 20926 test -d ./-p && rmdir ./-p 20927 as_mkdir_p=false 20928 fi 20929 20930 20931 # as_fn_executable_p FILE 20932 # ----------------------- 20933 # Test if FILE is an executable regular file. 20934 as_fn_executable_p () 20935 { 20936 test -f "$1" && test -x "$1" 20937 } # as_fn_executable_p 20938 as_test_x='test -x' 20939 as_executable_p=as_fn_executable_p 20940 20941 # Sed expression to map a string onto a valid CPP name. 20942 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 20943 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 20944 20945 # Sed expression to map a string onto a valid variable name. 20946 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 20947 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 20948 20949 20950 exec 6>&1 20951 ## ----------------------------------- ## 20952 ## Main body of $CONFIG_STATUS script. ## 20953 ## ----------------------------------- ## 20954 _ASEOF 20955 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20956 20957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20958 # Save the log message, to keep $0 and so on meaningful, and to 20959 # report actual input values of CONFIG_FILES etc. instead of their 20960 # values after options handling. 20961 ac_log=" 20962 This file was extended by libXxf86vm $as_me 1.1.6, which was 20963 generated by GNU Autoconf 2.72. Invocation command line was 20964 20965 CONFIG_FILES = $CONFIG_FILES 20966 CONFIG_HEADERS = $CONFIG_HEADERS 20967 CONFIG_LINKS = $CONFIG_LINKS 20968 CONFIG_COMMANDS = $CONFIG_COMMANDS 20969 $ $0 $@ 20970 20971 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20972 " 20973 20974 _ACEOF 20975 20976 case $ac_config_files in *" 20977 "*) set x $ac_config_files; shift; ac_config_files=$*;; 20978 esac 20979 20980 case $ac_config_headers in *" 20981 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20982 esac 20983 20984 20985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20986 # Files that config.status was made for. 20987 config_files="$ac_config_files" 20988 config_headers="$ac_config_headers" 20989 config_commands="$ac_config_commands" 20990 20991 _ACEOF 20992 20993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20994 ac_cs_usage="\ 20995 '$as_me' instantiates files and other configuration actions 20996 from templates according to the current configuration. Unless the files 20997 and actions are specified as TAGs, all are instantiated by default. 20998 20999 Usage: $0 [OPTION]... [TAG]... 21000 21001 -h, --help print this help, then exit 21002 -V, --version print version number and configuration settings, then exit 21003 --config print configuration, then exit 21004 -q, --quiet, --silent 21005 do not print progress messages 21006 -d, --debug don't remove temporary files 21007 --recheck update $as_me by reconfiguring in the same conditions 21008 --file=FILE[:TEMPLATE] 21009 instantiate the configuration file FILE 21010 --header=FILE[:TEMPLATE] 21011 instantiate the configuration header FILE 21012 21013 Configuration files: 21014 $config_files 21015 21016 Configuration headers: 21017 $config_headers 21018 21019 Configuration commands: 21020 $config_commands 21021 21022 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxxf86vm/-/issues>." 21023 21024 _ACEOF 21025 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21026 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21028 ac_cs_config='$ac_cs_config_escaped' 21029 ac_cs_version="\\ 21030 libXxf86vm config.status 1.1.6 21031 configured by $0, generated by GNU Autoconf 2.72, 21032 with options \\"\$ac_cs_config\\" 21033 21034 Copyright (C) 2023 Free Software Foundation, Inc. 21035 This config.status script is free software; the Free Software Foundation 21036 gives unlimited permission to copy, distribute and modify it." 21037 21038 ac_pwd='$ac_pwd' 21039 srcdir='$srcdir' 21040 INSTALL='$INSTALL' 21041 MKDIR_P='$MKDIR_P' 21042 AWK='$AWK' 21043 test -n "\$AWK" || AWK=awk 21044 _ACEOF 21045 21046 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21047 # The default lists apply if the user does not specify any file. 21048 ac_need_defaults=: 21049 while test $# != 0 21050 do 21051 case $1 in 21052 --*=?*) 21053 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21054 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21055 ac_shift=: 21056 ;; 21057 --*=) 21058 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21059 ac_optarg= 21060 ac_shift=: 21061 ;; 21062 *) 21063 ac_option=$1 21064 ac_optarg=$2 21065 ac_shift=shift 21066 ;; 21067 esac 21068 21069 case $ac_option in 21070 # Handling of the options. 21071 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21072 ac_cs_recheck=: ;; 21073 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21074 printf "%s\n" "$ac_cs_version"; exit ;; 21075 --config | --confi | --conf | --con | --co | --c ) 21076 printf "%s\n" "$ac_cs_config"; exit ;; 21077 --debug | --debu | --deb | --de | --d | -d ) 21078 debug=: ;; 21079 --file | --fil | --fi | --f ) 21080 $ac_shift 21081 case $ac_optarg in 21082 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21083 '') as_fn_error $? "missing file argument" ;; 21084 esac 21085 as_fn_append CONFIG_FILES " '$ac_optarg'" 21086 ac_need_defaults=false;; 21087 --header | --heade | --head | --hea ) 21088 $ac_shift 21089 case $ac_optarg in 21090 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21091 esac 21092 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21093 ac_need_defaults=false;; 21094 --he | --h) 21095 # Conflict between --help and --header 21096 as_fn_error $? "ambiguous option: '$1' 21097 Try '$0 --help' for more information.";; 21098 --help | --hel | -h ) 21099 printf "%s\n" "$ac_cs_usage"; exit ;; 21100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21101 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21102 ac_cs_silent=: ;; 21103 21104 # This is an error. 21105 -*) as_fn_error $? "unrecognized option: '$1' 21106 Try '$0 --help' for more information." ;; 21107 21108 *) as_fn_append ac_config_targets " $1" 21109 ac_need_defaults=false ;; 21110 21111 esac 21112 shift 21113 done 21114 21115 ac_configure_extra_args= 21116 21117 if $ac_cs_silent; then 21118 exec 6>/dev/null 21119 ac_configure_extra_args="$ac_configure_extra_args --silent" 21120 fi 21121 21122 _ACEOF 21123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21124 if \$ac_cs_recheck; then 21125 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21126 shift 21127 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21128 CONFIG_SHELL='$SHELL' 21129 export CONFIG_SHELL 21130 exec "\$@" 21131 fi 21132 21133 _ACEOF 21134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21135 exec 5>>config.log 21136 { 21137 echo 21138 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21139 ## Running $as_me. ## 21140 _ASBOX 21141 printf "%s\n" "$ac_log" 21142 } >&5 21143 21144 _ACEOF 21145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21146 # 21147 # INIT-COMMANDS 21148 # 21149 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21150 21151 21152 # The HP-UX ksh and POSIX shell print the target directory to stdout 21153 # if CDPATH is set. 21154 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21155 21156 sed_quote_subst='$sed_quote_subst' 21157 double_quote_subst='$double_quote_subst' 21158 delay_variable_subst='$delay_variable_subst' 21159 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21160 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21161 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21162 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21163 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21164 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21165 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21166 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21167 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21168 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21169 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21170 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21171 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21172 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21173 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21174 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21175 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21176 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21177 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21178 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21179 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21180 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21181 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21182 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21183 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21184 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21185 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21186 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21187 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21188 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21189 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21190 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21191 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21192 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21193 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21194 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21195 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21196 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21197 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21198 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21199 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21200 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21201 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21202 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21203 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21204 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21205 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21206 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21207 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21208 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21209 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21210 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21211 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21212 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21213 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21214 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21215 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21216 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21217 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21218 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21219 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"`' 21220 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21221 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21222 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21223 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21224 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21225 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21226 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21227 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21228 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21229 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21230 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21231 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21232 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21233 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21234 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21235 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21236 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21237 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21238 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21239 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21240 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21241 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21242 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21243 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21244 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21245 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21246 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21247 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21248 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21249 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21250 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21251 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21252 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21253 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21254 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21255 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21256 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21257 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21258 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21259 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21260 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21261 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21262 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21263 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21264 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21265 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21266 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21267 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21268 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21269 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21270 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21271 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21272 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21273 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21274 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21275 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21276 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21277 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21278 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21279 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21280 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21281 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21282 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21283 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21284 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21285 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21286 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21287 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21288 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21289 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21290 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21291 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21292 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21293 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21294 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21295 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21296 21297 LTCC='$LTCC' 21298 LTCFLAGS='$LTCFLAGS' 21299 compiler='$compiler_DEFAULT' 21300 21301 # A function that is used when there is no print builtin or printf. 21302 func_fallback_echo () 21303 { 21304 eval 'cat <<_LTECHO_EOF 21305 \$1 21306 _LTECHO_EOF' 21307 } 21308 21309 # Quote evaled strings. 21310 for var in SHELL \ 21311 ECHO \ 21312 PATH_SEPARATOR \ 21313 SED \ 21314 GREP \ 21315 EGREP \ 21316 FGREP \ 21317 LD \ 21318 NM \ 21319 LN_S \ 21320 lt_SP2NL \ 21321 lt_NL2SP \ 21322 reload_flag \ 21323 FILECMD \ 21324 OBJDUMP \ 21325 deplibs_check_method \ 21326 file_magic_cmd \ 21327 file_magic_glob \ 21328 want_nocaseglob \ 21329 DLLTOOL \ 21330 sharedlib_from_linklib_cmd \ 21331 AR \ 21332 archiver_list_spec \ 21333 STRIP \ 21334 RANLIB \ 21335 CC \ 21336 CFLAGS \ 21337 compiler \ 21338 lt_cv_sys_global_symbol_pipe \ 21339 lt_cv_sys_global_symbol_to_cdecl \ 21340 lt_cv_sys_global_symbol_to_import \ 21341 lt_cv_sys_global_symbol_to_c_name_address \ 21342 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21343 lt_cv_nm_interface \ 21344 nm_file_list_spec \ 21345 lt_cv_truncate_bin \ 21346 lt_prog_compiler_no_builtin_flag \ 21347 lt_prog_compiler_pic \ 21348 lt_prog_compiler_wl \ 21349 lt_prog_compiler_static \ 21350 lt_cv_prog_compiler_c_o \ 21351 need_locks \ 21352 MANIFEST_TOOL \ 21353 DSYMUTIL \ 21354 NMEDIT \ 21355 LIPO \ 21356 OTOOL \ 21357 OTOOL64 \ 21358 shrext_cmds \ 21359 export_dynamic_flag_spec \ 21360 whole_archive_flag_spec \ 21361 compiler_needs_object \ 21362 with_gnu_ld \ 21363 allow_undefined_flag \ 21364 no_undefined_flag \ 21365 hardcode_libdir_flag_spec \ 21366 hardcode_libdir_separator \ 21367 exclude_expsyms \ 21368 include_expsyms \ 21369 file_list_spec \ 21370 variables_saved_for_relink \ 21371 libname_spec \ 21372 library_names_spec \ 21373 soname_spec \ 21374 install_override_mode \ 21375 finish_eval \ 21376 old_striplib \ 21377 striplib; do 21378 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21379 *[\\\\\\\`\\"\\\$]*) 21380 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21381 ;; 21382 *) 21383 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21384 ;; 21385 esac 21386 done 21387 21388 # Double-quote double-evaled strings. 21389 for var in reload_cmds \ 21390 old_postinstall_cmds \ 21391 old_postuninstall_cmds \ 21392 old_archive_cmds \ 21393 extract_expsyms_cmds \ 21394 old_archive_from_new_cmds \ 21395 old_archive_from_expsyms_cmds \ 21396 archive_cmds \ 21397 archive_expsym_cmds \ 21398 module_cmds \ 21399 module_expsym_cmds \ 21400 export_symbols_cmds \ 21401 prelink_cmds \ 21402 postlink_cmds \ 21403 postinstall_cmds \ 21404 postuninstall_cmds \ 21405 finish_cmds \ 21406 sys_lib_search_path_spec \ 21407 configure_time_dlsearch_path \ 21408 configure_time_lt_sys_library_path; do 21409 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21410 *[\\\\\\\`\\"\\\$]*) 21411 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21412 ;; 21413 *) 21414 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21415 ;; 21416 esac 21417 done 21418 21419 ac_aux_dir='$ac_aux_dir' 21420 21421 # See if we are running on zsh, and set the options that allow our 21422 # commands through without removal of \ escapes INIT. 21423 if test -n "\${ZSH_VERSION+set}"; then 21424 setopt NO_GLOB_SUBST 21425 fi 21426 21427 21428 PACKAGE='$PACKAGE' 21429 VERSION='$VERSION' 21430 RM='$RM' 21431 ofile='$ofile' 21432 21433 21434 21435 21436 _ACEOF 21437 21438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21439 21440 # Handling of arguments. 21441 for ac_config_target in $ac_config_targets 21442 do 21443 case $ac_config_target in 21444 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 21445 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21446 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21447 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21448 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21449 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21450 "xxf86vm.pc") CONFIG_FILES="$CONFIG_FILES xxf86vm.pc" ;; 21451 21452 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21453 esac 21454 done 21455 21456 21457 # If the user did not use the arguments to specify the items to instantiate, 21458 # then the envvar interface is used. Set only those that are not. 21459 # We use the long form for the default assignment because of an extremely 21460 # bizarre bug on SunOS 4.1.3. 21461 if $ac_need_defaults; then 21462 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21463 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21464 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21465 fi 21466 21467 # Have a temporary directory for convenience. Make it in the build tree 21468 # simply because there is no reason against having it here, and in addition, 21469 # creating and moving files from /tmp can sometimes cause problems. 21470 # Hook for its removal unless debugging. 21471 # Note that there is a small window in which the directory will not be cleaned: 21472 # after its creation but before its name has been assigned to '$tmp'. 21473 $debug || 21474 { 21475 tmp= ac_tmp= 21476 trap 'exit_status=$? 21477 : "${ac_tmp:=$tmp}" 21478 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21479 ' 0 21480 trap 'as_fn_exit 1' 1 2 13 15 21481 } 21482 # Create a (secure) tmp directory for tmp files. 21483 21484 { 21485 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21486 test -d "$tmp" 21487 } || 21488 { 21489 tmp=./conf$$-$RANDOM 21490 (umask 077 && mkdir "$tmp") 21491 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21492 ac_tmp=$tmp 21493 21494 # Set up the scripts for CONFIG_FILES section. 21495 # No need to generate them if there are no CONFIG_FILES. 21496 # This happens for instance with './config.status config.h'. 21497 if test -n "$CONFIG_FILES"; then 21498 21499 21500 ac_cr=`echo X | tr X '\015'` 21501 # On cygwin, bash can eat \r inside `` if the user requested igncr. 21502 # But we know of no other shell where ac_cr would be empty at this 21503 # point, so we can use a bashism as a fallback. 21504 if test "x$ac_cr" = x; then 21505 eval ac_cr=\$\'\\r\' 21506 fi 21507 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21508 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21509 ac_cs_awk_cr='\\r' 21510 else 21511 ac_cs_awk_cr=$ac_cr 21512 fi 21513 21514 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21515 _ACEOF 21516 21517 21518 { 21519 echo "cat >conf$$subs.awk <<_ACEOF" && 21520 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21521 echo "_ACEOF" 21522 } >conf$$subs.sh || 21523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21524 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21525 ac_delim='%!_!# ' 21526 for ac_last_try in false false false false false :; do 21527 . ./conf$$subs.sh || 21528 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21529 21530 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21531 if test $ac_delim_n = $ac_delim_num; then 21532 break 21533 elif $ac_last_try; then 21534 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21535 else 21536 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21537 fi 21538 done 21539 rm -f conf$$subs.sh 21540 21541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21542 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21543 _ACEOF 21544 sed -n ' 21545 h 21546 s/^/S["/; s/!.*/"]=/ 21547 p 21548 g 21549 s/^[^!]*!// 21550 :repl 21551 t repl 21552 s/'"$ac_delim"'$// 21553 t delim 21554 :nl 21555 h 21556 s/\(.\{148\}\)..*/\1/ 21557 t more1 21558 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21559 p 21560 n 21561 b repl 21562 :more1 21563 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21564 p 21565 g 21566 s/.\{148\}// 21567 t nl 21568 :delim 21569 h 21570 s/\(.\{148\}\)..*/\1/ 21571 t more2 21572 s/["\\]/\\&/g; s/^/"/; s/$/"/ 21573 p 21574 b 21575 :more2 21576 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21577 p 21578 g 21579 s/.\{148\}// 21580 t delim 21581 ' <conf$$subs.awk | sed ' 21582 /^[^""]/{ 21583 N 21584 s/\n// 21585 } 21586 ' >>$CONFIG_STATUS || ac_write_fail=1 21587 rm -f conf$$subs.awk 21588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21589 _ACAWK 21590 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21591 for (key in S) S_is_set[key] = 1 21592 FS = "" 21593 21594 } 21595 { 21596 line = $ 0 21597 nfields = split(line, field, "@") 21598 substed = 0 21599 len = length(field[1]) 21600 for (i = 2; i < nfields; i++) { 21601 key = field[i] 21602 keylen = length(key) 21603 if (S_is_set[key]) { 21604 value = S[key] 21605 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21606 len += length(value) + length(field[++i]) 21607 substed = 1 21608 } else 21609 len += 1 + keylen 21610 } 21611 21612 print line 21613 } 21614 21615 _ACAWK 21616 _ACEOF 21617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21618 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21619 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21620 else 21621 cat 21622 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21623 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21624 _ACEOF 21625 21626 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21627 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21628 # trailing colons and then remove the whole line if VPATH becomes empty 21629 # (actually we leave an empty line to preserve line numbers). 21630 if test "x$srcdir" = x.; then 21631 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21632 h 21633 s/// 21634 s/^/:/ 21635 s/[ ]*$/:/ 21636 s/:\$(srcdir):/:/g 21637 s/:\${srcdir}:/:/g 21638 s/:@srcdir@:/:/g 21639 s/^:*// 21640 s/:*$// 21641 x 21642 s/\(=[ ]*\).*/\1/ 21643 G 21644 s/\n// 21645 s/^[^=]*=[ ]*$// 21646 }' 21647 fi 21648 21649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21650 fi # test -n "$CONFIG_FILES" 21651 21652 # Set up the scripts for CONFIG_HEADERS section. 21653 # No need to generate them if there are no CONFIG_HEADERS. 21654 # This happens for instance with './config.status Makefile'. 21655 if test -n "$CONFIG_HEADERS"; then 21656 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21657 BEGIN { 21658 _ACEOF 21659 21660 # Transform confdefs.h into an awk script 'defines.awk', embedded as 21661 # here-document in config.status, that substitutes the proper values into 21662 # config.h.in to produce config.h. 21663 21664 # Create a delimiter string that does not exist in confdefs.h, to ease 21665 # handling of long lines. 21666 ac_delim='%!_!# ' 21667 for ac_last_try in false false :; do 21668 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21669 if test -z "$ac_tt"; then 21670 break 21671 elif $ac_last_try; then 21672 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21673 else 21674 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21675 fi 21676 done 21677 21678 # For the awk script, D is an array of macro values keyed by name, 21679 # likewise P contains macro parameters if any. Preserve backslash 21680 # newline sequences. 21681 21682 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21683 sed -n ' 21684 s/.\{148\}/&'"$ac_delim"'/g 21685 t rset 21686 :rset 21687 s/^[ ]*#[ ]*define[ ][ ]*/ / 21688 t def 21689 d 21690 :def 21691 s/\\$// 21692 t bsnl 21693 s/["\\]/\\&/g 21694 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21695 D["\1"]=" \3"/p 21696 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21697 d 21698 :bsnl 21699 s/["\\]/\\&/g 21700 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21701 D["\1"]=" \3\\\\\\n"\\/p 21702 t cont 21703 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21704 t cont 21705 d 21706 :cont 21707 n 21708 s/.\{148\}/&'"$ac_delim"'/g 21709 t clear 21710 :clear 21711 s/\\$// 21712 t bsnlc 21713 s/["\\]/\\&/g; s/^/"/; s/$/"/p 21714 d 21715 :bsnlc 21716 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21717 b cont 21718 ' <confdefs.h | sed ' 21719 s/'"$ac_delim"'/"\\\ 21720 "/g' >>$CONFIG_STATUS || ac_write_fail=1 21721 21722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21723 for (key in D) D_is_set[key] = 1 21724 FS = "" 21725 } 21726 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21727 line = \$ 0 21728 split(line, arg, " ") 21729 if (arg[1] == "#") { 21730 defundef = arg[2] 21731 mac1 = arg[3] 21732 } else { 21733 defundef = substr(arg[1], 2) 21734 mac1 = arg[2] 21735 } 21736 split(mac1, mac2, "(") #) 21737 macro = mac2[1] 21738 prefix = substr(line, 1, index(line, defundef) - 1) 21739 if (D_is_set[macro]) { 21740 # Preserve the white space surrounding the "#". 21741 print prefix "define", macro P[macro] D[macro] 21742 next 21743 } else { 21744 # Replace #undef with comments. This is necessary, for example, 21745 # in the case of _POSIX_SOURCE, which is predefined and required 21746 # on some systems where configure will not decide to define it. 21747 if (defundef == "undef") { 21748 print "/*", prefix defundef, macro, "*/" 21749 next 21750 } 21751 } 21752 } 21753 { print } 21754 _ACAWK 21755 _ACEOF 21756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21757 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21758 fi # test -n "$CONFIG_HEADERS" 21759 21760 21761 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21762 shift 21763 for ac_tag 21764 do 21765 case $ac_tag in 21766 :[FHLC]) ac_mode=$ac_tag; continue;; 21767 esac 21768 case $ac_mode$ac_tag in 21769 :[FHL]*:*);; 21770 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 21771 :[FH]-) ac_tag=-:-;; 21772 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21773 esac 21774 ac_save_IFS=$IFS 21775 IFS=: 21776 set x $ac_tag 21777 IFS=$ac_save_IFS 21778 shift 21779 ac_file=$1 21780 shift 21781 21782 case $ac_mode in 21783 :L) ac_source=$1;; 21784 :[FH]) 21785 ac_file_inputs= 21786 for ac_f 21787 do 21788 case $ac_f in 21789 -) ac_f="$ac_tmp/stdin";; 21790 *) # Look for the file first in the build tree, then in the source tree 21791 # (if the path is not absolute). The absolute path cannot be DOS-style, 21792 # because $ac_f cannot contain ':'. 21793 test -f "$ac_f" || 21794 case $ac_f in 21795 [\\/$]*) false;; 21796 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21797 esac || 21798 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 21799 esac 21800 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21801 as_fn_append ac_file_inputs " '$ac_f'" 21802 done 21803 21804 # Let's still pretend it is 'configure' which instantiates (i.e., don't 21805 # use $as_me), people would be surprised to read: 21806 # /* config.h. Generated by config.status. */ 21807 configure_input='Generated from '` 21808 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21809 `' by configure.' 21810 if test x"$ac_file" != x-; then 21811 configure_input="$ac_file. $configure_input" 21812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21813 printf "%s\n" "$as_me: creating $ac_file" >&6;} 21814 fi 21815 # Neutralize special characters interpreted by sed in replacement strings. 21816 case $configure_input in #( 21817 *\&* | *\|* | *\\* ) 21818 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21819 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21820 *) ac_sed_conf_input=$configure_input;; 21821 esac 21822 21823 case $ac_tag in 21824 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21825 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21826 esac 21827 ;; 21828 esac 21829 21830 ac_dir=`$as_dirname -- "$ac_file" || 21831 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21832 X"$ac_file" : 'X\(//\)[^/]' \| \ 21833 X"$ac_file" : 'X\(//\)$' \| \ 21834 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21835 printf "%s\n" X"$ac_file" | 21836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21837 s//\1/ 21838 q 21839 } 21840 /^X\(\/\/\)[^/].*/{ 21841 s//\1/ 21842 q 21843 } 21844 /^X\(\/\/\)$/{ 21845 s//\1/ 21846 q 21847 } 21848 /^X\(\/\).*/{ 21849 s//\1/ 21850 q 21851 } 21852 s/.*/./; q'` 21853 as_dir="$ac_dir"; as_fn_mkdir_p 21854 ac_builddir=. 21855 21856 case "$ac_dir" in 21857 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21858 *) 21859 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21860 # A ".." for each directory in $ac_dir_suffix. 21861 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21862 case $ac_top_builddir_sub in 21863 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21864 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21865 esac ;; 21866 esac 21867 ac_abs_top_builddir=$ac_pwd 21868 ac_abs_builddir=$ac_pwd$ac_dir_suffix 21869 # for backward compatibility: 21870 ac_top_builddir=$ac_top_build_prefix 21871 21872 case $srcdir in 21873 .) # We are building in place. 21874 ac_srcdir=. 21875 ac_top_srcdir=$ac_top_builddir_sub 21876 ac_abs_top_srcdir=$ac_pwd ;; 21877 [\\/]* | ?:[\\/]* ) # Absolute name. 21878 ac_srcdir=$srcdir$ac_dir_suffix; 21879 ac_top_srcdir=$srcdir 21880 ac_abs_top_srcdir=$srcdir ;; 21881 *) # Relative name. 21882 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21883 ac_top_srcdir=$ac_top_build_prefix$srcdir 21884 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21885 esac 21886 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21887 21888 21889 case $ac_mode in 21890 :F) 21891 # 21892 # CONFIG_FILE 21893 # 21894 21895 case $INSTALL in 21896 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21897 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21898 esac 21899 ac_MKDIR_P=$MKDIR_P 21900 case $MKDIR_P in 21901 [\\/$]* | ?:[\\/]* ) ;; 21902 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21903 esac 21904 _ACEOF 21905 21906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21907 # If the template does not know about datarootdir, expand it. 21908 # FIXME: This hack should be removed a few years after 2.60. 21909 ac_datarootdir_hack=; ac_datarootdir_seen= 21910 ac_sed_dataroot=' 21911 /datarootdir/ { 21912 p 21913 q 21914 } 21915 /@datadir@/p 21916 /@docdir@/p 21917 /@infodir@/p 21918 /@localedir@/p 21919 /@mandir@/p' 21920 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21921 *datarootdir*) ac_datarootdir_seen=yes;; 21922 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21924 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21925 _ACEOF 21926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21927 ac_datarootdir_hack=' 21928 s&@datadir@&$datadir&g 21929 s&@docdir@&$docdir&g 21930 s&@infodir@&$infodir&g 21931 s&@localedir@&$localedir&g 21932 s&@mandir@&$mandir&g 21933 s&\\\${datarootdir}&$datarootdir&g' ;; 21934 esac 21935 _ACEOF 21936 21937 # Neutralize VPATH when '$srcdir' = '.'. 21938 # Shell code in configure.ac might set extrasub. 21939 # FIXME: do we really want to maintain this feature? 21940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21941 ac_sed_extra="$ac_vpsub 21942 $extrasub 21943 _ACEOF 21944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21945 :t 21946 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21947 s|@configure_input@|$ac_sed_conf_input|;t t 21948 s&@top_builddir@&$ac_top_builddir_sub&;t t 21949 s&@top_build_prefix@&$ac_top_build_prefix&;t t 21950 s&@srcdir@&$ac_srcdir&;t t 21951 s&@abs_srcdir@&$ac_abs_srcdir&;t t 21952 s&@top_srcdir@&$ac_top_srcdir&;t t 21953 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21954 s&@builddir@&$ac_builddir&;t t 21955 s&@abs_builddir@&$ac_abs_builddir&;t t 21956 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21957 s&@INSTALL@&$ac_INSTALL&;t t 21958 s&@MKDIR_P@&$ac_MKDIR_P&;t t 21959 $ac_datarootdir_hack 21960 " 21961 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21962 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21963 21964 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21965 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21966 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21967 "$ac_tmp/out"`; test -z "$ac_out"; } && 21968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 21969 which seems to be undefined. Please make sure it is defined" >&5 21970 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 21971 which seems to be undefined. Please make sure it is defined" >&2;} 21972 21973 rm -f "$ac_tmp/stdin" 21974 case $ac_file in 21975 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21976 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21977 esac \ 21978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21979 ;; 21980 :H) 21981 # 21982 # CONFIG_HEADER 21983 # 21984 if test x"$ac_file" != x-; then 21985 { 21986 printf "%s\n" "/* $configure_input */" >&1 \ 21987 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21988 } >"$ac_tmp/config.h" \ 21989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21990 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21992 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21993 else 21994 rm -f "$ac_file" 21995 mv "$ac_tmp/config.h" "$ac_file" \ 21996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21997 fi 21998 else 21999 printf "%s\n" "/* $configure_input */" >&1 \ 22000 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22001 || as_fn_error $? "could not create -" "$LINENO" 5 22002 fi 22003 # Compute "$ac_file"'s index in $config_headers. 22004 _am_arg="$ac_file" 22005 _am_stamp_count=1 22006 for _am_header in $config_headers :; do 22007 case $_am_header in 22008 $_am_arg | $_am_arg:* ) 22009 break ;; 22010 * ) 22011 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22012 esac 22013 done 22014 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22015 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22016 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22017 X"$_am_arg" : 'X\(//\)$' \| \ 22018 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22019 printf "%s\n" X"$_am_arg" | 22020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22021 s//\1/ 22022 q 22023 } 22024 /^X\(\/\/\)[^/].*/{ 22025 s//\1/ 22026 q 22027 } 22028 /^X\(\/\/\)$/{ 22029 s//\1/ 22030 q 22031 } 22032 /^X\(\/\).*/{ 22033 s//\1/ 22034 q 22035 } 22036 s/.*/./; q'`/stamp-h$_am_stamp_count 22037 ;; 22038 22039 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22040 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22041 ;; 22042 esac 22043 22044 22045 case $ac_file$ac_mode in 22046 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22047 # Older Autoconf quotes --file arguments for eval, but not when files 22048 # are listed without --file. Let's play safe and only enable the eval 22049 # if we detect the quoting. 22050 # TODO: see whether this extra hack can be removed once we start 22051 # requiring Autoconf 2.70 or later. 22052 case $CONFIG_FILES in #( 22053 *\'*) : 22054 eval set x "$CONFIG_FILES" ;; #( 22055 *) : 22056 set x $CONFIG_FILES ;; #( 22057 *) : 22058 ;; 22059 esac 22060 shift 22061 # Used to flag and report bootstrapping failures. 22062 am_rc=0 22063 for am_mf 22064 do 22065 # Strip MF so we end up with the name of the file. 22066 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22067 # Check whether this is an Automake generated Makefile which includes 22068 # dependency-tracking related rules and includes. 22069 # Grep'ing the whole file directly is not great: AIX grep has a line 22070 # limit of 2048, but all sed's we know have understand at least 4000. 22071 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22072 || continue 22073 am_dirpart=`$as_dirname -- "$am_mf" || 22074 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22075 X"$am_mf" : 'X\(//\)[^/]' \| \ 22076 X"$am_mf" : 'X\(//\)$' \| \ 22077 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22078 printf "%s\n" X"$am_mf" | 22079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22080 s//\1/ 22081 q 22082 } 22083 /^X\(\/\/\)[^/].*/{ 22084 s//\1/ 22085 q 22086 } 22087 /^X\(\/\/\)$/{ 22088 s//\1/ 22089 q 22090 } 22091 /^X\(\/\).*/{ 22092 s//\1/ 22093 q 22094 } 22095 s/.*/./; q'` 22096 am_filepart=`$as_basename -- "$am_mf" || 22097 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22098 X"$am_mf" : 'X\(//\)$' \| \ 22099 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22100 printf "%s\n" X/"$am_mf" | 22101 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22102 s//\1/ 22103 q 22104 } 22105 /^X\/\(\/\/\)$/{ 22106 s//\1/ 22107 q 22108 } 22109 /^X\/\(\/\).*/{ 22110 s//\1/ 22111 q 22112 } 22113 s/.*/./; q'` 22114 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22115 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22116 | $MAKE -f - am--depfiles" >&5 22117 (cd "$am_dirpart" \ 22118 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22119 | $MAKE -f - am--depfiles) >&5 2>&5 22120 ac_status=$? 22121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22122 (exit $ac_status); } || am_rc=$? 22123 done 22124 if test $am_rc -ne 0; then 22125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22126 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22127 as_fn_error $? "Something went wrong bootstrapping makefile fragments 22128 for automatic dependency tracking. If GNU make was not used, consider 22129 re-running the configure script with MAKE=\"gmake\" (or whatever is 22130 necessary). You can also try re-running configure with the 22131 '--disable-dependency-tracking' option to at least be able to build 22132 the package (albeit without support for automatic dependency tracking). 22133 See 'config.log' for more details" "$LINENO" 5; } 22134 fi 22135 { am_dirpart=; unset am_dirpart;} 22136 { am_filepart=; unset am_filepart;} 22137 { am_mf=; unset am_mf;} 22138 { am_rc=; unset am_rc;} 22139 rm -f conftest-deps.mk 22140 } 22141 ;; 22142 "libtool":C) 22143 22144 # See if we are running on zsh, and set the options that allow our 22145 # commands through without removal of \ escapes. 22146 if test -n "${ZSH_VERSION+set}"; then 22147 setopt NO_GLOB_SUBST 22148 fi 22149 22150 cfgfile=${ofile}T 22151 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22152 $RM "$cfgfile" 22153 22154 cat <<_LT_EOF >> "$cfgfile" 22155 #! $SHELL 22156 # Generated automatically by $as_me ($PACKAGE) $VERSION 22157 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 22158 22159 # Provide generalized library-building support services. 22160 # Written by Gordon Matzigkeit, 1996 22161 22162 # Copyright (C) 2024 Free Software Foundation, Inc. 22163 # This is free software; see the source for copying conditions. There is NO 22164 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22165 22166 # GNU Libtool is free software; you can redistribute it and/or modify 22167 # it under the terms of the GNU General Public License as published by 22168 # the Free Software Foundation; either version 2 of the License, or 22169 # (at your option) any later version. 22170 # 22171 # As a special exception to the GNU General Public License, if you 22172 # distribute this file as part of a program or library that is built 22173 # using GNU Libtool, you may include this file under the same 22174 # distribution terms that you use for the rest of that program. 22175 # 22176 # GNU Libtool is distributed in the hope that it will be useful, but 22177 # WITHOUT ANY WARRANTY; without even the implied warranty of 22178 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22179 # GNU General Public License for more details. 22180 # 22181 # You should have received a copy of the GNU General Public License 22182 # along with this program. If not, see <http://www.gnu.org/licenses/>. 22183 22184 22185 # The names of the tagged configurations supported by this script. 22186 available_tags='' 22187 22188 # Configured defaults for sys_lib_dlsearch_path munging. 22189 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22190 22191 # ### BEGIN LIBTOOL CONFIG 22192 22193 # Which release of libtool.m4 was used? 22194 macro_version=$macro_version 22195 macro_revision=$macro_revision 22196 22197 # Whether or not to build shared libraries. 22198 build_libtool_libs=$enable_shared 22199 22200 # Whether or not to build static libraries. 22201 build_old_libs=$enable_static 22202 22203 # What type of objects to build. 22204 pic_mode=$pic_mode 22205 22206 # Whether or not to optimize for fast installation. 22207 fast_install=$enable_fast_install 22208 22209 # Shared archive member basename,for filename based shared library versioning on AIX. 22210 shared_archive_member_spec=$shared_archive_member_spec 22211 22212 # Shell to use when invoking shell scripts. 22213 SHELL=$lt_SHELL 22214 22215 # An echo program that protects backslashes. 22216 ECHO=$lt_ECHO 22217 22218 # The PATH separator for the build system. 22219 PATH_SEPARATOR=$lt_PATH_SEPARATOR 22220 22221 # The host system. 22222 host_alias=$host_alias 22223 host=$host 22224 host_os=$host_os 22225 22226 # The build system. 22227 build_alias=$build_alias 22228 build=$build 22229 build_os=$build_os 22230 22231 # A sed program that does not truncate output. 22232 SED=$lt_SED 22233 22234 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 22235 Xsed="\$SED -e 1s/^X//" 22236 22237 # A grep program that handles long lines. 22238 GREP=$lt_GREP 22239 22240 # An ERE matcher. 22241 EGREP=$lt_EGREP 22242 22243 # A literal string matcher. 22244 FGREP=$lt_FGREP 22245 22246 # A BSD- or MS-compatible name lister. 22247 NM=$lt_NM 22248 22249 # Whether we need soft or hard links. 22250 LN_S=$lt_LN_S 22251 22252 # What is the maximum length of a command? 22253 max_cmd_len=$max_cmd_len 22254 22255 # Object file suffix (normally "o"). 22256 objext=$ac_objext 22257 22258 # Executable file suffix (normally ""). 22259 exeext=$exeext 22260 22261 # whether the shell understands "unset". 22262 lt_unset=$lt_unset 22263 22264 # turn spaces into newlines. 22265 SP2NL=$lt_lt_SP2NL 22266 22267 # turn newlines into spaces. 22268 NL2SP=$lt_lt_NL2SP 22269 22270 # convert \$build file names to \$host format. 22271 to_host_file_cmd=$lt_cv_to_host_file_cmd 22272 22273 # convert \$build files to toolchain format. 22274 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22275 22276 # A file(cmd) program that detects file types. 22277 FILECMD=$lt_FILECMD 22278 22279 # An object symbol dumper. 22280 OBJDUMP=$lt_OBJDUMP 22281 22282 # Method to check whether dependent libraries are shared objects. 22283 deplibs_check_method=$lt_deplibs_check_method 22284 22285 # Command to use when deplibs_check_method = "file_magic". 22286 file_magic_cmd=$lt_file_magic_cmd 22287 22288 # How to find potential files when deplibs_check_method = "file_magic". 22289 file_magic_glob=$lt_file_magic_glob 22290 22291 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22292 want_nocaseglob=$lt_want_nocaseglob 22293 22294 # DLL creation program. 22295 DLLTOOL=$lt_DLLTOOL 22296 22297 # Command to associate shared and link libraries. 22298 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22299 22300 # The archiver. 22301 AR=$lt_AR 22302 22303 # Flags to create an archive (by configure). 22304 lt_ar_flags=$lt_ar_flags 22305 22306 # Flags to create an archive. 22307 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22308 22309 # How to feed a file listing to the archiver. 22310 archiver_list_spec=$lt_archiver_list_spec 22311 22312 # A symbol stripping program. 22313 STRIP=$lt_STRIP 22314 22315 # Commands used to install an old-style archive. 22316 RANLIB=$lt_RANLIB 22317 old_postinstall_cmds=$lt_old_postinstall_cmds 22318 old_postuninstall_cmds=$lt_old_postuninstall_cmds 22319 22320 # Whether to use a lock for old archive extraction. 22321 lock_old_archive_extraction=$lock_old_archive_extraction 22322 22323 # A C compiler. 22324 LTCC=$lt_CC 22325 22326 # LTCC compiler flags. 22327 LTCFLAGS=$lt_CFLAGS 22328 22329 # Take the output of nm and produce a listing of raw symbols and C names. 22330 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22331 22332 # Transform the output of nm in a proper C declaration. 22333 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22334 22335 # Transform the output of nm into a list of symbols to manually relocate. 22336 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22337 22338 # Transform the output of nm in a C name address pair. 22339 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22340 22341 # Transform the output of nm in a C name address pair when lib prefix is needed. 22342 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22343 22344 # The name lister interface. 22345 nm_interface=$lt_lt_cv_nm_interface 22346 22347 # Specify filename containing input files for \$NM. 22348 nm_file_list_spec=$lt_nm_file_list_spec 22349 22350 # The root where to search for dependent libraries,and where our libraries should be installed. 22351 lt_sysroot=$lt_sysroot 22352 22353 # Command to truncate a binary pipe. 22354 lt_truncate_bin=$lt_lt_cv_truncate_bin 22355 22356 # The name of the directory that contains temporary libtool files. 22357 objdir=$objdir 22358 22359 # Used to examine libraries when file_magic_cmd begins with "file". 22360 MAGIC_CMD=$MAGIC_CMD 22361 22362 # Must we lock files when doing compilation? 22363 need_locks=$lt_need_locks 22364 22365 # Manifest tool. 22366 MANIFEST_TOOL=$lt_MANIFEST_TOOL 22367 22368 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22369 DSYMUTIL=$lt_DSYMUTIL 22370 22371 # Tool to change global to local symbols on Mac OS X. 22372 NMEDIT=$lt_NMEDIT 22373 22374 # Tool to manipulate fat objects and archives on Mac OS X. 22375 LIPO=$lt_LIPO 22376 22377 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 22378 OTOOL=$lt_OTOOL 22379 22380 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22381 OTOOL64=$lt_OTOOL64 22382 22383 # Old archive suffix (normally "a"). 22384 libext=$libext 22385 22386 # Shared library suffix (normally ".so"). 22387 shrext_cmds=$lt_shrext_cmds 22388 22389 # The commands to extract the exported symbol list from a shared archive. 22390 extract_expsyms_cmds=$lt_extract_expsyms_cmds 22391 22392 # Variables whose values should be saved in libtool wrapper scripts and 22393 # restored at link time. 22394 variables_saved_for_relink=$lt_variables_saved_for_relink 22395 22396 # Do we need the "lib" prefix for modules? 22397 need_lib_prefix=$need_lib_prefix 22398 22399 # Do we need a version for libraries? 22400 need_version=$need_version 22401 22402 # Library versioning type. 22403 version_type=$version_type 22404 22405 # Shared library runtime path variable. 22406 runpath_var=$runpath_var 22407 22408 # Shared library path variable. 22409 shlibpath_var=$shlibpath_var 22410 22411 # Is shlibpath searched before the hard-coded library search path? 22412 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22413 22414 # Format of library name prefix. 22415 libname_spec=$lt_libname_spec 22416 22417 # List of archive names. First name is the real one, the rest are links. 22418 # The last name is the one that the linker finds with -lNAME 22419 library_names_spec=$lt_library_names_spec 22420 22421 # The coded name of the library, if different from the real name. 22422 soname_spec=$lt_soname_spec 22423 22424 # Permission mode override for installation of shared libraries. 22425 install_override_mode=$lt_install_override_mode 22426 22427 # Command to use after installation of a shared archive. 22428 postinstall_cmds=$lt_postinstall_cmds 22429 22430 # Command to use after uninstallation of a shared archive. 22431 postuninstall_cmds=$lt_postuninstall_cmds 22432 22433 # Commands used to finish a libtool library installation in a directory. 22434 finish_cmds=$lt_finish_cmds 22435 22436 # As "finish_cmds", except a single script fragment to be evaled but 22437 # not shown. 22438 finish_eval=$lt_finish_eval 22439 22440 # Whether we should hardcode library paths into libraries. 22441 hardcode_into_libs=$hardcode_into_libs 22442 22443 # Compile-time system search path for libraries. 22444 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22445 22446 # Detected run-time system search path for libraries. 22447 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22448 22449 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22450 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22451 22452 # Whether dlopen is supported. 22453 dlopen_support=$enable_dlopen 22454 22455 # Whether dlopen of programs is supported. 22456 dlopen_self=$enable_dlopen_self 22457 22458 # Whether dlopen of statically linked programs is supported. 22459 dlopen_self_static=$enable_dlopen_self_static 22460 22461 # Commands to strip libraries. 22462 old_striplib=$lt_old_striplib 22463 striplib=$lt_striplib 22464 22465 22466 # The linker used to build libraries. 22467 LD=$lt_LD 22468 22469 # How to create reloadable object files. 22470 reload_flag=$lt_reload_flag 22471 reload_cmds=$lt_reload_cmds 22472 22473 # Commands used to build an old-style archive. 22474 old_archive_cmds=$lt_old_archive_cmds 22475 22476 # A language specific compiler. 22477 CC=$lt_compiler 22478 22479 # Is the compiler the GNU compiler? 22480 with_gcc=$GCC 22481 22482 # Compiler flag to turn off builtin functions. 22483 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22484 22485 # Additional compiler flags for building library objects. 22486 pic_flag=$lt_lt_prog_compiler_pic 22487 22488 # How to pass a linker flag through the compiler. 22489 wl=$lt_lt_prog_compiler_wl 22490 22491 # Compiler flag to prevent dynamic linking. 22492 link_static_flag=$lt_lt_prog_compiler_static 22493 22494 # Does compiler simultaneously support -c and -o options? 22495 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22496 22497 # Whether or not to add -lc for building shared libraries. 22498 build_libtool_need_lc=$archive_cmds_need_lc 22499 22500 # Whether or not to disallow shared libs when runtime libs are static. 22501 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22502 22503 # Compiler flag to allow reflexive dlopens. 22504 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22505 22506 # Compiler flag to generate shared objects directly from archives. 22507 whole_archive_flag_spec=$lt_whole_archive_flag_spec 22508 22509 # Whether the compiler copes with passing no objects directly. 22510 compiler_needs_object=$lt_compiler_needs_object 22511 22512 # Create an old-style archive from a shared archive. 22513 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22514 22515 # Create a temporary old-style archive to link instead of a shared archive. 22516 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22517 22518 # Commands used to build a shared archive. 22519 archive_cmds=$lt_archive_cmds 22520 archive_expsym_cmds=$lt_archive_expsym_cmds 22521 22522 # Commands used to build a loadable module if different from building 22523 # a shared archive. 22524 module_cmds=$lt_module_cmds 22525 module_expsym_cmds=$lt_module_expsym_cmds 22526 22527 # Whether we are building with GNU ld or not. 22528 with_gnu_ld=$lt_with_gnu_ld 22529 22530 # Flag that allows shared libraries with undefined symbols to be built. 22531 allow_undefined_flag=$lt_allow_undefined_flag 22532 22533 # Flag that enforces no undefined symbols. 22534 no_undefined_flag=$lt_no_undefined_flag 22535 22536 # Flag to hardcode \$libdir into a binary during linking. 22537 # This must work even if \$libdir does not exist 22538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22539 22540 # Whether we need a single "-rpath" flag with a separated argument. 22541 hardcode_libdir_separator=$lt_hardcode_libdir_separator 22542 22543 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22544 # DIR into the resulting binary. 22545 hardcode_direct=$hardcode_direct 22546 22547 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22548 # DIR into the resulting binary and the resulting library dependency is 22549 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the 22550 # library is relocated. 22551 hardcode_direct_absolute=$hardcode_direct_absolute 22552 22553 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22554 # into the resulting binary. 22555 hardcode_minus_L=$hardcode_minus_L 22556 22557 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22558 # into the resulting binary. 22559 hardcode_shlibpath_var=$hardcode_shlibpath_var 22560 22561 # Set to "yes" if building a shared library automatically hardcodes DIR 22562 # into the library and all subsequent libraries and executables linked 22563 # against it. 22564 hardcode_automatic=$hardcode_automatic 22565 22566 # Set to yes if linker adds runtime paths of dependent libraries 22567 # to runtime path list. 22568 inherit_rpath=$inherit_rpath 22569 22570 # Whether libtool must link a program against all its dependency libraries. 22571 link_all_deplibs=$link_all_deplibs 22572 22573 # Set to "yes" if exported symbols are required. 22574 always_export_symbols=$always_export_symbols 22575 22576 # The commands to list exported symbols. 22577 export_symbols_cmds=$lt_export_symbols_cmds 22578 22579 # Symbols that should not be listed in the preloaded symbols. 22580 exclude_expsyms=$lt_exclude_expsyms 22581 22582 # Symbols that must always be exported. 22583 include_expsyms=$lt_include_expsyms 22584 22585 # Commands necessary for linking programs (against libraries) with templates. 22586 prelink_cmds=$lt_prelink_cmds 22587 22588 # Commands necessary for finishing linking programs. 22589 postlink_cmds=$lt_postlink_cmds 22590 22591 # Specify filename containing input files. 22592 file_list_spec=$lt_file_list_spec 22593 22594 # How to hardcode a shared library path into an executable. 22595 hardcode_action=$hardcode_action 22596 22597 # ### END LIBTOOL CONFIG 22598 22599 _LT_EOF 22600 22601 cat <<'_LT_EOF' >> "$cfgfile" 22602 22603 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22604 22605 # func_munge_path_list VARIABLE PATH 22606 # ----------------------------------- 22607 # VARIABLE is name of variable containing _space_ separated list of 22608 # directories to be munged by the contents of PATH, which is string 22609 # having a format: 22610 # "DIR[:DIR]:" 22611 # string "DIR[ DIR]" will be prepended to VARIABLE 22612 # ":DIR[:DIR]" 22613 # string "DIR[ DIR]" will be appended to VARIABLE 22614 # "DIRP[:DIRP]::[DIRA:]DIRA" 22615 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22616 # "DIRA[ DIRA]" will be appended to VARIABLE 22617 # "DIR[:DIR]" 22618 # VARIABLE will be replaced by "DIR[ DIR]" 22619 func_munge_path_list () 22620 { 22621 case x$2 in 22622 x) 22623 ;; 22624 *:) 22625 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22626 ;; 22627 x:*) 22628 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22629 ;; 22630 *::*) 22631 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22632 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22633 ;; 22634 *) 22635 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22636 ;; 22637 esac 22638 } 22639 22640 22641 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22642 func_cc_basename () 22643 { 22644 for cc_temp in $*""; do 22645 case $cc_temp in 22646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22648 \-*) ;; 22649 *) break;; 22650 esac 22651 done 22652 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22653 } 22654 22655 22656 # ### END FUNCTIONS SHARED WITH CONFIGURE 22657 22658 _LT_EOF 22659 22660 case $host_os in 22661 aix3*) 22662 cat <<\_LT_EOF >> "$cfgfile" 22663 # AIX sometimes has problems with the GCC collect2 program. For some 22664 # reason, if we set the COLLECT_NAMES environment variable, the problems 22665 # vanish in a puff of smoke. 22666 if test set != "${COLLECT_NAMES+set}"; then 22667 COLLECT_NAMES= 22668 export COLLECT_NAMES 22669 fi 22670 _LT_EOF 22671 ;; 22672 esac 22673 22674 22675 22676 ltmain=$ac_aux_dir/ltmain.sh 22677 22678 22679 # We use sed instead of cat because bash on DJGPP gets confused if 22680 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22681 # text mode, it properly converts lines to CR/LF. This bash problem 22682 # is reportedly fixed, but why not run on old versions too? 22683 $SED '$q' "$ltmain" >> "$cfgfile" \ 22684 || (rm -f "$cfgfile"; exit 1) 22685 22686 mv -f "$cfgfile" "$ofile" || 22687 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22688 chmod +x "$ofile" 22689 22690 ;; 22691 22692 esac 22693 done # for ac_tag 22694 22695 22696 as_fn_exit 0 22697 _ACEOF 22698 ac_clean_files=$ac_clean_files_save 22699 22700 test $ac_write_fail = 0 || 22701 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22702 22703 22704 # configure is writing to config.log, and then calls config.status. 22705 # config.status does its own redirection, appending to config.log. 22706 # Unfortunately, on DOS this fails, as config.log is still kept open 22707 # by configure, so config.status won't be able to write to it; its 22708 # output is simply discarded. So we exec the FD to /dev/null, 22709 # effectively closing config.log, so it can be properly (re)opened and 22710 # appended to by config.status. When coming back to configure, we 22711 # need to make the FD available again. 22712 if test "$no_create" != yes; then 22713 ac_cs_success=: 22714 ac_config_status_args= 22715 test "$silent" = yes && 22716 ac_config_status_args="$ac_config_status_args --quiet" 22717 exec 5>/dev/null 22718 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22719 exec 5>>config.log 22720 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22721 # would make configure fail if this is the last instruction. 22722 $ac_cs_success || as_fn_exit 1 22723 fi 22724 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22726 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22727 fi 22728 22729 22730