1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for xf86-input-keyboard 2.0.0. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-keyboard/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 as_nop=: 21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22 then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29 else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed `exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145 then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152 else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177 fi 178 test x\$exitcode = x0 || exit 1 179 blah=\$(echo \$(echo blah)) 180 test x\"\$blah\" = xblah || exit 1 181 test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194 test \$(( 1 + 1 )) = 2 || exit 1" 195 if (eval "$as_required") 2>/dev/null 196 then : 197 as_have_required=yes 198 else $as_nop 199 as_have_required=no 200 fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202 then : 203 204 else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206 as_found=false 207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208 do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223 then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226 then : 227 break 2 228 fi 229 fi 230 done;; 231 esac 232 as_found=false 233 done 234 IFS=$as_save_IFS 235 if $as_found 236 then : 237 238 else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241 then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243 fi 244 fi 245 246 247 if test "x$CONFIG_SHELL" != x 248 then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251 # neutralization value for shells without unset; and this also 252 # works around shells that cannot unset nonexistent variables. 253 # Preserve -v and -x to the replacement shell. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264 # Admittedly, this is quite paranoid, since all the known shells bail 265 # out after a failed `exec'. 266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 268 fi 269 270 if test x$as_have_required = xno 271 then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 279 $0: https://gitlab.freedesktop.org/xorg/driver/xf86-input-keyboard/issues 280 $0: about your system, including any error possibly output 281 $0: before this message. Then install a modern shell, or 282 $0: manually run the script under such a shell if you do 283 $0: have one." 284 fi 285 exit 1 286 fi 287 fi 288 fi 289 SHELL=${CONFIG_SHELL-/bin/sh} 290 export SHELL 291 # Unset more variables known to interfere with behavior of common tools. 292 CLICOLOR_FORCE= GREP_OPTIONS= 293 unset CLICOLOR_FORCE GREP_OPTIONS 294 295 ## --------------------- ## 296 ## M4sh Shell Functions. ## 297 ## --------------------- ## 298 # as_fn_unset VAR 299 # --------------- 300 # Portably unset VAR. 301 as_fn_unset () 302 { 303 { eval $1=; unset $1;} 304 } 305 as_unset=as_fn_unset 306 307 308 # as_fn_set_status STATUS 309 # ----------------------- 310 # Set $? to STATUS, without forking. 311 as_fn_set_status () 312 { 313 return $1 314 } # as_fn_set_status 315 316 # as_fn_exit STATUS 317 # ----------------- 318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319 as_fn_exit () 320 { 321 set +e 322 as_fn_set_status $1 323 exit $1 324 } # as_fn_exit 325 # as_fn_nop 326 # --------- 327 # Do nothing but, unlike ":", preserve the value of $?. 328 as_fn_nop () 329 { 330 return $? 331 } 332 as_nop=as_fn_nop 333 334 # as_fn_mkdir_p 335 # ------------- 336 # Create "$as_dir" as a directory, including parents if necessary. 337 as_fn_mkdir_p () 338 { 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356 printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380 } # as_fn_mkdir_p 381 382 # as_fn_executable_p FILE 383 # ----------------------- 384 # Test if FILE is an executable regular file. 385 as_fn_executable_p () 386 { 387 test -f "$1" && test -x "$1" 388 } # as_fn_executable_p 389 # as_fn_append VAR VALUE 390 # ---------------------- 391 # Append the text in VALUE to the end of the definition contained in VAR. Take 392 # advantage of any shell optimizations that allow amortized linear growth over 393 # repeated appends, instead of the typical quadratic growth present in naive 394 # implementations. 395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396 then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401 else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406 fi # as_fn_append 407 408 # as_fn_arith ARG... 409 # ------------------ 410 # Perform arithmetic evaluation on the ARGs, and store the result in the 411 # global $as_val. Take advantage of shells that can avoid forks. The arguments 412 # must be portable across $(()) and expr. 413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414 then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419 else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424 fi # as_fn_arith 425 426 # as_fn_nop 427 # --------- 428 # Do nothing but, unlike ":", preserve the value of $?. 429 as_fn_nop () 430 { 431 return $? 432 } 433 as_nop=as_fn_nop 434 435 # as_fn_error STATUS ERROR [LINENO LOG_FD] 436 # ---------------------------------------- 437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439 # script with STATUS, using 1 if that was 0. 440 as_fn_error () 441 { 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449 } # as_fn_error 450 451 if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454 else 455 as_expr=false 456 fi 457 458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460 else 461 as_basename=false 462 fi 463 464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466 else 467 as_dirname=false 468 fi 469 470 as_me=`$as_basename -- "$0" || 471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474 printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489 # Avoid depending upon Character Ranges. 490 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493 as_cr_digits='0123456789' 494 as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530 } 531 532 533 # Determine whether it's possible to make 'echo' print without a newline. 534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535 # for compatibility with existing Makefiles. 536 ECHO_C= ECHO_N= ECHO_T= 537 case `echo -n x` in #((((( 538 -n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545 *) 546 ECHO_N='-n';; 547 esac 548 549 # For backward compatibility with old third-party macros, we provide 550 # the shell variables $as_echo and $as_echo_n. New code should use 551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552 as_echo='printf %s\n' 553 as_echo_n='printf %s' 554 555 556 rm -f conf$$ conf$$.exe conf$$.file 557 if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559 else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562 fi 563 if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577 else 578 as_ln_s='cp -pR' 579 fi 580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581 rmdir conf$$.dir 2>/dev/null 582 583 if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585 else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588 fi 589 590 as_test_x='test -x' 591 as_executable_p=as_fn_executable_p 592 593 # Sed expression to map a string onto a valid CPP name. 594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596 # Sed expression to map a string onto a valid variable name. 597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599 SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602 test -n "$DJDIR" || exec 7<&0 </dev/null 603 exec 6>&1 604 605 # Name of the host. 606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607 # so uname gets run too. 608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610 # 611 # Initializations. 612 # 613 ac_default_prefix=/usr/local 614 ac_clean_files= 615 ac_config_libobj_dir=. 616 LIBOBJS= 617 cross_compiling=no 618 subdirs= 619 MFLAGS= 620 MAKEFLAGS= 621 622 # Identity of this package. 623 PACKAGE_NAME='xf86-input-keyboard' 624 PACKAGE_TARNAME='xf86-input-keyboard' 625 PACKAGE_VERSION='2.0.0' 626 PACKAGE_STRING='xf86-input-keyboard 2.0.0' 627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-input-keyboard/issues' 628 PACKAGE_URL='' 629 630 ac_unique_file="Makefile.am" 631 # Factoring default headers for most tests. 632 ac_includes_default="\ 633 #include <stddef.h> 634 #ifdef HAVE_STDIO_H 635 # include <stdio.h> 636 #endif 637 #ifdef HAVE_STDLIB_H 638 # include <stdlib.h> 639 #endif 640 #ifdef HAVE_STRING_H 641 # include <string.h> 642 #endif 643 #ifdef HAVE_INTTYPES_H 644 # include <inttypes.h> 645 #endif 646 #ifdef HAVE_STDINT_H 647 # include <stdint.h> 648 #endif 649 #ifdef HAVE_STRINGS_H 650 # include <strings.h> 651 #endif 652 #ifdef HAVE_SYS_TYPES_H 653 # include <sys/types.h> 654 #endif 655 #ifdef HAVE_SYS_STAT_H 656 # include <sys/stat.h> 657 #endif 658 #ifdef HAVE_UNISTD_H 659 # include <unistd.h> 660 #endif" 661 662 ac_header_c_list= 663 ac_subst_vars='am__EXEEXT_FALSE 664 am__EXEEXT_TRUE 665 LTLIBOBJS 666 LIBOBJS 667 DRIVER_NAME 668 HURD_FALSE 669 HURD_TRUE 670 SOLARIS_FALSE 671 SOLARIS_TRUE 672 BSD_FALSE 673 BSD_TRUE 674 OS_FLAGS 675 inputdir 676 XORG_LIBS 677 XORG_CFLAGS 678 MAN_SUBSTS 679 XORG_MAN_PAGE 680 ADMIN_MAN_DIR 681 DRIVER_MAN_DIR 682 MISC_MAN_DIR 683 FILE_MAN_DIR 684 LIB_MAN_DIR 685 APP_MAN_DIR 686 ADMIN_MAN_SUFFIX 687 DRIVER_MAN_SUFFIX 688 MISC_MAN_SUFFIX 689 FILE_MAN_SUFFIX 690 LIB_MAN_SUFFIX 691 APP_MAN_SUFFIX 692 INSTALL_CMD 693 PKG_CONFIG_LIBDIR 694 PKG_CONFIG_PATH 695 PKG_CONFIG 696 CHANGELOG_CMD 697 STRICT_CFLAGS 698 CWARNFLAGS 699 BASE_CFLAGS 700 LT_SYS_LIBRARY_PATH 701 OTOOL64 702 OTOOL 703 LIPO 704 NMEDIT 705 DSYMUTIL 706 MANIFEST_TOOL 707 RANLIB 708 ac_ct_AR 709 AR 710 DLLTOOL 711 OBJDUMP 712 FILECMD 713 LN_S 714 NM 715 ac_ct_DUMPBIN 716 DUMPBIN 717 LD 718 FGREP 719 EGREP 720 GREP 721 SED 722 am__fastdepCC_FALSE 723 am__fastdepCC_TRUE 724 CCDEPMODE 725 am__nodep 726 AMDEPBACKSLASH 727 AMDEP_FALSE 728 AMDEP_TRUE 729 am__include 730 DEPDIR 731 OBJEXT 732 EXEEXT 733 ac_ct_CC 734 CPPFLAGS 735 LDFLAGS 736 CFLAGS 737 CC 738 host_os 739 host_vendor 740 host_cpu 741 host 742 build_os 743 build_vendor 744 build_cpu 745 build 746 LIBTOOL 747 AM_BACKSLASH 748 AM_DEFAULT_VERBOSITY 749 AM_DEFAULT_V 750 AM_V 751 CSCOPE 752 ETAGS 753 CTAGS 754 am__untar 755 am__tar 756 AMTAR 757 am__leading_dot 758 SET_MAKE 759 AWK 760 mkdir_p 761 MKDIR_P 762 INSTALL_STRIP_PROGRAM 763 STRIP 764 install_sh 765 MAKEINFO 766 AUTOHEADER 767 AUTOMAKE 768 AUTOCONF 769 ACLOCAL 770 VERSION 771 PACKAGE 772 CYGPATH_W 773 am__isrc 774 INSTALL_DATA 775 INSTALL_SCRIPT 776 INSTALL_PROGRAM 777 target_alias 778 host_alias 779 build_alias 780 LIBS 781 ECHO_T 782 ECHO_N 783 ECHO_C 784 DEFS 785 mandir 786 localedir 787 libdir 788 psdir 789 pdfdir 790 dvidir 791 htmldir 792 infodir 793 docdir 794 oldincludedir 795 includedir 796 runstatedir 797 localstatedir 798 sharedstatedir 799 sysconfdir 800 datadir 801 datarootdir 802 libexecdir 803 sbindir 804 bindir 805 program_transform_name 806 prefix 807 exec_prefix 808 PACKAGE_URL 809 PACKAGE_BUGREPORT 810 PACKAGE_STRING 811 PACKAGE_VERSION 812 PACKAGE_TARNAME 813 PACKAGE_NAME 814 PATH_SEPARATOR 815 SHELL 816 am__quote' 817 ac_subst_files='' 818 ac_user_opts=' 819 enable_option_checking 820 enable_silent_rules 821 enable_static 822 enable_shared 823 with_pic 824 enable_fast_install 825 with_aix_soname 826 enable_dependency_tracking 827 with_gnu_ld 828 with_sysroot 829 enable_libtool_lock 830 enable_selective_werror 831 enable_strict_compilation 832 with_xorg_module_dir 833 ' 834 ac_precious_vars='build_alias 835 host_alias 836 target_alias 837 CC 838 CFLAGS 839 LDFLAGS 840 LIBS 841 CPPFLAGS 842 LT_SYS_LIBRARY_PATH 843 PKG_CONFIG 844 PKG_CONFIG_PATH 845 PKG_CONFIG_LIBDIR 846 XORG_CFLAGS 847 XORG_LIBS' 848 849 850 # Initialize some variables set by options. 851 ac_init_help= 852 ac_init_version=false 853 ac_unrecognized_opts= 854 ac_unrecognized_sep= 855 # The variables have the same names as the options, with 856 # dashes changed to underlines. 857 cache_file=/dev/null 858 exec_prefix=NONE 859 no_create= 860 no_recursion= 861 prefix=NONE 862 program_prefix=NONE 863 program_suffix=NONE 864 program_transform_name=s,x,x, 865 silent= 866 site= 867 srcdir= 868 verbose= 869 x_includes=NONE 870 x_libraries=NONE 871 872 # Installation directory options. 873 # These are left unexpanded so users can "make install exec_prefix=/foo" 874 # and all the variables that are supposed to be based on exec_prefix 875 # by default will actually change. 876 # Use braces instead of parens because sh, perl, etc. also accept them. 877 # (The list follows the same order as the GNU Coding Standards.) 878 bindir='${exec_prefix}/bin' 879 sbindir='${exec_prefix}/sbin' 880 libexecdir='${exec_prefix}/libexec' 881 datarootdir='${prefix}/share' 882 datadir='${datarootdir}' 883 sysconfdir='${prefix}/etc' 884 sharedstatedir='${prefix}/com' 885 localstatedir='${prefix}/var' 886 runstatedir='${localstatedir}/run' 887 includedir='${prefix}/include' 888 oldincludedir='/usr/include' 889 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 890 infodir='${datarootdir}/info' 891 htmldir='${docdir}' 892 dvidir='${docdir}' 893 pdfdir='${docdir}' 894 psdir='${docdir}' 895 libdir='${exec_prefix}/lib' 896 localedir='${datarootdir}/locale' 897 mandir='${datarootdir}/man' 898 899 ac_prev= 900 ac_dashdash= 901 for ac_option 902 do 903 # If the previous option needs an argument, assign it. 904 if test -n "$ac_prev"; then 905 eval $ac_prev=\$ac_option 906 ac_prev= 907 continue 908 fi 909 910 case $ac_option in 911 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 912 *=) ac_optarg= ;; 913 *) ac_optarg=yes ;; 914 esac 915 916 case $ac_dashdash$ac_option in 917 --) 918 ac_dashdash=yes ;; 919 920 -bindir | --bindir | --bindi | --bind | --bin | --bi) 921 ac_prev=bindir ;; 922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 923 bindir=$ac_optarg ;; 924 925 -build | --build | --buil | --bui | --bu) 926 ac_prev=build_alias ;; 927 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 928 build_alias=$ac_optarg ;; 929 930 -cache-file | --cache-file | --cache-fil | --cache-fi \ 931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 932 ac_prev=cache_file ;; 933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 935 cache_file=$ac_optarg ;; 936 937 --config-cache | -C) 938 cache_file=config.cache ;; 939 940 -datadir | --datadir | --datadi | --datad) 941 ac_prev=datadir ;; 942 -datadir=* | --datadir=* | --datadi=* | --datad=*) 943 datadir=$ac_optarg ;; 944 945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 946 | --dataroo | --dataro | --datar) 947 ac_prev=datarootdir ;; 948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 950 datarootdir=$ac_optarg ;; 951 952 -disable-* | --disable-*) 953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 954 # Reject names that are not valid shell variable names. 955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 956 as_fn_error $? "invalid feature name: \`$ac_useropt'" 957 ac_useropt_orig=$ac_useropt 958 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 959 case $ac_user_opts in 960 *" 961 "enable_$ac_useropt" 962 "*) ;; 963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 964 ac_unrecognized_sep=', ';; 965 esac 966 eval enable_$ac_useropt=no ;; 967 968 -docdir | --docdir | --docdi | --doc | --do) 969 ac_prev=docdir ;; 970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 971 docdir=$ac_optarg ;; 972 973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 974 ac_prev=dvidir ;; 975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 976 dvidir=$ac_optarg ;; 977 978 -enable-* | --enable-*) 979 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 980 # Reject names that are not valid shell variable names. 981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 982 as_fn_error $? "invalid feature name: \`$ac_useropt'" 983 ac_useropt_orig=$ac_useropt 984 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 985 case $ac_user_opts in 986 *" 987 "enable_$ac_useropt" 988 "*) ;; 989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 990 ac_unrecognized_sep=', ';; 991 esac 992 eval enable_$ac_useropt=\$ac_optarg ;; 993 994 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 995 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 996 | --exec | --exe | --ex) 997 ac_prev=exec_prefix ;; 998 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 999 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1000 | --exec=* | --exe=* | --ex=*) 1001 exec_prefix=$ac_optarg ;; 1002 1003 -gas | --gas | --ga | --g) 1004 # Obsolete; use --with-gas. 1005 with_gas=yes ;; 1006 1007 -help | --help | --hel | --he | -h) 1008 ac_init_help=long ;; 1009 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1010 ac_init_help=recursive ;; 1011 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1012 ac_init_help=short ;; 1013 1014 -host | --host | --hos | --ho) 1015 ac_prev=host_alias ;; 1016 -host=* | --host=* | --hos=* | --ho=*) 1017 host_alias=$ac_optarg ;; 1018 1019 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1020 ac_prev=htmldir ;; 1021 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1022 | --ht=*) 1023 htmldir=$ac_optarg ;; 1024 1025 -includedir | --includedir | --includedi | --included | --include \ 1026 | --includ | --inclu | --incl | --inc) 1027 ac_prev=includedir ;; 1028 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1029 | --includ=* | --inclu=* | --incl=* | --inc=*) 1030 includedir=$ac_optarg ;; 1031 1032 -infodir | --infodir | --infodi | --infod | --info | --inf) 1033 ac_prev=infodir ;; 1034 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1035 infodir=$ac_optarg ;; 1036 1037 -libdir | --libdir | --libdi | --libd) 1038 ac_prev=libdir ;; 1039 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1040 libdir=$ac_optarg ;; 1041 1042 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1043 | --libexe | --libex | --libe) 1044 ac_prev=libexecdir ;; 1045 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1046 | --libexe=* | --libex=* | --libe=*) 1047 libexecdir=$ac_optarg ;; 1048 1049 -localedir | --localedir | --localedi | --localed | --locale) 1050 ac_prev=localedir ;; 1051 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1052 localedir=$ac_optarg ;; 1053 1054 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1055 | --localstate | --localstat | --localsta | --localst | --locals) 1056 ac_prev=localstatedir ;; 1057 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1058 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1059 localstatedir=$ac_optarg ;; 1060 1061 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1062 ac_prev=mandir ;; 1063 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1064 mandir=$ac_optarg ;; 1065 1066 -nfp | --nfp | --nf) 1067 # Obsolete; use --without-fp. 1068 with_fp=no ;; 1069 1070 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1071 | --no-cr | --no-c | -n) 1072 no_create=yes ;; 1073 1074 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1075 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1076 no_recursion=yes ;; 1077 1078 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1079 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1080 | --oldin | --oldi | --old | --ol | --o) 1081 ac_prev=oldincludedir ;; 1082 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1083 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1084 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1085 oldincludedir=$ac_optarg ;; 1086 1087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1088 ac_prev=prefix ;; 1089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1090 prefix=$ac_optarg ;; 1091 1092 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1093 | --program-pre | --program-pr | --program-p) 1094 ac_prev=program_prefix ;; 1095 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1096 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1097 program_prefix=$ac_optarg ;; 1098 1099 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1100 | --program-suf | --program-su | --program-s) 1101 ac_prev=program_suffix ;; 1102 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1103 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1104 program_suffix=$ac_optarg ;; 1105 1106 -program-transform-name | --program-transform-name \ 1107 | --program-transform-nam | --program-transform-na \ 1108 | --program-transform-n | --program-transform- \ 1109 | --program-transform | --program-transfor \ 1110 | --program-transfo | --program-transf \ 1111 | --program-trans | --program-tran \ 1112 | --progr-tra | --program-tr | --program-t) 1113 ac_prev=program_transform_name ;; 1114 -program-transform-name=* | --program-transform-name=* \ 1115 | --program-transform-nam=* | --program-transform-na=* \ 1116 | --program-transform-n=* | --program-transform-=* \ 1117 | --program-transform=* | --program-transfor=* \ 1118 | --program-transfo=* | --program-transf=* \ 1119 | --program-trans=* | --program-tran=* \ 1120 | --progr-tra=* | --program-tr=* | --program-t=*) 1121 program_transform_name=$ac_optarg ;; 1122 1123 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1124 ac_prev=pdfdir ;; 1125 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1126 pdfdir=$ac_optarg ;; 1127 1128 -psdir | --psdir | --psdi | --psd | --ps) 1129 ac_prev=psdir ;; 1130 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1131 psdir=$ac_optarg ;; 1132 1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1134 | -silent | --silent | --silen | --sile | --sil) 1135 silent=yes ;; 1136 1137 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1138 | --runstate | --runstat | --runsta | --runst | --runs \ 1139 | --run | --ru | --r) 1140 ac_prev=runstatedir ;; 1141 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1142 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1143 | --run=* | --ru=* | --r=*) 1144 runstatedir=$ac_optarg ;; 1145 1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1147 ac_prev=sbindir ;; 1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1149 | --sbi=* | --sb=*) 1150 sbindir=$ac_optarg ;; 1151 1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1154 | --sharedst | --shareds | --shared | --share | --shar \ 1155 | --sha | --sh) 1156 ac_prev=sharedstatedir ;; 1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1160 | --sha=* | --sh=*) 1161 sharedstatedir=$ac_optarg ;; 1162 1163 -site | --site | --sit) 1164 ac_prev=site ;; 1165 -site=* | --site=* | --sit=*) 1166 site=$ac_optarg ;; 1167 1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1169 ac_prev=srcdir ;; 1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1171 srcdir=$ac_optarg ;; 1172 1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1174 | --syscon | --sysco | --sysc | --sys | --sy) 1175 ac_prev=sysconfdir ;; 1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1178 sysconfdir=$ac_optarg ;; 1179 1180 -target | --target | --targe | --targ | --tar | --ta | --t) 1181 ac_prev=target_alias ;; 1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1183 target_alias=$ac_optarg ;; 1184 1185 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1186 verbose=yes ;; 1187 1188 -version | --version | --versio | --versi | --vers | -V) 1189 ac_init_version=: ;; 1190 1191 -with-* | --with-*) 1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1193 # Reject names that are not valid shell variable names. 1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1195 as_fn_error $? "invalid package name: \`$ac_useropt'" 1196 ac_useropt_orig=$ac_useropt 1197 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1198 case $ac_user_opts in 1199 *" 1200 "with_$ac_useropt" 1201 "*) ;; 1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1203 ac_unrecognized_sep=', ';; 1204 esac 1205 eval with_$ac_useropt=\$ac_optarg ;; 1206 1207 -without-* | --without-*) 1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1209 # Reject names that are not valid shell variable names. 1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1211 as_fn_error $? "invalid package name: \`$ac_useropt'" 1212 ac_useropt_orig=$ac_useropt 1213 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1214 case $ac_user_opts in 1215 *" 1216 "with_$ac_useropt" 1217 "*) ;; 1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1219 ac_unrecognized_sep=', ';; 1220 esac 1221 eval with_$ac_useropt=no ;; 1222 1223 --x) 1224 # Obsolete; use --with-x. 1225 with_x=yes ;; 1226 1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1228 | --x-incl | --x-inc | --x-in | --x-i) 1229 ac_prev=x_includes ;; 1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1232 x_includes=$ac_optarg ;; 1233 1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1236 ac_prev=x_libraries ;; 1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1239 x_libraries=$ac_optarg ;; 1240 1241 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1242 Try \`$0 --help' for more information" 1243 ;; 1244 1245 *=*) 1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1247 # Reject names that are not valid shell variable names. 1248 case $ac_envvar in #( 1249 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1251 esac 1252 eval $ac_envvar=\$ac_optarg 1253 export $ac_envvar ;; 1254 1255 *) 1256 # FIXME: should be removed in autoconf 3.0. 1257 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1259 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1261 ;; 1262 1263 esac 1264 done 1265 1266 if test -n "$ac_prev"; then 1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1268 as_fn_error $? "missing argument to $ac_option" 1269 fi 1270 1271 if test -n "$ac_unrecognized_opts"; then 1272 case $enable_option_checking in 1273 no) ;; 1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1275 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1276 esac 1277 fi 1278 1279 # Check all directory arguments for consistency. 1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1281 datadir sysconfdir sharedstatedir localstatedir includedir \ 1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1283 libdir localedir mandir runstatedir 1284 do 1285 eval ac_val=\$$ac_var 1286 # Remove trailing slashes. 1287 case $ac_val in 1288 */ ) 1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1290 eval $ac_var=\$ac_val;; 1291 esac 1292 # Be sure to have absolute directory names. 1293 case $ac_val in 1294 [\\/$]* | ?:[\\/]* ) continue;; 1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1296 esac 1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1298 done 1299 1300 # There might be people who depend on the old broken behavior: `$host' 1301 # used to hold the argument of --host etc. 1302 # FIXME: To remove some day. 1303 build=$build_alias 1304 host=$host_alias 1305 target=$target_alias 1306 1307 # FIXME: To remove some day. 1308 if test "x$host_alias" != x; then 1309 if test "x$build_alias" = x; then 1310 cross_compiling=maybe 1311 elif test "x$build_alias" != "x$host_alias"; then 1312 cross_compiling=yes 1313 fi 1314 fi 1315 1316 ac_tool_prefix= 1317 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1318 1319 test "$silent" = yes && exec 6>/dev/null 1320 1321 1322 ac_pwd=`pwd` && test -n "$ac_pwd" && 1323 ac_ls_di=`ls -di .` && 1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1325 as_fn_error $? "working directory cannot be determined" 1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1327 as_fn_error $? "pwd does not report name of working directory" 1328 1329 1330 # Find the source files, if location was not specified. 1331 if test -z "$srcdir"; then 1332 ac_srcdir_defaulted=yes 1333 # Try the directory containing this script, then the parent directory. 1334 ac_confdir=`$as_dirname -- "$as_myself" || 1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1336 X"$as_myself" : 'X\(//\)[^/]' \| \ 1337 X"$as_myself" : 'X\(//\)$' \| \ 1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1339 printf "%s\n" X"$as_myself" | 1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1341 s//\1/ 1342 q 1343 } 1344 /^X\(\/\/\)[^/].*/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\/\)$/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\).*/{ 1353 s//\1/ 1354 q 1355 } 1356 s/.*/./; q'` 1357 srcdir=$ac_confdir 1358 if test ! -r "$srcdir/$ac_unique_file"; then 1359 srcdir=.. 1360 fi 1361 else 1362 ac_srcdir_defaulted=no 1363 fi 1364 if test ! -r "$srcdir/$ac_unique_file"; then 1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1367 fi 1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1369 ac_abs_confdir=`( 1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1371 pwd)` 1372 # When building in place, set srcdir=. 1373 if test "$ac_abs_confdir" = "$ac_pwd"; then 1374 srcdir=. 1375 fi 1376 # Remove unnecessary trailing slashes from srcdir. 1377 # Double slashes in file names in object file debugging info 1378 # mess up M-x gdb in Emacs. 1379 case $srcdir in 1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1381 esac 1382 for ac_var in $ac_precious_vars; do 1383 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1384 eval ac_env_${ac_var}_value=\$${ac_var} 1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1386 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1387 done 1388 1389 # 1390 # Report the --help message. 1391 # 1392 if test "$ac_init_help" = "long"; then 1393 # Omit some internal or obsolete options to make the list less imposing. 1394 # This message is too long to be a string in the A/UX 3.1 sh. 1395 cat <<_ACEOF 1396 \`configure' configures xf86-input-keyboard 2.0.0 to adapt to many kinds of systems. 1397 1398 Usage: $0 [OPTION]... [VAR=VALUE]... 1399 1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1401 VAR=VALUE. See below for descriptions of some of the useful variables. 1402 1403 Defaults for the options are specified in brackets. 1404 1405 Configuration: 1406 -h, --help display this help and exit 1407 --help=short display options specific to this package 1408 --help=recursive display the short help of all the included packages 1409 -V, --version display version information and exit 1410 -q, --quiet, --silent do not print \`checking ...' messages 1411 --cache-file=FILE cache test results in FILE [disabled] 1412 -C, --config-cache alias for \`--cache-file=config.cache' 1413 -n, --no-create do not create output files 1414 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1415 1416 Installation directories: 1417 --prefix=PREFIX install architecture-independent files in PREFIX 1418 [$ac_default_prefix] 1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1420 [PREFIX] 1421 1422 By default, \`make install' will install all the files in 1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1425 for instance \`--prefix=\$HOME'. 1426 1427 For better control, use the options below. 1428 1429 Fine tuning of the installation directories: 1430 --bindir=DIR user executables [EPREFIX/bin] 1431 --sbindir=DIR system admin executables [EPREFIX/sbin] 1432 --libexecdir=DIR program executables [EPREFIX/libexec] 1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1436 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1437 --libdir=DIR object code libraries [EPREFIX/lib] 1438 --includedir=DIR C header files [PREFIX/include] 1439 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1442 --infodir=DIR info documentation [DATAROOTDIR/info] 1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1444 --mandir=DIR man documentation [DATAROOTDIR/man] 1445 --docdir=DIR documentation root 1446 [DATAROOTDIR/doc/xf86-input-keyboard] 1447 --htmldir=DIR html documentation [DOCDIR] 1448 --dvidir=DIR dvi documentation [DOCDIR] 1449 --pdfdir=DIR pdf documentation [DOCDIR] 1450 --psdir=DIR ps documentation [DOCDIR] 1451 _ACEOF 1452 1453 cat <<\_ACEOF 1454 1455 Program names: 1456 --program-prefix=PREFIX prepend PREFIX to installed program names 1457 --program-suffix=SUFFIX append SUFFIX to installed program names 1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1459 1460 System types: 1461 --build=BUILD configure for building on BUILD [guessed] 1462 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1463 _ACEOF 1464 fi 1465 1466 if test -n "$ac_init_help"; then 1467 case $ac_init_help in 1468 short | recursive ) echo "Configuration of xf86-input-keyboard 2.0.0:";; 1469 esac 1470 cat <<\_ACEOF 1471 1472 Optional Features: 1473 --disable-option-checking ignore unrecognized --enable/--with options 1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1476 --enable-silent-rules less verbose build output (undo: "make V=1") 1477 --disable-silent-rules verbose build output (undo: "make V=0") 1478 --enable-static[=PKGS] build static libraries [default=no] 1479 --enable-shared[=PKGS] build shared libraries [default=yes] 1480 --enable-fast-install[=PKGS] 1481 optimize for fast installation [default=yes] 1482 --enable-dependency-tracking 1483 do not reject slow dependency extractors 1484 --disable-dependency-tracking 1485 speeds up one-time build 1486 --disable-libtool-lock avoid locking (might break parallel builds) 1487 --disable-selective-werror 1488 Turn off selective compiler errors. (default: 1489 enabled) 1490 --enable-strict-compilation 1491 Enable all warnings from compiler and make them 1492 errors (default: disabled) 1493 1494 Optional Packages: 1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1498 both] 1499 --with-aix-soname=aix|svr4|both 1500 shared library versioning (aka "SONAME") variant to 1501 provide on AIX, [default=aix]. 1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1503 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1504 compiler's sysroot if not specified). 1505 --with-xorg-module-dir=DIR 1506 Default xorg module directory 1507 [[default=$libdir/xorg/modules]] 1508 1509 Some influential environment variables: 1510 CC C compiler command 1511 CFLAGS C compiler flags 1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1513 nonstandard directory <lib dir> 1514 LIBS libraries to pass to the linker, e.g. -l<library> 1515 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1516 you have headers in a nonstandard directory <include dir> 1517 LT_SYS_LIBRARY_PATH 1518 User-defined run-time library search path. 1519 PKG_CONFIG path to pkg-config utility 1520 PKG_CONFIG_PATH 1521 directories to add to pkg-config's search path 1522 PKG_CONFIG_LIBDIR 1523 path overriding pkg-config's built-in search path 1524 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1525 XORG_LIBS linker flags for XORG, overriding pkg-config 1526 1527 Use these variables to override the choices made by `configure' or to help 1528 it to find libraries and programs with nonstandard names/locations. 1529 1530 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-keyboard/issues>. 1531 _ACEOF 1532 ac_status=$? 1533 fi 1534 1535 if test "$ac_init_help" = "recursive"; then 1536 # If there are subdirs, report their specific --help. 1537 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1538 test -d "$ac_dir" || 1539 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1540 continue 1541 ac_builddir=. 1542 1543 case "$ac_dir" in 1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1545 *) 1546 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1547 # A ".." for each directory in $ac_dir_suffix. 1548 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1549 case $ac_top_builddir_sub in 1550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1552 esac ;; 1553 esac 1554 ac_abs_top_builddir=$ac_pwd 1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1556 # for backward compatibility: 1557 ac_top_builddir=$ac_top_build_prefix 1558 1559 case $srcdir in 1560 .) # We are building in place. 1561 ac_srcdir=. 1562 ac_top_srcdir=$ac_top_builddir_sub 1563 ac_abs_top_srcdir=$ac_pwd ;; 1564 [\\/]* | ?:[\\/]* ) # Absolute name. 1565 ac_srcdir=$srcdir$ac_dir_suffix; 1566 ac_top_srcdir=$srcdir 1567 ac_abs_top_srcdir=$srcdir ;; 1568 *) # Relative name. 1569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1570 ac_top_srcdir=$ac_top_build_prefix$srcdir 1571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1572 esac 1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1574 1575 cd "$ac_dir" || { ac_status=$?; continue; } 1576 # Check for configure.gnu first; this name is used for a wrapper for 1577 # Metaconfig's "Configure" on case-insensitive file systems. 1578 if test -f "$ac_srcdir/configure.gnu"; then 1579 echo && 1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1581 elif test -f "$ac_srcdir/configure"; then 1582 echo && 1583 $SHELL "$ac_srcdir/configure" --help=recursive 1584 else 1585 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1586 fi || ac_status=$? 1587 cd "$ac_pwd" || { ac_status=$?; break; } 1588 done 1589 fi 1590 1591 test -n "$ac_init_help" && exit $ac_status 1592 if $ac_init_version; then 1593 cat <<\_ACEOF 1594 xf86-input-keyboard configure 2.0.0 1595 generated by GNU Autoconf 2.71 1596 1597 Copyright (C) 2021 Free Software Foundation, Inc. 1598 This configure script is free software; the Free Software Foundation 1599 gives unlimited permission to copy, distribute and modify it. 1600 _ACEOF 1601 exit 1602 fi 1603 1604 ## ------------------------ ## 1605 ## Autoconf initialization. ## 1606 ## ------------------------ ## 1607 1608 # ac_fn_c_try_compile LINENO 1609 # -------------------------- 1610 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1611 ac_fn_c_try_compile () 1612 { 1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1614 rm -f conftest.$ac_objext conftest.beam 1615 if { { ac_try="$ac_compile" 1616 case "(($ac_try" in 1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1618 *) ac_try_echo=$ac_try;; 1619 esac 1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1621 printf "%s\n" "$ac_try_echo"; } >&5 1622 (eval "$ac_compile") 2>conftest.err 1623 ac_status=$? 1624 if test -s conftest.err; then 1625 grep -v '^ *+' conftest.err >conftest.er1 1626 cat conftest.er1 >&5 1627 mv -f conftest.er1 conftest.err 1628 fi 1629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1630 test $ac_status = 0; } && { 1631 test -z "$ac_c_werror_flag" || 1632 test ! -s conftest.err 1633 } && test -s conftest.$ac_objext 1634 then : 1635 ac_retval=0 1636 else $as_nop 1637 printf "%s\n" "$as_me: failed program was:" >&5 1638 sed 's/^/| /' conftest.$ac_ext >&5 1639 1640 ac_retval=1 1641 fi 1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1643 as_fn_set_status $ac_retval 1644 1645 } # ac_fn_c_try_compile 1646 1647 # ac_fn_c_try_link LINENO 1648 # ----------------------- 1649 # Try to link conftest.$ac_ext, and return whether this succeeded. 1650 ac_fn_c_try_link () 1651 { 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1654 if { { ac_try="$ac_link" 1655 case "(($ac_try" in 1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657 *) ac_try_echo=$ac_try;; 1658 esac 1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660 printf "%s\n" "$ac_try_echo"; } >&5 1661 (eval "$ac_link") 2>conftest.err 1662 ac_status=$? 1663 if test -s conftest.err; then 1664 grep -v '^ *+' conftest.err >conftest.er1 1665 cat conftest.er1 >&5 1666 mv -f conftest.er1 conftest.err 1667 fi 1668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1669 test $ac_status = 0; } && { 1670 test -z "$ac_c_werror_flag" || 1671 test ! -s conftest.err 1672 } && test -s conftest$ac_exeext && { 1673 test "$cross_compiling" = yes || 1674 test -x conftest$ac_exeext 1675 } 1676 then : 1677 ac_retval=0 1678 else $as_nop 1679 printf "%s\n" "$as_me: failed program was:" >&5 1680 sed 's/^/| /' conftest.$ac_ext >&5 1681 1682 ac_retval=1 1683 fi 1684 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1685 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1686 # interfere with the next link command; also delete a directory that is 1687 # left behind by Apple's compiler. We do this before executing the actions. 1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1690 as_fn_set_status $ac_retval 1691 1692 } # ac_fn_c_try_link 1693 1694 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1695 # ------------------------------------------------------- 1696 # Tests whether HEADER exists and can be compiled using the include files in 1697 # INCLUDES, setting the cache variable VAR accordingly. 1698 ac_fn_c_check_header_compile () 1699 { 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1702 printf %s "checking for $2... " >&6; } 1703 if eval test \${$3+y} 1704 then : 1705 printf %s "(cached) " >&6 1706 else $as_nop 1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1708 /* end confdefs.h. */ 1709 $4 1710 #include <$2> 1711 _ACEOF 1712 if ac_fn_c_try_compile "$LINENO" 1713 then : 1714 eval "$3=yes" 1715 else $as_nop 1716 eval "$3=no" 1717 fi 1718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1719 fi 1720 eval ac_res=\$$3 1721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1722 printf "%s\n" "$ac_res" >&6; } 1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1724 1725 } # ac_fn_c_check_header_compile 1726 1727 # ac_fn_c_check_func LINENO FUNC VAR 1728 # ---------------------------------- 1729 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1730 ac_fn_c_check_func () 1731 { 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1734 printf %s "checking for $2... " >&6; } 1735 if eval test \${$3+y} 1736 then : 1737 printf %s "(cached) " >&6 1738 else $as_nop 1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1740 /* end confdefs.h. */ 1741 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1742 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1743 #define $2 innocuous_$2 1744 1745 /* System header to define __stub macros and hopefully few prototypes, 1746 which can conflict with char $2 (); below. */ 1747 1748 #include <limits.h> 1749 #undef $2 1750 1751 /* Override any GCC internal prototype to avoid an error. 1752 Use char because int might match the return type of a GCC 1753 builtin and then its argument prototype would still apply. */ 1754 #ifdef __cplusplus 1755 extern "C" 1756 #endif 1757 char $2 (); 1758 /* The GNU C library defines this for functions which it implements 1759 to always fail with ENOSYS. Some functions are actually named 1760 something starting with __ and the normal name is an alias. */ 1761 #if defined __stub_$2 || defined __stub___$2 1762 choke me 1763 #endif 1764 1765 int 1766 main (void) 1767 { 1768 return $2 (); 1769 ; 1770 return 0; 1771 } 1772 _ACEOF 1773 if ac_fn_c_try_link "$LINENO" 1774 then : 1775 eval "$3=yes" 1776 else $as_nop 1777 eval "$3=no" 1778 fi 1779 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1780 conftest$ac_exeext conftest.$ac_ext 1781 fi 1782 eval ac_res=\$$3 1783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1784 printf "%s\n" "$ac_res" >&6; } 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 1787 } # ac_fn_c_check_func 1788 1789 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1790 # ------------------------------------------------------------------ 1791 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1792 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1793 ac_fn_check_decl () 1794 { 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 as_decl_name=`echo $2|sed 's/ *(.*//'` 1797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1798 printf %s "checking whether $as_decl_name is declared... " >&6; } 1799 if eval test \${$3+y} 1800 then : 1801 printf %s "(cached) " >&6 1802 else $as_nop 1803 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1804 eval ac_save_FLAGS=\$$6 1805 as_fn_append $6 " $5" 1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1807 /* end confdefs.h. */ 1808 $4 1809 int 1810 main (void) 1811 { 1812 #ifndef $as_decl_name 1813 #ifdef __cplusplus 1814 (void) $as_decl_use; 1815 #else 1816 (void) $as_decl_name; 1817 #endif 1818 #endif 1819 1820 ; 1821 return 0; 1822 } 1823 _ACEOF 1824 if ac_fn_c_try_compile "$LINENO" 1825 then : 1826 eval "$3=yes" 1827 else $as_nop 1828 eval "$3=no" 1829 fi 1830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1831 eval $6=\$ac_save_FLAGS 1832 1833 fi 1834 eval ac_res=\$$3 1835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1836 printf "%s\n" "$ac_res" >&6; } 1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1838 1839 } # ac_fn_check_decl 1840 ac_configure_args_raw= 1841 for ac_arg 1842 do 1843 case $ac_arg in 1844 *\'*) 1845 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1846 esac 1847 as_fn_append ac_configure_args_raw " '$ac_arg'" 1848 done 1849 1850 case $ac_configure_args_raw in 1851 *$as_nl*) 1852 ac_safe_unquote= ;; 1853 *) 1854 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1855 ac_unsafe_a="$ac_unsafe_z#~" 1856 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1857 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1858 esac 1859 1860 cat >config.log <<_ACEOF 1861 This file contains any messages produced by compilers while 1862 running configure, to aid debugging if configure makes a mistake. 1863 1864 It was created by xf86-input-keyboard $as_me 2.0.0, which was 1865 generated by GNU Autoconf 2.71. Invocation command line was 1866 1867 $ $0$ac_configure_args_raw 1868 1869 _ACEOF 1870 exec 5>>config.log 1871 { 1872 cat <<_ASUNAME 1873 ## --------- ## 1874 ## Platform. ## 1875 ## --------- ## 1876 1877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1878 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1879 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1880 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1881 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1882 1883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1884 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1885 1886 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1887 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1889 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1890 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1891 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1892 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1893 1894 _ASUNAME 1895 1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1897 for as_dir in $PATH 1898 do 1899 IFS=$as_save_IFS 1900 case $as_dir in #((( 1901 '') as_dir=./ ;; 1902 */) ;; 1903 *) as_dir=$as_dir/ ;; 1904 esac 1905 printf "%s\n" "PATH: $as_dir" 1906 done 1907 IFS=$as_save_IFS 1908 1909 } >&5 1910 1911 cat >&5 <<_ACEOF 1912 1913 1914 ## ----------- ## 1915 ## Core tests. ## 1916 ## ----------- ## 1917 1918 _ACEOF 1919 1920 1921 # Keep a trace of the command line. 1922 # Strip out --no-create and --no-recursion so they do not pile up. 1923 # Strip out --silent because we don't want to record it for future runs. 1924 # Also quote any args containing shell meta-characters. 1925 # Make two passes to allow for proper duplicate-argument suppression. 1926 ac_configure_args= 1927 ac_configure_args0= 1928 ac_configure_args1= 1929 ac_must_keep_next=false 1930 for ac_pass in 1 2 1931 do 1932 for ac_arg 1933 do 1934 case $ac_arg in 1935 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1936 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1937 | -silent | --silent | --silen | --sile | --sil) 1938 continue ;; 1939 *\'*) 1940 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1941 esac 1942 case $ac_pass in 1943 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1944 2) 1945 as_fn_append ac_configure_args1 " '$ac_arg'" 1946 if test $ac_must_keep_next = true; then 1947 ac_must_keep_next=false # Got value, back to normal. 1948 else 1949 case $ac_arg in 1950 *=* | --config-cache | -C | -disable-* | --disable-* \ 1951 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1952 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1953 | -with-* | --with-* | -without-* | --without-* | --x) 1954 case "$ac_configure_args0 " in 1955 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1956 esac 1957 ;; 1958 -* ) ac_must_keep_next=true ;; 1959 esac 1960 fi 1961 as_fn_append ac_configure_args " '$ac_arg'" 1962 ;; 1963 esac 1964 done 1965 done 1966 { ac_configure_args0=; unset ac_configure_args0;} 1967 { ac_configure_args1=; unset ac_configure_args1;} 1968 1969 # When interrupted or exit'd, cleanup temporary files, and complete 1970 # config.log. We remove comments because anyway the quotes in there 1971 # would cause problems or look ugly. 1972 # WARNING: Use '\'' to represent an apostrophe within the trap. 1973 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1974 trap 'exit_status=$? 1975 # Sanitize IFS. 1976 IFS=" "" $as_nl" 1977 # Save into config.log some information that might help in debugging. 1978 { 1979 echo 1980 1981 printf "%s\n" "## ---------------- ## 1982 ## Cache variables. ## 1983 ## ---------------- ##" 1984 echo 1985 # The following way of writing the cache mishandles newlines in values, 1986 ( 1987 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1988 eval ac_val=\$$ac_var 1989 case $ac_val in #( 1990 *${as_nl}*) 1991 case $ac_var in #( 1992 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1993 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1994 esac 1995 case $ac_var in #( 1996 _ | IFS | as_nl) ;; #( 1997 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1998 *) { eval $ac_var=; unset $ac_var;} ;; 1999 esac ;; 2000 esac 2001 done 2002 (set) 2>&1 | 2003 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2004 *${as_nl}ac_space=\ *) 2005 sed -n \ 2006 "s/'\''/'\''\\\\'\'''\''/g; 2007 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2008 ;; #( 2009 *) 2010 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2011 ;; 2012 esac | 2013 sort 2014 ) 2015 echo 2016 2017 printf "%s\n" "## ----------------- ## 2018 ## Output variables. ## 2019 ## ----------------- ##" 2020 echo 2021 for ac_var in $ac_subst_vars 2022 do 2023 eval ac_val=\$$ac_var 2024 case $ac_val in 2025 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2026 esac 2027 printf "%s\n" "$ac_var='\''$ac_val'\''" 2028 done | sort 2029 echo 2030 2031 if test -n "$ac_subst_files"; then 2032 printf "%s\n" "## ------------------- ## 2033 ## File substitutions. ## 2034 ## ------------------- ##" 2035 echo 2036 for ac_var in $ac_subst_files 2037 do 2038 eval ac_val=\$$ac_var 2039 case $ac_val in 2040 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2041 esac 2042 printf "%s\n" "$ac_var='\''$ac_val'\''" 2043 done | sort 2044 echo 2045 fi 2046 2047 if test -s confdefs.h; then 2048 printf "%s\n" "## ----------- ## 2049 ## confdefs.h. ## 2050 ## ----------- ##" 2051 echo 2052 cat confdefs.h 2053 echo 2054 fi 2055 test "$ac_signal" != 0 && 2056 printf "%s\n" "$as_me: caught signal $ac_signal" 2057 printf "%s\n" "$as_me: exit $exit_status" 2058 } >&5 2059 rm -f core *.core core.conftest.* && 2060 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2061 exit $exit_status 2062 ' 0 2063 for ac_signal in 1 2 13 15; do 2064 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2065 done 2066 ac_signal=0 2067 2068 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2069 rm -f -r conftest* confdefs.h 2070 2071 printf "%s\n" "/* confdefs.h */" > confdefs.h 2072 2073 # Predefined preprocessor variables. 2074 2075 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2076 2077 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2078 2079 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2080 2081 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2082 2083 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2084 2085 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2086 2087 2088 # Let the site file select an alternate cache file if it wants to. 2089 # Prefer an explicitly selected file to automatically selected ones. 2090 if test -n "$CONFIG_SITE"; then 2091 ac_site_files="$CONFIG_SITE" 2092 elif test "x$prefix" != xNONE; then 2093 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2094 else 2095 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2096 fi 2097 2098 for ac_site_file in $ac_site_files 2099 do 2100 case $ac_site_file in #( 2101 */*) : 2102 ;; #( 2103 *) : 2104 ac_site_file=./$ac_site_file ;; 2105 esac 2106 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2108 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2109 sed 's/^/| /' "$ac_site_file" >&5 2110 . "$ac_site_file" \ 2111 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2112 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2113 as_fn_error $? "failed to load site script $ac_site_file 2114 See \`config.log' for more details" "$LINENO" 5; } 2115 fi 2116 done 2117 2118 if test -r "$cache_file"; then 2119 # Some versions of bash will fail to source /dev/null (special files 2120 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2121 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2123 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2124 case $cache_file in 2125 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2126 *) . "./$cache_file";; 2127 esac 2128 fi 2129 else 2130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2131 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2132 >$cache_file 2133 fi 2134 2135 # Test code for whether the C compiler supports C89 (global declarations) 2136 ac_c_conftest_c89_globals=' 2137 /* Does the compiler advertise C89 conformance? 2138 Do not test the value of __STDC__, because some compilers set it to 0 2139 while being otherwise adequately conformant. */ 2140 #if !defined __STDC__ 2141 # error "Compiler does not advertise C89 conformance" 2142 #endif 2143 2144 #include <stddef.h> 2145 #include <stdarg.h> 2146 struct stat; 2147 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2148 struct buf { int x; }; 2149 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2150 static char *e (p, i) 2151 char **p; 2152 int i; 2153 { 2154 return p[i]; 2155 } 2156 static char *f (char * (*g) (char **, int), char **p, ...) 2157 { 2158 char *s; 2159 va_list v; 2160 va_start (v,p); 2161 s = g (p, va_arg (v,int)); 2162 va_end (v); 2163 return s; 2164 } 2165 2166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2167 function prototypes and stuff, but not \xHH hex character constants. 2168 These do not provoke an error unfortunately, instead are silently treated 2169 as an "x". The following induces an error, until -std is added to get 2170 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2171 array size at least. It is necessary to write \x00 == 0 to get something 2172 that is true only with -std. */ 2173 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2174 2175 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2176 inside strings and character constants. */ 2177 #define FOO(x) '\''x'\'' 2178 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2179 2180 int test (int i, double x); 2181 struct s1 {int (*f) (int a);}; 2182 struct s2 {int (*f) (double a);}; 2183 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2184 int, int);' 2185 2186 # Test code for whether the C compiler supports C89 (body of main). 2187 ac_c_conftest_c89_main=' 2188 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2189 ' 2190 2191 # Test code for whether the C compiler supports C99 (global declarations) 2192 ac_c_conftest_c99_globals=' 2193 // Does the compiler advertise C99 conformance? 2194 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2195 # error "Compiler does not advertise C99 conformance" 2196 #endif 2197 2198 #include <stdbool.h> 2199 extern int puts (const char *); 2200 extern int printf (const char *, ...); 2201 extern int dprintf (int, const char *, ...); 2202 extern void *malloc (size_t); 2203 2204 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2205 // dprintf is used instead of fprintf to avoid needing to declare 2206 // FILE and stderr. 2207 #define debug(...) dprintf (2, __VA_ARGS__) 2208 #define showlist(...) puts (#__VA_ARGS__) 2209 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2210 static void 2211 test_varargs_macros (void) 2212 { 2213 int x = 1234; 2214 int y = 5678; 2215 debug ("Flag"); 2216 debug ("X = %d\n", x); 2217 showlist (The first, second, and third items.); 2218 report (x>y, "x is %d but y is %d", x, y); 2219 } 2220 2221 // Check long long types. 2222 #define BIG64 18446744073709551615ull 2223 #define BIG32 4294967295ul 2224 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2225 #if !BIG_OK 2226 #error "your preprocessor is broken" 2227 #endif 2228 #if BIG_OK 2229 #else 2230 #error "your preprocessor is broken" 2231 #endif 2232 static long long int bignum = -9223372036854775807LL; 2233 static unsigned long long int ubignum = BIG64; 2234 2235 struct incomplete_array 2236 { 2237 int datasize; 2238 double data[]; 2239 }; 2240 2241 struct named_init { 2242 int number; 2243 const wchar_t *name; 2244 double average; 2245 }; 2246 2247 typedef const char *ccp; 2248 2249 static inline int 2250 test_restrict (ccp restrict text) 2251 { 2252 // See if C++-style comments work. 2253 // Iterate through items via the restricted pointer. 2254 // Also check for declarations in for loops. 2255 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2256 continue; 2257 return 0; 2258 } 2259 2260 // Check varargs and va_copy. 2261 static bool 2262 test_varargs (const char *format, ...) 2263 { 2264 va_list args; 2265 va_start (args, format); 2266 va_list args_copy; 2267 va_copy (args_copy, args); 2268 2269 const char *str = ""; 2270 int number = 0; 2271 float fnumber = 0; 2272 2273 while (*format) 2274 { 2275 switch (*format++) 2276 { 2277 case '\''s'\'': // string 2278 str = va_arg (args_copy, const char *); 2279 break; 2280 case '\''d'\'': // int 2281 number = va_arg (args_copy, int); 2282 break; 2283 case '\''f'\'': // float 2284 fnumber = va_arg (args_copy, double); 2285 break; 2286 default: 2287 break; 2288 } 2289 } 2290 va_end (args_copy); 2291 va_end (args); 2292 2293 return *str && number && fnumber; 2294 } 2295 ' 2296 2297 # Test code for whether the C compiler supports C99 (body of main). 2298 ac_c_conftest_c99_main=' 2299 // Check bool. 2300 _Bool success = false; 2301 success |= (argc != 0); 2302 2303 // Check restrict. 2304 if (test_restrict ("String literal") == 0) 2305 success = true; 2306 char *restrict newvar = "Another string"; 2307 2308 // Check varargs. 2309 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2310 test_varargs_macros (); 2311 2312 // Check flexible array members. 2313 struct incomplete_array *ia = 2314 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2315 ia->datasize = 10; 2316 for (int i = 0; i < ia->datasize; ++i) 2317 ia->data[i] = i * 1.234; 2318 2319 // Check named initializers. 2320 struct named_init ni = { 2321 .number = 34, 2322 .name = L"Test wide string", 2323 .average = 543.34343, 2324 }; 2325 2326 ni.number = 58; 2327 2328 int dynamic_array[ni.number]; 2329 dynamic_array[0] = argv[0][0]; 2330 dynamic_array[ni.number - 1] = 543; 2331 2332 // work around unused variable warnings 2333 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2334 || dynamic_array[ni.number - 1] != 543); 2335 ' 2336 2337 # Test code for whether the C compiler supports C11 (global declarations) 2338 ac_c_conftest_c11_globals=' 2339 // Does the compiler advertise C11 conformance? 2340 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2341 # error "Compiler does not advertise C11 conformance" 2342 #endif 2343 2344 // Check _Alignas. 2345 char _Alignas (double) aligned_as_double; 2346 char _Alignas (0) no_special_alignment; 2347 extern char aligned_as_int; 2348 char _Alignas (0) _Alignas (int) aligned_as_int; 2349 2350 // Check _Alignof. 2351 enum 2352 { 2353 int_alignment = _Alignof (int), 2354 int_array_alignment = _Alignof (int[100]), 2355 char_alignment = _Alignof (char) 2356 }; 2357 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2358 2359 // Check _Noreturn. 2360 int _Noreturn does_not_return (void) { for (;;) continue; } 2361 2362 // Check _Static_assert. 2363 struct test_static_assert 2364 { 2365 int x; 2366 _Static_assert (sizeof (int) <= sizeof (long int), 2367 "_Static_assert does not work in struct"); 2368 long int y; 2369 }; 2370 2371 // Check UTF-8 literals. 2372 #define u8 syntax error! 2373 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2374 2375 // Check duplicate typedefs. 2376 typedef long *long_ptr; 2377 typedef long int *long_ptr; 2378 typedef long_ptr long_ptr; 2379 2380 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2381 struct anonymous 2382 { 2383 union { 2384 struct { int i; int j; }; 2385 struct { int k; long int l; } w; 2386 }; 2387 int m; 2388 } v1; 2389 ' 2390 2391 # Test code for whether the C compiler supports C11 (body of main). 2392 ac_c_conftest_c11_main=' 2393 _Static_assert ((offsetof (struct anonymous, i) 2394 == offsetof (struct anonymous, w.k)), 2395 "Anonymous union alignment botch"); 2396 v1.i = 2; 2397 v1.w.k = 5; 2398 ok |= v1.i != 5; 2399 ' 2400 2401 # Test code for whether the C compiler supports C11 (complete). 2402 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2403 ${ac_c_conftest_c99_globals} 2404 ${ac_c_conftest_c11_globals} 2405 2406 int 2407 main (int argc, char **argv) 2408 { 2409 int ok = 0; 2410 ${ac_c_conftest_c89_main} 2411 ${ac_c_conftest_c99_main} 2412 ${ac_c_conftest_c11_main} 2413 return ok; 2414 } 2415 " 2416 2417 # Test code for whether the C compiler supports C99 (complete). 2418 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2419 ${ac_c_conftest_c99_globals} 2420 2421 int 2422 main (int argc, char **argv) 2423 { 2424 int ok = 0; 2425 ${ac_c_conftest_c89_main} 2426 ${ac_c_conftest_c99_main} 2427 return ok; 2428 } 2429 " 2430 2431 # Test code for whether the C compiler supports C89 (complete). 2432 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2433 2434 int 2435 main (int argc, char **argv) 2436 { 2437 int ok = 0; 2438 ${ac_c_conftest_c89_main} 2439 return ok; 2440 } 2441 " 2442 2443 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2444 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2445 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2446 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2447 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2448 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2449 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2450 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2451 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2452 2453 # Auxiliary files required by this configure script. 2454 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2455 2456 # Locations in which to look for auxiliary files. 2457 ac_aux_dir_candidates="${srcdir}/." 2458 2459 # Search for a directory containing all of the required auxiliary files, 2460 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2461 # If we don't find one directory that contains all the files we need, 2462 # we report the set of missing files from the *first* directory in 2463 # $ac_aux_dir_candidates and give up. 2464 ac_missing_aux_files="" 2465 ac_first_candidate=: 2466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2468 as_found=false 2469 for as_dir in $ac_aux_dir_candidates 2470 do 2471 IFS=$as_save_IFS 2472 case $as_dir in #((( 2473 '') as_dir=./ ;; 2474 */) ;; 2475 *) as_dir=$as_dir/ ;; 2476 esac 2477 as_found=: 2478 2479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2480 ac_aux_dir_found=yes 2481 ac_install_sh= 2482 for ac_aux in $ac_aux_files 2483 do 2484 # As a special case, if "install-sh" is required, that requirement 2485 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2486 # and $ac_install_sh is set appropriately for whichever one is found. 2487 if test x"$ac_aux" = x"install-sh" 2488 then 2489 if test -f "${as_dir}install-sh"; then 2490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2491 ac_install_sh="${as_dir}install-sh -c" 2492 elif test -f "${as_dir}install.sh"; then 2493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2494 ac_install_sh="${as_dir}install.sh -c" 2495 elif test -f "${as_dir}shtool"; then 2496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2497 ac_install_sh="${as_dir}shtool install -c" 2498 else 2499 ac_aux_dir_found=no 2500 if $ac_first_candidate; then 2501 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2502 else 2503 break 2504 fi 2505 fi 2506 else 2507 if test -f "${as_dir}${ac_aux}"; then 2508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2509 else 2510 ac_aux_dir_found=no 2511 if $ac_first_candidate; then 2512 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2513 else 2514 break 2515 fi 2516 fi 2517 fi 2518 done 2519 if test "$ac_aux_dir_found" = yes; then 2520 ac_aux_dir="$as_dir" 2521 break 2522 fi 2523 ac_first_candidate=false 2524 2525 as_found=false 2526 done 2527 IFS=$as_save_IFS 2528 if $as_found 2529 then : 2530 2531 else $as_nop 2532 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2533 fi 2534 2535 2536 # These three variables are undocumented and unsupported, 2537 # and are intended to be withdrawn in a future Autoconf release. 2538 # They can cause serious problems if a builder's source tree is in a directory 2539 # whose full name contains unusual characters. 2540 if test -f "${ac_aux_dir}config.guess"; then 2541 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2542 fi 2543 if test -f "${ac_aux_dir}config.sub"; then 2544 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2545 fi 2546 if test -f "$ac_aux_dir/configure"; then 2547 ac_configure="$SHELL ${ac_aux_dir}configure" 2548 fi 2549 2550 # Check that the precious variables saved in the cache have kept the same 2551 # value. 2552 ac_cache_corrupted=false 2553 for ac_var in $ac_precious_vars; do 2554 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2555 eval ac_new_set=\$ac_env_${ac_var}_set 2556 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2557 eval ac_new_val=\$ac_env_${ac_var}_value 2558 case $ac_old_set,$ac_new_set in 2559 set,) 2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2561 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2562 ac_cache_corrupted=: ;; 2563 ,set) 2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2565 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2566 ac_cache_corrupted=: ;; 2567 ,);; 2568 *) 2569 if test "x$ac_old_val" != "x$ac_new_val"; then 2570 # differences in whitespace do not lead to failure. 2571 ac_old_val_w=`echo x $ac_old_val` 2572 ac_new_val_w=`echo x $ac_new_val` 2573 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2575 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2576 ac_cache_corrupted=: 2577 else 2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2579 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2580 eval $ac_var=\$ac_old_val 2581 fi 2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2583 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2585 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2586 fi;; 2587 esac 2588 # Pass precious variables to config.status. 2589 if test "$ac_new_set" = set; then 2590 case $ac_new_val in 2591 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2592 *) ac_arg=$ac_var=$ac_new_val ;; 2593 esac 2594 case " $ac_configure_args " in 2595 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2596 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2597 esac 2598 fi 2599 done 2600 if $ac_cache_corrupted; then 2601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2602 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2604 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2605 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2606 and start over" "$LINENO" 5 2607 fi 2608 ## -------------------- ## 2609 ## Main body of script. ## 2610 ## -------------------- ## 2611 2612 ac_ext=c 2613 ac_cpp='$CPP $CPPFLAGS' 2614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2616 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2617 2618 2619 2620 ac_config_headers="$ac_config_headers config.h" 2621 2622 2623 2624 # Initialize Automake 2625 am__api_version='1.16' 2626 2627 2628 2629 # Find a good install program. We prefer a C program (faster), 2630 # so one script is as good as another. But avoid the broken or 2631 # incompatible versions: 2632 # SysV /etc/install, /usr/sbin/install 2633 # SunOS /usr/etc/install 2634 # IRIX /sbin/install 2635 # AIX /bin/install 2636 # AmigaOS /C/install, which installs bootblocks on floppy discs 2637 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2638 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2639 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2640 # OS/2's system install, which has a completely different semantic 2641 # ./install, which can be erroneously created by make from ./install.sh. 2642 # Reject install programs that cannot install multiple files. 2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2644 printf %s "checking for a BSD-compatible install... " >&6; } 2645 if test -z "$INSTALL"; then 2646 if test ${ac_cv_path_install+y} 2647 then : 2648 printf %s "(cached) " >&6 2649 else $as_nop 2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2651 for as_dir in $PATH 2652 do 2653 IFS=$as_save_IFS 2654 case $as_dir in #((( 2655 '') as_dir=./ ;; 2656 */) ;; 2657 *) as_dir=$as_dir/ ;; 2658 esac 2659 # Account for fact that we put trailing slashes in our PATH walk. 2660 case $as_dir in #(( 2661 ./ | /[cC]/* | \ 2662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2663 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2664 /usr/ucb/* ) ;; 2665 *) 2666 # OSF1 and SCO ODT 3.0 have their own names for install. 2667 # Don't use installbsd from OSF since it installs stuff as root 2668 # by default. 2669 for ac_prog in ginstall scoinst install; do 2670 for ac_exec_ext in '' $ac_executable_extensions; do 2671 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2672 if test $ac_prog = install && 2673 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2674 # AIX install. It has an incompatible calling convention. 2675 : 2676 elif test $ac_prog = install && 2677 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2678 # program-specific install script used by HP pwplus--don't use. 2679 : 2680 else 2681 rm -rf conftest.one conftest.two conftest.dir 2682 echo one > conftest.one 2683 echo two > conftest.two 2684 mkdir conftest.dir 2685 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2686 test -s conftest.one && test -s conftest.two && 2687 test -s conftest.dir/conftest.one && 2688 test -s conftest.dir/conftest.two 2689 then 2690 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2691 break 3 2692 fi 2693 fi 2694 fi 2695 done 2696 done 2697 ;; 2698 esac 2699 2700 done 2701 IFS=$as_save_IFS 2702 2703 rm -rf conftest.one conftest.two conftest.dir 2704 2705 fi 2706 if test ${ac_cv_path_install+y}; then 2707 INSTALL=$ac_cv_path_install 2708 else 2709 # As a last resort, use the slow shell script. Don't cache a 2710 # value for INSTALL within a source directory, because that will 2711 # break other packages using the cache if that directory is 2712 # removed, or if the value is a relative name. 2713 INSTALL=$ac_install_sh 2714 fi 2715 fi 2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2717 printf "%s\n" "$INSTALL" >&6; } 2718 2719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2720 # It thinks the first close brace ends the variable substitution. 2721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2722 2723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2724 2725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2726 2727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2728 printf %s "checking whether build environment is sane... " >&6; } 2729 # Reject unsafe characters in $srcdir or the absolute working directory 2730 # name. Accept space and tab only in the latter. 2731 am_lf=' 2732 ' 2733 case `pwd` in 2734 *[\\\"\#\$\&\'\`$am_lf]*) 2735 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2736 esac 2737 case $srcdir in 2738 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2739 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2740 esac 2741 2742 # Do 'set' in a subshell so we don't clobber the current shell's 2743 # arguments. Must try -L first in case configure is actually a 2744 # symlink; some systems play weird games with the mod time of symlinks 2745 # (eg FreeBSD returns the mod time of the symlink's containing 2746 # directory). 2747 if ( 2748 am_has_slept=no 2749 for am_try in 1 2; do 2750 echo "timestamp, slept: $am_has_slept" > conftest.file 2751 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2752 if test "$*" = "X"; then 2753 # -L didn't work. 2754 set X `ls -t "$srcdir/configure" conftest.file` 2755 fi 2756 if test "$*" != "X $srcdir/configure conftest.file" \ 2757 && test "$*" != "X conftest.file $srcdir/configure"; then 2758 2759 # If neither matched, then we have a broken ls. This can happen 2760 # if, for instance, CONFIG_SHELL is bash and it inherits a 2761 # broken ls alias from the environment. This has actually 2762 # happened. Such a system could not be considered "sane". 2763 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2764 alias in your environment" "$LINENO" 5 2765 fi 2766 if test "$2" = conftest.file || test $am_try -eq 2; then 2767 break 2768 fi 2769 # Just in case. 2770 sleep 1 2771 am_has_slept=yes 2772 done 2773 test "$2" = conftest.file 2774 ) 2775 then 2776 # Ok. 2777 : 2778 else 2779 as_fn_error $? "newly created file is older than distributed files! 2780 Check your system clock" "$LINENO" 5 2781 fi 2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2783 printf "%s\n" "yes" >&6; } 2784 # If we didn't sleep, we still need to ensure time stamps of config.status and 2785 # generated files are strictly newer. 2786 am_sleep_pid= 2787 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2788 ( sleep 1 ) & 2789 am_sleep_pid=$! 2790 fi 2791 2792 rm -f conftest.file 2793 2794 test "$program_prefix" != NONE && 2795 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2796 # Use a double $ so make ignores it. 2797 test "$program_suffix" != NONE && 2798 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2799 # Double any \ or $. 2800 # By default was `s,x,x', remove it if useless. 2801 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2802 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2803 2804 2805 # Expand $ac_aux_dir to an absolute path. 2806 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2807 2808 2809 if test x"${MISSING+set}" != xset; then 2810 MISSING="\${SHELL} '$am_aux_dir/missing'" 2811 fi 2812 # Use eval to expand $SHELL 2813 if eval "$MISSING --is-lightweight"; then 2814 am_missing_run="$MISSING " 2815 else 2816 am_missing_run= 2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2818 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2819 fi 2820 2821 if test x"${install_sh+set}" != xset; then 2822 case $am_aux_dir in 2823 *\ * | *\ *) 2824 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2825 *) 2826 install_sh="\${SHELL} $am_aux_dir/install-sh" 2827 esac 2828 fi 2829 2830 # Installed binaries are usually stripped using 'strip' when the user 2831 # run "make install-strip". However 'strip' might not be the right 2832 # tool to use in cross-compilation environments, therefore Automake 2833 # will honor the 'STRIP' environment variable to overrule this program. 2834 if test "$cross_compiling" != no; then 2835 if test -n "$ac_tool_prefix"; then 2836 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2837 set dummy ${ac_tool_prefix}strip; ac_word=$2 2838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2839 printf %s "checking for $ac_word... " >&6; } 2840 if test ${ac_cv_prog_STRIP+y} 2841 then : 2842 printf %s "(cached) " >&6 2843 else $as_nop 2844 if test -n "$STRIP"; then 2845 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2846 else 2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2848 for as_dir in $PATH 2849 do 2850 IFS=$as_save_IFS 2851 case $as_dir in #((( 2852 '') as_dir=./ ;; 2853 */) ;; 2854 *) as_dir=$as_dir/ ;; 2855 esac 2856 for ac_exec_ext in '' $ac_executable_extensions; do 2857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2858 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2860 break 2 2861 fi 2862 done 2863 done 2864 IFS=$as_save_IFS 2865 2866 fi 2867 fi 2868 STRIP=$ac_cv_prog_STRIP 2869 if test -n "$STRIP"; then 2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2871 printf "%s\n" "$STRIP" >&6; } 2872 else 2873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2874 printf "%s\n" "no" >&6; } 2875 fi 2876 2877 2878 fi 2879 if test -z "$ac_cv_prog_STRIP"; then 2880 ac_ct_STRIP=$STRIP 2881 # Extract the first word of "strip", so it can be a program name with args. 2882 set dummy strip; ac_word=$2 2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2884 printf %s "checking for $ac_word... " >&6; } 2885 if test ${ac_cv_prog_ac_ct_STRIP+y} 2886 then : 2887 printf %s "(cached) " >&6 2888 else $as_nop 2889 if test -n "$ac_ct_STRIP"; then 2890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2891 else 2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893 for as_dir in $PATH 2894 do 2895 IFS=$as_save_IFS 2896 case $as_dir in #((( 2897 '') as_dir=./ ;; 2898 */) ;; 2899 *) as_dir=$as_dir/ ;; 2900 esac 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2903 ac_cv_prog_ac_ct_STRIP="strip" 2904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2905 break 2 2906 fi 2907 done 2908 done 2909 IFS=$as_save_IFS 2910 2911 fi 2912 fi 2913 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2914 if test -n "$ac_ct_STRIP"; then 2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2916 printf "%s\n" "$ac_ct_STRIP" >&6; } 2917 else 2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2919 printf "%s\n" "no" >&6; } 2920 fi 2921 2922 if test "x$ac_ct_STRIP" = x; then 2923 STRIP=":" 2924 else 2925 case $cross_compiling:$ac_tool_warned in 2926 yes:) 2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2928 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2929 ac_tool_warned=yes ;; 2930 esac 2931 STRIP=$ac_ct_STRIP 2932 fi 2933 else 2934 STRIP="$ac_cv_prog_STRIP" 2935 fi 2936 2937 fi 2938 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2939 2940 2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2942 printf %s "checking for a race-free mkdir -p... " >&6; } 2943 if test -z "$MKDIR_P"; then 2944 if test ${ac_cv_path_mkdir+y} 2945 then : 2946 printf %s "(cached) " >&6 2947 else $as_nop 2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2949 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2950 do 2951 IFS=$as_save_IFS 2952 case $as_dir in #((( 2953 '') as_dir=./ ;; 2954 */) ;; 2955 *) as_dir=$as_dir/ ;; 2956 esac 2957 for ac_prog in mkdir gmkdir; do 2958 for ac_exec_ext in '' $ac_executable_extensions; do 2959 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2960 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2961 'mkdir ('*'coreutils) '* | \ 2962 'BusyBox '* | \ 2963 'mkdir (fileutils) '4.1*) 2964 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2965 break 3;; 2966 esac 2967 done 2968 done 2969 done 2970 IFS=$as_save_IFS 2971 2972 fi 2973 2974 test -d ./--version && rmdir ./--version 2975 if test ${ac_cv_path_mkdir+y}; then 2976 MKDIR_P="$ac_cv_path_mkdir -p" 2977 else 2978 # As a last resort, use the slow shell script. Don't cache a 2979 # value for MKDIR_P within a source directory, because that will 2980 # break other packages using the cache if that directory is 2981 # removed, or if the value is a relative name. 2982 MKDIR_P="$ac_install_sh -d" 2983 fi 2984 fi 2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2986 printf "%s\n" "$MKDIR_P" >&6; } 2987 2988 for ac_prog in gawk mawk nawk awk 2989 do 2990 # Extract the first word of "$ac_prog", so it can be a program name with args. 2991 set dummy $ac_prog; ac_word=$2 2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2993 printf %s "checking for $ac_word... " >&6; } 2994 if test ${ac_cv_prog_AWK+y} 2995 then : 2996 printf %s "(cached) " >&6 2997 else $as_nop 2998 if test -n "$AWK"; then 2999 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3000 else 3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3002 for as_dir in $PATH 3003 do 3004 IFS=$as_save_IFS 3005 case $as_dir in #((( 3006 '') as_dir=./ ;; 3007 */) ;; 3008 *) as_dir=$as_dir/ ;; 3009 esac 3010 for ac_exec_ext in '' $ac_executable_extensions; do 3011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3012 ac_cv_prog_AWK="$ac_prog" 3013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3014 break 2 3015 fi 3016 done 3017 done 3018 IFS=$as_save_IFS 3019 3020 fi 3021 fi 3022 AWK=$ac_cv_prog_AWK 3023 if test -n "$AWK"; then 3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3025 printf "%s\n" "$AWK" >&6; } 3026 else 3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3028 printf "%s\n" "no" >&6; } 3029 fi 3030 3031 3032 test -n "$AWK" && break 3033 done 3034 3035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3036 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3037 set x ${MAKE-make} 3038 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3039 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3040 then : 3041 printf %s "(cached) " >&6 3042 else $as_nop 3043 cat >conftest.make <<\_ACEOF 3044 SHELL = /bin/sh 3045 all: 3046 @echo '@@@%%%=$(MAKE)=@@@%%%' 3047 _ACEOF 3048 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3049 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3050 *@@@%%%=?*=@@@%%%*) 3051 eval ac_cv_prog_make_${ac_make}_set=yes;; 3052 *) 3053 eval ac_cv_prog_make_${ac_make}_set=no;; 3054 esac 3055 rm -f conftest.make 3056 fi 3057 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3059 printf "%s\n" "yes" >&6; } 3060 SET_MAKE= 3061 else 3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3063 printf "%s\n" "no" >&6; } 3064 SET_MAKE="MAKE=${MAKE-make}" 3065 fi 3066 3067 rm -rf .tst 2>/dev/null 3068 mkdir .tst 2>/dev/null 3069 if test -d .tst; then 3070 am__leading_dot=. 3071 else 3072 am__leading_dot=_ 3073 fi 3074 rmdir .tst 2>/dev/null 3075 3076 # Check whether --enable-silent-rules was given. 3077 if test ${enable_silent_rules+y} 3078 then : 3079 enableval=$enable_silent_rules; 3080 fi 3081 3082 case $enable_silent_rules in # ((( 3083 yes) AM_DEFAULT_VERBOSITY=0;; 3084 no) AM_DEFAULT_VERBOSITY=1;; 3085 *) AM_DEFAULT_VERBOSITY=1;; 3086 esac 3087 am_make=${MAKE-make} 3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3089 printf %s "checking whether $am_make supports nested variables... " >&6; } 3090 if test ${am_cv_make_support_nested_variables+y} 3091 then : 3092 printf %s "(cached) " >&6 3093 else $as_nop 3094 if printf "%s\n" 'TRUE=$(BAR$(V)) 3095 BAR0=false 3096 BAR1=true 3097 V=1 3098 am__doit: 3099 @$(TRUE) 3100 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3101 am_cv_make_support_nested_variables=yes 3102 else 3103 am_cv_make_support_nested_variables=no 3104 fi 3105 fi 3106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3107 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3108 if test $am_cv_make_support_nested_variables = yes; then 3109 AM_V='$(V)' 3110 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3111 else 3112 AM_V=$AM_DEFAULT_VERBOSITY 3113 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3114 fi 3115 AM_BACKSLASH='\' 3116 3117 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3118 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3119 # is not polluted with repeated "-I." 3120 am__isrc=' -I$(srcdir)' 3121 # test to see if srcdir already configured 3122 if test -f $srcdir/config.status; then 3123 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3124 fi 3125 fi 3126 3127 # test whether we have cygpath 3128 if test -z "$CYGPATH_W"; then 3129 if (cygpath --version) >/dev/null 2>/dev/null; then 3130 CYGPATH_W='cygpath -w' 3131 else 3132 CYGPATH_W=echo 3133 fi 3134 fi 3135 3136 3137 # Define the identity of the package. 3138 PACKAGE='xf86-input-keyboard' 3139 VERSION='2.0.0' 3140 3141 3142 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3143 3144 3145 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3146 3147 # Some tools Automake needs. 3148 3149 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3150 3151 3152 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3153 3154 3155 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3156 3157 3158 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3159 3160 3161 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3162 3163 # For better backward compatibility. To be removed once Automake 1.9.x 3164 # dies out for good. For more background, see: 3165 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3166 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3167 mkdir_p='$(MKDIR_P)' 3168 3169 # We need awk for the "check" target (and possibly the TAP driver). The 3170 # system "awk" is bad on some platforms. 3171 # Always define AMTAR for backward compatibility. Yes, it's still used 3172 # in the wild :-( We should find a proper way to deprecate it ... 3173 AMTAR='$${TAR-tar}' 3174 3175 3176 # We'll loop over all known methods to create a tar archive until one works. 3177 _am_tools='gnutar pax cpio none' 3178 3179 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3180 3181 3182 3183 3184 3185 # Variables for tags utilities; see am/tags.am 3186 if test -z "$CTAGS"; then 3187 CTAGS=ctags 3188 fi 3189 3190 if test -z "$ETAGS"; then 3191 ETAGS=etags 3192 fi 3193 3194 if test -z "$CSCOPE"; then 3195 CSCOPE=cscope 3196 fi 3197 3198 3199 3200 # POSIX will say in a future version that running "rm -f" with no argument 3201 # is OK; and we want to be able to make that assumption in our Makefile 3202 # recipes. So use an aggressive probe to check that the usage we want is 3203 # actually supported "in the wild" to an acceptable degree. 3204 # See automake bug#10828. 3205 # To make any issue more visible, cause the running configure to be aborted 3206 # by default if the 'rm' program in use doesn't match our expectations; the 3207 # user can still override this though. 3208 if rm -f && rm -fr && rm -rf; then : OK; else 3209 cat >&2 <<'END' 3210 Oops! 3211 3212 Your 'rm' program seems unable to run without file operands specified 3213 on the command line, even when the '-f' option is present. This is contrary 3214 to the behaviour of most rm programs out there, and not conforming with 3215 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3216 3217 Please tell bug-automake@gnu.org about your system, including the value 3218 of your $PATH and any error possibly output before this message. This 3219 can help us improve future automake versions. 3220 3221 END 3222 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3223 echo 'Configuration will proceed anyway, since you have set the' >&2 3224 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3225 echo >&2 3226 else 3227 cat >&2 <<'END' 3228 Aborting the configuration process, to ensure you take notice of the issue. 3229 3230 You can download and install GNU coreutils to get an 'rm' implementation 3231 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3232 3233 If you want to complete the configuration process using your problematic 3234 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3235 to "yes", and re-run configure. 3236 3237 END 3238 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3239 fi 3240 fi 3241 3242 3243 # Initialize libtool 3244 # Check whether --enable-static was given. 3245 if test ${enable_static+y} 3246 then : 3247 enableval=$enable_static; p=${PACKAGE-default} 3248 case $enableval in 3249 yes) enable_static=yes ;; 3250 no) enable_static=no ;; 3251 *) 3252 enable_static=no 3253 # Look at the argument we got. We use all the common list separators. 3254 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 3255 for pkg in $enableval; do 3256 IFS=$lt_save_ifs 3257 if test "X$pkg" = "X$p"; then 3258 enable_static=yes 3259 fi 3260 done 3261 IFS=$lt_save_ifs 3262 ;; 3263 esac 3264 else $as_nop 3265 enable_static=no 3266 fi 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 case `pwd` in 3277 *\ * | *\ *) 3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3279 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3280 esac 3281 3282 3283 3284 macro_version='2.4.7' 3285 macro_revision='2.4.7' 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 ltmain=$ac_aux_dir/ltmain.sh 3301 3302 3303 3304 # Make sure we can run config.sub. 3305 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3306 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3307 3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3309 printf %s "checking build system type... " >&6; } 3310 if test ${ac_cv_build+y} 3311 then : 3312 printf %s "(cached) " >&6 3313 else $as_nop 3314 ac_build_alias=$build_alias 3315 test "x$ac_build_alias" = x && 3316 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3317 test "x$ac_build_alias" = x && 3318 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3319 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3320 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3321 3322 fi 3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3324 printf "%s\n" "$ac_cv_build" >&6; } 3325 case $ac_cv_build in 3326 *-*-*) ;; 3327 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3328 esac 3329 build=$ac_cv_build 3330 ac_save_IFS=$IFS; IFS='-' 3331 set x $ac_cv_build 3332 shift 3333 build_cpu=$1 3334 build_vendor=$2 3335 shift; shift 3336 # Remember, the first character of IFS is used to create $*, 3337 # except with old shells: 3338 build_os=$* 3339 IFS=$ac_save_IFS 3340 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3341 3342 3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3344 printf %s "checking host system type... " >&6; } 3345 if test ${ac_cv_host+y} 3346 then : 3347 printf %s "(cached) " >&6 3348 else $as_nop 3349 if test "x$host_alias" = x; then 3350 ac_cv_host=$ac_cv_build 3351 else 3352 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3353 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3354 fi 3355 3356 fi 3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3358 printf "%s\n" "$ac_cv_host" >&6; } 3359 case $ac_cv_host in 3360 *-*-*) ;; 3361 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3362 esac 3363 host=$ac_cv_host 3364 ac_save_IFS=$IFS; IFS='-' 3365 set x $ac_cv_host 3366 shift 3367 host_cpu=$1 3368 host_vendor=$2 3369 shift; shift 3370 # Remember, the first character of IFS is used to create $*, 3371 # except with old shells: 3372 host_os=$* 3373 IFS=$ac_save_IFS 3374 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3375 3376 3377 # Backslashify metacharacters that are still active within 3378 # double-quoted strings. 3379 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3380 3381 # Same as above, but do not quote variable references. 3382 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3383 3384 # Sed substitution to delay expansion of an escaped shell variable in a 3385 # double_quote_subst'ed string. 3386 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3387 3388 # Sed substitution to delay expansion of an escaped single quote. 3389 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3390 3391 # Sed substitution to avoid accidental globbing in evaled expressions 3392 no_glob_subst='s/\*/\\\*/g' 3393 3394 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3395 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3396 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3397 3398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3399 printf %s "checking how to print strings... " >&6; } 3400 # Test print first, because it will be a builtin if present. 3401 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3402 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3403 ECHO='print -r --' 3404 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3405 ECHO='printf %s\n' 3406 else 3407 # Use this function as a fallback that always works. 3408 func_fallback_echo () 3409 { 3410 eval 'cat <<_LTECHO_EOF 3411 $1 3412 _LTECHO_EOF' 3413 } 3414 ECHO='func_fallback_echo' 3415 fi 3416 3417 # func_echo_all arg... 3418 # Invoke $ECHO with all args, space-separated. 3419 func_echo_all () 3420 { 3421 $ECHO "" 3422 } 3423 3424 case $ECHO in 3425 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3426 printf "%s\n" "printf" >&6; } ;; 3427 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3428 printf "%s\n" "print -r" >&6; } ;; 3429 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3430 printf "%s\n" "cat" >&6; } ;; 3431 esac 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 DEPDIR="${am__leading_dot}deps" 3456 3457 ac_config_commands="$ac_config_commands depfiles" 3458 3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3460 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3461 cat > confinc.mk << 'END' 3462 am__doit: 3463 @echo this is the am__doit target >confinc.out 3464 .PHONY: am__doit 3465 END 3466 am__include="#" 3467 am__quote= 3468 # BSD make does it like this. 3469 echo '.include "confinc.mk" # ignored' > confmf.BSD 3470 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3471 echo 'include confinc.mk # ignored' > confmf.GNU 3472 _am_result=no 3473 for s in GNU BSD; do 3474 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3475 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3476 ac_status=$? 3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3478 (exit $ac_status); } 3479 case $?:`cat confinc.out 2>/dev/null` in #( 3480 '0:this is the am__doit target') : 3481 case $s in #( 3482 BSD) : 3483 am__include='.include' am__quote='"' ;; #( 3484 *) : 3485 am__include='include' am__quote='' ;; 3486 esac ;; #( 3487 *) : 3488 ;; 3489 esac 3490 if test "$am__include" != "#"; then 3491 _am_result="yes ($s style)" 3492 break 3493 fi 3494 done 3495 rm -f confinc.* confmf.* 3496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3497 printf "%s\n" "${_am_result}" >&6; } 3498 3499 # Check whether --enable-dependency-tracking was given. 3500 if test ${enable_dependency_tracking+y} 3501 then : 3502 enableval=$enable_dependency_tracking; 3503 fi 3504 3505 if test "x$enable_dependency_tracking" != xno; then 3506 am_depcomp="$ac_aux_dir/depcomp" 3507 AMDEPBACKSLASH='\' 3508 am__nodep='_no' 3509 fi 3510 if test "x$enable_dependency_tracking" != xno; then 3511 AMDEP_TRUE= 3512 AMDEP_FALSE='#' 3513 else 3514 AMDEP_TRUE='#' 3515 AMDEP_FALSE= 3516 fi 3517 3518 3519 ac_ext=c 3520 ac_cpp='$CPP $CPPFLAGS' 3521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3523 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3524 if test -n "$ac_tool_prefix"; then 3525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3526 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3528 printf %s "checking for $ac_word... " >&6; } 3529 if test ${ac_cv_prog_CC+y} 3530 then : 3531 printf %s "(cached) " >&6 3532 else $as_nop 3533 if test -n "$CC"; then 3534 ac_cv_prog_CC="$CC" # Let the user override the test. 3535 else 3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3537 for as_dir in $PATH 3538 do 3539 IFS=$as_save_IFS 3540 case $as_dir in #((( 3541 '') as_dir=./ ;; 3542 */) ;; 3543 *) as_dir=$as_dir/ ;; 3544 esac 3545 for ac_exec_ext in '' $ac_executable_extensions; do 3546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3547 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3549 break 2 3550 fi 3551 done 3552 done 3553 IFS=$as_save_IFS 3554 3555 fi 3556 fi 3557 CC=$ac_cv_prog_CC 3558 if test -n "$CC"; then 3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3560 printf "%s\n" "$CC" >&6; } 3561 else 3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3563 printf "%s\n" "no" >&6; } 3564 fi 3565 3566 3567 fi 3568 if test -z "$ac_cv_prog_CC"; then 3569 ac_ct_CC=$CC 3570 # Extract the first word of "gcc", so it can be a program name with args. 3571 set dummy gcc; ac_word=$2 3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3573 printf %s "checking for $ac_word... " >&6; } 3574 if test ${ac_cv_prog_ac_ct_CC+y} 3575 then : 3576 printf %s "(cached) " >&6 3577 else $as_nop 3578 if test -n "$ac_ct_CC"; then 3579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3580 else 3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3582 for as_dir in $PATH 3583 do 3584 IFS=$as_save_IFS 3585 case $as_dir in #((( 3586 '') as_dir=./ ;; 3587 */) ;; 3588 *) as_dir=$as_dir/ ;; 3589 esac 3590 for ac_exec_ext in '' $ac_executable_extensions; do 3591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3592 ac_cv_prog_ac_ct_CC="gcc" 3593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3594 break 2 3595 fi 3596 done 3597 done 3598 IFS=$as_save_IFS 3599 3600 fi 3601 fi 3602 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3603 if test -n "$ac_ct_CC"; then 3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3605 printf "%s\n" "$ac_ct_CC" >&6; } 3606 else 3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3608 printf "%s\n" "no" >&6; } 3609 fi 3610 3611 if test "x$ac_ct_CC" = x; then 3612 CC="" 3613 else 3614 case $cross_compiling:$ac_tool_warned in 3615 yes:) 3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3617 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3618 ac_tool_warned=yes ;; 3619 esac 3620 CC=$ac_ct_CC 3621 fi 3622 else 3623 CC="$ac_cv_prog_CC" 3624 fi 3625 3626 if test -z "$CC"; then 3627 if test -n "$ac_tool_prefix"; then 3628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3629 set dummy ${ac_tool_prefix}cc; ac_word=$2 3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3631 printf %s "checking for $ac_word... " >&6; } 3632 if test ${ac_cv_prog_CC+y} 3633 then : 3634 printf %s "(cached) " >&6 3635 else $as_nop 3636 if test -n "$CC"; then 3637 ac_cv_prog_CC="$CC" # Let the user override the test. 3638 else 3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3640 for as_dir in $PATH 3641 do 3642 IFS=$as_save_IFS 3643 case $as_dir in #((( 3644 '') as_dir=./ ;; 3645 */) ;; 3646 *) as_dir=$as_dir/ ;; 3647 esac 3648 for ac_exec_ext in '' $ac_executable_extensions; do 3649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3650 ac_cv_prog_CC="${ac_tool_prefix}cc" 3651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3652 break 2 3653 fi 3654 done 3655 done 3656 IFS=$as_save_IFS 3657 3658 fi 3659 fi 3660 CC=$ac_cv_prog_CC 3661 if test -n "$CC"; then 3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3663 printf "%s\n" "$CC" >&6; } 3664 else 3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3666 printf "%s\n" "no" >&6; } 3667 fi 3668 3669 3670 fi 3671 fi 3672 if test -z "$CC"; then 3673 # Extract the first word of "cc", so it can be a program name with args. 3674 set dummy cc; ac_word=$2 3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3676 printf %s "checking for $ac_word... " >&6; } 3677 if test ${ac_cv_prog_CC+y} 3678 then : 3679 printf %s "(cached) " >&6 3680 else $as_nop 3681 if test -n "$CC"; then 3682 ac_cv_prog_CC="$CC" # Let the user override the test. 3683 else 3684 ac_prog_rejected=no 3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3686 for as_dir in $PATH 3687 do 3688 IFS=$as_save_IFS 3689 case $as_dir in #((( 3690 '') as_dir=./ ;; 3691 */) ;; 3692 *) as_dir=$as_dir/ ;; 3693 esac 3694 for ac_exec_ext in '' $ac_executable_extensions; do 3695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3696 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3697 ac_prog_rejected=yes 3698 continue 3699 fi 3700 ac_cv_prog_CC="cc" 3701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3702 break 2 3703 fi 3704 done 3705 done 3706 IFS=$as_save_IFS 3707 3708 if test $ac_prog_rejected = yes; then 3709 # We found a bogon in the path, so make sure we never use it. 3710 set dummy $ac_cv_prog_CC 3711 shift 3712 if test $# != 0; then 3713 # We chose a different compiler from the bogus one. 3714 # However, it has the same basename, so the bogon will be chosen 3715 # first if we set CC to just the basename; use the full file name. 3716 shift 3717 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3718 fi 3719 fi 3720 fi 3721 fi 3722 CC=$ac_cv_prog_CC 3723 if test -n "$CC"; then 3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3725 printf "%s\n" "$CC" >&6; } 3726 else 3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3728 printf "%s\n" "no" >&6; } 3729 fi 3730 3731 3732 fi 3733 if test -z "$CC"; then 3734 if test -n "$ac_tool_prefix"; then 3735 for ac_prog in cl.exe 3736 do 3737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3740 printf %s "checking for $ac_word... " >&6; } 3741 if test ${ac_cv_prog_CC+y} 3742 then : 3743 printf %s "(cached) " >&6 3744 else $as_nop 3745 if test -n "$CC"; then 3746 ac_cv_prog_CC="$CC" # Let the user override the test. 3747 else 3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3749 for as_dir in $PATH 3750 do 3751 IFS=$as_save_IFS 3752 case $as_dir in #((( 3753 '') as_dir=./ ;; 3754 */) ;; 3755 *) as_dir=$as_dir/ ;; 3756 esac 3757 for ac_exec_ext in '' $ac_executable_extensions; do 3758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3761 break 2 3762 fi 3763 done 3764 done 3765 IFS=$as_save_IFS 3766 3767 fi 3768 fi 3769 CC=$ac_cv_prog_CC 3770 if test -n "$CC"; then 3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3772 printf "%s\n" "$CC" >&6; } 3773 else 3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3775 printf "%s\n" "no" >&6; } 3776 fi 3777 3778 3779 test -n "$CC" && break 3780 done 3781 fi 3782 if test -z "$CC"; then 3783 ac_ct_CC=$CC 3784 for ac_prog in cl.exe 3785 do 3786 # Extract the first word of "$ac_prog", so it can be a program name with args. 3787 set dummy $ac_prog; ac_word=$2 3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3789 printf %s "checking for $ac_word... " >&6; } 3790 if test ${ac_cv_prog_ac_ct_CC+y} 3791 then : 3792 printf %s "(cached) " >&6 3793 else $as_nop 3794 if test -n "$ac_ct_CC"; then 3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3796 else 3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3798 for as_dir in $PATH 3799 do 3800 IFS=$as_save_IFS 3801 case $as_dir in #((( 3802 '') as_dir=./ ;; 3803 */) ;; 3804 *) as_dir=$as_dir/ ;; 3805 esac 3806 for ac_exec_ext in '' $ac_executable_extensions; do 3807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3808 ac_cv_prog_ac_ct_CC="$ac_prog" 3809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3810 break 2 3811 fi 3812 done 3813 done 3814 IFS=$as_save_IFS 3815 3816 fi 3817 fi 3818 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3819 if test -n "$ac_ct_CC"; then 3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3821 printf "%s\n" "$ac_ct_CC" >&6; } 3822 else 3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3824 printf "%s\n" "no" >&6; } 3825 fi 3826 3827 3828 test -n "$ac_ct_CC" && break 3829 done 3830 3831 if test "x$ac_ct_CC" = x; then 3832 CC="" 3833 else 3834 case $cross_compiling:$ac_tool_warned in 3835 yes:) 3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3837 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3838 ac_tool_warned=yes ;; 3839 esac 3840 CC=$ac_ct_CC 3841 fi 3842 fi 3843 3844 fi 3845 if test -z "$CC"; then 3846 if test -n "$ac_tool_prefix"; then 3847 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3848 set dummy ${ac_tool_prefix}clang; ac_word=$2 3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3850 printf %s "checking for $ac_word... " >&6; } 3851 if test ${ac_cv_prog_CC+y} 3852 then : 3853 printf %s "(cached) " >&6 3854 else $as_nop 3855 if test -n "$CC"; then 3856 ac_cv_prog_CC="$CC" # Let the user override the test. 3857 else 3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3859 for as_dir in $PATH 3860 do 3861 IFS=$as_save_IFS 3862 case $as_dir in #((( 3863 '') as_dir=./ ;; 3864 */) ;; 3865 *) as_dir=$as_dir/ ;; 3866 esac 3867 for ac_exec_ext in '' $ac_executable_extensions; do 3868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3869 ac_cv_prog_CC="${ac_tool_prefix}clang" 3870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3871 break 2 3872 fi 3873 done 3874 done 3875 IFS=$as_save_IFS 3876 3877 fi 3878 fi 3879 CC=$ac_cv_prog_CC 3880 if test -n "$CC"; then 3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3882 printf "%s\n" "$CC" >&6; } 3883 else 3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3885 printf "%s\n" "no" >&6; } 3886 fi 3887 3888 3889 fi 3890 if test -z "$ac_cv_prog_CC"; then 3891 ac_ct_CC=$CC 3892 # Extract the first word of "clang", so it can be a program name with args. 3893 set dummy clang; ac_word=$2 3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3895 printf %s "checking for $ac_word... " >&6; } 3896 if test ${ac_cv_prog_ac_ct_CC+y} 3897 then : 3898 printf %s "(cached) " >&6 3899 else $as_nop 3900 if test -n "$ac_ct_CC"; then 3901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3902 else 3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3904 for as_dir in $PATH 3905 do 3906 IFS=$as_save_IFS 3907 case $as_dir in #((( 3908 '') as_dir=./ ;; 3909 */) ;; 3910 *) as_dir=$as_dir/ ;; 3911 esac 3912 for ac_exec_ext in '' $ac_executable_extensions; do 3913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3914 ac_cv_prog_ac_ct_CC="clang" 3915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3916 break 2 3917 fi 3918 done 3919 done 3920 IFS=$as_save_IFS 3921 3922 fi 3923 fi 3924 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3925 if test -n "$ac_ct_CC"; then 3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3927 printf "%s\n" "$ac_ct_CC" >&6; } 3928 else 3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3930 printf "%s\n" "no" >&6; } 3931 fi 3932 3933 if test "x$ac_ct_CC" = x; then 3934 CC="" 3935 else 3936 case $cross_compiling:$ac_tool_warned in 3937 yes:) 3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3939 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3940 ac_tool_warned=yes ;; 3941 esac 3942 CC=$ac_ct_CC 3943 fi 3944 else 3945 CC="$ac_cv_prog_CC" 3946 fi 3947 3948 fi 3949 3950 3951 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3952 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3953 as_fn_error $? "no acceptable C compiler found in \$PATH 3954 See \`config.log' for more details" "$LINENO" 5; } 3955 3956 # Provide some information about the compiler. 3957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3958 set X $ac_compile 3959 ac_compiler=$2 3960 for ac_option in --version -v -V -qversion -version; do 3961 { { ac_try="$ac_compiler $ac_option >&5" 3962 case "(($ac_try" in 3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3964 *) ac_try_echo=$ac_try;; 3965 esac 3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3967 printf "%s\n" "$ac_try_echo"; } >&5 3968 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3969 ac_status=$? 3970 if test -s conftest.err; then 3971 sed '10a\ 3972 ... rest of stderr output deleted ... 3973 10q' conftest.err >conftest.er1 3974 cat conftest.er1 >&5 3975 fi 3976 rm -f conftest.er1 conftest.err 3977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3978 test $ac_status = 0; } 3979 done 3980 3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3982 /* end confdefs.h. */ 3983 3984 int 3985 main (void) 3986 { 3987 3988 ; 3989 return 0; 3990 } 3991 _ACEOF 3992 ac_clean_files_save=$ac_clean_files 3993 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3994 # Try to create an executable without -o first, disregard a.out. 3995 # It will help us diagnose broken compilers, and finding out an intuition 3996 # of exeext. 3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3998 printf %s "checking whether the C compiler works... " >&6; } 3999 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4000 4001 # The possible output files: 4002 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4003 4004 ac_rmfiles= 4005 for ac_file in $ac_files 4006 do 4007 case $ac_file in 4008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4009 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4010 esac 4011 done 4012 rm -f $ac_rmfiles 4013 4014 if { { ac_try="$ac_link_default" 4015 case "(($ac_try" in 4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4017 *) ac_try_echo=$ac_try;; 4018 esac 4019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4020 printf "%s\n" "$ac_try_echo"; } >&5 4021 (eval "$ac_link_default") 2>&5 4022 ac_status=$? 4023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4024 test $ac_status = 0; } 4025 then : 4026 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4027 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4028 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4029 # so that the user can short-circuit this test for compilers unknown to 4030 # Autoconf. 4031 for ac_file in $ac_files '' 4032 do 4033 test -f "$ac_file" || continue 4034 case $ac_file in 4035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4036 ;; 4037 [ab].out ) 4038 # We found the default executable, but exeext='' is most 4039 # certainly right. 4040 break;; 4041 *.* ) 4042 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4043 then :; else 4044 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4045 fi 4046 # We set ac_cv_exeext here because the later test for it is not 4047 # safe: cross compilers may not add the suffix if given an `-o' 4048 # argument, so we may need to know it at that point already. 4049 # Even if this section looks crufty: it has the advantage of 4050 # actually working. 4051 break;; 4052 * ) 4053 break;; 4054 esac 4055 done 4056 test "$ac_cv_exeext" = no && ac_cv_exeext= 4057 4058 else $as_nop 4059 ac_file='' 4060 fi 4061 if test -z "$ac_file" 4062 then : 4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4064 printf "%s\n" "no" >&6; } 4065 printf "%s\n" "$as_me: failed program was:" >&5 4066 sed 's/^/| /' conftest.$ac_ext >&5 4067 4068 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4069 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4070 as_fn_error 77 "C compiler cannot create executables 4071 See \`config.log' for more details" "$LINENO" 5; } 4072 else $as_nop 4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4074 printf "%s\n" "yes" >&6; } 4075 fi 4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4077 printf %s "checking for C compiler default output file name... " >&6; } 4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4079 printf "%s\n" "$ac_file" >&6; } 4080 ac_exeext=$ac_cv_exeext 4081 4082 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4083 ac_clean_files=$ac_clean_files_save 4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4085 printf %s "checking for suffix of executables... " >&6; } 4086 if { { ac_try="$ac_link" 4087 case "(($ac_try" in 4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4089 *) ac_try_echo=$ac_try;; 4090 esac 4091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4092 printf "%s\n" "$ac_try_echo"; } >&5 4093 (eval "$ac_link") 2>&5 4094 ac_status=$? 4095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4096 test $ac_status = 0; } 4097 then : 4098 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4099 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4100 # work properly (i.e., refer to `conftest.exe'), while it won't with 4101 # `rm'. 4102 for ac_file in conftest.exe conftest conftest.*; do 4103 test -f "$ac_file" || continue 4104 case $ac_file in 4105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4106 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4107 break;; 4108 * ) break;; 4109 esac 4110 done 4111 else $as_nop 4112 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4113 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4114 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4115 See \`config.log' for more details" "$LINENO" 5; } 4116 fi 4117 rm -f conftest conftest$ac_cv_exeext 4118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4119 printf "%s\n" "$ac_cv_exeext" >&6; } 4120 4121 rm -f conftest.$ac_ext 4122 EXEEXT=$ac_cv_exeext 4123 ac_exeext=$EXEEXT 4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4125 /* end confdefs.h. */ 4126 #include <stdio.h> 4127 int 4128 main (void) 4129 { 4130 FILE *f = fopen ("conftest.out", "w"); 4131 return ferror (f) || fclose (f) != 0; 4132 4133 ; 4134 return 0; 4135 } 4136 _ACEOF 4137 ac_clean_files="$ac_clean_files conftest.out" 4138 # Check that the compiler produces executables we can run. If not, either 4139 # the compiler is broken, or we cross compile. 4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4141 printf %s "checking whether we are cross compiling... " >&6; } 4142 if test "$cross_compiling" != yes; then 4143 { { ac_try="$ac_link" 4144 case "(($ac_try" in 4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4146 *) ac_try_echo=$ac_try;; 4147 esac 4148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4149 printf "%s\n" "$ac_try_echo"; } >&5 4150 (eval "$ac_link") 2>&5 4151 ac_status=$? 4152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4153 test $ac_status = 0; } 4154 if { ac_try='./conftest$ac_cv_exeext' 4155 { { case "(($ac_try" in 4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4157 *) ac_try_echo=$ac_try;; 4158 esac 4159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4160 printf "%s\n" "$ac_try_echo"; } >&5 4161 (eval "$ac_try") 2>&5 4162 ac_status=$? 4163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4164 test $ac_status = 0; }; }; then 4165 cross_compiling=no 4166 else 4167 if test "$cross_compiling" = maybe; then 4168 cross_compiling=yes 4169 else 4170 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4171 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4172 as_fn_error 77 "cannot run C compiled programs. 4173 If you meant to cross compile, use \`--host'. 4174 See \`config.log' for more details" "$LINENO" 5; } 4175 fi 4176 fi 4177 fi 4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4179 printf "%s\n" "$cross_compiling" >&6; } 4180 4181 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4182 ac_clean_files=$ac_clean_files_save 4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4184 printf %s "checking for suffix of object files... " >&6; } 4185 if test ${ac_cv_objext+y} 4186 then : 4187 printf %s "(cached) " >&6 4188 else $as_nop 4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4190 /* end confdefs.h. */ 4191 4192 int 4193 main (void) 4194 { 4195 4196 ; 4197 return 0; 4198 } 4199 _ACEOF 4200 rm -f conftest.o conftest.obj 4201 if { { ac_try="$ac_compile" 4202 case "(($ac_try" in 4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4204 *) ac_try_echo=$ac_try;; 4205 esac 4206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4207 printf "%s\n" "$ac_try_echo"; } >&5 4208 (eval "$ac_compile") 2>&5 4209 ac_status=$? 4210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4211 test $ac_status = 0; } 4212 then : 4213 for ac_file in conftest.o conftest.obj conftest.*; do 4214 test -f "$ac_file" || continue; 4215 case $ac_file in 4216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4217 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4218 break;; 4219 esac 4220 done 4221 else $as_nop 4222 printf "%s\n" "$as_me: failed program was:" >&5 4223 sed 's/^/| /' conftest.$ac_ext >&5 4224 4225 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4226 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4227 as_fn_error $? "cannot compute suffix of object files: cannot compile 4228 See \`config.log' for more details" "$LINENO" 5; } 4229 fi 4230 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4231 fi 4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4233 printf "%s\n" "$ac_cv_objext" >&6; } 4234 OBJEXT=$ac_cv_objext 4235 ac_objext=$OBJEXT 4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4237 printf %s "checking whether the compiler supports GNU C... " >&6; } 4238 if test ${ac_cv_c_compiler_gnu+y} 4239 then : 4240 printf %s "(cached) " >&6 4241 else $as_nop 4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243 /* end confdefs.h. */ 4244 4245 int 4246 main (void) 4247 { 4248 #ifndef __GNUC__ 4249 choke me 4250 #endif 4251 4252 ; 4253 return 0; 4254 } 4255 _ACEOF 4256 if ac_fn_c_try_compile "$LINENO" 4257 then : 4258 ac_compiler_gnu=yes 4259 else $as_nop 4260 ac_compiler_gnu=no 4261 fi 4262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4263 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4264 4265 fi 4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4267 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4268 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4269 4270 if test $ac_compiler_gnu = yes; then 4271 GCC=yes 4272 else 4273 GCC= 4274 fi 4275 ac_test_CFLAGS=${CFLAGS+y} 4276 ac_save_CFLAGS=$CFLAGS 4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4278 printf %s "checking whether $CC accepts -g... " >&6; } 4279 if test ${ac_cv_prog_cc_g+y} 4280 then : 4281 printf %s "(cached) " >&6 4282 else $as_nop 4283 ac_save_c_werror_flag=$ac_c_werror_flag 4284 ac_c_werror_flag=yes 4285 ac_cv_prog_cc_g=no 4286 CFLAGS="-g" 4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4288 /* end confdefs.h. */ 4289 4290 int 4291 main (void) 4292 { 4293 4294 ; 4295 return 0; 4296 } 4297 _ACEOF 4298 if ac_fn_c_try_compile "$LINENO" 4299 then : 4300 ac_cv_prog_cc_g=yes 4301 else $as_nop 4302 CFLAGS="" 4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4304 /* end confdefs.h. */ 4305 4306 int 4307 main (void) 4308 { 4309 4310 ; 4311 return 0; 4312 } 4313 _ACEOF 4314 if ac_fn_c_try_compile "$LINENO" 4315 then : 4316 4317 else $as_nop 4318 ac_c_werror_flag=$ac_save_c_werror_flag 4319 CFLAGS="-g" 4320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4321 /* end confdefs.h. */ 4322 4323 int 4324 main (void) 4325 { 4326 4327 ; 4328 return 0; 4329 } 4330 _ACEOF 4331 if ac_fn_c_try_compile "$LINENO" 4332 then : 4333 ac_cv_prog_cc_g=yes 4334 fi 4335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4336 fi 4337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4338 fi 4339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4340 ac_c_werror_flag=$ac_save_c_werror_flag 4341 fi 4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4343 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4344 if test $ac_test_CFLAGS; then 4345 CFLAGS=$ac_save_CFLAGS 4346 elif test $ac_cv_prog_cc_g = yes; then 4347 if test "$GCC" = yes; then 4348 CFLAGS="-g -O2" 4349 else 4350 CFLAGS="-g" 4351 fi 4352 else 4353 if test "$GCC" = yes; then 4354 CFLAGS="-O2" 4355 else 4356 CFLAGS= 4357 fi 4358 fi 4359 ac_prog_cc_stdc=no 4360 if test x$ac_prog_cc_stdc = xno 4361 then : 4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4363 printf %s "checking for $CC option to enable C11 features... " >&6; } 4364 if test ${ac_cv_prog_cc_c11+y} 4365 then : 4366 printf %s "(cached) " >&6 4367 else $as_nop 4368 ac_cv_prog_cc_c11=no 4369 ac_save_CC=$CC 4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4371 /* end confdefs.h. */ 4372 $ac_c_conftest_c11_program 4373 _ACEOF 4374 for ac_arg in '' -std=gnu11 4375 do 4376 CC="$ac_save_CC $ac_arg" 4377 if ac_fn_c_try_compile "$LINENO" 4378 then : 4379 ac_cv_prog_cc_c11=$ac_arg 4380 fi 4381 rm -f core conftest.err conftest.$ac_objext conftest.beam 4382 test "x$ac_cv_prog_cc_c11" != "xno" && break 4383 done 4384 rm -f conftest.$ac_ext 4385 CC=$ac_save_CC 4386 fi 4387 4388 if test "x$ac_cv_prog_cc_c11" = xno 4389 then : 4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4391 printf "%s\n" "unsupported" >&6; } 4392 else $as_nop 4393 if test "x$ac_cv_prog_cc_c11" = x 4394 then : 4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4396 printf "%s\n" "none needed" >&6; } 4397 else $as_nop 4398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4399 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4400 CC="$CC $ac_cv_prog_cc_c11" 4401 fi 4402 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4403 ac_prog_cc_stdc=c11 4404 fi 4405 fi 4406 if test x$ac_prog_cc_stdc = xno 4407 then : 4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4409 printf %s "checking for $CC option to enable C99 features... " >&6; } 4410 if test ${ac_cv_prog_cc_c99+y} 4411 then : 4412 printf %s "(cached) " >&6 4413 else $as_nop 4414 ac_cv_prog_cc_c99=no 4415 ac_save_CC=$CC 4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4417 /* end confdefs.h. */ 4418 $ac_c_conftest_c99_program 4419 _ACEOF 4420 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4421 do 4422 CC="$ac_save_CC $ac_arg" 4423 if ac_fn_c_try_compile "$LINENO" 4424 then : 4425 ac_cv_prog_cc_c99=$ac_arg 4426 fi 4427 rm -f core conftest.err conftest.$ac_objext conftest.beam 4428 test "x$ac_cv_prog_cc_c99" != "xno" && break 4429 done 4430 rm -f conftest.$ac_ext 4431 CC=$ac_save_CC 4432 fi 4433 4434 if test "x$ac_cv_prog_cc_c99" = xno 4435 then : 4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4437 printf "%s\n" "unsupported" >&6; } 4438 else $as_nop 4439 if test "x$ac_cv_prog_cc_c99" = x 4440 then : 4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4442 printf "%s\n" "none needed" >&6; } 4443 else $as_nop 4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4445 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4446 CC="$CC $ac_cv_prog_cc_c99" 4447 fi 4448 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4449 ac_prog_cc_stdc=c99 4450 fi 4451 fi 4452 if test x$ac_prog_cc_stdc = xno 4453 then : 4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4455 printf %s "checking for $CC option to enable C89 features... " >&6; } 4456 if test ${ac_cv_prog_cc_c89+y} 4457 then : 4458 printf %s "(cached) " >&6 4459 else $as_nop 4460 ac_cv_prog_cc_c89=no 4461 ac_save_CC=$CC 4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4463 /* end confdefs.h. */ 4464 $ac_c_conftest_c89_program 4465 _ACEOF 4466 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4467 do 4468 CC="$ac_save_CC $ac_arg" 4469 if ac_fn_c_try_compile "$LINENO" 4470 then : 4471 ac_cv_prog_cc_c89=$ac_arg 4472 fi 4473 rm -f core conftest.err conftest.$ac_objext conftest.beam 4474 test "x$ac_cv_prog_cc_c89" != "xno" && break 4475 done 4476 rm -f conftest.$ac_ext 4477 CC=$ac_save_CC 4478 fi 4479 4480 if test "x$ac_cv_prog_cc_c89" = xno 4481 then : 4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4483 printf "%s\n" "unsupported" >&6; } 4484 else $as_nop 4485 if test "x$ac_cv_prog_cc_c89" = x 4486 then : 4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4488 printf "%s\n" "none needed" >&6; } 4489 else $as_nop 4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4491 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4492 CC="$CC $ac_cv_prog_cc_c89" 4493 fi 4494 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4495 ac_prog_cc_stdc=c89 4496 fi 4497 fi 4498 4499 ac_ext=c 4500 ac_cpp='$CPP $CPPFLAGS' 4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4504 4505 4506 ac_ext=c 4507 ac_cpp='$CPP $CPPFLAGS' 4508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4510 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4512 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4513 if test ${am_cv_prog_cc_c_o+y} 4514 then : 4515 printf %s "(cached) " >&6 4516 else $as_nop 4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4518 /* end confdefs.h. */ 4519 4520 int 4521 main (void) 4522 { 4523 4524 ; 4525 return 0; 4526 } 4527 _ACEOF 4528 # Make sure it works both with $CC and with simple cc. 4529 # Following AC_PROG_CC_C_O, we do the test twice because some 4530 # compilers refuse to overwrite an existing .o file with -o, 4531 # though they will create one. 4532 am_cv_prog_cc_c_o=yes 4533 for am_i in 1 2; do 4534 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4535 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4536 ac_status=$? 4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4538 (exit $ac_status); } \ 4539 && test -f conftest2.$ac_objext; then 4540 : OK 4541 else 4542 am_cv_prog_cc_c_o=no 4543 break 4544 fi 4545 done 4546 rm -f core conftest* 4547 unset am_i 4548 fi 4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4550 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4551 if test "$am_cv_prog_cc_c_o" != yes; then 4552 # Losing compiler, so override with the script. 4553 # FIXME: It is wrong to rewrite CC. 4554 # But if we don't then we get into trouble of one sort or another. 4555 # A longer-term fix would be to have automake use am__CC in this case, 4556 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4557 CC="$am_aux_dir/compile $CC" 4558 fi 4559 ac_ext=c 4560 ac_cpp='$CPP $CPPFLAGS' 4561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4563 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4564 4565 4566 depcc="$CC" am_compiler_list= 4567 4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4569 printf %s "checking dependency style of $depcc... " >&6; } 4570 if test ${am_cv_CC_dependencies_compiler_type+y} 4571 then : 4572 printf %s "(cached) " >&6 4573 else $as_nop 4574 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4575 # We make a subdir and do the tests there. Otherwise we can end up 4576 # making bogus files that we don't know about and never remove. For 4577 # instance it was reported that on HP-UX the gcc test will end up 4578 # making a dummy file named 'D' -- because '-MD' means "put the output 4579 # in D". 4580 rm -rf conftest.dir 4581 mkdir conftest.dir 4582 # Copy depcomp to subdir because otherwise we won't find it if we're 4583 # using a relative directory. 4584 cp "$am_depcomp" conftest.dir 4585 cd conftest.dir 4586 # We will build objects and dependencies in a subdirectory because 4587 # it helps to detect inapplicable dependency modes. For instance 4588 # both Tru64's cc and ICC support -MD to output dependencies as a 4589 # side effect of compilation, but ICC will put the dependencies in 4590 # the current directory while Tru64 will put them in the object 4591 # directory. 4592 mkdir sub 4593 4594 am_cv_CC_dependencies_compiler_type=none 4595 if test "$am_compiler_list" = ""; then 4596 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4597 fi 4598 am__universal=false 4599 case " $depcc " in #( 4600 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4601 esac 4602 4603 for depmode in $am_compiler_list; do 4604 # Setup a source with many dependencies, because some compilers 4605 # like to wrap large dependency lists on column 80 (with \), and 4606 # we should not choose a depcomp mode which is confused by this. 4607 # 4608 # We need to recreate these files for each test, as the compiler may 4609 # overwrite some of them when testing with obscure command lines. 4610 # This happens at least with the AIX C compiler. 4611 : > sub/conftest.c 4612 for i in 1 2 3 4 5 6; do 4613 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4614 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4615 # Solaris 10 /bin/sh. 4616 echo '/* dummy */' > sub/conftst$i.h 4617 done 4618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4619 4620 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4621 # mode. It turns out that the SunPro C++ compiler does not properly 4622 # handle '-M -o', and we need to detect this. Also, some Intel 4623 # versions had trouble with output in subdirs. 4624 am__obj=sub/conftest.${OBJEXT-o} 4625 am__minus_obj="-o $am__obj" 4626 case $depmode in 4627 gcc) 4628 # This depmode causes a compiler race in universal mode. 4629 test "$am__universal" = false || continue 4630 ;; 4631 nosideeffect) 4632 # After this tag, mechanisms are not by side-effect, so they'll 4633 # only be used when explicitly requested. 4634 if test "x$enable_dependency_tracking" = xyes; then 4635 continue 4636 else 4637 break 4638 fi 4639 ;; 4640 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4641 # This compiler won't grok '-c -o', but also, the minuso test has 4642 # not run yet. These depmodes are late enough in the game, and 4643 # so weak that their functioning should not be impacted. 4644 am__obj=conftest.${OBJEXT-o} 4645 am__minus_obj= 4646 ;; 4647 none) break ;; 4648 esac 4649 if depmode=$depmode \ 4650 source=sub/conftest.c object=$am__obj \ 4651 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4652 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4653 >/dev/null 2>conftest.err && 4654 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4655 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4656 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4657 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4658 # icc doesn't choke on unknown options, it will just issue warnings 4659 # or remarks (even with -Werror). So we grep stderr for any message 4660 # that says an option was ignored or not supported. 4661 # When given -MP, icc 7.0 and 7.1 complain thusly: 4662 # icc: Command line warning: ignoring option '-M'; no argument required 4663 # The diagnosis changed in icc 8.0: 4664 # icc: Command line remark: option '-MP' not supported 4665 if (grep 'ignoring option' conftest.err || 4666 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4667 am_cv_CC_dependencies_compiler_type=$depmode 4668 break 4669 fi 4670 fi 4671 done 4672 4673 cd .. 4674 rm -rf conftest.dir 4675 else 4676 am_cv_CC_dependencies_compiler_type=none 4677 fi 4678 4679 fi 4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4681 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4683 4684 if 4685 test "x$enable_dependency_tracking" != xno \ 4686 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4687 am__fastdepCC_TRUE= 4688 am__fastdepCC_FALSE='#' 4689 else 4690 am__fastdepCC_TRUE='#' 4691 am__fastdepCC_FALSE= 4692 fi 4693 4694 4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4696 printf %s "checking for a sed that does not truncate output... " >&6; } 4697 if test ${ac_cv_path_SED+y} 4698 then : 4699 printf %s "(cached) " >&6 4700 else $as_nop 4701 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4702 for ac_i in 1 2 3 4 5 6 7; do 4703 ac_script="$ac_script$as_nl$ac_script" 4704 done 4705 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4706 { ac_script=; unset ac_script;} 4707 if test -z "$SED"; then 4708 ac_path_SED_found=false 4709 # Loop through the user's path and test for each of PROGNAME-LIST 4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4711 for as_dir in $PATH 4712 do 4713 IFS=$as_save_IFS 4714 case $as_dir in #((( 4715 '') as_dir=./ ;; 4716 */) ;; 4717 *) as_dir=$as_dir/ ;; 4718 esac 4719 for ac_prog in sed gsed 4720 do 4721 for ac_exec_ext in '' $ac_executable_extensions; do 4722 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4723 as_fn_executable_p "$ac_path_SED" || continue 4724 # Check for GNU ac_path_SED and select it if it is found. 4725 # Check for GNU $ac_path_SED 4726 case `"$ac_path_SED" --version 2>&1` in 4727 *GNU*) 4728 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4729 *) 4730 ac_count=0 4731 printf %s 0123456789 >"conftest.in" 4732 while : 4733 do 4734 cat "conftest.in" "conftest.in" >"conftest.tmp" 4735 mv "conftest.tmp" "conftest.in" 4736 cp "conftest.in" "conftest.nl" 4737 printf "%s\n" '' >> "conftest.nl" 4738 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4739 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4740 as_fn_arith $ac_count + 1 && ac_count=$as_val 4741 if test $ac_count -gt ${ac_path_SED_max-0}; then 4742 # Best one so far, save it but keep looking for a better one 4743 ac_cv_path_SED="$ac_path_SED" 4744 ac_path_SED_max=$ac_count 4745 fi 4746 # 10*(2^10) chars as input seems more than enough 4747 test $ac_count -gt 10 && break 4748 done 4749 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4750 esac 4751 4752 $ac_path_SED_found && break 3 4753 done 4754 done 4755 done 4756 IFS=$as_save_IFS 4757 if test -z "$ac_cv_path_SED"; then 4758 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4759 fi 4760 else 4761 ac_cv_path_SED=$SED 4762 fi 4763 4764 fi 4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4766 printf "%s\n" "$ac_cv_path_SED" >&6; } 4767 SED="$ac_cv_path_SED" 4768 rm -f conftest.sed 4769 4770 test -z "$SED" && SED=sed 4771 Xsed="$SED -e 1s/^X//" 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4784 printf %s "checking for grep that handles long lines and -e... " >&6; } 4785 if test ${ac_cv_path_GREP+y} 4786 then : 4787 printf %s "(cached) " >&6 4788 else $as_nop 4789 if test -z "$GREP"; then 4790 ac_path_GREP_found=false 4791 # Loop through the user's path and test for each of PROGNAME-LIST 4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4793 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4794 do 4795 IFS=$as_save_IFS 4796 case $as_dir in #((( 4797 '') as_dir=./ ;; 4798 */) ;; 4799 *) as_dir=$as_dir/ ;; 4800 esac 4801 for ac_prog in grep ggrep 4802 do 4803 for ac_exec_ext in '' $ac_executable_extensions; do 4804 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4805 as_fn_executable_p "$ac_path_GREP" || continue 4806 # Check for GNU ac_path_GREP and select it if it is found. 4807 # Check for GNU $ac_path_GREP 4808 case `"$ac_path_GREP" --version 2>&1` in 4809 *GNU*) 4810 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4811 *) 4812 ac_count=0 4813 printf %s 0123456789 >"conftest.in" 4814 while : 4815 do 4816 cat "conftest.in" "conftest.in" >"conftest.tmp" 4817 mv "conftest.tmp" "conftest.in" 4818 cp "conftest.in" "conftest.nl" 4819 printf "%s\n" 'GREP' >> "conftest.nl" 4820 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4822 as_fn_arith $ac_count + 1 && ac_count=$as_val 4823 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4824 # Best one so far, save it but keep looking for a better one 4825 ac_cv_path_GREP="$ac_path_GREP" 4826 ac_path_GREP_max=$ac_count 4827 fi 4828 # 10*(2^10) chars as input seems more than enough 4829 test $ac_count -gt 10 && break 4830 done 4831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4832 esac 4833 4834 $ac_path_GREP_found && break 3 4835 done 4836 done 4837 done 4838 IFS=$as_save_IFS 4839 if test -z "$ac_cv_path_GREP"; then 4840 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4841 fi 4842 else 4843 ac_cv_path_GREP=$GREP 4844 fi 4845 4846 fi 4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4848 printf "%s\n" "$ac_cv_path_GREP" >&6; } 4849 GREP="$ac_cv_path_GREP" 4850 4851 4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4853 printf %s "checking for egrep... " >&6; } 4854 if test ${ac_cv_path_EGREP+y} 4855 then : 4856 printf %s "(cached) " >&6 4857 else $as_nop 4858 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4859 then ac_cv_path_EGREP="$GREP -E" 4860 else 4861 if test -z "$EGREP"; then 4862 ac_path_EGREP_found=false 4863 # Loop through the user's path and test for each of PROGNAME-LIST 4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4866 do 4867 IFS=$as_save_IFS 4868 case $as_dir in #((( 4869 '') as_dir=./ ;; 4870 */) ;; 4871 *) as_dir=$as_dir/ ;; 4872 esac 4873 for ac_prog in egrep 4874 do 4875 for ac_exec_ext in '' $ac_executable_extensions; do 4876 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4877 as_fn_executable_p "$ac_path_EGREP" || continue 4878 # Check for GNU ac_path_EGREP and select it if it is found. 4879 # Check for GNU $ac_path_EGREP 4880 case `"$ac_path_EGREP" --version 2>&1` in 4881 *GNU*) 4882 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4883 *) 4884 ac_count=0 4885 printf %s 0123456789 >"conftest.in" 4886 while : 4887 do 4888 cat "conftest.in" "conftest.in" >"conftest.tmp" 4889 mv "conftest.tmp" "conftest.in" 4890 cp "conftest.in" "conftest.nl" 4891 printf "%s\n" 'EGREP' >> "conftest.nl" 4892 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4893 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4894 as_fn_arith $ac_count + 1 && ac_count=$as_val 4895 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4896 # Best one so far, save it but keep looking for a better one 4897 ac_cv_path_EGREP="$ac_path_EGREP" 4898 ac_path_EGREP_max=$ac_count 4899 fi 4900 # 10*(2^10) chars as input seems more than enough 4901 test $ac_count -gt 10 && break 4902 done 4903 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4904 esac 4905 4906 $ac_path_EGREP_found && break 3 4907 done 4908 done 4909 done 4910 IFS=$as_save_IFS 4911 if test -z "$ac_cv_path_EGREP"; then 4912 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4913 fi 4914 else 4915 ac_cv_path_EGREP=$EGREP 4916 fi 4917 4918 fi 4919 fi 4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4921 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4922 EGREP="$ac_cv_path_EGREP" 4923 4924 4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4926 printf %s "checking for fgrep... " >&6; } 4927 if test ${ac_cv_path_FGREP+y} 4928 then : 4929 printf %s "(cached) " >&6 4930 else $as_nop 4931 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4932 then ac_cv_path_FGREP="$GREP -F" 4933 else 4934 if test -z "$FGREP"; then 4935 ac_path_FGREP_found=false 4936 # Loop through the user's path and test for each of PROGNAME-LIST 4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4939 do 4940 IFS=$as_save_IFS 4941 case $as_dir in #((( 4942 '') as_dir=./ ;; 4943 */) ;; 4944 *) as_dir=$as_dir/ ;; 4945 esac 4946 for ac_prog in fgrep 4947 do 4948 for ac_exec_ext in '' $ac_executable_extensions; do 4949 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4950 as_fn_executable_p "$ac_path_FGREP" || continue 4951 # Check for GNU ac_path_FGREP and select it if it is found. 4952 # Check for GNU $ac_path_FGREP 4953 case `"$ac_path_FGREP" --version 2>&1` in 4954 *GNU*) 4955 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4956 *) 4957 ac_count=0 4958 printf %s 0123456789 >"conftest.in" 4959 while : 4960 do 4961 cat "conftest.in" "conftest.in" >"conftest.tmp" 4962 mv "conftest.tmp" "conftest.in" 4963 cp "conftest.in" "conftest.nl" 4964 printf "%s\n" 'FGREP' >> "conftest.nl" 4965 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4967 as_fn_arith $ac_count + 1 && ac_count=$as_val 4968 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4969 # Best one so far, save it but keep looking for a better one 4970 ac_cv_path_FGREP="$ac_path_FGREP" 4971 ac_path_FGREP_max=$ac_count 4972 fi 4973 # 10*(2^10) chars as input seems more than enough 4974 test $ac_count -gt 10 && break 4975 done 4976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4977 esac 4978 4979 $ac_path_FGREP_found && break 3 4980 done 4981 done 4982 done 4983 IFS=$as_save_IFS 4984 if test -z "$ac_cv_path_FGREP"; then 4985 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4986 fi 4987 else 4988 ac_cv_path_FGREP=$FGREP 4989 fi 4990 4991 fi 4992 fi 4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4994 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 4995 FGREP="$ac_cv_path_FGREP" 4996 4997 4998 test -z "$GREP" && GREP=grep 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 # Check whether --with-gnu-ld was given. 5019 if test ${with_gnu_ld+y} 5020 then : 5021 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5022 else $as_nop 5023 with_gnu_ld=no 5024 fi 5025 5026 ac_prog=ld 5027 if test yes = "$GCC"; then 5028 # Check if gcc -print-prog-name=ld gives a path. 5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5030 printf %s "checking for ld used by $CC... " >&6; } 5031 case $host in 5032 *-*-mingw*) 5033 # gcc leaves a trailing carriage return, which upsets mingw 5034 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5035 *) 5036 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5037 esac 5038 case $ac_prog in 5039 # Accept absolute paths. 5040 [\\/]* | ?:[\\/]*) 5041 re_direlt='/[^/][^/]*/\.\./' 5042 # Canonicalize the pathname of ld 5043 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5044 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5045 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5046 done 5047 test -z "$LD" && LD=$ac_prog 5048 ;; 5049 "") 5050 # If it fails, then pretend we aren't using GCC. 5051 ac_prog=ld 5052 ;; 5053 *) 5054 # If it is relative, then search for the first ld in PATH. 5055 with_gnu_ld=unknown 5056 ;; 5057 esac 5058 elif test yes = "$with_gnu_ld"; then 5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5060 printf %s "checking for GNU ld... " >&6; } 5061 else 5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5063 printf %s "checking for non-GNU ld... " >&6; } 5064 fi 5065 if test ${lt_cv_path_LD+y} 5066 then : 5067 printf %s "(cached) " >&6 5068 else $as_nop 5069 if test -z "$LD"; then 5070 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5071 for ac_dir in $PATH; do 5072 IFS=$lt_save_ifs 5073 test -z "$ac_dir" && ac_dir=. 5074 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5075 lt_cv_path_LD=$ac_dir/$ac_prog 5076 # Check to see if the program is GNU ld. I'd rather use --version, 5077 # but apparently some variants of GNU ld only accept -v. 5078 # Break only if it was the GNU/non-GNU ld that we prefer. 5079 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5080 *GNU* | *'with BFD'*) 5081 test no != "$with_gnu_ld" && break 5082 ;; 5083 *) 5084 test yes != "$with_gnu_ld" && break 5085 ;; 5086 esac 5087 fi 5088 done 5089 IFS=$lt_save_ifs 5090 else 5091 lt_cv_path_LD=$LD # Let the user override the test with a path. 5092 fi 5093 fi 5094 5095 LD=$lt_cv_path_LD 5096 if test -n "$LD"; then 5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5098 printf "%s\n" "$LD" >&6; } 5099 else 5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5101 printf "%s\n" "no" >&6; } 5102 fi 5103 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5105 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5106 if test ${lt_cv_prog_gnu_ld+y} 5107 then : 5108 printf %s "(cached) " >&6 5109 else $as_nop 5110 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5111 case `$LD -v 2>&1 </dev/null` in 5112 *GNU* | *'with BFD'*) 5113 lt_cv_prog_gnu_ld=yes 5114 ;; 5115 *) 5116 lt_cv_prog_gnu_ld=no 5117 ;; 5118 esac 5119 fi 5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5121 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5122 with_gnu_ld=$lt_cv_prog_gnu_ld 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5133 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5134 if test ${lt_cv_path_NM+y} 5135 then : 5136 printf %s "(cached) " >&6 5137 else $as_nop 5138 if test -n "$NM"; then 5139 # Let the user override the test. 5140 lt_cv_path_NM=$NM 5141 else 5142 lt_nm_to_check=${ac_tool_prefix}nm 5143 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5144 lt_nm_to_check="$lt_nm_to_check nm" 5145 fi 5146 for lt_tmp_nm in $lt_nm_to_check; do 5147 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5148 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5149 IFS=$lt_save_ifs 5150 test -z "$ac_dir" && ac_dir=. 5151 tmp_nm=$ac_dir/$lt_tmp_nm 5152 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5153 # Check to see if the nm accepts a BSD-compat flag. 5154 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5155 # nm: unknown option "B" ignored 5156 # Tru64's nm complains that /dev/null is an invalid object file 5157 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5158 case $build_os in 5159 mingw*) lt_bad_file=conftest.nm/nofile ;; 5160 *) lt_bad_file=/dev/null ;; 5161 esac 5162 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5163 *$lt_bad_file* | *'Invalid file or object type'*) 5164 lt_cv_path_NM="$tmp_nm -B" 5165 break 2 5166 ;; 5167 *) 5168 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5169 */dev/null*) 5170 lt_cv_path_NM="$tmp_nm -p" 5171 break 2 5172 ;; 5173 *) 5174 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5175 continue # so that we can try to find one that supports BSD flags 5176 ;; 5177 esac 5178 ;; 5179 esac 5180 fi 5181 done 5182 IFS=$lt_save_ifs 5183 done 5184 : ${lt_cv_path_NM=no} 5185 fi 5186 fi 5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5188 printf "%s\n" "$lt_cv_path_NM" >&6; } 5189 if test no != "$lt_cv_path_NM"; then 5190 NM=$lt_cv_path_NM 5191 else 5192 # Didn't find any BSD compatible name lister, look for dumpbin. 5193 if test -n "$DUMPBIN"; then : 5194 # Let the user override the test. 5195 else 5196 if test -n "$ac_tool_prefix"; then 5197 for ac_prog in dumpbin "link -dump" 5198 do 5199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5202 printf %s "checking for $ac_word... " >&6; } 5203 if test ${ac_cv_prog_DUMPBIN+y} 5204 then : 5205 printf %s "(cached) " >&6 5206 else $as_nop 5207 if test -n "$DUMPBIN"; then 5208 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5209 else 5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5211 for as_dir in $PATH 5212 do 5213 IFS=$as_save_IFS 5214 case $as_dir in #((( 5215 '') as_dir=./ ;; 5216 */) ;; 5217 *) as_dir=$as_dir/ ;; 5218 esac 5219 for ac_exec_ext in '' $ac_executable_extensions; do 5220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5221 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5223 break 2 5224 fi 5225 done 5226 done 5227 IFS=$as_save_IFS 5228 5229 fi 5230 fi 5231 DUMPBIN=$ac_cv_prog_DUMPBIN 5232 if test -n "$DUMPBIN"; then 5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5234 printf "%s\n" "$DUMPBIN" >&6; } 5235 else 5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5237 printf "%s\n" "no" >&6; } 5238 fi 5239 5240 5241 test -n "$DUMPBIN" && break 5242 done 5243 fi 5244 if test -z "$DUMPBIN"; then 5245 ac_ct_DUMPBIN=$DUMPBIN 5246 for ac_prog in dumpbin "link -dump" 5247 do 5248 # Extract the first word of "$ac_prog", so it can be a program name with args. 5249 set dummy $ac_prog; ac_word=$2 5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5251 printf %s "checking for $ac_word... " >&6; } 5252 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5253 then : 5254 printf %s "(cached) " >&6 5255 else $as_nop 5256 if test -n "$ac_ct_DUMPBIN"; then 5257 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5258 else 5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5260 for as_dir in $PATH 5261 do 5262 IFS=$as_save_IFS 5263 case $as_dir in #((( 5264 '') as_dir=./ ;; 5265 */) ;; 5266 *) as_dir=$as_dir/ ;; 5267 esac 5268 for ac_exec_ext in '' $ac_executable_extensions; do 5269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5270 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5272 break 2 5273 fi 5274 done 5275 done 5276 IFS=$as_save_IFS 5277 5278 fi 5279 fi 5280 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5281 if test -n "$ac_ct_DUMPBIN"; then 5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5283 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5284 else 5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5286 printf "%s\n" "no" >&6; } 5287 fi 5288 5289 5290 test -n "$ac_ct_DUMPBIN" && break 5291 done 5292 5293 if test "x$ac_ct_DUMPBIN" = x; then 5294 DUMPBIN=":" 5295 else 5296 case $cross_compiling:$ac_tool_warned in 5297 yes:) 5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5299 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5300 ac_tool_warned=yes ;; 5301 esac 5302 DUMPBIN=$ac_ct_DUMPBIN 5303 fi 5304 fi 5305 5306 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5307 *COFF*) 5308 DUMPBIN="$DUMPBIN -symbols -headers" 5309 ;; 5310 *) 5311 DUMPBIN=: 5312 ;; 5313 esac 5314 fi 5315 5316 if test : != "$DUMPBIN"; then 5317 NM=$DUMPBIN 5318 fi 5319 fi 5320 test -z "$NM" && NM=nm 5321 5322 5323 5324 5325 5326 5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5328 printf %s "checking the name lister ($NM) interface... " >&6; } 5329 if test ${lt_cv_nm_interface+y} 5330 then : 5331 printf %s "(cached) " >&6 5332 else $as_nop 5333 lt_cv_nm_interface="BSD nm" 5334 echo "int some_variable = 0;" > conftest.$ac_ext 5335 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5336 (eval "$ac_compile" 2>conftest.err) 5337 cat conftest.err >&5 5338 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5339 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5340 cat conftest.err >&5 5341 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5342 cat conftest.out >&5 5343 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5344 lt_cv_nm_interface="MS dumpbin" 5345 fi 5346 rm -f conftest* 5347 fi 5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5349 printf "%s\n" "$lt_cv_nm_interface" >&6; } 5350 5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5352 printf %s "checking whether ln -s works... " >&6; } 5353 LN_S=$as_ln_s 5354 if test "$LN_S" = "ln -s"; then 5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5356 printf "%s\n" "yes" >&6; } 5357 else 5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5359 printf "%s\n" "no, using $LN_S" >&6; } 5360 fi 5361 5362 # find the maximum length of command line arguments 5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5364 printf %s "checking the maximum length of command line arguments... " >&6; } 5365 if test ${lt_cv_sys_max_cmd_len+y} 5366 then : 5367 printf %s "(cached) " >&6 5368 else $as_nop 5369 i=0 5370 teststring=ABCD 5371 5372 case $build_os in 5373 msdosdjgpp*) 5374 # On DJGPP, this test can blow up pretty badly due to problems in libc 5375 # (any single argument exceeding 2000 bytes causes a buffer overrun 5376 # during glob expansion). Even if it were fixed, the result of this 5377 # check would be larger than it should be. 5378 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5379 ;; 5380 5381 gnu*) 5382 # Under GNU Hurd, this test is not required because there is 5383 # no limit to the length of command line arguments. 5384 # Libtool will interpret -1 as no limit whatsoever 5385 lt_cv_sys_max_cmd_len=-1; 5386 ;; 5387 5388 cygwin* | mingw* | cegcc*) 5389 # On Win9x/ME, this test blows up -- it succeeds, but takes 5390 # about 5 minutes as the teststring grows exponentially. 5391 # Worse, since 9x/ME are not pre-emptively multitasking, 5392 # you end up with a "frozen" computer, even though with patience 5393 # the test eventually succeeds (with a max line length of 256k). 5394 # Instead, let's just punt: use the minimum linelength reported by 5395 # all of the supported platforms: 8192 (on NT/2K/XP). 5396 lt_cv_sys_max_cmd_len=8192; 5397 ;; 5398 5399 mint*) 5400 # On MiNT this can take a long time and run out of memory. 5401 lt_cv_sys_max_cmd_len=8192; 5402 ;; 5403 5404 amigaos*) 5405 # On AmigaOS with pdksh, this test takes hours, literally. 5406 # So we just punt and use a minimum line length of 8192. 5407 lt_cv_sys_max_cmd_len=8192; 5408 ;; 5409 5410 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5411 # This has been around since 386BSD, at least. Likely further. 5412 if test -x /sbin/sysctl; then 5413 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5414 elif test -x /usr/sbin/sysctl; then 5415 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5416 else 5417 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5418 fi 5419 # And add a safety zone 5420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5421 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5422 ;; 5423 5424 interix*) 5425 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5426 lt_cv_sys_max_cmd_len=196608 5427 ;; 5428 5429 os2*) 5430 # The test takes a long time on OS/2. 5431 lt_cv_sys_max_cmd_len=8192 5432 ;; 5433 5434 osf*) 5435 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5436 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5437 # nice to cause kernel panics so lets avoid the loop below. 5438 # First set a reasonable default. 5439 lt_cv_sys_max_cmd_len=16384 5440 # 5441 if test -x /sbin/sysconfig; then 5442 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5443 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5444 esac 5445 fi 5446 ;; 5447 sco3.2v5*) 5448 lt_cv_sys_max_cmd_len=102400 5449 ;; 5450 sysv5* | sco5v6* | sysv4.2uw2*) 5451 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5452 if test -n "$kargmax"; then 5453 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5454 else 5455 lt_cv_sys_max_cmd_len=32768 5456 fi 5457 ;; 5458 *) 5459 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5460 if test -n "$lt_cv_sys_max_cmd_len" && \ 5461 test undefined != "$lt_cv_sys_max_cmd_len"; then 5462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5464 else 5465 # Make teststring a little bigger before we do anything with it. 5466 # a 1K string should be a reasonable start. 5467 for i in 1 2 3 4 5 6 7 8; do 5468 teststring=$teststring$teststring 5469 done 5470 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5471 # If test is not a shell built-in, we'll probably end up computing a 5472 # maximum length that is only half of the actual maximum length, but 5473 # we can't tell. 5474 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5475 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5476 test 17 != "$i" # 1/2 MB should be enough 5477 do 5478 i=`expr $i + 1` 5479 teststring=$teststring$teststring 5480 done 5481 # Only check the string length outside the loop. 5482 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5483 teststring= 5484 # Add a significant safety factor because C++ compilers can tack on 5485 # massive amounts of additional arguments before passing them to the 5486 # linker. It appears as though 1/2 is a usable value. 5487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5488 fi 5489 ;; 5490 esac 5491 5492 fi 5493 5494 if test -n "$lt_cv_sys_max_cmd_len"; then 5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5496 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5497 else 5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5499 printf "%s\n" "none" >&6; } 5500 fi 5501 max_cmd_len=$lt_cv_sys_max_cmd_len 5502 5503 5504 5505 5506 5507 5508 : ${CP="cp -f"} 5509 : ${MV="mv -f"} 5510 : ${RM="rm -f"} 5511 5512 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5513 lt_unset=unset 5514 else 5515 lt_unset=false 5516 fi 5517 5518 5519 5520 5521 5522 # test EBCDIC or ASCII 5523 case `echo X|tr X '\101'` in 5524 A) # ASCII based system 5525 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5526 lt_SP2NL='tr \040 \012' 5527 lt_NL2SP='tr \015\012 \040\040' 5528 ;; 5529 *) # EBCDIC based system 5530 lt_SP2NL='tr \100 \n' 5531 lt_NL2SP='tr \r\n \100\100' 5532 ;; 5533 esac 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5544 printf %s "checking how to convert $build file names to $host format... " >&6; } 5545 if test ${lt_cv_to_host_file_cmd+y} 5546 then : 5547 printf %s "(cached) " >&6 5548 else $as_nop 5549 case $host in 5550 *-*-mingw* ) 5551 case $build in 5552 *-*-mingw* ) # actually msys 5553 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5554 ;; 5555 *-*-cygwin* ) 5556 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5557 ;; 5558 * ) # otherwise, assume *nix 5559 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5560 ;; 5561 esac 5562 ;; 5563 *-*-cygwin* ) 5564 case $build in 5565 *-*-mingw* ) # actually msys 5566 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5567 ;; 5568 *-*-cygwin* ) 5569 lt_cv_to_host_file_cmd=func_convert_file_noop 5570 ;; 5571 * ) # otherwise, assume *nix 5572 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5573 ;; 5574 esac 5575 ;; 5576 * ) # unhandled hosts (and "normal" native builds) 5577 lt_cv_to_host_file_cmd=func_convert_file_noop 5578 ;; 5579 esac 5580 5581 fi 5582 5583 to_host_file_cmd=$lt_cv_to_host_file_cmd 5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5585 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5586 5587 5588 5589 5590 5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5592 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5593 if test ${lt_cv_to_tool_file_cmd+y} 5594 then : 5595 printf %s "(cached) " >&6 5596 else $as_nop 5597 #assume ordinary cross tools, or native build. 5598 lt_cv_to_tool_file_cmd=func_convert_file_noop 5599 case $host in 5600 *-*-mingw* ) 5601 case $build in 5602 *-*-mingw* ) # actually msys 5603 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5604 ;; 5605 esac 5606 ;; 5607 esac 5608 5609 fi 5610 5611 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5613 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5614 5615 5616 5617 5618 5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5620 printf %s "checking for $LD option to reload object files... " >&6; } 5621 if test ${lt_cv_ld_reload_flag+y} 5622 then : 5623 printf %s "(cached) " >&6 5624 else $as_nop 5625 lt_cv_ld_reload_flag='-r' 5626 fi 5627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5628 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5629 reload_flag=$lt_cv_ld_reload_flag 5630 case $reload_flag in 5631 "" | " "*) ;; 5632 *) reload_flag=" $reload_flag" ;; 5633 esac 5634 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5635 case $host_os in 5636 cygwin* | mingw* | pw32* | cegcc*) 5637 if test yes != "$GCC"; then 5638 reload_cmds=false 5639 fi 5640 ;; 5641 darwin*) 5642 if test yes = "$GCC"; then 5643 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5644 else 5645 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5646 fi 5647 ;; 5648 esac 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 if test -n "$ac_tool_prefix"; then 5659 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5660 set dummy ${ac_tool_prefix}file; ac_word=$2 5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5662 printf %s "checking for $ac_word... " >&6; } 5663 if test ${ac_cv_prog_FILECMD+y} 5664 then : 5665 printf %s "(cached) " >&6 5666 else $as_nop 5667 if test -n "$FILECMD"; then 5668 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5669 else 5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5671 for as_dir in $PATH 5672 do 5673 IFS=$as_save_IFS 5674 case $as_dir in #((( 5675 '') as_dir=./ ;; 5676 */) ;; 5677 *) as_dir=$as_dir/ ;; 5678 esac 5679 for ac_exec_ext in '' $ac_executable_extensions; do 5680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5681 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5683 break 2 5684 fi 5685 done 5686 done 5687 IFS=$as_save_IFS 5688 5689 fi 5690 fi 5691 FILECMD=$ac_cv_prog_FILECMD 5692 if test -n "$FILECMD"; then 5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5694 printf "%s\n" "$FILECMD" >&6; } 5695 else 5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5697 printf "%s\n" "no" >&6; } 5698 fi 5699 5700 5701 fi 5702 if test -z "$ac_cv_prog_FILECMD"; then 5703 ac_ct_FILECMD=$FILECMD 5704 # Extract the first word of "file", so it can be a program name with args. 5705 set dummy file; ac_word=$2 5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5707 printf %s "checking for $ac_word... " >&6; } 5708 if test ${ac_cv_prog_ac_ct_FILECMD+y} 5709 then : 5710 printf %s "(cached) " >&6 5711 else $as_nop 5712 if test -n "$ac_ct_FILECMD"; then 5713 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5714 else 5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5716 for as_dir in $PATH 5717 do 5718 IFS=$as_save_IFS 5719 case $as_dir in #((( 5720 '') as_dir=./ ;; 5721 */) ;; 5722 *) as_dir=$as_dir/ ;; 5723 esac 5724 for ac_exec_ext in '' $ac_executable_extensions; do 5725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5726 ac_cv_prog_ac_ct_FILECMD="file" 5727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5728 break 2 5729 fi 5730 done 5731 done 5732 IFS=$as_save_IFS 5733 5734 fi 5735 fi 5736 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5737 if test -n "$ac_ct_FILECMD"; then 5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5739 printf "%s\n" "$ac_ct_FILECMD" >&6; } 5740 else 5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5742 printf "%s\n" "no" >&6; } 5743 fi 5744 5745 if test "x$ac_ct_FILECMD" = x; then 5746 FILECMD=":" 5747 else 5748 case $cross_compiling:$ac_tool_warned in 5749 yes:) 5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5751 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5752 ac_tool_warned=yes ;; 5753 esac 5754 FILECMD=$ac_ct_FILECMD 5755 fi 5756 else 5757 FILECMD="$ac_cv_prog_FILECMD" 5758 fi 5759 5760 5761 5762 5763 5764 5765 5766 if test -n "$ac_tool_prefix"; then 5767 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5768 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5770 printf %s "checking for $ac_word... " >&6; } 5771 if test ${ac_cv_prog_OBJDUMP+y} 5772 then : 5773 printf %s "(cached) " >&6 5774 else $as_nop 5775 if test -n "$OBJDUMP"; then 5776 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5777 else 5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5779 for as_dir in $PATH 5780 do 5781 IFS=$as_save_IFS 5782 case $as_dir in #((( 5783 '') as_dir=./ ;; 5784 */) ;; 5785 *) as_dir=$as_dir/ ;; 5786 esac 5787 for ac_exec_ext in '' $ac_executable_extensions; do 5788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5789 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5791 break 2 5792 fi 5793 done 5794 done 5795 IFS=$as_save_IFS 5796 5797 fi 5798 fi 5799 OBJDUMP=$ac_cv_prog_OBJDUMP 5800 if test -n "$OBJDUMP"; then 5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5802 printf "%s\n" "$OBJDUMP" >&6; } 5803 else 5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5805 printf "%s\n" "no" >&6; } 5806 fi 5807 5808 5809 fi 5810 if test -z "$ac_cv_prog_OBJDUMP"; then 5811 ac_ct_OBJDUMP=$OBJDUMP 5812 # Extract the first word of "objdump", so it can be a program name with args. 5813 set dummy objdump; ac_word=$2 5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5815 printf %s "checking for $ac_word... " >&6; } 5816 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5817 then : 5818 printf %s "(cached) " >&6 5819 else $as_nop 5820 if test -n "$ac_ct_OBJDUMP"; then 5821 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5822 else 5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5824 for as_dir in $PATH 5825 do 5826 IFS=$as_save_IFS 5827 case $as_dir in #((( 5828 '') as_dir=./ ;; 5829 */) ;; 5830 *) as_dir=$as_dir/ ;; 5831 esac 5832 for ac_exec_ext in '' $ac_executable_extensions; do 5833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5834 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5836 break 2 5837 fi 5838 done 5839 done 5840 IFS=$as_save_IFS 5841 5842 fi 5843 fi 5844 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5845 if test -n "$ac_ct_OBJDUMP"; then 5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5847 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5848 else 5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5850 printf "%s\n" "no" >&6; } 5851 fi 5852 5853 if test "x$ac_ct_OBJDUMP" = x; then 5854 OBJDUMP="false" 5855 else 5856 case $cross_compiling:$ac_tool_warned in 5857 yes:) 5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5859 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5860 ac_tool_warned=yes ;; 5861 esac 5862 OBJDUMP=$ac_ct_OBJDUMP 5863 fi 5864 else 5865 OBJDUMP="$ac_cv_prog_OBJDUMP" 5866 fi 5867 5868 test -z "$OBJDUMP" && OBJDUMP=objdump 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5879 printf %s "checking how to recognize dependent libraries... " >&6; } 5880 if test ${lt_cv_deplibs_check_method+y} 5881 then : 5882 printf %s "(cached) " >&6 5883 else $as_nop 5884 lt_cv_file_magic_cmd='$MAGIC_CMD' 5885 lt_cv_file_magic_test_file= 5886 lt_cv_deplibs_check_method='unknown' 5887 # Need to set the preceding variable on all platforms that support 5888 # interlibrary dependencies. 5889 # 'none' -- dependencies not supported. 5890 # 'unknown' -- same as none, but documents that we really don't know. 5891 # 'pass_all' -- all dependencies passed with no checks. 5892 # 'test_compile' -- check by making test program. 5893 # 'file_magic [[regex]]' -- check by looking for files in library path 5894 # that responds to the $file_magic_cmd with a given extended regex. 5895 # If you have 'file' or equivalent on your system and you're not sure 5896 # whether 'pass_all' will *always* work, you probably want this one. 5897 5898 case $host_os in 5899 aix[4-9]*) 5900 lt_cv_deplibs_check_method=pass_all 5901 ;; 5902 5903 beos*) 5904 lt_cv_deplibs_check_method=pass_all 5905 ;; 5906 5907 bsdi[45]*) 5908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5909 lt_cv_file_magic_cmd='$FILECMD -L' 5910 lt_cv_file_magic_test_file=/shlib/libc.so 5911 ;; 5912 5913 cygwin*) 5914 # func_win32_libid is a shell function defined in ltmain.sh 5915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5916 lt_cv_file_magic_cmd='func_win32_libid' 5917 ;; 5918 5919 mingw* | pw32*) 5920 # Base MSYS/MinGW do not provide the 'file' command needed by 5921 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5922 # unless we find 'file', for example because we are cross-compiling. 5923 if ( file / ) >/dev/null 2>&1; then 5924 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5925 lt_cv_file_magic_cmd='func_win32_libid' 5926 else 5927 # Keep this pattern in sync with the one in func_win32_libid. 5928 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5929 lt_cv_file_magic_cmd='$OBJDUMP -f' 5930 fi 5931 ;; 5932 5933 cegcc*) 5934 # use the weaker test based on 'objdump'. See mingw*. 5935 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5936 lt_cv_file_magic_cmd='$OBJDUMP -f' 5937 ;; 5938 5939 darwin* | rhapsody*) 5940 lt_cv_deplibs_check_method=pass_all 5941 ;; 5942 5943 freebsd* | dragonfly* | midnightbsd*) 5944 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5945 case $host_cpu in 5946 i*86 ) 5947 # Not sure whether the presence of OpenBSD here was a mistake. 5948 # Let's accept both of them until this is cleared up. 5949 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5950 lt_cv_file_magic_cmd=$FILECMD 5951 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5952 ;; 5953 esac 5954 else 5955 lt_cv_deplibs_check_method=pass_all 5956 fi 5957 ;; 5958 5959 haiku*) 5960 lt_cv_deplibs_check_method=pass_all 5961 ;; 5962 5963 hpux10.20* | hpux11*) 5964 lt_cv_file_magic_cmd=$FILECMD 5965 case $host_cpu in 5966 ia64*) 5967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5968 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5969 ;; 5970 hppa*64*) 5971 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]' 5972 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5973 ;; 5974 *) 5975 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5976 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5977 ;; 5978 esac 5979 ;; 5980 5981 interix[3-9]*) 5982 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5984 ;; 5985 5986 irix5* | irix6* | nonstopux*) 5987 case $LD in 5988 *-32|*"-32 ") libmagic=32-bit;; 5989 *-n32|*"-n32 ") libmagic=N32;; 5990 *-64|*"-64 ") libmagic=64-bit;; 5991 *) libmagic=never-match;; 5992 esac 5993 lt_cv_deplibs_check_method=pass_all 5994 ;; 5995 5996 # This must be glibc/ELF. 5997 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5998 lt_cv_deplibs_check_method=pass_all 5999 ;; 6000 6001 netbsd*) 6002 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6004 else 6005 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6006 fi 6007 ;; 6008 6009 newos6*) 6010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6011 lt_cv_file_magic_cmd=$FILECMD 6012 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6013 ;; 6014 6015 *nto* | *qnx*) 6016 lt_cv_deplibs_check_method=pass_all 6017 ;; 6018 6019 openbsd* | bitrig*) 6020 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6022 else 6023 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6024 fi 6025 ;; 6026 6027 osf3* | osf4* | osf5*) 6028 lt_cv_deplibs_check_method=pass_all 6029 ;; 6030 6031 rdos*) 6032 lt_cv_deplibs_check_method=pass_all 6033 ;; 6034 6035 solaris*) 6036 lt_cv_deplibs_check_method=pass_all 6037 ;; 6038 6039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6040 lt_cv_deplibs_check_method=pass_all 6041 ;; 6042 6043 sysv4 | sysv4.3*) 6044 case $host_vendor in 6045 motorola) 6046 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]' 6047 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6048 ;; 6049 ncr) 6050 lt_cv_deplibs_check_method=pass_all 6051 ;; 6052 sequent) 6053 lt_cv_file_magic_cmd='/bin/file' 6054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6055 ;; 6056 sni) 6057 lt_cv_file_magic_cmd='/bin/file' 6058 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6059 lt_cv_file_magic_test_file=/lib/libc.so 6060 ;; 6061 siemens) 6062 lt_cv_deplibs_check_method=pass_all 6063 ;; 6064 pc) 6065 lt_cv_deplibs_check_method=pass_all 6066 ;; 6067 esac 6068 ;; 6069 6070 tpf*) 6071 lt_cv_deplibs_check_method=pass_all 6072 ;; 6073 os2*) 6074 lt_cv_deplibs_check_method=pass_all 6075 ;; 6076 esac 6077 6078 fi 6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6080 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6081 6082 file_magic_glob= 6083 want_nocaseglob=no 6084 if test "$build" = "$host"; then 6085 case $host_os in 6086 mingw* | pw32*) 6087 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6088 want_nocaseglob=yes 6089 else 6090 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6091 fi 6092 ;; 6093 esac 6094 fi 6095 6096 file_magic_cmd=$lt_cv_file_magic_cmd 6097 deplibs_check_method=$lt_cv_deplibs_check_method 6098 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 if test -n "$ac_tool_prefix"; then 6122 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6123 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6125 printf %s "checking for $ac_word... " >&6; } 6126 if test ${ac_cv_prog_DLLTOOL+y} 6127 then : 6128 printf %s "(cached) " >&6 6129 else $as_nop 6130 if test -n "$DLLTOOL"; then 6131 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6132 else 6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6134 for as_dir in $PATH 6135 do 6136 IFS=$as_save_IFS 6137 case $as_dir in #((( 6138 '') as_dir=./ ;; 6139 */) ;; 6140 *) as_dir=$as_dir/ ;; 6141 esac 6142 for ac_exec_ext in '' $ac_executable_extensions; do 6143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6144 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6146 break 2 6147 fi 6148 done 6149 done 6150 IFS=$as_save_IFS 6151 6152 fi 6153 fi 6154 DLLTOOL=$ac_cv_prog_DLLTOOL 6155 if test -n "$DLLTOOL"; then 6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6157 printf "%s\n" "$DLLTOOL" >&6; } 6158 else 6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6160 printf "%s\n" "no" >&6; } 6161 fi 6162 6163 6164 fi 6165 if test -z "$ac_cv_prog_DLLTOOL"; then 6166 ac_ct_DLLTOOL=$DLLTOOL 6167 # Extract the first word of "dlltool", so it can be a program name with args. 6168 set dummy dlltool; ac_word=$2 6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6170 printf %s "checking for $ac_word... " >&6; } 6171 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6172 then : 6173 printf %s "(cached) " >&6 6174 else $as_nop 6175 if test -n "$ac_ct_DLLTOOL"; then 6176 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6177 else 6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6179 for as_dir in $PATH 6180 do 6181 IFS=$as_save_IFS 6182 case $as_dir in #((( 6183 '') as_dir=./ ;; 6184 */) ;; 6185 *) as_dir=$as_dir/ ;; 6186 esac 6187 for ac_exec_ext in '' $ac_executable_extensions; do 6188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6189 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6191 break 2 6192 fi 6193 done 6194 done 6195 IFS=$as_save_IFS 6196 6197 fi 6198 fi 6199 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6200 if test -n "$ac_ct_DLLTOOL"; then 6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6202 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6203 else 6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6205 printf "%s\n" "no" >&6; } 6206 fi 6207 6208 if test "x$ac_ct_DLLTOOL" = x; then 6209 DLLTOOL="false" 6210 else 6211 case $cross_compiling:$ac_tool_warned in 6212 yes:) 6213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6214 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6215 ac_tool_warned=yes ;; 6216 esac 6217 DLLTOOL=$ac_ct_DLLTOOL 6218 fi 6219 else 6220 DLLTOOL="$ac_cv_prog_DLLTOOL" 6221 fi 6222 6223 test -z "$DLLTOOL" && DLLTOOL=dlltool 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6235 printf %s "checking how to associate runtime and link libraries... " >&6; } 6236 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6237 then : 6238 printf %s "(cached) " >&6 6239 else $as_nop 6240 lt_cv_sharedlib_from_linklib_cmd='unknown' 6241 6242 case $host_os in 6243 cygwin* | mingw* | pw32* | cegcc*) 6244 # two different shell functions defined in ltmain.sh; 6245 # decide which one to use based on capabilities of $DLLTOOL 6246 case `$DLLTOOL --help 2>&1` in 6247 *--identify-strict*) 6248 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6249 ;; 6250 *) 6251 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6252 ;; 6253 esac 6254 ;; 6255 *) 6256 # fallback: assume linklib IS sharedlib 6257 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6258 ;; 6259 esac 6260 6261 fi 6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6263 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6264 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6265 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6266 6267 6268 6269 6270 6271 6272 6273 6274 if test -n "$ac_tool_prefix"; then 6275 for ac_prog in ar 6276 do 6277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6280 printf %s "checking for $ac_word... " >&6; } 6281 if test ${ac_cv_prog_AR+y} 6282 then : 6283 printf %s "(cached) " >&6 6284 else $as_nop 6285 if test -n "$AR"; then 6286 ac_cv_prog_AR="$AR" # Let the user override the test. 6287 else 6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6289 for as_dir in $PATH 6290 do 6291 IFS=$as_save_IFS 6292 case $as_dir in #((( 6293 '') as_dir=./ ;; 6294 */) ;; 6295 *) as_dir=$as_dir/ ;; 6296 esac 6297 for ac_exec_ext in '' $ac_executable_extensions; do 6298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6299 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6301 break 2 6302 fi 6303 done 6304 done 6305 IFS=$as_save_IFS 6306 6307 fi 6308 fi 6309 AR=$ac_cv_prog_AR 6310 if test -n "$AR"; then 6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6312 printf "%s\n" "$AR" >&6; } 6313 else 6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6315 printf "%s\n" "no" >&6; } 6316 fi 6317 6318 6319 test -n "$AR" && break 6320 done 6321 fi 6322 if test -z "$AR"; then 6323 ac_ct_AR=$AR 6324 for ac_prog in ar 6325 do 6326 # Extract the first word of "$ac_prog", so it can be a program name with args. 6327 set dummy $ac_prog; ac_word=$2 6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6329 printf %s "checking for $ac_word... " >&6; } 6330 if test ${ac_cv_prog_ac_ct_AR+y} 6331 then : 6332 printf %s "(cached) " >&6 6333 else $as_nop 6334 if test -n "$ac_ct_AR"; then 6335 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6336 else 6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6338 for as_dir in $PATH 6339 do 6340 IFS=$as_save_IFS 6341 case $as_dir in #((( 6342 '') as_dir=./ ;; 6343 */) ;; 6344 *) as_dir=$as_dir/ ;; 6345 esac 6346 for ac_exec_ext in '' $ac_executable_extensions; do 6347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6348 ac_cv_prog_ac_ct_AR="$ac_prog" 6349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6350 break 2 6351 fi 6352 done 6353 done 6354 IFS=$as_save_IFS 6355 6356 fi 6357 fi 6358 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6359 if test -n "$ac_ct_AR"; then 6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6361 printf "%s\n" "$ac_ct_AR" >&6; } 6362 else 6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6364 printf "%s\n" "no" >&6; } 6365 fi 6366 6367 6368 test -n "$ac_ct_AR" && break 6369 done 6370 6371 if test "x$ac_ct_AR" = x; then 6372 AR="false" 6373 else 6374 case $cross_compiling:$ac_tool_warned in 6375 yes:) 6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6377 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6378 ac_tool_warned=yes ;; 6379 esac 6380 AR=$ac_ct_AR 6381 fi 6382 fi 6383 6384 : ${AR=ar} 6385 6386 6387 6388 6389 6390 6391 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 6392 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6393 # higher priority because thats what people were doing historically (setting 6394 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6395 # variable obsoleted/removed. 6396 6397 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6398 lt_ar_flags=$AR_FLAGS 6399 6400 6401 6402 6403 6404 6405 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6406 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6407 6408 6409 6410 6411 6412 6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6414 printf %s "checking for archiver @FILE support... " >&6; } 6415 if test ${lt_cv_ar_at_file+y} 6416 then : 6417 printf %s "(cached) " >&6 6418 else $as_nop 6419 lt_cv_ar_at_file=no 6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6421 /* end confdefs.h. */ 6422 6423 int 6424 main (void) 6425 { 6426 6427 ; 6428 return 0; 6429 } 6430 _ACEOF 6431 if ac_fn_c_try_compile "$LINENO" 6432 then : 6433 echo conftest.$ac_objext > conftest.lst 6434 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6436 (eval $lt_ar_try) 2>&5 6437 ac_status=$? 6438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6439 test $ac_status = 0; } 6440 if test 0 -eq "$ac_status"; then 6441 # Ensure the archiver fails upon bogus file names. 6442 rm -f conftest.$ac_objext libconftest.a 6443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6444 (eval $lt_ar_try) 2>&5 6445 ac_status=$? 6446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6447 test $ac_status = 0; } 6448 if test 0 -ne "$ac_status"; then 6449 lt_cv_ar_at_file=@ 6450 fi 6451 fi 6452 rm -f conftest.* libconftest.a 6453 6454 fi 6455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6456 6457 fi 6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6459 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6460 6461 if test no = "$lt_cv_ar_at_file"; then 6462 archiver_list_spec= 6463 else 6464 archiver_list_spec=$lt_cv_ar_at_file 6465 fi 6466 6467 6468 6469 6470 6471 6472 6473 if test -n "$ac_tool_prefix"; then 6474 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6475 set dummy ${ac_tool_prefix}strip; ac_word=$2 6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6477 printf %s "checking for $ac_word... " >&6; } 6478 if test ${ac_cv_prog_STRIP+y} 6479 then : 6480 printf %s "(cached) " >&6 6481 else $as_nop 6482 if test -n "$STRIP"; then 6483 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6484 else 6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6486 for as_dir in $PATH 6487 do 6488 IFS=$as_save_IFS 6489 case $as_dir in #((( 6490 '') as_dir=./ ;; 6491 */) ;; 6492 *) as_dir=$as_dir/ ;; 6493 esac 6494 for ac_exec_ext in '' $ac_executable_extensions; do 6495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6496 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6498 break 2 6499 fi 6500 done 6501 done 6502 IFS=$as_save_IFS 6503 6504 fi 6505 fi 6506 STRIP=$ac_cv_prog_STRIP 6507 if test -n "$STRIP"; then 6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6509 printf "%s\n" "$STRIP" >&6; } 6510 else 6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6512 printf "%s\n" "no" >&6; } 6513 fi 6514 6515 6516 fi 6517 if test -z "$ac_cv_prog_STRIP"; then 6518 ac_ct_STRIP=$STRIP 6519 # Extract the first word of "strip", so it can be a program name with args. 6520 set dummy strip; ac_word=$2 6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6522 printf %s "checking for $ac_word... " >&6; } 6523 if test ${ac_cv_prog_ac_ct_STRIP+y} 6524 then : 6525 printf %s "(cached) " >&6 6526 else $as_nop 6527 if test -n "$ac_ct_STRIP"; then 6528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6529 else 6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6531 for as_dir in $PATH 6532 do 6533 IFS=$as_save_IFS 6534 case $as_dir in #((( 6535 '') as_dir=./ ;; 6536 */) ;; 6537 *) as_dir=$as_dir/ ;; 6538 esac 6539 for ac_exec_ext in '' $ac_executable_extensions; do 6540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6541 ac_cv_prog_ac_ct_STRIP="strip" 6542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6543 break 2 6544 fi 6545 done 6546 done 6547 IFS=$as_save_IFS 6548 6549 fi 6550 fi 6551 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6552 if test -n "$ac_ct_STRIP"; then 6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6554 printf "%s\n" "$ac_ct_STRIP" >&6; } 6555 else 6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6557 printf "%s\n" "no" >&6; } 6558 fi 6559 6560 if test "x$ac_ct_STRIP" = x; then 6561 STRIP=":" 6562 else 6563 case $cross_compiling:$ac_tool_warned in 6564 yes:) 6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6566 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6567 ac_tool_warned=yes ;; 6568 esac 6569 STRIP=$ac_ct_STRIP 6570 fi 6571 else 6572 STRIP="$ac_cv_prog_STRIP" 6573 fi 6574 6575 test -z "$STRIP" && STRIP=: 6576 6577 6578 6579 6580 6581 6582 if test -n "$ac_tool_prefix"; then 6583 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6584 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6586 printf %s "checking for $ac_word... " >&6; } 6587 if test ${ac_cv_prog_RANLIB+y} 6588 then : 6589 printf %s "(cached) " >&6 6590 else $as_nop 6591 if test -n "$RANLIB"; then 6592 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6593 else 6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6595 for as_dir in $PATH 6596 do 6597 IFS=$as_save_IFS 6598 case $as_dir in #((( 6599 '') as_dir=./ ;; 6600 */) ;; 6601 *) as_dir=$as_dir/ ;; 6602 esac 6603 for ac_exec_ext in '' $ac_executable_extensions; do 6604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6605 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6607 break 2 6608 fi 6609 done 6610 done 6611 IFS=$as_save_IFS 6612 6613 fi 6614 fi 6615 RANLIB=$ac_cv_prog_RANLIB 6616 if test -n "$RANLIB"; then 6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6618 printf "%s\n" "$RANLIB" >&6; } 6619 else 6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6621 printf "%s\n" "no" >&6; } 6622 fi 6623 6624 6625 fi 6626 if test -z "$ac_cv_prog_RANLIB"; then 6627 ac_ct_RANLIB=$RANLIB 6628 # Extract the first word of "ranlib", so it can be a program name with args. 6629 set dummy ranlib; ac_word=$2 6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6631 printf %s "checking for $ac_word... " >&6; } 6632 if test ${ac_cv_prog_ac_ct_RANLIB+y} 6633 then : 6634 printf %s "(cached) " >&6 6635 else $as_nop 6636 if test -n "$ac_ct_RANLIB"; then 6637 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6638 else 6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6640 for as_dir in $PATH 6641 do 6642 IFS=$as_save_IFS 6643 case $as_dir in #((( 6644 '') as_dir=./ ;; 6645 */) ;; 6646 *) as_dir=$as_dir/ ;; 6647 esac 6648 for ac_exec_ext in '' $ac_executable_extensions; do 6649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6650 ac_cv_prog_ac_ct_RANLIB="ranlib" 6651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6652 break 2 6653 fi 6654 done 6655 done 6656 IFS=$as_save_IFS 6657 6658 fi 6659 fi 6660 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6661 if test -n "$ac_ct_RANLIB"; then 6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6663 printf "%s\n" "$ac_ct_RANLIB" >&6; } 6664 else 6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6666 printf "%s\n" "no" >&6; } 6667 fi 6668 6669 if test "x$ac_ct_RANLIB" = x; then 6670 RANLIB=":" 6671 else 6672 case $cross_compiling:$ac_tool_warned in 6673 yes:) 6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6675 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6676 ac_tool_warned=yes ;; 6677 esac 6678 RANLIB=$ac_ct_RANLIB 6679 fi 6680 else 6681 RANLIB="$ac_cv_prog_RANLIB" 6682 fi 6683 6684 test -z "$RANLIB" && RANLIB=: 6685 6686 6687 6688 6689 6690 6691 # Determine commands to create old-style static archives. 6692 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6693 old_postinstall_cmds='chmod 644 $oldlib' 6694 old_postuninstall_cmds= 6695 6696 if test -n "$RANLIB"; then 6697 case $host_os in 6698 bitrig* | openbsd*) 6699 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6700 ;; 6701 *) 6702 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6703 ;; 6704 esac 6705 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6706 fi 6707 6708 case $host_os in 6709 darwin*) 6710 lock_old_archive_extraction=yes ;; 6711 *) 6712 lock_old_archive_extraction=no ;; 6713 esac 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 # If no C compiler was specified, use CC. 6754 LTCC=${LTCC-"$CC"} 6755 6756 # If no C compiler flags were specified, use CFLAGS. 6757 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6758 6759 # Allow CC to be a program name with arguments. 6760 compiler=$CC 6761 6762 6763 # Check for command to grab the raw symbol name followed by C symbol from nm. 6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6765 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6766 if test ${lt_cv_sys_global_symbol_pipe+y} 6767 then : 6768 printf %s "(cached) " >&6 6769 else $as_nop 6770 6771 # These are sane defaults that work on at least a few old systems. 6772 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6773 6774 # Character class describing NM global symbol codes. 6775 symcode='[BCDEGRST]' 6776 6777 # Regexp to match symbols that can be accessed directly from C. 6778 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6779 6780 # Define system-specific variables. 6781 case $host_os in 6782 aix*) 6783 symcode='[BCDT]' 6784 ;; 6785 cygwin* | mingw* | pw32* | cegcc*) 6786 symcode='[ABCDGISTW]' 6787 ;; 6788 hpux*) 6789 if test ia64 = "$host_cpu"; then 6790 symcode='[ABCDEGRST]' 6791 fi 6792 ;; 6793 irix* | nonstopux*) 6794 symcode='[BCDEGRST]' 6795 ;; 6796 osf*) 6797 symcode='[BCDEGQRST]' 6798 ;; 6799 solaris*) 6800 symcode='[BDRT]' 6801 ;; 6802 sco3.2v5*) 6803 symcode='[DT]' 6804 ;; 6805 sysv4.2uw2*) 6806 symcode='[DT]' 6807 ;; 6808 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6809 symcode='[ABDT]' 6810 ;; 6811 sysv4) 6812 symcode='[DFNSTU]' 6813 ;; 6814 esac 6815 6816 # If we're using GNU nm, then use its standard symbol codes. 6817 case `$NM -V 2>&1` in 6818 *GNU* | *'with BFD'*) 6819 symcode='[ABCDGIRSTW]' ;; 6820 esac 6821 6822 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6823 # Gets list of data symbols to import. 6824 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6825 # Adjust the below global symbol transforms to fixup imported variables. 6826 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6827 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6828 lt_c_name_lib_hook="\ 6829 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6830 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6831 else 6832 # Disable hooks by default. 6833 lt_cv_sys_global_symbol_to_import= 6834 lt_cdecl_hook= 6835 lt_c_name_hook= 6836 lt_c_name_lib_hook= 6837 fi 6838 6839 # Transform an extracted symbol line into a proper C declaration. 6840 # Some systems (esp. on ia64) link data and code symbols differently, 6841 # so use this general approach. 6842 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6843 $lt_cdecl_hook\ 6844 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6845 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6846 6847 # Transform an extracted symbol line into symbol name and symbol address 6848 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6849 $lt_c_name_hook\ 6850 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6851 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6852 6853 # Transform an extracted symbol line into symbol name with lib prefix and 6854 # symbol address. 6855 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6856 $lt_c_name_lib_hook\ 6857 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6858 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6859 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6860 6861 # Handle CRLF in mingw tool chain 6862 opt_cr= 6863 case $build_os in 6864 mingw*) 6865 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6866 ;; 6867 esac 6868 6869 # Try without a prefix underscore, then with it. 6870 for ac_symprfx in "" "_"; do 6871 6872 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6873 symxfrm="\\1 $ac_symprfx\\2 \\2" 6874 6875 # Write the raw and C identifiers. 6876 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6877 # Fake it for dumpbin and say T for any non-static function, 6878 # D for any global variable and I for any imported variable. 6879 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6880 # which start with @ or ?. 6881 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6882 " {last_section=section; section=\$ 3};"\ 6883 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6884 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6885 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6886 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6887 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6888 " \$ 0!~/External *\|/{next};"\ 6889 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6890 " {if(hide[section]) next};"\ 6891 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6892 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6893 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6894 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6895 " ' prfx=^$ac_symprfx" 6896 else 6897 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6898 fi 6899 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6900 6901 # Check to see that the pipe works correctly. 6902 pipe_works=no 6903 6904 rm -f conftest* 6905 cat > conftest.$ac_ext <<_LT_EOF 6906 #ifdef __cplusplus 6907 extern "C" { 6908 #endif 6909 char nm_test_var; 6910 void nm_test_func(void); 6911 void nm_test_func(void){} 6912 #ifdef __cplusplus 6913 } 6914 #endif 6915 int main(){nm_test_var='a';nm_test_func();return(0);} 6916 _LT_EOF 6917 6918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6919 (eval $ac_compile) 2>&5 6920 ac_status=$? 6921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6922 test $ac_status = 0; }; then 6923 # Now try to grab the symbols. 6924 nlist=conftest.nm 6925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6926 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6927 ac_status=$? 6928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6929 test $ac_status = 0; } && test -s "$nlist"; then 6930 # Try sorting and uniquifying the output. 6931 if sort "$nlist" | uniq > "$nlist"T; then 6932 mv -f "$nlist"T "$nlist" 6933 else 6934 rm -f "$nlist"T 6935 fi 6936 6937 # Make sure that we snagged all the symbols we need. 6938 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6939 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6940 cat <<_LT_EOF > conftest.$ac_ext 6941 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6942 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6943 /* DATA imports from DLLs on WIN32 can't be const, because runtime 6944 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6945 # define LT_DLSYM_CONST 6946 #elif defined __osf__ 6947 /* This system does not cope well with relocations in const data. */ 6948 # define LT_DLSYM_CONST 6949 #else 6950 # define LT_DLSYM_CONST const 6951 #endif 6952 6953 #ifdef __cplusplus 6954 extern "C" { 6955 #endif 6956 6957 _LT_EOF 6958 # Now generate the symbol file. 6959 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6960 6961 cat <<_LT_EOF >> conftest.$ac_ext 6962 6963 /* The mapping between symbol names and symbols. */ 6964 LT_DLSYM_CONST struct { 6965 const char *name; 6966 void *address; 6967 } 6968 lt__PROGRAM__LTX_preloaded_symbols[] = 6969 { 6970 { "@PROGRAM@", (void *) 0 }, 6971 _LT_EOF 6972 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6973 cat <<\_LT_EOF >> conftest.$ac_ext 6974 {0, (void *) 0} 6975 }; 6976 6977 /* This works around a problem in FreeBSD linker */ 6978 #ifdef FREEBSD_WORKAROUND 6979 static const void *lt_preloaded_setup() { 6980 return lt__PROGRAM__LTX_preloaded_symbols; 6981 } 6982 #endif 6983 6984 #ifdef __cplusplus 6985 } 6986 #endif 6987 _LT_EOF 6988 # Now try linking the two files. 6989 mv conftest.$ac_objext conftstm.$ac_objext 6990 lt_globsym_save_LIBS=$LIBS 6991 lt_globsym_save_CFLAGS=$CFLAGS 6992 LIBS=conftstm.$ac_objext 6993 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6995 (eval $ac_link) 2>&5 6996 ac_status=$? 6997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6998 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6999 pipe_works=yes 7000 fi 7001 LIBS=$lt_globsym_save_LIBS 7002 CFLAGS=$lt_globsym_save_CFLAGS 7003 else 7004 echo "cannot find nm_test_func in $nlist" >&5 7005 fi 7006 else 7007 echo "cannot find nm_test_var in $nlist" >&5 7008 fi 7009 else 7010 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7011 fi 7012 else 7013 echo "$progname: failed program was:" >&5 7014 cat conftest.$ac_ext >&5 7015 fi 7016 rm -rf conftest* conftst* 7017 7018 # Do not use the global_symbol_pipe unless it works. 7019 if test yes = "$pipe_works"; then 7020 break 7021 else 7022 lt_cv_sys_global_symbol_pipe= 7023 fi 7024 done 7025 7026 fi 7027 7028 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7029 lt_cv_sys_global_symbol_to_cdecl= 7030 fi 7031 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7033 printf "%s\n" "failed" >&6; } 7034 else 7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7036 printf "%s\n" "ok" >&6; } 7037 fi 7038 7039 # Response file support. 7040 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7041 nm_file_list_spec='@' 7042 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7043 nm_file_list_spec='@' 7044 fi 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7083 printf %s "checking for sysroot... " >&6; } 7084 7085 # Check whether --with-sysroot was given. 7086 if test ${with_sysroot+y} 7087 then : 7088 withval=$with_sysroot; 7089 else $as_nop 7090 with_sysroot=no 7091 fi 7092 7093 7094 lt_sysroot= 7095 case $with_sysroot in #( 7096 yes) 7097 if test yes = "$GCC"; then 7098 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7099 fi 7100 ;; #( 7101 /*) 7102 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7103 ;; #( 7104 no|'') 7105 ;; #( 7106 *) 7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7108 printf "%s\n" "$with_sysroot" >&6; } 7109 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7110 ;; 7111 esac 7112 7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7114 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7115 7116 7117 7118 7119 7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7121 printf %s "checking for a working dd... " >&6; } 7122 if test ${ac_cv_path_lt_DD+y} 7123 then : 7124 printf %s "(cached) " >&6 7125 else $as_nop 7126 printf 0123456789abcdef0123456789abcdef >conftest.i 7127 cat conftest.i conftest.i >conftest2.i 7128 : ${lt_DD:=$DD} 7129 if test -z "$lt_DD"; then 7130 ac_path_lt_DD_found=false 7131 # Loop through the user's path and test for each of PROGNAME-LIST 7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7133 for as_dir in $PATH 7134 do 7135 IFS=$as_save_IFS 7136 case $as_dir in #((( 7137 '') as_dir=./ ;; 7138 */) ;; 7139 *) as_dir=$as_dir/ ;; 7140 esac 7141 for ac_prog in dd 7142 do 7143 for ac_exec_ext in '' $ac_executable_extensions; do 7144 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7145 as_fn_executable_p "$ac_path_lt_DD" || continue 7146 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7147 cmp -s conftest.i conftest.out \ 7148 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7149 fi 7150 $ac_path_lt_DD_found && break 3 7151 done 7152 done 7153 done 7154 IFS=$as_save_IFS 7155 if test -z "$ac_cv_path_lt_DD"; then 7156 : 7157 fi 7158 else 7159 ac_cv_path_lt_DD=$lt_DD 7160 fi 7161 7162 rm -f conftest.i conftest2.i conftest.out 7163 fi 7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7165 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7166 7167 7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7169 printf %s "checking how to truncate binary pipes... " >&6; } 7170 if test ${lt_cv_truncate_bin+y} 7171 then : 7172 printf %s "(cached) " >&6 7173 else $as_nop 7174 printf 0123456789abcdef0123456789abcdef >conftest.i 7175 cat conftest.i conftest.i >conftest2.i 7176 lt_cv_truncate_bin= 7177 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7178 cmp -s conftest.i conftest.out \ 7179 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7180 fi 7181 rm -f conftest.i conftest2.i conftest.out 7182 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7183 fi 7184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7185 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7186 7187 7188 7189 7190 7191 7192 7193 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7194 func_cc_basename () 7195 { 7196 for cc_temp in $*""; do 7197 case $cc_temp in 7198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7200 \-*) ;; 7201 *) break;; 7202 esac 7203 done 7204 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7205 } 7206 7207 # Check whether --enable-libtool-lock was given. 7208 if test ${enable_libtool_lock+y} 7209 then : 7210 enableval=$enable_libtool_lock; 7211 fi 7212 7213 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7214 7215 # Some flags need to be propagated to the compiler or linker for good 7216 # libtool support. 7217 case $host in 7218 ia64-*-hpux*) 7219 # Find out what ABI is being produced by ac_compile, and set mode 7220 # options accordingly. 7221 echo 'int i;' > conftest.$ac_ext 7222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7223 (eval $ac_compile) 2>&5 7224 ac_status=$? 7225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7226 test $ac_status = 0; }; then 7227 case `$FILECMD conftest.$ac_objext` in 7228 *ELF-32*) 7229 HPUX_IA64_MODE=32 7230 ;; 7231 *ELF-64*) 7232 HPUX_IA64_MODE=64 7233 ;; 7234 esac 7235 fi 7236 rm -rf conftest* 7237 ;; 7238 *-*-irix6*) 7239 # Find out what ABI is being produced by ac_compile, and set linker 7240 # options accordingly. 7241 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7243 (eval $ac_compile) 2>&5 7244 ac_status=$? 7245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7246 test $ac_status = 0; }; then 7247 if test yes = "$lt_cv_prog_gnu_ld"; then 7248 case `$FILECMD conftest.$ac_objext` in 7249 *32-bit*) 7250 LD="${LD-ld} -melf32bsmip" 7251 ;; 7252 *N32*) 7253 LD="${LD-ld} -melf32bmipn32" 7254 ;; 7255 *64-bit*) 7256 LD="${LD-ld} -melf64bmip" 7257 ;; 7258 esac 7259 else 7260 case `$FILECMD conftest.$ac_objext` in 7261 *32-bit*) 7262 LD="${LD-ld} -32" 7263 ;; 7264 *N32*) 7265 LD="${LD-ld} -n32" 7266 ;; 7267 *64-bit*) 7268 LD="${LD-ld} -64" 7269 ;; 7270 esac 7271 fi 7272 fi 7273 rm -rf conftest* 7274 ;; 7275 7276 mips64*-*linux*) 7277 # Find out what ABI is being produced by ac_compile, and set linker 7278 # options accordingly. 7279 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7281 (eval $ac_compile) 2>&5 7282 ac_status=$? 7283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7284 test $ac_status = 0; }; then 7285 emul=elf 7286 case `$FILECMD conftest.$ac_objext` in 7287 *32-bit*) 7288 emul="${emul}32" 7289 ;; 7290 *64-bit*) 7291 emul="${emul}64" 7292 ;; 7293 esac 7294 case `$FILECMD conftest.$ac_objext` in 7295 *MSB*) 7296 emul="${emul}btsmip" 7297 ;; 7298 *LSB*) 7299 emul="${emul}ltsmip" 7300 ;; 7301 esac 7302 case `$FILECMD conftest.$ac_objext` in 7303 *N32*) 7304 emul="${emul}n32" 7305 ;; 7306 esac 7307 LD="${LD-ld} -m $emul" 7308 fi 7309 rm -rf conftest* 7310 ;; 7311 7312 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7313 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7314 # Find out what ABI is being produced by ac_compile, and set linker 7315 # options accordingly. Note that the listed cases only cover the 7316 # situations where additional linker options are needed (such as when 7317 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7318 # vice versa); the common cases where no linker options are needed do 7319 # not appear in the list. 7320 echo 'int i;' > conftest.$ac_ext 7321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7322 (eval $ac_compile) 2>&5 7323 ac_status=$? 7324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7325 test $ac_status = 0; }; then 7326 case `$FILECMD conftest.o` in 7327 *32-bit*) 7328 case $host in 7329 x86_64-*kfreebsd*-gnu) 7330 LD="${LD-ld} -m elf_i386_fbsd" 7331 ;; 7332 x86_64-*linux*) 7333 case `$FILECMD conftest.o` in 7334 *x86-64*) 7335 LD="${LD-ld} -m elf32_x86_64" 7336 ;; 7337 *) 7338 LD="${LD-ld} -m elf_i386" 7339 ;; 7340 esac 7341 ;; 7342 powerpc64le-*linux*) 7343 LD="${LD-ld} -m elf32lppclinux" 7344 ;; 7345 powerpc64-*linux*) 7346 LD="${LD-ld} -m elf32ppclinux" 7347 ;; 7348 s390x-*linux*) 7349 LD="${LD-ld} -m elf_s390" 7350 ;; 7351 sparc64-*linux*) 7352 LD="${LD-ld} -m elf32_sparc" 7353 ;; 7354 esac 7355 ;; 7356 *64-bit*) 7357 case $host in 7358 x86_64-*kfreebsd*-gnu) 7359 LD="${LD-ld} -m elf_x86_64_fbsd" 7360 ;; 7361 x86_64-*linux*) 7362 LD="${LD-ld} -m elf_x86_64" 7363 ;; 7364 powerpcle-*linux*) 7365 LD="${LD-ld} -m elf64lppc" 7366 ;; 7367 powerpc-*linux*) 7368 LD="${LD-ld} -m elf64ppc" 7369 ;; 7370 s390*-*linux*|s390*-*tpf*) 7371 LD="${LD-ld} -m elf64_s390" 7372 ;; 7373 sparc*-*linux*) 7374 LD="${LD-ld} -m elf64_sparc" 7375 ;; 7376 esac 7377 ;; 7378 esac 7379 fi 7380 rm -rf conftest* 7381 ;; 7382 7383 *-*-sco3.2v5*) 7384 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7385 SAVE_CFLAGS=$CFLAGS 7386 CFLAGS="$CFLAGS -belf" 7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7388 printf %s "checking whether the C compiler needs -belf... " >&6; } 7389 if test ${lt_cv_cc_needs_belf+y} 7390 then : 7391 printf %s "(cached) " >&6 7392 else $as_nop 7393 ac_ext=c 7394 ac_cpp='$CPP $CPPFLAGS' 7395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7397 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7398 7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7400 /* end confdefs.h. */ 7401 7402 int 7403 main (void) 7404 { 7405 7406 ; 7407 return 0; 7408 } 7409 _ACEOF 7410 if ac_fn_c_try_link "$LINENO" 7411 then : 7412 lt_cv_cc_needs_belf=yes 7413 else $as_nop 7414 lt_cv_cc_needs_belf=no 7415 fi 7416 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7417 conftest$ac_exeext conftest.$ac_ext 7418 ac_ext=c 7419 ac_cpp='$CPP $CPPFLAGS' 7420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7422 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7423 7424 fi 7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7426 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7427 if test yes != "$lt_cv_cc_needs_belf"; then 7428 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7429 CFLAGS=$SAVE_CFLAGS 7430 fi 7431 ;; 7432 *-*solaris*) 7433 # Find out what ABI is being produced by ac_compile, and set linker 7434 # options accordingly. 7435 echo 'int i;' > conftest.$ac_ext 7436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7437 (eval $ac_compile) 2>&5 7438 ac_status=$? 7439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7440 test $ac_status = 0; }; then 7441 case `$FILECMD conftest.o` in 7442 *64-bit*) 7443 case $lt_cv_prog_gnu_ld in 7444 yes*) 7445 case $host in 7446 i?86-*-solaris*|x86_64-*-solaris*) 7447 LD="${LD-ld} -m elf_x86_64" 7448 ;; 7449 sparc*-*-solaris*) 7450 LD="${LD-ld} -m elf64_sparc" 7451 ;; 7452 esac 7453 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7454 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7455 LD=${LD-ld}_sol2 7456 fi 7457 ;; 7458 *) 7459 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7460 LD="${LD-ld} -64" 7461 fi 7462 ;; 7463 esac 7464 ;; 7465 esac 7466 fi 7467 rm -rf conftest* 7468 ;; 7469 esac 7470 7471 need_locks=$enable_libtool_lock 7472 7473 if test -n "$ac_tool_prefix"; then 7474 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7475 set dummy ${ac_tool_prefix}mt; ac_word=$2 7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7477 printf %s "checking for $ac_word... " >&6; } 7478 if test ${ac_cv_prog_MANIFEST_TOOL+y} 7479 then : 7480 printf %s "(cached) " >&6 7481 else $as_nop 7482 if test -n "$MANIFEST_TOOL"; then 7483 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7484 else 7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7486 for as_dir in $PATH 7487 do 7488 IFS=$as_save_IFS 7489 case $as_dir in #((( 7490 '') as_dir=./ ;; 7491 */) ;; 7492 *) as_dir=$as_dir/ ;; 7493 esac 7494 for ac_exec_ext in '' $ac_executable_extensions; do 7495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7496 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7498 break 2 7499 fi 7500 done 7501 done 7502 IFS=$as_save_IFS 7503 7504 fi 7505 fi 7506 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7507 if test -n "$MANIFEST_TOOL"; then 7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7509 printf "%s\n" "$MANIFEST_TOOL" >&6; } 7510 else 7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7512 printf "%s\n" "no" >&6; } 7513 fi 7514 7515 7516 fi 7517 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7518 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7519 # Extract the first word of "mt", so it can be a program name with args. 7520 set dummy mt; ac_word=$2 7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7522 printf %s "checking for $ac_word... " >&6; } 7523 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7524 then : 7525 printf %s "(cached) " >&6 7526 else $as_nop 7527 if test -n "$ac_ct_MANIFEST_TOOL"; then 7528 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7529 else 7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7531 for as_dir in $PATH 7532 do 7533 IFS=$as_save_IFS 7534 case $as_dir in #((( 7535 '') as_dir=./ ;; 7536 */) ;; 7537 *) as_dir=$as_dir/ ;; 7538 esac 7539 for ac_exec_ext in '' $ac_executable_extensions; do 7540 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7541 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7543 break 2 7544 fi 7545 done 7546 done 7547 IFS=$as_save_IFS 7548 7549 fi 7550 fi 7551 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7552 if test -n "$ac_ct_MANIFEST_TOOL"; then 7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7554 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7555 else 7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7557 printf "%s\n" "no" >&6; } 7558 fi 7559 7560 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7561 MANIFEST_TOOL=":" 7562 else 7563 case $cross_compiling:$ac_tool_warned in 7564 yes:) 7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7566 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7567 ac_tool_warned=yes ;; 7568 esac 7569 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7570 fi 7571 else 7572 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7573 fi 7574 7575 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7577 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7578 if test ${lt_cv_path_mainfest_tool+y} 7579 then : 7580 printf %s "(cached) " >&6 7581 else $as_nop 7582 lt_cv_path_mainfest_tool=no 7583 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7584 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7585 cat conftest.err >&5 7586 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7587 lt_cv_path_mainfest_tool=yes 7588 fi 7589 rm -f conftest* 7590 fi 7591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7592 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7593 if test yes != "$lt_cv_path_mainfest_tool"; then 7594 MANIFEST_TOOL=: 7595 fi 7596 7597 7598 7599 7600 7601 7602 case $host_os in 7603 rhapsody* | darwin*) 7604 if test -n "$ac_tool_prefix"; then 7605 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7606 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7608 printf %s "checking for $ac_word... " >&6; } 7609 if test ${ac_cv_prog_DSYMUTIL+y} 7610 then : 7611 printf %s "(cached) " >&6 7612 else $as_nop 7613 if test -n "$DSYMUTIL"; then 7614 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7615 else 7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7617 for as_dir in $PATH 7618 do 7619 IFS=$as_save_IFS 7620 case $as_dir in #((( 7621 '') as_dir=./ ;; 7622 */) ;; 7623 *) as_dir=$as_dir/ ;; 7624 esac 7625 for ac_exec_ext in '' $ac_executable_extensions; do 7626 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7627 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7628 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7629 break 2 7630 fi 7631 done 7632 done 7633 IFS=$as_save_IFS 7634 7635 fi 7636 fi 7637 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7638 if test -n "$DSYMUTIL"; then 7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7640 printf "%s\n" "$DSYMUTIL" >&6; } 7641 else 7642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7643 printf "%s\n" "no" >&6; } 7644 fi 7645 7646 7647 fi 7648 if test -z "$ac_cv_prog_DSYMUTIL"; then 7649 ac_ct_DSYMUTIL=$DSYMUTIL 7650 # Extract the first word of "dsymutil", so it can be a program name with args. 7651 set dummy dsymutil; ac_word=$2 7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7653 printf %s "checking for $ac_word... " >&6; } 7654 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7655 then : 7656 printf %s "(cached) " >&6 7657 else $as_nop 7658 if test -n "$ac_ct_DSYMUTIL"; then 7659 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7660 else 7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7662 for as_dir in $PATH 7663 do 7664 IFS=$as_save_IFS 7665 case $as_dir in #((( 7666 '') as_dir=./ ;; 7667 */) ;; 7668 *) as_dir=$as_dir/ ;; 7669 esac 7670 for ac_exec_ext in '' $ac_executable_extensions; do 7671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7672 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7674 break 2 7675 fi 7676 done 7677 done 7678 IFS=$as_save_IFS 7679 7680 fi 7681 fi 7682 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7683 if test -n "$ac_ct_DSYMUTIL"; then 7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7685 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7686 else 7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7688 printf "%s\n" "no" >&6; } 7689 fi 7690 7691 if test "x$ac_ct_DSYMUTIL" = x; then 7692 DSYMUTIL=":" 7693 else 7694 case $cross_compiling:$ac_tool_warned in 7695 yes:) 7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7697 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7698 ac_tool_warned=yes ;; 7699 esac 7700 DSYMUTIL=$ac_ct_DSYMUTIL 7701 fi 7702 else 7703 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7704 fi 7705 7706 if test -n "$ac_tool_prefix"; then 7707 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7708 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7710 printf %s "checking for $ac_word... " >&6; } 7711 if test ${ac_cv_prog_NMEDIT+y} 7712 then : 7713 printf %s "(cached) " >&6 7714 else $as_nop 7715 if test -n "$NMEDIT"; then 7716 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7717 else 7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7719 for as_dir in $PATH 7720 do 7721 IFS=$as_save_IFS 7722 case $as_dir in #((( 7723 '') as_dir=./ ;; 7724 */) ;; 7725 *) as_dir=$as_dir/ ;; 7726 esac 7727 for ac_exec_ext in '' $ac_executable_extensions; do 7728 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7729 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7731 break 2 7732 fi 7733 done 7734 done 7735 IFS=$as_save_IFS 7736 7737 fi 7738 fi 7739 NMEDIT=$ac_cv_prog_NMEDIT 7740 if test -n "$NMEDIT"; then 7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7742 printf "%s\n" "$NMEDIT" >&6; } 7743 else 7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7745 printf "%s\n" "no" >&6; } 7746 fi 7747 7748 7749 fi 7750 if test -z "$ac_cv_prog_NMEDIT"; then 7751 ac_ct_NMEDIT=$NMEDIT 7752 # Extract the first word of "nmedit", so it can be a program name with args. 7753 set dummy nmedit; ac_word=$2 7754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7755 printf %s "checking for $ac_word... " >&6; } 7756 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7757 then : 7758 printf %s "(cached) " >&6 7759 else $as_nop 7760 if test -n "$ac_ct_NMEDIT"; then 7761 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7762 else 7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7764 for as_dir in $PATH 7765 do 7766 IFS=$as_save_IFS 7767 case $as_dir in #((( 7768 '') as_dir=./ ;; 7769 */) ;; 7770 *) as_dir=$as_dir/ ;; 7771 esac 7772 for ac_exec_ext in '' $ac_executable_extensions; do 7773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7774 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7776 break 2 7777 fi 7778 done 7779 done 7780 IFS=$as_save_IFS 7781 7782 fi 7783 fi 7784 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7785 if test -n "$ac_ct_NMEDIT"; then 7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7787 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7788 else 7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7790 printf "%s\n" "no" >&6; } 7791 fi 7792 7793 if test "x$ac_ct_NMEDIT" = x; then 7794 NMEDIT=":" 7795 else 7796 case $cross_compiling:$ac_tool_warned in 7797 yes:) 7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7799 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7800 ac_tool_warned=yes ;; 7801 esac 7802 NMEDIT=$ac_ct_NMEDIT 7803 fi 7804 else 7805 NMEDIT="$ac_cv_prog_NMEDIT" 7806 fi 7807 7808 if test -n "$ac_tool_prefix"; then 7809 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7810 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7812 printf %s "checking for $ac_word... " >&6; } 7813 if test ${ac_cv_prog_LIPO+y} 7814 then : 7815 printf %s "(cached) " >&6 7816 else $as_nop 7817 if test -n "$LIPO"; then 7818 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7819 else 7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7821 for as_dir in $PATH 7822 do 7823 IFS=$as_save_IFS 7824 case $as_dir in #((( 7825 '') as_dir=./ ;; 7826 */) ;; 7827 *) as_dir=$as_dir/ ;; 7828 esac 7829 for ac_exec_ext in '' $ac_executable_extensions; do 7830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7831 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7833 break 2 7834 fi 7835 done 7836 done 7837 IFS=$as_save_IFS 7838 7839 fi 7840 fi 7841 LIPO=$ac_cv_prog_LIPO 7842 if test -n "$LIPO"; then 7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7844 printf "%s\n" "$LIPO" >&6; } 7845 else 7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7847 printf "%s\n" "no" >&6; } 7848 fi 7849 7850 7851 fi 7852 if test -z "$ac_cv_prog_LIPO"; then 7853 ac_ct_LIPO=$LIPO 7854 # Extract the first word of "lipo", so it can be a program name with args. 7855 set dummy lipo; ac_word=$2 7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7857 printf %s "checking for $ac_word... " >&6; } 7858 if test ${ac_cv_prog_ac_ct_LIPO+y} 7859 then : 7860 printf %s "(cached) " >&6 7861 else $as_nop 7862 if test -n "$ac_ct_LIPO"; then 7863 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7864 else 7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7866 for as_dir in $PATH 7867 do 7868 IFS=$as_save_IFS 7869 case $as_dir in #((( 7870 '') as_dir=./ ;; 7871 */) ;; 7872 *) as_dir=$as_dir/ ;; 7873 esac 7874 for ac_exec_ext in '' $ac_executable_extensions; do 7875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7876 ac_cv_prog_ac_ct_LIPO="lipo" 7877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7878 break 2 7879 fi 7880 done 7881 done 7882 IFS=$as_save_IFS 7883 7884 fi 7885 fi 7886 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7887 if test -n "$ac_ct_LIPO"; then 7888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7889 printf "%s\n" "$ac_ct_LIPO" >&6; } 7890 else 7891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7892 printf "%s\n" "no" >&6; } 7893 fi 7894 7895 if test "x$ac_ct_LIPO" = x; then 7896 LIPO=":" 7897 else 7898 case $cross_compiling:$ac_tool_warned in 7899 yes:) 7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7901 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7902 ac_tool_warned=yes ;; 7903 esac 7904 LIPO=$ac_ct_LIPO 7905 fi 7906 else 7907 LIPO="$ac_cv_prog_LIPO" 7908 fi 7909 7910 if test -n "$ac_tool_prefix"; then 7911 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7912 set dummy ${ac_tool_prefix}otool; ac_word=$2 7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7914 printf %s "checking for $ac_word... " >&6; } 7915 if test ${ac_cv_prog_OTOOL+y} 7916 then : 7917 printf %s "(cached) " >&6 7918 else $as_nop 7919 if test -n "$OTOOL"; then 7920 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7921 else 7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7923 for as_dir in $PATH 7924 do 7925 IFS=$as_save_IFS 7926 case $as_dir in #((( 7927 '') as_dir=./ ;; 7928 */) ;; 7929 *) as_dir=$as_dir/ ;; 7930 esac 7931 for ac_exec_ext in '' $ac_executable_extensions; do 7932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7933 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7935 break 2 7936 fi 7937 done 7938 done 7939 IFS=$as_save_IFS 7940 7941 fi 7942 fi 7943 OTOOL=$ac_cv_prog_OTOOL 7944 if test -n "$OTOOL"; then 7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7946 printf "%s\n" "$OTOOL" >&6; } 7947 else 7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7949 printf "%s\n" "no" >&6; } 7950 fi 7951 7952 7953 fi 7954 if test -z "$ac_cv_prog_OTOOL"; then 7955 ac_ct_OTOOL=$OTOOL 7956 # Extract the first word of "otool", so it can be a program name with args. 7957 set dummy otool; ac_word=$2 7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7959 printf %s "checking for $ac_word... " >&6; } 7960 if test ${ac_cv_prog_ac_ct_OTOOL+y} 7961 then : 7962 printf %s "(cached) " >&6 7963 else $as_nop 7964 if test -n "$ac_ct_OTOOL"; then 7965 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7966 else 7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7968 for as_dir in $PATH 7969 do 7970 IFS=$as_save_IFS 7971 case $as_dir in #((( 7972 '') as_dir=./ ;; 7973 */) ;; 7974 *) as_dir=$as_dir/ ;; 7975 esac 7976 for ac_exec_ext in '' $ac_executable_extensions; do 7977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7978 ac_cv_prog_ac_ct_OTOOL="otool" 7979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7980 break 2 7981 fi 7982 done 7983 done 7984 IFS=$as_save_IFS 7985 7986 fi 7987 fi 7988 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7989 if test -n "$ac_ct_OTOOL"; then 7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7991 printf "%s\n" "$ac_ct_OTOOL" >&6; } 7992 else 7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7994 printf "%s\n" "no" >&6; } 7995 fi 7996 7997 if test "x$ac_ct_OTOOL" = x; then 7998 OTOOL=":" 7999 else 8000 case $cross_compiling:$ac_tool_warned in 8001 yes:) 8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8003 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8004 ac_tool_warned=yes ;; 8005 esac 8006 OTOOL=$ac_ct_OTOOL 8007 fi 8008 else 8009 OTOOL="$ac_cv_prog_OTOOL" 8010 fi 8011 8012 if test -n "$ac_tool_prefix"; then 8013 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8014 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8016 printf %s "checking for $ac_word... " >&6; } 8017 if test ${ac_cv_prog_OTOOL64+y} 8018 then : 8019 printf %s "(cached) " >&6 8020 else $as_nop 8021 if test -n "$OTOOL64"; then 8022 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8023 else 8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8025 for as_dir in $PATH 8026 do 8027 IFS=$as_save_IFS 8028 case $as_dir in #((( 8029 '') as_dir=./ ;; 8030 */) ;; 8031 *) as_dir=$as_dir/ ;; 8032 esac 8033 for ac_exec_ext in '' $ac_executable_extensions; do 8034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8035 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8037 break 2 8038 fi 8039 done 8040 done 8041 IFS=$as_save_IFS 8042 8043 fi 8044 fi 8045 OTOOL64=$ac_cv_prog_OTOOL64 8046 if test -n "$OTOOL64"; then 8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8048 printf "%s\n" "$OTOOL64" >&6; } 8049 else 8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8051 printf "%s\n" "no" >&6; } 8052 fi 8053 8054 8055 fi 8056 if test -z "$ac_cv_prog_OTOOL64"; then 8057 ac_ct_OTOOL64=$OTOOL64 8058 # Extract the first word of "otool64", so it can be a program name with args. 8059 set dummy otool64; ac_word=$2 8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8061 printf %s "checking for $ac_word... " >&6; } 8062 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8063 then : 8064 printf %s "(cached) " >&6 8065 else $as_nop 8066 if test -n "$ac_ct_OTOOL64"; then 8067 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8068 else 8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8070 for as_dir in $PATH 8071 do 8072 IFS=$as_save_IFS 8073 case $as_dir in #((( 8074 '') as_dir=./ ;; 8075 */) ;; 8076 *) as_dir=$as_dir/ ;; 8077 esac 8078 for ac_exec_ext in '' $ac_executable_extensions; do 8079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8080 ac_cv_prog_ac_ct_OTOOL64="otool64" 8081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8082 break 2 8083 fi 8084 done 8085 done 8086 IFS=$as_save_IFS 8087 8088 fi 8089 fi 8090 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8091 if test -n "$ac_ct_OTOOL64"; then 8092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8093 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8094 else 8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8096 printf "%s\n" "no" >&6; } 8097 fi 8098 8099 if test "x$ac_ct_OTOOL64" = x; then 8100 OTOOL64=":" 8101 else 8102 case $cross_compiling:$ac_tool_warned in 8103 yes:) 8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8105 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8106 ac_tool_warned=yes ;; 8107 esac 8108 OTOOL64=$ac_ct_OTOOL64 8109 fi 8110 else 8111 OTOOL64="$ac_cv_prog_OTOOL64" 8112 fi 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8141 printf %s "checking for -single_module linker flag... " >&6; } 8142 if test ${lt_cv_apple_cc_single_mod+y} 8143 then : 8144 printf %s "(cached) " >&6 8145 else $as_nop 8146 lt_cv_apple_cc_single_mod=no 8147 if test -z "$LT_MULTI_MODULE"; then 8148 # By default we will add the -single_module flag. You can override 8149 # by either setting the environment variable LT_MULTI_MODULE 8150 # non-empty at configure time, or by adding -multi_module to the 8151 # link flags. 8152 rm -rf libconftest.dylib* 8153 echo "int foo(void){return 1;}" > conftest.c 8154 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8155 -dynamiclib -Wl,-single_module conftest.c" >&5 8156 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8157 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8158 _lt_result=$? 8159 # If there is a non-empty error log, and "single_module" 8160 # appears in it, assume the flag caused a linker warning 8161 if test -s conftest.err && $GREP single_module conftest.err; then 8162 cat conftest.err >&5 8163 # Otherwise, if the output was created with a 0 exit code from 8164 # the compiler, it worked. 8165 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8166 lt_cv_apple_cc_single_mod=yes 8167 else 8168 cat conftest.err >&5 8169 fi 8170 rm -rf libconftest.dylib* 8171 rm -f conftest.* 8172 fi 8173 fi 8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8175 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8176 8177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8178 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8179 if test ${lt_cv_ld_exported_symbols_list+y} 8180 then : 8181 printf %s "(cached) " >&6 8182 else $as_nop 8183 lt_cv_ld_exported_symbols_list=no 8184 save_LDFLAGS=$LDFLAGS 8185 echo "_main" > conftest.sym 8186 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8188 /* end confdefs.h. */ 8189 8190 int 8191 main (void) 8192 { 8193 8194 ; 8195 return 0; 8196 } 8197 _ACEOF 8198 if ac_fn_c_try_link "$LINENO" 8199 then : 8200 lt_cv_ld_exported_symbols_list=yes 8201 else $as_nop 8202 lt_cv_ld_exported_symbols_list=no 8203 fi 8204 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8205 conftest$ac_exeext conftest.$ac_ext 8206 LDFLAGS=$save_LDFLAGS 8207 8208 fi 8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8210 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8211 8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8213 printf %s "checking for -force_load linker flag... " >&6; } 8214 if test ${lt_cv_ld_force_load+y} 8215 then : 8216 printf %s "(cached) " >&6 8217 else $as_nop 8218 lt_cv_ld_force_load=no 8219 cat > conftest.c << _LT_EOF 8220 int forced_loaded() { return 2;} 8221 _LT_EOF 8222 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8223 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8224 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8225 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8226 echo "$RANLIB libconftest.a" >&5 8227 $RANLIB libconftest.a 2>&5 8228 cat > conftest.c << _LT_EOF 8229 int main() { return 0;} 8230 _LT_EOF 8231 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8232 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8233 _lt_result=$? 8234 if test -s conftest.err && $GREP force_load conftest.err; then 8235 cat conftest.err >&5 8236 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8237 lt_cv_ld_force_load=yes 8238 else 8239 cat conftest.err >&5 8240 fi 8241 rm -f conftest.err libconftest.a conftest conftest.c 8242 rm -rf conftest.dSYM 8243 8244 fi 8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8246 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8247 case $host_os in 8248 rhapsody* | darwin1.[012]) 8249 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8250 darwin1.*) 8251 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8252 darwin*) 8253 case $MACOSX_DEPLOYMENT_TARGET,$host in 8254 10.[012],*|,*powerpc*-darwin[5-8]*) 8255 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8256 *) 8257 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8258 esac 8259 ;; 8260 esac 8261 if test yes = "$lt_cv_apple_cc_single_mod"; then 8262 _lt_dar_single_mod='$single_module' 8263 fi 8264 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8265 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8266 else 8267 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8268 fi 8269 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8270 _lt_dsymutil='~$DSYMUTIL $lib || :' 8271 else 8272 _lt_dsymutil= 8273 fi 8274 ;; 8275 esac 8276 8277 # func_munge_path_list VARIABLE PATH 8278 # ----------------------------------- 8279 # VARIABLE is name of variable containing _space_ separated list of 8280 # directories to be munged by the contents of PATH, which is string 8281 # having a format: 8282 # "DIR[:DIR]:" 8283 # string "DIR[ DIR]" will be prepended to VARIABLE 8284 # ":DIR[:DIR]" 8285 # string "DIR[ DIR]" will be appended to VARIABLE 8286 # "DIRP[:DIRP]::[DIRA:]DIRA" 8287 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8288 # "DIRA[ DIRA]" will be appended to VARIABLE 8289 # "DIR[:DIR]" 8290 # VARIABLE will be replaced by "DIR[ DIR]" 8291 func_munge_path_list () 8292 { 8293 case x$2 in 8294 x) 8295 ;; 8296 *:) 8297 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8298 ;; 8299 x:*) 8300 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8301 ;; 8302 *::*) 8303 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8304 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8305 ;; 8306 *) 8307 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8308 ;; 8309 esac 8310 } 8311 8312 ac_header= ac_cache= 8313 for ac_item in $ac_header_c_list 8314 do 8315 if test $ac_cache; then 8316 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8317 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8318 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8319 fi 8320 ac_header= ac_cache= 8321 elif test $ac_header; then 8322 ac_cache=$ac_item 8323 else 8324 ac_header=$ac_item 8325 fi 8326 done 8327 8328 8329 8330 8331 8332 8333 8334 8335 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8336 then : 8337 8338 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8339 8340 fi 8341 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8342 " 8343 if test "x$ac_cv_header_dlfcn_h" = xyes 8344 then : 8345 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8346 8347 fi 8348 8349 8350 8351 8352 8353 # Set options 8354 8355 8356 8357 enable_dlopen=no 8358 8359 8360 enable_win32_dll=no 8361 8362 8363 # Check whether --enable-shared was given. 8364 if test ${enable_shared+y} 8365 then : 8366 enableval=$enable_shared; p=${PACKAGE-default} 8367 case $enableval in 8368 yes) enable_shared=yes ;; 8369 no) enable_shared=no ;; 8370 *) 8371 enable_shared=no 8372 # Look at the argument we got. We use all the common list separators. 8373 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8374 for pkg in $enableval; do 8375 IFS=$lt_save_ifs 8376 if test "X$pkg" = "X$p"; then 8377 enable_shared=yes 8378 fi 8379 done 8380 IFS=$lt_save_ifs 8381 ;; 8382 esac 8383 else $as_nop 8384 enable_shared=yes 8385 fi 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 # Check whether --with-pic was given. 8398 if test ${with_pic+y} 8399 then : 8400 withval=$with_pic; lt_p=${PACKAGE-default} 8401 case $withval in 8402 yes|no) pic_mode=$withval ;; 8403 *) 8404 pic_mode=default 8405 # Look at the argument we got. We use all the common list separators. 8406 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8407 for lt_pkg in $withval; do 8408 IFS=$lt_save_ifs 8409 if test "X$lt_pkg" = "X$lt_p"; then 8410 pic_mode=yes 8411 fi 8412 done 8413 IFS=$lt_save_ifs 8414 ;; 8415 esac 8416 else $as_nop 8417 pic_mode=default 8418 fi 8419 8420 8421 8422 8423 8424 8425 8426 8427 # Check whether --enable-fast-install was given. 8428 if test ${enable_fast_install+y} 8429 then : 8430 enableval=$enable_fast_install; p=${PACKAGE-default} 8431 case $enableval in 8432 yes) enable_fast_install=yes ;; 8433 no) enable_fast_install=no ;; 8434 *) 8435 enable_fast_install=no 8436 # Look at the argument we got. We use all the common list separators. 8437 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8438 for pkg in $enableval; do 8439 IFS=$lt_save_ifs 8440 if test "X$pkg" = "X$p"; then 8441 enable_fast_install=yes 8442 fi 8443 done 8444 IFS=$lt_save_ifs 8445 ;; 8446 esac 8447 else $as_nop 8448 enable_fast_install=yes 8449 fi 8450 8451 8452 8453 8454 8455 8456 8457 8458 shared_archive_member_spec= 8459 case $host,$enable_shared in 8460 power*-*-aix[5-9]*,yes) 8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8462 printf %s "checking which variant of shared library versioning to provide... " >&6; } 8463 8464 # Check whether --with-aix-soname was given. 8465 if test ${with_aix_soname+y} 8466 then : 8467 withval=$with_aix_soname; case $withval in 8468 aix|svr4|both) 8469 ;; 8470 *) 8471 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8472 ;; 8473 esac 8474 lt_cv_with_aix_soname=$with_aix_soname 8475 else $as_nop 8476 if test ${lt_cv_with_aix_soname+y} 8477 then : 8478 printf %s "(cached) " >&6 8479 else $as_nop 8480 lt_cv_with_aix_soname=aix 8481 fi 8482 8483 with_aix_soname=$lt_cv_with_aix_soname 8484 fi 8485 8486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8487 printf "%s\n" "$with_aix_soname" >&6; } 8488 if test aix != "$with_aix_soname"; then 8489 # For the AIX way of multilib, we name the shared archive member 8490 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8491 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8492 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8493 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8494 if test 64 = "${OBJECT_MODE-32}"; then 8495 shared_archive_member_spec=shr_64 8496 else 8497 shared_archive_member_spec=shr 8498 fi 8499 fi 8500 ;; 8501 *) 8502 with_aix_soname=aix 8503 ;; 8504 esac 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 # This can be used to rebuild libtool when needed 8516 LIBTOOL_DEPS=$ltmain 8517 8518 # Always use our own libtool. 8519 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 test -z "$LN_S" && LN_S="ln -s" 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 if test -n "${ZSH_VERSION+set}"; then 8566 setopt NO_GLOB_SUBST 8567 fi 8568 8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8570 printf %s "checking for objdir... " >&6; } 8571 if test ${lt_cv_objdir+y} 8572 then : 8573 printf %s "(cached) " >&6 8574 else $as_nop 8575 rm -f .libs 2>/dev/null 8576 mkdir .libs 2>/dev/null 8577 if test -d .libs; then 8578 lt_cv_objdir=.libs 8579 else 8580 # MS-DOS does not allow filenames that begin with a dot. 8581 lt_cv_objdir=_libs 8582 fi 8583 rmdir .libs 2>/dev/null 8584 fi 8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8586 printf "%s\n" "$lt_cv_objdir" >&6; } 8587 objdir=$lt_cv_objdir 8588 8589 8590 8591 8592 8593 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8594 8595 8596 8597 8598 case $host_os in 8599 aix3*) 8600 # AIX sometimes has problems with the GCC collect2 program. For some 8601 # reason, if we set the COLLECT_NAMES environment variable, the problems 8602 # vanish in a puff of smoke. 8603 if test set != "${COLLECT_NAMES+set}"; then 8604 COLLECT_NAMES= 8605 export COLLECT_NAMES 8606 fi 8607 ;; 8608 esac 8609 8610 # Global variables: 8611 ofile=libtool 8612 can_build_shared=yes 8613 8614 # All known linkers require a '.a' archive for static linking (except MSVC and 8615 # ICC, which need '.lib'). 8616 libext=a 8617 8618 with_gnu_ld=$lt_cv_prog_gnu_ld 8619 8620 old_CC=$CC 8621 old_CFLAGS=$CFLAGS 8622 8623 # Set sane defaults for various variables 8624 test -z "$CC" && CC=cc 8625 test -z "$LTCC" && LTCC=$CC 8626 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8627 test -z "$LD" && LD=ld 8628 test -z "$ac_objext" && ac_objext=o 8629 8630 func_cc_basename $compiler 8631 cc_basename=$func_cc_basename_result 8632 8633 8634 # Only perform the check for file, if the check method requires it 8635 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8636 case $deplibs_check_method in 8637 file_magic*) 8638 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8640 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8641 if test ${lt_cv_path_MAGIC_CMD+y} 8642 then : 8643 printf %s "(cached) " >&6 8644 else $as_nop 8645 case $MAGIC_CMD in 8646 [\\/*] | ?:[\\/]*) 8647 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8648 ;; 8649 *) 8650 lt_save_MAGIC_CMD=$MAGIC_CMD 8651 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8652 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8653 for ac_dir in $ac_dummy; do 8654 IFS=$lt_save_ifs 8655 test -z "$ac_dir" && ac_dir=. 8656 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8657 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8658 if test -n "$file_magic_test_file"; then 8659 case $deplibs_check_method in 8660 "file_magic "*) 8661 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8662 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8663 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8664 $EGREP "$file_magic_regex" > /dev/null; then 8665 : 8666 else 8667 cat <<_LT_EOF 1>&2 8668 8669 *** Warning: the command libtool uses to detect shared libraries, 8670 *** $file_magic_cmd, produces output that libtool cannot recognize. 8671 *** The result is that libtool may fail to recognize shared libraries 8672 *** as such. This will affect the creation of libtool libraries that 8673 *** depend on shared libraries, but programs linked with such libtool 8674 *** libraries will work regardless of this problem. Nevertheless, you 8675 *** may want to report the problem to your system manager and/or to 8676 *** bug-libtool@gnu.org 8677 8678 _LT_EOF 8679 fi ;; 8680 esac 8681 fi 8682 break 8683 fi 8684 done 8685 IFS=$lt_save_ifs 8686 MAGIC_CMD=$lt_save_MAGIC_CMD 8687 ;; 8688 esac 8689 fi 8690 8691 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8692 if test -n "$MAGIC_CMD"; then 8693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8694 printf "%s\n" "$MAGIC_CMD" >&6; } 8695 else 8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8697 printf "%s\n" "no" >&6; } 8698 fi 8699 8700 8701 8702 8703 8704 if test -z "$lt_cv_path_MAGIC_CMD"; then 8705 if test -n "$ac_tool_prefix"; then 8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8707 printf %s "checking for file... " >&6; } 8708 if test ${lt_cv_path_MAGIC_CMD+y} 8709 then : 8710 printf %s "(cached) " >&6 8711 else $as_nop 8712 case $MAGIC_CMD in 8713 [\\/*] | ?:[\\/]*) 8714 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8715 ;; 8716 *) 8717 lt_save_MAGIC_CMD=$MAGIC_CMD 8718 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8719 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8720 for ac_dir in $ac_dummy; do 8721 IFS=$lt_save_ifs 8722 test -z "$ac_dir" && ac_dir=. 8723 if test -f "$ac_dir/file"; then 8724 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8725 if test -n "$file_magic_test_file"; then 8726 case $deplibs_check_method in 8727 "file_magic "*) 8728 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8729 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8731 $EGREP "$file_magic_regex" > /dev/null; then 8732 : 8733 else 8734 cat <<_LT_EOF 1>&2 8735 8736 *** Warning: the command libtool uses to detect shared libraries, 8737 *** $file_magic_cmd, produces output that libtool cannot recognize. 8738 *** The result is that libtool may fail to recognize shared libraries 8739 *** as such. This will affect the creation of libtool libraries that 8740 *** depend on shared libraries, but programs linked with such libtool 8741 *** libraries will work regardless of this problem. Nevertheless, you 8742 *** may want to report the problem to your system manager and/or to 8743 *** bug-libtool@gnu.org 8744 8745 _LT_EOF 8746 fi ;; 8747 esac 8748 fi 8749 break 8750 fi 8751 done 8752 IFS=$lt_save_ifs 8753 MAGIC_CMD=$lt_save_MAGIC_CMD 8754 ;; 8755 esac 8756 fi 8757 8758 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8759 if test -n "$MAGIC_CMD"; then 8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8761 printf "%s\n" "$MAGIC_CMD" >&6; } 8762 else 8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8764 printf "%s\n" "no" >&6; } 8765 fi 8766 8767 8768 else 8769 MAGIC_CMD=: 8770 fi 8771 fi 8772 8773 fi 8774 ;; 8775 esac 8776 8777 # Use C for the default configuration in the libtool script 8778 8779 lt_save_CC=$CC 8780 ac_ext=c 8781 ac_cpp='$CPP $CPPFLAGS' 8782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8784 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8785 8786 8787 # Source file extension for C test sources. 8788 ac_ext=c 8789 8790 # Object file extension for compiled C test sources. 8791 objext=o 8792 objext=$objext 8793 8794 # Code to be used in simple compile tests 8795 lt_simple_compile_test_code="int some_variable = 0;" 8796 8797 # Code to be used in simple link tests 8798 lt_simple_link_test_code='int main(){return(0);}' 8799 8800 8801 8802 8803 8804 8805 8806 # If no C compiler was specified, use CC. 8807 LTCC=${LTCC-"$CC"} 8808 8809 # If no C compiler flags were specified, use CFLAGS. 8810 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8811 8812 # Allow CC to be a program name with arguments. 8813 compiler=$CC 8814 8815 # Save the default compiler, since it gets overwritten when the other 8816 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8817 compiler_DEFAULT=$CC 8818 8819 # save warnings/boilerplate of simple test code 8820 ac_outfile=conftest.$ac_objext 8821 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8822 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8823 _lt_compiler_boilerplate=`cat conftest.err` 8824 $RM conftest* 8825 8826 ac_outfile=conftest.$ac_objext 8827 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8828 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8829 _lt_linker_boilerplate=`cat conftest.err` 8830 $RM -r conftest* 8831 8832 8833 if test -n "$compiler"; then 8834 8835 lt_prog_compiler_no_builtin_flag= 8836 8837 if test yes = "$GCC"; then 8838 case $cc_basename in 8839 nvcc*) 8840 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8841 *) 8842 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8843 esac 8844 8845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8846 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8847 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8848 then : 8849 printf %s "(cached) " >&6 8850 else $as_nop 8851 lt_cv_prog_compiler_rtti_exceptions=no 8852 ac_outfile=conftest.$ac_objext 8853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8854 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8855 # Insert the option either (1) after the last *FLAGS variable, or 8856 # (2) before a word containing "conftest.", or (3) at the end. 8857 # Note that $ac_compile itself does not contain backslashes and begins 8858 # with a dollar sign (not a hyphen), so the echo should work correctly. 8859 # The option is referenced via a variable to avoid confusing sed. 8860 lt_compile=`echo "$ac_compile" | $SED \ 8861 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8862 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8863 -e 's:$: $lt_compiler_flag:'` 8864 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8865 (eval "$lt_compile" 2>conftest.err) 8866 ac_status=$? 8867 cat conftest.err >&5 8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8869 if (exit $ac_status) && test -s "$ac_outfile"; then 8870 # The compiler can only warn and ignore the option if not recognized 8871 # So say no if there are warnings other than the usual output. 8872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8874 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8875 lt_cv_prog_compiler_rtti_exceptions=yes 8876 fi 8877 fi 8878 $RM conftest* 8879 8880 fi 8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8882 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8883 8884 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8885 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8886 else 8887 : 8888 fi 8889 8890 fi 8891 8892 8893 8894 8895 8896 8897 lt_prog_compiler_wl= 8898 lt_prog_compiler_pic= 8899 lt_prog_compiler_static= 8900 8901 8902 if test yes = "$GCC"; then 8903 lt_prog_compiler_wl='-Wl,' 8904 lt_prog_compiler_static='-static' 8905 8906 case $host_os in 8907 aix*) 8908 # All AIX code is PIC. 8909 if test ia64 = "$host_cpu"; then 8910 # AIX 5 now supports IA64 processor 8911 lt_prog_compiler_static='-Bstatic' 8912 fi 8913 lt_prog_compiler_pic='-fPIC' 8914 ;; 8915 8916 amigaos*) 8917 case $host_cpu in 8918 powerpc) 8919 # see comment about AmigaOS4 .so support 8920 lt_prog_compiler_pic='-fPIC' 8921 ;; 8922 m68k) 8923 # FIXME: we need at least 68020 code to build shared libraries, but 8924 # adding the '-m68020' flag to GCC prevents building anything better, 8925 # like '-m68040'. 8926 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8927 ;; 8928 esac 8929 ;; 8930 8931 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8932 # PIC is the default for these OSes. 8933 ;; 8934 8935 mingw* | cygwin* | pw32* | os2* | cegcc*) 8936 # This hack is so that the source file can tell whether it is being 8937 # built for inclusion in a dll (and should export symbols for example). 8938 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8939 # (--disable-auto-import) libraries 8940 lt_prog_compiler_pic='-DDLL_EXPORT' 8941 case $host_os in 8942 os2*) 8943 lt_prog_compiler_static='$wl-static' 8944 ;; 8945 esac 8946 ;; 8947 8948 darwin* | rhapsody*) 8949 # PIC is the default on this platform 8950 # Common symbols not allowed in MH_DYLIB files 8951 lt_prog_compiler_pic='-fno-common' 8952 ;; 8953 8954 haiku*) 8955 # PIC is the default for Haiku. 8956 # The "-static" flag exists, but is broken. 8957 lt_prog_compiler_static= 8958 ;; 8959 8960 hpux*) 8961 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8962 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8963 # sets the default TLS model and affects inlining. 8964 case $host_cpu in 8965 hppa*64*) 8966 # +Z the default 8967 ;; 8968 *) 8969 lt_prog_compiler_pic='-fPIC' 8970 ;; 8971 esac 8972 ;; 8973 8974 interix[3-9]*) 8975 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8976 # Instead, we relocate shared libraries at runtime. 8977 ;; 8978 8979 msdosdjgpp*) 8980 # Just because we use GCC doesn't mean we suddenly get shared libraries 8981 # on systems that don't support them. 8982 lt_prog_compiler_can_build_shared=no 8983 enable_shared=no 8984 ;; 8985 8986 *nto* | *qnx*) 8987 # QNX uses GNU C++, but need to define -shared option too, otherwise 8988 # it will coredump. 8989 lt_prog_compiler_pic='-fPIC -shared' 8990 ;; 8991 8992 sysv4*MP*) 8993 if test -d /usr/nec; then 8994 lt_prog_compiler_pic=-Kconform_pic 8995 fi 8996 ;; 8997 8998 *) 8999 lt_prog_compiler_pic='-fPIC' 9000 ;; 9001 esac 9002 9003 case $cc_basename in 9004 nvcc*) # Cuda Compiler Driver 2.2 9005 lt_prog_compiler_wl='-Xlinker ' 9006 if test -n "$lt_prog_compiler_pic"; then 9007 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9008 fi 9009 ;; 9010 esac 9011 else 9012 # PORTME Check for flag to pass linker flags through the system compiler. 9013 case $host_os in 9014 aix*) 9015 lt_prog_compiler_wl='-Wl,' 9016 if test ia64 = "$host_cpu"; then 9017 # AIX 5 now supports IA64 processor 9018 lt_prog_compiler_static='-Bstatic' 9019 else 9020 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9021 fi 9022 ;; 9023 9024 darwin* | rhapsody*) 9025 # PIC is the default on this platform 9026 # Common symbols not allowed in MH_DYLIB files 9027 lt_prog_compiler_pic='-fno-common' 9028 case $cc_basename in 9029 nagfor*) 9030 # NAG Fortran compiler 9031 lt_prog_compiler_wl='-Wl,-Wl,,' 9032 lt_prog_compiler_pic='-PIC' 9033 lt_prog_compiler_static='-Bstatic' 9034 ;; 9035 esac 9036 ;; 9037 9038 mingw* | cygwin* | pw32* | os2* | cegcc*) 9039 # This hack is so that the source file can tell whether it is being 9040 # built for inclusion in a dll (and should export symbols for example). 9041 lt_prog_compiler_pic='-DDLL_EXPORT' 9042 case $host_os in 9043 os2*) 9044 lt_prog_compiler_static='$wl-static' 9045 ;; 9046 esac 9047 ;; 9048 9049 hpux9* | hpux10* | hpux11*) 9050 lt_prog_compiler_wl='-Wl,' 9051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9052 # not for PA HP-UX. 9053 case $host_cpu in 9054 hppa*64*|ia64*) 9055 # +Z the default 9056 ;; 9057 *) 9058 lt_prog_compiler_pic='+Z' 9059 ;; 9060 esac 9061 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9062 lt_prog_compiler_static='$wl-a ${wl}archive' 9063 ;; 9064 9065 irix5* | irix6* | nonstopux*) 9066 lt_prog_compiler_wl='-Wl,' 9067 # PIC (with -KPIC) is the default. 9068 lt_prog_compiler_static='-non_shared' 9069 ;; 9070 9071 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9072 case $cc_basename in 9073 # old Intel for x86_64, which still supported -KPIC. 9074 ecc*) 9075 lt_prog_compiler_wl='-Wl,' 9076 lt_prog_compiler_pic='-KPIC' 9077 lt_prog_compiler_static='-static' 9078 ;; 9079 # icc used to be incompatible with GCC. 9080 # ICC 10 doesn't accept -KPIC any more. 9081 icc* | ifort*) 9082 lt_prog_compiler_wl='-Wl,' 9083 lt_prog_compiler_pic='-fPIC' 9084 lt_prog_compiler_static='-static' 9085 ;; 9086 # Lahey Fortran 8.1. 9087 lf95*) 9088 lt_prog_compiler_wl='-Wl,' 9089 lt_prog_compiler_pic='--shared' 9090 lt_prog_compiler_static='--static' 9091 ;; 9092 nagfor*) 9093 # NAG Fortran compiler 9094 lt_prog_compiler_wl='-Wl,-Wl,,' 9095 lt_prog_compiler_pic='-PIC' 9096 lt_prog_compiler_static='-Bstatic' 9097 ;; 9098 tcc*) 9099 # Fabrice Bellard et al's Tiny C Compiler 9100 lt_prog_compiler_wl='-Wl,' 9101 lt_prog_compiler_pic='-fPIC' 9102 lt_prog_compiler_static='-static' 9103 ;; 9104 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9105 # Portland Group compilers (*not* the Pentium gcc compiler, 9106 # which looks to be a dead project) 9107 lt_prog_compiler_wl='-Wl,' 9108 lt_prog_compiler_pic='-fpic' 9109 lt_prog_compiler_static='-Bstatic' 9110 ;; 9111 ccc*) 9112 lt_prog_compiler_wl='-Wl,' 9113 # All Alpha code is PIC. 9114 lt_prog_compiler_static='-non_shared' 9115 ;; 9116 xl* | bgxl* | bgf* | mpixl*) 9117 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9118 lt_prog_compiler_wl='-Wl,' 9119 lt_prog_compiler_pic='-qpic' 9120 lt_prog_compiler_static='-qstaticlink' 9121 ;; 9122 *) 9123 case `$CC -V 2>&1 | $SED 5q` in 9124 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9125 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9126 lt_prog_compiler_pic='-KPIC' 9127 lt_prog_compiler_static='-Bstatic' 9128 lt_prog_compiler_wl='' 9129 ;; 9130 *Sun\ F* | *Sun*Fortran*) 9131 lt_prog_compiler_pic='-KPIC' 9132 lt_prog_compiler_static='-Bstatic' 9133 lt_prog_compiler_wl='-Qoption ld ' 9134 ;; 9135 *Sun\ C*) 9136 # Sun C 5.9 9137 lt_prog_compiler_pic='-KPIC' 9138 lt_prog_compiler_static='-Bstatic' 9139 lt_prog_compiler_wl='-Wl,' 9140 ;; 9141 *Intel*\ [CF]*Compiler*) 9142 lt_prog_compiler_wl='-Wl,' 9143 lt_prog_compiler_pic='-fPIC' 9144 lt_prog_compiler_static='-static' 9145 ;; 9146 *Portland\ Group*) 9147 lt_prog_compiler_wl='-Wl,' 9148 lt_prog_compiler_pic='-fpic' 9149 lt_prog_compiler_static='-Bstatic' 9150 ;; 9151 esac 9152 ;; 9153 esac 9154 ;; 9155 9156 newsos6) 9157 lt_prog_compiler_pic='-KPIC' 9158 lt_prog_compiler_static='-Bstatic' 9159 ;; 9160 9161 *nto* | *qnx*) 9162 # QNX uses GNU C++, but need to define -shared option too, otherwise 9163 # it will coredump. 9164 lt_prog_compiler_pic='-fPIC -shared' 9165 ;; 9166 9167 osf3* | osf4* | osf5*) 9168 lt_prog_compiler_wl='-Wl,' 9169 # All OSF/1 code is PIC. 9170 lt_prog_compiler_static='-non_shared' 9171 ;; 9172 9173 rdos*) 9174 lt_prog_compiler_static='-non_shared' 9175 ;; 9176 9177 solaris*) 9178 lt_prog_compiler_pic='-KPIC' 9179 lt_prog_compiler_static='-Bstatic' 9180 case $cc_basename in 9181 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9182 lt_prog_compiler_wl='-Qoption ld ';; 9183 *) 9184 lt_prog_compiler_wl='-Wl,';; 9185 esac 9186 ;; 9187 9188 sunos4*) 9189 lt_prog_compiler_wl='-Qoption ld ' 9190 lt_prog_compiler_pic='-PIC' 9191 lt_prog_compiler_static='-Bstatic' 9192 ;; 9193 9194 sysv4 | sysv4.2uw2* | sysv4.3*) 9195 lt_prog_compiler_wl='-Wl,' 9196 lt_prog_compiler_pic='-KPIC' 9197 lt_prog_compiler_static='-Bstatic' 9198 ;; 9199 9200 sysv4*MP*) 9201 if test -d /usr/nec; then 9202 lt_prog_compiler_pic='-Kconform_pic' 9203 lt_prog_compiler_static='-Bstatic' 9204 fi 9205 ;; 9206 9207 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9208 lt_prog_compiler_wl='-Wl,' 9209 lt_prog_compiler_pic='-KPIC' 9210 lt_prog_compiler_static='-Bstatic' 9211 ;; 9212 9213 unicos*) 9214 lt_prog_compiler_wl='-Wl,' 9215 lt_prog_compiler_can_build_shared=no 9216 ;; 9217 9218 uts4*) 9219 lt_prog_compiler_pic='-pic' 9220 lt_prog_compiler_static='-Bstatic' 9221 ;; 9222 9223 *) 9224 lt_prog_compiler_can_build_shared=no 9225 ;; 9226 esac 9227 fi 9228 9229 case $host_os in 9230 # For platforms that do not support PIC, -DPIC is meaningless: 9231 *djgpp*) 9232 lt_prog_compiler_pic= 9233 ;; 9234 *) 9235 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9236 ;; 9237 esac 9238 9239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9240 printf %s "checking for $compiler option to produce PIC... " >&6; } 9241 if test ${lt_cv_prog_compiler_pic+y} 9242 then : 9243 printf %s "(cached) " >&6 9244 else $as_nop 9245 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9246 fi 9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9248 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9249 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9250 9251 # 9252 # Check to make sure the PIC flag actually works. 9253 # 9254 if test -n "$lt_prog_compiler_pic"; then 9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9256 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9257 if test ${lt_cv_prog_compiler_pic_works+y} 9258 then : 9259 printf %s "(cached) " >&6 9260 else $as_nop 9261 lt_cv_prog_compiler_pic_works=no 9262 ac_outfile=conftest.$ac_objext 9263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9264 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9265 # Insert the option either (1) after the last *FLAGS variable, or 9266 # (2) before a word containing "conftest.", or (3) at the end. 9267 # Note that $ac_compile itself does not contain backslashes and begins 9268 # with a dollar sign (not a hyphen), so the echo should work correctly. 9269 # The option is referenced via a variable to avoid confusing sed. 9270 lt_compile=`echo "$ac_compile" | $SED \ 9271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9273 -e 's:$: $lt_compiler_flag:'` 9274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9275 (eval "$lt_compile" 2>conftest.err) 9276 ac_status=$? 9277 cat conftest.err >&5 9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9279 if (exit $ac_status) && test -s "$ac_outfile"; then 9280 # The compiler can only warn and ignore the option if not recognized 9281 # So say no if there are warnings other than the usual output. 9282 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9284 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9285 lt_cv_prog_compiler_pic_works=yes 9286 fi 9287 fi 9288 $RM conftest* 9289 9290 fi 9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9292 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9293 9294 if test yes = "$lt_cv_prog_compiler_pic_works"; then 9295 case $lt_prog_compiler_pic in 9296 "" | " "*) ;; 9297 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9298 esac 9299 else 9300 lt_prog_compiler_pic= 9301 lt_prog_compiler_can_build_shared=no 9302 fi 9303 9304 fi 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 # 9317 # Check to make sure the static flag actually works. 9318 # 9319 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9321 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9322 if test ${lt_cv_prog_compiler_static_works+y} 9323 then : 9324 printf %s "(cached) " >&6 9325 else $as_nop 9326 lt_cv_prog_compiler_static_works=no 9327 save_LDFLAGS=$LDFLAGS 9328 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9329 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9330 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9331 # The linker can only warn and ignore the option if not recognized 9332 # So say no if there are warnings 9333 if test -s conftest.err; then 9334 # Append any errors to the config.log. 9335 cat conftest.err 1>&5 9336 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9338 if diff conftest.exp conftest.er2 >/dev/null; then 9339 lt_cv_prog_compiler_static_works=yes 9340 fi 9341 else 9342 lt_cv_prog_compiler_static_works=yes 9343 fi 9344 fi 9345 $RM -r conftest* 9346 LDFLAGS=$save_LDFLAGS 9347 9348 fi 9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9350 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9351 9352 if test yes = "$lt_cv_prog_compiler_static_works"; then 9353 : 9354 else 9355 lt_prog_compiler_static= 9356 fi 9357 9358 9359 9360 9361 9362 9363 9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9365 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9366 if test ${lt_cv_prog_compiler_c_o+y} 9367 then : 9368 printf %s "(cached) " >&6 9369 else $as_nop 9370 lt_cv_prog_compiler_c_o=no 9371 $RM -r conftest 2>/dev/null 9372 mkdir conftest 9373 cd conftest 9374 mkdir out 9375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9376 9377 lt_compiler_flag="-o out/conftest2.$ac_objext" 9378 # Insert the option either (1) after the last *FLAGS variable, or 9379 # (2) before a word containing "conftest.", or (3) at the end. 9380 # Note that $ac_compile itself does not contain backslashes and begins 9381 # with a dollar sign (not a hyphen), so the echo should work correctly. 9382 lt_compile=`echo "$ac_compile" | $SED \ 9383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9385 -e 's:$: $lt_compiler_flag:'` 9386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9387 (eval "$lt_compile" 2>out/conftest.err) 9388 ac_status=$? 9389 cat out/conftest.err >&5 9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9391 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9392 then 9393 # The compiler can only warn and ignore the option if not recognized 9394 # So say no if there are warnings 9395 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9396 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9397 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9398 lt_cv_prog_compiler_c_o=yes 9399 fi 9400 fi 9401 chmod u+w . 2>&5 9402 $RM conftest* 9403 # SGI C++ compiler will create directory out/ii_files/ for 9404 # template instantiation 9405 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9406 $RM out/* && rmdir out 9407 cd .. 9408 $RM -r conftest 9409 $RM conftest* 9410 9411 fi 9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9413 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9414 9415 9416 9417 9418 9419 9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9421 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9422 if test ${lt_cv_prog_compiler_c_o+y} 9423 then : 9424 printf %s "(cached) " >&6 9425 else $as_nop 9426 lt_cv_prog_compiler_c_o=no 9427 $RM -r conftest 2>/dev/null 9428 mkdir conftest 9429 cd conftest 9430 mkdir out 9431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9432 9433 lt_compiler_flag="-o out/conftest2.$ac_objext" 9434 # Insert the option either (1) after the last *FLAGS variable, or 9435 # (2) before a word containing "conftest.", or (3) at the end. 9436 # Note that $ac_compile itself does not contain backslashes and begins 9437 # with a dollar sign (not a hyphen), so the echo should work correctly. 9438 lt_compile=`echo "$ac_compile" | $SED \ 9439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9441 -e 's:$: $lt_compiler_flag:'` 9442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9443 (eval "$lt_compile" 2>out/conftest.err) 9444 ac_status=$? 9445 cat out/conftest.err >&5 9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9447 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9448 then 9449 # The compiler can only warn and ignore the option if not recognized 9450 # So say no if there are warnings 9451 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9454 lt_cv_prog_compiler_c_o=yes 9455 fi 9456 fi 9457 chmod u+w . 2>&5 9458 $RM conftest* 9459 # SGI C++ compiler will create directory out/ii_files/ for 9460 # template instantiation 9461 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9462 $RM out/* && rmdir out 9463 cd .. 9464 $RM -r conftest 9465 $RM conftest* 9466 9467 fi 9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9469 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9470 9471 9472 9473 9474 hard_links=nottested 9475 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9476 # do not overwrite the value of need_locks provided by the user 9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9478 printf %s "checking if we can lock with hard links... " >&6; } 9479 hard_links=yes 9480 $RM conftest* 9481 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9482 touch conftest.a 9483 ln conftest.a conftest.b 2>&5 || hard_links=no 9484 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9486 printf "%s\n" "$hard_links" >&6; } 9487 if test no = "$hard_links"; then 9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9489 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9490 need_locks=warn 9491 fi 9492 else 9493 need_locks=no 9494 fi 9495 9496 9497 9498 9499 9500 9501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9502 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9503 9504 runpath_var= 9505 allow_undefined_flag= 9506 always_export_symbols=no 9507 archive_cmds= 9508 archive_expsym_cmds= 9509 compiler_needs_object=no 9510 enable_shared_with_static_runtimes=no 9511 export_dynamic_flag_spec= 9512 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9513 hardcode_automatic=no 9514 hardcode_direct=no 9515 hardcode_direct_absolute=no 9516 hardcode_libdir_flag_spec= 9517 hardcode_libdir_separator= 9518 hardcode_minus_L=no 9519 hardcode_shlibpath_var=unsupported 9520 inherit_rpath=no 9521 link_all_deplibs=unknown 9522 module_cmds= 9523 module_expsym_cmds= 9524 old_archive_from_new_cmds= 9525 old_archive_from_expsyms_cmds= 9526 thread_safe_flag_spec= 9527 whole_archive_flag_spec= 9528 # include_expsyms should be a list of space-separated symbols to be *always* 9529 # included in the symbol list 9530 include_expsyms= 9531 # exclude_expsyms can be an extended regexp of symbols to exclude 9532 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9533 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9534 # as well as any symbol that contains 'd'. 9535 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9536 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9537 # platforms (ab)use it in PIC code, but their linkers get confused if 9538 # the symbol is explicitly referenced. Since portable code cannot 9539 # rely on this symbol name, it's probably fine to never include it in 9540 # preloaded symbol tables. 9541 # Exclude shared library initialization/finalization symbols. 9542 extract_expsyms_cmds= 9543 9544 case $host_os in 9545 cygwin* | mingw* | pw32* | cegcc*) 9546 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9547 # When not using gcc, we currently assume that we are using 9548 # Microsoft Visual C++ or Intel C++ Compiler. 9549 if test yes != "$GCC"; then 9550 with_gnu_ld=no 9551 fi 9552 ;; 9553 interix*) 9554 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9555 with_gnu_ld=yes 9556 ;; 9557 openbsd* | bitrig*) 9558 with_gnu_ld=no 9559 ;; 9560 esac 9561 9562 ld_shlibs=yes 9563 9564 # On some targets, GNU ld is compatible enough with the native linker 9565 # that we're better off using the native interface for both. 9566 lt_use_gnu_ld_interface=no 9567 if test yes = "$with_gnu_ld"; then 9568 case $host_os in 9569 aix*) 9570 # The AIX port of GNU ld has always aspired to compatibility 9571 # with the native linker. However, as the warning in the GNU ld 9572 # block says, versions before 2.19.5* couldn't really create working 9573 # shared libraries, regardless of the interface used. 9574 case `$LD -v 2>&1` in 9575 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9576 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9577 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9578 *) 9579 lt_use_gnu_ld_interface=yes 9580 ;; 9581 esac 9582 ;; 9583 *) 9584 lt_use_gnu_ld_interface=yes 9585 ;; 9586 esac 9587 fi 9588 9589 if test yes = "$lt_use_gnu_ld_interface"; then 9590 # If archive_cmds runs LD, not CC, wlarc should be empty 9591 wlarc='$wl' 9592 9593 # Set some defaults for GNU ld with shared library support. These 9594 # are reset later if shared libraries are not supported. Putting them 9595 # here allows them to be overridden if necessary. 9596 runpath_var=LD_RUN_PATH 9597 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9598 export_dynamic_flag_spec='$wl--export-dynamic' 9599 # ancient GNU ld didn't support --whole-archive et. al. 9600 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9601 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9602 else 9603 whole_archive_flag_spec= 9604 fi 9605 supports_anon_versioning=no 9606 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9607 *GNU\ gold*) supports_anon_versioning=yes ;; 9608 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9609 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9610 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9611 *\ 2.11.*) ;; # other 2.11 versions 9612 *) supports_anon_versioning=yes ;; 9613 esac 9614 9615 # See if GNU ld supports shared libraries. 9616 case $host_os in 9617 aix[3-9]*) 9618 # On AIX/PPC, the GNU linker is very broken 9619 if test ia64 != "$host_cpu"; then 9620 ld_shlibs=no 9621 cat <<_LT_EOF 1>&2 9622 9623 *** Warning: the GNU linker, at least up to release 2.19, is reported 9624 *** to be unable to reliably create shared libraries on AIX. 9625 *** Therefore, libtool is disabling shared libraries support. If you 9626 *** really care for shared libraries, you may want to install binutils 9627 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9628 *** You will then need to restart the configuration process. 9629 9630 _LT_EOF 9631 fi 9632 ;; 9633 9634 amigaos*) 9635 case $host_cpu in 9636 powerpc) 9637 # see comment about AmigaOS4 .so support 9638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9639 archive_expsym_cmds='' 9640 ;; 9641 m68k) 9642 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)' 9643 hardcode_libdir_flag_spec='-L$libdir' 9644 hardcode_minus_L=yes 9645 ;; 9646 esac 9647 ;; 9648 9649 beos*) 9650 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9651 allow_undefined_flag=unsupported 9652 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9653 # support --undefined. This deserves some investigation. FIXME 9654 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9655 else 9656 ld_shlibs=no 9657 fi 9658 ;; 9659 9660 cygwin* | mingw* | pw32* | cegcc*) 9661 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9662 # as there is no search path for DLLs. 9663 hardcode_libdir_flag_spec='-L$libdir' 9664 export_dynamic_flag_spec='$wl--export-all-symbols' 9665 allow_undefined_flag=unsupported 9666 always_export_symbols=no 9667 enable_shared_with_static_runtimes=yes 9668 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' 9669 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9670 9671 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9672 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9673 # If the export-symbols file already is a .def file, use it as 9674 # is; otherwise, prepend EXPORTS... 9675 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9676 cp $export_symbols $output_objdir/$soname.def; 9677 else 9678 echo EXPORTS > $output_objdir/$soname.def; 9679 cat $export_symbols >> $output_objdir/$soname.def; 9680 fi~ 9681 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9682 else 9683 ld_shlibs=no 9684 fi 9685 ;; 9686 9687 haiku*) 9688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9689 link_all_deplibs=yes 9690 ;; 9691 9692 os2*) 9693 hardcode_libdir_flag_spec='-L$libdir' 9694 hardcode_minus_L=yes 9695 allow_undefined_flag=unsupported 9696 shrext_cmds=.dll 9697 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9698 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9699 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9700 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9701 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9702 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9703 emximp -o $lib $output_objdir/$libname.def' 9704 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9705 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9706 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9707 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9708 prefix_cmds="$SED"~ 9709 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9710 prefix_cmds="$prefix_cmds -e 1d"; 9711 fi~ 9712 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9713 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9714 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9715 emximp -o $lib $output_objdir/$libname.def' 9716 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9717 enable_shared_with_static_runtimes=yes 9718 file_list_spec='@' 9719 ;; 9720 9721 interix[3-9]*) 9722 hardcode_direct=no 9723 hardcode_shlibpath_var=no 9724 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9725 export_dynamic_flag_spec='$wl-E' 9726 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9727 # Instead, shared libraries are loaded at an image base (0x10000000 by 9728 # default) and relocated if they conflict, which is a slow very memory 9729 # consuming and fragmenting process. To avoid this, we pick a random, 9730 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9731 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9732 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9733 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' 9734 ;; 9735 9736 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9737 tmp_diet=no 9738 if test linux-dietlibc = "$host_os"; then 9739 case $cc_basename in 9740 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9741 esac 9742 fi 9743 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9744 && test no = "$tmp_diet" 9745 then 9746 tmp_addflag=' $pic_flag' 9747 tmp_sharedflag='-shared' 9748 case $cc_basename,$host_cpu in 9749 pgcc*) # Portland Group C compiler 9750 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' 9751 tmp_addflag=' $pic_flag' 9752 ;; 9753 pgf77* | pgf90* | pgf95* | pgfortran*) 9754 # Portland Group f77 and f90 compilers 9755 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' 9756 tmp_addflag=' $pic_flag -Mnomain' ;; 9757 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9758 tmp_addflag=' -i_dynamic' ;; 9759 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9760 tmp_addflag=' -i_dynamic -nofor_main' ;; 9761 ifc* | ifort*) # Intel Fortran compiler 9762 tmp_addflag=' -nofor_main' ;; 9763 lf95*) # Lahey Fortran 8.1 9764 whole_archive_flag_spec= 9765 tmp_sharedflag='--shared' ;; 9766 nagfor*) # NAGFOR 5.3 9767 tmp_sharedflag='-Wl,-shared' ;; 9768 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9769 tmp_sharedflag='-qmkshrobj' 9770 tmp_addflag= ;; 9771 nvcc*) # Cuda Compiler Driver 2.2 9772 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' 9773 compiler_needs_object=yes 9774 ;; 9775 esac 9776 case `$CC -V 2>&1 | $SED 5q` in 9777 *Sun\ C*) # Sun C 5.9 9778 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' 9779 compiler_needs_object=yes 9780 tmp_sharedflag='-G' ;; 9781 *Sun\ F*) # Sun Fortran 8.3 9782 tmp_sharedflag='-G' ;; 9783 esac 9784 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9785 9786 if test yes = "$supports_anon_versioning"; then 9787 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9788 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9789 echo "local: *; };" >> $output_objdir/$libname.ver~ 9790 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9791 fi 9792 9793 case $cc_basename in 9794 tcc*) 9795 export_dynamic_flag_spec='-rdynamic' 9796 ;; 9797 xlf* | bgf* | bgxlf* | mpixlf*) 9798 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9799 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9800 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9801 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9802 if test yes = "$supports_anon_versioning"; then 9803 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9804 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9805 echo "local: *; };" >> $output_objdir/$libname.ver~ 9806 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9807 fi 9808 ;; 9809 esac 9810 else 9811 ld_shlibs=no 9812 fi 9813 ;; 9814 9815 netbsd*) 9816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9817 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9818 wlarc= 9819 else 9820 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9821 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9822 fi 9823 ;; 9824 9825 solaris*) 9826 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9827 ld_shlibs=no 9828 cat <<_LT_EOF 1>&2 9829 9830 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9831 *** create shared libraries on Solaris systems. Therefore, libtool 9832 *** is disabling shared libraries support. We urge you to upgrade GNU 9833 *** binutils to release 2.9.1 or newer. Another option is to modify 9834 *** your PATH or compiler configuration so that the native linker is 9835 *** used, and then restart. 9836 9837 _LT_EOF 9838 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9839 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9840 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9841 else 9842 ld_shlibs=no 9843 fi 9844 ;; 9845 9846 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9847 case `$LD -v 2>&1` in 9848 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9849 ld_shlibs=no 9850 cat <<_LT_EOF 1>&2 9851 9852 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9853 *** reliably create shared libraries on SCO systems. Therefore, libtool 9854 *** is disabling shared libraries support. We urge you to upgrade GNU 9855 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9856 *** your PATH or compiler configuration so that the native linker is 9857 *** used, and then restart. 9858 9859 _LT_EOF 9860 ;; 9861 *) 9862 # For security reasons, it is highly recommended that you always 9863 # use absolute paths for naming shared libraries, and exclude the 9864 # DT_RUNPATH tag from executables and libraries. But doing so 9865 # requires that you compile everything twice, which is a pain. 9866 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9867 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9870 else 9871 ld_shlibs=no 9872 fi 9873 ;; 9874 esac 9875 ;; 9876 9877 sunos4*) 9878 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9879 wlarc= 9880 hardcode_direct=yes 9881 hardcode_shlibpath_var=no 9882 ;; 9883 9884 *) 9885 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9886 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9887 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9888 else 9889 ld_shlibs=no 9890 fi 9891 ;; 9892 esac 9893 9894 if test no = "$ld_shlibs"; then 9895 runpath_var= 9896 hardcode_libdir_flag_spec= 9897 export_dynamic_flag_spec= 9898 whole_archive_flag_spec= 9899 fi 9900 else 9901 # PORTME fill in a description of your system's linker (not GNU ld) 9902 case $host_os in 9903 aix3*) 9904 allow_undefined_flag=unsupported 9905 always_export_symbols=yes 9906 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' 9907 # Note: this linker hardcodes the directories in LIBPATH if there 9908 # are no directories specified by -L. 9909 hardcode_minus_L=yes 9910 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9911 # Neither direct hardcoding nor static linking is supported with a 9912 # broken collect2. 9913 hardcode_direct=unsupported 9914 fi 9915 ;; 9916 9917 aix[4-9]*) 9918 if test ia64 = "$host_cpu"; then 9919 # On IA64, the linker does run time linking by default, so we don't 9920 # have to do anything special. 9921 aix_use_runtimelinking=no 9922 exp_sym_flag='-Bexport' 9923 no_entry_flag= 9924 else 9925 # If we're using GNU nm, then we don't want the "-C" option. 9926 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9927 # Without the "-l" option, or with the "-B" option, AIX nm treats 9928 # weak defined symbols like other global defined symbols, whereas 9929 # GNU nm marks them as "W". 9930 # While the 'weak' keyword is ignored in the Export File, we need 9931 # it in the Import File for the 'aix-soname' feature, so we have 9932 # to replace the "-B" option with "-P" for AIX nm. 9933 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9934 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' 9935 else 9936 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' 9937 fi 9938 aix_use_runtimelinking=no 9939 9940 # Test if we are trying to use run time linking or normal 9941 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9942 # have runtime linking enabled, and use it for executables. 9943 # For shared libraries, we enable/disable runtime linking 9944 # depending on the kind of the shared library created - 9945 # when "with_aix_soname,aix_use_runtimelinking" is: 9946 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9947 # "aix,yes" lib.so shared, rtl:yes, for executables 9948 # lib.a static archive 9949 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9950 # lib.a(lib.so.V) shared, rtl:no, for executables 9951 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9952 # lib.a(lib.so.V) shared, rtl:no 9953 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9954 # lib.a static archive 9955 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9956 for ld_flag in $LDFLAGS; do 9957 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9958 aix_use_runtimelinking=yes 9959 break 9960 fi 9961 done 9962 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9963 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9964 # so we don't have lib.a shared libs to link our executables. 9965 # We have to force runtime linking in this case. 9966 aix_use_runtimelinking=yes 9967 LDFLAGS="$LDFLAGS -Wl,-brtl" 9968 fi 9969 ;; 9970 esac 9971 9972 exp_sym_flag='-bexport' 9973 no_entry_flag='-bnoentry' 9974 fi 9975 9976 # When large executables or shared objects are built, AIX ld can 9977 # have problems creating the table of contents. If linking a library 9978 # or program results in "error TOC overflow" add -mminimal-toc to 9979 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9980 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9981 9982 archive_cmds='' 9983 hardcode_direct=yes 9984 hardcode_direct_absolute=yes 9985 hardcode_libdir_separator=':' 9986 link_all_deplibs=yes 9987 file_list_spec='$wl-f,' 9988 case $with_aix_soname,$aix_use_runtimelinking in 9989 aix,*) ;; # traditional, no import file 9990 svr4,* | *,yes) # use import file 9991 # The Import File defines what to hardcode. 9992 hardcode_direct=no 9993 hardcode_direct_absolute=no 9994 ;; 9995 esac 9996 9997 if test yes = "$GCC"; then 9998 case $host_os in aix4.[012]|aix4.[012].*) 9999 # We only want to do this on AIX 4.2 and lower, the check 10000 # below for broken collect2 doesn't work under 4.3+ 10001 collect2name=`$CC -print-prog-name=collect2` 10002 if test -f "$collect2name" && 10003 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10004 then 10005 # We have reworked collect2 10006 : 10007 else 10008 # We have old collect2 10009 hardcode_direct=unsupported 10010 # It fails to find uninstalled libraries when the uninstalled 10011 # path is not listed in the libpath. Setting hardcode_minus_L 10012 # to unsupported forces relinking 10013 hardcode_minus_L=yes 10014 hardcode_libdir_flag_spec='-L$libdir' 10015 hardcode_libdir_separator= 10016 fi 10017 ;; 10018 esac 10019 shared_flag='-shared' 10020 if test yes = "$aix_use_runtimelinking"; then 10021 shared_flag="$shared_flag "'$wl-G' 10022 fi 10023 # Need to ensure runtime linking is disabled for the traditional 10024 # shared library, or the linker may eventually find shared libraries 10025 # /with/ Import File - we do not want to mix them. 10026 shared_flag_aix='-shared' 10027 shared_flag_svr4='-shared $wl-G' 10028 else 10029 # not using gcc 10030 if test ia64 = "$host_cpu"; then 10031 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10032 # chokes on -Wl,-G. The following line is correct: 10033 shared_flag='-G' 10034 else 10035 if test yes = "$aix_use_runtimelinking"; then 10036 shared_flag='$wl-G' 10037 else 10038 shared_flag='$wl-bM:SRE' 10039 fi 10040 shared_flag_aix='$wl-bM:SRE' 10041 shared_flag_svr4='$wl-G' 10042 fi 10043 fi 10044 10045 export_dynamic_flag_spec='$wl-bexpall' 10046 # It seems that -bexpall does not export symbols beginning with 10047 # underscore (_), so it is better to generate a list of symbols to export. 10048 always_export_symbols=yes 10049 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10050 # Warning - without using the other runtime loading flags (-brtl), 10051 # -berok will link without error, but may produce a broken library. 10052 allow_undefined_flag='-berok' 10053 # Determine the default libpath from the value encoded in an 10054 # empty executable. 10055 if test set = "${lt_cv_aix_libpath+set}"; then 10056 aix_libpath=$lt_cv_aix_libpath 10057 else 10058 if test ${lt_cv_aix_libpath_+y} 10059 then : 10060 printf %s "(cached) " >&6 10061 else $as_nop 10062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10063 /* end confdefs.h. */ 10064 10065 int 10066 main (void) 10067 { 10068 10069 ; 10070 return 0; 10071 } 10072 _ACEOF 10073 if ac_fn_c_try_link "$LINENO" 10074 then : 10075 10076 lt_aix_libpath_sed=' 10077 /Import File Strings/,/^$/ { 10078 /^0/ { 10079 s/^0 *\([^ ]*\) *$/\1/ 10080 p 10081 } 10082 }' 10083 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10084 # Check for a 64-bit object if we didn't find anything. 10085 if test -z "$lt_cv_aix_libpath_"; then 10086 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10087 fi 10088 fi 10089 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10090 conftest$ac_exeext conftest.$ac_ext 10091 if test -z "$lt_cv_aix_libpath_"; then 10092 lt_cv_aix_libpath_=/usr/lib:/lib 10093 fi 10094 10095 fi 10096 10097 aix_libpath=$lt_cv_aix_libpath_ 10098 fi 10099 10100 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10101 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 10102 else 10103 if test ia64 = "$host_cpu"; then 10104 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10105 allow_undefined_flag="-z nodefs" 10106 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" 10107 else 10108 # Determine the default libpath from the value encoded in an 10109 # empty executable. 10110 if test set = "${lt_cv_aix_libpath+set}"; then 10111 aix_libpath=$lt_cv_aix_libpath 10112 else 10113 if test ${lt_cv_aix_libpath_+y} 10114 then : 10115 printf %s "(cached) " >&6 10116 else $as_nop 10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10118 /* end confdefs.h. */ 10119 10120 int 10121 main (void) 10122 { 10123 10124 ; 10125 return 0; 10126 } 10127 _ACEOF 10128 if ac_fn_c_try_link "$LINENO" 10129 then : 10130 10131 lt_aix_libpath_sed=' 10132 /Import File Strings/,/^$/ { 10133 /^0/ { 10134 s/^0 *\([^ ]*\) *$/\1/ 10135 p 10136 } 10137 }' 10138 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10139 # Check for a 64-bit object if we didn't find anything. 10140 if test -z "$lt_cv_aix_libpath_"; then 10141 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10142 fi 10143 fi 10144 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10145 conftest$ac_exeext conftest.$ac_ext 10146 if test -z "$lt_cv_aix_libpath_"; then 10147 lt_cv_aix_libpath_=/usr/lib:/lib 10148 fi 10149 10150 fi 10151 10152 aix_libpath=$lt_cv_aix_libpath_ 10153 fi 10154 10155 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10156 # Warning - without using the other run time loading flags, 10157 # -berok will link without error, but may produce a broken library. 10158 no_undefined_flag=' $wl-bernotok' 10159 allow_undefined_flag=' $wl-berok' 10160 if test yes = "$with_gnu_ld"; then 10161 # We only use this code for GNU lds that support --whole-archive. 10162 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10163 else 10164 # Exported symbols can be pulled into shared objects from archives 10165 whole_archive_flag_spec='$convenience' 10166 fi 10167 archive_cmds_need_lc=yes 10168 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10169 # -brtl affects multiple linker settings, -berok does not and is overridden later 10170 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10171 if test svr4 != "$with_aix_soname"; then 10172 # This is similar to how AIX traditionally builds its shared libraries. 10173 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' 10174 fi 10175 if test aix != "$with_aix_soname"; then 10176 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' 10177 else 10178 # used by -dlpreopen to get the symbols 10179 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10180 fi 10181 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10182 fi 10183 fi 10184 ;; 10185 10186 amigaos*) 10187 case $host_cpu in 10188 powerpc) 10189 # see comment about AmigaOS4 .so support 10190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10191 archive_expsym_cmds='' 10192 ;; 10193 m68k) 10194 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)' 10195 hardcode_libdir_flag_spec='-L$libdir' 10196 hardcode_minus_L=yes 10197 ;; 10198 esac 10199 ;; 10200 10201 bsdi[45]*) 10202 export_dynamic_flag_spec=-rdynamic 10203 ;; 10204 10205 cygwin* | mingw* | pw32* | cegcc*) 10206 # When not using gcc, we currently assume that we are using 10207 # Microsoft Visual C++ or Intel C++ Compiler. 10208 # hardcode_libdir_flag_spec is actually meaningless, as there is 10209 # no search path for DLLs. 10210 case $cc_basename in 10211 cl* | icl*) 10212 # Native MSVC or ICC 10213 hardcode_libdir_flag_spec=' ' 10214 allow_undefined_flag=unsupported 10215 always_export_symbols=yes 10216 file_list_spec='@' 10217 # Tell ltmain to make .lib files, not .a files. 10218 libext=lib 10219 # Tell ltmain to make .dll files, not .so files. 10220 shrext_cmds=.dll 10221 # FIXME: Setting linknames here is a bad hack. 10222 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10223 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10224 cp "$export_symbols" "$output_objdir/$soname.def"; 10225 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10226 else 10227 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10228 fi~ 10229 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10230 linknames=' 10231 # The linker will not automatically build a static lib if we build a DLL. 10232 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10233 enable_shared_with_static_runtimes=yes 10234 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10236 # Don't use ranlib 10237 old_postinstall_cmds='chmod 644 $oldlib' 10238 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10239 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10240 case $lt_outputfile in 10241 *.exe|*.EXE) ;; 10242 *) 10243 lt_outputfile=$lt_outputfile.exe 10244 lt_tool_outputfile=$lt_tool_outputfile.exe 10245 ;; 10246 esac~ 10247 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10248 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10249 $RM "$lt_outputfile.manifest"; 10250 fi' 10251 ;; 10252 *) 10253 # Assume MSVC and ICC wrapper 10254 hardcode_libdir_flag_spec=' ' 10255 allow_undefined_flag=unsupported 10256 # Tell ltmain to make .lib files, not .a files. 10257 libext=lib 10258 # Tell ltmain to make .dll files, not .so files. 10259 shrext_cmds=.dll 10260 # FIXME: Setting linknames here is a bad hack. 10261 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10262 # The linker will automatically build a .lib file if we build a DLL. 10263 old_archive_from_new_cmds='true' 10264 # FIXME: Should let the user specify the lib program. 10265 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10266 enable_shared_with_static_runtimes=yes 10267 ;; 10268 esac 10269 ;; 10270 10271 darwin* | rhapsody*) 10272 10273 10274 archive_cmds_need_lc=no 10275 hardcode_direct=no 10276 hardcode_automatic=yes 10277 hardcode_shlibpath_var=unsupported 10278 if test yes = "$lt_cv_ld_force_load"; then 10279 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\"`' 10280 10281 else 10282 whole_archive_flag_spec='' 10283 fi 10284 link_all_deplibs=yes 10285 allow_undefined_flag=$_lt_dar_allow_undefined 10286 case $cc_basename in 10287 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10288 *) _lt_dar_can_shared=$GCC ;; 10289 esac 10290 if test yes = "$_lt_dar_can_shared"; then 10291 output_verbose_link_cmd=func_echo_all 10292 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10293 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10294 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" 10295 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" 10296 10297 else 10298 ld_shlibs=no 10299 fi 10300 10301 ;; 10302 10303 dgux*) 10304 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10305 hardcode_libdir_flag_spec='-L$libdir' 10306 hardcode_shlibpath_var=no 10307 ;; 10308 10309 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10310 # support. Future versions do this automatically, but an explicit c++rt0.o 10311 # does not break anything, and helps significantly (at the cost of a little 10312 # extra space). 10313 freebsd2.2*) 10314 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10315 hardcode_libdir_flag_spec='-R$libdir' 10316 hardcode_direct=yes 10317 hardcode_shlibpath_var=no 10318 ;; 10319 10320 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10321 freebsd2.*) 10322 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10323 hardcode_direct=yes 10324 hardcode_minus_L=yes 10325 hardcode_shlibpath_var=no 10326 ;; 10327 10328 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10329 freebsd* | dragonfly* | midnightbsd*) 10330 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10331 hardcode_libdir_flag_spec='-R$libdir' 10332 hardcode_direct=yes 10333 hardcode_shlibpath_var=no 10334 ;; 10335 10336 hpux9*) 10337 if test yes = "$GCC"; then 10338 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' 10339 else 10340 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' 10341 fi 10342 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10343 hardcode_libdir_separator=: 10344 hardcode_direct=yes 10345 10346 # hardcode_minus_L: Not really in the search PATH, 10347 # but as the default location of the library. 10348 hardcode_minus_L=yes 10349 export_dynamic_flag_spec='$wl-E' 10350 ;; 10351 10352 hpux10*) 10353 if test yes,no = "$GCC,$with_gnu_ld"; then 10354 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10355 else 10356 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10357 fi 10358 if test no = "$with_gnu_ld"; then 10359 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10360 hardcode_libdir_separator=: 10361 hardcode_direct=yes 10362 hardcode_direct_absolute=yes 10363 export_dynamic_flag_spec='$wl-E' 10364 # hardcode_minus_L: Not really in the search PATH, 10365 # but as the default location of the library. 10366 hardcode_minus_L=yes 10367 fi 10368 ;; 10369 10370 hpux11*) 10371 if test yes,no = "$GCC,$with_gnu_ld"; then 10372 case $host_cpu in 10373 hppa*64*) 10374 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10375 ;; 10376 ia64*) 10377 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10378 ;; 10379 *) 10380 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10381 ;; 10382 esac 10383 else 10384 case $host_cpu in 10385 hppa*64*) 10386 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10387 ;; 10388 ia64*) 10389 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10390 ;; 10391 *) 10392 10393 # Older versions of the 11.00 compiler do not understand -b yet 10394 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10396 printf %s "checking if $CC understands -b... " >&6; } 10397 if test ${lt_cv_prog_compiler__b+y} 10398 then : 10399 printf %s "(cached) " >&6 10400 else $as_nop 10401 lt_cv_prog_compiler__b=no 10402 save_LDFLAGS=$LDFLAGS 10403 LDFLAGS="$LDFLAGS -b" 10404 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10405 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10406 # The linker can only warn and ignore the option if not recognized 10407 # So say no if there are warnings 10408 if test -s conftest.err; then 10409 # Append any errors to the config.log. 10410 cat conftest.err 1>&5 10411 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10413 if diff conftest.exp conftest.er2 >/dev/null; then 10414 lt_cv_prog_compiler__b=yes 10415 fi 10416 else 10417 lt_cv_prog_compiler__b=yes 10418 fi 10419 fi 10420 $RM -r conftest* 10421 LDFLAGS=$save_LDFLAGS 10422 10423 fi 10424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10425 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10426 10427 if test yes = "$lt_cv_prog_compiler__b"; then 10428 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10429 else 10430 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10431 fi 10432 10433 ;; 10434 esac 10435 fi 10436 if test no = "$with_gnu_ld"; then 10437 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10438 hardcode_libdir_separator=: 10439 10440 case $host_cpu in 10441 hppa*64*|ia64*) 10442 hardcode_direct=no 10443 hardcode_shlibpath_var=no 10444 ;; 10445 *) 10446 hardcode_direct=yes 10447 hardcode_direct_absolute=yes 10448 export_dynamic_flag_spec='$wl-E' 10449 10450 # hardcode_minus_L: Not really in the search PATH, 10451 # but as the default location of the library. 10452 hardcode_minus_L=yes 10453 ;; 10454 esac 10455 fi 10456 ;; 10457 10458 irix5* | irix6* | nonstopux*) 10459 if test yes = "$GCC"; then 10460 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' 10461 # Try to use the -exported_symbol ld option, if it does not 10462 # work, assume that -exports_file does not work either and 10463 # implicitly export all symbols. 10464 # This should be the same for all languages, so no per-tag cache variable. 10465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10466 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10467 if test ${lt_cv_irix_exported_symbol+y} 10468 then : 10469 printf %s "(cached) " >&6 10470 else $as_nop 10471 save_LDFLAGS=$LDFLAGS 10472 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10474 /* end confdefs.h. */ 10475 int foo (void) { return 0; } 10476 _ACEOF 10477 if ac_fn_c_try_link "$LINENO" 10478 then : 10479 lt_cv_irix_exported_symbol=yes 10480 else $as_nop 10481 lt_cv_irix_exported_symbol=no 10482 fi 10483 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10484 conftest$ac_exeext conftest.$ac_ext 10485 LDFLAGS=$save_LDFLAGS 10486 fi 10487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10488 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10489 if test yes = "$lt_cv_irix_exported_symbol"; then 10490 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' 10491 fi 10492 else 10493 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' 10494 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' 10495 fi 10496 archive_cmds_need_lc='no' 10497 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10498 hardcode_libdir_separator=: 10499 inherit_rpath=yes 10500 link_all_deplibs=yes 10501 ;; 10502 10503 linux*) 10504 case $cc_basename in 10505 tcc*) 10506 # Fabrice Bellard et al's Tiny C Compiler 10507 ld_shlibs=yes 10508 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10509 ;; 10510 esac 10511 ;; 10512 10513 netbsd*) 10514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10516 else 10517 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10518 fi 10519 hardcode_libdir_flag_spec='-R$libdir' 10520 hardcode_direct=yes 10521 hardcode_shlibpath_var=no 10522 ;; 10523 10524 newsos6) 10525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10526 hardcode_direct=yes 10527 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10528 hardcode_libdir_separator=: 10529 hardcode_shlibpath_var=no 10530 ;; 10531 10532 *nto* | *qnx*) 10533 ;; 10534 10535 openbsd* | bitrig*) 10536 if test -f /usr/libexec/ld.so; then 10537 hardcode_direct=yes 10538 hardcode_shlibpath_var=no 10539 hardcode_direct_absolute=yes 10540 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10542 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10543 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10544 export_dynamic_flag_spec='$wl-E' 10545 else 10546 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10547 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10548 fi 10549 else 10550 ld_shlibs=no 10551 fi 10552 ;; 10553 10554 os2*) 10555 hardcode_libdir_flag_spec='-L$libdir' 10556 hardcode_minus_L=yes 10557 allow_undefined_flag=unsupported 10558 shrext_cmds=.dll 10559 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10560 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10561 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10562 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10563 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10564 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10565 emximp -o $lib $output_objdir/$libname.def' 10566 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10567 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10568 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10569 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10570 prefix_cmds="$SED"~ 10571 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10572 prefix_cmds="$prefix_cmds -e 1d"; 10573 fi~ 10574 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10575 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10576 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10577 emximp -o $lib $output_objdir/$libname.def' 10578 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10579 enable_shared_with_static_runtimes=yes 10580 file_list_spec='@' 10581 ;; 10582 10583 osf3*) 10584 if test yes = "$GCC"; then 10585 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10586 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' 10587 else 10588 allow_undefined_flag=' -expect_unresolved \*' 10589 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' 10590 fi 10591 archive_cmds_need_lc='no' 10592 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10593 hardcode_libdir_separator=: 10594 ;; 10595 10596 osf4* | osf5*) # as osf3* with the addition of -msym flag 10597 if test yes = "$GCC"; then 10598 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10599 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' 10600 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10601 else 10602 allow_undefined_flag=' -expect_unresolved \*' 10603 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' 10604 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~ 10605 $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' 10606 10607 # Both c and cxx compiler support -rpath directly 10608 hardcode_libdir_flag_spec='-rpath $libdir' 10609 fi 10610 archive_cmds_need_lc='no' 10611 hardcode_libdir_separator=: 10612 ;; 10613 10614 solaris*) 10615 no_undefined_flag=' -z defs' 10616 if test yes = "$GCC"; then 10617 wlarc='$wl' 10618 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10619 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10620 $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' 10621 else 10622 case `$CC -V 2>&1` in 10623 *"Compilers 5.0"*) 10624 wlarc='' 10625 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10626 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10627 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10628 ;; 10629 *) 10630 wlarc='$wl' 10631 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10632 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10633 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10634 ;; 10635 esac 10636 fi 10637 hardcode_libdir_flag_spec='-R$libdir' 10638 hardcode_shlibpath_var=no 10639 case $host_os in 10640 solaris2.[0-5] | solaris2.[0-5].*) ;; 10641 *) 10642 # The compiler driver will combine and reorder linker options, 10643 # but understands '-z linker_flag'. GCC discards it without '$wl', 10644 # but is careful enough not to reorder. 10645 # Supported since Solaris 2.6 (maybe 2.5.1?) 10646 if test yes = "$GCC"; then 10647 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10648 else 10649 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10650 fi 10651 ;; 10652 esac 10653 link_all_deplibs=yes 10654 ;; 10655 10656 sunos4*) 10657 if test sequent = "$host_vendor"; then 10658 # Use $CC to link under sequent, because it throws in some extra .o 10659 # files that make .init and .fini sections work. 10660 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10661 else 10662 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10663 fi 10664 hardcode_libdir_flag_spec='-L$libdir' 10665 hardcode_direct=yes 10666 hardcode_minus_L=yes 10667 hardcode_shlibpath_var=no 10668 ;; 10669 10670 sysv4) 10671 case $host_vendor in 10672 sni) 10673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10674 hardcode_direct=yes # is this really true??? 10675 ;; 10676 siemens) 10677 ## LD is ld it makes a PLAMLIB 10678 ## CC just makes a GrossModule. 10679 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10680 reload_cmds='$CC -r -o $output$reload_objs' 10681 hardcode_direct=no 10682 ;; 10683 motorola) 10684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10685 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10686 ;; 10687 esac 10688 runpath_var='LD_RUN_PATH' 10689 hardcode_shlibpath_var=no 10690 ;; 10691 10692 sysv4.3*) 10693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10694 hardcode_shlibpath_var=no 10695 export_dynamic_flag_spec='-Bexport' 10696 ;; 10697 10698 sysv4*MP*) 10699 if test -d /usr/nec; then 10700 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10701 hardcode_shlibpath_var=no 10702 runpath_var=LD_RUN_PATH 10703 hardcode_runpath_var=yes 10704 ld_shlibs=yes 10705 fi 10706 ;; 10707 10708 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10709 no_undefined_flag='$wl-z,text' 10710 archive_cmds_need_lc=no 10711 hardcode_shlibpath_var=no 10712 runpath_var='LD_RUN_PATH' 10713 10714 if test yes = "$GCC"; then 10715 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10716 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10717 else 10718 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10719 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10720 fi 10721 ;; 10722 10723 sysv5* | sco3.2v5* | sco5v6*) 10724 # Note: We CANNOT use -z defs as we might desire, because we do not 10725 # link with -lc, and that would cause any symbols used from libc to 10726 # always be unresolved, which means just about no library would 10727 # ever link correctly. If we're not using GNU ld we use -z text 10728 # though, which does catch some bad symbols but isn't as heavy-handed 10729 # as -z defs. 10730 no_undefined_flag='$wl-z,text' 10731 allow_undefined_flag='$wl-z,nodefs' 10732 archive_cmds_need_lc=no 10733 hardcode_shlibpath_var=no 10734 hardcode_libdir_flag_spec='$wl-R,$libdir' 10735 hardcode_libdir_separator=':' 10736 link_all_deplibs=yes 10737 export_dynamic_flag_spec='$wl-Bexport' 10738 runpath_var='LD_RUN_PATH' 10739 10740 if test yes = "$GCC"; then 10741 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10742 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10743 else 10744 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10745 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10746 fi 10747 ;; 10748 10749 uts4*) 10750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10751 hardcode_libdir_flag_spec='-L$libdir' 10752 hardcode_shlibpath_var=no 10753 ;; 10754 10755 *) 10756 ld_shlibs=no 10757 ;; 10758 esac 10759 10760 if test sni = "$host_vendor"; then 10761 case $host in 10762 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10763 export_dynamic_flag_spec='$wl-Blargedynsym' 10764 ;; 10765 esac 10766 fi 10767 fi 10768 10769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10770 printf "%s\n" "$ld_shlibs" >&6; } 10771 test no = "$ld_shlibs" && can_build_shared=no 10772 10773 with_gnu_ld=$with_gnu_ld 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 # 10790 # Do we need to explicitly link libc? 10791 # 10792 case "x$archive_cmds_need_lc" in 10793 x|xyes) 10794 # Assume -lc should be added 10795 archive_cmds_need_lc=yes 10796 10797 if test yes,yes = "$GCC,$enable_shared"; then 10798 case $archive_cmds in 10799 *'~'*) 10800 # FIXME: we may have to deal with multi-command sequences. 10801 ;; 10802 '$CC '*) 10803 # Test whether the compiler implicitly links with -lc since on some 10804 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10805 # to ld, don't add -lc before -lgcc. 10806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10807 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10808 if test ${lt_cv_archive_cmds_need_lc+y} 10809 then : 10810 printf %s "(cached) " >&6 10811 else $as_nop 10812 $RM conftest* 10813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10814 10815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10816 (eval $ac_compile) 2>&5 10817 ac_status=$? 10818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10819 test $ac_status = 0; } 2>conftest.err; then 10820 soname=conftest 10821 lib=conftest 10822 libobjs=conftest.$ac_objext 10823 deplibs= 10824 wl=$lt_prog_compiler_wl 10825 pic_flag=$lt_prog_compiler_pic 10826 compiler_flags=-v 10827 linker_flags=-v 10828 verstring= 10829 output_objdir=. 10830 libname=conftest 10831 lt_save_allow_undefined_flag=$allow_undefined_flag 10832 allow_undefined_flag= 10833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10834 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10835 ac_status=$? 10836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10837 test $ac_status = 0; } 10838 then 10839 lt_cv_archive_cmds_need_lc=no 10840 else 10841 lt_cv_archive_cmds_need_lc=yes 10842 fi 10843 allow_undefined_flag=$lt_save_allow_undefined_flag 10844 else 10845 cat conftest.err 1>&5 10846 fi 10847 $RM conftest* 10848 10849 fi 10850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10851 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10852 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10853 ;; 10854 esac 10855 fi 10856 ;; 10857 esac 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11011 printf %s "checking dynamic linker characteristics... " >&6; } 11012 11013 if test yes = "$GCC"; then 11014 case $host_os in 11015 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11016 *) lt_awk_arg='/^libraries:/' ;; 11017 esac 11018 case $host_os in 11019 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11020 *) lt_sed_strip_eq='s|=/|/|g' ;; 11021 esac 11022 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11023 case $lt_search_path_spec in 11024 *\;*) 11025 # if the path contains ";" then we assume it to be the separator 11026 # otherwise default to the standard path separator (i.e. ":") - it is 11027 # assumed that no part of a normal pathname contains ";" but that should 11028 # okay in the real world where ";" in dirpaths is itself problematic. 11029 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11030 ;; 11031 *) 11032 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11033 ;; 11034 esac 11035 # Ok, now we have the path, separated by spaces, we can step through it 11036 # and add multilib dir if necessary... 11037 lt_tmp_lt_search_path_spec= 11038 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11039 # ...but if some path component already ends with the multilib dir we assume 11040 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11041 case "$lt_multi_os_dir; $lt_search_path_spec " in 11042 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11043 lt_multi_os_dir= 11044 ;; 11045 esac 11046 for lt_sys_path in $lt_search_path_spec; do 11047 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11048 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11049 elif test -n "$lt_multi_os_dir"; then 11050 test -d "$lt_sys_path" && \ 11051 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11052 fi 11053 done 11054 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11055 BEGIN {RS = " "; FS = "/|\n";} { 11056 lt_foo = ""; 11057 lt_count = 0; 11058 for (lt_i = NF; lt_i > 0; lt_i--) { 11059 if ($lt_i != "" && $lt_i != ".") { 11060 if ($lt_i == "..") { 11061 lt_count++; 11062 } else { 11063 if (lt_count == 0) { 11064 lt_foo = "/" $lt_i lt_foo; 11065 } else { 11066 lt_count--; 11067 } 11068 } 11069 } 11070 } 11071 if (lt_foo != "") { lt_freq[lt_foo]++; } 11072 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11073 }'` 11074 # AWK program above erroneously prepends '/' to C:/dos/paths 11075 # for these hosts. 11076 case $host_os in 11077 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11078 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11079 esac 11080 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11081 else 11082 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11083 fi 11084 library_names_spec= 11085 libname_spec='lib$name' 11086 soname_spec= 11087 shrext_cmds=.so 11088 postinstall_cmds= 11089 postuninstall_cmds= 11090 finish_cmds= 11091 finish_eval= 11092 shlibpath_var= 11093 shlibpath_overrides_runpath=unknown 11094 version_type=none 11095 dynamic_linker="$host_os ld.so" 11096 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11097 need_lib_prefix=unknown 11098 hardcode_into_libs=no 11099 11100 # when you set need_version to no, make sure it does not cause -set_version 11101 # flags to be left without arguments 11102 need_version=unknown 11103 11104 11105 11106 case $host_os in 11107 aix3*) 11108 version_type=linux # correct to gnu/linux during the next big refactor 11109 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11110 shlibpath_var=LIBPATH 11111 11112 # AIX 3 has no versioning support, so we append a major version to the name. 11113 soname_spec='$libname$release$shared_ext$major' 11114 ;; 11115 11116 aix[4-9]*) 11117 version_type=linux # correct to gnu/linux during the next big refactor 11118 need_lib_prefix=no 11119 need_version=no 11120 hardcode_into_libs=yes 11121 if test ia64 = "$host_cpu"; then 11122 # AIX 5 supports IA64 11123 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11124 shlibpath_var=LD_LIBRARY_PATH 11125 else 11126 # With GCC up to 2.95.x, collect2 would create an import file 11127 # for dependence libraries. The import file would start with 11128 # the line '#! .'. This would cause the generated library to 11129 # depend on '.', always an invalid library. This was fixed in 11130 # development snapshots of GCC prior to 3.0. 11131 case $host_os in 11132 aix4 | aix4.[01] | aix4.[01].*) 11133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11134 echo ' yes ' 11135 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11136 : 11137 else 11138 can_build_shared=no 11139 fi 11140 ;; 11141 esac 11142 # Using Import Files as archive members, it is possible to support 11143 # filename-based versioning of shared library archives on AIX. While 11144 # this would work for both with and without runtime linking, it will 11145 # prevent static linking of such archives. So we do filename-based 11146 # shared library versioning with .so extension only, which is used 11147 # when both runtime linking and shared linking is enabled. 11148 # Unfortunately, runtime linking may impact performance, so we do 11149 # not want this to be the default eventually. Also, we use the 11150 # versioned .so libs for executables only if there is the -brtl 11151 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11152 # To allow for filename-based versioning support, we need to create 11153 # libNAME.so.V as an archive file, containing: 11154 # *) an Import File, referring to the versioned filename of the 11155 # archive as well as the shared archive member, telling the 11156 # bitwidth (32 or 64) of that shared object, and providing the 11157 # list of exported symbols of that shared object, eventually 11158 # decorated with the 'weak' keyword 11159 # *) the shared object with the F_LOADONLY flag set, to really avoid 11160 # it being seen by the linker. 11161 # At run time we better use the real file rather than another symlink, 11162 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11163 11164 case $with_aix_soname,$aix_use_runtimelinking in 11165 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11166 # soname into executable. Probably we can add versioning support to 11167 # collect2, so additional links can be useful in future. 11168 aix,yes) # traditional libtool 11169 dynamic_linker='AIX unversionable lib.so' 11170 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11171 # instead of lib<name>.a to let people know that these are not 11172 # typical AIX shared libraries. 11173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11174 ;; 11175 aix,no) # traditional AIX only 11176 dynamic_linker='AIX lib.a(lib.so.V)' 11177 # We preserve .a as extension for shared libraries through AIX4.2 11178 # and later when we are not doing run time linking. 11179 library_names_spec='$libname$release.a $libname.a' 11180 soname_spec='$libname$release$shared_ext$major' 11181 ;; 11182 svr4,*) # full svr4 only 11183 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11184 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11185 # We do not specify a path in Import Files, so LIBPATH fires. 11186 shlibpath_overrides_runpath=yes 11187 ;; 11188 *,yes) # both, prefer svr4 11189 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11190 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11191 # unpreferred sharedlib libNAME.a needs extra handling 11192 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"' 11193 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"' 11194 # We do not specify a path in Import Files, so LIBPATH fires. 11195 shlibpath_overrides_runpath=yes 11196 ;; 11197 *,no) # both, prefer aix 11198 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11199 library_names_spec='$libname$release.a $libname.a' 11200 soname_spec='$libname$release$shared_ext$major' 11201 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11202 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)' 11203 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"' 11204 ;; 11205 esac 11206 shlibpath_var=LIBPATH 11207 fi 11208 ;; 11209 11210 amigaos*) 11211 case $host_cpu in 11212 powerpc) 11213 # Since July 2007 AmigaOS4 officially supports .so libraries. 11214 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11216 ;; 11217 m68k) 11218 library_names_spec='$libname.ixlibrary $libname.a' 11219 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11220 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' 11221 ;; 11222 esac 11223 ;; 11224 11225 beos*) 11226 library_names_spec='$libname$shared_ext' 11227 dynamic_linker="$host_os ld.so" 11228 shlibpath_var=LIBRARY_PATH 11229 ;; 11230 11231 bsdi[45]*) 11232 version_type=linux # correct to gnu/linux during the next big refactor 11233 need_version=no 11234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11235 soname_spec='$libname$release$shared_ext$major' 11236 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11237 shlibpath_var=LD_LIBRARY_PATH 11238 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11239 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11240 # the default ld.so.conf also contains /usr/contrib/lib and 11241 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11242 # libtool to hard-code these into programs 11243 ;; 11244 11245 cygwin* | mingw* | pw32* | cegcc*) 11246 version_type=windows 11247 shrext_cmds=.dll 11248 need_version=no 11249 need_lib_prefix=no 11250 11251 case $GCC,$cc_basename in 11252 yes,*) 11253 # gcc 11254 library_names_spec='$libname.dll.a' 11255 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11256 postinstall_cmds='base_file=`basename \$file`~ 11257 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11258 dldir=$destdir/`dirname \$dlpath`~ 11259 test -d \$dldir || mkdir -p \$dldir~ 11260 $install_prog $dir/$dlname \$dldir/$dlname~ 11261 chmod a+x \$dldir/$dlname~ 11262 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11263 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11264 fi' 11265 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11266 dlpath=$dir/\$dldll~ 11267 $RM \$dlpath' 11268 shlibpath_overrides_runpath=yes 11269 11270 case $host_os in 11271 cygwin*) 11272 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11273 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11274 11275 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11276 ;; 11277 mingw* | cegcc*) 11278 # MinGW DLLs use traditional 'lib' prefix 11279 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11280 ;; 11281 pw32*) 11282 # pw32 DLLs use 'pw' prefix rather than 'lib' 11283 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11284 ;; 11285 esac 11286 dynamic_linker='Win32 ld.exe' 11287 ;; 11288 11289 *,cl* | *,icl*) 11290 # Native MSVC or ICC 11291 libname_spec='$name' 11292 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11293 library_names_spec='$libname.dll.lib' 11294 11295 case $build_os in 11296 mingw*) 11297 sys_lib_search_path_spec= 11298 lt_save_ifs=$IFS 11299 IFS=';' 11300 for lt_path in $LIB 11301 do 11302 IFS=$lt_save_ifs 11303 # Let DOS variable expansion print the short 8.3 style file name. 11304 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11305 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11306 done 11307 IFS=$lt_save_ifs 11308 # Convert to MSYS style. 11309 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11310 ;; 11311 cygwin*) 11312 # Convert to unix form, then to dos form, then back to unix form 11313 # but this time dos style (no spaces!) so that the unix form looks 11314 # like /cygdrive/c/PROGRA~1:/cygdr... 11315 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11316 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11317 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11318 ;; 11319 *) 11320 sys_lib_search_path_spec=$LIB 11321 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11322 # It is most probably a Windows format PATH. 11323 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11324 else 11325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11326 fi 11327 # FIXME: find the short name or the path components, as spaces are 11328 # common. (e.g. "Program Files" -> "PROGRA~1") 11329 ;; 11330 esac 11331 11332 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11333 postinstall_cmds='base_file=`basename \$file`~ 11334 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11335 dldir=$destdir/`dirname \$dlpath`~ 11336 test -d \$dldir || mkdir -p \$dldir~ 11337 $install_prog $dir/$dlname \$dldir/$dlname' 11338 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11339 dlpath=$dir/\$dldll~ 11340 $RM \$dlpath' 11341 shlibpath_overrides_runpath=yes 11342 dynamic_linker='Win32 link.exe' 11343 ;; 11344 11345 *) 11346 # Assume MSVC and ICC wrapper 11347 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11348 dynamic_linker='Win32 ld.exe' 11349 ;; 11350 esac 11351 # FIXME: first we should search . and the directory the executable is in 11352 shlibpath_var=PATH 11353 ;; 11354 11355 darwin* | rhapsody*) 11356 dynamic_linker="$host_os dyld" 11357 version_type=darwin 11358 need_lib_prefix=no 11359 need_version=no 11360 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11361 soname_spec='$libname$release$major$shared_ext' 11362 shlibpath_overrides_runpath=yes 11363 shlibpath_var=DYLD_LIBRARY_PATH 11364 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11365 11366 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11367 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11368 ;; 11369 11370 dgux*) 11371 version_type=linux # correct to gnu/linux during the next big refactor 11372 need_lib_prefix=no 11373 need_version=no 11374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11375 soname_spec='$libname$release$shared_ext$major' 11376 shlibpath_var=LD_LIBRARY_PATH 11377 ;; 11378 11379 freebsd* | dragonfly* | midnightbsd*) 11380 # DragonFly does not have aout. When/if they implement a new 11381 # versioning mechanism, adjust this. 11382 if test -x /usr/bin/objformat; then 11383 objformat=`/usr/bin/objformat` 11384 else 11385 case $host_os in 11386 freebsd[23].*) objformat=aout ;; 11387 *) objformat=elf ;; 11388 esac 11389 fi 11390 version_type=freebsd-$objformat 11391 case $version_type in 11392 freebsd-elf*) 11393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11394 soname_spec='$libname$release$shared_ext$major' 11395 need_version=no 11396 need_lib_prefix=no 11397 ;; 11398 freebsd-*) 11399 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11400 need_version=yes 11401 ;; 11402 esac 11403 shlibpath_var=LD_LIBRARY_PATH 11404 case $host_os in 11405 freebsd2.*) 11406 shlibpath_overrides_runpath=yes 11407 ;; 11408 freebsd3.[01]* | freebsdelf3.[01]*) 11409 shlibpath_overrides_runpath=yes 11410 hardcode_into_libs=yes 11411 ;; 11412 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11413 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11414 shlibpath_overrides_runpath=no 11415 hardcode_into_libs=yes 11416 ;; 11417 *) # from 4.6 on, and DragonFly 11418 shlibpath_overrides_runpath=yes 11419 hardcode_into_libs=yes 11420 ;; 11421 esac 11422 ;; 11423 11424 haiku*) 11425 version_type=linux # correct to gnu/linux during the next big refactor 11426 need_lib_prefix=no 11427 need_version=no 11428 dynamic_linker="$host_os runtime_loader" 11429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11430 soname_spec='$libname$release$shared_ext$major' 11431 shlibpath_var=LIBRARY_PATH 11432 shlibpath_overrides_runpath=no 11433 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11434 hardcode_into_libs=yes 11435 ;; 11436 11437 hpux9* | hpux10* | hpux11*) 11438 # Give a soname corresponding to the major version so that dld.sl refuses to 11439 # link against other versions. 11440 version_type=sunos 11441 need_lib_prefix=no 11442 need_version=no 11443 case $host_cpu in 11444 ia64*) 11445 shrext_cmds='.so' 11446 hardcode_into_libs=yes 11447 dynamic_linker="$host_os dld.so" 11448 shlibpath_var=LD_LIBRARY_PATH 11449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11451 soname_spec='$libname$release$shared_ext$major' 11452 if test 32 = "$HPUX_IA64_MODE"; then 11453 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11454 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11455 else 11456 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11457 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11458 fi 11459 ;; 11460 hppa*64*) 11461 shrext_cmds='.sl' 11462 hardcode_into_libs=yes 11463 dynamic_linker="$host_os dld.sl" 11464 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11467 soname_spec='$libname$release$shared_ext$major' 11468 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11470 ;; 11471 *) 11472 shrext_cmds='.sl' 11473 dynamic_linker="$host_os dld.sl" 11474 shlibpath_var=SHLIB_PATH 11475 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11477 soname_spec='$libname$release$shared_ext$major' 11478 ;; 11479 esac 11480 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11481 postinstall_cmds='chmod 555 $lib' 11482 # or fails outright, so override atomically: 11483 install_override_mode=555 11484 ;; 11485 11486 interix[3-9]*) 11487 version_type=linux # correct to gnu/linux during the next big refactor 11488 need_lib_prefix=no 11489 need_version=no 11490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11491 soname_spec='$libname$release$shared_ext$major' 11492 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11493 shlibpath_var=LD_LIBRARY_PATH 11494 shlibpath_overrides_runpath=no 11495 hardcode_into_libs=yes 11496 ;; 11497 11498 irix5* | irix6* | nonstopux*) 11499 case $host_os in 11500 nonstopux*) version_type=nonstopux ;; 11501 *) 11502 if test yes = "$lt_cv_prog_gnu_ld"; then 11503 version_type=linux # correct to gnu/linux during the next big refactor 11504 else 11505 version_type=irix 11506 fi ;; 11507 esac 11508 need_lib_prefix=no 11509 need_version=no 11510 soname_spec='$libname$release$shared_ext$major' 11511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11512 case $host_os in 11513 irix5* | nonstopux*) 11514 libsuff= shlibsuff= 11515 ;; 11516 *) 11517 case $LD in # libtool.m4 will add one of these switches to LD 11518 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11519 libsuff= shlibsuff= libmagic=32-bit;; 11520 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11521 libsuff=32 shlibsuff=N32 libmagic=N32;; 11522 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11523 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11524 *) libsuff= shlibsuff= libmagic=never-match;; 11525 esac 11526 ;; 11527 esac 11528 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11529 shlibpath_overrides_runpath=no 11530 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11531 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11532 hardcode_into_libs=yes 11533 ;; 11534 11535 # No shared lib support for Linux oldld, aout, or coff. 11536 linux*oldld* | linux*aout* | linux*coff*) 11537 dynamic_linker=no 11538 ;; 11539 11540 linux*android*) 11541 version_type=none # Android doesn't support versioned libraries. 11542 need_lib_prefix=no 11543 need_version=no 11544 library_names_spec='$libname$release$shared_ext' 11545 soname_spec='$libname$release$shared_ext' 11546 finish_cmds= 11547 shlibpath_var=LD_LIBRARY_PATH 11548 shlibpath_overrides_runpath=yes 11549 11550 # This implies no fast_install, which is unacceptable. 11551 # Some rework will be needed to allow for fast_install 11552 # before this can be enabled. 11553 hardcode_into_libs=yes 11554 11555 dynamic_linker='Android linker' 11556 # Don't embed -rpath directories since the linker doesn't support them. 11557 hardcode_libdir_flag_spec='-L$libdir' 11558 ;; 11559 11560 # This must be glibc/ELF. 11561 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11562 version_type=linux # correct to gnu/linux during the next big refactor 11563 need_lib_prefix=no 11564 need_version=no 11565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11566 soname_spec='$libname$release$shared_ext$major' 11567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11568 shlibpath_var=LD_LIBRARY_PATH 11569 shlibpath_overrides_runpath=no 11570 11571 # Some binutils ld are patched to set DT_RUNPATH 11572 if test ${lt_cv_shlibpath_overrides_runpath+y} 11573 then : 11574 printf %s "(cached) " >&6 11575 else $as_nop 11576 lt_cv_shlibpath_overrides_runpath=no 11577 save_LDFLAGS=$LDFLAGS 11578 save_libdir=$libdir 11579 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11580 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11582 /* end confdefs.h. */ 11583 11584 int 11585 main (void) 11586 { 11587 11588 ; 11589 return 0; 11590 } 11591 _ACEOF 11592 if ac_fn_c_try_link "$LINENO" 11593 then : 11594 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11595 then : 11596 lt_cv_shlibpath_overrides_runpath=yes 11597 fi 11598 fi 11599 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11600 conftest$ac_exeext conftest.$ac_ext 11601 LDFLAGS=$save_LDFLAGS 11602 libdir=$save_libdir 11603 11604 fi 11605 11606 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11607 11608 # This implies no fast_install, which is unacceptable. 11609 # Some rework will be needed to allow for fast_install 11610 # before this can be enabled. 11611 hardcode_into_libs=yes 11612 11613 # Ideally, we could use ldconfig to report *all* directores which are 11614 # searched for libraries, however this is still not possible. Aside from not 11615 # being certain /sbin/ldconfig is available, command 11616 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11617 # even though it is searched at run-time. Try to do the best guess by 11618 # appending ld.so.conf contents (and includes) to the search path. 11619 if test -f /etc/ld.so.conf; then 11620 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' ' '` 11621 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11622 fi 11623 11624 # We used to test for /lib/ld.so.1 and disable shared libraries on 11625 # powerpc, because MkLinux only supported shared libraries with the 11626 # GNU dynamic linker. Since this was broken with cross compilers, 11627 # most powerpc-linux boxes support dynamic linking these days and 11628 # people can always --disable-shared, the test was removed, and we 11629 # assume the GNU/Linux dynamic linker is in use. 11630 dynamic_linker='GNU/Linux ld.so' 11631 ;; 11632 11633 netbsd*) 11634 version_type=sunos 11635 need_lib_prefix=no 11636 need_version=no 11637 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11638 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11640 dynamic_linker='NetBSD (a.out) ld.so' 11641 else 11642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11643 soname_spec='$libname$release$shared_ext$major' 11644 dynamic_linker='NetBSD ld.elf_so' 11645 fi 11646 shlibpath_var=LD_LIBRARY_PATH 11647 shlibpath_overrides_runpath=yes 11648 hardcode_into_libs=yes 11649 ;; 11650 11651 newsos6) 11652 version_type=linux # correct to gnu/linux during the next big refactor 11653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11654 shlibpath_var=LD_LIBRARY_PATH 11655 shlibpath_overrides_runpath=yes 11656 ;; 11657 11658 *nto* | *qnx*) 11659 version_type=qnx 11660 need_lib_prefix=no 11661 need_version=no 11662 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11663 soname_spec='$libname$release$shared_ext$major' 11664 shlibpath_var=LD_LIBRARY_PATH 11665 shlibpath_overrides_runpath=no 11666 hardcode_into_libs=yes 11667 dynamic_linker='ldqnx.so' 11668 ;; 11669 11670 openbsd* | bitrig*) 11671 version_type=sunos 11672 sys_lib_dlsearch_path_spec=/usr/lib 11673 need_lib_prefix=no 11674 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11675 need_version=no 11676 else 11677 need_version=yes 11678 fi 11679 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11681 shlibpath_var=LD_LIBRARY_PATH 11682 shlibpath_overrides_runpath=yes 11683 ;; 11684 11685 os2*) 11686 libname_spec='$name' 11687 version_type=windows 11688 shrext_cmds=.dll 11689 need_version=no 11690 need_lib_prefix=no 11691 # OS/2 can only load a DLL with a base name of 8 characters or less. 11692 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11693 v=$($ECHO $release$versuffix | tr -d .-); 11694 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11695 $ECHO $n$v`$shared_ext' 11696 library_names_spec='${libname}_dll.$libext' 11697 dynamic_linker='OS/2 ld.exe' 11698 shlibpath_var=BEGINLIBPATH 11699 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11700 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11701 postinstall_cmds='base_file=`basename \$file`~ 11702 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11703 dldir=$destdir/`dirname \$dlpath`~ 11704 test -d \$dldir || mkdir -p \$dldir~ 11705 $install_prog $dir/$dlname \$dldir/$dlname~ 11706 chmod a+x \$dldir/$dlname~ 11707 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11708 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11709 fi' 11710 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11711 dlpath=$dir/\$dldll~ 11712 $RM \$dlpath' 11713 ;; 11714 11715 osf3* | osf4* | osf5*) 11716 version_type=osf 11717 need_lib_prefix=no 11718 need_version=no 11719 soname_spec='$libname$release$shared_ext$major' 11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11721 shlibpath_var=LD_LIBRARY_PATH 11722 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11724 ;; 11725 11726 rdos*) 11727 dynamic_linker=no 11728 ;; 11729 11730 solaris*) 11731 version_type=linux # correct to gnu/linux during the next big refactor 11732 need_lib_prefix=no 11733 need_version=no 11734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11735 soname_spec='$libname$release$shared_ext$major' 11736 shlibpath_var=LD_LIBRARY_PATH 11737 shlibpath_overrides_runpath=yes 11738 hardcode_into_libs=yes 11739 # ldd complains unless libraries are executable 11740 postinstall_cmds='chmod +x $lib' 11741 ;; 11742 11743 sunos4*) 11744 version_type=sunos 11745 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11746 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11747 shlibpath_var=LD_LIBRARY_PATH 11748 shlibpath_overrides_runpath=yes 11749 if test yes = "$with_gnu_ld"; then 11750 need_lib_prefix=no 11751 fi 11752 need_version=yes 11753 ;; 11754 11755 sysv4 | sysv4.3*) 11756 version_type=linux # correct to gnu/linux during the next big refactor 11757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11758 soname_spec='$libname$release$shared_ext$major' 11759 shlibpath_var=LD_LIBRARY_PATH 11760 case $host_vendor in 11761 sni) 11762 shlibpath_overrides_runpath=no 11763 need_lib_prefix=no 11764 runpath_var=LD_RUN_PATH 11765 ;; 11766 siemens) 11767 need_lib_prefix=no 11768 ;; 11769 motorola) 11770 need_lib_prefix=no 11771 need_version=no 11772 shlibpath_overrides_runpath=no 11773 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11774 ;; 11775 esac 11776 ;; 11777 11778 sysv4*MP*) 11779 if test -d /usr/nec; then 11780 version_type=linux # correct to gnu/linux during the next big refactor 11781 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11782 soname_spec='$libname$shared_ext.$major' 11783 shlibpath_var=LD_LIBRARY_PATH 11784 fi 11785 ;; 11786 11787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11788 version_type=sco 11789 need_lib_prefix=no 11790 need_version=no 11791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11792 soname_spec='$libname$release$shared_ext$major' 11793 shlibpath_var=LD_LIBRARY_PATH 11794 shlibpath_overrides_runpath=yes 11795 hardcode_into_libs=yes 11796 if test yes = "$with_gnu_ld"; then 11797 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11798 else 11799 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11800 case $host_os in 11801 sco3.2v5*) 11802 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11803 ;; 11804 esac 11805 fi 11806 sys_lib_dlsearch_path_spec='/usr/lib' 11807 ;; 11808 11809 tpf*) 11810 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11811 version_type=linux # correct to gnu/linux during the next big refactor 11812 need_lib_prefix=no 11813 need_version=no 11814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11815 shlibpath_var=LD_LIBRARY_PATH 11816 shlibpath_overrides_runpath=no 11817 hardcode_into_libs=yes 11818 ;; 11819 11820 uts4*) 11821 version_type=linux # correct to gnu/linux during the next big refactor 11822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11823 soname_spec='$libname$release$shared_ext$major' 11824 shlibpath_var=LD_LIBRARY_PATH 11825 ;; 11826 11827 *) 11828 dynamic_linker=no 11829 ;; 11830 esac 11831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11832 printf "%s\n" "$dynamic_linker" >&6; } 11833 test no = "$dynamic_linker" && can_build_shared=no 11834 11835 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11836 if test yes = "$GCC"; then 11837 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11838 fi 11839 11840 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11841 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11842 fi 11843 11844 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11845 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11846 fi 11847 11848 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11849 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11850 11851 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11852 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11853 11854 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11855 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11954 printf %s "checking how to hardcode library paths into programs... " >&6; } 11955 hardcode_action= 11956 if test -n "$hardcode_libdir_flag_spec" || 11957 test -n "$runpath_var" || 11958 test yes = "$hardcode_automatic"; then 11959 11960 # We can hardcode non-existent directories. 11961 if test no != "$hardcode_direct" && 11962 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11963 # have to relink, otherwise we might link with an installed library 11964 # when we should be linking with a yet-to-be-installed one 11965 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11966 test no != "$hardcode_minus_L"; then 11967 # Linking always hardcodes the temporary library directory. 11968 hardcode_action=relink 11969 else 11970 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11971 hardcode_action=immediate 11972 fi 11973 else 11974 # We cannot hardcode anything, or else we can only hardcode existing 11975 # directories. 11976 hardcode_action=unsupported 11977 fi 11978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11979 printf "%s\n" "$hardcode_action" >&6; } 11980 11981 if test relink = "$hardcode_action" || 11982 test yes = "$inherit_rpath"; then 11983 # Fast installation is not supported 11984 enable_fast_install=no 11985 elif test yes = "$shlibpath_overrides_runpath" || 11986 test no = "$enable_shared"; then 11987 # Fast installation is not necessary 11988 enable_fast_install=needless 11989 fi 11990 11991 11992 11993 11994 11995 11996 if test yes != "$enable_dlopen"; then 11997 enable_dlopen=unknown 11998 enable_dlopen_self=unknown 11999 enable_dlopen_self_static=unknown 12000 else 12001 lt_cv_dlopen=no 12002 lt_cv_dlopen_libs= 12003 12004 case $host_os in 12005 beos*) 12006 lt_cv_dlopen=load_add_on 12007 lt_cv_dlopen_libs= 12008 lt_cv_dlopen_self=yes 12009 ;; 12010 12011 mingw* | pw32* | cegcc*) 12012 lt_cv_dlopen=LoadLibrary 12013 lt_cv_dlopen_libs= 12014 ;; 12015 12016 cygwin*) 12017 lt_cv_dlopen=dlopen 12018 lt_cv_dlopen_libs= 12019 ;; 12020 12021 darwin*) 12022 # if libdl is installed we need to link against it 12023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12024 printf %s "checking for dlopen in -ldl... " >&6; } 12025 if test ${ac_cv_lib_dl_dlopen+y} 12026 then : 12027 printf %s "(cached) " >&6 12028 else $as_nop 12029 ac_check_lib_save_LIBS=$LIBS 12030 LIBS="-ldl $LIBS" 12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12032 /* end confdefs.h. */ 12033 12034 /* Override any GCC internal prototype to avoid an error. 12035 Use char because int might match the return type of a GCC 12036 builtin and then its argument prototype would still apply. */ 12037 char dlopen (); 12038 int 12039 main (void) 12040 { 12041 return dlopen (); 12042 ; 12043 return 0; 12044 } 12045 _ACEOF 12046 if ac_fn_c_try_link "$LINENO" 12047 then : 12048 ac_cv_lib_dl_dlopen=yes 12049 else $as_nop 12050 ac_cv_lib_dl_dlopen=no 12051 fi 12052 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12053 conftest$ac_exeext conftest.$ac_ext 12054 LIBS=$ac_check_lib_save_LIBS 12055 fi 12056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12057 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12058 if test "x$ac_cv_lib_dl_dlopen" = xyes 12059 then : 12060 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12061 else $as_nop 12062 12063 lt_cv_dlopen=dyld 12064 lt_cv_dlopen_libs= 12065 lt_cv_dlopen_self=yes 12066 12067 fi 12068 12069 ;; 12070 12071 tpf*) 12072 # Don't try to run any link tests for TPF. We know it's impossible 12073 # because TPF is a cross-compiler, and we know how we open DSOs. 12074 lt_cv_dlopen=dlopen 12075 lt_cv_dlopen_libs= 12076 lt_cv_dlopen_self=no 12077 ;; 12078 12079 *) 12080 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12081 if test "x$ac_cv_func_shl_load" = xyes 12082 then : 12083 lt_cv_dlopen=shl_load 12084 else $as_nop 12085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12086 printf %s "checking for shl_load in -ldld... " >&6; } 12087 if test ${ac_cv_lib_dld_shl_load+y} 12088 then : 12089 printf %s "(cached) " >&6 12090 else $as_nop 12091 ac_check_lib_save_LIBS=$LIBS 12092 LIBS="-ldld $LIBS" 12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12094 /* end confdefs.h. */ 12095 12096 /* Override any GCC internal prototype to avoid an error. 12097 Use char because int might match the return type of a GCC 12098 builtin and then its argument prototype would still apply. */ 12099 char shl_load (); 12100 int 12101 main (void) 12102 { 12103 return shl_load (); 12104 ; 12105 return 0; 12106 } 12107 _ACEOF 12108 if ac_fn_c_try_link "$LINENO" 12109 then : 12110 ac_cv_lib_dld_shl_load=yes 12111 else $as_nop 12112 ac_cv_lib_dld_shl_load=no 12113 fi 12114 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12115 conftest$ac_exeext conftest.$ac_ext 12116 LIBS=$ac_check_lib_save_LIBS 12117 fi 12118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12119 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12120 if test "x$ac_cv_lib_dld_shl_load" = xyes 12121 then : 12122 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12123 else $as_nop 12124 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12125 if test "x$ac_cv_func_dlopen" = xyes 12126 then : 12127 lt_cv_dlopen=dlopen 12128 else $as_nop 12129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12130 printf %s "checking for dlopen in -ldl... " >&6; } 12131 if test ${ac_cv_lib_dl_dlopen+y} 12132 then : 12133 printf %s "(cached) " >&6 12134 else $as_nop 12135 ac_check_lib_save_LIBS=$LIBS 12136 LIBS="-ldl $LIBS" 12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12138 /* end confdefs.h. */ 12139 12140 /* Override any GCC internal prototype to avoid an error. 12141 Use char because int might match the return type of a GCC 12142 builtin and then its argument prototype would still apply. */ 12143 char dlopen (); 12144 int 12145 main (void) 12146 { 12147 return dlopen (); 12148 ; 12149 return 0; 12150 } 12151 _ACEOF 12152 if ac_fn_c_try_link "$LINENO" 12153 then : 12154 ac_cv_lib_dl_dlopen=yes 12155 else $as_nop 12156 ac_cv_lib_dl_dlopen=no 12157 fi 12158 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12159 conftest$ac_exeext conftest.$ac_ext 12160 LIBS=$ac_check_lib_save_LIBS 12161 fi 12162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12163 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12164 if test "x$ac_cv_lib_dl_dlopen" = xyes 12165 then : 12166 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12167 else $as_nop 12168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12169 printf %s "checking for dlopen in -lsvld... " >&6; } 12170 if test ${ac_cv_lib_svld_dlopen+y} 12171 then : 12172 printf %s "(cached) " >&6 12173 else $as_nop 12174 ac_check_lib_save_LIBS=$LIBS 12175 LIBS="-lsvld $LIBS" 12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12177 /* end confdefs.h. */ 12178 12179 /* Override any GCC internal prototype to avoid an error. 12180 Use char because int might match the return type of a GCC 12181 builtin and then its argument prototype would still apply. */ 12182 char dlopen (); 12183 int 12184 main (void) 12185 { 12186 return dlopen (); 12187 ; 12188 return 0; 12189 } 12190 _ACEOF 12191 if ac_fn_c_try_link "$LINENO" 12192 then : 12193 ac_cv_lib_svld_dlopen=yes 12194 else $as_nop 12195 ac_cv_lib_svld_dlopen=no 12196 fi 12197 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12198 conftest$ac_exeext conftest.$ac_ext 12199 LIBS=$ac_check_lib_save_LIBS 12200 fi 12201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12202 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12203 if test "x$ac_cv_lib_svld_dlopen" = xyes 12204 then : 12205 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12206 else $as_nop 12207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12208 printf %s "checking for dld_link in -ldld... " >&6; } 12209 if test ${ac_cv_lib_dld_dld_link+y} 12210 then : 12211 printf %s "(cached) " >&6 12212 else $as_nop 12213 ac_check_lib_save_LIBS=$LIBS 12214 LIBS="-ldld $LIBS" 12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12216 /* end confdefs.h. */ 12217 12218 /* Override any GCC internal prototype to avoid an error. 12219 Use char because int might match the return type of a GCC 12220 builtin and then its argument prototype would still apply. */ 12221 char dld_link (); 12222 int 12223 main (void) 12224 { 12225 return dld_link (); 12226 ; 12227 return 0; 12228 } 12229 _ACEOF 12230 if ac_fn_c_try_link "$LINENO" 12231 then : 12232 ac_cv_lib_dld_dld_link=yes 12233 else $as_nop 12234 ac_cv_lib_dld_dld_link=no 12235 fi 12236 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12237 conftest$ac_exeext conftest.$ac_ext 12238 LIBS=$ac_check_lib_save_LIBS 12239 fi 12240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12241 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12242 if test "x$ac_cv_lib_dld_dld_link" = xyes 12243 then : 12244 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12245 fi 12246 12247 12248 fi 12249 12250 12251 fi 12252 12253 12254 fi 12255 12256 12257 fi 12258 12259 12260 fi 12261 12262 ;; 12263 esac 12264 12265 if test no = "$lt_cv_dlopen"; then 12266 enable_dlopen=no 12267 else 12268 enable_dlopen=yes 12269 fi 12270 12271 case $lt_cv_dlopen in 12272 dlopen) 12273 save_CPPFLAGS=$CPPFLAGS 12274 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12275 12276 save_LDFLAGS=$LDFLAGS 12277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12278 12279 save_LIBS=$LIBS 12280 LIBS="$lt_cv_dlopen_libs $LIBS" 12281 12282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12283 printf %s "checking whether a program can dlopen itself... " >&6; } 12284 if test ${lt_cv_dlopen_self+y} 12285 then : 12286 printf %s "(cached) " >&6 12287 else $as_nop 12288 if test yes = "$cross_compiling"; then : 12289 lt_cv_dlopen_self=cross 12290 else 12291 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12292 lt_status=$lt_dlunknown 12293 cat > conftest.$ac_ext <<_LT_EOF 12294 #line $LINENO "configure" 12295 #include "confdefs.h" 12296 12297 #if HAVE_DLFCN_H 12298 #include <dlfcn.h> 12299 #endif 12300 12301 #include <stdio.h> 12302 12303 #ifdef RTLD_GLOBAL 12304 # define LT_DLGLOBAL RTLD_GLOBAL 12305 #else 12306 # ifdef DL_GLOBAL 12307 # define LT_DLGLOBAL DL_GLOBAL 12308 # else 12309 # define LT_DLGLOBAL 0 12310 # endif 12311 #endif 12312 12313 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12314 find out it does not work in some platform. */ 12315 #ifndef LT_DLLAZY_OR_NOW 12316 # ifdef RTLD_LAZY 12317 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12318 # else 12319 # ifdef DL_LAZY 12320 # define LT_DLLAZY_OR_NOW DL_LAZY 12321 # else 12322 # ifdef RTLD_NOW 12323 # define LT_DLLAZY_OR_NOW RTLD_NOW 12324 # else 12325 # ifdef DL_NOW 12326 # define LT_DLLAZY_OR_NOW DL_NOW 12327 # else 12328 # define LT_DLLAZY_OR_NOW 0 12329 # endif 12330 # endif 12331 # endif 12332 # endif 12333 #endif 12334 12335 /* When -fvisibility=hidden is used, assume the code has been annotated 12336 correspondingly for the symbols needed. */ 12337 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12338 int fnord () __attribute__((visibility("default"))); 12339 #endif 12340 12341 int fnord () { return 42; } 12342 int main () 12343 { 12344 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12345 int status = $lt_dlunknown; 12346 12347 if (self) 12348 { 12349 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12350 else 12351 { 12352 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12353 else puts (dlerror ()); 12354 } 12355 /* dlclose (self); */ 12356 } 12357 else 12358 puts (dlerror ()); 12359 12360 return status; 12361 } 12362 _LT_EOF 12363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12364 (eval $ac_link) 2>&5 12365 ac_status=$? 12366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12367 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12368 (./conftest; exit; ) >&5 2>/dev/null 12369 lt_status=$? 12370 case x$lt_status in 12371 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12372 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12373 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12374 esac 12375 else : 12376 # compilation failed 12377 lt_cv_dlopen_self=no 12378 fi 12379 fi 12380 rm -fr conftest* 12381 12382 12383 fi 12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12385 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12386 12387 if test yes = "$lt_cv_dlopen_self"; then 12388 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12390 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12391 if test ${lt_cv_dlopen_self_static+y} 12392 then : 12393 printf %s "(cached) " >&6 12394 else $as_nop 12395 if test yes = "$cross_compiling"; then : 12396 lt_cv_dlopen_self_static=cross 12397 else 12398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12399 lt_status=$lt_dlunknown 12400 cat > conftest.$ac_ext <<_LT_EOF 12401 #line $LINENO "configure" 12402 #include "confdefs.h" 12403 12404 #if HAVE_DLFCN_H 12405 #include <dlfcn.h> 12406 #endif 12407 12408 #include <stdio.h> 12409 12410 #ifdef RTLD_GLOBAL 12411 # define LT_DLGLOBAL RTLD_GLOBAL 12412 #else 12413 # ifdef DL_GLOBAL 12414 # define LT_DLGLOBAL DL_GLOBAL 12415 # else 12416 # define LT_DLGLOBAL 0 12417 # endif 12418 #endif 12419 12420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12421 find out it does not work in some platform. */ 12422 #ifndef LT_DLLAZY_OR_NOW 12423 # ifdef RTLD_LAZY 12424 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12425 # else 12426 # ifdef DL_LAZY 12427 # define LT_DLLAZY_OR_NOW DL_LAZY 12428 # else 12429 # ifdef RTLD_NOW 12430 # define LT_DLLAZY_OR_NOW RTLD_NOW 12431 # else 12432 # ifdef DL_NOW 12433 # define LT_DLLAZY_OR_NOW DL_NOW 12434 # else 12435 # define LT_DLLAZY_OR_NOW 0 12436 # endif 12437 # endif 12438 # endif 12439 # endif 12440 #endif 12441 12442 /* When -fvisibility=hidden is used, assume the code has been annotated 12443 correspondingly for the symbols needed. */ 12444 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12445 int fnord () __attribute__((visibility("default"))); 12446 #endif 12447 12448 int fnord () { return 42; } 12449 int main () 12450 { 12451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12452 int status = $lt_dlunknown; 12453 12454 if (self) 12455 { 12456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12457 else 12458 { 12459 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12460 else puts (dlerror ()); 12461 } 12462 /* dlclose (self); */ 12463 } 12464 else 12465 puts (dlerror ()); 12466 12467 return status; 12468 } 12469 _LT_EOF 12470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12471 (eval $ac_link) 2>&5 12472 ac_status=$? 12473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12474 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12475 (./conftest; exit; ) >&5 2>/dev/null 12476 lt_status=$? 12477 case x$lt_status in 12478 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12479 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12480 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12481 esac 12482 else : 12483 # compilation failed 12484 lt_cv_dlopen_self_static=no 12485 fi 12486 fi 12487 rm -fr conftest* 12488 12489 12490 fi 12491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12492 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12493 fi 12494 12495 CPPFLAGS=$save_CPPFLAGS 12496 LDFLAGS=$save_LDFLAGS 12497 LIBS=$save_LIBS 12498 ;; 12499 esac 12500 12501 case $lt_cv_dlopen_self in 12502 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12503 *) enable_dlopen_self=unknown ;; 12504 esac 12505 12506 case $lt_cv_dlopen_self_static in 12507 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12508 *) enable_dlopen_self_static=unknown ;; 12509 esac 12510 fi 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 striplib= 12529 old_striplib= 12530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12531 printf %s "checking whether stripping libraries is possible... " >&6; } 12532 if test -z "$STRIP"; then 12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12534 printf "%s\n" "no" >&6; } 12535 else 12536 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12537 old_striplib="$STRIP --strip-debug" 12538 striplib="$STRIP --strip-unneeded" 12539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12540 printf "%s\n" "yes" >&6; } 12541 else 12542 case $host_os in 12543 darwin*) 12544 # FIXME - insert some real tests, host_os isn't really good enough 12545 striplib="$STRIP -x" 12546 old_striplib="$STRIP -S" 12547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12548 printf "%s\n" "yes" >&6; } 12549 ;; 12550 freebsd*) 12551 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12552 old_striplib="$STRIP --strip-debug" 12553 striplib="$STRIP --strip-unneeded" 12554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12555 printf "%s\n" "yes" >&6; } 12556 else 12557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12558 printf "%s\n" "no" >&6; } 12559 fi 12560 ;; 12561 *) 12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12563 printf "%s\n" "no" >&6; } 12564 ;; 12565 esac 12566 fi 12567 fi 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 # Report what library types will actually be built 12581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12582 printf %s "checking if libtool supports shared libraries... " >&6; } 12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12584 printf "%s\n" "$can_build_shared" >&6; } 12585 12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12587 printf %s "checking whether to build shared libraries... " >&6; } 12588 test no = "$can_build_shared" && enable_shared=no 12589 12590 # On AIX, shared libraries and static libraries use the same namespace, and 12591 # are all built from PIC. 12592 case $host_os in 12593 aix3*) 12594 test yes = "$enable_shared" && enable_static=no 12595 if test -n "$RANLIB"; then 12596 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12597 postinstall_cmds='$RANLIB $lib' 12598 fi 12599 ;; 12600 12601 aix[4-9]*) 12602 if test ia64 != "$host_cpu"; then 12603 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12604 yes,aix,yes) ;; # shared object as lib.so file only 12605 yes,svr4,*) ;; # shared object as lib.so archive member only 12606 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12607 esac 12608 fi 12609 ;; 12610 esac 12611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12612 printf "%s\n" "$enable_shared" >&6; } 12613 12614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12615 printf %s "checking whether to build static libraries... " >&6; } 12616 # Make sure either enable_shared or enable_static is yes. 12617 test yes = "$enable_shared" || enable_static=yes 12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12619 printf "%s\n" "$enable_static" >&6; } 12620 12621 12622 12623 12624 fi 12625 ac_ext=c 12626 ac_cpp='$CPP $CPPFLAGS' 12627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12629 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12630 12631 CC=$lt_save_CC 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 ac_config_commands="$ac_config_commands libtool" 12648 12649 12650 12651 12652 # Only expand once: 12653 12654 12655 12656 # Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12670 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12671 if test ${ac_cv_c_undeclared_builtin_options+y} 12672 then : 12673 printf %s "(cached) " >&6 12674 else $as_nop 12675 ac_save_CFLAGS=$CFLAGS 12676 ac_cv_c_undeclared_builtin_options='cannot detect' 12677 for ac_arg in '' -fno-builtin; do 12678 CFLAGS="$ac_save_CFLAGS $ac_arg" 12679 # This test program should *not* compile successfully. 12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12681 /* end confdefs.h. */ 12682 12683 int 12684 main (void) 12685 { 12686 (void) strchr; 12687 ; 12688 return 0; 12689 } 12690 _ACEOF 12691 if ac_fn_c_try_compile "$LINENO" 12692 then : 12693 12694 else $as_nop 12695 # This test program should compile successfully. 12696 # No library function is consistently available on 12697 # freestanding implementations, so test against a dummy 12698 # declaration. Include always-available headers on the 12699 # off chance that they somehow elicit warnings. 12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12701 /* end confdefs.h. */ 12702 #include <float.h> 12703 #include <limits.h> 12704 #include <stdarg.h> 12705 #include <stddef.h> 12706 extern void ac_decl (int, char *); 12707 12708 int 12709 main (void) 12710 { 12711 (void) ac_decl (0, (char *) 0); 12712 (void) ac_decl; 12713 12714 ; 12715 return 0; 12716 } 12717 _ACEOF 12718 if ac_fn_c_try_compile "$LINENO" 12719 then : 12720 if test x"$ac_arg" = x 12721 then : 12722 ac_cv_c_undeclared_builtin_options='none needed' 12723 else $as_nop 12724 ac_cv_c_undeclared_builtin_options=$ac_arg 12725 fi 12726 break 12727 fi 12728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12729 fi 12730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12731 done 12732 CFLAGS=$ac_save_CFLAGS 12733 12734 fi 12735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12736 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12737 case $ac_cv_c_undeclared_builtin_options in #( 12738 'cannot detect') : 12739 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12740 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12741 as_fn_error $? "cannot make $CC report undeclared builtins 12742 See \`config.log' for more details" "$LINENO" 5; } ;; #( 12743 'none needed') : 12744 ac_c_undeclared_builtin_options='' ;; #( 12745 *) : 12746 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12747 esac 12748 12749 12750 12751 12752 12753 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12754 if test "x$ac_cv_have_decl___clang__" = xyes 12755 then : 12756 CLANGCC="yes" 12757 else $as_nop 12758 CLANGCC="no" 12759 fi 12760 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12761 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12762 then : 12763 INTELCC="yes" 12764 else $as_nop 12765 INTELCC="no" 12766 fi 12767 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12768 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12769 then : 12770 SUNCC="yes" 12771 else $as_nop 12772 SUNCC="no" 12773 fi 12774 12775 12776 12777 12778 12779 12780 12781 12782 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12783 if test -n "$ac_tool_prefix"; then 12784 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12785 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12787 printf %s "checking for $ac_word... " >&6; } 12788 if test ${ac_cv_path_PKG_CONFIG+y} 12789 then : 12790 printf %s "(cached) " >&6 12791 else $as_nop 12792 case $PKG_CONFIG in 12793 [\\/]* | ?:[\\/]*) 12794 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12795 ;; 12796 *) 12797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12798 for as_dir in $PATH 12799 do 12800 IFS=$as_save_IFS 12801 case $as_dir in #((( 12802 '') as_dir=./ ;; 12803 */) ;; 12804 *) as_dir=$as_dir/ ;; 12805 esac 12806 for ac_exec_ext in '' $ac_executable_extensions; do 12807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12808 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12810 break 2 12811 fi 12812 done 12813 done 12814 IFS=$as_save_IFS 12815 12816 ;; 12817 esac 12818 fi 12819 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12820 if test -n "$PKG_CONFIG"; then 12821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12822 printf "%s\n" "$PKG_CONFIG" >&6; } 12823 else 12824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12825 printf "%s\n" "no" >&6; } 12826 fi 12827 12828 12829 fi 12830 if test -z "$ac_cv_path_PKG_CONFIG"; then 12831 ac_pt_PKG_CONFIG=$PKG_CONFIG 12832 # Extract the first word of "pkg-config", so it can be a program name with args. 12833 set dummy pkg-config; ac_word=$2 12834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12835 printf %s "checking for $ac_word... " >&6; } 12836 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12837 then : 12838 printf %s "(cached) " >&6 12839 else $as_nop 12840 case $ac_pt_PKG_CONFIG in 12841 [\\/]* | ?:[\\/]*) 12842 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12843 ;; 12844 *) 12845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12846 for as_dir in $PATH 12847 do 12848 IFS=$as_save_IFS 12849 case $as_dir in #((( 12850 '') as_dir=./ ;; 12851 */) ;; 12852 *) as_dir=$as_dir/ ;; 12853 esac 12854 for ac_exec_ext in '' $ac_executable_extensions; do 12855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12856 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12858 break 2 12859 fi 12860 done 12861 done 12862 IFS=$as_save_IFS 12863 12864 ;; 12865 esac 12866 fi 12867 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12868 if test -n "$ac_pt_PKG_CONFIG"; then 12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12870 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12871 else 12872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12873 printf "%s\n" "no" >&6; } 12874 fi 12875 12876 if test "x$ac_pt_PKG_CONFIG" = x; then 12877 PKG_CONFIG="" 12878 else 12879 case $cross_compiling:$ac_tool_warned in 12880 yes:) 12881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12882 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12883 ac_tool_warned=yes ;; 12884 esac 12885 PKG_CONFIG=$ac_pt_PKG_CONFIG 12886 fi 12887 else 12888 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12889 fi 12890 12891 fi 12892 if test -n "$PKG_CONFIG"; then 12893 _pkg_min_version=0.9.0 12894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12895 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12896 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12898 printf "%s\n" "yes" >&6; } 12899 else 12900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12901 printf "%s\n" "no" >&6; } 12902 PKG_CONFIG="" 12903 fi 12904 fi 12905 12906 12907 12908 12909 12910 # Check whether --enable-selective-werror was given. 12911 if test ${enable_selective_werror+y} 12912 then : 12913 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12914 else $as_nop 12915 SELECTIVE_WERROR=yes 12916 fi 12917 12918 12919 12920 12921 12922 # -v is too short to test reliably with XORG_TESTSET_CFLAG 12923 if test "x$SUNCC" = "xyes"; then 12924 BASE_CFLAGS="-v" 12925 else 12926 BASE_CFLAGS="" 12927 fi 12928 12929 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 xorg_testset_save_CFLAGS="$CFLAGS" 12944 12945 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12948 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12949 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12950 then : 12951 printf %s "(cached) " >&6 12952 else $as_nop 12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12954 /* end confdefs.h. */ 12955 int i; 12956 _ACEOF 12957 if ac_fn_c_try_compile "$LINENO" 12958 then : 12959 xorg_cv_cc_flag_unknown_warning_option=yes 12960 else $as_nop 12961 xorg_cv_cc_flag_unknown_warning_option=no 12962 fi 12963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12964 fi 12965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12966 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12968 CFLAGS="$xorg_testset_save_CFLAGS" 12969 fi 12970 12971 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12974 fi 12975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12977 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12978 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 12979 then : 12980 printf %s "(cached) " >&6 12981 else $as_nop 12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12983 /* end confdefs.h. */ 12984 int i; 12985 _ACEOF 12986 if ac_fn_c_try_compile "$LINENO" 12987 then : 12988 xorg_cv_cc_flag_unused_command_line_argument=yes 12989 else $as_nop 12990 xorg_cv_cc_flag_unused_command_line_argument=no 12991 fi 12992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12993 fi 12994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12995 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12997 CFLAGS="$xorg_testset_save_CFLAGS" 12998 fi 12999 13000 found="no" 13001 13002 if test $found = "no" ; then 13003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13005 fi 13006 13007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13009 fi 13010 13011 CFLAGS="$CFLAGS -Wall" 13012 13013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13014 printf %s "checking if $CC supports -Wall... " >&6; } 13015 cacheid=xorg_cv_cc_flag__Wall 13016 if eval test \${$cacheid+y} 13017 then : 13018 printf %s "(cached) " >&6 13019 else $as_nop 13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13021 /* end confdefs.h. */ 13022 int i; 13023 int 13024 main (void) 13025 { 13026 13027 ; 13028 return 0; 13029 } 13030 _ACEOF 13031 if ac_fn_c_try_link "$LINENO" 13032 then : 13033 eval $cacheid=yes 13034 else $as_nop 13035 eval $cacheid=no 13036 fi 13037 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13038 conftest$ac_exeext conftest.$ac_ext 13039 fi 13040 13041 13042 CFLAGS="$xorg_testset_save_CFLAGS" 13043 13044 eval supported=\$$cacheid 13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13046 printf "%s\n" "$supported" >&6; } 13047 if test "$supported" = "yes" ; then 13048 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13049 found="yes" 13050 fi 13051 fi 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 xorg_testset_save_CFLAGS="$CFLAGS" 13068 13069 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13072 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13073 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13074 then : 13075 printf %s "(cached) " >&6 13076 else $as_nop 13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13078 /* end confdefs.h. */ 13079 int i; 13080 _ACEOF 13081 if ac_fn_c_try_compile "$LINENO" 13082 then : 13083 xorg_cv_cc_flag_unknown_warning_option=yes 13084 else $as_nop 13085 xorg_cv_cc_flag_unknown_warning_option=no 13086 fi 13087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13088 fi 13089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13090 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13092 CFLAGS="$xorg_testset_save_CFLAGS" 13093 fi 13094 13095 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13098 fi 13099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13101 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13102 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13103 then : 13104 printf %s "(cached) " >&6 13105 else $as_nop 13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13107 /* end confdefs.h. */ 13108 int i; 13109 _ACEOF 13110 if ac_fn_c_try_compile "$LINENO" 13111 then : 13112 xorg_cv_cc_flag_unused_command_line_argument=yes 13113 else $as_nop 13114 xorg_cv_cc_flag_unused_command_line_argument=no 13115 fi 13116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13117 fi 13118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13119 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13121 CFLAGS="$xorg_testset_save_CFLAGS" 13122 fi 13123 13124 found="no" 13125 13126 if test $found = "no" ; then 13127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13129 fi 13130 13131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13133 fi 13134 13135 CFLAGS="$CFLAGS -Wpointer-arith" 13136 13137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13138 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13139 cacheid=xorg_cv_cc_flag__Wpointer_arith 13140 if eval test \${$cacheid+y} 13141 then : 13142 printf %s "(cached) " >&6 13143 else $as_nop 13144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13145 /* end confdefs.h. */ 13146 int i; 13147 int 13148 main (void) 13149 { 13150 13151 ; 13152 return 0; 13153 } 13154 _ACEOF 13155 if ac_fn_c_try_link "$LINENO" 13156 then : 13157 eval $cacheid=yes 13158 else $as_nop 13159 eval $cacheid=no 13160 fi 13161 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13162 conftest$ac_exeext conftest.$ac_ext 13163 fi 13164 13165 13166 CFLAGS="$xorg_testset_save_CFLAGS" 13167 13168 eval supported=\$$cacheid 13169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13170 printf "%s\n" "$supported" >&6; } 13171 if test "$supported" = "yes" ; then 13172 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13173 found="yes" 13174 fi 13175 fi 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 xorg_testset_save_CFLAGS="$CFLAGS" 13192 13193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13196 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13197 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13198 then : 13199 printf %s "(cached) " >&6 13200 else $as_nop 13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13202 /* end confdefs.h. */ 13203 int i; 13204 _ACEOF 13205 if ac_fn_c_try_compile "$LINENO" 13206 then : 13207 xorg_cv_cc_flag_unknown_warning_option=yes 13208 else $as_nop 13209 xorg_cv_cc_flag_unknown_warning_option=no 13210 fi 13211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13212 fi 13213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13214 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13216 CFLAGS="$xorg_testset_save_CFLAGS" 13217 fi 13218 13219 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13222 fi 13223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13225 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13226 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13227 then : 13228 printf %s "(cached) " >&6 13229 else $as_nop 13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13231 /* end confdefs.h. */ 13232 int i; 13233 _ACEOF 13234 if ac_fn_c_try_compile "$LINENO" 13235 then : 13236 xorg_cv_cc_flag_unused_command_line_argument=yes 13237 else $as_nop 13238 xorg_cv_cc_flag_unused_command_line_argument=no 13239 fi 13240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13241 fi 13242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13243 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13245 CFLAGS="$xorg_testset_save_CFLAGS" 13246 fi 13247 13248 found="no" 13249 13250 if test $found = "no" ; then 13251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13253 fi 13254 13255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13257 fi 13258 13259 CFLAGS="$CFLAGS -Wmissing-declarations" 13260 13261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13262 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13263 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13264 if eval test \${$cacheid+y} 13265 then : 13266 printf %s "(cached) " >&6 13267 else $as_nop 13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13269 /* end confdefs.h. */ 13270 int i; 13271 int 13272 main (void) 13273 { 13274 13275 ; 13276 return 0; 13277 } 13278 _ACEOF 13279 if ac_fn_c_try_link "$LINENO" 13280 then : 13281 eval $cacheid=yes 13282 else $as_nop 13283 eval $cacheid=no 13284 fi 13285 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13286 conftest$ac_exeext conftest.$ac_ext 13287 fi 13288 13289 13290 CFLAGS="$xorg_testset_save_CFLAGS" 13291 13292 eval supported=\$$cacheid 13293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13294 printf "%s\n" "$supported" >&6; } 13295 if test "$supported" = "yes" ; then 13296 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13297 found="yes" 13298 fi 13299 fi 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 xorg_testset_save_CFLAGS="$CFLAGS" 13316 13317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13320 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13321 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13322 then : 13323 printf %s "(cached) " >&6 13324 else $as_nop 13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13326 /* end confdefs.h. */ 13327 int i; 13328 _ACEOF 13329 if ac_fn_c_try_compile "$LINENO" 13330 then : 13331 xorg_cv_cc_flag_unknown_warning_option=yes 13332 else $as_nop 13333 xorg_cv_cc_flag_unknown_warning_option=no 13334 fi 13335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13336 fi 13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13338 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13339 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13340 CFLAGS="$xorg_testset_save_CFLAGS" 13341 fi 13342 13343 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13346 fi 13347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13349 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13350 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13351 then : 13352 printf %s "(cached) " >&6 13353 else $as_nop 13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13355 /* end confdefs.h. */ 13356 int i; 13357 _ACEOF 13358 if ac_fn_c_try_compile "$LINENO" 13359 then : 13360 xorg_cv_cc_flag_unused_command_line_argument=yes 13361 else $as_nop 13362 xorg_cv_cc_flag_unused_command_line_argument=no 13363 fi 13364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13365 fi 13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13367 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13369 CFLAGS="$xorg_testset_save_CFLAGS" 13370 fi 13371 13372 found="no" 13373 13374 if test $found = "no" ; then 13375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13377 fi 13378 13379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13381 fi 13382 13383 CFLAGS="$CFLAGS -Wformat=2" 13384 13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13386 printf %s "checking if $CC supports -Wformat=2... " >&6; } 13387 cacheid=xorg_cv_cc_flag__Wformat_2 13388 if eval test \${$cacheid+y} 13389 then : 13390 printf %s "(cached) " >&6 13391 else $as_nop 13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13393 /* end confdefs.h. */ 13394 int i; 13395 int 13396 main (void) 13397 { 13398 13399 ; 13400 return 0; 13401 } 13402 _ACEOF 13403 if ac_fn_c_try_link "$LINENO" 13404 then : 13405 eval $cacheid=yes 13406 else $as_nop 13407 eval $cacheid=no 13408 fi 13409 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13410 conftest$ac_exeext conftest.$ac_ext 13411 fi 13412 13413 13414 CFLAGS="$xorg_testset_save_CFLAGS" 13415 13416 eval supported=\$$cacheid 13417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13418 printf "%s\n" "$supported" >&6; } 13419 if test "$supported" = "yes" ; then 13420 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13421 found="yes" 13422 fi 13423 fi 13424 13425 if test $found = "no" ; then 13426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13428 fi 13429 13430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13432 fi 13433 13434 CFLAGS="$CFLAGS -Wformat" 13435 13436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13437 printf %s "checking if $CC supports -Wformat... " >&6; } 13438 cacheid=xorg_cv_cc_flag__Wformat 13439 if eval test \${$cacheid+y} 13440 then : 13441 printf %s "(cached) " >&6 13442 else $as_nop 13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13444 /* end confdefs.h. */ 13445 int i; 13446 int 13447 main (void) 13448 { 13449 13450 ; 13451 return 0; 13452 } 13453 _ACEOF 13454 if ac_fn_c_try_link "$LINENO" 13455 then : 13456 eval $cacheid=yes 13457 else $as_nop 13458 eval $cacheid=no 13459 fi 13460 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13461 conftest$ac_exeext conftest.$ac_ext 13462 fi 13463 13464 13465 CFLAGS="$xorg_testset_save_CFLAGS" 13466 13467 eval supported=\$$cacheid 13468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13469 printf "%s\n" "$supported" >&6; } 13470 if test "$supported" = "yes" ; then 13471 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13472 found="yes" 13473 fi 13474 fi 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 xorg_testset_save_CFLAGS="$CFLAGS" 13493 13494 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13497 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13498 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13499 then : 13500 printf %s "(cached) " >&6 13501 else $as_nop 13502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13503 /* end confdefs.h. */ 13504 int i; 13505 _ACEOF 13506 if ac_fn_c_try_compile "$LINENO" 13507 then : 13508 xorg_cv_cc_flag_unknown_warning_option=yes 13509 else $as_nop 13510 xorg_cv_cc_flag_unknown_warning_option=no 13511 fi 13512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13513 fi 13514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13515 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13517 CFLAGS="$xorg_testset_save_CFLAGS" 13518 fi 13519 13520 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13522 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13523 fi 13524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13526 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13527 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13528 then : 13529 printf %s "(cached) " >&6 13530 else $as_nop 13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13532 /* end confdefs.h. */ 13533 int i; 13534 _ACEOF 13535 if ac_fn_c_try_compile "$LINENO" 13536 then : 13537 xorg_cv_cc_flag_unused_command_line_argument=yes 13538 else $as_nop 13539 xorg_cv_cc_flag_unused_command_line_argument=no 13540 fi 13541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13542 fi 13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13544 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13546 CFLAGS="$xorg_testset_save_CFLAGS" 13547 fi 13548 13549 found="no" 13550 13551 if test $found = "no" ; then 13552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13554 fi 13555 13556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13558 fi 13559 13560 CFLAGS="$CFLAGS -Wstrict-prototypes" 13561 13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13563 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13564 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13565 if eval test \${$cacheid+y} 13566 then : 13567 printf %s "(cached) " >&6 13568 else $as_nop 13569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13570 /* end confdefs.h. */ 13571 int i; 13572 int 13573 main (void) 13574 { 13575 13576 ; 13577 return 0; 13578 } 13579 _ACEOF 13580 if ac_fn_c_try_link "$LINENO" 13581 then : 13582 eval $cacheid=yes 13583 else $as_nop 13584 eval $cacheid=no 13585 fi 13586 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13587 conftest$ac_exeext conftest.$ac_ext 13588 fi 13589 13590 13591 CFLAGS="$xorg_testset_save_CFLAGS" 13592 13593 eval supported=\$$cacheid 13594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13595 printf "%s\n" "$supported" >&6; } 13596 if test "$supported" = "yes" ; then 13597 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13598 found="yes" 13599 fi 13600 fi 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 xorg_testset_save_CFLAGS="$CFLAGS" 13617 13618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13621 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13622 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13623 then : 13624 printf %s "(cached) " >&6 13625 else $as_nop 13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13627 /* end confdefs.h. */ 13628 int i; 13629 _ACEOF 13630 if ac_fn_c_try_compile "$LINENO" 13631 then : 13632 xorg_cv_cc_flag_unknown_warning_option=yes 13633 else $as_nop 13634 xorg_cv_cc_flag_unknown_warning_option=no 13635 fi 13636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13637 fi 13638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13639 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13640 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13641 CFLAGS="$xorg_testset_save_CFLAGS" 13642 fi 13643 13644 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13647 fi 13648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13650 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13651 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13652 then : 13653 printf %s "(cached) " >&6 13654 else $as_nop 13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13656 /* end confdefs.h. */ 13657 int i; 13658 _ACEOF 13659 if ac_fn_c_try_compile "$LINENO" 13660 then : 13661 xorg_cv_cc_flag_unused_command_line_argument=yes 13662 else $as_nop 13663 xorg_cv_cc_flag_unused_command_line_argument=no 13664 fi 13665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13666 fi 13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13668 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13670 CFLAGS="$xorg_testset_save_CFLAGS" 13671 fi 13672 13673 found="no" 13674 13675 if test $found = "no" ; then 13676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13678 fi 13679 13680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13682 fi 13683 13684 CFLAGS="$CFLAGS -Wmissing-prototypes" 13685 13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13687 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13688 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13689 if eval test \${$cacheid+y} 13690 then : 13691 printf %s "(cached) " >&6 13692 else $as_nop 13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13694 /* end confdefs.h. */ 13695 int i; 13696 int 13697 main (void) 13698 { 13699 13700 ; 13701 return 0; 13702 } 13703 _ACEOF 13704 if ac_fn_c_try_link "$LINENO" 13705 then : 13706 eval $cacheid=yes 13707 else $as_nop 13708 eval $cacheid=no 13709 fi 13710 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13711 conftest$ac_exeext conftest.$ac_ext 13712 fi 13713 13714 13715 CFLAGS="$xorg_testset_save_CFLAGS" 13716 13717 eval supported=\$$cacheid 13718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13719 printf "%s\n" "$supported" >&6; } 13720 if test "$supported" = "yes" ; then 13721 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13722 found="yes" 13723 fi 13724 fi 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 xorg_testset_save_CFLAGS="$CFLAGS" 13741 13742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13745 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13746 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13747 then : 13748 printf %s "(cached) " >&6 13749 else $as_nop 13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13751 /* end confdefs.h. */ 13752 int i; 13753 _ACEOF 13754 if ac_fn_c_try_compile "$LINENO" 13755 then : 13756 xorg_cv_cc_flag_unknown_warning_option=yes 13757 else $as_nop 13758 xorg_cv_cc_flag_unknown_warning_option=no 13759 fi 13760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13761 fi 13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13763 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13765 CFLAGS="$xorg_testset_save_CFLAGS" 13766 fi 13767 13768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13771 fi 13772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13774 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13775 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13776 then : 13777 printf %s "(cached) " >&6 13778 else $as_nop 13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13780 /* end confdefs.h. */ 13781 int i; 13782 _ACEOF 13783 if ac_fn_c_try_compile "$LINENO" 13784 then : 13785 xorg_cv_cc_flag_unused_command_line_argument=yes 13786 else $as_nop 13787 xorg_cv_cc_flag_unused_command_line_argument=no 13788 fi 13789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13790 fi 13791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13792 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13794 CFLAGS="$xorg_testset_save_CFLAGS" 13795 fi 13796 13797 found="no" 13798 13799 if test $found = "no" ; then 13800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13802 fi 13803 13804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13806 fi 13807 13808 CFLAGS="$CFLAGS -Wnested-externs" 13809 13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13811 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13812 cacheid=xorg_cv_cc_flag__Wnested_externs 13813 if eval test \${$cacheid+y} 13814 then : 13815 printf %s "(cached) " >&6 13816 else $as_nop 13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13818 /* end confdefs.h. */ 13819 int i; 13820 int 13821 main (void) 13822 { 13823 13824 ; 13825 return 0; 13826 } 13827 _ACEOF 13828 if ac_fn_c_try_link "$LINENO" 13829 then : 13830 eval $cacheid=yes 13831 else $as_nop 13832 eval $cacheid=no 13833 fi 13834 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13835 conftest$ac_exeext conftest.$ac_ext 13836 fi 13837 13838 13839 CFLAGS="$xorg_testset_save_CFLAGS" 13840 13841 eval supported=\$$cacheid 13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13843 printf "%s\n" "$supported" >&6; } 13844 if test "$supported" = "yes" ; then 13845 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13846 found="yes" 13847 fi 13848 fi 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 xorg_testset_save_CFLAGS="$CFLAGS" 13865 13866 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13869 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13870 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13871 then : 13872 printf %s "(cached) " >&6 13873 else $as_nop 13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13875 /* end confdefs.h. */ 13876 int i; 13877 _ACEOF 13878 if ac_fn_c_try_compile "$LINENO" 13879 then : 13880 xorg_cv_cc_flag_unknown_warning_option=yes 13881 else $as_nop 13882 xorg_cv_cc_flag_unknown_warning_option=no 13883 fi 13884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13885 fi 13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13887 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13889 CFLAGS="$xorg_testset_save_CFLAGS" 13890 fi 13891 13892 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13895 fi 13896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13898 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13899 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13900 then : 13901 printf %s "(cached) " >&6 13902 else $as_nop 13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13904 /* end confdefs.h. */ 13905 int i; 13906 _ACEOF 13907 if ac_fn_c_try_compile "$LINENO" 13908 then : 13909 xorg_cv_cc_flag_unused_command_line_argument=yes 13910 else $as_nop 13911 xorg_cv_cc_flag_unused_command_line_argument=no 13912 fi 13913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13914 fi 13915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13916 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13918 CFLAGS="$xorg_testset_save_CFLAGS" 13919 fi 13920 13921 found="no" 13922 13923 if test $found = "no" ; then 13924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13926 fi 13927 13928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13930 fi 13931 13932 CFLAGS="$CFLAGS -Wbad-function-cast" 13933 13934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13935 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 13936 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13937 if eval test \${$cacheid+y} 13938 then : 13939 printf %s "(cached) " >&6 13940 else $as_nop 13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13942 /* end confdefs.h. */ 13943 int i; 13944 int 13945 main (void) 13946 { 13947 13948 ; 13949 return 0; 13950 } 13951 _ACEOF 13952 if ac_fn_c_try_link "$LINENO" 13953 then : 13954 eval $cacheid=yes 13955 else $as_nop 13956 eval $cacheid=no 13957 fi 13958 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13959 conftest$ac_exeext conftest.$ac_ext 13960 fi 13961 13962 13963 CFLAGS="$xorg_testset_save_CFLAGS" 13964 13965 eval supported=\$$cacheid 13966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13967 printf "%s\n" "$supported" >&6; } 13968 if test "$supported" = "yes" ; then 13969 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13970 found="yes" 13971 fi 13972 fi 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 xorg_testset_save_CFLAGS="$CFLAGS" 13989 13990 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13993 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13994 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13995 then : 13996 printf %s "(cached) " >&6 13997 else $as_nop 13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13999 /* end confdefs.h. */ 14000 int i; 14001 _ACEOF 14002 if ac_fn_c_try_compile "$LINENO" 14003 then : 14004 xorg_cv_cc_flag_unknown_warning_option=yes 14005 else $as_nop 14006 xorg_cv_cc_flag_unknown_warning_option=no 14007 fi 14008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14009 fi 14010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14011 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14013 CFLAGS="$xorg_testset_save_CFLAGS" 14014 fi 14015 14016 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14019 fi 14020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14022 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14023 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14024 then : 14025 printf %s "(cached) " >&6 14026 else $as_nop 14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14028 /* end confdefs.h. */ 14029 int i; 14030 _ACEOF 14031 if ac_fn_c_try_compile "$LINENO" 14032 then : 14033 xorg_cv_cc_flag_unused_command_line_argument=yes 14034 else $as_nop 14035 xorg_cv_cc_flag_unused_command_line_argument=no 14036 fi 14037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14038 fi 14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14040 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14042 CFLAGS="$xorg_testset_save_CFLAGS" 14043 fi 14044 14045 found="no" 14046 14047 if test $found = "no" ; then 14048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14050 fi 14051 14052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14054 fi 14055 14056 CFLAGS="$CFLAGS -Wold-style-definition" 14057 14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14059 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14060 cacheid=xorg_cv_cc_flag__Wold_style_definition 14061 if eval test \${$cacheid+y} 14062 then : 14063 printf %s "(cached) " >&6 14064 else $as_nop 14065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14066 /* end confdefs.h. */ 14067 int i; 14068 int 14069 main (void) 14070 { 14071 14072 ; 14073 return 0; 14074 } 14075 _ACEOF 14076 if ac_fn_c_try_link "$LINENO" 14077 then : 14078 eval $cacheid=yes 14079 else $as_nop 14080 eval $cacheid=no 14081 fi 14082 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14083 conftest$ac_exeext conftest.$ac_ext 14084 fi 14085 14086 14087 CFLAGS="$xorg_testset_save_CFLAGS" 14088 14089 eval supported=\$$cacheid 14090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14091 printf "%s\n" "$supported" >&6; } 14092 if test "$supported" = "yes" ; then 14093 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14094 found="yes" 14095 fi 14096 fi 14097 14098 if test $found = "no" ; then 14099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14101 fi 14102 14103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14105 fi 14106 14107 CFLAGS="$CFLAGS -fd" 14108 14109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14110 printf %s "checking if $CC supports -fd... " >&6; } 14111 cacheid=xorg_cv_cc_flag__fd 14112 if eval test \${$cacheid+y} 14113 then : 14114 printf %s "(cached) " >&6 14115 else $as_nop 14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14117 /* end confdefs.h. */ 14118 int i; 14119 int 14120 main (void) 14121 { 14122 14123 ; 14124 return 0; 14125 } 14126 _ACEOF 14127 if ac_fn_c_try_link "$LINENO" 14128 then : 14129 eval $cacheid=yes 14130 else $as_nop 14131 eval $cacheid=no 14132 fi 14133 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14134 conftest$ac_exeext conftest.$ac_ext 14135 fi 14136 14137 14138 CFLAGS="$xorg_testset_save_CFLAGS" 14139 14140 eval supported=\$$cacheid 14141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14142 printf "%s\n" "$supported" >&6; } 14143 if test "$supported" = "yes" ; then 14144 BASE_CFLAGS="$BASE_CFLAGS -fd" 14145 found="yes" 14146 fi 14147 fi 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 xorg_testset_save_CFLAGS="$CFLAGS" 14164 14165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14168 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14169 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14170 then : 14171 printf %s "(cached) " >&6 14172 else $as_nop 14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14174 /* end confdefs.h. */ 14175 int i; 14176 _ACEOF 14177 if ac_fn_c_try_compile "$LINENO" 14178 then : 14179 xorg_cv_cc_flag_unknown_warning_option=yes 14180 else $as_nop 14181 xorg_cv_cc_flag_unknown_warning_option=no 14182 fi 14183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14184 fi 14185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14186 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14188 CFLAGS="$xorg_testset_save_CFLAGS" 14189 fi 14190 14191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14194 fi 14195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14197 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14198 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14199 then : 14200 printf %s "(cached) " >&6 14201 else $as_nop 14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14203 /* end confdefs.h. */ 14204 int i; 14205 _ACEOF 14206 if ac_fn_c_try_compile "$LINENO" 14207 then : 14208 xorg_cv_cc_flag_unused_command_line_argument=yes 14209 else $as_nop 14210 xorg_cv_cc_flag_unused_command_line_argument=no 14211 fi 14212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14213 fi 14214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14215 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14217 CFLAGS="$xorg_testset_save_CFLAGS" 14218 fi 14219 14220 found="no" 14221 14222 if test $found = "no" ; then 14223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14225 fi 14226 14227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14229 fi 14230 14231 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14232 14233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14234 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14235 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14236 if eval test \${$cacheid+y} 14237 then : 14238 printf %s "(cached) " >&6 14239 else $as_nop 14240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14241 /* end confdefs.h. */ 14242 int i; 14243 int 14244 main (void) 14245 { 14246 14247 ; 14248 return 0; 14249 } 14250 _ACEOF 14251 if ac_fn_c_try_link "$LINENO" 14252 then : 14253 eval $cacheid=yes 14254 else $as_nop 14255 eval $cacheid=no 14256 fi 14257 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14258 conftest$ac_exeext conftest.$ac_ext 14259 fi 14260 14261 14262 CFLAGS="$xorg_testset_save_CFLAGS" 14263 14264 eval supported=\$$cacheid 14265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14266 printf "%s\n" "$supported" >&6; } 14267 if test "$supported" = "yes" ; then 14268 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14269 found="yes" 14270 fi 14271 fi 14272 14273 14274 14275 14276 14277 # This chunk adds additional warnings that could catch undesired effects. 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 xorg_testset_save_CFLAGS="$CFLAGS" 14292 14293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14296 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14297 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14298 then : 14299 printf %s "(cached) " >&6 14300 else $as_nop 14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14302 /* end confdefs.h. */ 14303 int i; 14304 _ACEOF 14305 if ac_fn_c_try_compile "$LINENO" 14306 then : 14307 xorg_cv_cc_flag_unknown_warning_option=yes 14308 else $as_nop 14309 xorg_cv_cc_flag_unknown_warning_option=no 14310 fi 14311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14312 fi 14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14314 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14315 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14316 CFLAGS="$xorg_testset_save_CFLAGS" 14317 fi 14318 14319 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14322 fi 14323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14325 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14326 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14327 then : 14328 printf %s "(cached) " >&6 14329 else $as_nop 14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14331 /* end confdefs.h. */ 14332 int i; 14333 _ACEOF 14334 if ac_fn_c_try_compile "$LINENO" 14335 then : 14336 xorg_cv_cc_flag_unused_command_line_argument=yes 14337 else $as_nop 14338 xorg_cv_cc_flag_unused_command_line_argument=no 14339 fi 14340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14341 fi 14342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14343 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14344 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14345 CFLAGS="$xorg_testset_save_CFLAGS" 14346 fi 14347 14348 found="no" 14349 14350 if test $found = "no" ; then 14351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14353 fi 14354 14355 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14357 fi 14358 14359 CFLAGS="$CFLAGS -Wunused" 14360 14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14362 printf %s "checking if $CC supports -Wunused... " >&6; } 14363 cacheid=xorg_cv_cc_flag__Wunused 14364 if eval test \${$cacheid+y} 14365 then : 14366 printf %s "(cached) " >&6 14367 else $as_nop 14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14369 /* end confdefs.h. */ 14370 int i; 14371 int 14372 main (void) 14373 { 14374 14375 ; 14376 return 0; 14377 } 14378 _ACEOF 14379 if ac_fn_c_try_link "$LINENO" 14380 then : 14381 eval $cacheid=yes 14382 else $as_nop 14383 eval $cacheid=no 14384 fi 14385 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14386 conftest$ac_exeext conftest.$ac_ext 14387 fi 14388 14389 14390 CFLAGS="$xorg_testset_save_CFLAGS" 14391 14392 eval supported=\$$cacheid 14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14394 printf "%s\n" "$supported" >&6; } 14395 if test "$supported" = "yes" ; then 14396 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14397 found="yes" 14398 fi 14399 fi 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 xorg_testset_save_CFLAGS="$CFLAGS" 14416 14417 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14420 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14421 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14422 then : 14423 printf %s "(cached) " >&6 14424 else $as_nop 14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14426 /* end confdefs.h. */ 14427 int i; 14428 _ACEOF 14429 if ac_fn_c_try_compile "$LINENO" 14430 then : 14431 xorg_cv_cc_flag_unknown_warning_option=yes 14432 else $as_nop 14433 xorg_cv_cc_flag_unknown_warning_option=no 14434 fi 14435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14436 fi 14437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14438 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14440 CFLAGS="$xorg_testset_save_CFLAGS" 14441 fi 14442 14443 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14446 fi 14447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14449 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14450 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14451 then : 14452 printf %s "(cached) " >&6 14453 else $as_nop 14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14455 /* end confdefs.h. */ 14456 int i; 14457 _ACEOF 14458 if ac_fn_c_try_compile "$LINENO" 14459 then : 14460 xorg_cv_cc_flag_unused_command_line_argument=yes 14461 else $as_nop 14462 xorg_cv_cc_flag_unused_command_line_argument=no 14463 fi 14464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14465 fi 14466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14467 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14469 CFLAGS="$xorg_testset_save_CFLAGS" 14470 fi 14471 14472 found="no" 14473 14474 if test $found = "no" ; then 14475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14477 fi 14478 14479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14481 fi 14482 14483 CFLAGS="$CFLAGS -Wuninitialized" 14484 14485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14486 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14487 cacheid=xorg_cv_cc_flag__Wuninitialized 14488 if eval test \${$cacheid+y} 14489 then : 14490 printf %s "(cached) " >&6 14491 else $as_nop 14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14493 /* end confdefs.h. */ 14494 int i; 14495 int 14496 main (void) 14497 { 14498 14499 ; 14500 return 0; 14501 } 14502 _ACEOF 14503 if ac_fn_c_try_link "$LINENO" 14504 then : 14505 eval $cacheid=yes 14506 else $as_nop 14507 eval $cacheid=no 14508 fi 14509 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14510 conftest$ac_exeext conftest.$ac_ext 14511 fi 14512 14513 14514 CFLAGS="$xorg_testset_save_CFLAGS" 14515 14516 eval supported=\$$cacheid 14517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14518 printf "%s\n" "$supported" >&6; } 14519 if test "$supported" = "yes" ; then 14520 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14521 found="yes" 14522 fi 14523 fi 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 xorg_testset_save_CFLAGS="$CFLAGS" 14540 14541 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14544 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14545 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14546 then : 14547 printf %s "(cached) " >&6 14548 else $as_nop 14549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14550 /* end confdefs.h. */ 14551 int i; 14552 _ACEOF 14553 if ac_fn_c_try_compile "$LINENO" 14554 then : 14555 xorg_cv_cc_flag_unknown_warning_option=yes 14556 else $as_nop 14557 xorg_cv_cc_flag_unknown_warning_option=no 14558 fi 14559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14560 fi 14561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14562 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14564 CFLAGS="$xorg_testset_save_CFLAGS" 14565 fi 14566 14567 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14570 fi 14571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14573 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14574 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14575 then : 14576 printf %s "(cached) " >&6 14577 else $as_nop 14578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14579 /* end confdefs.h. */ 14580 int i; 14581 _ACEOF 14582 if ac_fn_c_try_compile "$LINENO" 14583 then : 14584 xorg_cv_cc_flag_unused_command_line_argument=yes 14585 else $as_nop 14586 xorg_cv_cc_flag_unused_command_line_argument=no 14587 fi 14588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14589 fi 14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14591 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14593 CFLAGS="$xorg_testset_save_CFLAGS" 14594 fi 14595 14596 found="no" 14597 14598 if test $found = "no" ; then 14599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14601 fi 14602 14603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14605 fi 14606 14607 CFLAGS="$CFLAGS -Wshadow" 14608 14609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14610 printf %s "checking if $CC supports -Wshadow... " >&6; } 14611 cacheid=xorg_cv_cc_flag__Wshadow 14612 if eval test \${$cacheid+y} 14613 then : 14614 printf %s "(cached) " >&6 14615 else $as_nop 14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14617 /* end confdefs.h. */ 14618 int i; 14619 int 14620 main (void) 14621 { 14622 14623 ; 14624 return 0; 14625 } 14626 _ACEOF 14627 if ac_fn_c_try_link "$LINENO" 14628 then : 14629 eval $cacheid=yes 14630 else $as_nop 14631 eval $cacheid=no 14632 fi 14633 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14634 conftest$ac_exeext conftest.$ac_ext 14635 fi 14636 14637 14638 CFLAGS="$xorg_testset_save_CFLAGS" 14639 14640 eval supported=\$$cacheid 14641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14642 printf "%s\n" "$supported" >&6; } 14643 if test "$supported" = "yes" ; then 14644 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14645 found="yes" 14646 fi 14647 fi 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 xorg_testset_save_CFLAGS="$CFLAGS" 14664 14665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14668 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14669 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14670 then : 14671 printf %s "(cached) " >&6 14672 else $as_nop 14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14674 /* end confdefs.h. */ 14675 int i; 14676 _ACEOF 14677 if ac_fn_c_try_compile "$LINENO" 14678 then : 14679 xorg_cv_cc_flag_unknown_warning_option=yes 14680 else $as_nop 14681 xorg_cv_cc_flag_unknown_warning_option=no 14682 fi 14683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14684 fi 14685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14686 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14688 CFLAGS="$xorg_testset_save_CFLAGS" 14689 fi 14690 14691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14694 fi 14695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14697 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14698 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14699 then : 14700 printf %s "(cached) " >&6 14701 else $as_nop 14702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14703 /* end confdefs.h. */ 14704 int i; 14705 _ACEOF 14706 if ac_fn_c_try_compile "$LINENO" 14707 then : 14708 xorg_cv_cc_flag_unused_command_line_argument=yes 14709 else $as_nop 14710 xorg_cv_cc_flag_unused_command_line_argument=no 14711 fi 14712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14713 fi 14714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14715 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14717 CFLAGS="$xorg_testset_save_CFLAGS" 14718 fi 14719 14720 found="no" 14721 14722 if test $found = "no" ; then 14723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14725 fi 14726 14727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14729 fi 14730 14731 CFLAGS="$CFLAGS -Wmissing-noreturn" 14732 14733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14734 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14735 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14736 if eval test \${$cacheid+y} 14737 then : 14738 printf %s "(cached) " >&6 14739 else $as_nop 14740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14741 /* end confdefs.h. */ 14742 int i; 14743 int 14744 main (void) 14745 { 14746 14747 ; 14748 return 0; 14749 } 14750 _ACEOF 14751 if ac_fn_c_try_link "$LINENO" 14752 then : 14753 eval $cacheid=yes 14754 else $as_nop 14755 eval $cacheid=no 14756 fi 14757 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14758 conftest$ac_exeext conftest.$ac_ext 14759 fi 14760 14761 14762 CFLAGS="$xorg_testset_save_CFLAGS" 14763 14764 eval supported=\$$cacheid 14765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14766 printf "%s\n" "$supported" >&6; } 14767 if test "$supported" = "yes" ; then 14768 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14769 found="yes" 14770 fi 14771 fi 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 xorg_testset_save_CFLAGS="$CFLAGS" 14788 14789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14792 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14793 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14794 then : 14795 printf %s "(cached) " >&6 14796 else $as_nop 14797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14798 /* end confdefs.h. */ 14799 int i; 14800 _ACEOF 14801 if ac_fn_c_try_compile "$LINENO" 14802 then : 14803 xorg_cv_cc_flag_unknown_warning_option=yes 14804 else $as_nop 14805 xorg_cv_cc_flag_unknown_warning_option=no 14806 fi 14807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14808 fi 14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14810 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14812 CFLAGS="$xorg_testset_save_CFLAGS" 14813 fi 14814 14815 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14818 fi 14819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14821 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14822 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14823 then : 14824 printf %s "(cached) " >&6 14825 else $as_nop 14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14827 /* end confdefs.h. */ 14828 int i; 14829 _ACEOF 14830 if ac_fn_c_try_compile "$LINENO" 14831 then : 14832 xorg_cv_cc_flag_unused_command_line_argument=yes 14833 else $as_nop 14834 xorg_cv_cc_flag_unused_command_line_argument=no 14835 fi 14836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14837 fi 14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14839 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14840 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14841 CFLAGS="$xorg_testset_save_CFLAGS" 14842 fi 14843 14844 found="no" 14845 14846 if test $found = "no" ; then 14847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14849 fi 14850 14851 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14853 fi 14854 14855 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14856 14857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14858 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14859 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14860 if eval test \${$cacheid+y} 14861 then : 14862 printf %s "(cached) " >&6 14863 else $as_nop 14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14865 /* end confdefs.h. */ 14866 int i; 14867 int 14868 main (void) 14869 { 14870 14871 ; 14872 return 0; 14873 } 14874 _ACEOF 14875 if ac_fn_c_try_link "$LINENO" 14876 then : 14877 eval $cacheid=yes 14878 else $as_nop 14879 eval $cacheid=no 14880 fi 14881 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14882 conftest$ac_exeext conftest.$ac_ext 14883 fi 14884 14885 14886 CFLAGS="$xorg_testset_save_CFLAGS" 14887 14888 eval supported=\$$cacheid 14889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14890 printf "%s\n" "$supported" >&6; } 14891 if test "$supported" = "yes" ; then 14892 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14893 found="yes" 14894 fi 14895 fi 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 xorg_testset_save_CFLAGS="$CFLAGS" 14912 14913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14916 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14917 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14918 then : 14919 printf %s "(cached) " >&6 14920 else $as_nop 14921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14922 /* end confdefs.h. */ 14923 int i; 14924 _ACEOF 14925 if ac_fn_c_try_compile "$LINENO" 14926 then : 14927 xorg_cv_cc_flag_unknown_warning_option=yes 14928 else $as_nop 14929 xorg_cv_cc_flag_unknown_warning_option=no 14930 fi 14931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14932 fi 14933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14934 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14936 CFLAGS="$xorg_testset_save_CFLAGS" 14937 fi 14938 14939 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14942 fi 14943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14945 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14946 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14947 then : 14948 printf %s "(cached) " >&6 14949 else $as_nop 14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14951 /* end confdefs.h. */ 14952 int i; 14953 _ACEOF 14954 if ac_fn_c_try_compile "$LINENO" 14955 then : 14956 xorg_cv_cc_flag_unused_command_line_argument=yes 14957 else $as_nop 14958 xorg_cv_cc_flag_unused_command_line_argument=no 14959 fi 14960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14961 fi 14962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14963 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14965 CFLAGS="$xorg_testset_save_CFLAGS" 14966 fi 14967 14968 found="no" 14969 14970 if test $found = "no" ; then 14971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14973 fi 14974 14975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14977 fi 14978 14979 CFLAGS="$CFLAGS -Wredundant-decls" 14980 14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14982 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 14983 cacheid=xorg_cv_cc_flag__Wredundant_decls 14984 if eval test \${$cacheid+y} 14985 then : 14986 printf %s "(cached) " >&6 14987 else $as_nop 14988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14989 /* end confdefs.h. */ 14990 int i; 14991 int 14992 main (void) 14993 { 14994 14995 ; 14996 return 0; 14997 } 14998 _ACEOF 14999 if ac_fn_c_try_link "$LINENO" 15000 then : 15001 eval $cacheid=yes 15002 else $as_nop 15003 eval $cacheid=no 15004 fi 15005 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15006 conftest$ac_exeext conftest.$ac_ext 15007 fi 15008 15009 15010 CFLAGS="$xorg_testset_save_CFLAGS" 15011 15012 eval supported=\$$cacheid 15013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15014 printf "%s\n" "$supported" >&6; } 15015 if test "$supported" = "yes" ; then 15016 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15017 found="yes" 15018 fi 15019 fi 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 xorg_testset_save_CFLAGS="$CFLAGS" 15036 15037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15040 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15041 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15042 then : 15043 printf %s "(cached) " >&6 15044 else $as_nop 15045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15046 /* end confdefs.h. */ 15047 int i; 15048 _ACEOF 15049 if ac_fn_c_try_compile "$LINENO" 15050 then : 15051 xorg_cv_cc_flag_unknown_warning_option=yes 15052 else $as_nop 15053 xorg_cv_cc_flag_unknown_warning_option=no 15054 fi 15055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15056 fi 15057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15058 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15060 CFLAGS="$xorg_testset_save_CFLAGS" 15061 fi 15062 15063 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15066 fi 15067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15069 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15070 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15071 then : 15072 printf %s "(cached) " >&6 15073 else $as_nop 15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15075 /* end confdefs.h. */ 15076 int i; 15077 _ACEOF 15078 if ac_fn_c_try_compile "$LINENO" 15079 then : 15080 xorg_cv_cc_flag_unused_command_line_argument=yes 15081 else $as_nop 15082 xorg_cv_cc_flag_unused_command_line_argument=no 15083 fi 15084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15085 fi 15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15087 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15089 CFLAGS="$xorg_testset_save_CFLAGS" 15090 fi 15091 15092 found="no" 15093 15094 if test $found = "no" ; then 15095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15097 fi 15098 15099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15101 fi 15102 15103 CFLAGS="$CFLAGS -Wlogical-op" 15104 15105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15106 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15107 cacheid=xorg_cv_cc_flag__Wlogical_op 15108 if eval test \${$cacheid+y} 15109 then : 15110 printf %s "(cached) " >&6 15111 else $as_nop 15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15113 /* end confdefs.h. */ 15114 int i; 15115 int 15116 main (void) 15117 { 15118 15119 ; 15120 return 0; 15121 } 15122 _ACEOF 15123 if ac_fn_c_try_link "$LINENO" 15124 then : 15125 eval $cacheid=yes 15126 else $as_nop 15127 eval $cacheid=no 15128 fi 15129 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15130 conftest$ac_exeext conftest.$ac_ext 15131 fi 15132 15133 15134 CFLAGS="$xorg_testset_save_CFLAGS" 15135 15136 eval supported=\$$cacheid 15137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15138 printf "%s\n" "$supported" >&6; } 15139 if test "$supported" = "yes" ; then 15140 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15141 found="yes" 15142 fi 15143 fi 15144 15145 15146 15147 # These are currently disabled because they are noisy. They will be enabled 15148 # in the future once the codebase is sufficiently modernized to silence 15149 # them. For now, I don't want them to drown out the other warnings. 15150 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15151 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15152 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15153 15154 # Turn some warnings into errors, so we don't accidently get successful builds 15155 # when there are problems that should be fixed. 15156 15157 if test "x$SELECTIVE_WERROR" = "xyes" ; then 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 xorg_testset_save_CFLAGS="$CFLAGS" 15172 15173 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15176 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15177 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15178 then : 15179 printf %s "(cached) " >&6 15180 else $as_nop 15181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15182 /* end confdefs.h. */ 15183 int i; 15184 _ACEOF 15185 if ac_fn_c_try_compile "$LINENO" 15186 then : 15187 xorg_cv_cc_flag_unknown_warning_option=yes 15188 else $as_nop 15189 xorg_cv_cc_flag_unknown_warning_option=no 15190 fi 15191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15192 fi 15193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15194 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15196 CFLAGS="$xorg_testset_save_CFLAGS" 15197 fi 15198 15199 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15202 fi 15203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15205 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15206 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15207 then : 15208 printf %s "(cached) " >&6 15209 else $as_nop 15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15211 /* end confdefs.h. */ 15212 int i; 15213 _ACEOF 15214 if ac_fn_c_try_compile "$LINENO" 15215 then : 15216 xorg_cv_cc_flag_unused_command_line_argument=yes 15217 else $as_nop 15218 xorg_cv_cc_flag_unused_command_line_argument=no 15219 fi 15220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15221 fi 15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15223 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15225 CFLAGS="$xorg_testset_save_CFLAGS" 15226 fi 15227 15228 found="no" 15229 15230 if test $found = "no" ; then 15231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15233 fi 15234 15235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15237 fi 15238 15239 CFLAGS="$CFLAGS -Werror=implicit" 15240 15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15242 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15243 cacheid=xorg_cv_cc_flag__Werror_implicit 15244 if eval test \${$cacheid+y} 15245 then : 15246 printf %s "(cached) " >&6 15247 else $as_nop 15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15249 /* end confdefs.h. */ 15250 int i; 15251 int 15252 main (void) 15253 { 15254 15255 ; 15256 return 0; 15257 } 15258 _ACEOF 15259 if ac_fn_c_try_link "$LINENO" 15260 then : 15261 eval $cacheid=yes 15262 else $as_nop 15263 eval $cacheid=no 15264 fi 15265 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15266 conftest$ac_exeext conftest.$ac_ext 15267 fi 15268 15269 15270 CFLAGS="$xorg_testset_save_CFLAGS" 15271 15272 eval supported=\$$cacheid 15273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15274 printf "%s\n" "$supported" >&6; } 15275 if test "$supported" = "yes" ; then 15276 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15277 found="yes" 15278 fi 15279 fi 15280 15281 if test $found = "no" ; then 15282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15284 fi 15285 15286 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15288 fi 15289 15290 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15291 15292 { 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 15293 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15294 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15295 if eval test \${$cacheid+y} 15296 then : 15297 printf %s "(cached) " >&6 15298 else $as_nop 15299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15300 /* end confdefs.h. */ 15301 int i; 15302 int 15303 main (void) 15304 { 15305 15306 ; 15307 return 0; 15308 } 15309 _ACEOF 15310 if ac_fn_c_try_link "$LINENO" 15311 then : 15312 eval $cacheid=yes 15313 else $as_nop 15314 eval $cacheid=no 15315 fi 15316 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15317 conftest$ac_exeext conftest.$ac_ext 15318 fi 15319 15320 15321 CFLAGS="$xorg_testset_save_CFLAGS" 15322 15323 eval supported=\$$cacheid 15324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15325 printf "%s\n" "$supported" >&6; } 15326 if test "$supported" = "yes" ; then 15327 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15328 found="yes" 15329 fi 15330 fi 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 xorg_testset_save_CFLAGS="$CFLAGS" 15347 15348 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15351 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15352 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15353 then : 15354 printf %s "(cached) " >&6 15355 else $as_nop 15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15357 /* end confdefs.h. */ 15358 int i; 15359 _ACEOF 15360 if ac_fn_c_try_compile "$LINENO" 15361 then : 15362 xorg_cv_cc_flag_unknown_warning_option=yes 15363 else $as_nop 15364 xorg_cv_cc_flag_unknown_warning_option=no 15365 fi 15366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15367 fi 15368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15369 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15371 CFLAGS="$xorg_testset_save_CFLAGS" 15372 fi 15373 15374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15377 fi 15378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15380 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15381 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15382 then : 15383 printf %s "(cached) " >&6 15384 else $as_nop 15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15386 /* end confdefs.h. */ 15387 int i; 15388 _ACEOF 15389 if ac_fn_c_try_compile "$LINENO" 15390 then : 15391 xorg_cv_cc_flag_unused_command_line_argument=yes 15392 else $as_nop 15393 xorg_cv_cc_flag_unused_command_line_argument=no 15394 fi 15395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15396 fi 15397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15398 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15400 CFLAGS="$xorg_testset_save_CFLAGS" 15401 fi 15402 15403 found="no" 15404 15405 if test $found = "no" ; then 15406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15408 fi 15409 15410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15412 fi 15413 15414 CFLAGS="$CFLAGS -Werror=nonnull" 15415 15416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15417 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15418 cacheid=xorg_cv_cc_flag__Werror_nonnull 15419 if eval test \${$cacheid+y} 15420 then : 15421 printf %s "(cached) " >&6 15422 else $as_nop 15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15424 /* end confdefs.h. */ 15425 int i; 15426 int 15427 main (void) 15428 { 15429 15430 ; 15431 return 0; 15432 } 15433 _ACEOF 15434 if ac_fn_c_try_link "$LINENO" 15435 then : 15436 eval $cacheid=yes 15437 else $as_nop 15438 eval $cacheid=no 15439 fi 15440 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15441 conftest$ac_exeext conftest.$ac_ext 15442 fi 15443 15444 15445 CFLAGS="$xorg_testset_save_CFLAGS" 15446 15447 eval supported=\$$cacheid 15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15449 printf "%s\n" "$supported" >&6; } 15450 if test "$supported" = "yes" ; then 15451 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15452 found="yes" 15453 fi 15454 fi 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 xorg_testset_save_CFLAGS="$CFLAGS" 15471 15472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15475 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15476 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15477 then : 15478 printf %s "(cached) " >&6 15479 else $as_nop 15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15481 /* end confdefs.h. */ 15482 int i; 15483 _ACEOF 15484 if ac_fn_c_try_compile "$LINENO" 15485 then : 15486 xorg_cv_cc_flag_unknown_warning_option=yes 15487 else $as_nop 15488 xorg_cv_cc_flag_unknown_warning_option=no 15489 fi 15490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15491 fi 15492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15493 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15495 CFLAGS="$xorg_testset_save_CFLAGS" 15496 fi 15497 15498 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15501 fi 15502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15504 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15505 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15506 then : 15507 printf %s "(cached) " >&6 15508 else $as_nop 15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15510 /* end confdefs.h. */ 15511 int i; 15512 _ACEOF 15513 if ac_fn_c_try_compile "$LINENO" 15514 then : 15515 xorg_cv_cc_flag_unused_command_line_argument=yes 15516 else $as_nop 15517 xorg_cv_cc_flag_unused_command_line_argument=no 15518 fi 15519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15520 fi 15521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15522 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15524 CFLAGS="$xorg_testset_save_CFLAGS" 15525 fi 15526 15527 found="no" 15528 15529 if test $found = "no" ; then 15530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15532 fi 15533 15534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15536 fi 15537 15538 CFLAGS="$CFLAGS -Werror=init-self" 15539 15540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15541 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15542 cacheid=xorg_cv_cc_flag__Werror_init_self 15543 if eval test \${$cacheid+y} 15544 then : 15545 printf %s "(cached) " >&6 15546 else $as_nop 15547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15548 /* end confdefs.h. */ 15549 int i; 15550 int 15551 main (void) 15552 { 15553 15554 ; 15555 return 0; 15556 } 15557 _ACEOF 15558 if ac_fn_c_try_link "$LINENO" 15559 then : 15560 eval $cacheid=yes 15561 else $as_nop 15562 eval $cacheid=no 15563 fi 15564 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15565 conftest$ac_exeext conftest.$ac_ext 15566 fi 15567 15568 15569 CFLAGS="$xorg_testset_save_CFLAGS" 15570 15571 eval supported=\$$cacheid 15572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15573 printf "%s\n" "$supported" >&6; } 15574 if test "$supported" = "yes" ; then 15575 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15576 found="yes" 15577 fi 15578 fi 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 xorg_testset_save_CFLAGS="$CFLAGS" 15595 15596 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15599 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15600 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15601 then : 15602 printf %s "(cached) " >&6 15603 else $as_nop 15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15605 /* end confdefs.h. */ 15606 int i; 15607 _ACEOF 15608 if ac_fn_c_try_compile "$LINENO" 15609 then : 15610 xorg_cv_cc_flag_unknown_warning_option=yes 15611 else $as_nop 15612 xorg_cv_cc_flag_unknown_warning_option=no 15613 fi 15614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15615 fi 15616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15617 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15619 CFLAGS="$xorg_testset_save_CFLAGS" 15620 fi 15621 15622 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15625 fi 15626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15628 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15629 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15630 then : 15631 printf %s "(cached) " >&6 15632 else $as_nop 15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15634 /* end confdefs.h. */ 15635 int i; 15636 _ACEOF 15637 if ac_fn_c_try_compile "$LINENO" 15638 then : 15639 xorg_cv_cc_flag_unused_command_line_argument=yes 15640 else $as_nop 15641 xorg_cv_cc_flag_unused_command_line_argument=no 15642 fi 15643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15644 fi 15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15646 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15648 CFLAGS="$xorg_testset_save_CFLAGS" 15649 fi 15650 15651 found="no" 15652 15653 if test $found = "no" ; then 15654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15656 fi 15657 15658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15660 fi 15661 15662 CFLAGS="$CFLAGS -Werror=main" 15663 15664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15665 printf %s "checking if $CC supports -Werror=main... " >&6; } 15666 cacheid=xorg_cv_cc_flag__Werror_main 15667 if eval test \${$cacheid+y} 15668 then : 15669 printf %s "(cached) " >&6 15670 else $as_nop 15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15672 /* end confdefs.h. */ 15673 int i; 15674 int 15675 main (void) 15676 { 15677 15678 ; 15679 return 0; 15680 } 15681 _ACEOF 15682 if ac_fn_c_try_link "$LINENO" 15683 then : 15684 eval $cacheid=yes 15685 else $as_nop 15686 eval $cacheid=no 15687 fi 15688 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15689 conftest$ac_exeext conftest.$ac_ext 15690 fi 15691 15692 15693 CFLAGS="$xorg_testset_save_CFLAGS" 15694 15695 eval supported=\$$cacheid 15696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15697 printf "%s\n" "$supported" >&6; } 15698 if test "$supported" = "yes" ; then 15699 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15700 found="yes" 15701 fi 15702 fi 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 xorg_testset_save_CFLAGS="$CFLAGS" 15719 15720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15723 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15724 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15725 then : 15726 printf %s "(cached) " >&6 15727 else $as_nop 15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15729 /* end confdefs.h. */ 15730 int i; 15731 _ACEOF 15732 if ac_fn_c_try_compile "$LINENO" 15733 then : 15734 xorg_cv_cc_flag_unknown_warning_option=yes 15735 else $as_nop 15736 xorg_cv_cc_flag_unknown_warning_option=no 15737 fi 15738 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15739 fi 15740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15741 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15743 CFLAGS="$xorg_testset_save_CFLAGS" 15744 fi 15745 15746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15749 fi 15750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15752 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15753 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15754 then : 15755 printf %s "(cached) " >&6 15756 else $as_nop 15757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15758 /* end confdefs.h. */ 15759 int i; 15760 _ACEOF 15761 if ac_fn_c_try_compile "$LINENO" 15762 then : 15763 xorg_cv_cc_flag_unused_command_line_argument=yes 15764 else $as_nop 15765 xorg_cv_cc_flag_unused_command_line_argument=no 15766 fi 15767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15768 fi 15769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15770 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15772 CFLAGS="$xorg_testset_save_CFLAGS" 15773 fi 15774 15775 found="no" 15776 15777 if test $found = "no" ; then 15778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15780 fi 15781 15782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15784 fi 15785 15786 CFLAGS="$CFLAGS -Werror=missing-braces" 15787 15788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15789 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15790 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15791 if eval test \${$cacheid+y} 15792 then : 15793 printf %s "(cached) " >&6 15794 else $as_nop 15795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15796 /* end confdefs.h. */ 15797 int i; 15798 int 15799 main (void) 15800 { 15801 15802 ; 15803 return 0; 15804 } 15805 _ACEOF 15806 if ac_fn_c_try_link "$LINENO" 15807 then : 15808 eval $cacheid=yes 15809 else $as_nop 15810 eval $cacheid=no 15811 fi 15812 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15813 conftest$ac_exeext conftest.$ac_ext 15814 fi 15815 15816 15817 CFLAGS="$xorg_testset_save_CFLAGS" 15818 15819 eval supported=\$$cacheid 15820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15821 printf "%s\n" "$supported" >&6; } 15822 if test "$supported" = "yes" ; then 15823 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15824 found="yes" 15825 fi 15826 fi 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 xorg_testset_save_CFLAGS="$CFLAGS" 15843 15844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15847 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15848 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15849 then : 15850 printf %s "(cached) " >&6 15851 else $as_nop 15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15853 /* end confdefs.h. */ 15854 int i; 15855 _ACEOF 15856 if ac_fn_c_try_compile "$LINENO" 15857 then : 15858 xorg_cv_cc_flag_unknown_warning_option=yes 15859 else $as_nop 15860 xorg_cv_cc_flag_unknown_warning_option=no 15861 fi 15862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15863 fi 15864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15865 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15866 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15867 CFLAGS="$xorg_testset_save_CFLAGS" 15868 fi 15869 15870 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15873 fi 15874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15876 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15877 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15878 then : 15879 printf %s "(cached) " >&6 15880 else $as_nop 15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15882 /* end confdefs.h. */ 15883 int i; 15884 _ACEOF 15885 if ac_fn_c_try_compile "$LINENO" 15886 then : 15887 xorg_cv_cc_flag_unused_command_line_argument=yes 15888 else $as_nop 15889 xorg_cv_cc_flag_unused_command_line_argument=no 15890 fi 15891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 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 -Werror=sequence-point" 15911 15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15913 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 15914 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15915 if eval test \${$cacheid+y} 15916 then : 15917 printf %s "(cached) " >&6 15918 else $as_nop 15919 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 $as_nop 15934 eval $cacheid=no 15935 fi 15936 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15937 conftest$ac_exeext conftest.$ac_ext 15938 fi 15939 15940 15941 CFLAGS="$xorg_testset_save_CFLAGS" 15942 15943 eval supported=\$$cacheid 15944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15945 printf "%s\n" "$supported" >&6; } 15946 if test "$supported" = "yes" ; then 15947 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15948 found="yes" 15949 fi 15950 fi 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 xorg_testset_save_CFLAGS="$CFLAGS" 15967 15968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15971 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15972 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15973 then : 15974 printf %s "(cached) " >&6 15975 else $as_nop 15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15977 /* end confdefs.h. */ 15978 int i; 15979 _ACEOF 15980 if ac_fn_c_try_compile "$LINENO" 15981 then : 15982 xorg_cv_cc_flag_unknown_warning_option=yes 15983 else $as_nop 15984 xorg_cv_cc_flag_unknown_warning_option=no 15985 fi 15986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15987 fi 15988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15989 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15991 CFLAGS="$xorg_testset_save_CFLAGS" 15992 fi 15993 15994 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15997 fi 15998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16000 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16001 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16002 then : 16003 printf %s "(cached) " >&6 16004 else $as_nop 16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16006 /* end confdefs.h. */ 16007 int i; 16008 _ACEOF 16009 if ac_fn_c_try_compile "$LINENO" 16010 then : 16011 xorg_cv_cc_flag_unused_command_line_argument=yes 16012 else $as_nop 16013 xorg_cv_cc_flag_unused_command_line_argument=no 16014 fi 16015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16016 fi 16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16018 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16020 CFLAGS="$xorg_testset_save_CFLAGS" 16021 fi 16022 16023 found="no" 16024 16025 if test $found = "no" ; then 16026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16028 fi 16029 16030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16032 fi 16033 16034 CFLAGS="$CFLAGS -Werror=return-type" 16035 16036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16037 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16038 cacheid=xorg_cv_cc_flag__Werror_return_type 16039 if eval test \${$cacheid+y} 16040 then : 16041 printf %s "(cached) " >&6 16042 else $as_nop 16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16044 /* end confdefs.h. */ 16045 int i; 16046 int 16047 main (void) 16048 { 16049 16050 ; 16051 return 0; 16052 } 16053 _ACEOF 16054 if ac_fn_c_try_link "$LINENO" 16055 then : 16056 eval $cacheid=yes 16057 else $as_nop 16058 eval $cacheid=no 16059 fi 16060 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16061 conftest$ac_exeext conftest.$ac_ext 16062 fi 16063 16064 16065 CFLAGS="$xorg_testset_save_CFLAGS" 16066 16067 eval supported=\$$cacheid 16068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16069 printf "%s\n" "$supported" >&6; } 16070 if test "$supported" = "yes" ; then 16071 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16072 found="yes" 16073 fi 16074 fi 16075 16076 if test $found = "no" ; then 16077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16079 fi 16080 16081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16083 fi 16084 16085 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16086 16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16088 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16089 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16090 if eval test \${$cacheid+y} 16091 then : 16092 printf %s "(cached) " >&6 16093 else $as_nop 16094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16095 /* end confdefs.h. */ 16096 int i; 16097 int 16098 main (void) 16099 { 16100 16101 ; 16102 return 0; 16103 } 16104 _ACEOF 16105 if ac_fn_c_try_link "$LINENO" 16106 then : 16107 eval $cacheid=yes 16108 else $as_nop 16109 eval $cacheid=no 16110 fi 16111 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16112 conftest$ac_exeext conftest.$ac_ext 16113 fi 16114 16115 16116 CFLAGS="$xorg_testset_save_CFLAGS" 16117 16118 eval supported=\$$cacheid 16119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16120 printf "%s\n" "$supported" >&6; } 16121 if test "$supported" = "yes" ; then 16122 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16123 found="yes" 16124 fi 16125 fi 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 xorg_testset_save_CFLAGS="$CFLAGS" 16142 16143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16146 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16147 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16148 then : 16149 printf %s "(cached) " >&6 16150 else $as_nop 16151 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_unknown_warning_option=yes 16158 else $as_nop 16159 xorg_cv_cc_flag_unknown_warning_option=no 16160 fi 16161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16162 fi 16163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16164 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16166 CFLAGS="$xorg_testset_save_CFLAGS" 16167 fi 16168 16169 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16172 fi 16173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16175 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16176 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16177 then : 16178 printf %s "(cached) " >&6 16179 else $as_nop 16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16181 /* end confdefs.h. */ 16182 int i; 16183 _ACEOF 16184 if ac_fn_c_try_compile "$LINENO" 16185 then : 16186 xorg_cv_cc_flag_unused_command_line_argument=yes 16187 else $as_nop 16188 xorg_cv_cc_flag_unused_command_line_argument=no 16189 fi 16190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16191 fi 16192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16193 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16195 CFLAGS="$xorg_testset_save_CFLAGS" 16196 fi 16197 16198 found="no" 16199 16200 if test $found = "no" ; then 16201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16203 fi 16204 16205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16207 fi 16208 16209 CFLAGS="$CFLAGS -Werror=trigraphs" 16210 16211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16212 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16213 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16214 if eval test \${$cacheid+y} 16215 then : 16216 printf %s "(cached) " >&6 16217 else $as_nop 16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16219 /* end confdefs.h. */ 16220 int i; 16221 int 16222 main (void) 16223 { 16224 16225 ; 16226 return 0; 16227 } 16228 _ACEOF 16229 if ac_fn_c_try_link "$LINENO" 16230 then : 16231 eval $cacheid=yes 16232 else $as_nop 16233 eval $cacheid=no 16234 fi 16235 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16236 conftest$ac_exeext conftest.$ac_ext 16237 fi 16238 16239 16240 CFLAGS="$xorg_testset_save_CFLAGS" 16241 16242 eval supported=\$$cacheid 16243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16244 printf "%s\n" "$supported" >&6; } 16245 if test "$supported" = "yes" ; then 16246 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16247 found="yes" 16248 fi 16249 fi 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 xorg_testset_save_CFLAGS="$CFLAGS" 16266 16267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16270 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16271 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16272 then : 16273 printf %s "(cached) " >&6 16274 else $as_nop 16275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16276 /* end confdefs.h. */ 16277 int i; 16278 _ACEOF 16279 if ac_fn_c_try_compile "$LINENO" 16280 then : 16281 xorg_cv_cc_flag_unknown_warning_option=yes 16282 else $as_nop 16283 xorg_cv_cc_flag_unknown_warning_option=no 16284 fi 16285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16286 fi 16287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16288 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16290 CFLAGS="$xorg_testset_save_CFLAGS" 16291 fi 16292 16293 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16296 fi 16297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16299 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16300 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16301 then : 16302 printf %s "(cached) " >&6 16303 else $as_nop 16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16305 /* end confdefs.h. */ 16306 int i; 16307 _ACEOF 16308 if ac_fn_c_try_compile "$LINENO" 16309 then : 16310 xorg_cv_cc_flag_unused_command_line_argument=yes 16311 else $as_nop 16312 xorg_cv_cc_flag_unused_command_line_argument=no 16313 fi 16314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16315 fi 16316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16317 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16319 CFLAGS="$xorg_testset_save_CFLAGS" 16320 fi 16321 16322 found="no" 16323 16324 if test $found = "no" ; then 16325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16327 fi 16328 16329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16331 fi 16332 16333 CFLAGS="$CFLAGS -Werror=array-bounds" 16334 16335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16336 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16337 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16338 if eval test \${$cacheid+y} 16339 then : 16340 printf %s "(cached) " >&6 16341 else $as_nop 16342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16343 /* end confdefs.h. */ 16344 int i; 16345 int 16346 main (void) 16347 { 16348 16349 ; 16350 return 0; 16351 } 16352 _ACEOF 16353 if ac_fn_c_try_link "$LINENO" 16354 then : 16355 eval $cacheid=yes 16356 else $as_nop 16357 eval $cacheid=no 16358 fi 16359 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16360 conftest$ac_exeext conftest.$ac_ext 16361 fi 16362 16363 16364 CFLAGS="$xorg_testset_save_CFLAGS" 16365 16366 eval supported=\$$cacheid 16367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16368 printf "%s\n" "$supported" >&6; } 16369 if test "$supported" = "yes" ; then 16370 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16371 found="yes" 16372 fi 16373 fi 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 xorg_testset_save_CFLAGS="$CFLAGS" 16390 16391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16394 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16395 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16396 then : 16397 printf %s "(cached) " >&6 16398 else $as_nop 16399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16400 /* end confdefs.h. */ 16401 int i; 16402 _ACEOF 16403 if ac_fn_c_try_compile "$LINENO" 16404 then : 16405 xorg_cv_cc_flag_unknown_warning_option=yes 16406 else $as_nop 16407 xorg_cv_cc_flag_unknown_warning_option=no 16408 fi 16409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16410 fi 16411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16412 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16414 CFLAGS="$xorg_testset_save_CFLAGS" 16415 fi 16416 16417 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16420 fi 16421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16423 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16424 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16425 then : 16426 printf %s "(cached) " >&6 16427 else $as_nop 16428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16429 /* end confdefs.h. */ 16430 int i; 16431 _ACEOF 16432 if ac_fn_c_try_compile "$LINENO" 16433 then : 16434 xorg_cv_cc_flag_unused_command_line_argument=yes 16435 else $as_nop 16436 xorg_cv_cc_flag_unused_command_line_argument=no 16437 fi 16438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16439 fi 16440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16441 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16442 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16443 CFLAGS="$xorg_testset_save_CFLAGS" 16444 fi 16445 16446 found="no" 16447 16448 if test $found = "no" ; then 16449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16451 fi 16452 16453 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16455 fi 16456 16457 CFLAGS="$CFLAGS -Werror=write-strings" 16458 16459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16460 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16461 cacheid=xorg_cv_cc_flag__Werror_write_strings 16462 if eval test \${$cacheid+y} 16463 then : 16464 printf %s "(cached) " >&6 16465 else $as_nop 16466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16467 /* end confdefs.h. */ 16468 int i; 16469 int 16470 main (void) 16471 { 16472 16473 ; 16474 return 0; 16475 } 16476 _ACEOF 16477 if ac_fn_c_try_link "$LINENO" 16478 then : 16479 eval $cacheid=yes 16480 else $as_nop 16481 eval $cacheid=no 16482 fi 16483 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16484 conftest$ac_exeext conftest.$ac_ext 16485 fi 16486 16487 16488 CFLAGS="$xorg_testset_save_CFLAGS" 16489 16490 eval supported=\$$cacheid 16491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16492 printf "%s\n" "$supported" >&6; } 16493 if test "$supported" = "yes" ; then 16494 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16495 found="yes" 16496 fi 16497 fi 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 xorg_testset_save_CFLAGS="$CFLAGS" 16514 16515 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16518 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16519 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16520 then : 16521 printf %s "(cached) " >&6 16522 else $as_nop 16523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16524 /* end confdefs.h. */ 16525 int i; 16526 _ACEOF 16527 if ac_fn_c_try_compile "$LINENO" 16528 then : 16529 xorg_cv_cc_flag_unknown_warning_option=yes 16530 else $as_nop 16531 xorg_cv_cc_flag_unknown_warning_option=no 16532 fi 16533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16534 fi 16535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16536 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16537 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16538 CFLAGS="$xorg_testset_save_CFLAGS" 16539 fi 16540 16541 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16543 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16544 fi 16545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16547 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16548 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16549 then : 16550 printf %s "(cached) " >&6 16551 else $as_nop 16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16553 /* end confdefs.h. */ 16554 int i; 16555 _ACEOF 16556 if ac_fn_c_try_compile "$LINENO" 16557 then : 16558 xorg_cv_cc_flag_unused_command_line_argument=yes 16559 else $as_nop 16560 xorg_cv_cc_flag_unused_command_line_argument=no 16561 fi 16562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16563 fi 16564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16565 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16567 CFLAGS="$xorg_testset_save_CFLAGS" 16568 fi 16569 16570 found="no" 16571 16572 if test $found = "no" ; then 16573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16575 fi 16576 16577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16579 fi 16580 16581 CFLAGS="$CFLAGS -Werror=address" 16582 16583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16584 printf %s "checking if $CC supports -Werror=address... " >&6; } 16585 cacheid=xorg_cv_cc_flag__Werror_address 16586 if eval test \${$cacheid+y} 16587 then : 16588 printf %s "(cached) " >&6 16589 else $as_nop 16590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16591 /* end confdefs.h. */ 16592 int i; 16593 int 16594 main (void) 16595 { 16596 16597 ; 16598 return 0; 16599 } 16600 _ACEOF 16601 if ac_fn_c_try_link "$LINENO" 16602 then : 16603 eval $cacheid=yes 16604 else $as_nop 16605 eval $cacheid=no 16606 fi 16607 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16608 conftest$ac_exeext conftest.$ac_ext 16609 fi 16610 16611 16612 CFLAGS="$xorg_testset_save_CFLAGS" 16613 16614 eval supported=\$$cacheid 16615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16616 printf "%s\n" "$supported" >&6; } 16617 if test "$supported" = "yes" ; then 16618 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16619 found="yes" 16620 fi 16621 fi 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 xorg_testset_save_CFLAGS="$CFLAGS" 16638 16639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16642 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16643 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16644 then : 16645 printf %s "(cached) " >&6 16646 else $as_nop 16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16648 /* end confdefs.h. */ 16649 int i; 16650 _ACEOF 16651 if ac_fn_c_try_compile "$LINENO" 16652 then : 16653 xorg_cv_cc_flag_unknown_warning_option=yes 16654 else $as_nop 16655 xorg_cv_cc_flag_unknown_warning_option=no 16656 fi 16657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16658 fi 16659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16660 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16662 CFLAGS="$xorg_testset_save_CFLAGS" 16663 fi 16664 16665 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16668 fi 16669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16671 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16672 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16673 then : 16674 printf %s "(cached) " >&6 16675 else $as_nop 16676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16677 /* end confdefs.h. */ 16678 int i; 16679 _ACEOF 16680 if ac_fn_c_try_compile "$LINENO" 16681 then : 16682 xorg_cv_cc_flag_unused_command_line_argument=yes 16683 else $as_nop 16684 xorg_cv_cc_flag_unused_command_line_argument=no 16685 fi 16686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16687 fi 16688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16689 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16691 CFLAGS="$xorg_testset_save_CFLAGS" 16692 fi 16693 16694 found="no" 16695 16696 if test $found = "no" ; then 16697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16699 fi 16700 16701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16703 fi 16704 16705 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16706 16707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16708 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16709 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16710 if eval test \${$cacheid+y} 16711 then : 16712 printf %s "(cached) " >&6 16713 else $as_nop 16714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16715 /* end confdefs.h. */ 16716 int i; 16717 int 16718 main (void) 16719 { 16720 16721 ; 16722 return 0; 16723 } 16724 _ACEOF 16725 if ac_fn_c_try_link "$LINENO" 16726 then : 16727 eval $cacheid=yes 16728 else $as_nop 16729 eval $cacheid=no 16730 fi 16731 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16732 conftest$ac_exeext conftest.$ac_ext 16733 fi 16734 16735 16736 CFLAGS="$xorg_testset_save_CFLAGS" 16737 16738 eval supported=\$$cacheid 16739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16740 printf "%s\n" "$supported" >&6; } 16741 if test "$supported" = "yes" ; then 16742 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16743 found="yes" 16744 fi 16745 fi 16746 16747 if test $found = "no" ; then 16748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16750 fi 16751 16752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16754 fi 16755 16756 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16757 16758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16759 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16760 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16761 if eval test \${$cacheid+y} 16762 then : 16763 printf %s "(cached) " >&6 16764 else $as_nop 16765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16766 /* end confdefs.h. */ 16767 int i; 16768 int 16769 main (void) 16770 { 16771 16772 ; 16773 return 0; 16774 } 16775 _ACEOF 16776 if ac_fn_c_try_link "$LINENO" 16777 then : 16778 eval $cacheid=yes 16779 else $as_nop 16780 eval $cacheid=no 16781 fi 16782 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16783 conftest$ac_exeext conftest.$ac_ext 16784 fi 16785 16786 16787 CFLAGS="$xorg_testset_save_CFLAGS" 16788 16789 eval supported=\$$cacheid 16790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16791 printf "%s\n" "$supported" >&6; } 16792 if test "$supported" = "yes" ; then 16793 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16794 found="yes" 16795 fi 16796 fi 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 xorg_testset_save_CFLAGS="$CFLAGS" 16813 16814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16818 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16819 then : 16820 printf %s "(cached) " >&6 16821 else $as_nop 16822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16823 /* end confdefs.h. */ 16824 int i; 16825 _ACEOF 16826 if ac_fn_c_try_compile "$LINENO" 16827 then : 16828 xorg_cv_cc_flag_unknown_warning_option=yes 16829 else $as_nop 16830 xorg_cv_cc_flag_unknown_warning_option=no 16831 fi 16832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16833 fi 16834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16835 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16837 CFLAGS="$xorg_testset_save_CFLAGS" 16838 fi 16839 16840 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16843 fi 16844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16846 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16847 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16848 then : 16849 printf %s "(cached) " >&6 16850 else $as_nop 16851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16852 /* end confdefs.h. */ 16853 int i; 16854 _ACEOF 16855 if ac_fn_c_try_compile "$LINENO" 16856 then : 16857 xorg_cv_cc_flag_unused_command_line_argument=yes 16858 else $as_nop 16859 xorg_cv_cc_flag_unused_command_line_argument=no 16860 fi 16861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16862 fi 16863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16864 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16865 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16866 CFLAGS="$xorg_testset_save_CFLAGS" 16867 fi 16868 16869 found="no" 16870 16871 if test $found = "no" ; then 16872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16874 fi 16875 16876 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16878 fi 16879 16880 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16881 16882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16883 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16884 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16885 if eval test \${$cacheid+y} 16886 then : 16887 printf %s "(cached) " >&6 16888 else $as_nop 16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16890 /* end confdefs.h. */ 16891 int i; 16892 int 16893 main (void) 16894 { 16895 16896 ; 16897 return 0; 16898 } 16899 _ACEOF 16900 if ac_fn_c_try_link "$LINENO" 16901 then : 16902 eval $cacheid=yes 16903 else $as_nop 16904 eval $cacheid=no 16905 fi 16906 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16907 conftest$ac_exeext conftest.$ac_ext 16908 fi 16909 16910 16911 CFLAGS="$xorg_testset_save_CFLAGS" 16912 16913 eval supported=\$$cacheid 16914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16915 printf "%s\n" "$supported" >&6; } 16916 if test "$supported" = "yes" ; then 16917 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16918 found="yes" 16919 fi 16920 fi 16921 16922 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16923 else 16924 { 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 16925 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;} 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 xorg_testset_save_CFLAGS="$CFLAGS" 16940 16941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16944 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16945 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16946 then : 16947 printf %s "(cached) " >&6 16948 else $as_nop 16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16950 /* end confdefs.h. */ 16951 int i; 16952 _ACEOF 16953 if ac_fn_c_try_compile "$LINENO" 16954 then : 16955 xorg_cv_cc_flag_unknown_warning_option=yes 16956 else $as_nop 16957 xorg_cv_cc_flag_unknown_warning_option=no 16958 fi 16959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16960 fi 16961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16962 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16964 CFLAGS="$xorg_testset_save_CFLAGS" 16965 fi 16966 16967 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16970 fi 16971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16973 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16974 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16975 then : 16976 printf %s "(cached) " >&6 16977 else $as_nop 16978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16979 /* end confdefs.h. */ 16980 int i; 16981 _ACEOF 16982 if ac_fn_c_try_compile "$LINENO" 16983 then : 16984 xorg_cv_cc_flag_unused_command_line_argument=yes 16985 else $as_nop 16986 xorg_cv_cc_flag_unused_command_line_argument=no 16987 fi 16988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16989 fi 16990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16991 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16993 CFLAGS="$xorg_testset_save_CFLAGS" 16994 fi 16995 16996 found="no" 16997 16998 if test $found = "no" ; then 16999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17001 fi 17002 17003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17005 fi 17006 17007 CFLAGS="$CFLAGS -Wimplicit" 17008 17009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17010 printf %s "checking if $CC supports -Wimplicit... " >&6; } 17011 cacheid=xorg_cv_cc_flag__Wimplicit 17012 if eval test \${$cacheid+y} 17013 then : 17014 printf %s "(cached) " >&6 17015 else $as_nop 17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17017 /* end confdefs.h. */ 17018 int i; 17019 int 17020 main (void) 17021 { 17022 17023 ; 17024 return 0; 17025 } 17026 _ACEOF 17027 if ac_fn_c_try_link "$LINENO" 17028 then : 17029 eval $cacheid=yes 17030 else $as_nop 17031 eval $cacheid=no 17032 fi 17033 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17034 conftest$ac_exeext conftest.$ac_ext 17035 fi 17036 17037 17038 CFLAGS="$xorg_testset_save_CFLAGS" 17039 17040 eval supported=\$$cacheid 17041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17042 printf "%s\n" "$supported" >&6; } 17043 if test "$supported" = "yes" ; then 17044 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17045 found="yes" 17046 fi 17047 fi 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 xorg_testset_save_CFLAGS="$CFLAGS" 17064 17065 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17068 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17069 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17070 then : 17071 printf %s "(cached) " >&6 17072 else $as_nop 17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17074 /* end confdefs.h. */ 17075 int i; 17076 _ACEOF 17077 if ac_fn_c_try_compile "$LINENO" 17078 then : 17079 xorg_cv_cc_flag_unknown_warning_option=yes 17080 else $as_nop 17081 xorg_cv_cc_flag_unknown_warning_option=no 17082 fi 17083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17084 fi 17085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17086 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17088 CFLAGS="$xorg_testset_save_CFLAGS" 17089 fi 17090 17091 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17094 fi 17095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17097 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17098 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17099 then : 17100 printf %s "(cached) " >&6 17101 else $as_nop 17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17103 /* end confdefs.h. */ 17104 int i; 17105 _ACEOF 17106 if ac_fn_c_try_compile "$LINENO" 17107 then : 17108 xorg_cv_cc_flag_unused_command_line_argument=yes 17109 else $as_nop 17110 xorg_cv_cc_flag_unused_command_line_argument=no 17111 fi 17112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17113 fi 17114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17115 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17117 CFLAGS="$xorg_testset_save_CFLAGS" 17118 fi 17119 17120 found="no" 17121 17122 if test $found = "no" ; then 17123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17125 fi 17126 17127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17129 fi 17130 17131 CFLAGS="$CFLAGS -Wnonnull" 17132 17133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17134 printf %s "checking if $CC supports -Wnonnull... " >&6; } 17135 cacheid=xorg_cv_cc_flag__Wnonnull 17136 if eval test \${$cacheid+y} 17137 then : 17138 printf %s "(cached) " >&6 17139 else $as_nop 17140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17141 /* end confdefs.h. */ 17142 int i; 17143 int 17144 main (void) 17145 { 17146 17147 ; 17148 return 0; 17149 } 17150 _ACEOF 17151 if ac_fn_c_try_link "$LINENO" 17152 then : 17153 eval $cacheid=yes 17154 else $as_nop 17155 eval $cacheid=no 17156 fi 17157 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17158 conftest$ac_exeext conftest.$ac_ext 17159 fi 17160 17161 17162 CFLAGS="$xorg_testset_save_CFLAGS" 17163 17164 eval supported=\$$cacheid 17165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17166 printf "%s\n" "$supported" >&6; } 17167 if test "$supported" = "yes" ; then 17168 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17169 found="yes" 17170 fi 17171 fi 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 xorg_testset_save_CFLAGS="$CFLAGS" 17188 17189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17192 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17193 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17194 then : 17195 printf %s "(cached) " >&6 17196 else $as_nop 17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17198 /* end confdefs.h. */ 17199 int i; 17200 _ACEOF 17201 if ac_fn_c_try_compile "$LINENO" 17202 then : 17203 xorg_cv_cc_flag_unknown_warning_option=yes 17204 else $as_nop 17205 xorg_cv_cc_flag_unknown_warning_option=no 17206 fi 17207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17208 fi 17209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17210 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17212 CFLAGS="$xorg_testset_save_CFLAGS" 17213 fi 17214 17215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17218 fi 17219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17221 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17222 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17223 then : 17224 printf %s "(cached) " >&6 17225 else $as_nop 17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17227 /* end confdefs.h. */ 17228 int i; 17229 _ACEOF 17230 if ac_fn_c_try_compile "$LINENO" 17231 then : 17232 xorg_cv_cc_flag_unused_command_line_argument=yes 17233 else $as_nop 17234 xorg_cv_cc_flag_unused_command_line_argument=no 17235 fi 17236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17237 fi 17238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17239 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17241 CFLAGS="$xorg_testset_save_CFLAGS" 17242 fi 17243 17244 found="no" 17245 17246 if test $found = "no" ; then 17247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17248 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17249 fi 17250 17251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17253 fi 17254 17255 CFLAGS="$CFLAGS -Winit-self" 17256 17257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17258 printf %s "checking if $CC supports -Winit-self... " >&6; } 17259 cacheid=xorg_cv_cc_flag__Winit_self 17260 if eval test \${$cacheid+y} 17261 then : 17262 printf %s "(cached) " >&6 17263 else $as_nop 17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17265 /* end confdefs.h. */ 17266 int i; 17267 int 17268 main (void) 17269 { 17270 17271 ; 17272 return 0; 17273 } 17274 _ACEOF 17275 if ac_fn_c_try_link "$LINENO" 17276 then : 17277 eval $cacheid=yes 17278 else $as_nop 17279 eval $cacheid=no 17280 fi 17281 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17282 conftest$ac_exeext conftest.$ac_ext 17283 fi 17284 17285 17286 CFLAGS="$xorg_testset_save_CFLAGS" 17287 17288 eval supported=\$$cacheid 17289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17290 printf "%s\n" "$supported" >&6; } 17291 if test "$supported" = "yes" ; then 17292 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17293 found="yes" 17294 fi 17295 fi 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 xorg_testset_save_CFLAGS="$CFLAGS" 17312 17313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17317 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17318 then : 17319 printf %s "(cached) " >&6 17320 else $as_nop 17321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17322 /* end confdefs.h. */ 17323 int i; 17324 _ACEOF 17325 if ac_fn_c_try_compile "$LINENO" 17326 then : 17327 xorg_cv_cc_flag_unknown_warning_option=yes 17328 else $as_nop 17329 xorg_cv_cc_flag_unknown_warning_option=no 17330 fi 17331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17332 fi 17333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17334 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17336 CFLAGS="$xorg_testset_save_CFLAGS" 17337 fi 17338 17339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17342 fi 17343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17345 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17346 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17347 then : 17348 printf %s "(cached) " >&6 17349 else $as_nop 17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17351 /* end confdefs.h. */ 17352 int i; 17353 _ACEOF 17354 if ac_fn_c_try_compile "$LINENO" 17355 then : 17356 xorg_cv_cc_flag_unused_command_line_argument=yes 17357 else $as_nop 17358 xorg_cv_cc_flag_unused_command_line_argument=no 17359 fi 17360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17361 fi 17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17365 CFLAGS="$xorg_testset_save_CFLAGS" 17366 fi 17367 17368 found="no" 17369 17370 if test $found = "no" ; then 17371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17373 fi 17374 17375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17377 fi 17378 17379 CFLAGS="$CFLAGS -Wmain" 17380 17381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17382 printf %s "checking if $CC supports -Wmain... " >&6; } 17383 cacheid=xorg_cv_cc_flag__Wmain 17384 if eval test \${$cacheid+y} 17385 then : 17386 printf %s "(cached) " >&6 17387 else $as_nop 17388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17389 /* end confdefs.h. */ 17390 int i; 17391 int 17392 main (void) 17393 { 17394 17395 ; 17396 return 0; 17397 } 17398 _ACEOF 17399 if ac_fn_c_try_link "$LINENO" 17400 then : 17401 eval $cacheid=yes 17402 else $as_nop 17403 eval $cacheid=no 17404 fi 17405 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17406 conftest$ac_exeext conftest.$ac_ext 17407 fi 17408 17409 17410 CFLAGS="$xorg_testset_save_CFLAGS" 17411 17412 eval supported=\$$cacheid 17413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17414 printf "%s\n" "$supported" >&6; } 17415 if test "$supported" = "yes" ; then 17416 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17417 found="yes" 17418 fi 17419 fi 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 xorg_testset_save_CFLAGS="$CFLAGS" 17436 17437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17440 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17441 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17442 then : 17443 printf %s "(cached) " >&6 17444 else $as_nop 17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17446 /* end confdefs.h. */ 17447 int i; 17448 _ACEOF 17449 if ac_fn_c_try_compile "$LINENO" 17450 then : 17451 xorg_cv_cc_flag_unknown_warning_option=yes 17452 else $as_nop 17453 xorg_cv_cc_flag_unknown_warning_option=no 17454 fi 17455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17456 fi 17457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17458 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17460 CFLAGS="$xorg_testset_save_CFLAGS" 17461 fi 17462 17463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17466 fi 17467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17469 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17470 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17471 then : 17472 printf %s "(cached) " >&6 17473 else $as_nop 17474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17475 /* end confdefs.h. */ 17476 int i; 17477 _ACEOF 17478 if ac_fn_c_try_compile "$LINENO" 17479 then : 17480 xorg_cv_cc_flag_unused_command_line_argument=yes 17481 else $as_nop 17482 xorg_cv_cc_flag_unused_command_line_argument=no 17483 fi 17484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17485 fi 17486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17487 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17489 CFLAGS="$xorg_testset_save_CFLAGS" 17490 fi 17491 17492 found="no" 17493 17494 if test $found = "no" ; then 17495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17497 fi 17498 17499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17501 fi 17502 17503 CFLAGS="$CFLAGS -Wmissing-braces" 17504 17505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17506 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17507 cacheid=xorg_cv_cc_flag__Wmissing_braces 17508 if eval test \${$cacheid+y} 17509 then : 17510 printf %s "(cached) " >&6 17511 else $as_nop 17512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17513 /* end confdefs.h. */ 17514 int i; 17515 int 17516 main (void) 17517 { 17518 17519 ; 17520 return 0; 17521 } 17522 _ACEOF 17523 if ac_fn_c_try_link "$LINENO" 17524 then : 17525 eval $cacheid=yes 17526 else $as_nop 17527 eval $cacheid=no 17528 fi 17529 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17530 conftest$ac_exeext conftest.$ac_ext 17531 fi 17532 17533 17534 CFLAGS="$xorg_testset_save_CFLAGS" 17535 17536 eval supported=\$$cacheid 17537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17538 printf "%s\n" "$supported" >&6; } 17539 if test "$supported" = "yes" ; then 17540 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17541 found="yes" 17542 fi 17543 fi 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 xorg_testset_save_CFLAGS="$CFLAGS" 17560 17561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17564 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17565 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17566 then : 17567 printf %s "(cached) " >&6 17568 else $as_nop 17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17570 /* end confdefs.h. */ 17571 int i; 17572 _ACEOF 17573 if ac_fn_c_try_compile "$LINENO" 17574 then : 17575 xorg_cv_cc_flag_unknown_warning_option=yes 17576 else $as_nop 17577 xorg_cv_cc_flag_unknown_warning_option=no 17578 fi 17579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17580 fi 17581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17582 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17584 CFLAGS="$xorg_testset_save_CFLAGS" 17585 fi 17586 17587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17590 fi 17591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17593 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17594 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17595 then : 17596 printf %s "(cached) " >&6 17597 else $as_nop 17598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17599 /* end confdefs.h. */ 17600 int i; 17601 _ACEOF 17602 if ac_fn_c_try_compile "$LINENO" 17603 then : 17604 xorg_cv_cc_flag_unused_command_line_argument=yes 17605 else $as_nop 17606 xorg_cv_cc_flag_unused_command_line_argument=no 17607 fi 17608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17609 fi 17610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17611 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17613 CFLAGS="$xorg_testset_save_CFLAGS" 17614 fi 17615 17616 found="no" 17617 17618 if test $found = "no" ; then 17619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17621 fi 17622 17623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17625 fi 17626 17627 CFLAGS="$CFLAGS -Wsequence-point" 17628 17629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17630 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17631 cacheid=xorg_cv_cc_flag__Wsequence_point 17632 if eval test \${$cacheid+y} 17633 then : 17634 printf %s "(cached) " >&6 17635 else $as_nop 17636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17637 /* end confdefs.h. */ 17638 int i; 17639 int 17640 main (void) 17641 { 17642 17643 ; 17644 return 0; 17645 } 17646 _ACEOF 17647 if ac_fn_c_try_link "$LINENO" 17648 then : 17649 eval $cacheid=yes 17650 else $as_nop 17651 eval $cacheid=no 17652 fi 17653 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17654 conftest$ac_exeext conftest.$ac_ext 17655 fi 17656 17657 17658 CFLAGS="$xorg_testset_save_CFLAGS" 17659 17660 eval supported=\$$cacheid 17661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17662 printf "%s\n" "$supported" >&6; } 17663 if test "$supported" = "yes" ; then 17664 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17665 found="yes" 17666 fi 17667 fi 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 xorg_testset_save_CFLAGS="$CFLAGS" 17684 17685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17688 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17689 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17690 then : 17691 printf %s "(cached) " >&6 17692 else $as_nop 17693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17694 /* end confdefs.h. */ 17695 int i; 17696 _ACEOF 17697 if ac_fn_c_try_compile "$LINENO" 17698 then : 17699 xorg_cv_cc_flag_unknown_warning_option=yes 17700 else $as_nop 17701 xorg_cv_cc_flag_unknown_warning_option=no 17702 fi 17703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17704 fi 17705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17706 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17708 CFLAGS="$xorg_testset_save_CFLAGS" 17709 fi 17710 17711 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17714 fi 17715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17717 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17718 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17719 then : 17720 printf %s "(cached) " >&6 17721 else $as_nop 17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17723 /* end confdefs.h. */ 17724 int i; 17725 _ACEOF 17726 if ac_fn_c_try_compile "$LINENO" 17727 then : 17728 xorg_cv_cc_flag_unused_command_line_argument=yes 17729 else $as_nop 17730 xorg_cv_cc_flag_unused_command_line_argument=no 17731 fi 17732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17733 fi 17734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17735 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17737 CFLAGS="$xorg_testset_save_CFLAGS" 17738 fi 17739 17740 found="no" 17741 17742 if test $found = "no" ; then 17743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17745 fi 17746 17747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17749 fi 17750 17751 CFLAGS="$CFLAGS -Wreturn-type" 17752 17753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17754 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17755 cacheid=xorg_cv_cc_flag__Wreturn_type 17756 if eval test \${$cacheid+y} 17757 then : 17758 printf %s "(cached) " >&6 17759 else $as_nop 17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17761 /* end confdefs.h. */ 17762 int i; 17763 int 17764 main (void) 17765 { 17766 17767 ; 17768 return 0; 17769 } 17770 _ACEOF 17771 if ac_fn_c_try_link "$LINENO" 17772 then : 17773 eval $cacheid=yes 17774 else $as_nop 17775 eval $cacheid=no 17776 fi 17777 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17778 conftest$ac_exeext conftest.$ac_ext 17779 fi 17780 17781 17782 CFLAGS="$xorg_testset_save_CFLAGS" 17783 17784 eval supported=\$$cacheid 17785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17786 printf "%s\n" "$supported" >&6; } 17787 if test "$supported" = "yes" ; then 17788 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17789 found="yes" 17790 fi 17791 fi 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 xorg_testset_save_CFLAGS="$CFLAGS" 17808 17809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17812 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17813 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17814 then : 17815 printf %s "(cached) " >&6 17816 else $as_nop 17817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17818 /* end confdefs.h. */ 17819 int i; 17820 _ACEOF 17821 if ac_fn_c_try_compile "$LINENO" 17822 then : 17823 xorg_cv_cc_flag_unknown_warning_option=yes 17824 else $as_nop 17825 xorg_cv_cc_flag_unknown_warning_option=no 17826 fi 17827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17828 fi 17829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17830 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17832 CFLAGS="$xorg_testset_save_CFLAGS" 17833 fi 17834 17835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17838 fi 17839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17841 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17842 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17843 then : 17844 printf %s "(cached) " >&6 17845 else $as_nop 17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17847 /* end confdefs.h. */ 17848 int i; 17849 _ACEOF 17850 if ac_fn_c_try_compile "$LINENO" 17851 then : 17852 xorg_cv_cc_flag_unused_command_line_argument=yes 17853 else $as_nop 17854 xorg_cv_cc_flag_unused_command_line_argument=no 17855 fi 17856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17857 fi 17858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17859 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17861 CFLAGS="$xorg_testset_save_CFLAGS" 17862 fi 17863 17864 found="no" 17865 17866 if test $found = "no" ; then 17867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17869 fi 17870 17871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17873 fi 17874 17875 CFLAGS="$CFLAGS -Wtrigraphs" 17876 17877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17878 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 17879 cacheid=xorg_cv_cc_flag__Wtrigraphs 17880 if eval test \${$cacheid+y} 17881 then : 17882 printf %s "(cached) " >&6 17883 else $as_nop 17884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17885 /* end confdefs.h. */ 17886 int i; 17887 int 17888 main (void) 17889 { 17890 17891 ; 17892 return 0; 17893 } 17894 _ACEOF 17895 if ac_fn_c_try_link "$LINENO" 17896 then : 17897 eval $cacheid=yes 17898 else $as_nop 17899 eval $cacheid=no 17900 fi 17901 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17902 conftest$ac_exeext conftest.$ac_ext 17903 fi 17904 17905 17906 CFLAGS="$xorg_testset_save_CFLAGS" 17907 17908 eval supported=\$$cacheid 17909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17910 printf "%s\n" "$supported" >&6; } 17911 if test "$supported" = "yes" ; then 17912 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17913 found="yes" 17914 fi 17915 fi 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 xorg_testset_save_CFLAGS="$CFLAGS" 17932 17933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17936 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17937 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17938 then : 17939 printf %s "(cached) " >&6 17940 else $as_nop 17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17942 /* end confdefs.h. */ 17943 int i; 17944 _ACEOF 17945 if ac_fn_c_try_compile "$LINENO" 17946 then : 17947 xorg_cv_cc_flag_unknown_warning_option=yes 17948 else $as_nop 17949 xorg_cv_cc_flag_unknown_warning_option=no 17950 fi 17951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17952 fi 17953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17954 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17956 CFLAGS="$xorg_testset_save_CFLAGS" 17957 fi 17958 17959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17962 fi 17963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17965 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17966 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17967 then : 17968 printf %s "(cached) " >&6 17969 else $as_nop 17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17971 /* end confdefs.h. */ 17972 int i; 17973 _ACEOF 17974 if ac_fn_c_try_compile "$LINENO" 17975 then : 17976 xorg_cv_cc_flag_unused_command_line_argument=yes 17977 else $as_nop 17978 xorg_cv_cc_flag_unused_command_line_argument=no 17979 fi 17980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17981 fi 17982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17983 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17985 CFLAGS="$xorg_testset_save_CFLAGS" 17986 fi 17987 17988 found="no" 17989 17990 if test $found = "no" ; then 17991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17993 fi 17994 17995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17997 fi 17998 17999 CFLAGS="$CFLAGS -Warray-bounds" 18000 18001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18002 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18003 cacheid=xorg_cv_cc_flag__Warray_bounds 18004 if eval test \${$cacheid+y} 18005 then : 18006 printf %s "(cached) " >&6 18007 else $as_nop 18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18009 /* end confdefs.h. */ 18010 int i; 18011 int 18012 main (void) 18013 { 18014 18015 ; 18016 return 0; 18017 } 18018 _ACEOF 18019 if ac_fn_c_try_link "$LINENO" 18020 then : 18021 eval $cacheid=yes 18022 else $as_nop 18023 eval $cacheid=no 18024 fi 18025 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18026 conftest$ac_exeext conftest.$ac_ext 18027 fi 18028 18029 18030 CFLAGS="$xorg_testset_save_CFLAGS" 18031 18032 eval supported=\$$cacheid 18033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18034 printf "%s\n" "$supported" >&6; } 18035 if test "$supported" = "yes" ; then 18036 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18037 found="yes" 18038 fi 18039 fi 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 xorg_testset_save_CFLAGS="$CFLAGS" 18056 18057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18060 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18061 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18062 then : 18063 printf %s "(cached) " >&6 18064 else $as_nop 18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18066 /* end confdefs.h. */ 18067 int i; 18068 _ACEOF 18069 if ac_fn_c_try_compile "$LINENO" 18070 then : 18071 xorg_cv_cc_flag_unknown_warning_option=yes 18072 else $as_nop 18073 xorg_cv_cc_flag_unknown_warning_option=no 18074 fi 18075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18076 fi 18077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18078 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18080 CFLAGS="$xorg_testset_save_CFLAGS" 18081 fi 18082 18083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18086 fi 18087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18089 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18090 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18091 then : 18092 printf %s "(cached) " >&6 18093 else $as_nop 18094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18095 /* end confdefs.h. */ 18096 int i; 18097 _ACEOF 18098 if ac_fn_c_try_compile "$LINENO" 18099 then : 18100 xorg_cv_cc_flag_unused_command_line_argument=yes 18101 else $as_nop 18102 xorg_cv_cc_flag_unused_command_line_argument=no 18103 fi 18104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18105 fi 18106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18107 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18109 CFLAGS="$xorg_testset_save_CFLAGS" 18110 fi 18111 18112 found="no" 18113 18114 if test $found = "no" ; then 18115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18117 fi 18118 18119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18121 fi 18122 18123 CFLAGS="$CFLAGS -Wwrite-strings" 18124 18125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18126 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18127 cacheid=xorg_cv_cc_flag__Wwrite_strings 18128 if eval test \${$cacheid+y} 18129 then : 18130 printf %s "(cached) " >&6 18131 else $as_nop 18132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18133 /* end confdefs.h. */ 18134 int i; 18135 int 18136 main (void) 18137 { 18138 18139 ; 18140 return 0; 18141 } 18142 _ACEOF 18143 if ac_fn_c_try_link "$LINENO" 18144 then : 18145 eval $cacheid=yes 18146 else $as_nop 18147 eval $cacheid=no 18148 fi 18149 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18150 conftest$ac_exeext conftest.$ac_ext 18151 fi 18152 18153 18154 CFLAGS="$xorg_testset_save_CFLAGS" 18155 18156 eval supported=\$$cacheid 18157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18158 printf "%s\n" "$supported" >&6; } 18159 if test "$supported" = "yes" ; then 18160 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18161 found="yes" 18162 fi 18163 fi 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 xorg_testset_save_CFLAGS="$CFLAGS" 18180 18181 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18184 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18185 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18186 then : 18187 printf %s "(cached) " >&6 18188 else $as_nop 18189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18190 /* end confdefs.h. */ 18191 int i; 18192 _ACEOF 18193 if ac_fn_c_try_compile "$LINENO" 18194 then : 18195 xorg_cv_cc_flag_unknown_warning_option=yes 18196 else $as_nop 18197 xorg_cv_cc_flag_unknown_warning_option=no 18198 fi 18199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18200 fi 18201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18202 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18204 CFLAGS="$xorg_testset_save_CFLAGS" 18205 fi 18206 18207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18210 fi 18211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18213 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18214 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18215 then : 18216 printf %s "(cached) " >&6 18217 else $as_nop 18218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18219 /* end confdefs.h. */ 18220 int i; 18221 _ACEOF 18222 if ac_fn_c_try_compile "$LINENO" 18223 then : 18224 xorg_cv_cc_flag_unused_command_line_argument=yes 18225 else $as_nop 18226 xorg_cv_cc_flag_unused_command_line_argument=no 18227 fi 18228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18229 fi 18230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18231 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18233 CFLAGS="$xorg_testset_save_CFLAGS" 18234 fi 18235 18236 found="no" 18237 18238 if test $found = "no" ; then 18239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18241 fi 18242 18243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18245 fi 18246 18247 CFLAGS="$CFLAGS -Waddress" 18248 18249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18250 printf %s "checking if $CC supports -Waddress... " >&6; } 18251 cacheid=xorg_cv_cc_flag__Waddress 18252 if eval test \${$cacheid+y} 18253 then : 18254 printf %s "(cached) " >&6 18255 else $as_nop 18256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18257 /* end confdefs.h. */ 18258 int i; 18259 int 18260 main (void) 18261 { 18262 18263 ; 18264 return 0; 18265 } 18266 _ACEOF 18267 if ac_fn_c_try_link "$LINENO" 18268 then : 18269 eval $cacheid=yes 18270 else $as_nop 18271 eval $cacheid=no 18272 fi 18273 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18274 conftest$ac_exeext conftest.$ac_ext 18275 fi 18276 18277 18278 CFLAGS="$xorg_testset_save_CFLAGS" 18279 18280 eval supported=\$$cacheid 18281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18282 printf "%s\n" "$supported" >&6; } 18283 if test "$supported" = "yes" ; then 18284 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18285 found="yes" 18286 fi 18287 fi 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 xorg_testset_save_CFLAGS="$CFLAGS" 18304 18305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18308 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18309 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18310 then : 18311 printf %s "(cached) " >&6 18312 else $as_nop 18313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18314 /* end confdefs.h. */ 18315 int i; 18316 _ACEOF 18317 if ac_fn_c_try_compile "$LINENO" 18318 then : 18319 xorg_cv_cc_flag_unknown_warning_option=yes 18320 else $as_nop 18321 xorg_cv_cc_flag_unknown_warning_option=no 18322 fi 18323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18324 fi 18325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18326 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18328 CFLAGS="$xorg_testset_save_CFLAGS" 18329 fi 18330 18331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18334 fi 18335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18337 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18338 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18339 then : 18340 printf %s "(cached) " >&6 18341 else $as_nop 18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18343 /* end confdefs.h. */ 18344 int i; 18345 _ACEOF 18346 if ac_fn_c_try_compile "$LINENO" 18347 then : 18348 xorg_cv_cc_flag_unused_command_line_argument=yes 18349 else $as_nop 18350 xorg_cv_cc_flag_unused_command_line_argument=no 18351 fi 18352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18353 fi 18354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18355 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18357 CFLAGS="$xorg_testset_save_CFLAGS" 18358 fi 18359 18360 found="no" 18361 18362 if test $found = "no" ; then 18363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18365 fi 18366 18367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18369 fi 18370 18371 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18372 18373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18374 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18375 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18376 if eval test \${$cacheid+y} 18377 then : 18378 printf %s "(cached) " >&6 18379 else $as_nop 18380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18381 /* end confdefs.h. */ 18382 int i; 18383 int 18384 main (void) 18385 { 18386 18387 ; 18388 return 0; 18389 } 18390 _ACEOF 18391 if ac_fn_c_try_link "$LINENO" 18392 then : 18393 eval $cacheid=yes 18394 else $as_nop 18395 eval $cacheid=no 18396 fi 18397 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18398 conftest$ac_exeext conftest.$ac_ext 18399 fi 18400 18401 18402 CFLAGS="$xorg_testset_save_CFLAGS" 18403 18404 eval supported=\$$cacheid 18405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18406 printf "%s\n" "$supported" >&6; } 18407 if test "$supported" = "yes" ; then 18408 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18409 found="yes" 18410 fi 18411 fi 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 xorg_testset_save_CFLAGS="$CFLAGS" 18428 18429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18432 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18433 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18434 then : 18435 printf %s "(cached) " >&6 18436 else $as_nop 18437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18438 /* end confdefs.h. */ 18439 int i; 18440 _ACEOF 18441 if ac_fn_c_try_compile "$LINENO" 18442 then : 18443 xorg_cv_cc_flag_unknown_warning_option=yes 18444 else $as_nop 18445 xorg_cv_cc_flag_unknown_warning_option=no 18446 fi 18447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18448 fi 18449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18450 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18452 CFLAGS="$xorg_testset_save_CFLAGS" 18453 fi 18454 18455 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18458 fi 18459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18461 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18462 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18463 then : 18464 printf %s "(cached) " >&6 18465 else $as_nop 18466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18467 /* end confdefs.h. */ 18468 int i; 18469 _ACEOF 18470 if ac_fn_c_try_compile "$LINENO" 18471 then : 18472 xorg_cv_cc_flag_unused_command_line_argument=yes 18473 else $as_nop 18474 xorg_cv_cc_flag_unused_command_line_argument=no 18475 fi 18476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18477 fi 18478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18479 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18481 CFLAGS="$xorg_testset_save_CFLAGS" 18482 fi 18483 18484 found="no" 18485 18486 if test $found = "no" ; then 18487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18489 fi 18490 18491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18493 fi 18494 18495 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18496 18497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18498 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18499 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18500 if eval test \${$cacheid+y} 18501 then : 18502 printf %s "(cached) " >&6 18503 else $as_nop 18504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18505 /* end confdefs.h. */ 18506 int i; 18507 int 18508 main (void) 18509 { 18510 18511 ; 18512 return 0; 18513 } 18514 _ACEOF 18515 if ac_fn_c_try_link "$LINENO" 18516 then : 18517 eval $cacheid=yes 18518 else $as_nop 18519 eval $cacheid=no 18520 fi 18521 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18522 conftest$ac_exeext conftest.$ac_ext 18523 fi 18524 18525 18526 CFLAGS="$xorg_testset_save_CFLAGS" 18527 18528 eval supported=\$$cacheid 18529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18530 printf "%s\n" "$supported" >&6; } 18531 if test "$supported" = "yes" ; then 18532 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18533 found="yes" 18534 fi 18535 fi 18536 18537 18538 fi 18539 18540 18541 18542 18543 18544 18545 18546 CWARNFLAGS="$BASE_CFLAGS" 18547 if test "x$GCC" = xyes ; then 18548 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18549 fi 18550 18551 18552 18553 18554 18555 18556 18557 18558 # Check whether --enable-strict-compilation was given. 18559 if test ${enable_strict_compilation+y} 18560 then : 18561 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18562 else $as_nop 18563 STRICT_COMPILE=no 18564 fi 18565 18566 18567 18568 18569 18570 18571 STRICT_CFLAGS="" 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 xorg_testset_save_CFLAGS="$CFLAGS" 18586 18587 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18590 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18591 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18592 then : 18593 printf %s "(cached) " >&6 18594 else $as_nop 18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18596 /* end confdefs.h. */ 18597 int i; 18598 _ACEOF 18599 if ac_fn_c_try_compile "$LINENO" 18600 then : 18601 xorg_cv_cc_flag_unknown_warning_option=yes 18602 else $as_nop 18603 xorg_cv_cc_flag_unknown_warning_option=no 18604 fi 18605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18606 fi 18607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18608 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18610 CFLAGS="$xorg_testset_save_CFLAGS" 18611 fi 18612 18613 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18616 fi 18617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18619 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18620 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18621 then : 18622 printf %s "(cached) " >&6 18623 else $as_nop 18624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18625 /* end confdefs.h. */ 18626 int i; 18627 _ACEOF 18628 if ac_fn_c_try_compile "$LINENO" 18629 then : 18630 xorg_cv_cc_flag_unused_command_line_argument=yes 18631 else $as_nop 18632 xorg_cv_cc_flag_unused_command_line_argument=no 18633 fi 18634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18635 fi 18636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18637 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18639 CFLAGS="$xorg_testset_save_CFLAGS" 18640 fi 18641 18642 found="no" 18643 18644 if test $found = "no" ; then 18645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18646 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18647 fi 18648 18649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18651 fi 18652 18653 CFLAGS="$CFLAGS -pedantic" 18654 18655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18656 printf %s "checking if $CC supports -pedantic... " >&6; } 18657 cacheid=xorg_cv_cc_flag__pedantic 18658 if eval test \${$cacheid+y} 18659 then : 18660 printf %s "(cached) " >&6 18661 else $as_nop 18662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18663 /* end confdefs.h. */ 18664 int i; 18665 int 18666 main (void) 18667 { 18668 18669 ; 18670 return 0; 18671 } 18672 _ACEOF 18673 if ac_fn_c_try_link "$LINENO" 18674 then : 18675 eval $cacheid=yes 18676 else $as_nop 18677 eval $cacheid=no 18678 fi 18679 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18680 conftest$ac_exeext conftest.$ac_ext 18681 fi 18682 18683 18684 CFLAGS="$xorg_testset_save_CFLAGS" 18685 18686 eval supported=\$$cacheid 18687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18688 printf "%s\n" "$supported" >&6; } 18689 if test "$supported" = "yes" ; then 18690 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18691 found="yes" 18692 fi 18693 fi 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 xorg_testset_save_CFLAGS="$CFLAGS" 18710 18711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18714 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18715 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18716 then : 18717 printf %s "(cached) " >&6 18718 else $as_nop 18719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18720 /* end confdefs.h. */ 18721 int i; 18722 _ACEOF 18723 if ac_fn_c_try_compile "$LINENO" 18724 then : 18725 xorg_cv_cc_flag_unknown_warning_option=yes 18726 else $as_nop 18727 xorg_cv_cc_flag_unknown_warning_option=no 18728 fi 18729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18730 fi 18731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18732 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18734 CFLAGS="$xorg_testset_save_CFLAGS" 18735 fi 18736 18737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18740 fi 18741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18743 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18744 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18745 then : 18746 printf %s "(cached) " >&6 18747 else $as_nop 18748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18749 /* end confdefs.h. */ 18750 int i; 18751 _ACEOF 18752 if ac_fn_c_try_compile "$LINENO" 18753 then : 18754 xorg_cv_cc_flag_unused_command_line_argument=yes 18755 else $as_nop 18756 xorg_cv_cc_flag_unused_command_line_argument=no 18757 fi 18758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18759 fi 18760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18761 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18763 CFLAGS="$xorg_testset_save_CFLAGS" 18764 fi 18765 18766 found="no" 18767 18768 if test $found = "no" ; then 18769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18771 fi 18772 18773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18775 fi 18776 18777 CFLAGS="$CFLAGS -Werror" 18778 18779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18780 printf %s "checking if $CC supports -Werror... " >&6; } 18781 cacheid=xorg_cv_cc_flag__Werror 18782 if eval test \${$cacheid+y} 18783 then : 18784 printf %s "(cached) " >&6 18785 else $as_nop 18786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18787 /* end confdefs.h. */ 18788 int i; 18789 int 18790 main (void) 18791 { 18792 18793 ; 18794 return 0; 18795 } 18796 _ACEOF 18797 if ac_fn_c_try_link "$LINENO" 18798 then : 18799 eval $cacheid=yes 18800 else $as_nop 18801 eval $cacheid=no 18802 fi 18803 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18804 conftest$ac_exeext conftest.$ac_ext 18805 fi 18806 18807 18808 CFLAGS="$xorg_testset_save_CFLAGS" 18809 18810 eval supported=\$$cacheid 18811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18812 printf "%s\n" "$supported" >&6; } 18813 if test "$supported" = "yes" ; then 18814 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18815 found="yes" 18816 fi 18817 fi 18818 18819 if test $found = "no" ; then 18820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18822 fi 18823 18824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18826 fi 18827 18828 CFLAGS="$CFLAGS -errwarn" 18829 18830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18831 printf %s "checking if $CC supports -errwarn... " >&6; } 18832 cacheid=xorg_cv_cc_flag__errwarn 18833 if eval test \${$cacheid+y} 18834 then : 18835 printf %s "(cached) " >&6 18836 else $as_nop 18837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18838 /* end confdefs.h. */ 18839 int i; 18840 int 18841 main (void) 18842 { 18843 18844 ; 18845 return 0; 18846 } 18847 _ACEOF 18848 if ac_fn_c_try_link "$LINENO" 18849 then : 18850 eval $cacheid=yes 18851 else $as_nop 18852 eval $cacheid=no 18853 fi 18854 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18855 conftest$ac_exeext conftest.$ac_ext 18856 fi 18857 18858 18859 CFLAGS="$xorg_testset_save_CFLAGS" 18860 18861 eval supported=\$$cacheid 18862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18863 printf "%s\n" "$supported" >&6; } 18864 if test "$supported" = "yes" ; then 18865 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18866 found="yes" 18867 fi 18868 fi 18869 18870 18871 18872 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18873 # activate it with -Werror, so we add it here explicitly. 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887 xorg_testset_save_CFLAGS="$CFLAGS" 18888 18889 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18890 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18892 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18893 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18894 then : 18895 printf %s "(cached) " >&6 18896 else $as_nop 18897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18898 /* end confdefs.h. */ 18899 int i; 18900 _ACEOF 18901 if ac_fn_c_try_compile "$LINENO" 18902 then : 18903 xorg_cv_cc_flag_unknown_warning_option=yes 18904 else $as_nop 18905 xorg_cv_cc_flag_unknown_warning_option=no 18906 fi 18907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18908 fi 18909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18910 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18912 CFLAGS="$xorg_testset_save_CFLAGS" 18913 fi 18914 18915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18918 fi 18919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18921 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18922 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18923 then : 18924 printf %s "(cached) " >&6 18925 else $as_nop 18926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18927 /* end confdefs.h. */ 18928 int i; 18929 _ACEOF 18930 if ac_fn_c_try_compile "$LINENO" 18931 then : 18932 xorg_cv_cc_flag_unused_command_line_argument=yes 18933 else $as_nop 18934 xorg_cv_cc_flag_unused_command_line_argument=no 18935 fi 18936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18937 fi 18938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18939 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18941 CFLAGS="$xorg_testset_save_CFLAGS" 18942 fi 18943 18944 found="no" 18945 18946 if test $found = "no" ; then 18947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18949 fi 18950 18951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18953 fi 18954 18955 CFLAGS="$CFLAGS -Werror=attributes" 18956 18957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18958 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 18959 cacheid=xorg_cv_cc_flag__Werror_attributes 18960 if eval test \${$cacheid+y} 18961 then : 18962 printf %s "(cached) " >&6 18963 else $as_nop 18964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18965 /* end confdefs.h. */ 18966 int i; 18967 int 18968 main (void) 18969 { 18970 18971 ; 18972 return 0; 18973 } 18974 _ACEOF 18975 if ac_fn_c_try_link "$LINENO" 18976 then : 18977 eval $cacheid=yes 18978 else $as_nop 18979 eval $cacheid=no 18980 fi 18981 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18982 conftest$ac_exeext conftest.$ac_ext 18983 fi 18984 18985 18986 CFLAGS="$xorg_testset_save_CFLAGS" 18987 18988 eval supported=\$$cacheid 18989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18990 printf "%s\n" "$supported" >&6; } 18991 if test "$supported" = "yes" ; then 18992 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18993 found="yes" 18994 fi 18995 fi 18996 18997 18998 18999 if test "x$STRICT_COMPILE" = "xyes"; then 19000 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19001 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19002 fi 19003 19004 19005 19006 19007 19008 19009 cat >>confdefs.h <<_ACEOF 19010 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19011 _ACEOF 19012 19013 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19014 if test "x$PVM" = "x"; then 19015 PVM="0" 19016 fi 19017 19018 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19019 19020 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19021 if test "x$PVP" = "x"; then 19022 PVP="0" 19023 fi 19024 19025 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19026 19027 19028 19029 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19030 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19031 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19032 touch \$(top_srcdir)/ChangeLog; \ 19033 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19034 19035 19036 19037 19038 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19039 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19040 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19041 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19042 touch \$(top_srcdir)/INSTALL; \ 19043 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19044 19045 19046 19047 19048 19049 19050 case $host_os in 19051 solaris*) 19052 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19053 # check for a man page file found in later versions that use 19054 # traditional section numbers instead 19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19056 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19057 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19058 then : 19059 printf %s "(cached) " >&6 19060 else $as_nop 19061 test "$cross_compiling" = yes && 19062 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19063 if test -r "/usr/share/man/man7/attributes.7"; then 19064 ac_cv_file__usr_share_man_man7_attributes_7=yes 19065 else 19066 ac_cv_file__usr_share_man_man7_attributes_7=no 19067 fi 19068 fi 19069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19070 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19071 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19072 then : 19073 SYSV_MAN_SECTIONS=false 19074 else $as_nop 19075 SYSV_MAN_SECTIONS=true 19076 fi 19077 19078 ;; 19079 *) SYSV_MAN_SECTIONS=false ;; 19080 esac 19081 19082 if test x$APP_MAN_SUFFIX = x ; then 19083 APP_MAN_SUFFIX=1 19084 fi 19085 if test x$APP_MAN_DIR = x ; then 19086 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19087 fi 19088 19089 if test x$LIB_MAN_SUFFIX = x ; then 19090 LIB_MAN_SUFFIX=3 19091 fi 19092 if test x$LIB_MAN_DIR = x ; then 19093 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19094 fi 19095 19096 if test x$FILE_MAN_SUFFIX = x ; then 19097 case $SYSV_MAN_SECTIONS in 19098 true) FILE_MAN_SUFFIX=4 ;; 19099 *) FILE_MAN_SUFFIX=5 ;; 19100 esac 19101 fi 19102 if test x$FILE_MAN_DIR = x ; then 19103 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19104 fi 19105 19106 if test x$MISC_MAN_SUFFIX = x ; then 19107 case $SYSV_MAN_SECTIONS in 19108 true) MISC_MAN_SUFFIX=5 ;; 19109 *) MISC_MAN_SUFFIX=7 ;; 19110 esac 19111 fi 19112 if test x$MISC_MAN_DIR = x ; then 19113 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19114 fi 19115 19116 if test x$DRIVER_MAN_SUFFIX = x ; then 19117 case $SYSV_MAN_SECTIONS in 19118 true) DRIVER_MAN_SUFFIX=7 ;; 19119 *) DRIVER_MAN_SUFFIX=4 ;; 19120 esac 19121 fi 19122 if test x$DRIVER_MAN_DIR = x ; then 19123 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19124 fi 19125 19126 if test x$ADMIN_MAN_SUFFIX = x ; then 19127 case $SYSV_MAN_SECTIONS in 19128 true) ADMIN_MAN_SUFFIX=1m ;; 19129 *) ADMIN_MAN_SUFFIX=8 ;; 19130 esac 19131 fi 19132 if test x$ADMIN_MAN_DIR = x ; then 19133 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19134 fi 19135 19136 19137 19138 19139 19140 19141 19142 19143 19144 19145 19146 19147 19148 19149 19150 XORG_MAN_PAGE="X Version 11" 19151 19152 MAN_SUBSTS="\ 19153 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19154 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19155 -e 's|__xservername__|Xorg|g' \ 19156 -e 's|__xconfigfile__|xorg.conf|g' \ 19157 -e 's|__projectroot__|\$(prefix)|g' \ 19158 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19159 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19160 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19161 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19162 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19163 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19164 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19165 19166 19167 19168 # Check whether --enable-silent-rules was given. 19169 if test ${enable_silent_rules+y} 19170 then : 19171 enableval=$enable_silent_rules; 19172 fi 19173 19174 case $enable_silent_rules in # ((( 19175 yes) AM_DEFAULT_VERBOSITY=0;; 19176 no) AM_DEFAULT_VERBOSITY=1;; 19177 *) AM_DEFAULT_VERBOSITY=0;; 19178 esac 19179 am_make=${MAKE-make} 19180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19181 printf %s "checking whether $am_make supports nested variables... " >&6; } 19182 if test ${am_cv_make_support_nested_variables+y} 19183 then : 19184 printf %s "(cached) " >&6 19185 else $as_nop 19186 if printf "%s\n" 'TRUE=$(BAR$(V)) 19187 BAR0=false 19188 BAR1=true 19189 V=1 19190 am__doit: 19191 @$(TRUE) 19192 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19193 am_cv_make_support_nested_variables=yes 19194 else 19195 am_cv_make_support_nested_variables=no 19196 fi 19197 fi 19198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19199 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19200 if test $am_cv_make_support_nested_variables = yes; then 19201 AM_V='$(V)' 19202 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19203 else 19204 AM_V=$AM_DEFAULT_VERBOSITY 19205 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19206 fi 19207 AM_BACKSLASH='\' 19208 19209 19210 19211 # Obtain compiler/linker options from server and required extensions 19212 19213 pkg_failed=no 19214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19215 printf %s "checking for XORG... " >&6; } 19216 19217 if test -n "$XORG_CFLAGS"; then 19218 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19219 elif test -n "$PKG_CONFIG"; then 19220 if test -n "$PKG_CONFIG" && \ 19221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10 xproto inputproto\""; } >&5 19222 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10 xproto inputproto") 2>&5 19223 ac_status=$? 19224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19225 test $ac_status = 0; }; then 19226 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.10 xproto inputproto" 2>/dev/null` 19227 test "x$?" != "x0" && pkg_failed=yes 19228 else 19229 pkg_failed=yes 19230 fi 19231 else 19232 pkg_failed=untried 19233 fi 19234 if test -n "$XORG_LIBS"; then 19235 pkg_cv_XORG_LIBS="$XORG_LIBS" 19236 elif test -n "$PKG_CONFIG"; then 19237 if test -n "$PKG_CONFIG" && \ 19238 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10 xproto inputproto\""; } >&5 19239 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10 xproto inputproto") 2>&5 19240 ac_status=$? 19241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19242 test $ac_status = 0; }; then 19243 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.10 xproto inputproto" 2>/dev/null` 19244 test "x$?" != "x0" && pkg_failed=yes 19245 else 19246 pkg_failed=yes 19247 fi 19248 else 19249 pkg_failed=untried 19250 fi 19251 19252 19253 19254 if test $pkg_failed = yes; then 19255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19256 printf "%s\n" "no" >&6; } 19257 19258 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19259 _pkg_short_errors_supported=yes 19260 else 19261 _pkg_short_errors_supported=no 19262 fi 19263 if test $_pkg_short_errors_supported = yes; then 19264 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.10 xproto inputproto" 2>&1` 19265 else 19266 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.10 xproto inputproto" 2>&1` 19267 fi 19268 # Put the nasty error message in config.log where it belongs 19269 echo "$XORG_PKG_ERRORS" >&5 19270 19271 as_fn_error $? "Package requirements (xorg-server >= 1.10 xproto inputproto) were not met: 19272 19273 $XORG_PKG_ERRORS 19274 19275 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19276 installed software in a non-standard prefix. 19277 19278 Alternatively, you may set the environment variables XORG_CFLAGS 19279 and XORG_LIBS to avoid the need to call pkg-config. 19280 See the pkg-config man page for more details." "$LINENO" 5 19281 elif test $pkg_failed = untried; then 19282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19283 printf "%s\n" "no" >&6; } 19284 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19285 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19286 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19287 is in your PATH or set the PKG_CONFIG environment variable to the full 19288 path to pkg-config. 19289 19290 Alternatively, you may set the environment variables XORG_CFLAGS 19291 and XORG_LIBS to avoid the need to call pkg-config. 19292 See the pkg-config man page for more details. 19293 19294 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19295 See \`config.log' for more details" "$LINENO" 5; } 19296 else 19297 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19298 XORG_LIBS=$pkg_cv_XORG_LIBS 19299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19300 printf "%s\n" "yes" >&6; } 19301 19302 fi 19303 19304 # Define a configure option for an alternate input module directory 19305 19306 # Check whether --with-xorg-module-dir was given. 19307 if test ${with_xorg_module_dir+y} 19308 then : 19309 withval=$with_xorg_module_dir; moduledir="$withval" 19310 else $as_nop 19311 moduledir="$libdir/xorg/modules" 19312 fi 19313 19314 inputdir=${moduledir}/input 19315 19316 19317 # The keyboard driver code is O/S specific 19318 case $host_os in 19319 linux*) 19320 as_fn_error $? "This is not the keyboard driver you are looking for. Use evdev or libinput." "$LINENO" 5 19321 ;; 19322 19323 freebsd* | kfreebsd-gnu* | netbsd* | openbsd* | dragonfly*) 19324 IS_BSD="yes" 19325 ;; 19326 19327 solaris*) 19328 IS_SOLARIS="yes" 19329 ;; 19330 19331 gnu*) 19332 IS_HURD="yes" 19333 ;; 19334 19335 *) 19336 as_fn_error $? "Your operating system is not supported by the kbd driver. 19337 Contact xorg@lists.freedesktop.org if you are interested in 19338 porting it." "$LINENO" 5 19339 ;; 19340 esac 19341 case $host_os in 19342 netbsd*) 19343 case $host in 19344 *powerpc-*|*sparc-*|*sparc64-*|*vax-*) 19345 OS_FLAGS="$OS_FLAGS -DDEFAULT_TO_WSKBD" 19346 ;; 19347 esac 19348 case "$(uname -m 2>&1)" in 19349 evbarm|sgimips|shark) 19350 OS_FLAGS="$OS_FLAGS -DDEFAULT_TO_WSKBD" 19351 ;; 19352 esac 19353 ;; 19354 esac 19355 19356 19357 if test "x$IS_BSD" = xyes; then 19358 BSD_TRUE= 19359 BSD_FALSE='#' 19360 else 19361 BSD_TRUE='#' 19362 BSD_FALSE= 19363 fi 19364 19365 if test "x$IS_SOLARIS" = xyes; then 19366 SOLARIS_TRUE= 19367 SOLARIS_FALSE='#' 19368 else 19369 SOLARIS_TRUE='#' 19370 SOLARIS_FALSE= 19371 fi 19372 19373 if test "x$IS_HURD" = xyes; then 19374 HURD_TRUE= 19375 HURD_FALSE='#' 19376 else 19377 HURD_TRUE='#' 19378 HURD_FALSE= 19379 fi 19380 19381 19382 DRIVER_NAME=kbd 19383 19384 19385 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 19386 19387 cat >confcache <<\_ACEOF 19388 # This file is a shell script that caches the results of configure 19389 # tests run on this system so they can be shared between configure 19390 # scripts and configure runs, see configure's option --config-cache. 19391 # It is not useful on other systems. If it contains results you don't 19392 # want to keep, you may remove or edit it. 19393 # 19394 # config.status only pays attention to the cache file if you give it 19395 # the --recheck option to rerun configure. 19396 # 19397 # `ac_cv_env_foo' variables (set or unset) will be overridden when 19398 # loading this file, other *unset* `ac_cv_foo' will be assigned the 19399 # following values. 19400 19401 _ACEOF 19402 19403 # The following way of writing the cache mishandles newlines in values, 19404 # but we know of no workaround that is simple, portable, and efficient. 19405 # So, we kill variables containing newlines. 19406 # Ultrix sh set writes to stderr and can't be redirected directly, 19407 # and sets the high bit in the cache file unless we assign to the vars. 19408 ( 19409 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19410 eval ac_val=\$$ac_var 19411 case $ac_val in #( 19412 *${as_nl}*) 19413 case $ac_var in #( 19414 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19415 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19416 esac 19417 case $ac_var in #( 19418 _ | IFS | as_nl) ;; #( 19419 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19420 *) { eval $ac_var=; unset $ac_var;} ;; 19421 esac ;; 19422 esac 19423 done 19424 19425 (set) 2>&1 | 19426 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19427 *${as_nl}ac_space=\ *) 19428 # `set' does not quote correctly, so add quotes: double-quote 19429 # substitution turns \\\\ into \\, and sed turns \\ into \. 19430 sed -n \ 19431 "s/'/'\\\\''/g; 19432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19433 ;; #( 19434 *) 19435 # `set' quotes correctly as required by POSIX, so do not add quotes. 19436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19437 ;; 19438 esac | 19439 sort 19440 ) | 19441 sed ' 19442 /^ac_cv_env_/b end 19443 t clear 19444 :clear 19445 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19446 t end 19447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19448 :end' >>confcache 19449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19450 if test -w "$cache_file"; then 19451 if test "x$cache_file" != "x/dev/null"; then 19452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19453 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19454 if test ! -f "$cache_file" || test -h "$cache_file"; then 19455 cat confcache >"$cache_file" 19456 else 19457 case $cache_file in #( 19458 */* | ?:*) 19459 mv -f confcache "$cache_file"$$ && 19460 mv -f "$cache_file"$$ "$cache_file" ;; #( 19461 *) 19462 mv -f confcache "$cache_file" ;; 19463 esac 19464 fi 19465 fi 19466 else 19467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19468 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19469 fi 19470 fi 19471 rm -f confcache 19472 19473 test "x$prefix" = xNONE && prefix=$ac_default_prefix 19474 # Let make expand exec_prefix. 19475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19476 19477 DEFS=-DHAVE_CONFIG_H 19478 19479 ac_libobjs= 19480 ac_ltlibobjs= 19481 U= 19482 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19483 # 1. Remove the extension, and $U if already installed. 19484 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19485 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19486 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19487 # will be set to the directory where LIBOBJS objects are built. 19488 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19489 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19490 done 19491 LIBOBJS=$ac_libobjs 19492 19493 LTLIBOBJS=$ac_ltlibobjs 19494 19495 19496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19497 printf %s "checking that generated files are newer than configure... " >&6; } 19498 if test -n "$am_sleep_pid"; then 19499 # Hide warnings about reused PIDs. 19500 wait $am_sleep_pid 2>/dev/null 19501 fi 19502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19503 printf "%s\n" "done" >&6; } 19504 if test -n "$EXEEXT"; then 19505 am__EXEEXT_TRUE= 19506 am__EXEEXT_FALSE='#' 19507 else 19508 am__EXEEXT_TRUE='#' 19509 am__EXEEXT_FALSE= 19510 fi 19511 19512 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19513 as_fn_error $? "conditional \"AMDEP\" was never defined. 19514 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19515 fi 19516 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19517 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19518 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19519 fi 19520 if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then 19521 as_fn_error $? "conditional \"BSD\" was never defined. 19522 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19523 fi 19524 if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then 19525 as_fn_error $? "conditional \"SOLARIS\" was never defined. 19526 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19527 fi 19528 if test -z "${HURD_TRUE}" && test -z "${HURD_FALSE}"; then 19529 as_fn_error $? "conditional \"HURD\" was never defined. 19530 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19531 fi 19532 19533 : "${CONFIG_STATUS=./config.status}" 19534 ac_write_fail=0 19535 ac_clean_files_save=$ac_clean_files 19536 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19538 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19539 as_write_fail=0 19540 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19541 #! $SHELL 19542 # Generated by $as_me. 19543 # Run this file to recreate the current configuration. 19544 # Compiler output produced by configure, useful for debugging 19545 # configure, is in config.log if it exists. 19546 19547 debug=false 19548 ac_cs_recheck=false 19549 ac_cs_silent=false 19550 19551 SHELL=\${CONFIG_SHELL-$SHELL} 19552 export SHELL 19553 _ASEOF 19554 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19555 ## -------------------- ## 19556 ## M4sh Initialization. ## 19557 ## -------------------- ## 19558 19559 # Be more Bourne compatible 19560 DUALCASE=1; export DUALCASE # for MKS sh 19561 as_nop=: 19562 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19563 then : 19564 emulate sh 19565 NULLCMD=: 19566 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19567 # is contrary to our usage. Disable this feature. 19568 alias -g '${1+"$@"}'='"$@"' 19569 setopt NO_GLOB_SUBST 19570 else $as_nop 19571 case `(set -o) 2>/dev/null` in #( 19572 *posix*) : 19573 set -o posix ;; #( 19574 *) : 19575 ;; 19576 esac 19577 fi 19578 19579 19580 19581 # Reset variables that may have inherited troublesome values from 19582 # the environment. 19583 19584 # IFS needs to be set, to space, tab, and newline, in precisely that order. 19585 # (If _AS_PATH_WALK were called with IFS unset, it would have the 19586 # side effect of setting IFS to empty, thus disabling word splitting.) 19587 # Quoting is to prevent editors from complaining about space-tab. 19588 as_nl=' 19589 ' 19590 export as_nl 19591 IFS=" "" $as_nl" 19592 19593 PS1='$ ' 19594 PS2='> ' 19595 PS4='+ ' 19596 19597 # Ensure predictable behavior from utilities with locale-dependent output. 19598 LC_ALL=C 19599 export LC_ALL 19600 LANGUAGE=C 19601 export LANGUAGE 19602 19603 # We cannot yet rely on "unset" to work, but we need these variables 19604 # to be unset--not just set to an empty or harmless value--now, to 19605 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19606 # also avoids known problems related to "unset" and subshell syntax 19607 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19608 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19609 do eval test \${$as_var+y} \ 19610 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19611 done 19612 19613 # Ensure that fds 0, 1, and 2 are open. 19614 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19615 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19616 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19617 19618 # The user is always right. 19619 if ${PATH_SEPARATOR+false} :; then 19620 PATH_SEPARATOR=: 19621 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19622 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19623 PATH_SEPARATOR=';' 19624 } 19625 fi 19626 19627 19628 # Find who we are. Look in the path if we contain no directory separator. 19629 as_myself= 19630 case $0 in #(( 19631 *[\\/]* ) as_myself=$0 ;; 19632 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19633 for as_dir in $PATH 19634 do 19635 IFS=$as_save_IFS 19636 case $as_dir in #((( 19637 '') as_dir=./ ;; 19638 */) ;; 19639 *) as_dir=$as_dir/ ;; 19640 esac 19641 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19642 done 19643 IFS=$as_save_IFS 19644 19645 ;; 19646 esac 19647 # We did not find ourselves, most probably we were run as `sh COMMAND' 19648 # in which case we are not to be found in the path. 19649 if test "x$as_myself" = x; then 19650 as_myself=$0 19651 fi 19652 if test ! -f "$as_myself"; then 19653 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19654 exit 1 19655 fi 19656 19657 19658 19659 # as_fn_error STATUS ERROR [LINENO LOG_FD] 19660 # ---------------------------------------- 19661 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19662 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19663 # script with STATUS, using 1 if that was 0. 19664 as_fn_error () 19665 { 19666 as_status=$1; test $as_status -eq 0 && as_status=1 19667 if test "$4"; then 19668 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19670 fi 19671 printf "%s\n" "$as_me: error: $2" >&2 19672 as_fn_exit $as_status 19673 } # as_fn_error 19674 19675 19676 19677 # as_fn_set_status STATUS 19678 # ----------------------- 19679 # Set $? to STATUS, without forking. 19680 as_fn_set_status () 19681 { 19682 return $1 19683 } # as_fn_set_status 19684 19685 # as_fn_exit STATUS 19686 # ----------------- 19687 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19688 as_fn_exit () 19689 { 19690 set +e 19691 as_fn_set_status $1 19692 exit $1 19693 } # as_fn_exit 19694 19695 # as_fn_unset VAR 19696 # --------------- 19697 # Portably unset VAR. 19698 as_fn_unset () 19699 { 19700 { eval $1=; unset $1;} 19701 } 19702 as_unset=as_fn_unset 19703 19704 # as_fn_append VAR VALUE 19705 # ---------------------- 19706 # Append the text in VALUE to the end of the definition contained in VAR. Take 19707 # advantage of any shell optimizations that allow amortized linear growth over 19708 # repeated appends, instead of the typical quadratic growth present in naive 19709 # implementations. 19710 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19711 then : 19712 eval 'as_fn_append () 19713 { 19714 eval $1+=\$2 19715 }' 19716 else $as_nop 19717 as_fn_append () 19718 { 19719 eval $1=\$$1\$2 19720 } 19721 fi # as_fn_append 19722 19723 # as_fn_arith ARG... 19724 # ------------------ 19725 # Perform arithmetic evaluation on the ARGs, and store the result in the 19726 # global $as_val. Take advantage of shells that can avoid forks. The arguments 19727 # must be portable across $(()) and expr. 19728 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19729 then : 19730 eval 'as_fn_arith () 19731 { 19732 as_val=$(( $* )) 19733 }' 19734 else $as_nop 19735 as_fn_arith () 19736 { 19737 as_val=`expr "$@" || test $? -eq 1` 19738 } 19739 fi # as_fn_arith 19740 19741 19742 if expr a : '\(a\)' >/dev/null 2>&1 && 19743 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19744 as_expr=expr 19745 else 19746 as_expr=false 19747 fi 19748 19749 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19750 as_basename=basename 19751 else 19752 as_basename=false 19753 fi 19754 19755 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19756 as_dirname=dirname 19757 else 19758 as_dirname=false 19759 fi 19760 19761 as_me=`$as_basename -- "$0" || 19762 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19763 X"$0" : 'X\(//\)$' \| \ 19764 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19765 printf "%s\n" X/"$0" | 19766 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19767 s//\1/ 19768 q 19769 } 19770 /^X\/\(\/\/\)$/{ 19771 s//\1/ 19772 q 19773 } 19774 /^X\/\(\/\).*/{ 19775 s//\1/ 19776 q 19777 } 19778 s/.*/./; q'` 19779 19780 # Avoid depending upon Character Ranges. 19781 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19782 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19783 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19784 as_cr_digits='0123456789' 19785 as_cr_alnum=$as_cr_Letters$as_cr_digits 19786 19787 19788 # Determine whether it's possible to make 'echo' print without a newline. 19789 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19790 # for compatibility with existing Makefiles. 19791 ECHO_C= ECHO_N= ECHO_T= 19792 case `echo -n x` in #((((( 19793 -n*) 19794 case `echo 'xy\c'` in 19795 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19796 xy) ECHO_C='\c';; 19797 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19798 ECHO_T=' ';; 19799 esac;; 19800 *) 19801 ECHO_N='-n';; 19802 esac 19803 19804 # For backward compatibility with old third-party macros, we provide 19805 # the shell variables $as_echo and $as_echo_n. New code should use 19806 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19807 as_echo='printf %s\n' 19808 as_echo_n='printf %s' 19809 19810 rm -f conf$$ conf$$.exe conf$$.file 19811 if test -d conf$$.dir; then 19812 rm -f conf$$.dir/conf$$.file 19813 else 19814 rm -f conf$$.dir 19815 mkdir conf$$.dir 2>/dev/null 19816 fi 19817 if (echo >conf$$.file) 2>/dev/null; then 19818 if ln -s conf$$.file conf$$ 2>/dev/null; then 19819 as_ln_s='ln -s' 19820 # ... but there are two gotchas: 19821 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19822 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19823 # In both cases, we have to default to `cp -pR'. 19824 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19825 as_ln_s='cp -pR' 19826 elif ln conf$$.file conf$$ 2>/dev/null; then 19827 as_ln_s=ln 19828 else 19829 as_ln_s='cp -pR' 19830 fi 19831 else 19832 as_ln_s='cp -pR' 19833 fi 19834 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19835 rmdir conf$$.dir 2>/dev/null 19836 19837 19838 # as_fn_mkdir_p 19839 # ------------- 19840 # Create "$as_dir" as a directory, including parents if necessary. 19841 as_fn_mkdir_p () 19842 { 19843 19844 case $as_dir in #( 19845 -*) as_dir=./$as_dir;; 19846 esac 19847 test -d "$as_dir" || eval $as_mkdir_p || { 19848 as_dirs= 19849 while :; do 19850 case $as_dir in #( 19851 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19852 *) as_qdir=$as_dir;; 19853 esac 19854 as_dirs="'$as_qdir' $as_dirs" 19855 as_dir=`$as_dirname -- "$as_dir" || 19856 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19857 X"$as_dir" : 'X\(//\)[^/]' \| \ 19858 X"$as_dir" : 'X\(//\)$' \| \ 19859 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19860 printf "%s\n" X"$as_dir" | 19861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19862 s//\1/ 19863 q 19864 } 19865 /^X\(\/\/\)[^/].*/{ 19866 s//\1/ 19867 q 19868 } 19869 /^X\(\/\/\)$/{ 19870 s//\1/ 19871 q 19872 } 19873 /^X\(\/\).*/{ 19874 s//\1/ 19875 q 19876 } 19877 s/.*/./; q'` 19878 test -d "$as_dir" && break 19879 done 19880 test -z "$as_dirs" || eval "mkdir $as_dirs" 19881 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19882 19883 19884 } # as_fn_mkdir_p 19885 if mkdir -p . 2>/dev/null; then 19886 as_mkdir_p='mkdir -p "$as_dir"' 19887 else 19888 test -d ./-p && rmdir ./-p 19889 as_mkdir_p=false 19890 fi 19891 19892 19893 # as_fn_executable_p FILE 19894 # ----------------------- 19895 # Test if FILE is an executable regular file. 19896 as_fn_executable_p () 19897 { 19898 test -f "$1" && test -x "$1" 19899 } # as_fn_executable_p 19900 as_test_x='test -x' 19901 as_executable_p=as_fn_executable_p 19902 19903 # Sed expression to map a string onto a valid CPP name. 19904 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19905 19906 # Sed expression to map a string onto a valid variable name. 19907 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19908 19909 19910 exec 6>&1 19911 ## ----------------------------------- ## 19912 ## Main body of $CONFIG_STATUS script. ## 19913 ## ----------------------------------- ## 19914 _ASEOF 19915 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19916 19917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19918 # Save the log message, to keep $0 and so on meaningful, and to 19919 # report actual input values of CONFIG_FILES etc. instead of their 19920 # values after options handling. 19921 ac_log=" 19922 This file was extended by xf86-input-keyboard $as_me 2.0.0, which was 19923 generated by GNU Autoconf 2.71. Invocation command line was 19924 19925 CONFIG_FILES = $CONFIG_FILES 19926 CONFIG_HEADERS = $CONFIG_HEADERS 19927 CONFIG_LINKS = $CONFIG_LINKS 19928 CONFIG_COMMANDS = $CONFIG_COMMANDS 19929 $ $0 $@ 19930 19931 on `(hostname || uname -n) 2>/dev/null | sed 1q` 19932 " 19933 19934 _ACEOF 19935 19936 case $ac_config_files in *" 19937 "*) set x $ac_config_files; shift; ac_config_files=$*;; 19938 esac 19939 19940 case $ac_config_headers in *" 19941 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19942 esac 19943 19944 19945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19946 # Files that config.status was made for. 19947 config_files="$ac_config_files" 19948 config_headers="$ac_config_headers" 19949 config_commands="$ac_config_commands" 19950 19951 _ACEOF 19952 19953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19954 ac_cs_usage="\ 19955 \`$as_me' instantiates files and other configuration actions 19956 from templates according to the current configuration. Unless the files 19957 and actions are specified as TAGs, all are instantiated by default. 19958 19959 Usage: $0 [OPTION]... [TAG]... 19960 19961 -h, --help print this help, then exit 19962 -V, --version print version number and configuration settings, then exit 19963 --config print configuration, then exit 19964 -q, --quiet, --silent 19965 do not print progress messages 19966 -d, --debug don't remove temporary files 19967 --recheck update $as_me by reconfiguring in the same conditions 19968 --file=FILE[:TEMPLATE] 19969 instantiate the configuration file FILE 19970 --header=FILE[:TEMPLATE] 19971 instantiate the configuration header FILE 19972 19973 Configuration files: 19974 $config_files 19975 19976 Configuration headers: 19977 $config_headers 19978 19979 Configuration commands: 19980 $config_commands 19981 19982 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-input-keyboard/issues>." 19983 19984 _ACEOF 19985 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 19986 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 19987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19988 ac_cs_config='$ac_cs_config_escaped' 19989 ac_cs_version="\\ 19990 xf86-input-keyboard config.status 2.0.0 19991 configured by $0, generated by GNU Autoconf 2.71, 19992 with options \\"\$ac_cs_config\\" 19993 19994 Copyright (C) 2021 Free Software Foundation, Inc. 19995 This config.status script is free software; the Free Software Foundation 19996 gives unlimited permission to copy, distribute and modify it." 19997 19998 ac_pwd='$ac_pwd' 19999 srcdir='$srcdir' 20000 INSTALL='$INSTALL' 20001 MKDIR_P='$MKDIR_P' 20002 AWK='$AWK' 20003 test -n "\$AWK" || AWK=awk 20004 _ACEOF 20005 20006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20007 # The default lists apply if the user does not specify any file. 20008 ac_need_defaults=: 20009 while test $# != 0 20010 do 20011 case $1 in 20012 --*=?*) 20013 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20014 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20015 ac_shift=: 20016 ;; 20017 --*=) 20018 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20019 ac_optarg= 20020 ac_shift=: 20021 ;; 20022 *) 20023 ac_option=$1 20024 ac_optarg=$2 20025 ac_shift=shift 20026 ;; 20027 esac 20028 20029 case $ac_option in 20030 # Handling of the options. 20031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20032 ac_cs_recheck=: ;; 20033 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20034 printf "%s\n" "$ac_cs_version"; exit ;; 20035 --config | --confi | --conf | --con | --co | --c ) 20036 printf "%s\n" "$ac_cs_config"; exit ;; 20037 --debug | --debu | --deb | --de | --d | -d ) 20038 debug=: ;; 20039 --file | --fil | --fi | --f ) 20040 $ac_shift 20041 case $ac_optarg in 20042 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20043 '') as_fn_error $? "missing file argument" ;; 20044 esac 20045 as_fn_append CONFIG_FILES " '$ac_optarg'" 20046 ac_need_defaults=false;; 20047 --header | --heade | --head | --hea ) 20048 $ac_shift 20049 case $ac_optarg in 20050 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20051 esac 20052 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20053 ac_need_defaults=false;; 20054 --he | --h) 20055 # Conflict between --help and --header 20056 as_fn_error $? "ambiguous option: \`$1' 20057 Try \`$0 --help' for more information.";; 20058 --help | --hel | -h ) 20059 printf "%s\n" "$ac_cs_usage"; exit ;; 20060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20061 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20062 ac_cs_silent=: ;; 20063 20064 # This is an error. 20065 -*) as_fn_error $? "unrecognized option: \`$1' 20066 Try \`$0 --help' for more information." ;; 20067 20068 *) as_fn_append ac_config_targets " $1" 20069 ac_need_defaults=false ;; 20070 20071 esac 20072 shift 20073 done 20074 20075 ac_configure_extra_args= 20076 20077 if $ac_cs_silent; then 20078 exec 6>/dev/null 20079 ac_configure_extra_args="$ac_configure_extra_args --silent" 20080 fi 20081 20082 _ACEOF 20083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20084 if \$ac_cs_recheck; then 20085 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20086 shift 20087 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20088 CONFIG_SHELL='$SHELL' 20089 export CONFIG_SHELL 20090 exec "\$@" 20091 fi 20092 20093 _ACEOF 20094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20095 exec 5>>config.log 20096 { 20097 echo 20098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20099 ## Running $as_me. ## 20100 _ASBOX 20101 printf "%s\n" "$ac_log" 20102 } >&5 20103 20104 _ACEOF 20105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20106 # 20107 # INIT-COMMANDS 20108 # 20109 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20110 20111 20112 # The HP-UX ksh and POSIX shell print the target directory to stdout 20113 # if CDPATH is set. 20114 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20115 20116 sed_quote_subst='$sed_quote_subst' 20117 double_quote_subst='$double_quote_subst' 20118 delay_variable_subst='$delay_variable_subst' 20119 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20120 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20121 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20122 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20123 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20124 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20125 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20126 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20127 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20128 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20129 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20130 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20131 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20132 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20133 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20134 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20135 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20136 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20137 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20138 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20139 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20140 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20141 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20142 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20143 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20144 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20145 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20146 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20147 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20148 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20149 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20150 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20151 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20152 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20153 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20154 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20155 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20156 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20157 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20158 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20159 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20160 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20161 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20162 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20163 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20164 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20165 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20166 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20167 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20168 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20169 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20170 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20171 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20172 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20173 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20174 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20175 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20176 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20177 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20178 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20179 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"`' 20180 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20181 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20182 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20183 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20184 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20185 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20186 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20187 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20188 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20189 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20190 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20191 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20192 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20193 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20194 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20195 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20196 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20197 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20198 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20199 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20200 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20201 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20202 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20203 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20204 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20205 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20206 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20207 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20208 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20209 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20210 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20211 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20212 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20213 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20214 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20215 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20216 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20217 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20218 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20219 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20220 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20221 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20222 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20223 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20224 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20225 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20226 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20227 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20228 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20229 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20230 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20231 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20232 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20233 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20234 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20235 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20236 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20237 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20238 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20239 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20240 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20241 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20242 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20243 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20244 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20245 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20246 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20247 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20248 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20249 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20250 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20251 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20252 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20253 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20254 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20255 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20256 20257 LTCC='$LTCC' 20258 LTCFLAGS='$LTCFLAGS' 20259 compiler='$compiler_DEFAULT' 20260 20261 # A function that is used when there is no print builtin or printf. 20262 func_fallback_echo () 20263 { 20264 eval 'cat <<_LTECHO_EOF 20265 \$1 20266 _LTECHO_EOF' 20267 } 20268 20269 # Quote evaled strings. 20270 for var in SHELL \ 20271 ECHO \ 20272 PATH_SEPARATOR \ 20273 SED \ 20274 GREP \ 20275 EGREP \ 20276 FGREP \ 20277 LD \ 20278 NM \ 20279 LN_S \ 20280 lt_SP2NL \ 20281 lt_NL2SP \ 20282 reload_flag \ 20283 FILECMD \ 20284 OBJDUMP \ 20285 deplibs_check_method \ 20286 file_magic_cmd \ 20287 file_magic_glob \ 20288 want_nocaseglob \ 20289 DLLTOOL \ 20290 sharedlib_from_linklib_cmd \ 20291 AR \ 20292 archiver_list_spec \ 20293 STRIP \ 20294 RANLIB \ 20295 CC \ 20296 CFLAGS \ 20297 compiler \ 20298 lt_cv_sys_global_symbol_pipe \ 20299 lt_cv_sys_global_symbol_to_cdecl \ 20300 lt_cv_sys_global_symbol_to_import \ 20301 lt_cv_sys_global_symbol_to_c_name_address \ 20302 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20303 lt_cv_nm_interface \ 20304 nm_file_list_spec \ 20305 lt_cv_truncate_bin \ 20306 lt_prog_compiler_no_builtin_flag \ 20307 lt_prog_compiler_pic \ 20308 lt_prog_compiler_wl \ 20309 lt_prog_compiler_static \ 20310 lt_cv_prog_compiler_c_o \ 20311 need_locks \ 20312 MANIFEST_TOOL \ 20313 DSYMUTIL \ 20314 NMEDIT \ 20315 LIPO \ 20316 OTOOL \ 20317 OTOOL64 \ 20318 shrext_cmds \ 20319 export_dynamic_flag_spec \ 20320 whole_archive_flag_spec \ 20321 compiler_needs_object \ 20322 with_gnu_ld \ 20323 allow_undefined_flag \ 20324 no_undefined_flag \ 20325 hardcode_libdir_flag_spec \ 20326 hardcode_libdir_separator \ 20327 exclude_expsyms \ 20328 include_expsyms \ 20329 file_list_spec \ 20330 variables_saved_for_relink \ 20331 libname_spec \ 20332 library_names_spec \ 20333 soname_spec \ 20334 install_override_mode \ 20335 finish_eval \ 20336 old_striplib \ 20337 striplib; do 20338 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20339 *[\\\\\\\`\\"\\\$]*) 20340 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20341 ;; 20342 *) 20343 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20344 ;; 20345 esac 20346 done 20347 20348 # Double-quote double-evaled strings. 20349 for var in reload_cmds \ 20350 old_postinstall_cmds \ 20351 old_postuninstall_cmds \ 20352 old_archive_cmds \ 20353 extract_expsyms_cmds \ 20354 old_archive_from_new_cmds \ 20355 old_archive_from_expsyms_cmds \ 20356 archive_cmds \ 20357 archive_expsym_cmds \ 20358 module_cmds \ 20359 module_expsym_cmds \ 20360 export_symbols_cmds \ 20361 prelink_cmds \ 20362 postlink_cmds \ 20363 postinstall_cmds \ 20364 postuninstall_cmds \ 20365 finish_cmds \ 20366 sys_lib_search_path_spec \ 20367 configure_time_dlsearch_path \ 20368 configure_time_lt_sys_library_path; do 20369 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20370 *[\\\\\\\`\\"\\\$]*) 20371 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20372 ;; 20373 *) 20374 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20375 ;; 20376 esac 20377 done 20378 20379 ac_aux_dir='$ac_aux_dir' 20380 20381 # See if we are running on zsh, and set the options that allow our 20382 # commands through without removal of \ escapes INIT. 20383 if test -n "\${ZSH_VERSION+set}"; then 20384 setopt NO_GLOB_SUBST 20385 fi 20386 20387 20388 PACKAGE='$PACKAGE' 20389 VERSION='$VERSION' 20390 RM='$RM' 20391 ofile='$ofile' 20392 20393 20394 20395 20396 _ACEOF 20397 20398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20399 20400 # Handling of arguments. 20401 for ac_config_target in $ac_config_targets 20402 do 20403 case $ac_config_target in 20404 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20405 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20406 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20407 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20408 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20409 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20410 20411 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20412 esac 20413 done 20414 20415 20416 # If the user did not use the arguments to specify the items to instantiate, 20417 # then the envvar interface is used. Set only those that are not. 20418 # We use the long form for the default assignment because of an extremely 20419 # bizarre bug on SunOS 4.1.3. 20420 if $ac_need_defaults; then 20421 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20422 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20423 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20424 fi 20425 20426 # Have a temporary directory for convenience. Make it in the build tree 20427 # simply because there is no reason against having it here, and in addition, 20428 # creating and moving files from /tmp can sometimes cause problems. 20429 # Hook for its removal unless debugging. 20430 # Note that there is a small window in which the directory will not be cleaned: 20431 # after its creation but before its name has been assigned to `$tmp'. 20432 $debug || 20433 { 20434 tmp= ac_tmp= 20435 trap 'exit_status=$? 20436 : "${ac_tmp:=$tmp}" 20437 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20438 ' 0 20439 trap 'as_fn_exit 1' 1 2 13 15 20440 } 20441 # Create a (secure) tmp directory for tmp files. 20442 20443 { 20444 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20445 test -d "$tmp" 20446 } || 20447 { 20448 tmp=./conf$$-$RANDOM 20449 (umask 077 && mkdir "$tmp") 20450 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20451 ac_tmp=$tmp 20452 20453 # Set up the scripts for CONFIG_FILES section. 20454 # No need to generate them if there are no CONFIG_FILES. 20455 # This happens for instance with `./config.status config.h'. 20456 if test -n "$CONFIG_FILES"; then 20457 20458 20459 ac_cr=`echo X | tr X '\015'` 20460 # On cygwin, bash can eat \r inside `` if the user requested igncr. 20461 # But we know of no other shell where ac_cr would be empty at this 20462 # point, so we can use a bashism as a fallback. 20463 if test "x$ac_cr" = x; then 20464 eval ac_cr=\$\'\\r\' 20465 fi 20466 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20467 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20468 ac_cs_awk_cr='\\r' 20469 else 20470 ac_cs_awk_cr=$ac_cr 20471 fi 20472 20473 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20474 _ACEOF 20475 20476 20477 { 20478 echo "cat >conf$$subs.awk <<_ACEOF" && 20479 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20480 echo "_ACEOF" 20481 } >conf$$subs.sh || 20482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20483 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20484 ac_delim='%!_!# ' 20485 for ac_last_try in false false false false false :; do 20486 . ./conf$$subs.sh || 20487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20488 20489 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20490 if test $ac_delim_n = $ac_delim_num; then 20491 break 20492 elif $ac_last_try; then 20493 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20494 else 20495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20496 fi 20497 done 20498 rm -f conf$$subs.sh 20499 20500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20501 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20502 _ACEOF 20503 sed -n ' 20504 h 20505 s/^/S["/; s/!.*/"]=/ 20506 p 20507 g 20508 s/^[^!]*!// 20509 :repl 20510 t repl 20511 s/'"$ac_delim"'$// 20512 t delim 20513 :nl 20514 h 20515 s/\(.\{148\}\)..*/\1/ 20516 t more1 20517 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20518 p 20519 n 20520 b repl 20521 :more1 20522 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20523 p 20524 g 20525 s/.\{148\}// 20526 t nl 20527 :delim 20528 h 20529 s/\(.\{148\}\)..*/\1/ 20530 t more2 20531 s/["\\]/\\&/g; s/^/"/; s/$/"/ 20532 p 20533 b 20534 :more2 20535 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20536 p 20537 g 20538 s/.\{148\}// 20539 t delim 20540 ' <conf$$subs.awk | sed ' 20541 /^[^""]/{ 20542 N 20543 s/\n// 20544 } 20545 ' >>$CONFIG_STATUS || ac_write_fail=1 20546 rm -f conf$$subs.awk 20547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20548 _ACAWK 20549 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20550 for (key in S) S_is_set[key] = 1 20551 FS = "" 20552 20553 } 20554 { 20555 line = $ 0 20556 nfields = split(line, field, "@") 20557 substed = 0 20558 len = length(field[1]) 20559 for (i = 2; i < nfields; i++) { 20560 key = field[i] 20561 keylen = length(key) 20562 if (S_is_set[key]) { 20563 value = S[key] 20564 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20565 len += length(value) + length(field[++i]) 20566 substed = 1 20567 } else 20568 len += 1 + keylen 20569 } 20570 20571 print line 20572 } 20573 20574 _ACAWK 20575 _ACEOF 20576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20577 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20578 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20579 else 20580 cat 20581 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20582 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20583 _ACEOF 20584 20585 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20586 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20587 # trailing colons and then remove the whole line if VPATH becomes empty 20588 # (actually we leave an empty line to preserve line numbers). 20589 if test "x$srcdir" = x.; then 20590 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20591 h 20592 s/// 20593 s/^/:/ 20594 s/[ ]*$/:/ 20595 s/:\$(srcdir):/:/g 20596 s/:\${srcdir}:/:/g 20597 s/:@srcdir@:/:/g 20598 s/^:*// 20599 s/:*$// 20600 x 20601 s/\(=[ ]*\).*/\1/ 20602 G 20603 s/\n// 20604 s/^[^=]*=[ ]*$// 20605 }' 20606 fi 20607 20608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20609 fi # test -n "$CONFIG_FILES" 20610 20611 # Set up the scripts for CONFIG_HEADERS section. 20612 # No need to generate them if there are no CONFIG_HEADERS. 20613 # This happens for instance with `./config.status Makefile'. 20614 if test -n "$CONFIG_HEADERS"; then 20615 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20616 BEGIN { 20617 _ACEOF 20618 20619 # Transform confdefs.h into an awk script `defines.awk', embedded as 20620 # here-document in config.status, that substitutes the proper values into 20621 # config.h.in to produce config.h. 20622 20623 # Create a delimiter string that does not exist in confdefs.h, to ease 20624 # handling of long lines. 20625 ac_delim='%!_!# ' 20626 for ac_last_try in false false :; do 20627 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20628 if test -z "$ac_tt"; then 20629 break 20630 elif $ac_last_try; then 20631 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20632 else 20633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20634 fi 20635 done 20636 20637 # For the awk script, D is an array of macro values keyed by name, 20638 # likewise P contains macro parameters if any. Preserve backslash 20639 # newline sequences. 20640 20641 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20642 sed -n ' 20643 s/.\{148\}/&'"$ac_delim"'/g 20644 t rset 20645 :rset 20646 s/^[ ]*#[ ]*define[ ][ ]*/ / 20647 t def 20648 d 20649 :def 20650 s/\\$// 20651 t bsnl 20652 s/["\\]/\\&/g 20653 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20654 D["\1"]=" \3"/p 20655 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20656 d 20657 :bsnl 20658 s/["\\]/\\&/g 20659 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20660 D["\1"]=" \3\\\\\\n"\\/p 20661 t cont 20662 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20663 t cont 20664 d 20665 :cont 20666 n 20667 s/.\{148\}/&'"$ac_delim"'/g 20668 t clear 20669 :clear 20670 s/\\$// 20671 t bsnlc 20672 s/["\\]/\\&/g; s/^/"/; s/$/"/p 20673 d 20674 :bsnlc 20675 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20676 b cont 20677 ' <confdefs.h | sed ' 20678 s/'"$ac_delim"'/"\\\ 20679 "/g' >>$CONFIG_STATUS || ac_write_fail=1 20680 20681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20682 for (key in D) D_is_set[key] = 1 20683 FS = "" 20684 } 20685 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20686 line = \$ 0 20687 split(line, arg, " ") 20688 if (arg[1] == "#") { 20689 defundef = arg[2] 20690 mac1 = arg[3] 20691 } else { 20692 defundef = substr(arg[1], 2) 20693 mac1 = arg[2] 20694 } 20695 split(mac1, mac2, "(") #) 20696 macro = mac2[1] 20697 prefix = substr(line, 1, index(line, defundef) - 1) 20698 if (D_is_set[macro]) { 20699 # Preserve the white space surrounding the "#". 20700 print prefix "define", macro P[macro] D[macro] 20701 next 20702 } else { 20703 # Replace #undef with comments. This is necessary, for example, 20704 # in the case of _POSIX_SOURCE, which is predefined and required 20705 # on some systems where configure will not decide to define it. 20706 if (defundef == "undef") { 20707 print "/*", prefix defundef, macro, "*/" 20708 next 20709 } 20710 } 20711 } 20712 { print } 20713 _ACAWK 20714 _ACEOF 20715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20716 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20717 fi # test -n "$CONFIG_HEADERS" 20718 20719 20720 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20721 shift 20722 for ac_tag 20723 do 20724 case $ac_tag in 20725 :[FHLC]) ac_mode=$ac_tag; continue;; 20726 esac 20727 case $ac_mode$ac_tag in 20728 :[FHL]*:*);; 20729 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20730 :[FH]-) ac_tag=-:-;; 20731 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20732 esac 20733 ac_save_IFS=$IFS 20734 IFS=: 20735 set x $ac_tag 20736 IFS=$ac_save_IFS 20737 shift 20738 ac_file=$1 20739 shift 20740 20741 case $ac_mode in 20742 :L) ac_source=$1;; 20743 :[FH]) 20744 ac_file_inputs= 20745 for ac_f 20746 do 20747 case $ac_f in 20748 -) ac_f="$ac_tmp/stdin";; 20749 *) # Look for the file first in the build tree, then in the source tree 20750 # (if the path is not absolute). The absolute path cannot be DOS-style, 20751 # because $ac_f cannot contain `:'. 20752 test -f "$ac_f" || 20753 case $ac_f in 20754 [\\/$]*) false;; 20755 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20756 esac || 20757 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20758 esac 20759 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20760 as_fn_append ac_file_inputs " '$ac_f'" 20761 done 20762 20763 # Let's still pretend it is `configure' which instantiates (i.e., don't 20764 # use $as_me), people would be surprised to read: 20765 # /* config.h. Generated by config.status. */ 20766 configure_input='Generated from '` 20767 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20768 `' by configure.' 20769 if test x"$ac_file" != x-; then 20770 configure_input="$ac_file. $configure_input" 20771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20772 printf "%s\n" "$as_me: creating $ac_file" >&6;} 20773 fi 20774 # Neutralize special characters interpreted by sed in replacement strings. 20775 case $configure_input in #( 20776 *\&* | *\|* | *\\* ) 20777 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20778 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20779 *) ac_sed_conf_input=$configure_input;; 20780 esac 20781 20782 case $ac_tag in 20783 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20785 esac 20786 ;; 20787 esac 20788 20789 ac_dir=`$as_dirname -- "$ac_file" || 20790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20791 X"$ac_file" : 'X\(//\)[^/]' \| \ 20792 X"$ac_file" : 'X\(//\)$' \| \ 20793 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20794 printf "%s\n" X"$ac_file" | 20795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20796 s//\1/ 20797 q 20798 } 20799 /^X\(\/\/\)[^/].*/{ 20800 s//\1/ 20801 q 20802 } 20803 /^X\(\/\/\)$/{ 20804 s//\1/ 20805 q 20806 } 20807 /^X\(\/\).*/{ 20808 s//\1/ 20809 q 20810 } 20811 s/.*/./; q'` 20812 as_dir="$ac_dir"; as_fn_mkdir_p 20813 ac_builddir=. 20814 20815 case "$ac_dir" in 20816 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20817 *) 20818 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 20819 # A ".." for each directory in $ac_dir_suffix. 20820 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20821 case $ac_top_builddir_sub in 20822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20824 esac ;; 20825 esac 20826 ac_abs_top_builddir=$ac_pwd 20827 ac_abs_builddir=$ac_pwd$ac_dir_suffix 20828 # for backward compatibility: 20829 ac_top_builddir=$ac_top_build_prefix 20830 20831 case $srcdir in 20832 .) # We are building in place. 20833 ac_srcdir=. 20834 ac_top_srcdir=$ac_top_builddir_sub 20835 ac_abs_top_srcdir=$ac_pwd ;; 20836 [\\/]* | ?:[\\/]* ) # Absolute name. 20837 ac_srcdir=$srcdir$ac_dir_suffix; 20838 ac_top_srcdir=$srcdir 20839 ac_abs_top_srcdir=$srcdir ;; 20840 *) # Relative name. 20841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20842 ac_top_srcdir=$ac_top_build_prefix$srcdir 20843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20844 esac 20845 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20846 20847 20848 case $ac_mode in 20849 :F) 20850 # 20851 # CONFIG_FILE 20852 # 20853 20854 case $INSTALL in 20855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20856 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20857 esac 20858 ac_MKDIR_P=$MKDIR_P 20859 case $MKDIR_P in 20860 [\\/$]* | ?:[\\/]* ) ;; 20861 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20862 esac 20863 _ACEOF 20864 20865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20866 # If the template does not know about datarootdir, expand it. 20867 # FIXME: This hack should be removed a few years after 2.60. 20868 ac_datarootdir_hack=; ac_datarootdir_seen= 20869 ac_sed_dataroot=' 20870 /datarootdir/ { 20871 p 20872 q 20873 } 20874 /@datadir@/p 20875 /@docdir@/p 20876 /@infodir@/p 20877 /@localedir@/p 20878 /@mandir@/p' 20879 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20880 *datarootdir*) ac_datarootdir_seen=yes;; 20881 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20883 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20884 _ACEOF 20885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20886 ac_datarootdir_hack=' 20887 s&@datadir@&$datadir&g 20888 s&@docdir@&$docdir&g 20889 s&@infodir@&$infodir&g 20890 s&@localedir@&$localedir&g 20891 s&@mandir@&$mandir&g 20892 s&\\\${datarootdir}&$datarootdir&g' ;; 20893 esac 20894 _ACEOF 20895 20896 # Neutralize VPATH when `$srcdir' = `.'. 20897 # Shell code in configure.ac might set extrasub. 20898 # FIXME: do we really want to maintain this feature? 20899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20900 ac_sed_extra="$ac_vpsub 20901 $extrasub 20902 _ACEOF 20903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20904 :t 20905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20906 s|@configure_input@|$ac_sed_conf_input|;t t 20907 s&@top_builddir@&$ac_top_builddir_sub&;t t 20908 s&@top_build_prefix@&$ac_top_build_prefix&;t t 20909 s&@srcdir@&$ac_srcdir&;t t 20910 s&@abs_srcdir@&$ac_abs_srcdir&;t t 20911 s&@top_srcdir@&$ac_top_srcdir&;t t 20912 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20913 s&@builddir@&$ac_builddir&;t t 20914 s&@abs_builddir@&$ac_abs_builddir&;t t 20915 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20916 s&@INSTALL@&$ac_INSTALL&;t t 20917 s&@MKDIR_P@&$ac_MKDIR_P&;t t 20918 $ac_datarootdir_hack 20919 " 20920 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20921 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20922 20923 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20924 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20925 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20926 "$ac_tmp/out"`; test -z "$ac_out"; } && 20927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20928 which seems to be undefined. Please make sure it is defined" >&5 20929 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20930 which seems to be undefined. Please make sure it is defined" >&2;} 20931 20932 rm -f "$ac_tmp/stdin" 20933 case $ac_file in 20934 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20935 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20936 esac \ 20937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20938 ;; 20939 :H) 20940 # 20941 # CONFIG_HEADER 20942 # 20943 if test x"$ac_file" != x-; then 20944 { 20945 printf "%s\n" "/* $configure_input */" >&1 \ 20946 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20947 } >"$ac_tmp/config.h" \ 20948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20949 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20951 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 20952 else 20953 rm -f "$ac_file" 20954 mv "$ac_tmp/config.h" "$ac_file" \ 20955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20956 fi 20957 else 20958 printf "%s\n" "/* $configure_input */" >&1 \ 20959 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20960 || as_fn_error $? "could not create -" "$LINENO" 5 20961 fi 20962 # Compute "$ac_file"'s index in $config_headers. 20963 _am_arg="$ac_file" 20964 _am_stamp_count=1 20965 for _am_header in $config_headers :; do 20966 case $_am_header in 20967 $_am_arg | $_am_arg:* ) 20968 break ;; 20969 * ) 20970 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20971 esac 20972 done 20973 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20974 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20975 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20976 X"$_am_arg" : 'X\(//\)$' \| \ 20977 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20978 printf "%s\n" X"$_am_arg" | 20979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20980 s//\1/ 20981 q 20982 } 20983 /^X\(\/\/\)[^/].*/{ 20984 s//\1/ 20985 q 20986 } 20987 /^X\(\/\/\)$/{ 20988 s//\1/ 20989 q 20990 } 20991 /^X\(\/\).*/{ 20992 s//\1/ 20993 q 20994 } 20995 s/.*/./; q'`/stamp-h$_am_stamp_count 20996 ;; 20997 20998 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20999 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21000 ;; 21001 esac 21002 21003 21004 case $ac_file$ac_mode in 21005 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21006 # Older Autoconf quotes --file arguments for eval, but not when files 21007 # are listed without --file. Let's play safe and only enable the eval 21008 # if we detect the quoting. 21009 # TODO: see whether this extra hack can be removed once we start 21010 # requiring Autoconf 2.70 or later. 21011 case $CONFIG_FILES in #( 21012 *\'*) : 21013 eval set x "$CONFIG_FILES" ;; #( 21014 *) : 21015 set x $CONFIG_FILES ;; #( 21016 *) : 21017 ;; 21018 esac 21019 shift 21020 # Used to flag and report bootstrapping failures. 21021 am_rc=0 21022 for am_mf 21023 do 21024 # Strip MF so we end up with the name of the file. 21025 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21026 # Check whether this is an Automake generated Makefile which includes 21027 # dependency-tracking related rules and includes. 21028 # Grep'ing the whole file directly is not great: AIX grep has a line 21029 # limit of 2048, but all sed's we know have understand at least 4000. 21030 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21031 || continue 21032 am_dirpart=`$as_dirname -- "$am_mf" || 21033 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21034 X"$am_mf" : 'X\(//\)[^/]' \| \ 21035 X"$am_mf" : 'X\(//\)$' \| \ 21036 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21037 printf "%s\n" X"$am_mf" | 21038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21039 s//\1/ 21040 q 21041 } 21042 /^X\(\/\/\)[^/].*/{ 21043 s//\1/ 21044 q 21045 } 21046 /^X\(\/\/\)$/{ 21047 s//\1/ 21048 q 21049 } 21050 /^X\(\/\).*/{ 21051 s//\1/ 21052 q 21053 } 21054 s/.*/./; q'` 21055 am_filepart=`$as_basename -- "$am_mf" || 21056 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21057 X"$am_mf" : 'X\(//\)$' \| \ 21058 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21059 printf "%s\n" X/"$am_mf" | 21060 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21061 s//\1/ 21062 q 21063 } 21064 /^X\/\(\/\/\)$/{ 21065 s//\1/ 21066 q 21067 } 21068 /^X\/\(\/\).*/{ 21069 s//\1/ 21070 q 21071 } 21072 s/.*/./; q'` 21073 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21074 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21075 | $MAKE -f - am--depfiles" >&5 21076 (cd "$am_dirpart" \ 21077 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21078 | $MAKE -f - am--depfiles) >&5 2>&5 21079 ac_status=$? 21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21081 (exit $ac_status); } || am_rc=$? 21082 done 21083 if test $am_rc -ne 0; then 21084 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21085 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21086 as_fn_error $? "Something went wrong bootstrapping makefile fragments 21087 for automatic dependency tracking. If GNU make was not used, consider 21088 re-running the configure script with MAKE=\"gmake\" (or whatever is 21089 necessary). You can also try re-running configure with the 21090 '--disable-dependency-tracking' option to at least be able to build 21091 the package (albeit without support for automatic dependency tracking). 21092 See \`config.log' for more details" "$LINENO" 5; } 21093 fi 21094 { am_dirpart=; unset am_dirpart;} 21095 { am_filepart=; unset am_filepart;} 21096 { am_mf=; unset am_mf;} 21097 { am_rc=; unset am_rc;} 21098 rm -f conftest-deps.mk 21099 } 21100 ;; 21101 "libtool":C) 21102 21103 # See if we are running on zsh, and set the options that allow our 21104 # commands through without removal of \ escapes. 21105 if test -n "${ZSH_VERSION+set}"; then 21106 setopt NO_GLOB_SUBST 21107 fi 21108 21109 cfgfile=${ofile}T 21110 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21111 $RM "$cfgfile" 21112 21113 cat <<_LT_EOF >> "$cfgfile" 21114 #! $SHELL 21115 # Generated automatically by $as_me ($PACKAGE) $VERSION 21116 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21117 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 21118 21119 # Provide generalized library-building support services. 21120 # Written by Gordon Matzigkeit, 1996 21121 21122 # Copyright (C) 2014 Free Software Foundation, Inc. 21123 # This is free software; see the source for copying conditions. There is NO 21124 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21125 21126 # GNU Libtool is free software; you can redistribute it and/or modify 21127 # it under the terms of the GNU General Public License as published by 21128 # the Free Software Foundation; either version 2 of of the License, or 21129 # (at your option) any later version. 21130 # 21131 # As a special exception to the GNU General Public License, if you 21132 # distribute this file as part of a program or library that is built 21133 # using GNU Libtool, you may include this file under the same 21134 # distribution terms that you use for the rest of that program. 21135 # 21136 # GNU Libtool is distributed in the hope that it will be useful, but 21137 # WITHOUT ANY WARRANTY; without even the implied warranty of 21138 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21139 # GNU General Public License for more details. 21140 # 21141 # You should have received a copy of the GNU General Public License 21142 # along with this program. If not, see <http://www.gnu.org/licenses/>. 21143 21144 21145 # The names of the tagged configurations supported by this script. 21146 available_tags='' 21147 21148 # Configured defaults for sys_lib_dlsearch_path munging. 21149 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21150 21151 # ### BEGIN LIBTOOL CONFIG 21152 21153 # Whether or not to build static libraries. 21154 build_old_libs=$enable_static 21155 21156 # Which release of libtool.m4 was used? 21157 macro_version=$macro_version 21158 macro_revision=$macro_revision 21159 21160 # Whether or not to build shared libraries. 21161 build_libtool_libs=$enable_shared 21162 21163 # What type of objects to build. 21164 pic_mode=$pic_mode 21165 21166 # Whether or not to optimize for fast installation. 21167 fast_install=$enable_fast_install 21168 21169 # Shared archive member basename,for filename based shared library versioning on AIX. 21170 shared_archive_member_spec=$shared_archive_member_spec 21171 21172 # Shell to use when invoking shell scripts. 21173 SHELL=$lt_SHELL 21174 21175 # An echo program that protects backslashes. 21176 ECHO=$lt_ECHO 21177 21178 # The PATH separator for the build system. 21179 PATH_SEPARATOR=$lt_PATH_SEPARATOR 21180 21181 # The host system. 21182 host_alias=$host_alias 21183 host=$host 21184 host_os=$host_os 21185 21186 # The build system. 21187 build_alias=$build_alias 21188 build=$build 21189 build_os=$build_os 21190 21191 # A sed program that does not truncate output. 21192 SED=$lt_SED 21193 21194 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 21195 Xsed="\$SED -e 1s/^X//" 21196 21197 # A grep program that handles long lines. 21198 GREP=$lt_GREP 21199 21200 # An ERE matcher. 21201 EGREP=$lt_EGREP 21202 21203 # A literal string matcher. 21204 FGREP=$lt_FGREP 21205 21206 # A BSD- or MS-compatible name lister. 21207 NM=$lt_NM 21208 21209 # Whether we need soft or hard links. 21210 LN_S=$lt_LN_S 21211 21212 # What is the maximum length of a command? 21213 max_cmd_len=$max_cmd_len 21214 21215 # Object file suffix (normally "o"). 21216 objext=$ac_objext 21217 21218 # Executable file suffix (normally ""). 21219 exeext=$exeext 21220 21221 # whether the shell understands "unset". 21222 lt_unset=$lt_unset 21223 21224 # turn spaces into newlines. 21225 SP2NL=$lt_lt_SP2NL 21226 21227 # turn newlines into spaces. 21228 NL2SP=$lt_lt_NL2SP 21229 21230 # convert \$build file names to \$host format. 21231 to_host_file_cmd=$lt_cv_to_host_file_cmd 21232 21233 # convert \$build files to toolchain format. 21234 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21235 21236 # A file(cmd) program that detects file types. 21237 FILECMD=$lt_FILECMD 21238 21239 # An object symbol dumper. 21240 OBJDUMP=$lt_OBJDUMP 21241 21242 # Method to check whether dependent libraries are shared objects. 21243 deplibs_check_method=$lt_deplibs_check_method 21244 21245 # Command to use when deplibs_check_method = "file_magic". 21246 file_magic_cmd=$lt_file_magic_cmd 21247 21248 # How to find potential files when deplibs_check_method = "file_magic". 21249 file_magic_glob=$lt_file_magic_glob 21250 21251 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21252 want_nocaseglob=$lt_want_nocaseglob 21253 21254 # DLL creation program. 21255 DLLTOOL=$lt_DLLTOOL 21256 21257 # Command to associate shared and link libraries. 21258 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21259 21260 # The archiver. 21261 AR=$lt_AR 21262 21263 # Flags to create an archive (by configure). 21264 lt_ar_flags=$lt_ar_flags 21265 21266 # Flags to create an archive. 21267 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21268 21269 # How to feed a file listing to the archiver. 21270 archiver_list_spec=$lt_archiver_list_spec 21271 21272 # A symbol stripping program. 21273 STRIP=$lt_STRIP 21274 21275 # Commands used to install an old-style archive. 21276 RANLIB=$lt_RANLIB 21277 old_postinstall_cmds=$lt_old_postinstall_cmds 21278 old_postuninstall_cmds=$lt_old_postuninstall_cmds 21279 21280 # Whether to use a lock for old archive extraction. 21281 lock_old_archive_extraction=$lock_old_archive_extraction 21282 21283 # A C compiler. 21284 LTCC=$lt_CC 21285 21286 # LTCC compiler flags. 21287 LTCFLAGS=$lt_CFLAGS 21288 21289 # Take the output of nm and produce a listing of raw symbols and C names. 21290 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21291 21292 # Transform the output of nm in a proper C declaration. 21293 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21294 21295 # Transform the output of nm into a list of symbols to manually relocate. 21296 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21297 21298 # Transform the output of nm in a C name address pair. 21299 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21300 21301 # Transform the output of nm in a C name address pair when lib prefix is needed. 21302 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21303 21304 # The name lister interface. 21305 nm_interface=$lt_lt_cv_nm_interface 21306 21307 # Specify filename containing input files for \$NM. 21308 nm_file_list_spec=$lt_nm_file_list_spec 21309 21310 # The root where to search for dependent libraries,and where our libraries should be installed. 21311 lt_sysroot=$lt_sysroot 21312 21313 # Command to truncate a binary pipe. 21314 lt_truncate_bin=$lt_lt_cv_truncate_bin 21315 21316 # The name of the directory that contains temporary libtool files. 21317 objdir=$objdir 21318 21319 # Used to examine libraries when file_magic_cmd begins with "file". 21320 MAGIC_CMD=$MAGIC_CMD 21321 21322 # Must we lock files when doing compilation? 21323 need_locks=$lt_need_locks 21324 21325 # Manifest tool. 21326 MANIFEST_TOOL=$lt_MANIFEST_TOOL 21327 21328 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21329 DSYMUTIL=$lt_DSYMUTIL 21330 21331 # Tool to change global to local symbols on Mac OS X. 21332 NMEDIT=$lt_NMEDIT 21333 21334 # Tool to manipulate fat objects and archives on Mac OS X. 21335 LIPO=$lt_LIPO 21336 21337 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 21338 OTOOL=$lt_OTOOL 21339 21340 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21341 OTOOL64=$lt_OTOOL64 21342 21343 # Old archive suffix (normally "a"). 21344 libext=$libext 21345 21346 # Shared library suffix (normally ".so"). 21347 shrext_cmds=$lt_shrext_cmds 21348 21349 # The commands to extract the exported symbol list from a shared archive. 21350 extract_expsyms_cmds=$lt_extract_expsyms_cmds 21351 21352 # Variables whose values should be saved in libtool wrapper scripts and 21353 # restored at link time. 21354 variables_saved_for_relink=$lt_variables_saved_for_relink 21355 21356 # Do we need the "lib" prefix for modules? 21357 need_lib_prefix=$need_lib_prefix 21358 21359 # Do we need a version for libraries? 21360 need_version=$need_version 21361 21362 # Library versioning type. 21363 version_type=$version_type 21364 21365 # Shared library runtime path variable. 21366 runpath_var=$runpath_var 21367 21368 # Shared library path variable. 21369 shlibpath_var=$shlibpath_var 21370 21371 # Is shlibpath searched before the hard-coded library search path? 21372 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21373 21374 # Format of library name prefix. 21375 libname_spec=$lt_libname_spec 21376 21377 # List of archive names. First name is the real one, the rest are links. 21378 # The last name is the one that the linker finds with -lNAME 21379 library_names_spec=$lt_library_names_spec 21380 21381 # The coded name of the library, if different from the real name. 21382 soname_spec=$lt_soname_spec 21383 21384 # Permission mode override for installation of shared libraries. 21385 install_override_mode=$lt_install_override_mode 21386 21387 # Command to use after installation of a shared archive. 21388 postinstall_cmds=$lt_postinstall_cmds 21389 21390 # Command to use after uninstallation of a shared archive. 21391 postuninstall_cmds=$lt_postuninstall_cmds 21392 21393 # Commands used to finish a libtool library installation in a directory. 21394 finish_cmds=$lt_finish_cmds 21395 21396 # As "finish_cmds", except a single script fragment to be evaled but 21397 # not shown. 21398 finish_eval=$lt_finish_eval 21399 21400 # Whether we should hardcode library paths into libraries. 21401 hardcode_into_libs=$hardcode_into_libs 21402 21403 # Compile-time system search path for libraries. 21404 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21405 21406 # Detected run-time system search path for libraries. 21407 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21408 21409 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21410 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21411 21412 # Whether dlopen is supported. 21413 dlopen_support=$enable_dlopen 21414 21415 # Whether dlopen of programs is supported. 21416 dlopen_self=$enable_dlopen_self 21417 21418 # Whether dlopen of statically linked programs is supported. 21419 dlopen_self_static=$enable_dlopen_self_static 21420 21421 # Commands to strip libraries. 21422 old_striplib=$lt_old_striplib 21423 striplib=$lt_striplib 21424 21425 21426 # The linker used to build libraries. 21427 LD=$lt_LD 21428 21429 # How to create reloadable object files. 21430 reload_flag=$lt_reload_flag 21431 reload_cmds=$lt_reload_cmds 21432 21433 # Commands used to build an old-style archive. 21434 old_archive_cmds=$lt_old_archive_cmds 21435 21436 # A language specific compiler. 21437 CC=$lt_compiler 21438 21439 # Is the compiler the GNU compiler? 21440 with_gcc=$GCC 21441 21442 # Compiler flag to turn off builtin functions. 21443 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21444 21445 # Additional compiler flags for building library objects. 21446 pic_flag=$lt_lt_prog_compiler_pic 21447 21448 # How to pass a linker flag through the compiler. 21449 wl=$lt_lt_prog_compiler_wl 21450 21451 # Compiler flag to prevent dynamic linking. 21452 link_static_flag=$lt_lt_prog_compiler_static 21453 21454 # Does compiler simultaneously support -c and -o options? 21455 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21456 21457 # Whether or not to add -lc for building shared libraries. 21458 build_libtool_need_lc=$archive_cmds_need_lc 21459 21460 # Whether or not to disallow shared libs when runtime libs are static. 21461 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21462 21463 # Compiler flag to allow reflexive dlopens. 21464 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21465 21466 # Compiler flag to generate shared objects directly from archives. 21467 whole_archive_flag_spec=$lt_whole_archive_flag_spec 21468 21469 # Whether the compiler copes with passing no objects directly. 21470 compiler_needs_object=$lt_compiler_needs_object 21471 21472 # Create an old-style archive from a shared archive. 21473 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21474 21475 # Create a temporary old-style archive to link instead of a shared archive. 21476 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21477 21478 # Commands used to build a shared archive. 21479 archive_cmds=$lt_archive_cmds 21480 archive_expsym_cmds=$lt_archive_expsym_cmds 21481 21482 # Commands used to build a loadable module if different from building 21483 # a shared archive. 21484 module_cmds=$lt_module_cmds 21485 module_expsym_cmds=$lt_module_expsym_cmds 21486 21487 # Whether we are building with GNU ld or not. 21488 with_gnu_ld=$lt_with_gnu_ld 21489 21490 # Flag that allows shared libraries with undefined symbols to be built. 21491 allow_undefined_flag=$lt_allow_undefined_flag 21492 21493 # Flag that enforces no undefined symbols. 21494 no_undefined_flag=$lt_no_undefined_flag 21495 21496 # Flag to hardcode \$libdir into a binary during linking. 21497 # This must work even if \$libdir does not exist 21498 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21499 21500 # Whether we need a single "-rpath" flag with a separated argument. 21501 hardcode_libdir_separator=$lt_hardcode_libdir_separator 21502 21503 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21504 # DIR into the resulting binary. 21505 hardcode_direct=$hardcode_direct 21506 21507 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21508 # DIR into the resulting binary and the resulting library dependency is 21509 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 21510 # library is relocated. 21511 hardcode_direct_absolute=$hardcode_direct_absolute 21512 21513 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21514 # into the resulting binary. 21515 hardcode_minus_L=$hardcode_minus_L 21516 21517 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21518 # into the resulting binary. 21519 hardcode_shlibpath_var=$hardcode_shlibpath_var 21520 21521 # Set to "yes" if building a shared library automatically hardcodes DIR 21522 # into the library and all subsequent libraries and executables linked 21523 # against it. 21524 hardcode_automatic=$hardcode_automatic 21525 21526 # Set to yes if linker adds runtime paths of dependent libraries 21527 # to runtime path list. 21528 inherit_rpath=$inherit_rpath 21529 21530 # Whether libtool must link a program against all its dependency libraries. 21531 link_all_deplibs=$link_all_deplibs 21532 21533 # Set to "yes" if exported symbols are required. 21534 always_export_symbols=$always_export_symbols 21535 21536 # The commands to list exported symbols. 21537 export_symbols_cmds=$lt_export_symbols_cmds 21538 21539 # Symbols that should not be listed in the preloaded symbols. 21540 exclude_expsyms=$lt_exclude_expsyms 21541 21542 # Symbols that must always be exported. 21543 include_expsyms=$lt_include_expsyms 21544 21545 # Commands necessary for linking programs (against libraries) with templates. 21546 prelink_cmds=$lt_prelink_cmds 21547 21548 # Commands necessary for finishing linking programs. 21549 postlink_cmds=$lt_postlink_cmds 21550 21551 # Specify filename containing input files. 21552 file_list_spec=$lt_file_list_spec 21553 21554 # How to hardcode a shared library path into an executable. 21555 hardcode_action=$hardcode_action 21556 21557 # ### END LIBTOOL CONFIG 21558 21559 _LT_EOF 21560 21561 cat <<'_LT_EOF' >> "$cfgfile" 21562 21563 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21564 21565 # func_munge_path_list VARIABLE PATH 21566 # ----------------------------------- 21567 # VARIABLE is name of variable containing _space_ separated list of 21568 # directories to be munged by the contents of PATH, which is string 21569 # having a format: 21570 # "DIR[:DIR]:" 21571 # string "DIR[ DIR]" will be prepended to VARIABLE 21572 # ":DIR[:DIR]" 21573 # string "DIR[ DIR]" will be appended to VARIABLE 21574 # "DIRP[:DIRP]::[DIRA:]DIRA" 21575 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21576 # "DIRA[ DIRA]" will be appended to VARIABLE 21577 # "DIR[:DIR]" 21578 # VARIABLE will be replaced by "DIR[ DIR]" 21579 func_munge_path_list () 21580 { 21581 case x$2 in 21582 x) 21583 ;; 21584 *:) 21585 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21586 ;; 21587 x:*) 21588 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21589 ;; 21590 *::*) 21591 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21592 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21593 ;; 21594 *) 21595 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21596 ;; 21597 esac 21598 } 21599 21600 21601 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21602 func_cc_basename () 21603 { 21604 for cc_temp in $*""; do 21605 case $cc_temp in 21606 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21607 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21608 \-*) ;; 21609 *) break;; 21610 esac 21611 done 21612 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21613 } 21614 21615 21616 # ### END FUNCTIONS SHARED WITH CONFIGURE 21617 21618 _LT_EOF 21619 21620 case $host_os in 21621 aix3*) 21622 cat <<\_LT_EOF >> "$cfgfile" 21623 # AIX sometimes has problems with the GCC collect2 program. For some 21624 # reason, if we set the COLLECT_NAMES environment variable, the problems 21625 # vanish in a puff of smoke. 21626 if test set != "${COLLECT_NAMES+set}"; then 21627 COLLECT_NAMES= 21628 export COLLECT_NAMES 21629 fi 21630 _LT_EOF 21631 ;; 21632 esac 21633 21634 21635 21636 ltmain=$ac_aux_dir/ltmain.sh 21637 21638 21639 # We use sed instead of cat because bash on DJGPP gets confused if 21640 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21641 # text mode, it properly converts lines to CR/LF. This bash problem 21642 # is reportedly fixed, but why not run on old versions too? 21643 $SED '$q' "$ltmain" >> "$cfgfile" \ 21644 || (rm -f "$cfgfile"; exit 1) 21645 21646 mv -f "$cfgfile" "$ofile" || 21647 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21648 chmod +x "$ofile" 21649 21650 ;; 21651 21652 esac 21653 done # for ac_tag 21654 21655 21656 as_fn_exit 0 21657 _ACEOF 21658 ac_clean_files=$ac_clean_files_save 21659 21660 test $ac_write_fail = 0 || 21661 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21662 21663 21664 # configure is writing to config.log, and then calls config.status. 21665 # config.status does its own redirection, appending to config.log. 21666 # Unfortunately, on DOS this fails, as config.log is still kept open 21667 # by configure, so config.status won't be able to write to it; its 21668 # output is simply discarded. So we exec the FD to /dev/null, 21669 # effectively closing config.log, so it can be properly (re)opened and 21670 # appended to by config.status. When coming back to configure, we 21671 # need to make the FD available again. 21672 if test "$no_create" != yes; then 21673 ac_cs_success=: 21674 ac_config_status_args= 21675 test "$silent" = yes && 21676 ac_config_status_args="$ac_config_status_args --quiet" 21677 exec 5>/dev/null 21678 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21679 exec 5>>config.log 21680 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21681 # would make configure fail if this is the last instruction. 21682 $ac_cs_success || as_fn_exit 1 21683 fi 21684 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21686 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21687 fi 21688 21689 21690