1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for spice-gtk 0.37. 4# 5# Report bugs to <spice-devel@lists.freedesktop.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 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. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; 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. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $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$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: spice-devel@lists.freedesktop.org about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569as_awk_strverscmp=' 570 # Use only awk features that work with 7th edition Unix awk (1978). 571 # My, what an old awk you have, Mr. Solaris! 572 END { 573 while (length(v1) && length(v2)) { 574 # Set d1 to be the next thing to compare from v1, and likewise for d2. 575 # Normally this is a single character, but if v1 and v2 contain digits, 576 # compare them as integers and fractions as strverscmp does. 577 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 578 # Split v1 and v2 into their leading digit string components d1 and d2, 579 # and advance v1 and v2 past the leading digit strings. 580 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 581 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 582 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 583 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 584 if (d1 ~ /^0/) { 585 if (d2 ~ /^0/) { 586 # Compare two fractions. 587 while (d1 ~ /^0/ && d2 ~ /^0/) { 588 d1 = substr(d1, 2); len1-- 589 d2 = substr(d2, 2); len2-- 590 } 591 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 592 # The two components differ in length, and the common prefix 593 # contains only leading zeros. Consider the longer to be less. 594 d1 = -len1 595 d2 = -len2 596 } else { 597 # Otherwise, compare as strings. 598 d1 = "x" d1 599 d2 = "x" d2 600 } 601 } else { 602 # A fraction is less than an integer. 603 exit 1 604 } 605 } else { 606 if (d2 ~ /^0/) { 607 # An integer is greater than a fraction. 608 exit 2 609 } else { 610 # Compare two integers. 611 d1 += 0 612 d2 += 0 613 } 614 } 615 } else { 616 # The normal case, without worrying about digits. 617 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 618 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 619 } 620 if (d1 < d2) exit 1 621 if (d1 > d2) exit 2 622 } 623 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 624 # which mishandles some comparisons of empty strings to integers. 625 if (length(v2)) exit 1 626 if (length(v1)) exit 2 627 } 628' 629 630test -n "$DJDIR" || exec 7<&0 </dev/null 631exec 6>&1 632 633# Name of the host. 634# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 635# so uname gets run too. 636ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 637 638# 639# Initializations. 640# 641ac_default_prefix=/usr/local 642ac_clean_files= 643ac_config_libobj_dir=. 644LIBOBJS= 645cross_compiling=no 646subdirs= 647MFLAGS= 648MAKEFLAGS= 649 650# Identity of this package. 651PACKAGE_NAME='spice-gtk' 652PACKAGE_TARNAME='spice-gtk' 653PACKAGE_VERSION='0.37' 654PACKAGE_STRING='spice-gtk 0.37' 655PACKAGE_BUGREPORT='spice-devel@lists.freedesktop.org' 656PACKAGE_URL='' 657 658# Factoring default headers for most tests. 659ac_includes_default="\ 660#include <stdio.h> 661#ifdef HAVE_SYS_TYPES_H 662# include <sys/types.h> 663#endif 664#ifdef HAVE_SYS_STAT_H 665# include <sys/stat.h> 666#endif 667#ifdef STDC_HEADERS 668# include <stdlib.h> 669# include <stddef.h> 670#else 671# ifdef HAVE_STDLIB_H 672# include <stdlib.h> 673# endif 674#endif 675#ifdef HAVE_STRING_H 676# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 677# include <memory.h> 678# endif 679# include <string.h> 680#endif 681#ifdef HAVE_STRINGS_H 682# include <strings.h> 683#endif 684#ifdef HAVE_INTTYPES_H 685# include <inttypes.h> 686#endif 687#ifdef HAVE_STDINT_H 688# include <stdint.h> 689#endif 690#ifdef HAVE_UNISTD_H 691# include <unistd.h> 692#endif" 693 694gt_needs= 695enable_option_checking=no 696ac_subst_vars='am__EXEEXT_FALSE 697am__EXEEXT_TRUE 698LTLIBOBJS 699LIBOBJS 700SPICE_GTK_REQUIRES 701SPICE_GLIB_LIBS 702SPICE_GLIB_REQUIRES 703SPICE_GTK_CFLAGS 704SPICE_GLIB_CFLAGS 705SPICE_CFLAGS 706WARN_PYFLAGS 707WARN_LDFLAGS 708WARN_CFLAGS 709HAVE_LZ4_FALSE 710HAVE_LZ4_TRUE 711LZ4_LIBS 712LZ4_CFLAGS 713VAPIDIR 714WITH_VALA_FALSE 715WITH_VALA_TRUE 716VAPIGEN 717VALAC 718G_IR_SCANNER_SYMBOL_PREFIX_FALSE 719G_IR_SCANNER_SYMBOL_PREFIX_TRUE 720INTROSPECTION_MAKEFILE 721INTROSPECTION_LIBS 722INTROSPECTION_CFLAGS 723INTROSPECTION_TYPELIBDIR 724INTROSPECTION_GIRDIR 725INTROSPECTION_GENERATE 726INTROSPECTION_COMPILER 727INTROSPECTION_SCANNER 728HAVE_INTROSPECTION_FALSE 729HAVE_INTROSPECTION_TRUE 730WITH_GTHREAD_FALSE 731WITH_GTHREAD_TRUE 732WITH_WINFIBER_FALSE 733WITH_WINFIBER_TRUE 734WITH_UCONTEXT_FALSE 735WITH_UCONTEXT_TRUE 736USB_IDS 737ACL_HELPER_DIR 738PIE_LDFLAGS 739PIE_CFLAGS 740POLICYDIR 741WITH_POLKIT_FALSE 742WITH_POLKIT_TRUE 743ACL_LIBS 744POLKIT_LIBS 745POLKIT_CFLAGS 746WITH_USBREDIR_FALSE 747WITH_USBREDIR_TRUE 748USBREDIR_LIBS 749USBREDIR_CFLAGS 750WITH_SMARTCARD_FALSE 751WITH_SMARTCARD_TRUE 752HAVE_SMARTCARD_FALSE 753HAVE_SMARTCARD_TRUE 754SMARTCARD_LIBS 755SMARTCARD_CFLAGS 756Z_LIBS 757JPEG_LIBS 758HAVE_BUILTIN_MJPEG_FALSE 759HAVE_BUILTIN_MJPEG_TRUE 760GSTVIDEO_LIBS 761GSTVIDEO_CFLAGS 762GST_INSPECT_1_0 763GSTAUDIO_LIBS 764GSTAUDIO_CFLAGS 765HAVE_PULSE_FALSE 766HAVE_PULSE_TRUE 767PULSE_LIBS 768PULSE_CFLAGS 769WITH_PHODAV_FALSE 770WITH_PHODAV_TRUE 771PHODAV_LIBS 772PHODAV_CFLAGS 773LIBVA_LIBS 774LIBVA_CFLAGS 775JSON_LIBS 776JSON_CFLAGS 777GTHREAD_LIBS 778GTHREAD_CFLAGS 779CAIRO_LIBS 780CAIRO_CFLAGS 781GIO_LIBS 782GIO_CFLAGS 783GOBJECT2_LIBS 784GOBJECT2_CFLAGS 785GLIB2_LIBS 786GLIB2_CFLAGS 787X11_LIBS 788X11_CFLAGS 789GTK_LIBS 790GTK_CFLAGS 791WITH_GTK_FALSE 792WITH_GTK_TRUE 793GTK_REQUIRED 794SASL_LIBS 795SASL_CFLAGS 796ENABLE_RECORDER_FALSE 797ENABLE_RECORDER_TRUE 798OPENSSL_LIBS 799OPENSSL_CFLAGS 800PIXMAN_LIBS 801PIXMAN_CFLAGS 802SPICE_GTK_MICRO_VERSION 803SPICE_GTK_MINOR_VERSION 804SPICE_GTK_MAJOR_VERSION 805SPICE_COMMON_DIR 806COMMON_CFLAGS 807SPICE_PROTOCOL_LIBS 808SPICE_PROTOCOL_CFLAGS 809subdirs 810LIBM 811HAVE_EGL_FALSE 812HAVE_EGL_TRUE 813OS_MAC_FALSE 814OS_MAC_TRUE 815OS_WIN32_FALSE 816OS_WIN32_TRUE 817HAVE_LD_VERSION_SCRIPT_FALSE 818HAVE_LD_VERSION_SCRIPT_TRUE 819pkgpyexecdir 820pyexecdir 821pkgpythondir 822pythondir 823PYTHON_PLATFORM 824PYTHON_EXEC_PREFIX 825PYTHON_PREFIX 826PYTHON_VERSION 827PYTHON 828STOW 829GTK_DOC_USE_REBASE_FALSE 830GTK_DOC_USE_REBASE_TRUE 831GTK_DOC_USE_LIBTOOL_FALSE 832GTK_DOC_USE_LIBTOOL_TRUE 833GTK_DOC_BUILD_PDF_FALSE 834GTK_DOC_BUILD_PDF_TRUE 835GTK_DOC_BUILD_HTML_FALSE 836GTK_DOC_BUILD_HTML_TRUE 837ENABLE_GTK_DOC_FALSE 838ENABLE_GTK_DOC_TRUE 839HAVE_GTK_DOC_FALSE 840HAVE_GTK_DOC_TRUE 841GTKDOC_DEPS_LIBS 842GTKDOC_DEPS_CFLAGS 843HTML_DIR 844GTKDOC_MKPDF 845GTKDOC_REBASE 846GTKDOC_CHECK_PATH 847GTKDOC_CHECK 848PKG_CONFIG_LIBDIR 849PKG_CONFIG_PATH 850PKG_CONFIG 851POSUB 852LTLIBINTL 853LIBINTL 854INTLLIBS 855LTLIBICONV 856LIBICONV 857INTL_MACOSX_LIBS 858XGETTEXT_EXTRA_OPTIONS 859MSGMERGE 860XGETTEXT_015 861XGETTEXT 862GMSGFMT_015 863MSGFMT_015 864GMSGFMT 865MSGFMT 866GETTEXT_MACRO_VERSION 867USE_NLS 868GETTEXT_PACKAGE 869MAINT 870MAINTAINER_MODE_FALSE 871MAINTAINER_MODE_TRUE 872CPP 873LT_SYS_LIBRARY_PATH 874OTOOL64 875OTOOL 876LIPO 877NMEDIT 878DSYMUTIL 879MANIFEST_TOOL 880RANLIB 881LN_S 882NM 883ac_ct_DUMPBIN 884DUMPBIN 885LD 886FGREP 887EGREP 888GREP 889SED 890host_os 891host_vendor 892host_cpu 893host 894build_os 895build_vendor 896build_cpu 897build 898LIBTOOL 899OBJDUMP 900DLLTOOL 901AS 902am__fastdepCC_FALSE 903am__fastdepCC_TRUE 904CCDEPMODE 905am__nodep 906AMDEPBACKSLASH 907AMDEP_FALSE 908AMDEP_TRUE 909am__include 910DEPDIR 911OBJEXT 912EXEEXT 913ac_ct_CC 914CPPFLAGS 915LDFLAGS 916CFLAGS 917CC 918ac_ct_AR 919AR 920AM_BACKSLASH 921AM_DEFAULT_VERBOSITY 922AM_DEFAULT_V 923AM_V 924am__untar 925am__tar 926AMTAR 927am__leading_dot 928SET_MAKE 929AWK 930mkdir_p 931MKDIR_P 932INSTALL_STRIP_PROGRAM 933STRIP 934install_sh 935MAKEINFO 936AUTOHEADER 937AUTOMAKE 938AUTOCONF 939ACLOCAL 940VERSION 941PACKAGE 942CYGPATH_W 943am__isrc 944INSTALL_DATA 945INSTALL_SCRIPT 946INSTALL_PROGRAM 947target_alias 948host_alias 949build_alias 950LIBS 951ECHO_T 952ECHO_N 953ECHO_C 954DEFS 955mandir 956localedir 957libdir 958psdir 959pdfdir 960dvidir 961htmldir 962infodir 963docdir 964oldincludedir 965includedir 966localstatedir 967sharedstatedir 968sysconfdir 969datadir 970datarootdir 971libexecdir 972sbindir 973bindir 974program_transform_name 975prefix 976exec_prefix 977PACKAGE_URL 978PACKAGE_BUGREPORT 979PACKAGE_STRING 980PACKAGE_VERSION 981PACKAGE_TARNAME 982PACKAGE_NAME 983PATH_SEPARATOR 984SHELL 985am__quote' 986ac_subst_files='' 987ac_user_opts=' 988enable_option_checking 989enable_silent_rules 990enable_dependency_tracking 991enable_static 992enable_shared 993with_pic 994enable_fast_install 995with_aix_soname 996with_gnu_ld 997with_sysroot 998enable_libtool_lock 999enable_maintainer_mode 1000enable_nls 1001enable_rpath 1002with_libiconv_prefix 1003with_libintl_prefix 1004with_html_dir 1005enable_gtk_doc 1006enable_gtk_doc_html 1007enable_gtk_doc_pdf 1008enable_recorder 1009with_sasl 1010with_gtk 1011enable_webdav 1012enable_pulse 1013enable_builtin_mjpeg 1014enable_smartcard 1015enable_usbredir 1016enable_polkit 1017enable_pie 1018with_usb_acl_helper_dir 1019with_usb_ids_path 1020with_coroutine 1021enable_introspection 1022enable_vala 1023enable_alignment_checks 1024enable_lz4 1025enable_werror 1026' 1027 ac_precious_vars='build_alias 1028host_alias 1029target_alias 1030CC 1031CFLAGS 1032LDFLAGS 1033LIBS 1034CPPFLAGS 1035LT_SYS_LIBRARY_PATH 1036CPP 1037PKG_CONFIG 1038PKG_CONFIG_PATH 1039PKG_CONFIG_LIBDIR 1040GTKDOC_DEPS_CFLAGS 1041GTKDOC_DEPS_LIBS 1042PYTHON 1043SPICE_PROTOCOL_CFLAGS 1044SPICE_PROTOCOL_LIBS 1045PIXMAN_CFLAGS 1046PIXMAN_LIBS 1047OPENSSL_CFLAGS 1048OPENSSL_LIBS 1049SASL_CFLAGS 1050SASL_LIBS 1051GTK_CFLAGS 1052GTK_LIBS 1053X11_CFLAGS 1054X11_LIBS 1055GLIB2_CFLAGS 1056GLIB2_LIBS 1057GOBJECT2_CFLAGS 1058GOBJECT2_LIBS 1059GIO_CFLAGS 1060GIO_LIBS 1061CAIRO_CFLAGS 1062CAIRO_LIBS 1063GTHREAD_CFLAGS 1064GTHREAD_LIBS 1065JSON_CFLAGS 1066JSON_LIBS 1067LIBVA_CFLAGS 1068LIBVA_LIBS 1069PHODAV_CFLAGS 1070PHODAV_LIBS 1071PULSE_CFLAGS 1072PULSE_LIBS 1073GSTAUDIO_CFLAGS 1074GSTAUDIO_LIBS 1075GSTVIDEO_CFLAGS 1076GSTVIDEO_LIBS 1077SMARTCARD_CFLAGS 1078SMARTCARD_LIBS 1079USBREDIR_CFLAGS 1080USBREDIR_LIBS 1081POLKIT_CFLAGS 1082POLKIT_LIBS 1083LZ4_CFLAGS 1084LZ4_LIBS' 1085ac_subdirs_all='subprojects/spice-common' 1086 1087# Initialize some variables set by options. 1088ac_init_help= 1089ac_init_version=false 1090ac_unrecognized_opts= 1091ac_unrecognized_sep= 1092# The variables have the same names as the options, with 1093# dashes changed to underlines. 1094cache_file=/dev/null 1095exec_prefix=NONE 1096no_create= 1097no_recursion= 1098prefix=NONE 1099program_prefix=NONE 1100program_suffix=NONE 1101program_transform_name=s,x,x, 1102silent= 1103site= 1104srcdir= 1105verbose= 1106x_includes=NONE 1107x_libraries=NONE 1108 1109# Installation directory options. 1110# These are left unexpanded so users can "make install exec_prefix=/foo" 1111# and all the variables that are supposed to be based on exec_prefix 1112# by default will actually change. 1113# Use braces instead of parens because sh, perl, etc. also accept them. 1114# (The list follows the same order as the GNU Coding Standards.) 1115bindir='${exec_prefix}/bin' 1116sbindir='${exec_prefix}/sbin' 1117libexecdir='${exec_prefix}/libexec' 1118datarootdir='${prefix}/share' 1119datadir='${datarootdir}' 1120sysconfdir='${prefix}/etc' 1121sharedstatedir='${prefix}/com' 1122localstatedir='${prefix}/var' 1123includedir='${prefix}/include' 1124oldincludedir='/usr/include' 1125docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1126infodir='${datarootdir}/info' 1127htmldir='${docdir}' 1128dvidir='${docdir}' 1129pdfdir='${docdir}' 1130psdir='${docdir}' 1131libdir='${exec_prefix}/lib' 1132localedir='${datarootdir}/locale' 1133mandir='${datarootdir}/man' 1134 1135ac_prev= 1136ac_dashdash= 1137for ac_option 1138do 1139 # If the previous option needs an argument, assign it. 1140 if test -n "$ac_prev"; then 1141 eval $ac_prev=\$ac_option 1142 ac_prev= 1143 continue 1144 fi 1145 1146 case $ac_option in 1147 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1148 *=) ac_optarg= ;; 1149 *) ac_optarg=yes ;; 1150 esac 1151 1152 # Accept the important Cygnus configure options, so we can diagnose typos. 1153 1154 case $ac_dashdash$ac_option in 1155 --) 1156 ac_dashdash=yes ;; 1157 1158 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1159 ac_prev=bindir ;; 1160 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1161 bindir=$ac_optarg ;; 1162 1163 -build | --build | --buil | --bui | --bu) 1164 ac_prev=build_alias ;; 1165 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1166 build_alias=$ac_optarg ;; 1167 1168 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1169 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1170 ac_prev=cache_file ;; 1171 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1172 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1173 cache_file=$ac_optarg ;; 1174 1175 --config-cache | -C) 1176 cache_file=config.cache ;; 1177 1178 -datadir | --datadir | --datadi | --datad) 1179 ac_prev=datadir ;; 1180 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1181 datadir=$ac_optarg ;; 1182 1183 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1184 | --dataroo | --dataro | --datar) 1185 ac_prev=datarootdir ;; 1186 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1187 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1188 datarootdir=$ac_optarg ;; 1189 1190 -disable-* | --disable-*) 1191 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1192 # Reject names that are not valid shell variable names. 1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1194 as_fn_error $? "invalid feature name: $ac_useropt" 1195 ac_useropt_orig=$ac_useropt 1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1197 case $ac_user_opts in 1198 *" 1199"enable_$ac_useropt" 1200"*) ;; 1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1202 ac_unrecognized_sep=', ';; 1203 esac 1204 eval enable_$ac_useropt=no ;; 1205 1206 -docdir | --docdir | --docdi | --doc | --do) 1207 ac_prev=docdir ;; 1208 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1209 docdir=$ac_optarg ;; 1210 1211 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1212 ac_prev=dvidir ;; 1213 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1214 dvidir=$ac_optarg ;; 1215 1216 -enable-* | --enable-*) 1217 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1218 # Reject names that are not valid shell variable names. 1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1220 as_fn_error $? "invalid feature name: $ac_useropt" 1221 ac_useropt_orig=$ac_useropt 1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1223 case $ac_user_opts in 1224 *" 1225"enable_$ac_useropt" 1226"*) ;; 1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1228 ac_unrecognized_sep=', ';; 1229 esac 1230 eval enable_$ac_useropt=\$ac_optarg ;; 1231 1232 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1233 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1234 | --exec | --exe | --ex) 1235 ac_prev=exec_prefix ;; 1236 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1237 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1238 | --exec=* | --exe=* | --ex=*) 1239 exec_prefix=$ac_optarg ;; 1240 1241 -gas | --gas | --ga | --g) 1242 # Obsolete; use --with-gas. 1243 with_gas=yes ;; 1244 1245 -help | --help | --hel | --he | -h) 1246 ac_init_help=long ;; 1247 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1248 ac_init_help=recursive ;; 1249 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1250 ac_init_help=short ;; 1251 1252 -host | --host | --hos | --ho) 1253 ac_prev=host_alias ;; 1254 -host=* | --host=* | --hos=* | --ho=*) 1255 host_alias=$ac_optarg ;; 1256 1257 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1258 ac_prev=htmldir ;; 1259 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1260 | --ht=*) 1261 htmldir=$ac_optarg ;; 1262 1263 -includedir | --includedir | --includedi | --included | --include \ 1264 | --includ | --inclu | --incl | --inc) 1265 ac_prev=includedir ;; 1266 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1267 | --includ=* | --inclu=* | --incl=* | --inc=*) 1268 includedir=$ac_optarg ;; 1269 1270 -infodir | --infodir | --infodi | --infod | --info | --inf) 1271 ac_prev=infodir ;; 1272 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1273 infodir=$ac_optarg ;; 1274 1275 -libdir | --libdir | --libdi | --libd) 1276 ac_prev=libdir ;; 1277 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1278 libdir=$ac_optarg ;; 1279 1280 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1281 | --libexe | --libex | --libe) 1282 ac_prev=libexecdir ;; 1283 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1284 | --libexe=* | --libex=* | --libe=*) 1285 libexecdir=$ac_optarg ;; 1286 1287 -localedir | --localedir | --localedi | --localed | --locale) 1288 ac_prev=localedir ;; 1289 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1290 localedir=$ac_optarg ;; 1291 1292 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1293 | --localstate | --localstat | --localsta | --localst | --locals) 1294 ac_prev=localstatedir ;; 1295 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1296 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1297 localstatedir=$ac_optarg ;; 1298 1299 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1300 ac_prev=mandir ;; 1301 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1302 mandir=$ac_optarg ;; 1303 1304 -nfp | --nfp | --nf) 1305 # Obsolete; use --without-fp. 1306 with_fp=no ;; 1307 1308 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1309 | --no-cr | --no-c | -n) 1310 no_create=yes ;; 1311 1312 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1313 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1314 no_recursion=yes ;; 1315 1316 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1317 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1318 | --oldin | --oldi | --old | --ol | --o) 1319 ac_prev=oldincludedir ;; 1320 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1321 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1322 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1323 oldincludedir=$ac_optarg ;; 1324 1325 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1326 ac_prev=prefix ;; 1327 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1328 prefix=$ac_optarg ;; 1329 1330 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1331 | --program-pre | --program-pr | --program-p) 1332 ac_prev=program_prefix ;; 1333 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1334 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1335 program_prefix=$ac_optarg ;; 1336 1337 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1338 | --program-suf | --program-su | --program-s) 1339 ac_prev=program_suffix ;; 1340 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1341 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1342 program_suffix=$ac_optarg ;; 1343 1344 -program-transform-name | --program-transform-name \ 1345 | --program-transform-nam | --program-transform-na \ 1346 | --program-transform-n | --program-transform- \ 1347 | --program-transform | --program-transfor \ 1348 | --program-transfo | --program-transf \ 1349 | --program-trans | --program-tran \ 1350 | --progr-tra | --program-tr | --program-t) 1351 ac_prev=program_transform_name ;; 1352 -program-transform-name=* | --program-transform-name=* \ 1353 | --program-transform-nam=* | --program-transform-na=* \ 1354 | --program-transform-n=* | --program-transform-=* \ 1355 | --program-transform=* | --program-transfor=* \ 1356 | --program-transfo=* | --program-transf=* \ 1357 | --program-trans=* | --program-tran=* \ 1358 | --progr-tra=* | --program-tr=* | --program-t=*) 1359 program_transform_name=$ac_optarg ;; 1360 1361 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1362 ac_prev=pdfdir ;; 1363 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1364 pdfdir=$ac_optarg ;; 1365 1366 -psdir | --psdir | --psdi | --psd | --ps) 1367 ac_prev=psdir ;; 1368 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1369 psdir=$ac_optarg ;; 1370 1371 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1372 | -silent | --silent | --silen | --sile | --sil) 1373 silent=yes ;; 1374 1375 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1376 ac_prev=sbindir ;; 1377 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1378 | --sbi=* | --sb=*) 1379 sbindir=$ac_optarg ;; 1380 1381 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1382 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1383 | --sharedst | --shareds | --shared | --share | --shar \ 1384 | --sha | --sh) 1385 ac_prev=sharedstatedir ;; 1386 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1387 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1388 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1389 | --sha=* | --sh=*) 1390 sharedstatedir=$ac_optarg ;; 1391 1392 -site | --site | --sit) 1393 ac_prev=site ;; 1394 -site=* | --site=* | --sit=*) 1395 site=$ac_optarg ;; 1396 1397 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1398 ac_prev=srcdir ;; 1399 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1400 srcdir=$ac_optarg ;; 1401 1402 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1403 | --syscon | --sysco | --sysc | --sys | --sy) 1404 ac_prev=sysconfdir ;; 1405 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1406 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1407 sysconfdir=$ac_optarg ;; 1408 1409 -target | --target | --targe | --targ | --tar | --ta | --t) 1410 ac_prev=target_alias ;; 1411 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1412 target_alias=$ac_optarg ;; 1413 1414 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1415 verbose=yes ;; 1416 1417 -version | --version | --versio | --versi | --vers | -V) 1418 ac_init_version=: ;; 1419 1420 -with-* | --with-*) 1421 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1422 # Reject names that are not valid shell variable names. 1423 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1424 as_fn_error $? "invalid package name: $ac_useropt" 1425 ac_useropt_orig=$ac_useropt 1426 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1427 case $ac_user_opts in 1428 *" 1429"with_$ac_useropt" 1430"*) ;; 1431 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1432 ac_unrecognized_sep=', ';; 1433 esac 1434 eval with_$ac_useropt=\$ac_optarg ;; 1435 1436 -without-* | --without-*) 1437 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1438 # Reject names that are not valid shell variable names. 1439 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1440 as_fn_error $? "invalid package name: $ac_useropt" 1441 ac_useropt_orig=$ac_useropt 1442 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1443 case $ac_user_opts in 1444 *" 1445"with_$ac_useropt" 1446"*) ;; 1447 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1448 ac_unrecognized_sep=', ';; 1449 esac 1450 eval with_$ac_useropt=no ;; 1451 1452 --x) 1453 # Obsolete; use --with-x. 1454 with_x=yes ;; 1455 1456 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1457 | --x-incl | --x-inc | --x-in | --x-i) 1458 ac_prev=x_includes ;; 1459 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1460 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1461 x_includes=$ac_optarg ;; 1462 1463 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1464 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1465 ac_prev=x_libraries ;; 1466 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1467 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1468 x_libraries=$ac_optarg ;; 1469 1470 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1471Try \`$0 --help' for more information" 1472 ;; 1473 1474 *=*) 1475 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1476 # Reject names that are not valid shell variable names. 1477 case $ac_envvar in #( 1478 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1479 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1480 esac 1481 eval $ac_envvar=\$ac_optarg 1482 export $ac_envvar ;; 1483 1484 *) 1485 # FIXME: should be removed in autoconf 3.0. 1486 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1487 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1488 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1489 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1490 ;; 1491 1492 esac 1493done 1494 1495if test -n "$ac_prev"; then 1496 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1497 as_fn_error $? "missing argument to $ac_option" 1498fi 1499 1500if test -n "$ac_unrecognized_opts"; then 1501 case $enable_option_checking in 1502 no) ;; 1503 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1504 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1505 esac 1506fi 1507 1508# Check all directory arguments for consistency. 1509for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1510 datadir sysconfdir sharedstatedir localstatedir includedir \ 1511 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1512 libdir localedir mandir 1513do 1514 eval ac_val=\$$ac_var 1515 # Remove trailing slashes. 1516 case $ac_val in 1517 */ ) 1518 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1519 eval $ac_var=\$ac_val;; 1520 esac 1521 # Be sure to have absolute directory names. 1522 case $ac_val in 1523 [\\/$]* | ?:[\\/]* ) continue;; 1524 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1525 esac 1526 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1527done 1528 1529# There might be people who depend on the old broken behavior: `$host' 1530# used to hold the argument of --host etc. 1531# FIXME: To remove some day. 1532build=$build_alias 1533host=$host_alias 1534target=$target_alias 1535 1536# FIXME: To remove some day. 1537if test "x$host_alias" != x; then 1538 if test "x$build_alias" = x; then 1539 cross_compiling=maybe 1540 elif test "x$build_alias" != "x$host_alias"; then 1541 cross_compiling=yes 1542 fi 1543fi 1544 1545ac_tool_prefix= 1546test -n "$host_alias" && ac_tool_prefix=$host_alias- 1547 1548test "$silent" = yes && exec 6>/dev/null 1549 1550 1551ac_pwd=`pwd` && test -n "$ac_pwd" && 1552ac_ls_di=`ls -di .` && 1553ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1554 as_fn_error $? "working directory cannot be determined" 1555test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1556 as_fn_error $? "pwd does not report name of working directory" 1557 1558 1559# Find the source files, if location was not specified. 1560if test -z "$srcdir"; then 1561 ac_srcdir_defaulted=yes 1562 # Try the directory containing this script, then the parent directory. 1563 ac_confdir=`$as_dirname -- "$as_myself" || 1564$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1565 X"$as_myself" : 'X\(//\)[^/]' \| \ 1566 X"$as_myself" : 'X\(//\)$' \| \ 1567 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1568$as_echo X"$as_myself" | 1569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1570 s//\1/ 1571 q 1572 } 1573 /^X\(\/\/\)[^/].*/{ 1574 s//\1/ 1575 q 1576 } 1577 /^X\(\/\/\)$/{ 1578 s//\1/ 1579 q 1580 } 1581 /^X\(\/\).*/{ 1582 s//\1/ 1583 q 1584 } 1585 s/.*/./; q'` 1586 srcdir=$ac_confdir 1587 if test ! -r "$srcdir/$ac_unique_file"; then 1588 srcdir=.. 1589 fi 1590else 1591 ac_srcdir_defaulted=no 1592fi 1593if test ! -r "$srcdir/$ac_unique_file"; then 1594 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1595 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1596fi 1597ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1598ac_abs_confdir=`( 1599 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1600 pwd)` 1601# When building in place, set srcdir=. 1602if test "$ac_abs_confdir" = "$ac_pwd"; then 1603 srcdir=. 1604fi 1605# Remove unnecessary trailing slashes from srcdir. 1606# Double slashes in file names in object file debugging info 1607# mess up M-x gdb in Emacs. 1608case $srcdir in 1609*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1610esac 1611for ac_var in $ac_precious_vars; do 1612 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1613 eval ac_env_${ac_var}_value=\$${ac_var} 1614 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1615 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1616done 1617 1618# 1619# Report the --help message. 1620# 1621if test "$ac_init_help" = "long"; then 1622 # Omit some internal or obsolete options to make the list less imposing. 1623 # This message is too long to be a string in the A/UX 3.1 sh. 1624 cat <<_ACEOF 1625\`configure' configures spice-gtk 0.37 to adapt to many kinds of systems. 1626 1627Usage: $0 [OPTION]... [VAR=VALUE]... 1628 1629To assign environment variables (e.g., CC, CFLAGS...), specify them as 1630VAR=VALUE. See below for descriptions of some of the useful variables. 1631 1632Defaults for the options are specified in brackets. 1633 1634Configuration: 1635 -h, --help display this help and exit 1636 --help=short display options specific to this package 1637 --help=recursive display the short help of all the included packages 1638 -V, --version display version information and exit 1639 -q, --quiet, --silent do not print \`checking ...' messages 1640 --cache-file=FILE cache test results in FILE [disabled] 1641 -C, --config-cache alias for \`--cache-file=config.cache' 1642 -n, --no-create do not create output files 1643 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1644 1645Installation directories: 1646 --prefix=PREFIX install architecture-independent files in PREFIX 1647 [$ac_default_prefix] 1648 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1649 [PREFIX] 1650 1651By default, \`make install' will install all the files in 1652\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1653an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1654for instance \`--prefix=\$HOME'. 1655 1656For better control, use the options below. 1657 1658Fine tuning of the installation directories: 1659 --bindir=DIR user executables [EPREFIX/bin] 1660 --sbindir=DIR system admin executables [EPREFIX/sbin] 1661 --libexecdir=DIR program executables [EPREFIX/libexec] 1662 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1663 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1664 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1665 --libdir=DIR object code libraries [EPREFIX/lib] 1666 --includedir=DIR C header files [PREFIX/include] 1667 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1668 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1669 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1670 --infodir=DIR info documentation [DATAROOTDIR/info] 1671 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1672 --mandir=DIR man documentation [DATAROOTDIR/man] 1673 --docdir=DIR documentation root [DATAROOTDIR/doc/spice-gtk] 1674 --htmldir=DIR html documentation [DOCDIR] 1675 --dvidir=DIR dvi documentation [DOCDIR] 1676 --pdfdir=DIR pdf documentation [DOCDIR] 1677 --psdir=DIR ps documentation [DOCDIR] 1678_ACEOF 1679 1680 cat <<\_ACEOF 1681 1682Program names: 1683 --program-prefix=PREFIX prepend PREFIX to installed program names 1684 --program-suffix=SUFFIX append SUFFIX to installed program names 1685 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1686 1687System types: 1688 --build=BUILD configure for building on BUILD [guessed] 1689 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1690_ACEOF 1691fi 1692 1693if test -n "$ac_init_help"; then 1694 case $ac_init_help in 1695 short | recursive ) echo "Configuration of spice-gtk 0.37:";; 1696 esac 1697 cat <<\_ACEOF 1698 1699Optional Features: 1700 --disable-option-checking ignore unrecognized --enable/--with options 1701 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1702 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1703 --enable-silent-rules less verbose build output (undo: "make V=1") 1704 --disable-silent-rules verbose build output (undo: "make V=0") 1705 --enable-dependency-tracking 1706 do not reject slow dependency extractors 1707 --disable-dependency-tracking 1708 speeds up one-time build 1709 --enable-static[=PKGS] build static libraries [default=no] 1710 --enable-shared[=PKGS] build shared libraries [default=yes] 1711 --enable-fast-install[=PKGS] 1712 optimize for fast installation [default=yes] 1713 --disable-libtool-lock avoid locking (might break parallel builds) 1714 --enable-maintainer-mode 1715 enable make rules and dependencies not useful (and 1716 sometimes confusing) to the casual installer 1717 --disable-nls do not use Native Language Support 1718 --disable-rpath do not hardcode runtime library paths 1719 --enable-gtk-doc use gtk-doc to build documentation [[default=no]] 1720 --enable-gtk-doc-html build documentation in html format [[default=yes]] 1721 --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] 1722 --enable-recorder Enable recorder instrumentation [default=no] 1723 --enable-webdav=[auto/yes/no] 1724 Enable webdav support [default=auto] 1725 --enable-pulse=[yes/auto/no] 1726 Enable the PulseAudio backend [default=auto] 1727 --enable-builtin-mjpeg Enable the builtin mjpeg video decoder [default=yes] 1728 --enable-smartcard=[yes/no/auto] 1729 Enable smartcard support [default=auto] 1730 --enable-usbredir=[auto/yes/no] 1731 Enable usbredir support [default=auto] 1732 --enable-polkit=[auto/yes/no] 1733 Enable PolicyKit support (for the usb acl 1734 helper)[default=auto] 1735 --enable-pie=[auto/yes/no] 1736 Enable position-independent-executable support (for 1737 the usb acl helper)[default=auto] 1738 --enable-introspection=[no/auto/yes] 1739 Enable introspection for this build 1740 --enable-vala Check for vala requirements [default=no] 1741 --enable-alignment-checks 1742 Enable runtime checks for cast alignment 1743 [default=no] 1744 --enable-lz4=[yes/no/auto] 1745 Enable LZ4 compression support [default=auto] 1746 --enable-werror Use -Werror (if supported) 1747 1748Optional Packages: 1749 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1750 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1751 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1752 both] 1753 --with-aix-soname=aix|svr4|both 1754 shared library versioning (aka "SONAME") variant to 1755 provide on AIX, [default=aix]. 1756 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1757 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1758 compiler's sysroot if not specified). 1759 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1760 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1761 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1762 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1763 --without-libintl-prefix don't search for libintl in includedir and libdir 1764 --with-html-dir=PATH path to installed docs 1765 --with-sasl=[yes/no/auto] 1766 use cyrus SASL for authentication [default=auto] 1767 --with-gtk=[3.0/no] which gtk+ version to compile against [default=3.0] 1768 --with-usb-acl-helper-dir=DIR 1769 Directory where the USB ACL helper binary should be 1770 installed 1771 --with-usb-ids-path Specify the path to usb.ids [default=auto] 1772 --with-coroutine=[ucontext/gthread/winfiber/auto] 1773 use ucontext or GThread for coroutines 1774 [default=auto] 1775 1776Some influential environment variables: 1777 CC C compiler command 1778 CFLAGS C compiler flags 1779 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1780 nonstandard directory <lib dir> 1781 LIBS libraries to pass to the linker, e.g. -l<library> 1782 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1783 you have headers in a nonstandard directory <include dir> 1784 LT_SYS_LIBRARY_PATH 1785 User-defined run-time library search path. 1786 CPP C preprocessor 1787 PKG_CONFIG path to pkg-config utility 1788 PKG_CONFIG_PATH 1789 directories to add to pkg-config's search path 1790 PKG_CONFIG_LIBDIR 1791 path overriding pkg-config's built-in search path 1792 GTKDOC_DEPS_CFLAGS 1793 C compiler flags for GTKDOC_DEPS, overriding pkg-config 1794 GTKDOC_DEPS_LIBS 1795 linker flags for GTKDOC_DEPS, overriding pkg-config 1796 PYTHON the Python interpreter 1797 SPICE_PROTOCOL_CFLAGS 1798 C compiler flags for SPICE_PROTOCOL, overriding pkg-config 1799 SPICE_PROTOCOL_LIBS 1800 linker flags for SPICE_PROTOCOL, overriding pkg-config 1801 PIXMAN_CFLAGS 1802 C compiler flags for PIXMAN, overriding pkg-config 1803 PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config 1804 OPENSSL_CFLAGS 1805 C compiler flags for OPENSSL, overriding pkg-config 1806 OPENSSL_LIBS 1807 linker flags for OPENSSL, overriding pkg-config 1808 SASL_CFLAGS C compiler flags for SASL, overriding pkg-config 1809 SASL_LIBS linker flags for SASL, overriding pkg-config 1810 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config 1811 GTK_LIBS linker flags for GTK, overriding pkg-config 1812 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1813 X11_LIBS linker flags for X11, overriding pkg-config 1814 GLIB2_CFLAGS 1815 C compiler flags for GLIB2, overriding pkg-config 1816 GLIB2_LIBS linker flags for GLIB2, overriding pkg-config 1817 GOBJECT2_CFLAGS 1818 C compiler flags for GOBJECT2, overriding pkg-config 1819 GOBJECT2_LIBS 1820 linker flags for GOBJECT2, overriding pkg-config 1821 GIO_CFLAGS C compiler flags for GIO, overriding pkg-config 1822 GIO_LIBS linker flags for GIO, overriding pkg-config 1823 CAIRO_CFLAGS 1824 C compiler flags for CAIRO, overriding pkg-config 1825 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config 1826 GTHREAD_CFLAGS 1827 C compiler flags for GTHREAD, overriding pkg-config 1828 GTHREAD_LIBS 1829 linker flags for GTHREAD, overriding pkg-config 1830 JSON_CFLAGS C compiler flags for JSON, overriding pkg-config 1831 JSON_LIBS linker flags for JSON, overriding pkg-config 1832 LIBVA_CFLAGS 1833 C compiler flags for LIBVA, overriding pkg-config 1834 LIBVA_LIBS linker flags for LIBVA, overriding pkg-config 1835 PHODAV_CFLAGS 1836 C compiler flags for PHODAV, overriding pkg-config 1837 PHODAV_LIBS linker flags for PHODAV, overriding pkg-config 1838 PULSE_CFLAGS 1839 C compiler flags for PULSE, overriding pkg-config 1840 PULSE_LIBS linker flags for PULSE, overriding pkg-config 1841 GSTAUDIO_CFLAGS 1842 C compiler flags for GSTAUDIO, overriding pkg-config 1843 GSTAUDIO_LIBS 1844 linker flags for GSTAUDIO, overriding pkg-config 1845 GSTVIDEO_CFLAGS 1846 C compiler flags for GSTVIDEO, overriding pkg-config 1847 GSTVIDEO_LIBS 1848 linker flags for GSTVIDEO, overriding pkg-config 1849 SMARTCARD_CFLAGS 1850 C compiler flags for SMARTCARD, overriding pkg-config 1851 SMARTCARD_LIBS 1852 linker flags for SMARTCARD, overriding pkg-config 1853 USBREDIR_CFLAGS 1854 C compiler flags for USBREDIR, overriding pkg-config 1855 USBREDIR_LIBS 1856 linker flags for USBREDIR, overriding pkg-config 1857 POLKIT_CFLAGS 1858 C compiler flags for POLKIT, overriding pkg-config 1859 POLKIT_LIBS linker flags for POLKIT, overriding pkg-config 1860 LZ4_CFLAGS C compiler flags for LZ4, overriding pkg-config 1861 LZ4_LIBS linker flags for LZ4, overriding pkg-config 1862 1863Use these variables to override the choices made by `configure' or to help 1864it to find libraries and programs with nonstandard names/locations. 1865 1866Report bugs to <spice-devel@lists.freedesktop.org>. 1867_ACEOF 1868ac_status=$? 1869fi 1870 1871if test "$ac_init_help" = "recursive"; then 1872 # If there are subdirs, report their specific --help. 1873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1874 test -d "$ac_dir" || 1875 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1876 continue 1877 ac_builddir=. 1878 1879case "$ac_dir" in 1880.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1881*) 1882 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1883 # A ".." for each directory in $ac_dir_suffix. 1884 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1885 case $ac_top_builddir_sub in 1886 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1887 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1888 esac ;; 1889esac 1890ac_abs_top_builddir=$ac_pwd 1891ac_abs_builddir=$ac_pwd$ac_dir_suffix 1892# for backward compatibility: 1893ac_top_builddir=$ac_top_build_prefix 1894 1895case $srcdir in 1896 .) # We are building in place. 1897 ac_srcdir=. 1898 ac_top_srcdir=$ac_top_builddir_sub 1899 ac_abs_top_srcdir=$ac_pwd ;; 1900 [\\/]* | ?:[\\/]* ) # Absolute name. 1901 ac_srcdir=$srcdir$ac_dir_suffix; 1902 ac_top_srcdir=$srcdir 1903 ac_abs_top_srcdir=$srcdir ;; 1904 *) # Relative name. 1905 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1906 ac_top_srcdir=$ac_top_build_prefix$srcdir 1907 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1908esac 1909ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1910 1911 cd "$ac_dir" || { ac_status=$?; continue; } 1912 # Check for guested configure. 1913 if test -f "$ac_srcdir/configure.gnu"; then 1914 echo && 1915 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1916 elif test -f "$ac_srcdir/configure"; then 1917 echo && 1918 $SHELL "$ac_srcdir/configure" --help=recursive 1919 else 1920 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1921 fi || ac_status=$? 1922 cd "$ac_pwd" || { ac_status=$?; break; } 1923 done 1924fi 1925 1926test -n "$ac_init_help" && exit $ac_status 1927if $ac_init_version; then 1928 cat <<\_ACEOF 1929spice-gtk configure 0.37 1930generated by GNU Autoconf 2.69 1931 1932Copyright (C) 2012 Free Software Foundation, Inc. 1933This configure script is free software; the Free Software Foundation 1934gives unlimited permission to copy, distribute and modify it. 1935_ACEOF 1936 exit 1937fi 1938 1939## ------------------------ ## 1940## Autoconf initialization. ## 1941## ------------------------ ## 1942 1943# ac_fn_c_try_compile LINENO 1944# -------------------------- 1945# Try to compile conftest.$ac_ext, and return whether this succeeded. 1946ac_fn_c_try_compile () 1947{ 1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1949 rm -f conftest.$ac_objext 1950 if { { ac_try="$ac_compile" 1951case "(($ac_try" in 1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1953 *) ac_try_echo=$ac_try;; 1954esac 1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1956$as_echo "$ac_try_echo"; } >&5 1957 (eval "$ac_compile") 2>conftest.err 1958 ac_status=$? 1959 if test -s conftest.err; then 1960 grep -v '^ *+' conftest.err >conftest.er1 1961 cat conftest.er1 >&5 1962 mv -f conftest.er1 conftest.err 1963 fi 1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1965 test $ac_status = 0; } && { 1966 test -z "$ac_c_werror_flag" || 1967 test ! -s conftest.err 1968 } && test -s conftest.$ac_objext; then : 1969 ac_retval=0 1970else 1971 $as_echo "$as_me: failed program was:" >&5 1972sed 's/^/| /' conftest.$ac_ext >&5 1973 1974 ac_retval=1 1975fi 1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1977 as_fn_set_status $ac_retval 1978 1979} # ac_fn_c_try_compile 1980 1981# ac_fn_c_try_link LINENO 1982# ----------------------- 1983# Try to link conftest.$ac_ext, and return whether this succeeded. 1984ac_fn_c_try_link () 1985{ 1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1987 rm -f conftest.$ac_objext conftest$ac_exeext 1988 if { { ac_try="$ac_link" 1989case "(($ac_try" in 1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1991 *) ac_try_echo=$ac_try;; 1992esac 1993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1994$as_echo "$ac_try_echo"; } >&5 1995 (eval "$ac_link") 2>conftest.err 1996 ac_status=$? 1997 if test -s conftest.err; then 1998 grep -v '^ *+' conftest.err >conftest.er1 1999 cat conftest.er1 >&5 2000 mv -f conftest.er1 conftest.err 2001 fi 2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2003 test $ac_status = 0; } && { 2004 test -z "$ac_c_werror_flag" || 2005 test ! -s conftest.err 2006 } && test -s conftest$ac_exeext && { 2007 test "$cross_compiling" = yes || 2008 test -x conftest$ac_exeext 2009 }; then : 2010 ac_retval=0 2011else 2012 $as_echo "$as_me: failed program was:" >&5 2013sed 's/^/| /' conftest.$ac_ext >&5 2014 2015 ac_retval=1 2016fi 2017 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2018 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2019 # interfere with the next link command; also delete a directory that is 2020 # left behind by Apple's compiler. We do this before executing the actions. 2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2023 as_fn_set_status $ac_retval 2024 2025} # ac_fn_c_try_link 2026 2027# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2028# ------------------------------------------------------- 2029# Tests whether HEADER exists and can be compiled using the include files in 2030# INCLUDES, setting the cache variable VAR accordingly. 2031ac_fn_c_check_header_compile () 2032{ 2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2035$as_echo_n "checking for $2... " >&6; } 2036if eval \${$3+:} false; then : 2037 $as_echo_n "(cached) " >&6 2038else 2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2040/* end confdefs.h. */ 2041$4 2042#include <$2> 2043_ACEOF 2044if ac_fn_c_try_compile "$LINENO"; then : 2045 eval "$3=yes" 2046else 2047 eval "$3=no" 2048fi 2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2050fi 2051eval ac_res=\$$3 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2053$as_echo "$ac_res" >&6; } 2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2055 2056} # ac_fn_c_check_header_compile 2057 2058# ac_fn_c_try_cpp LINENO 2059# ---------------------- 2060# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2061ac_fn_c_try_cpp () 2062{ 2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2064 if { { ac_try="$ac_cpp conftest.$ac_ext" 2065case "(($ac_try" in 2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2067 *) ac_try_echo=$ac_try;; 2068esac 2069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2070$as_echo "$ac_try_echo"; } >&5 2071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2072 ac_status=$? 2073 if test -s conftest.err; then 2074 grep -v '^ *+' conftest.err >conftest.er1 2075 cat conftest.er1 >&5 2076 mv -f conftest.er1 conftest.err 2077 fi 2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2079 test $ac_status = 0; } > conftest.i && { 2080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2081 test ! -s conftest.err 2082 }; then : 2083 ac_retval=0 2084else 2085 $as_echo "$as_me: failed program was:" >&5 2086sed 's/^/| /' conftest.$ac_ext >&5 2087 2088 ac_retval=1 2089fi 2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2091 as_fn_set_status $ac_retval 2092 2093} # ac_fn_c_try_cpp 2094 2095# ac_fn_c_try_run LINENO 2096# ---------------------- 2097# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2098# that executables *can* be run. 2099ac_fn_c_try_run () 2100{ 2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2102 if { { ac_try="$ac_link" 2103case "(($ac_try" in 2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2105 *) ac_try_echo=$ac_try;; 2106esac 2107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2108$as_echo "$ac_try_echo"; } >&5 2109 (eval "$ac_link") 2>&5 2110 ac_status=$? 2111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2112 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2113 { { case "(($ac_try" in 2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2115 *) ac_try_echo=$ac_try;; 2116esac 2117eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2118$as_echo "$ac_try_echo"; } >&5 2119 (eval "$ac_try") 2>&5 2120 ac_status=$? 2121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2122 test $ac_status = 0; }; }; then : 2123 ac_retval=0 2124else 2125 $as_echo "$as_me: program exited with status $ac_status" >&5 2126 $as_echo "$as_me: failed program was:" >&5 2127sed 's/^/| /' conftest.$ac_ext >&5 2128 2129 ac_retval=$ac_status 2130fi 2131 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2133 as_fn_set_status $ac_retval 2134 2135} # ac_fn_c_try_run 2136 2137# ac_fn_c_check_func LINENO FUNC VAR 2138# ---------------------------------- 2139# Tests whether FUNC exists, setting the cache variable VAR accordingly 2140ac_fn_c_check_func () 2141{ 2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2144$as_echo_n "checking for $2... " >&6; } 2145if eval \${$3+:} false; then : 2146 $as_echo_n "(cached) " >&6 2147else 2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2149/* end confdefs.h. */ 2150/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2151 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2152#define $2 innocuous_$2 2153 2154/* System header to define __stub macros and hopefully few prototypes, 2155 which can conflict with char $2 (); below. 2156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2157 <limits.h> exists even on freestanding compilers. */ 2158 2159#ifdef __STDC__ 2160# include <limits.h> 2161#else 2162# include <assert.h> 2163#endif 2164 2165#undef $2 2166 2167/* Override any GCC internal prototype to avoid an error. 2168 Use char because int might match the return type of a GCC 2169 builtin and then its argument prototype would still apply. */ 2170#ifdef __cplusplus 2171extern "C" 2172#endif 2173char $2 (); 2174/* The GNU C library defines this for functions which it implements 2175 to always fail with ENOSYS. Some functions are actually named 2176 something starting with __ and the normal name is an alias. */ 2177#if defined __stub_$2 || defined __stub___$2 2178choke me 2179#endif 2180 2181int 2182main () 2183{ 2184return $2 (); 2185 ; 2186 return 0; 2187} 2188_ACEOF 2189if ac_fn_c_try_link "$LINENO"; then : 2190 eval "$3=yes" 2191else 2192 eval "$3=no" 2193fi 2194rm -f core conftest.err conftest.$ac_objext \ 2195 conftest$ac_exeext conftest.$ac_ext 2196fi 2197eval ac_res=\$$3 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2199$as_echo "$ac_res" >&6; } 2200 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2201 2202} # ac_fn_c_check_func 2203 2204# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2205# ------------------------------------------------------- 2206# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2207# the include files in INCLUDES and setting the cache variable VAR 2208# accordingly. 2209ac_fn_c_check_header_mongrel () 2210{ 2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2212 if eval \${$3+:} false; then : 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2214$as_echo_n "checking for $2... " >&6; } 2215if eval \${$3+:} false; then : 2216 $as_echo_n "(cached) " >&6 2217fi 2218eval ac_res=\$$3 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2220$as_echo "$ac_res" >&6; } 2221else 2222 # Is the header compilable? 2223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2224$as_echo_n "checking $2 usability... " >&6; } 2225cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2226/* end confdefs.h. */ 2227$4 2228#include <$2> 2229_ACEOF 2230if ac_fn_c_try_compile "$LINENO"; then : 2231 ac_header_compiler=yes 2232else 2233 ac_header_compiler=no 2234fi 2235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2237$as_echo "$ac_header_compiler" >&6; } 2238 2239# Is the header present? 2240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2241$as_echo_n "checking $2 presence... " >&6; } 2242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2243/* end confdefs.h. */ 2244#include <$2> 2245_ACEOF 2246if ac_fn_c_try_cpp "$LINENO"; then : 2247 ac_header_preproc=yes 2248else 2249 ac_header_preproc=no 2250fi 2251rm -f conftest.err conftest.i conftest.$ac_ext 2252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2253$as_echo "$ac_header_preproc" >&6; } 2254 2255# So? What about this header? 2256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2257 yes:no: ) 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2259$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2261$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2262 ;; 2263 no:yes:* ) 2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2265$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2267$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2269$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2271$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2273$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2274( $as_echo "## ------------------------------------------------ ## 2275## Report this to spice-devel@lists.freedesktop.org ## 2276## ------------------------------------------------ ##" 2277 ) | sed "s/^/$as_me: WARNING: /" >&2 2278 ;; 2279esac 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2281$as_echo_n "checking for $2... " >&6; } 2282if eval \${$3+:} false; then : 2283 $as_echo_n "(cached) " >&6 2284else 2285 eval "$3=\$ac_header_compiler" 2286fi 2287eval ac_res=\$$3 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2289$as_echo "$ac_res" >&6; } 2290fi 2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2292 2293} # ac_fn_c_check_header_mongrel 2294cat >config.log <<_ACEOF 2295This file contains any messages produced by compilers while 2296running configure, to aid debugging if configure makes a mistake. 2297 2298It was created by spice-gtk $as_me 0.37, which was 2299generated by GNU Autoconf 2.69. Invocation command line was 2300 2301 $ $0 $@ 2302 2303_ACEOF 2304exec 5>>config.log 2305{ 2306cat <<_ASUNAME 2307## --------- ## 2308## Platform. ## 2309## --------- ## 2310 2311hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2312uname -m = `(uname -m) 2>/dev/null || echo unknown` 2313uname -r = `(uname -r) 2>/dev/null || echo unknown` 2314uname -s = `(uname -s) 2>/dev/null || echo unknown` 2315uname -v = `(uname -v) 2>/dev/null || echo unknown` 2316 2317/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2318/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2319 2320/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2321/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2322/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2323/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2324/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2325/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2326/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2327 2328_ASUNAME 2329 2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2331for as_dir in $PATH 2332do 2333 IFS=$as_save_IFS 2334 test -z "$as_dir" && as_dir=. 2335 $as_echo "PATH: $as_dir" 2336 done 2337IFS=$as_save_IFS 2338 2339} >&5 2340 2341cat >&5 <<_ACEOF 2342 2343 2344## ----------- ## 2345## Core tests. ## 2346## ----------- ## 2347 2348_ACEOF 2349 2350 2351# Keep a trace of the command line. 2352# Strip out --no-create and --no-recursion so they do not pile up. 2353# Strip out --silent because we don't want to record it for future runs. 2354# Also quote any args containing shell meta-characters. 2355# Make two passes to allow for proper duplicate-argument suppression. 2356ac_configure_args= 2357ac_configure_args0= 2358ac_configure_args1= 2359ac_must_keep_next=false 2360for ac_pass in 1 2 2361do 2362 for ac_arg 2363 do 2364 case $ac_arg in 2365 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2367 | -silent | --silent | --silen | --sile | --sil) 2368 continue ;; 2369 *\'*) 2370 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2371 esac 2372 case $ac_pass in 2373 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2374 2) 2375 as_fn_append ac_configure_args1 " '$ac_arg'" 2376 if test $ac_must_keep_next = true; then 2377 ac_must_keep_next=false # Got value, back to normal. 2378 else 2379 case $ac_arg in 2380 *=* | --config-cache | -C | -disable-* | --disable-* \ 2381 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2382 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2383 | -with-* | --with-* | -without-* | --without-* | --x) 2384 case "$ac_configure_args0 " in 2385 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2386 esac 2387 ;; 2388 -* ) ac_must_keep_next=true ;; 2389 esac 2390 fi 2391 as_fn_append ac_configure_args " '$ac_arg'" 2392 ;; 2393 esac 2394 done 2395done 2396{ ac_configure_args0=; unset ac_configure_args0;} 2397{ ac_configure_args1=; unset ac_configure_args1;} 2398 2399# When interrupted or exit'd, cleanup temporary files, and complete 2400# config.log. We remove comments because anyway the quotes in there 2401# would cause problems or look ugly. 2402# WARNING: Use '\'' to represent an apostrophe within the trap. 2403# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2404trap 'exit_status=$? 2405 # Save into config.log some information that might help in debugging. 2406 { 2407 echo 2408 2409 $as_echo "## ---------------- ## 2410## Cache variables. ## 2411## ---------------- ##" 2412 echo 2413 # The following way of writing the cache mishandles newlines in values, 2414( 2415 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2416 eval ac_val=\$$ac_var 2417 case $ac_val in #( 2418 *${as_nl}*) 2419 case $ac_var in #( 2420 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2421$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2422 esac 2423 case $ac_var in #( 2424 _ | IFS | as_nl) ;; #( 2425 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2426 *) { eval $ac_var=; unset $ac_var;} ;; 2427 esac ;; 2428 esac 2429 done 2430 (set) 2>&1 | 2431 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2432 *${as_nl}ac_space=\ *) 2433 sed -n \ 2434 "s/'\''/'\''\\\\'\'''\''/g; 2435 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2436 ;; #( 2437 *) 2438 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2439 ;; 2440 esac | 2441 sort 2442) 2443 echo 2444 2445 $as_echo "## ----------------- ## 2446## Output variables. ## 2447## ----------------- ##" 2448 echo 2449 for ac_var in $ac_subst_vars 2450 do 2451 eval ac_val=\$$ac_var 2452 case $ac_val in 2453 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2454 esac 2455 $as_echo "$ac_var='\''$ac_val'\''" 2456 done | sort 2457 echo 2458 2459 if test -n "$ac_subst_files"; then 2460 $as_echo "## ------------------- ## 2461## File substitutions. ## 2462## ------------------- ##" 2463 echo 2464 for ac_var in $ac_subst_files 2465 do 2466 eval ac_val=\$$ac_var 2467 case $ac_val in 2468 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2469 esac 2470 $as_echo "$ac_var='\''$ac_val'\''" 2471 done | sort 2472 echo 2473 fi 2474 2475 if test -s confdefs.h; then 2476 $as_echo "## ----------- ## 2477## confdefs.h. ## 2478## ----------- ##" 2479 echo 2480 cat confdefs.h 2481 echo 2482 fi 2483 test "$ac_signal" != 0 && 2484 $as_echo "$as_me: caught signal $ac_signal" 2485 $as_echo "$as_me: exit $exit_status" 2486 } >&5 2487 rm -f core *.core core.conftest.* && 2488 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2489 exit $exit_status 2490' 0 2491for ac_signal in 1 2 13 15; do 2492 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2493done 2494ac_signal=0 2495 2496# confdefs.h avoids OS command line length limits that DEFS can exceed. 2497rm -f -r conftest* confdefs.h 2498 2499$as_echo "/* confdefs.h */" > confdefs.h 2500 2501# Predefined preprocessor variables. 2502 2503cat >>confdefs.h <<_ACEOF 2504#define PACKAGE_NAME "$PACKAGE_NAME" 2505_ACEOF 2506 2507cat >>confdefs.h <<_ACEOF 2508#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2509_ACEOF 2510 2511cat >>confdefs.h <<_ACEOF 2512#define PACKAGE_VERSION "$PACKAGE_VERSION" 2513_ACEOF 2514 2515cat >>confdefs.h <<_ACEOF 2516#define PACKAGE_STRING "$PACKAGE_STRING" 2517_ACEOF 2518 2519cat >>confdefs.h <<_ACEOF 2520#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2521_ACEOF 2522 2523cat >>confdefs.h <<_ACEOF 2524#define PACKAGE_URL "$PACKAGE_URL" 2525_ACEOF 2526 2527 2528# Let the site file select an alternate cache file if it wants to. 2529# Prefer an explicitly selected file to automatically selected ones. 2530ac_site_file1=NONE 2531ac_site_file2=NONE 2532if test -n "$CONFIG_SITE"; then 2533 # We do not want a PATH search for config.site. 2534 case $CONFIG_SITE in #(( 2535 -*) ac_site_file1=./$CONFIG_SITE;; 2536 */*) ac_site_file1=$CONFIG_SITE;; 2537 *) ac_site_file1=./$CONFIG_SITE;; 2538 esac 2539elif test "x$prefix" != xNONE; then 2540 ac_site_file1=$prefix/share/config.site 2541 ac_site_file2=$prefix/etc/config.site 2542else 2543 ac_site_file1=$ac_default_prefix/share/config.site 2544 ac_site_file2=$ac_default_prefix/etc/config.site 2545fi 2546for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2547do 2548 test "x$ac_site_file" = xNONE && continue 2549 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2550 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2551$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2552 sed 's/^/| /' "$ac_site_file" >&5 2553 . "$ac_site_file" \ 2554 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2556as_fn_error $? "failed to load site script $ac_site_file 2557See \`config.log' for more details" "$LINENO" 5; } 2558 fi 2559done 2560 2561if test -r "$cache_file"; then 2562 # Some versions of bash will fail to source /dev/null (special files 2563 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2564 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2566$as_echo "$as_me: loading cache $cache_file" >&6;} 2567 case $cache_file in 2568 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2569 *) . "./$cache_file";; 2570 esac 2571 fi 2572else 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2574$as_echo "$as_me: creating cache $cache_file" >&6;} 2575 >$cache_file 2576fi 2577 2578gt_needs="$gt_needs " 2579# Check that the precious variables saved in the cache have kept the same 2580# value. 2581ac_cache_corrupted=false 2582for ac_var in $ac_precious_vars; do 2583 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2584 eval ac_new_set=\$ac_env_${ac_var}_set 2585 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2586 eval ac_new_val=\$ac_env_${ac_var}_value 2587 case $ac_old_set,$ac_new_set in 2588 set,) 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2590$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2591 ac_cache_corrupted=: ;; 2592 ,set) 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2594$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2595 ac_cache_corrupted=: ;; 2596 ,);; 2597 *) 2598 if test "x$ac_old_val" != "x$ac_new_val"; then 2599 # differences in whitespace do not lead to failure. 2600 ac_old_val_w=`echo x $ac_old_val` 2601 ac_new_val_w=`echo x $ac_new_val` 2602 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2604$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2605 ac_cache_corrupted=: 2606 else 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2608$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2609 eval $ac_var=\$ac_old_val 2610 fi 2611 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2612$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2614$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2615 fi;; 2616 esac 2617 # Pass precious variables to config.status. 2618 if test "$ac_new_set" = set; then 2619 case $ac_new_val in 2620 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2621 *) ac_arg=$ac_var=$ac_new_val ;; 2622 esac 2623 case " $ac_configure_args " in 2624 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2625 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2626 esac 2627 fi 2628done 2629if $ac_cache_corrupted; then 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2633$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2634 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2635fi 2636## -------------------- ## 2637## Main body of script. ## 2638## -------------------- ## 2639 2640ac_ext=c 2641ac_cpp='$CPP $CPPFLAGS' 2642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2644ac_compiler_gnu=$ac_cv_c_compiler_gnu 2645 2646 2647 2648 2649# SPICE_WARNING(warning) 2650# SPICE_PRINT_MESSAGES 2651# ---------------------- 2652# Collect warnings and print them at the end so they are clearly visible. 2653# --------------------- 2654 2655 2656 2657 2658# SPICE_EXTRA_CHECKS() 2659# -------------------- 2660# Check for --enable-extra-checks option 2661# -------------------- 2662 2663 2664 2665# SPICE_CHECK_SYSDEPS() 2666# --------------------- 2667# Checks for header files and library functions needed by spice-common. 2668# --------------------- 2669 2670 2671 2672# SPICE_CHECK_SMARTCARD 2673# --------------------- 2674# Adds a --enable-smartcard switch in order to enable/disable smartcard 2675# support, and checks if the needed libraries are available. If found, it will 2676# return the flags to use in the SMARTCARD_CFLAGS and SMARTCARD_LIBS variables, and 2677# it will define a USE_SMARTCARD preprocessor symbol as well as a HAVE_SMARTCARD 2678# Makefile conditional. 2679#---------------------- 2680 2681 2682 2683# SPICE_CHECK_CELT051 2684# ------------------- 2685# Adds a --enable-celt051 switch in order to enable/disable CELT 0.5.1 2686# support, and checks if the needed libraries are available. If found, it will 2687# return the flags to use in the CELT051_CFLAGS and CELT051_LIBS variables, and 2688# it will define a HAVE_CELT051 preprocessor symbol as well as a HAVE_CELT051 2689# Makefile conditional. 2690#-------------------- 2691 2692 2693 2694# SPICE_CHECK_OPUS 2695# ---------------- 2696# Check for the availability of Opus. If found, it will return the flags to use 2697# in the OPUS_CFLAGS and OPUS_LIBS variables, and it will define a 2698# HAVE_OPUS preprocessor symbol as well as a HAVE_OPUS Makefile conditional. 2699# ---------------- 2700 2701 2702 2703# SPICE_CHECK_PIXMAN 2704# ------------------ 2705# Check for the availability of pixman. If found, it will return the flags to 2706# use in the PIXMAN_CFLAGS and PIXMAN_LIBS variables. 2707#------------------- 2708 2709 2710 2711# SPICE_CHECK_GLIB2 2712# ----------------- 2713# Check for the availability of glib2. If found, it will return the flags to 2714# use in the GLIB2_CFLAGS and GLIB2_LIBS variables. 2715#------------------ 2716 2717 2718# SPICE_CHECK_GDK_PIXBUF 2719# ---------------------- 2720# Check for the availability of gdk-pixbuf. If found, it will return the flags to use 2721# in the GDK_PIXBUF_CFLAGS and GDK_PIXBUF_LIBS variables, and it will define a 2722# HAVE_GDK_PIXBUF preprocessor symbol as well as a HAVE_GDK_PIXBUF Makefile conditional. 2723# ---------------- 2724 2725 2726# SPICE_CHECK_PYTHON_MODULES() 2727# -------------------------- 2728# Adds a --enable-python-checks configure flags as well as checks for the 2729# availability of the python modules needed by the python scripts generating 2730# C code from spice.proto. These checks are not needed when building from 2731# tarballs so they are disabled by default. 2732#--------------------------- 2733 2734 2735 2736# SPICE_CHECK_LZ4 2737# --------------- 2738# Adds a --enable-lz4 switch in order to enable/disable LZ4 compression 2739# support, and checks if the needed libraries are available. If found, it will 2740# return the flags to use in the LZ4_CFLAGS and LZ4_LIBS variables, and 2741# it will define a USE_LZ4 preprocessor symbol and a HAVE_LZ4 conditional. 2742# --------------- 2743 2744 2745 2746# SPICE_CHECK_GSTREAMER(VAR, version, packages-to-check-for, [action-if-found, [action-if-not-found]]) 2747# --------------------- 2748# Checks whether the specified GStreamer modules are present and sets the 2749# corresponding autoconf variables and preprocessor definitions. 2750# --------------------- 2751 2752 2753# SPICE_CHECK_GSTREAMER_ELEMENTS(gst-inspect, package, elements-to-check-for) 2754# --------------------- 2755# Checks that the specified GStreamer elements are installed. If not it 2756# issues a warning and sets missing_gstreamer_elements. 2757# --------------------- 2758 2759 2760# SPICE_CHECK_SASL 2761# ---------------- 2762# Adds a --with-sasl switch to allow using SASL for authentication. 2763# Checks whether the required library is available. If it is present, 2764# it will return the flags to use in SASL_CFLAGS and SASL_LIBS variables, 2765# and it will define a have_sasl configure variable and a HAVE_SASL preprocessor 2766# symbol. 2767# ---------------- 2768 2769 2770# SPICE_CHECK_OPENSSL 2771# ----------------- 2772# Check for the availability of openssl. If found, it will return the flags to 2773# use in the OPENSSL_CFLAGS and OPENSSL_LIBS variables. 2774#------------------ 2775 2776 2777# SPICE_CHECK_RECORDER 2778# ----------------- 2779# Check for the availability of recorder library. 2780#------------------ 2781 2782 2783ac_config_headers="$ac_config_headers config.h" 2784 2785ac_aux_dir= 2786for ac_dir in build-aux "$srcdir"/build-aux; do 2787 if test -f "$ac_dir/install-sh"; then 2788 ac_aux_dir=$ac_dir 2789 ac_install_sh="$ac_aux_dir/install-sh -c" 2790 break 2791 elif test -f "$ac_dir/install.sh"; then 2792 ac_aux_dir=$ac_dir 2793 ac_install_sh="$ac_aux_dir/install.sh -c" 2794 break 2795 elif test -f "$ac_dir/shtool"; then 2796 ac_aux_dir=$ac_dir 2797 ac_install_sh="$ac_aux_dir/shtool install -c" 2798 break 2799 fi 2800done 2801if test -z "$ac_aux_dir"; then 2802 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2803fi 2804 2805# These three variables are undocumented and unsupported, 2806# and are intended to be withdrawn in a future Autoconf release. 2807# They can cause serious problems if a builder's source tree is in a directory 2808# whose full name contains unusual characters. 2809ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2810ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2811ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2812 2813 2814 2815am__api_version='1.16' 2816 2817# Find a good install program. We prefer a C program (faster), 2818# so one script is as good as another. But avoid the broken or 2819# incompatible versions: 2820# SysV /etc/install, /usr/sbin/install 2821# SunOS /usr/etc/install 2822# IRIX /sbin/install 2823# AIX /bin/install 2824# AmigaOS /C/install, which installs bootblocks on floppy discs 2825# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2826# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2827# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2828# OS/2's system install, which has a completely different semantic 2829# ./install, which can be erroneously created by make from ./install.sh. 2830# Reject install programs that cannot install multiple files. 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2832$as_echo_n "checking for a BSD-compatible install... " >&6; } 2833if test -z "$INSTALL"; then 2834if ${ac_cv_path_install+:} false; then : 2835 $as_echo_n "(cached) " >&6 2836else 2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2838for as_dir in $PATH 2839do 2840 IFS=$as_save_IFS 2841 test -z "$as_dir" && as_dir=. 2842 # Account for people who put trailing slashes in PATH elements. 2843case $as_dir/ in #(( 2844 ./ | .// | /[cC]/* | \ 2845 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2846 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2847 /usr/ucb/* ) ;; 2848 *) 2849 # OSF1 and SCO ODT 3.0 have their own names for install. 2850 # Don't use installbsd from OSF since it installs stuff as root 2851 # by default. 2852 for ac_prog in ginstall scoinst install; do 2853 for ac_exec_ext in '' $ac_executable_extensions; do 2854 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2855 if test $ac_prog = install && 2856 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2857 # AIX install. It has an incompatible calling convention. 2858 : 2859 elif test $ac_prog = install && 2860 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2861 # program-specific install script used by HP pwplus--don't use. 2862 : 2863 else 2864 rm -rf conftest.one conftest.two conftest.dir 2865 echo one > conftest.one 2866 echo two > conftest.two 2867 mkdir conftest.dir 2868 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2869 test -s conftest.one && test -s conftest.two && 2870 test -s conftest.dir/conftest.one && 2871 test -s conftest.dir/conftest.two 2872 then 2873 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2874 break 3 2875 fi 2876 fi 2877 fi 2878 done 2879 done 2880 ;; 2881esac 2882 2883 done 2884IFS=$as_save_IFS 2885 2886rm -rf conftest.one conftest.two conftest.dir 2887 2888fi 2889 if test "${ac_cv_path_install+set}" = set; then 2890 INSTALL=$ac_cv_path_install 2891 else 2892 # As a last resort, use the slow shell script. Don't cache a 2893 # value for INSTALL within a source directory, because that will 2894 # break other packages using the cache if that directory is 2895 # removed, or if the value is a relative name. 2896 INSTALL=$ac_install_sh 2897 fi 2898fi 2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2900$as_echo "$INSTALL" >&6; } 2901 2902# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2903# It thinks the first close brace ends the variable substitution. 2904test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2905 2906test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2907 2908test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2909 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2911$as_echo_n "checking whether build environment is sane... " >&6; } 2912# Reject unsafe characters in $srcdir or the absolute working directory 2913# name. Accept space and tab only in the latter. 2914am_lf=' 2915' 2916case `pwd` in 2917 *[\\\"\#\$\&\'\`$am_lf]*) 2918 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2919esac 2920case $srcdir in 2921 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2922 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2923esac 2924 2925# Do 'set' in a subshell so we don't clobber the current shell's 2926# arguments. Must try -L first in case configure is actually a 2927# symlink; some systems play weird games with the mod time of symlinks 2928# (eg FreeBSD returns the mod time of the symlink's containing 2929# directory). 2930if ( 2931 am_has_slept=no 2932 for am_try in 1 2; do 2933 echo "timestamp, slept: $am_has_slept" > conftest.file 2934 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2935 if test "$*" = "X"; then 2936 # -L didn't work. 2937 set X `ls -t "$srcdir/configure" conftest.file` 2938 fi 2939 if test "$*" != "X $srcdir/configure conftest.file" \ 2940 && test "$*" != "X conftest.file $srcdir/configure"; then 2941 2942 # If neither matched, then we have a broken ls. This can happen 2943 # if, for instance, CONFIG_SHELL is bash and it inherits a 2944 # broken ls alias from the environment. This has actually 2945 # happened. Such a system could not be considered "sane". 2946 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2947 alias in your environment" "$LINENO" 5 2948 fi 2949 if test "$2" = conftest.file || test $am_try -eq 2; then 2950 break 2951 fi 2952 # Just in case. 2953 sleep 1 2954 am_has_slept=yes 2955 done 2956 test "$2" = conftest.file 2957 ) 2958then 2959 # Ok. 2960 : 2961else 2962 as_fn_error $? "newly created file is older than distributed files! 2963Check your system clock" "$LINENO" 5 2964fi 2965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2966$as_echo "yes" >&6; } 2967# If we didn't sleep, we still need to ensure time stamps of config.status and 2968# generated files are strictly newer. 2969am_sleep_pid= 2970if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2971 ( sleep 1 ) & 2972 am_sleep_pid=$! 2973fi 2974 2975rm -f conftest.file 2976 2977test "$program_prefix" != NONE && 2978 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2979# Use a double $ so make ignores it. 2980test "$program_suffix" != NONE && 2981 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2982# Double any \ or $. 2983# By default was `s,x,x', remove it if useless. 2984ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2985program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2986 2987# Expand $ac_aux_dir to an absolute path. 2988am_aux_dir=`cd "$ac_aux_dir" && pwd` 2989 2990if test x"${MISSING+set}" != xset; then 2991 case $am_aux_dir in 2992 *\ * | *\ *) 2993 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2994 *) 2995 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2996 esac 2997fi 2998# Use eval to expand $SHELL 2999if eval "$MISSING --is-lightweight"; then 3000 am_missing_run="$MISSING " 3001else 3002 am_missing_run= 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3004$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3005fi 3006 3007if test x"${install_sh+set}" != xset; then 3008 case $am_aux_dir in 3009 *\ * | *\ *) 3010 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3011 *) 3012 install_sh="\${SHELL} $am_aux_dir/install-sh" 3013 esac 3014fi 3015 3016# Installed binaries are usually stripped using 'strip' when the user 3017# run "make install-strip". However 'strip' might not be the right 3018# tool to use in cross-compilation environments, therefore Automake 3019# will honor the 'STRIP' environment variable to overrule this program. 3020if test "$cross_compiling" != no; then 3021 if test -n "$ac_tool_prefix"; then 3022 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3023set dummy ${ac_tool_prefix}strip; ac_word=$2 3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3025$as_echo_n "checking for $ac_word... " >&6; } 3026if ${ac_cv_prog_STRIP+:} false; then : 3027 $as_echo_n "(cached) " >&6 3028else 3029 if test -n "$STRIP"; then 3030 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3031else 3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3033for as_dir in $PATH 3034do 3035 IFS=$as_save_IFS 3036 test -z "$as_dir" && as_dir=. 3037 for ac_exec_ext in '' $ac_executable_extensions; do 3038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3039 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3041 break 2 3042 fi 3043done 3044 done 3045IFS=$as_save_IFS 3046 3047fi 3048fi 3049STRIP=$ac_cv_prog_STRIP 3050if test -n "$STRIP"; then 3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3052$as_echo "$STRIP" >&6; } 3053else 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3055$as_echo "no" >&6; } 3056fi 3057 3058 3059fi 3060if test -z "$ac_cv_prog_STRIP"; then 3061 ac_ct_STRIP=$STRIP 3062 # Extract the first word of "strip", so it can be a program name with args. 3063set dummy strip; ac_word=$2 3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3065$as_echo_n "checking for $ac_word... " >&6; } 3066if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3067 $as_echo_n "(cached) " >&6 3068else 3069 if test -n "$ac_ct_STRIP"; then 3070 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3071else 3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3073for as_dir in $PATH 3074do 3075 IFS=$as_save_IFS 3076 test -z "$as_dir" && as_dir=. 3077 for ac_exec_ext in '' $ac_executable_extensions; do 3078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3079 ac_cv_prog_ac_ct_STRIP="strip" 3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3081 break 2 3082 fi 3083done 3084 done 3085IFS=$as_save_IFS 3086 3087fi 3088fi 3089ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3090if test -n "$ac_ct_STRIP"; then 3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3092$as_echo "$ac_ct_STRIP" >&6; } 3093else 3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3095$as_echo "no" >&6; } 3096fi 3097 3098 if test "x$ac_ct_STRIP" = x; then 3099 STRIP=":" 3100 else 3101 case $cross_compiling:$ac_tool_warned in 3102yes:) 3103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3105ac_tool_warned=yes ;; 3106esac 3107 STRIP=$ac_ct_STRIP 3108 fi 3109else 3110 STRIP="$ac_cv_prog_STRIP" 3111fi 3112 3113fi 3114INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3115 3116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3117$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3118if test -z "$MKDIR_P"; then 3119 if ${ac_cv_path_mkdir+:} false; then : 3120 $as_echo_n "(cached) " >&6 3121else 3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3123for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3124do 3125 IFS=$as_save_IFS 3126 test -z "$as_dir" && as_dir=. 3127 for ac_prog in mkdir gmkdir; do 3128 for ac_exec_ext in '' $ac_executable_extensions; do 3129 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3130 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3131 'mkdir (GNU coreutils) '* | \ 3132 'mkdir (coreutils) '* | \ 3133 'mkdir (fileutils) '4.1*) 3134 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3135 break 3;; 3136 esac 3137 done 3138 done 3139 done 3140IFS=$as_save_IFS 3141 3142fi 3143 3144 test -d ./--version && rmdir ./--version 3145 if test "${ac_cv_path_mkdir+set}" = set; then 3146 MKDIR_P="$ac_cv_path_mkdir -p" 3147 else 3148 # As a last resort, use the slow shell script. Don't cache a 3149 # value for MKDIR_P within a source directory, because that will 3150 # break other packages using the cache if that directory is 3151 # removed, or if the value is a relative name. 3152 MKDIR_P="$ac_install_sh -d" 3153 fi 3154fi 3155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3156$as_echo "$MKDIR_P" >&6; } 3157 3158for ac_prog in gawk mawk nawk awk 3159do 3160 # Extract the first word of "$ac_prog", so it can be a program name with args. 3161set dummy $ac_prog; ac_word=$2 3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3163$as_echo_n "checking for $ac_word... " >&6; } 3164if ${ac_cv_prog_AWK+:} false; then : 3165 $as_echo_n "(cached) " >&6 3166else 3167 if test -n "$AWK"; then 3168 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3169else 3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3171for as_dir in $PATH 3172do 3173 IFS=$as_save_IFS 3174 test -z "$as_dir" && as_dir=. 3175 for ac_exec_ext in '' $ac_executable_extensions; do 3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3177 ac_cv_prog_AWK="$ac_prog" 3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3179 break 2 3180 fi 3181done 3182 done 3183IFS=$as_save_IFS 3184 3185fi 3186fi 3187AWK=$ac_cv_prog_AWK 3188if test -n "$AWK"; then 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3190$as_echo "$AWK" >&6; } 3191else 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3193$as_echo "no" >&6; } 3194fi 3195 3196 3197 test -n "$AWK" && break 3198done 3199 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3201$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3202set x ${MAKE-make} 3203ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3204if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3205 $as_echo_n "(cached) " >&6 3206else 3207 cat >conftest.make <<\_ACEOF 3208SHELL = /bin/sh 3209all: 3210 @echo '@@@%%%=$(MAKE)=@@@%%%' 3211_ACEOF 3212# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3213case `${MAKE-make} -f conftest.make 2>/dev/null` in 3214 *@@@%%%=?*=@@@%%%*) 3215 eval ac_cv_prog_make_${ac_make}_set=yes;; 3216 *) 3217 eval ac_cv_prog_make_${ac_make}_set=no;; 3218esac 3219rm -f conftest.make 3220fi 3221if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3223$as_echo "yes" >&6; } 3224 SET_MAKE= 3225else 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3227$as_echo "no" >&6; } 3228 SET_MAKE="MAKE=${MAKE-make}" 3229fi 3230 3231rm -rf .tst 2>/dev/null 3232mkdir .tst 2>/dev/null 3233if test -d .tst; then 3234 am__leading_dot=. 3235else 3236 am__leading_dot=_ 3237fi 3238rmdir .tst 2>/dev/null 3239 3240# Check whether --enable-silent-rules was given. 3241if test "${enable_silent_rules+set}" = set; then : 3242 enableval=$enable_silent_rules; 3243fi 3244 3245case $enable_silent_rules in # ((( 3246 yes) AM_DEFAULT_VERBOSITY=0;; 3247 no) AM_DEFAULT_VERBOSITY=1;; 3248 *) AM_DEFAULT_VERBOSITY=1;; 3249esac 3250am_make=${MAKE-make} 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3252$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3253if ${am_cv_make_support_nested_variables+:} false; then : 3254 $as_echo_n "(cached) " >&6 3255else 3256 if $as_echo 'TRUE=$(BAR$(V)) 3257BAR0=false 3258BAR1=true 3259V=1 3260am__doit: 3261 @$(TRUE) 3262.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3263 am_cv_make_support_nested_variables=yes 3264else 3265 am_cv_make_support_nested_variables=no 3266fi 3267fi 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3269$as_echo "$am_cv_make_support_nested_variables" >&6; } 3270if test $am_cv_make_support_nested_variables = yes; then 3271 AM_V='$(V)' 3272 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3273else 3274 AM_V=$AM_DEFAULT_VERBOSITY 3275 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3276fi 3277AM_BACKSLASH='\' 3278 3279if test "`cd $srcdir && pwd`" != "`pwd`"; then 3280 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3281 # is not polluted with repeated "-I." 3282 am__isrc=' -I$(srcdir)' 3283 # test to see if srcdir already configured 3284 if test -f $srcdir/config.status; then 3285 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3286 fi 3287fi 3288 3289# test whether we have cygpath 3290if test -z "$CYGPATH_W"; then 3291 if (cygpath --version) >/dev/null 2>/dev/null; then 3292 CYGPATH_W='cygpath -w' 3293 else 3294 CYGPATH_W=echo 3295 fi 3296fi 3297 3298 3299# Define the identity of the package. 3300 PACKAGE='spice-gtk' 3301 VERSION='0.37' 3302 3303 3304cat >>confdefs.h <<_ACEOF 3305#define PACKAGE "$PACKAGE" 3306_ACEOF 3307 3308 3309cat >>confdefs.h <<_ACEOF 3310#define VERSION "$VERSION" 3311_ACEOF 3312 3313# Some tools Automake needs. 3314 3315ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3316 3317 3318AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3319 3320 3321AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3322 3323 3324AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3325 3326 3327MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3328 3329# For better backward compatibility. To be removed once Automake 1.9.x 3330# dies out for good. For more background, see: 3331# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3332# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3333mkdir_p='$(MKDIR_P)' 3334 3335# We need awk for the "check" target (and possibly the TAP driver). The 3336# system "awk" is bad on some platforms. 3337# Always define AMTAR for backward compatibility. Yes, it's still used 3338# in the wild :-( We should find a proper way to deprecate it ... 3339AMTAR='$${TAR-tar}' 3340 3341 3342# We'll loop over all known methods to create a tar archive until one works. 3343_am_tools='gnutar pax cpio none' 3344 3345am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3346 3347 3348 3349 3350 3351 3352# POSIX will say in a future version that running "rm -f" with no argument 3353# is OK; and we want to be able to make that assumption in our Makefile 3354# recipes. So use an aggressive probe to check that the usage we want is 3355# actually supported "in the wild" to an acceptable degree. 3356# See automake bug#10828. 3357# To make any issue more visible, cause the running configure to be aborted 3358# by default if the 'rm' program in use doesn't match our expectations; the 3359# user can still override this though. 3360if rm -f && rm -fr && rm -rf; then : OK; else 3361 cat >&2 <<'END' 3362Oops! 3363 3364Your 'rm' program seems unable to run without file operands specified 3365on the command line, even when the '-f' option is present. This is contrary 3366to the behaviour of most rm programs out there, and not conforming with 3367the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3368 3369Please tell bug-automake@gnu.org about your system, including the value 3370of your $PATH and any error possibly output before this message. This 3371can help us improve future automake versions. 3372 3373END 3374 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3375 echo 'Configuration will proceed anyway, since you have set the' >&2 3376 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3377 echo >&2 3378 else 3379 cat >&2 <<'END' 3380Aborting the configuration process, to ensure you take notice of the issue. 3381 3382You can download and install GNU coreutils to get an 'rm' implementation 3383that behaves properly: <https://www.gnu.org/software/coreutils/>. 3384 3385If you want to complete the configuration process using your problematic 3386'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3387to "yes", and re-run configure. 3388 3389END 3390 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3391 fi 3392fi 3393 3394DEPDIR="${am__leading_dot}deps" 3395 3396ac_config_commands="$ac_config_commands depfiles" 3397 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3399$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3400cat > confinc.mk << 'END' 3401am__doit: 3402 @echo this is the am__doit target >confinc.out 3403.PHONY: am__doit 3404END 3405am__include="#" 3406am__quote= 3407# BSD make does it like this. 3408echo '.include "confinc.mk" # ignored' > confmf.BSD 3409# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3410echo 'include confinc.mk # ignored' > confmf.GNU 3411_am_result=no 3412for s in GNU BSD; do 3413 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3414 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3415 ac_status=$? 3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3417 (exit $ac_status); } 3418 case $?:`cat confinc.out 2>/dev/null` in #( 3419 '0:this is the am__doit target') : 3420 case $s in #( 3421 BSD) : 3422 am__include='.include' am__quote='"' ;; #( 3423 *) : 3424 am__include='include' am__quote='' ;; 3425esac ;; #( 3426 *) : 3427 ;; 3428esac 3429 if test "$am__include" != "#"; then 3430 _am_result="yes ($s style)" 3431 break 3432 fi 3433done 3434rm -f confinc.* confmf.* 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3436$as_echo "${_am_result}" >&6; } 3437 3438# Check whether --enable-dependency-tracking was given. 3439if test "${enable_dependency_tracking+set}" = set; then : 3440 enableval=$enable_dependency_tracking; 3441fi 3442 3443if test "x$enable_dependency_tracking" != xno; then 3444 am_depcomp="$ac_aux_dir/depcomp" 3445 AMDEPBACKSLASH='\' 3446 am__nodep='_no' 3447fi 3448 if test "x$enable_dependency_tracking" != xno; then 3449 AMDEP_TRUE= 3450 AMDEP_FALSE='#' 3451else 3452 AMDEP_TRUE='#' 3453 AMDEP_FALSE= 3454fi 3455 3456 3457ac_ext=c 3458ac_cpp='$CPP $CPPFLAGS' 3459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3461ac_compiler_gnu=$ac_cv_c_compiler_gnu 3462if test -n "$ac_tool_prefix"; then 3463 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3464set dummy ${ac_tool_prefix}gcc; ac_word=$2 3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3466$as_echo_n "checking for $ac_word... " >&6; } 3467if ${ac_cv_prog_CC+:} false; then : 3468 $as_echo_n "(cached) " >&6 3469else 3470 if test -n "$CC"; then 3471 ac_cv_prog_CC="$CC" # Let the user override the test. 3472else 3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3474for as_dir in $PATH 3475do 3476 IFS=$as_save_IFS 3477 test -z "$as_dir" && as_dir=. 3478 for ac_exec_ext in '' $ac_executable_extensions; do 3479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3480 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3482 break 2 3483 fi 3484done 3485 done 3486IFS=$as_save_IFS 3487 3488fi 3489fi 3490CC=$ac_cv_prog_CC 3491if test -n "$CC"; then 3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3493$as_echo "$CC" >&6; } 3494else 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3496$as_echo "no" >&6; } 3497fi 3498 3499 3500fi 3501if test -z "$ac_cv_prog_CC"; then 3502 ac_ct_CC=$CC 3503 # Extract the first word of "gcc", so it can be a program name with args. 3504set dummy gcc; ac_word=$2 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3506$as_echo_n "checking for $ac_word... " >&6; } 3507if ${ac_cv_prog_ac_ct_CC+:} false; then : 3508 $as_echo_n "(cached) " >&6 3509else 3510 if test -n "$ac_ct_CC"; then 3511 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3512else 3513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3514for as_dir in $PATH 3515do 3516 IFS=$as_save_IFS 3517 test -z "$as_dir" && as_dir=. 3518 for ac_exec_ext in '' $ac_executable_extensions; do 3519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3520 ac_cv_prog_ac_ct_CC="gcc" 3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3522 break 2 3523 fi 3524done 3525 done 3526IFS=$as_save_IFS 3527 3528fi 3529fi 3530ac_ct_CC=$ac_cv_prog_ac_ct_CC 3531if test -n "$ac_ct_CC"; then 3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3533$as_echo "$ac_ct_CC" >&6; } 3534else 3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3536$as_echo "no" >&6; } 3537fi 3538 3539 if test "x$ac_ct_CC" = x; then 3540 CC="" 3541 else 3542 case $cross_compiling:$ac_tool_warned in 3543yes:) 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3546ac_tool_warned=yes ;; 3547esac 3548 CC=$ac_ct_CC 3549 fi 3550else 3551 CC="$ac_cv_prog_CC" 3552fi 3553 3554if test -z "$CC"; then 3555 if test -n "$ac_tool_prefix"; then 3556 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3557set dummy ${ac_tool_prefix}cc; ac_word=$2 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3559$as_echo_n "checking for $ac_word... " >&6; } 3560if ${ac_cv_prog_CC+:} false; then : 3561 $as_echo_n "(cached) " >&6 3562else 3563 if test -n "$CC"; then 3564 ac_cv_prog_CC="$CC" # Let the user override the test. 3565else 3566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3567for as_dir in $PATH 3568do 3569 IFS=$as_save_IFS 3570 test -z "$as_dir" && as_dir=. 3571 for ac_exec_ext in '' $ac_executable_extensions; do 3572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3573 ac_cv_prog_CC="${ac_tool_prefix}cc" 3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3575 break 2 3576 fi 3577done 3578 done 3579IFS=$as_save_IFS 3580 3581fi 3582fi 3583CC=$ac_cv_prog_CC 3584if test -n "$CC"; then 3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3586$as_echo "$CC" >&6; } 3587else 3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3589$as_echo "no" >&6; } 3590fi 3591 3592 3593 fi 3594fi 3595if test -z "$CC"; then 3596 # Extract the first word of "cc", so it can be a program name with args. 3597set dummy cc; ac_word=$2 3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3599$as_echo_n "checking for $ac_word... " >&6; } 3600if ${ac_cv_prog_CC+:} false; then : 3601 $as_echo_n "(cached) " >&6 3602else 3603 if test -n "$CC"; then 3604 ac_cv_prog_CC="$CC" # Let the user override the test. 3605else 3606 ac_prog_rejected=no 3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608for as_dir in $PATH 3609do 3610 IFS=$as_save_IFS 3611 test -z "$as_dir" && as_dir=. 3612 for ac_exec_ext in '' $ac_executable_extensions; do 3613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3615 ac_prog_rejected=yes 3616 continue 3617 fi 3618 ac_cv_prog_CC="cc" 3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3620 break 2 3621 fi 3622done 3623 done 3624IFS=$as_save_IFS 3625 3626if test $ac_prog_rejected = yes; then 3627 # We found a bogon in the path, so make sure we never use it. 3628 set dummy $ac_cv_prog_CC 3629 shift 3630 if test $# != 0; then 3631 # We chose a different compiler from the bogus one. 3632 # However, it has the same basename, so the bogon will be chosen 3633 # first if we set CC to just the basename; use the full file name. 3634 shift 3635 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3636 fi 3637fi 3638fi 3639fi 3640CC=$ac_cv_prog_CC 3641if test -n "$CC"; then 3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3643$as_echo "$CC" >&6; } 3644else 3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3646$as_echo "no" >&6; } 3647fi 3648 3649 3650fi 3651if test -z "$CC"; then 3652 if test -n "$ac_tool_prefix"; then 3653 for ac_prog in cl.exe 3654 do 3655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3656set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3658$as_echo_n "checking for $ac_word... " >&6; } 3659if ${ac_cv_prog_CC+:} false; then : 3660 $as_echo_n "(cached) " >&6 3661else 3662 if test -n "$CC"; then 3663 ac_cv_prog_CC="$CC" # Let the user override the test. 3664else 3665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3666for as_dir in $PATH 3667do 3668 IFS=$as_save_IFS 3669 test -z "$as_dir" && as_dir=. 3670 for ac_exec_ext in '' $ac_executable_extensions; do 3671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3674 break 2 3675 fi 3676done 3677 done 3678IFS=$as_save_IFS 3679 3680fi 3681fi 3682CC=$ac_cv_prog_CC 3683if test -n "$CC"; then 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3685$as_echo "$CC" >&6; } 3686else 3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3688$as_echo "no" >&6; } 3689fi 3690 3691 3692 test -n "$CC" && break 3693 done 3694fi 3695if test -z "$CC"; then 3696 ac_ct_CC=$CC 3697 for ac_prog in cl.exe 3698do 3699 # Extract the first word of "$ac_prog", so it can be a program name with args. 3700set dummy $ac_prog; ac_word=$2 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3702$as_echo_n "checking for $ac_word... " >&6; } 3703if ${ac_cv_prog_ac_ct_CC+:} false; then : 3704 $as_echo_n "(cached) " >&6 3705else 3706 if test -n "$ac_ct_CC"; then 3707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3708else 3709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3710for as_dir in $PATH 3711do 3712 IFS=$as_save_IFS 3713 test -z "$as_dir" && as_dir=. 3714 for ac_exec_ext in '' $ac_executable_extensions; do 3715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3716 ac_cv_prog_ac_ct_CC="$ac_prog" 3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3718 break 2 3719 fi 3720done 3721 done 3722IFS=$as_save_IFS 3723 3724fi 3725fi 3726ac_ct_CC=$ac_cv_prog_ac_ct_CC 3727if test -n "$ac_ct_CC"; then 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3729$as_echo "$ac_ct_CC" >&6; } 3730else 3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3732$as_echo "no" >&6; } 3733fi 3734 3735 3736 test -n "$ac_ct_CC" && break 3737done 3738 3739 if test "x$ac_ct_CC" = x; then 3740 CC="" 3741 else 3742 case $cross_compiling:$ac_tool_warned in 3743yes:) 3744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3746ac_tool_warned=yes ;; 3747esac 3748 CC=$ac_ct_CC 3749 fi 3750fi 3751 3752fi 3753 3754 3755test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3757as_fn_error $? "no acceptable C compiler found in \$PATH 3758See \`config.log' for more details" "$LINENO" 5; } 3759 3760# Provide some information about the compiler. 3761$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3762set X $ac_compile 3763ac_compiler=$2 3764for ac_option in --version -v -V -qversion; do 3765 { { ac_try="$ac_compiler $ac_option >&5" 3766case "(($ac_try" in 3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3768 *) ac_try_echo=$ac_try;; 3769esac 3770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3771$as_echo "$ac_try_echo"; } >&5 3772 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3773 ac_status=$? 3774 if test -s conftest.err; then 3775 sed '10a\ 3776... rest of stderr output deleted ... 3777 10q' conftest.err >conftest.er1 3778 cat conftest.er1 >&5 3779 fi 3780 rm -f conftest.er1 conftest.err 3781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3782 test $ac_status = 0; } 3783done 3784 3785cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3786/* end confdefs.h. */ 3787 3788int 3789main () 3790{ 3791 3792 ; 3793 return 0; 3794} 3795_ACEOF 3796ac_clean_files_save=$ac_clean_files 3797ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3798# Try to create an executable without -o first, disregard a.out. 3799# It will help us diagnose broken compilers, and finding out an intuition 3800# of exeext. 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3802$as_echo_n "checking whether the C compiler works... " >&6; } 3803ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3804 3805# The possible output files: 3806ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3807 3808ac_rmfiles= 3809for ac_file in $ac_files 3810do 3811 case $ac_file in 3812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3813 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3814 esac 3815done 3816rm -f $ac_rmfiles 3817 3818if { { ac_try="$ac_link_default" 3819case "(($ac_try" in 3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3821 *) ac_try_echo=$ac_try;; 3822esac 3823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3824$as_echo "$ac_try_echo"; } >&5 3825 (eval "$ac_link_default") 2>&5 3826 ac_status=$? 3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3828 test $ac_status = 0; }; then : 3829 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3830# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3831# in a Makefile. We should not override ac_cv_exeext if it was cached, 3832# so that the user can short-circuit this test for compilers unknown to 3833# Autoconf. 3834for ac_file in $ac_files '' 3835do 3836 test -f "$ac_file" || continue 3837 case $ac_file in 3838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3839 ;; 3840 [ab].out ) 3841 # We found the default executable, but exeext='' is most 3842 # certainly right. 3843 break;; 3844 *.* ) 3845 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3846 then :; else 3847 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3848 fi 3849 # We set ac_cv_exeext here because the later test for it is not 3850 # safe: cross compilers may not add the suffix if given an `-o' 3851 # argument, so we may need to know it at that point already. 3852 # Even if this section looks crufty: it has the advantage of 3853 # actually working. 3854 break;; 3855 * ) 3856 break;; 3857 esac 3858done 3859test "$ac_cv_exeext" = no && ac_cv_exeext= 3860 3861else 3862 ac_file='' 3863fi 3864if test -z "$ac_file"; then : 3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3866$as_echo "no" >&6; } 3867$as_echo "$as_me: failed program was:" >&5 3868sed 's/^/| /' conftest.$ac_ext >&5 3869 3870{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3872as_fn_error 77 "C compiler cannot create executables 3873See \`config.log' for more details" "$LINENO" 5; } 3874else 3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3876$as_echo "yes" >&6; } 3877fi 3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3879$as_echo_n "checking for C compiler default output file name... " >&6; } 3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3881$as_echo "$ac_file" >&6; } 3882ac_exeext=$ac_cv_exeext 3883 3884rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3885ac_clean_files=$ac_clean_files_save 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3887$as_echo_n "checking for suffix of executables... " >&6; } 3888if { { ac_try="$ac_link" 3889case "(($ac_try" in 3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3891 *) ac_try_echo=$ac_try;; 3892esac 3893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3894$as_echo "$ac_try_echo"; } >&5 3895 (eval "$ac_link") 2>&5 3896 ac_status=$? 3897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3898 test $ac_status = 0; }; then : 3899 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3900# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3901# work properly (i.e., refer to `conftest.exe'), while it won't with 3902# `rm'. 3903for ac_file in conftest.exe conftest conftest.*; do 3904 test -f "$ac_file" || continue 3905 case $ac_file in 3906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3907 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3908 break;; 3909 * ) break;; 3910 esac 3911done 3912else 3913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3914$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3915as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3916See \`config.log' for more details" "$LINENO" 5; } 3917fi 3918rm -f conftest conftest$ac_cv_exeext 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3920$as_echo "$ac_cv_exeext" >&6; } 3921 3922rm -f conftest.$ac_ext 3923EXEEXT=$ac_cv_exeext 3924ac_exeext=$EXEEXT 3925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3926/* end confdefs.h. */ 3927#include <stdio.h> 3928int 3929main () 3930{ 3931FILE *f = fopen ("conftest.out", "w"); 3932 return ferror (f) || fclose (f) != 0; 3933 3934 ; 3935 return 0; 3936} 3937_ACEOF 3938ac_clean_files="$ac_clean_files conftest.out" 3939# Check that the compiler produces executables we can run. If not, either 3940# the compiler is broken, or we cross compile. 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3942$as_echo_n "checking whether we are cross compiling... " >&6; } 3943if test "$cross_compiling" != yes; then 3944 { { ac_try="$ac_link" 3945case "(($ac_try" in 3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3947 *) ac_try_echo=$ac_try;; 3948esac 3949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3950$as_echo "$ac_try_echo"; } >&5 3951 (eval "$ac_link") 2>&5 3952 ac_status=$? 3953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3954 test $ac_status = 0; } 3955 if { ac_try='./conftest$ac_cv_exeext' 3956 { { case "(($ac_try" in 3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3958 *) ac_try_echo=$ac_try;; 3959esac 3960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3961$as_echo "$ac_try_echo"; } >&5 3962 (eval "$ac_try") 2>&5 3963 ac_status=$? 3964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3965 test $ac_status = 0; }; }; then 3966 cross_compiling=no 3967 else 3968 if test "$cross_compiling" = maybe; then 3969 cross_compiling=yes 3970 else 3971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3973as_fn_error $? "cannot run C compiled programs. 3974If you meant to cross compile, use \`--host'. 3975See \`config.log' for more details" "$LINENO" 5; } 3976 fi 3977 fi 3978fi 3979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3980$as_echo "$cross_compiling" >&6; } 3981 3982rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3983ac_clean_files=$ac_clean_files_save 3984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3985$as_echo_n "checking for suffix of object files... " >&6; } 3986if ${ac_cv_objext+:} false; then : 3987 $as_echo_n "(cached) " >&6 3988else 3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3990/* end confdefs.h. */ 3991 3992int 3993main () 3994{ 3995 3996 ; 3997 return 0; 3998} 3999_ACEOF 4000rm -f conftest.o conftest.obj 4001if { { ac_try="$ac_compile" 4002case "(($ac_try" in 4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4004 *) ac_try_echo=$ac_try;; 4005esac 4006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4007$as_echo "$ac_try_echo"; } >&5 4008 (eval "$ac_compile") 2>&5 4009 ac_status=$? 4010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4011 test $ac_status = 0; }; then : 4012 for ac_file in conftest.o conftest.obj conftest.*; do 4013 test -f "$ac_file" || continue; 4014 case $ac_file in 4015 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4016 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4017 break;; 4018 esac 4019done 4020else 4021 $as_echo "$as_me: failed program was:" >&5 4022sed 's/^/| /' conftest.$ac_ext >&5 4023 4024{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4026as_fn_error $? "cannot compute suffix of object files: cannot compile 4027See \`config.log' for more details" "$LINENO" 5; } 4028fi 4029rm -f conftest.$ac_cv_objext conftest.$ac_ext 4030fi 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4032$as_echo "$ac_cv_objext" >&6; } 4033OBJEXT=$ac_cv_objext 4034ac_objext=$OBJEXT 4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4036$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4037if ${ac_cv_c_compiler_gnu+:} false; then : 4038 $as_echo_n "(cached) " >&6 4039else 4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4041/* end confdefs.h. */ 4042 4043int 4044main () 4045{ 4046#ifndef __GNUC__ 4047 choke me 4048#endif 4049 4050 ; 4051 return 0; 4052} 4053_ACEOF 4054if ac_fn_c_try_compile "$LINENO"; then : 4055 ac_compiler_gnu=yes 4056else 4057 ac_compiler_gnu=no 4058fi 4059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4060ac_cv_c_compiler_gnu=$ac_compiler_gnu 4061 4062fi 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4064$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4065if test $ac_compiler_gnu = yes; then 4066 GCC=yes 4067else 4068 GCC= 4069fi 4070ac_test_CFLAGS=${CFLAGS+set} 4071ac_save_CFLAGS=$CFLAGS 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4073$as_echo_n "checking whether $CC accepts -g... " >&6; } 4074if ${ac_cv_prog_cc_g+:} false; then : 4075 $as_echo_n "(cached) " >&6 4076else 4077 ac_save_c_werror_flag=$ac_c_werror_flag 4078 ac_c_werror_flag=yes 4079 ac_cv_prog_cc_g=no 4080 CFLAGS="-g" 4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4082/* end confdefs.h. */ 4083 4084int 4085main () 4086{ 4087 4088 ; 4089 return 0; 4090} 4091_ACEOF 4092if ac_fn_c_try_compile "$LINENO"; then : 4093 ac_cv_prog_cc_g=yes 4094else 4095 CFLAGS="" 4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4097/* end confdefs.h. */ 4098 4099int 4100main () 4101{ 4102 4103 ; 4104 return 0; 4105} 4106_ACEOF 4107if ac_fn_c_try_compile "$LINENO"; then : 4108 4109else 4110 ac_c_werror_flag=$ac_save_c_werror_flag 4111 CFLAGS="-g" 4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4113/* end confdefs.h. */ 4114 4115int 4116main () 4117{ 4118 4119 ; 4120 return 0; 4121} 4122_ACEOF 4123if ac_fn_c_try_compile "$LINENO"; then : 4124 ac_cv_prog_cc_g=yes 4125fi 4126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4127fi 4128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4129fi 4130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4131 ac_c_werror_flag=$ac_save_c_werror_flag 4132fi 4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4134$as_echo "$ac_cv_prog_cc_g" >&6; } 4135if test "$ac_test_CFLAGS" = set; then 4136 CFLAGS=$ac_save_CFLAGS 4137elif test $ac_cv_prog_cc_g = yes; then 4138 if test "$GCC" = yes; then 4139 CFLAGS="-g -O2" 4140 else 4141 CFLAGS="-g" 4142 fi 4143else 4144 if test "$GCC" = yes; then 4145 CFLAGS="-O2" 4146 else 4147 CFLAGS= 4148 fi 4149fi 4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4151$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4152if ${ac_cv_prog_cc_c89+:} false; then : 4153 $as_echo_n "(cached) " >&6 4154else 4155 ac_cv_prog_cc_c89=no 4156ac_save_CC=$CC 4157cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4158/* end confdefs.h. */ 4159#include <stdarg.h> 4160#include <stdio.h> 4161struct stat; 4162/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4163struct buf { int x; }; 4164FILE * (*rcsopen) (struct buf *, struct stat *, int); 4165static char *e (p, i) 4166 char **p; 4167 int i; 4168{ 4169 return p[i]; 4170} 4171static char *f (char * (*g) (char **, int), char **p, ...) 4172{ 4173 char *s; 4174 va_list v; 4175 va_start (v,p); 4176 s = g (p, va_arg (v,int)); 4177 va_end (v); 4178 return s; 4179} 4180 4181/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4182 function prototypes and stuff, but not '\xHH' hex character constants. 4183 These don't provoke an error unfortunately, instead are silently treated 4184 as 'x'. The following induces an error, until -std is added to get 4185 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4186 array size at least. It's necessary to write '\x00'==0 to get something 4187 that's true only with -std. */ 4188int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4189 4190/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4191 inside strings and character constants. */ 4192#define FOO(x) 'x' 4193int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4194 4195int test (int i, double x); 4196struct s1 {int (*f) (int a);}; 4197struct s2 {int (*f) (double a);}; 4198int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4199int argc; 4200char **argv; 4201int 4202main () 4203{ 4204return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4205 ; 4206 return 0; 4207} 4208_ACEOF 4209for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4210 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4211do 4212 CC="$ac_save_CC $ac_arg" 4213 if ac_fn_c_try_compile "$LINENO"; then : 4214 ac_cv_prog_cc_c89=$ac_arg 4215fi 4216rm -f core conftest.err conftest.$ac_objext 4217 test "x$ac_cv_prog_cc_c89" != "xno" && break 4218done 4219rm -f conftest.$ac_ext 4220CC=$ac_save_CC 4221 4222fi 4223# AC_CACHE_VAL 4224case "x$ac_cv_prog_cc_c89" in 4225 x) 4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4227$as_echo "none needed" >&6; } ;; 4228 xno) 4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4230$as_echo "unsupported" >&6; } ;; 4231 *) 4232 CC="$CC $ac_cv_prog_cc_c89" 4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4234$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4235esac 4236if test "x$ac_cv_prog_cc_c89" != xno; then : 4237 4238fi 4239 4240ac_ext=c 4241ac_cpp='$CPP $CPPFLAGS' 4242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4244ac_compiler_gnu=$ac_cv_c_compiler_gnu 4245 4246ac_ext=c 4247ac_cpp='$CPP $CPPFLAGS' 4248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4250ac_compiler_gnu=$ac_cv_c_compiler_gnu 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4252$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4253if ${am_cv_prog_cc_c_o+:} false; then : 4254 $as_echo_n "(cached) " >&6 4255else 4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4257/* end confdefs.h. */ 4258 4259int 4260main () 4261{ 4262 4263 ; 4264 return 0; 4265} 4266_ACEOF 4267 # Make sure it works both with $CC and with simple cc. 4268 # Following AC_PROG_CC_C_O, we do the test twice because some 4269 # compilers refuse to overwrite an existing .o file with -o, 4270 # though they will create one. 4271 am_cv_prog_cc_c_o=yes 4272 for am_i in 1 2; do 4273 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4274 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4275 ac_status=$? 4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4277 (exit $ac_status); } \ 4278 && test -f conftest2.$ac_objext; then 4279 : OK 4280 else 4281 am_cv_prog_cc_c_o=no 4282 break 4283 fi 4284 done 4285 rm -f core conftest* 4286 unset am_i 4287fi 4288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4289$as_echo "$am_cv_prog_cc_c_o" >&6; } 4290if test "$am_cv_prog_cc_c_o" != yes; then 4291 # Losing compiler, so override with the script. 4292 # FIXME: It is wrong to rewrite CC. 4293 # But if we don't then we get into trouble of one sort or another. 4294 # A longer-term fix would be to have automake use am__CC in this case, 4295 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4296 CC="$am_aux_dir/compile $CC" 4297fi 4298ac_ext=c 4299ac_cpp='$CPP $CPPFLAGS' 4300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4302ac_compiler_gnu=$ac_cv_c_compiler_gnu 4303 4304 4305depcc="$CC" am_compiler_list= 4306 4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4308$as_echo_n "checking dependency style of $depcc... " >&6; } 4309if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4310 $as_echo_n "(cached) " >&6 4311else 4312 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4313 # We make a subdir and do the tests there. Otherwise we can end up 4314 # making bogus files that we don't know about and never remove. For 4315 # instance it was reported that on HP-UX the gcc test will end up 4316 # making a dummy file named 'D' -- because '-MD' means "put the output 4317 # in D". 4318 rm -rf conftest.dir 4319 mkdir conftest.dir 4320 # Copy depcomp to subdir because otherwise we won't find it if we're 4321 # using a relative directory. 4322 cp "$am_depcomp" conftest.dir 4323 cd conftest.dir 4324 # We will build objects and dependencies in a subdirectory because 4325 # it helps to detect inapplicable dependency modes. For instance 4326 # both Tru64's cc and ICC support -MD to output dependencies as a 4327 # side effect of compilation, but ICC will put the dependencies in 4328 # the current directory while Tru64 will put them in the object 4329 # directory. 4330 mkdir sub 4331 4332 am_cv_CC_dependencies_compiler_type=none 4333 if test "$am_compiler_list" = ""; then 4334 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4335 fi 4336 am__universal=false 4337 case " $depcc " in #( 4338 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4339 esac 4340 4341 for depmode in $am_compiler_list; do 4342 # Setup a source with many dependencies, because some compilers 4343 # like to wrap large dependency lists on column 80 (with \), and 4344 # we should not choose a depcomp mode which is confused by this. 4345 # 4346 # We need to recreate these files for each test, as the compiler may 4347 # overwrite some of them when testing with obscure command lines. 4348 # This happens at least with the AIX C compiler. 4349 : > sub/conftest.c 4350 for i in 1 2 3 4 5 6; do 4351 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4352 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4353 # Solaris 10 /bin/sh. 4354 echo '/* dummy */' > sub/conftst$i.h 4355 done 4356 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4357 4358 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4359 # mode. It turns out that the SunPro C++ compiler does not properly 4360 # handle '-M -o', and we need to detect this. Also, some Intel 4361 # versions had trouble with output in subdirs. 4362 am__obj=sub/conftest.${OBJEXT-o} 4363 am__minus_obj="-o $am__obj" 4364 case $depmode in 4365 gcc) 4366 # This depmode causes a compiler race in universal mode. 4367 test "$am__universal" = false || continue 4368 ;; 4369 nosideeffect) 4370 # After this tag, mechanisms are not by side-effect, so they'll 4371 # only be used when explicitly requested. 4372 if test "x$enable_dependency_tracking" = xyes; then 4373 continue 4374 else 4375 break 4376 fi 4377 ;; 4378 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4379 # This compiler won't grok '-c -o', but also, the minuso test has 4380 # not run yet. These depmodes are late enough in the game, and 4381 # so weak that their functioning should not be impacted. 4382 am__obj=conftest.${OBJEXT-o} 4383 am__minus_obj= 4384 ;; 4385 none) break ;; 4386 esac 4387 if depmode=$depmode \ 4388 source=sub/conftest.c object=$am__obj \ 4389 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4390 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4391 >/dev/null 2>conftest.err && 4392 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4393 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4394 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4395 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4396 # icc doesn't choke on unknown options, it will just issue warnings 4397 # or remarks (even with -Werror). So we grep stderr for any message 4398 # that says an option was ignored or not supported. 4399 # When given -MP, icc 7.0 and 7.1 complain thusly: 4400 # icc: Command line warning: ignoring option '-M'; no argument required 4401 # The diagnosis changed in icc 8.0: 4402 # icc: Command line remark: option '-MP' not supported 4403 if (grep 'ignoring option' conftest.err || 4404 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4405 am_cv_CC_dependencies_compiler_type=$depmode 4406 break 4407 fi 4408 fi 4409 done 4410 4411 cd .. 4412 rm -rf conftest.dir 4413else 4414 am_cv_CC_dependencies_compiler_type=none 4415fi 4416 4417fi 4418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4419$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4420CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4421 4422 if 4423 test "x$enable_dependency_tracking" != xno \ 4424 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4425 am__fastdepCC_TRUE= 4426 am__fastdepCC_FALSE='#' 4427else 4428 am__fastdepCC_TRUE='#' 4429 am__fastdepCC_FALSE= 4430fi 4431 4432 4433 4434if test -n "$ac_tool_prefix"; then 4435 for ac_prog in ar lib "link -lib" 4436 do 4437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4438set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4440$as_echo_n "checking for $ac_word... " >&6; } 4441if ${ac_cv_prog_AR+:} false; then : 4442 $as_echo_n "(cached) " >&6 4443else 4444 if test -n "$AR"; then 4445 ac_cv_prog_AR="$AR" # Let the user override the test. 4446else 4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4448for as_dir in $PATH 4449do 4450 IFS=$as_save_IFS 4451 test -z "$as_dir" && as_dir=. 4452 for ac_exec_ext in '' $ac_executable_extensions; do 4453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4454 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4456 break 2 4457 fi 4458done 4459 done 4460IFS=$as_save_IFS 4461 4462fi 4463fi 4464AR=$ac_cv_prog_AR 4465if test -n "$AR"; then 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4467$as_echo "$AR" >&6; } 4468else 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4470$as_echo "no" >&6; } 4471fi 4472 4473 4474 test -n "$AR" && break 4475 done 4476fi 4477if test -z "$AR"; then 4478 ac_ct_AR=$AR 4479 for ac_prog in ar lib "link -lib" 4480do 4481 # Extract the first word of "$ac_prog", so it can be a program name with args. 4482set dummy $ac_prog; ac_word=$2 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4484$as_echo_n "checking for $ac_word... " >&6; } 4485if ${ac_cv_prog_ac_ct_AR+:} false; then : 4486 $as_echo_n "(cached) " >&6 4487else 4488 if test -n "$ac_ct_AR"; then 4489 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4490else 4491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4492for as_dir in $PATH 4493do 4494 IFS=$as_save_IFS 4495 test -z "$as_dir" && as_dir=. 4496 for ac_exec_ext in '' $ac_executable_extensions; do 4497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4498 ac_cv_prog_ac_ct_AR="$ac_prog" 4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4500 break 2 4501 fi 4502done 4503 done 4504IFS=$as_save_IFS 4505 4506fi 4507fi 4508ac_ct_AR=$ac_cv_prog_ac_ct_AR 4509if test -n "$ac_ct_AR"; then 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4511$as_echo "$ac_ct_AR" >&6; } 4512else 4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4514$as_echo "no" >&6; } 4515fi 4516 4517 4518 test -n "$ac_ct_AR" && break 4519done 4520 4521 if test "x$ac_ct_AR" = x; then 4522 AR="false" 4523 else 4524 case $cross_compiling:$ac_tool_warned in 4525yes:) 4526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4528ac_tool_warned=yes ;; 4529esac 4530 AR=$ac_ct_AR 4531 fi 4532fi 4533 4534: ${AR=ar} 4535 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4537$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4538if ${am_cv_ar_interface+:} false; then : 4539 $as_echo_n "(cached) " >&6 4540else 4541 ac_ext=c 4542ac_cpp='$CPP $CPPFLAGS' 4543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4545ac_compiler_gnu=$ac_cv_c_compiler_gnu 4546 4547 am_cv_ar_interface=ar 4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4549/* end confdefs.h. */ 4550int some_variable = 0; 4551_ACEOF 4552if ac_fn_c_try_compile "$LINENO"; then : 4553 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4555 (eval $am_ar_try) 2>&5 4556 ac_status=$? 4557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4558 test $ac_status = 0; } 4559 if test "$ac_status" -eq 0; then 4560 am_cv_ar_interface=ar 4561 else 4562 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4564 (eval $am_ar_try) 2>&5 4565 ac_status=$? 4566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4567 test $ac_status = 0; } 4568 if test "$ac_status" -eq 0; then 4569 am_cv_ar_interface=lib 4570 else 4571 am_cv_ar_interface=unknown 4572 fi 4573 fi 4574 rm -f conftest.lib libconftest.a 4575 4576fi 4577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4578 ac_ext=c 4579ac_cpp='$CPP $CPPFLAGS' 4580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4582ac_compiler_gnu=$ac_cv_c_compiler_gnu 4583 4584fi 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4586$as_echo "$am_cv_ar_interface" >&6; } 4587 4588case $am_cv_ar_interface in 4589ar) 4590 ;; 4591lib) 4592 # Microsoft lib, so override with the ar-lib wrapper script. 4593 # FIXME: It is wrong to rewrite AR. 4594 # But if we don't then we get into trouble of one sort or another. 4595 # A longer-term fix would be to have automake use am__AR in this case, 4596 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4597 # similar. 4598 AR="$am_aux_dir/ar-lib $AR" 4599 ;; 4600unknown) 4601 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4602 ;; 4603esac 4604 4605case `pwd` in 4606 *\ * | *\ *) 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4608$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4609esac 4610 4611 4612 4613macro_version='2.4.6' 4614macro_revision='2.4.6' 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628ltmain=$ac_aux_dir/ltmain.sh 4629 4630# Make sure we can run config.sub. 4631$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4632 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4633 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4635$as_echo_n "checking build system type... " >&6; } 4636if ${ac_cv_build+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 ac_build_alias=$build_alias 4640test "x$ac_build_alias" = x && 4641 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4642test "x$ac_build_alias" = x && 4643 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4644ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4645 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4646 4647fi 4648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4649$as_echo "$ac_cv_build" >&6; } 4650case $ac_cv_build in 4651*-*-*) ;; 4652*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4653esac 4654build=$ac_cv_build 4655ac_save_IFS=$IFS; IFS='-' 4656set x $ac_cv_build 4657shift 4658build_cpu=$1 4659build_vendor=$2 4660shift; shift 4661# Remember, the first character of IFS is used to create $*, 4662# except with old shells: 4663build_os=$* 4664IFS=$ac_save_IFS 4665case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4666 4667 4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4669$as_echo_n "checking host system type... " >&6; } 4670if ${ac_cv_host+:} false; then : 4671 $as_echo_n "(cached) " >&6 4672else 4673 if test "x$host_alias" = x; then 4674 ac_cv_host=$ac_cv_build 4675else 4676 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4677 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4678fi 4679 4680fi 4681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4682$as_echo "$ac_cv_host" >&6; } 4683case $ac_cv_host in 4684*-*-*) ;; 4685*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4686esac 4687host=$ac_cv_host 4688ac_save_IFS=$IFS; IFS='-' 4689set x $ac_cv_host 4690shift 4691host_cpu=$1 4692host_vendor=$2 4693shift; shift 4694# Remember, the first character of IFS is used to create $*, 4695# except with old shells: 4696host_os=$* 4697IFS=$ac_save_IFS 4698case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4699 4700 4701# Backslashify metacharacters that are still active within 4702# double-quoted strings. 4703sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4704 4705# Same as above, but do not quote variable references. 4706double_quote_subst='s/\(["`\\]\)/\\\1/g' 4707 4708# Sed substitution to delay expansion of an escaped shell variable in a 4709# double_quote_subst'ed string. 4710delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4711 4712# Sed substitution to delay expansion of an escaped single quote. 4713delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4714 4715# Sed substitution to avoid accidental globbing in evaled expressions 4716no_glob_subst='s/\*/\\\*/g' 4717 4718ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4719ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4720ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4721 4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4723$as_echo_n "checking how to print strings... " >&6; } 4724# Test print first, because it will be a builtin if present. 4725if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4726 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4727 ECHO='print -r --' 4728elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4729 ECHO='printf %s\n' 4730else 4731 # Use this function as a fallback that always works. 4732 func_fallback_echo () 4733 { 4734 eval 'cat <<_LTECHO_EOF 4735$1 4736_LTECHO_EOF' 4737 } 4738 ECHO='func_fallback_echo' 4739fi 4740 4741# func_echo_all arg... 4742# Invoke $ECHO with all args, space-separated. 4743func_echo_all () 4744{ 4745 $ECHO "" 4746} 4747 4748case $ECHO in 4749 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4750$as_echo "printf" >&6; } ;; 4751 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4752$as_echo "print -r" >&6; } ;; 4753 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4754$as_echo "cat" >&6; } ;; 4755esac 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4771$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4772if ${ac_cv_path_SED+:} false; then : 4773 $as_echo_n "(cached) " >&6 4774else 4775 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4776 for ac_i in 1 2 3 4 5 6 7; do 4777 ac_script="$ac_script$as_nl$ac_script" 4778 done 4779 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4780 { ac_script=; unset ac_script;} 4781 if test -z "$SED"; then 4782 ac_path_SED_found=false 4783 # Loop through the user's path and test for each of PROGNAME-LIST 4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4785for as_dir in $PATH 4786do 4787 IFS=$as_save_IFS 4788 test -z "$as_dir" && as_dir=. 4789 for ac_prog in sed gsed; do 4790 for ac_exec_ext in '' $ac_executable_extensions; do 4791 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4792 as_fn_executable_p "$ac_path_SED" || continue 4793# Check for GNU ac_path_SED and select it if it is found. 4794 # Check for GNU $ac_path_SED 4795case `"$ac_path_SED" --version 2>&1` in 4796*GNU*) 4797 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4798*) 4799 ac_count=0 4800 $as_echo_n 0123456789 >"conftest.in" 4801 while : 4802 do 4803 cat "conftest.in" "conftest.in" >"conftest.tmp" 4804 mv "conftest.tmp" "conftest.in" 4805 cp "conftest.in" "conftest.nl" 4806 $as_echo '' >> "conftest.nl" 4807 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4809 as_fn_arith $ac_count + 1 && ac_count=$as_val 4810 if test $ac_count -gt ${ac_path_SED_max-0}; then 4811 # Best one so far, save it but keep looking for a better one 4812 ac_cv_path_SED="$ac_path_SED" 4813 ac_path_SED_max=$ac_count 4814 fi 4815 # 10*(2^10) chars as input seems more than enough 4816 test $ac_count -gt 10 && break 4817 done 4818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4819esac 4820 4821 $ac_path_SED_found && break 3 4822 done 4823 done 4824 done 4825IFS=$as_save_IFS 4826 if test -z "$ac_cv_path_SED"; then 4827 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4828 fi 4829else 4830 ac_cv_path_SED=$SED 4831fi 4832 4833fi 4834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4835$as_echo "$ac_cv_path_SED" >&6; } 4836 SED="$ac_cv_path_SED" 4837 rm -f conftest.sed 4838 4839test -z "$SED" && SED=sed 4840Xsed="$SED -e 1s/^X//" 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4853$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4854if ${ac_cv_path_GREP+:} false; then : 4855 $as_echo_n "(cached) " >&6 4856else 4857 if test -z "$GREP"; then 4858 ac_path_GREP_found=false 4859 # Loop through the user's path and test for each of PROGNAME-LIST 4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4861for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4862do 4863 IFS=$as_save_IFS 4864 test -z "$as_dir" && as_dir=. 4865 for ac_prog in grep ggrep; do 4866 for ac_exec_ext in '' $ac_executable_extensions; do 4867 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4868 as_fn_executable_p "$ac_path_GREP" || continue 4869# Check for GNU ac_path_GREP and select it if it is found. 4870 # Check for GNU $ac_path_GREP 4871case `"$ac_path_GREP" --version 2>&1` in 4872*GNU*) 4873 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4874*) 4875 ac_count=0 4876 $as_echo_n 0123456789 >"conftest.in" 4877 while : 4878 do 4879 cat "conftest.in" "conftest.in" >"conftest.tmp" 4880 mv "conftest.tmp" "conftest.in" 4881 cp "conftest.in" "conftest.nl" 4882 $as_echo 'GREP' >> "conftest.nl" 4883 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4884 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4885 as_fn_arith $ac_count + 1 && ac_count=$as_val 4886 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4887 # Best one so far, save it but keep looking for a better one 4888 ac_cv_path_GREP="$ac_path_GREP" 4889 ac_path_GREP_max=$ac_count 4890 fi 4891 # 10*(2^10) chars as input seems more than enough 4892 test $ac_count -gt 10 && break 4893 done 4894 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4895esac 4896 4897 $ac_path_GREP_found && break 3 4898 done 4899 done 4900 done 4901IFS=$as_save_IFS 4902 if test -z "$ac_cv_path_GREP"; then 4903 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4904 fi 4905else 4906 ac_cv_path_GREP=$GREP 4907fi 4908 4909fi 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4911$as_echo "$ac_cv_path_GREP" >&6; } 4912 GREP="$ac_cv_path_GREP" 4913 4914 4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4916$as_echo_n "checking for egrep... " >&6; } 4917if ${ac_cv_path_EGREP+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4921 then ac_cv_path_EGREP="$GREP -E" 4922 else 4923 if test -z "$EGREP"; then 4924 ac_path_EGREP_found=false 4925 # Loop through the user's path and test for each of PROGNAME-LIST 4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4927for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4928do 4929 IFS=$as_save_IFS 4930 test -z "$as_dir" && as_dir=. 4931 for ac_prog in egrep; do 4932 for ac_exec_ext in '' $ac_executable_extensions; do 4933 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4934 as_fn_executable_p "$ac_path_EGREP" || continue 4935# Check for GNU ac_path_EGREP and select it if it is found. 4936 # Check for GNU $ac_path_EGREP 4937case `"$ac_path_EGREP" --version 2>&1` in 4938*GNU*) 4939 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4940*) 4941 ac_count=0 4942 $as_echo_n 0123456789 >"conftest.in" 4943 while : 4944 do 4945 cat "conftest.in" "conftest.in" >"conftest.tmp" 4946 mv "conftest.tmp" "conftest.in" 4947 cp "conftest.in" "conftest.nl" 4948 $as_echo 'EGREP' >> "conftest.nl" 4949 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4951 as_fn_arith $ac_count + 1 && ac_count=$as_val 4952 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4953 # Best one so far, save it but keep looking for a better one 4954 ac_cv_path_EGREP="$ac_path_EGREP" 4955 ac_path_EGREP_max=$ac_count 4956 fi 4957 # 10*(2^10) chars as input seems more than enough 4958 test $ac_count -gt 10 && break 4959 done 4960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4961esac 4962 4963 $ac_path_EGREP_found && break 3 4964 done 4965 done 4966 done 4967IFS=$as_save_IFS 4968 if test -z "$ac_cv_path_EGREP"; then 4969 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4970 fi 4971else 4972 ac_cv_path_EGREP=$EGREP 4973fi 4974 4975 fi 4976fi 4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4978$as_echo "$ac_cv_path_EGREP" >&6; } 4979 EGREP="$ac_cv_path_EGREP" 4980 4981 4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4983$as_echo_n "checking for fgrep... " >&6; } 4984if ${ac_cv_path_FGREP+:} false; then : 4985 $as_echo_n "(cached) " >&6 4986else 4987 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4988 then ac_cv_path_FGREP="$GREP -F" 4989 else 4990 if test -z "$FGREP"; then 4991 ac_path_FGREP_found=false 4992 # Loop through the user's path and test for each of PROGNAME-LIST 4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4994for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4995do 4996 IFS=$as_save_IFS 4997 test -z "$as_dir" && as_dir=. 4998 for ac_prog in fgrep; do 4999 for ac_exec_ext in '' $ac_executable_extensions; do 5000 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5001 as_fn_executable_p "$ac_path_FGREP" || continue 5002# Check for GNU ac_path_FGREP and select it if it is found. 5003 # Check for GNU $ac_path_FGREP 5004case `"$ac_path_FGREP" --version 2>&1` in 5005*GNU*) 5006 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5007*) 5008 ac_count=0 5009 $as_echo_n 0123456789 >"conftest.in" 5010 while : 5011 do 5012 cat "conftest.in" "conftest.in" >"conftest.tmp" 5013 mv "conftest.tmp" "conftest.in" 5014 cp "conftest.in" "conftest.nl" 5015 $as_echo 'FGREP' >> "conftest.nl" 5016 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5017 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5018 as_fn_arith $ac_count + 1 && ac_count=$as_val 5019 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5020 # Best one so far, save it but keep looking for a better one 5021 ac_cv_path_FGREP="$ac_path_FGREP" 5022 ac_path_FGREP_max=$ac_count 5023 fi 5024 # 10*(2^10) chars as input seems more than enough 5025 test $ac_count -gt 10 && break 5026 done 5027 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5028esac 5029 5030 $ac_path_FGREP_found && break 3 5031 done 5032 done 5033 done 5034IFS=$as_save_IFS 5035 if test -z "$ac_cv_path_FGREP"; then 5036 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5037 fi 5038else 5039 ac_cv_path_FGREP=$FGREP 5040fi 5041 5042 fi 5043fi 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5045$as_echo "$ac_cv_path_FGREP" >&6; } 5046 FGREP="$ac_cv_path_FGREP" 5047 5048 5049test -z "$GREP" && GREP=grep 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069# Check whether --with-gnu-ld was given. 5070if test "${with_gnu_ld+set}" = set; then : 5071 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5072else 5073 with_gnu_ld=no 5074fi 5075 5076ac_prog=ld 5077if test yes = "$GCC"; then 5078 # Check if gcc -print-prog-name=ld gives a path. 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5080$as_echo_n "checking for ld used by $CC... " >&6; } 5081 case $host in 5082 *-*-mingw*) 5083 # gcc leaves a trailing carriage return, which upsets mingw 5084 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5085 *) 5086 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5087 esac 5088 case $ac_prog in 5089 # Accept absolute paths. 5090 [\\/]* | ?:[\\/]*) 5091 re_direlt='/[^/][^/]*/\.\./' 5092 # Canonicalize the pathname of ld 5093 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5094 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5095 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5096 done 5097 test -z "$LD" && LD=$ac_prog 5098 ;; 5099 "") 5100 # If it fails, then pretend we aren't using GCC. 5101 ac_prog=ld 5102 ;; 5103 *) 5104 # If it is relative, then search for the first ld in PATH. 5105 with_gnu_ld=unknown 5106 ;; 5107 esac 5108elif test yes = "$with_gnu_ld"; then 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5110$as_echo_n "checking for GNU ld... " >&6; } 5111else 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5113$as_echo_n "checking for non-GNU ld... " >&6; } 5114fi 5115if ${lt_cv_path_LD+:} false; then : 5116 $as_echo_n "(cached) " >&6 5117else 5118 if test -z "$LD"; then 5119 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5120 for ac_dir in $PATH; do 5121 IFS=$lt_save_ifs 5122 test -z "$ac_dir" && ac_dir=. 5123 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5124 lt_cv_path_LD=$ac_dir/$ac_prog 5125 # Check to see if the program is GNU ld. I'd rather use --version, 5126 # but apparently some variants of GNU ld only accept -v. 5127 # Break only if it was the GNU/non-GNU ld that we prefer. 5128 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5129 *GNU* | *'with BFD'*) 5130 test no != "$with_gnu_ld" && break 5131 ;; 5132 *) 5133 test yes != "$with_gnu_ld" && break 5134 ;; 5135 esac 5136 fi 5137 done 5138 IFS=$lt_save_ifs 5139else 5140 lt_cv_path_LD=$LD # Let the user override the test with a path. 5141fi 5142fi 5143 5144LD=$lt_cv_path_LD 5145if test -n "$LD"; then 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5147$as_echo "$LD" >&6; } 5148else 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5150$as_echo "no" >&6; } 5151fi 5152test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5154$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5155if ${lt_cv_prog_gnu_ld+:} false; then : 5156 $as_echo_n "(cached) " >&6 5157else 5158 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5159case `$LD -v 2>&1 </dev/null` in 5160*GNU* | *'with BFD'*) 5161 lt_cv_prog_gnu_ld=yes 5162 ;; 5163*) 5164 lt_cv_prog_gnu_ld=no 5165 ;; 5166esac 5167fi 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5169$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5170with_gnu_ld=$lt_cv_prog_gnu_ld 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5181$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5182if ${lt_cv_path_NM+:} false; then : 5183 $as_echo_n "(cached) " >&6 5184else 5185 if test -n "$NM"; then 5186 # Let the user override the test. 5187 lt_cv_path_NM=$NM 5188else 5189 lt_nm_to_check=${ac_tool_prefix}nm 5190 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5191 lt_nm_to_check="$lt_nm_to_check nm" 5192 fi 5193 for lt_tmp_nm in $lt_nm_to_check; do 5194 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5195 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5196 IFS=$lt_save_ifs 5197 test -z "$ac_dir" && ac_dir=. 5198 tmp_nm=$ac_dir/$lt_tmp_nm 5199 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5200 # Check to see if the nm accepts a BSD-compat flag. 5201 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5202 # nm: unknown option "B" ignored 5203 # Tru64's nm complains that /dev/null is an invalid object file 5204 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5205 case $build_os in 5206 mingw*) lt_bad_file=conftest.nm/nofile ;; 5207 *) lt_bad_file=/dev/null ;; 5208 esac 5209 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5210 *$lt_bad_file* | *'Invalid file or object type'*) 5211 lt_cv_path_NM="$tmp_nm -B" 5212 break 2 5213 ;; 5214 *) 5215 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5216 */dev/null*) 5217 lt_cv_path_NM="$tmp_nm -p" 5218 break 2 5219 ;; 5220 *) 5221 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5222 continue # so that we can try to find one that supports BSD flags 5223 ;; 5224 esac 5225 ;; 5226 esac 5227 fi 5228 done 5229 IFS=$lt_save_ifs 5230 done 5231 : ${lt_cv_path_NM=no} 5232fi 5233fi 5234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5235$as_echo "$lt_cv_path_NM" >&6; } 5236if test no != "$lt_cv_path_NM"; then 5237 NM=$lt_cv_path_NM 5238else 5239 # Didn't find any BSD compatible name lister, look for dumpbin. 5240 if test -n "$DUMPBIN"; then : 5241 # Let the user override the test. 5242 else 5243 if test -n "$ac_tool_prefix"; then 5244 for ac_prog in dumpbin "link -dump" 5245 do 5246 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5247set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5249$as_echo_n "checking for $ac_word... " >&6; } 5250if ${ac_cv_prog_DUMPBIN+:} false; then : 5251 $as_echo_n "(cached) " >&6 5252else 5253 if test -n "$DUMPBIN"; then 5254 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5255else 5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5257for as_dir in $PATH 5258do 5259 IFS=$as_save_IFS 5260 test -z "$as_dir" && as_dir=. 5261 for ac_exec_ext in '' $ac_executable_extensions; do 5262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5263 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5265 break 2 5266 fi 5267done 5268 done 5269IFS=$as_save_IFS 5270 5271fi 5272fi 5273DUMPBIN=$ac_cv_prog_DUMPBIN 5274if test -n "$DUMPBIN"; then 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5276$as_echo "$DUMPBIN" >&6; } 5277else 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5279$as_echo "no" >&6; } 5280fi 5281 5282 5283 test -n "$DUMPBIN" && break 5284 done 5285fi 5286if test -z "$DUMPBIN"; then 5287 ac_ct_DUMPBIN=$DUMPBIN 5288 for ac_prog in dumpbin "link -dump" 5289do 5290 # Extract the first word of "$ac_prog", so it can be a program name with args. 5291set dummy $ac_prog; ac_word=$2 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5293$as_echo_n "checking for $ac_word... " >&6; } 5294if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5295 $as_echo_n "(cached) " >&6 5296else 5297 if test -n "$ac_ct_DUMPBIN"; then 5298 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5299else 5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5301for as_dir in $PATH 5302do 5303 IFS=$as_save_IFS 5304 test -z "$as_dir" && as_dir=. 5305 for ac_exec_ext in '' $ac_executable_extensions; do 5306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5307 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5309 break 2 5310 fi 5311done 5312 done 5313IFS=$as_save_IFS 5314 5315fi 5316fi 5317ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5318if test -n "$ac_ct_DUMPBIN"; then 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5320$as_echo "$ac_ct_DUMPBIN" >&6; } 5321else 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5323$as_echo "no" >&6; } 5324fi 5325 5326 5327 test -n "$ac_ct_DUMPBIN" && break 5328done 5329 5330 if test "x$ac_ct_DUMPBIN" = x; then 5331 DUMPBIN=":" 5332 else 5333 case $cross_compiling:$ac_tool_warned in 5334yes:) 5335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5337ac_tool_warned=yes ;; 5338esac 5339 DUMPBIN=$ac_ct_DUMPBIN 5340 fi 5341fi 5342 5343 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5344 *COFF*) 5345 DUMPBIN="$DUMPBIN -symbols -headers" 5346 ;; 5347 *) 5348 DUMPBIN=: 5349 ;; 5350 esac 5351 fi 5352 5353 if test : != "$DUMPBIN"; then 5354 NM=$DUMPBIN 5355 fi 5356fi 5357test -z "$NM" && NM=nm 5358 5359 5360 5361 5362 5363 5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5365$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5366if ${lt_cv_nm_interface+:} false; then : 5367 $as_echo_n "(cached) " >&6 5368else 5369 lt_cv_nm_interface="BSD nm" 5370 echo "int some_variable = 0;" > conftest.$ac_ext 5371 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5372 (eval "$ac_compile" 2>conftest.err) 5373 cat conftest.err >&5 5374 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5375 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5376 cat conftest.err >&5 5377 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5378 cat conftest.out >&5 5379 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5380 lt_cv_nm_interface="MS dumpbin" 5381 fi 5382 rm -f conftest* 5383fi 5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5385$as_echo "$lt_cv_nm_interface" >&6; } 5386 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5388$as_echo_n "checking whether ln -s works... " >&6; } 5389LN_S=$as_ln_s 5390if test "$LN_S" = "ln -s"; then 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5392$as_echo "yes" >&6; } 5393else 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5395$as_echo "no, using $LN_S" >&6; } 5396fi 5397 5398# find the maximum length of command line arguments 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5400$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5401if ${lt_cv_sys_max_cmd_len+:} false; then : 5402 $as_echo_n "(cached) " >&6 5403else 5404 i=0 5405 teststring=ABCD 5406 5407 case $build_os in 5408 msdosdjgpp*) 5409 # On DJGPP, this test can blow up pretty badly due to problems in libc 5410 # (any single argument exceeding 2000 bytes causes a buffer overrun 5411 # during glob expansion). Even if it were fixed, the result of this 5412 # check would be larger than it should be. 5413 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5414 ;; 5415 5416 gnu*) 5417 # Under GNU Hurd, this test is not required because there is 5418 # no limit to the length of command line arguments. 5419 # Libtool will interpret -1 as no limit whatsoever 5420 lt_cv_sys_max_cmd_len=-1; 5421 ;; 5422 5423 cygwin* | mingw* | cegcc*) 5424 # On Win9x/ME, this test blows up -- it succeeds, but takes 5425 # about 5 minutes as the teststring grows exponentially. 5426 # Worse, since 9x/ME are not pre-emptively multitasking, 5427 # you end up with a "frozen" computer, even though with patience 5428 # the test eventually succeeds (with a max line length of 256k). 5429 # Instead, let's just punt: use the minimum linelength reported by 5430 # all of the supported platforms: 8192 (on NT/2K/XP). 5431 lt_cv_sys_max_cmd_len=8192; 5432 ;; 5433 5434 mint*) 5435 # On MiNT this can take a long time and run out of memory. 5436 lt_cv_sys_max_cmd_len=8192; 5437 ;; 5438 5439 amigaos*) 5440 # On AmigaOS with pdksh, this test takes hours, literally. 5441 # So we just punt and use a minimum line length of 8192. 5442 lt_cv_sys_max_cmd_len=8192; 5443 ;; 5444 5445 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5446 # This has been around since 386BSD, at least. Likely further. 5447 if test -x /sbin/sysctl; then 5448 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5449 elif test -x /usr/sbin/sysctl; then 5450 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5451 else 5452 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5453 fi 5454 # And add a safety zone 5455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5457 ;; 5458 5459 interix*) 5460 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5461 lt_cv_sys_max_cmd_len=196608 5462 ;; 5463 5464 os2*) 5465 # The test takes a long time on OS/2. 5466 lt_cv_sys_max_cmd_len=8192 5467 ;; 5468 5469 osf*) 5470 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5471 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5472 # nice to cause kernel panics so lets avoid the loop below. 5473 # First set a reasonable default. 5474 lt_cv_sys_max_cmd_len=16384 5475 # 5476 if test -x /sbin/sysconfig; then 5477 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5478 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5479 esac 5480 fi 5481 ;; 5482 sco3.2v5*) 5483 lt_cv_sys_max_cmd_len=102400 5484 ;; 5485 sysv5* | sco5v6* | sysv4.2uw2*) 5486 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5487 if test -n "$kargmax"; then 5488 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5489 else 5490 lt_cv_sys_max_cmd_len=32768 5491 fi 5492 ;; 5493 *) 5494 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5495 if test -n "$lt_cv_sys_max_cmd_len" && \ 5496 test undefined != "$lt_cv_sys_max_cmd_len"; then 5497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5499 else 5500 # Make teststring a little bigger before we do anything with it. 5501 # a 1K string should be a reasonable start. 5502 for i in 1 2 3 4 5 6 7 8; do 5503 teststring=$teststring$teststring 5504 done 5505 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5506 # If test is not a shell built-in, we'll probably end up computing a 5507 # maximum length that is only half of the actual maximum length, but 5508 # we can't tell. 5509 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5510 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5511 test 17 != "$i" # 1/2 MB should be enough 5512 do 5513 i=`expr $i + 1` 5514 teststring=$teststring$teststring 5515 done 5516 # Only check the string length outside the loop. 5517 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5518 teststring= 5519 # Add a significant safety factor because C++ compilers can tack on 5520 # massive amounts of additional arguments before passing them to the 5521 # linker. It appears as though 1/2 is a usable value. 5522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5523 fi 5524 ;; 5525 esac 5526 5527fi 5528 5529if test -n "$lt_cv_sys_max_cmd_len"; then 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5531$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5532else 5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5534$as_echo "none" >&6; } 5535fi 5536max_cmd_len=$lt_cv_sys_max_cmd_len 5537 5538 5539 5540 5541 5542 5543: ${CP="cp -f"} 5544: ${MV="mv -f"} 5545: ${RM="rm -f"} 5546 5547if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5548 lt_unset=unset 5549else 5550 lt_unset=false 5551fi 5552 5553 5554 5555 5556 5557# test EBCDIC or ASCII 5558case `echo X|tr X '\101'` in 5559 A) # ASCII based system 5560 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5561 lt_SP2NL='tr \040 \012' 5562 lt_NL2SP='tr \015\012 \040\040' 5563 ;; 5564 *) # EBCDIC based system 5565 lt_SP2NL='tr \100 \n' 5566 lt_NL2SP='tr \r\n \100\100' 5567 ;; 5568esac 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5579$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5580if ${lt_cv_to_host_file_cmd+:} false; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 case $host in 5584 *-*-mingw* ) 5585 case $build in 5586 *-*-mingw* ) # actually msys 5587 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5588 ;; 5589 *-*-cygwin* ) 5590 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5591 ;; 5592 * ) # otherwise, assume *nix 5593 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5594 ;; 5595 esac 5596 ;; 5597 *-*-cygwin* ) 5598 case $build in 5599 *-*-mingw* ) # actually msys 5600 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5601 ;; 5602 *-*-cygwin* ) 5603 lt_cv_to_host_file_cmd=func_convert_file_noop 5604 ;; 5605 * ) # otherwise, assume *nix 5606 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5607 ;; 5608 esac 5609 ;; 5610 * ) # unhandled hosts (and "normal" native builds) 5611 lt_cv_to_host_file_cmd=func_convert_file_noop 5612 ;; 5613esac 5614 5615fi 5616 5617to_host_file_cmd=$lt_cv_to_host_file_cmd 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5619$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5620 5621 5622 5623 5624 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5626$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5627if ${lt_cv_to_tool_file_cmd+:} false; then : 5628 $as_echo_n "(cached) " >&6 5629else 5630 #assume ordinary cross tools, or native build. 5631lt_cv_to_tool_file_cmd=func_convert_file_noop 5632case $host in 5633 *-*-mingw* ) 5634 case $build in 5635 *-*-mingw* ) # actually msys 5636 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5637 ;; 5638 esac 5639 ;; 5640esac 5641 5642fi 5643 5644to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5646$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5647 5648 5649 5650 5651 5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5653$as_echo_n "checking for $LD option to reload object files... " >&6; } 5654if ${lt_cv_ld_reload_flag+:} false; then : 5655 $as_echo_n "(cached) " >&6 5656else 5657 lt_cv_ld_reload_flag='-r' 5658fi 5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5660$as_echo "$lt_cv_ld_reload_flag" >&6; } 5661reload_flag=$lt_cv_ld_reload_flag 5662case $reload_flag in 5663"" | " "*) ;; 5664*) reload_flag=" $reload_flag" ;; 5665esac 5666reload_cmds='$LD$reload_flag -o $output$reload_objs' 5667case $host_os in 5668 cygwin* | mingw* | pw32* | cegcc*) 5669 if test yes != "$GCC"; then 5670 reload_cmds=false 5671 fi 5672 ;; 5673 darwin*) 5674 if test yes = "$GCC"; then 5675 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5676 else 5677 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5678 fi 5679 ;; 5680esac 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690if test -n "$ac_tool_prefix"; then 5691 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5692set dummy ${ac_tool_prefix}objdump; ac_word=$2 5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5694$as_echo_n "checking for $ac_word... " >&6; } 5695if ${ac_cv_prog_OBJDUMP+:} false; then : 5696 $as_echo_n "(cached) " >&6 5697else 5698 if test -n "$OBJDUMP"; then 5699 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5700else 5701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5702for as_dir in $PATH 5703do 5704 IFS=$as_save_IFS 5705 test -z "$as_dir" && as_dir=. 5706 for ac_exec_ext in '' $ac_executable_extensions; do 5707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5708 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5710 break 2 5711 fi 5712done 5713 done 5714IFS=$as_save_IFS 5715 5716fi 5717fi 5718OBJDUMP=$ac_cv_prog_OBJDUMP 5719if test -n "$OBJDUMP"; then 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5721$as_echo "$OBJDUMP" >&6; } 5722else 5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5724$as_echo "no" >&6; } 5725fi 5726 5727 5728fi 5729if test -z "$ac_cv_prog_OBJDUMP"; then 5730 ac_ct_OBJDUMP=$OBJDUMP 5731 # Extract the first word of "objdump", so it can be a program name with args. 5732set dummy objdump; ac_word=$2 5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5734$as_echo_n "checking for $ac_word... " >&6; } 5735if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5736 $as_echo_n "(cached) " >&6 5737else 5738 if test -n "$ac_ct_OBJDUMP"; then 5739 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5740else 5741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5742for as_dir in $PATH 5743do 5744 IFS=$as_save_IFS 5745 test -z "$as_dir" && as_dir=. 5746 for ac_exec_ext in '' $ac_executable_extensions; do 5747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5748 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5750 break 2 5751 fi 5752done 5753 done 5754IFS=$as_save_IFS 5755 5756fi 5757fi 5758ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5759if test -n "$ac_ct_OBJDUMP"; then 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5761$as_echo "$ac_ct_OBJDUMP" >&6; } 5762else 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5764$as_echo "no" >&6; } 5765fi 5766 5767 if test "x$ac_ct_OBJDUMP" = x; then 5768 OBJDUMP="false" 5769 else 5770 case $cross_compiling:$ac_tool_warned in 5771yes:) 5772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5774ac_tool_warned=yes ;; 5775esac 5776 OBJDUMP=$ac_ct_OBJDUMP 5777 fi 5778else 5779 OBJDUMP="$ac_cv_prog_OBJDUMP" 5780fi 5781 5782test -z "$OBJDUMP" && OBJDUMP=objdump 5783 5784 5785 5786 5787 5788 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5790$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5791if ${lt_cv_deplibs_check_method+:} false; then : 5792 $as_echo_n "(cached) " >&6 5793else 5794 lt_cv_file_magic_cmd='$MAGIC_CMD' 5795lt_cv_file_magic_test_file= 5796lt_cv_deplibs_check_method='unknown' 5797# Need to set the preceding variable on all platforms that support 5798# interlibrary dependencies. 5799# 'none' -- dependencies not supported. 5800# 'unknown' -- same as none, but documents that we really don't know. 5801# 'pass_all' -- all dependencies passed with no checks. 5802# 'test_compile' -- check by making test program. 5803# 'file_magic [[regex]]' -- check by looking for files in library path 5804# that responds to the $file_magic_cmd with a given extended regex. 5805# If you have 'file' or equivalent on your system and you're not sure 5806# whether 'pass_all' will *always* work, you probably want this one. 5807 5808case $host_os in 5809aix[4-9]*) 5810 lt_cv_deplibs_check_method=pass_all 5811 ;; 5812 5813beos*) 5814 lt_cv_deplibs_check_method=pass_all 5815 ;; 5816 5817bsdi[45]*) 5818 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5819 lt_cv_file_magic_cmd='/usr/bin/file -L' 5820 lt_cv_file_magic_test_file=/shlib/libc.so 5821 ;; 5822 5823cygwin*) 5824 # func_win32_libid is a shell function defined in ltmain.sh 5825 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5826 lt_cv_file_magic_cmd='func_win32_libid' 5827 ;; 5828 5829mingw* | pw32*) 5830 # Base MSYS/MinGW do not provide the 'file' command needed by 5831 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5832 # unless we find 'file', for example because we are cross-compiling. 5833 if ( file / ) >/dev/null 2>&1; then 5834 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5835 lt_cv_file_magic_cmd='func_win32_libid' 5836 else 5837 # Keep this pattern in sync with the one in func_win32_libid. 5838 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5839 lt_cv_file_magic_cmd='$OBJDUMP -f' 5840 fi 5841 ;; 5842 5843cegcc*) 5844 # use the weaker test based on 'objdump'. See mingw*. 5845 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5846 lt_cv_file_magic_cmd='$OBJDUMP -f' 5847 ;; 5848 5849darwin* | rhapsody*) 5850 lt_cv_deplibs_check_method=pass_all 5851 ;; 5852 5853freebsd* | dragonfly*) 5854 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5855 case $host_cpu in 5856 i*86 ) 5857 # Not sure whether the presence of OpenBSD here was a mistake. 5858 # Let's accept both of them until this is cleared up. 5859 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5860 lt_cv_file_magic_cmd=/usr/bin/file 5861 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5862 ;; 5863 esac 5864 else 5865 lt_cv_deplibs_check_method=pass_all 5866 fi 5867 ;; 5868 5869haiku*) 5870 lt_cv_deplibs_check_method=pass_all 5871 ;; 5872 5873hpux10.20* | hpux11*) 5874 lt_cv_file_magic_cmd=/usr/bin/file 5875 case $host_cpu in 5876 ia64*) 5877 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5878 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5879 ;; 5880 hppa*64*) 5881 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]' 5882 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5883 ;; 5884 *) 5885 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5886 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5887 ;; 5888 esac 5889 ;; 5890 5891interix[3-9]*) 5892 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5893 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5894 ;; 5895 5896irix5* | irix6* | nonstopux*) 5897 case $LD in 5898 *-32|*"-32 ") libmagic=32-bit;; 5899 *-n32|*"-n32 ") libmagic=N32;; 5900 *-64|*"-64 ") libmagic=64-bit;; 5901 *) libmagic=never-match;; 5902 esac 5903 lt_cv_deplibs_check_method=pass_all 5904 ;; 5905 5906# This must be glibc/ELF. 5907linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5908 lt_cv_deplibs_check_method=pass_all 5909 ;; 5910 5911netbsd*) 5912 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5914 else 5915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5916 fi 5917 ;; 5918 5919newos6*) 5920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5921 lt_cv_file_magic_cmd=/usr/bin/file 5922 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5923 ;; 5924 5925*nto* | *qnx*) 5926 lt_cv_deplibs_check_method=pass_all 5927 ;; 5928 5929openbsd* | bitrig*) 5930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5932 else 5933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5934 fi 5935 ;; 5936 5937osf3* | osf4* | osf5*) 5938 lt_cv_deplibs_check_method=pass_all 5939 ;; 5940 5941rdos*) 5942 lt_cv_deplibs_check_method=pass_all 5943 ;; 5944 5945solaris*) 5946 lt_cv_deplibs_check_method=pass_all 5947 ;; 5948 5949sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5950 lt_cv_deplibs_check_method=pass_all 5951 ;; 5952 5953sysv4 | sysv4.3*) 5954 case $host_vendor in 5955 motorola) 5956 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]' 5957 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5958 ;; 5959 ncr) 5960 lt_cv_deplibs_check_method=pass_all 5961 ;; 5962 sequent) 5963 lt_cv_file_magic_cmd='/bin/file' 5964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5965 ;; 5966 sni) 5967 lt_cv_file_magic_cmd='/bin/file' 5968 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5969 lt_cv_file_magic_test_file=/lib/libc.so 5970 ;; 5971 siemens) 5972 lt_cv_deplibs_check_method=pass_all 5973 ;; 5974 pc) 5975 lt_cv_deplibs_check_method=pass_all 5976 ;; 5977 esac 5978 ;; 5979 5980tpf*) 5981 lt_cv_deplibs_check_method=pass_all 5982 ;; 5983os2*) 5984 lt_cv_deplibs_check_method=pass_all 5985 ;; 5986esac 5987 5988fi 5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5990$as_echo "$lt_cv_deplibs_check_method" >&6; } 5991 5992file_magic_glob= 5993want_nocaseglob=no 5994if test "$build" = "$host"; then 5995 case $host_os in 5996 mingw* | pw32*) 5997 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5998 want_nocaseglob=yes 5999 else 6000 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6001 fi 6002 ;; 6003 esac 6004fi 6005 6006file_magic_cmd=$lt_cv_file_magic_cmd 6007deplibs_check_method=$lt_cv_deplibs_check_method 6008test -z "$deplibs_check_method" && deplibs_check_method=unknown 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031if test -n "$ac_tool_prefix"; then 6032 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6033set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6035$as_echo_n "checking for $ac_word... " >&6; } 6036if ${ac_cv_prog_DLLTOOL+:} false; then : 6037 $as_echo_n "(cached) " >&6 6038else 6039 if test -n "$DLLTOOL"; then 6040 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6041else 6042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6043for as_dir in $PATH 6044do 6045 IFS=$as_save_IFS 6046 test -z "$as_dir" && as_dir=. 6047 for ac_exec_ext in '' $ac_executable_extensions; do 6048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6049 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6051 break 2 6052 fi 6053done 6054 done 6055IFS=$as_save_IFS 6056 6057fi 6058fi 6059DLLTOOL=$ac_cv_prog_DLLTOOL 6060if test -n "$DLLTOOL"; then 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6062$as_echo "$DLLTOOL" >&6; } 6063else 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6065$as_echo "no" >&6; } 6066fi 6067 6068 6069fi 6070if test -z "$ac_cv_prog_DLLTOOL"; then 6071 ac_ct_DLLTOOL=$DLLTOOL 6072 # Extract the first word of "dlltool", so it can be a program name with args. 6073set dummy dlltool; ac_word=$2 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6075$as_echo_n "checking for $ac_word... " >&6; } 6076if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6077 $as_echo_n "(cached) " >&6 6078else 6079 if test -n "$ac_ct_DLLTOOL"; then 6080 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6081else 6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6083for as_dir in $PATH 6084do 6085 IFS=$as_save_IFS 6086 test -z "$as_dir" && as_dir=. 6087 for ac_exec_ext in '' $ac_executable_extensions; do 6088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6089 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6091 break 2 6092 fi 6093done 6094 done 6095IFS=$as_save_IFS 6096 6097fi 6098fi 6099ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6100if test -n "$ac_ct_DLLTOOL"; then 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6102$as_echo "$ac_ct_DLLTOOL" >&6; } 6103else 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6105$as_echo "no" >&6; } 6106fi 6107 6108 if test "x$ac_ct_DLLTOOL" = x; then 6109 DLLTOOL="false" 6110 else 6111 case $cross_compiling:$ac_tool_warned in 6112yes:) 6113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6115ac_tool_warned=yes ;; 6116esac 6117 DLLTOOL=$ac_ct_DLLTOOL 6118 fi 6119else 6120 DLLTOOL="$ac_cv_prog_DLLTOOL" 6121fi 6122 6123test -z "$DLLTOOL" && DLLTOOL=dlltool 6124 6125 6126 6127 6128 6129 6130 6131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6132$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6133if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6134 $as_echo_n "(cached) " >&6 6135else 6136 lt_cv_sharedlib_from_linklib_cmd='unknown' 6137 6138case $host_os in 6139cygwin* | mingw* | pw32* | cegcc*) 6140 # two different shell functions defined in ltmain.sh; 6141 # decide which one to use based on capabilities of $DLLTOOL 6142 case `$DLLTOOL --help 2>&1` in 6143 *--identify-strict*) 6144 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6145 ;; 6146 *) 6147 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6148 ;; 6149 esac 6150 ;; 6151*) 6152 # fallback: assume linklib IS sharedlib 6153 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6154 ;; 6155esac 6156 6157fi 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6159$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6160sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6161test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6162 6163 6164 6165 6166 6167 6168 6169if test -n "$ac_tool_prefix"; then 6170 for ac_prog in ar 6171 do 6172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6173set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6175$as_echo_n "checking for $ac_word... " >&6; } 6176if ${ac_cv_prog_AR+:} false; then : 6177 $as_echo_n "(cached) " >&6 6178else 6179 if test -n "$AR"; then 6180 ac_cv_prog_AR="$AR" # Let the user override the test. 6181else 6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6183for as_dir in $PATH 6184do 6185 IFS=$as_save_IFS 6186 test -z "$as_dir" && as_dir=. 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_AR="$ac_tool_prefix$ac_prog" 6190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6191 break 2 6192 fi 6193done 6194 done 6195IFS=$as_save_IFS 6196 6197fi 6198fi 6199AR=$ac_cv_prog_AR 6200if test -n "$AR"; then 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6202$as_echo "$AR" >&6; } 6203else 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6205$as_echo "no" >&6; } 6206fi 6207 6208 6209 test -n "$AR" && break 6210 done 6211fi 6212if test -z "$AR"; then 6213 ac_ct_AR=$AR 6214 for ac_prog in ar 6215do 6216 # Extract the first word of "$ac_prog", so it can be a program name with args. 6217set dummy $ac_prog; ac_word=$2 6218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6219$as_echo_n "checking for $ac_word... " >&6; } 6220if ${ac_cv_prog_ac_ct_AR+:} false; then : 6221 $as_echo_n "(cached) " >&6 6222else 6223 if test -n "$ac_ct_AR"; then 6224 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6225else 6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6227for as_dir in $PATH 6228do 6229 IFS=$as_save_IFS 6230 test -z "$as_dir" && as_dir=. 6231 for ac_exec_ext in '' $ac_executable_extensions; do 6232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6233 ac_cv_prog_ac_ct_AR="$ac_prog" 6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6235 break 2 6236 fi 6237done 6238 done 6239IFS=$as_save_IFS 6240 6241fi 6242fi 6243ac_ct_AR=$ac_cv_prog_ac_ct_AR 6244if test -n "$ac_ct_AR"; then 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6246$as_echo "$ac_ct_AR" >&6; } 6247else 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6249$as_echo "no" >&6; } 6250fi 6251 6252 6253 test -n "$ac_ct_AR" && break 6254done 6255 6256 if test "x$ac_ct_AR" = x; then 6257 AR="false" 6258 else 6259 case $cross_compiling:$ac_tool_warned in 6260yes:) 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6263ac_tool_warned=yes ;; 6264esac 6265 AR=$ac_ct_AR 6266 fi 6267fi 6268 6269: ${AR=ar} 6270: ${AR_FLAGS=cru} 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6283$as_echo_n "checking for archiver @FILE support... " >&6; } 6284if ${lt_cv_ar_at_file+:} false; then : 6285 $as_echo_n "(cached) " >&6 6286else 6287 lt_cv_ar_at_file=no 6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6289/* end confdefs.h. */ 6290 6291int 6292main () 6293{ 6294 6295 ; 6296 return 0; 6297} 6298_ACEOF 6299if ac_fn_c_try_compile "$LINENO"; then : 6300 echo conftest.$ac_objext > conftest.lst 6301 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6303 (eval $lt_ar_try) 2>&5 6304 ac_status=$? 6305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6306 test $ac_status = 0; } 6307 if test 0 -eq "$ac_status"; then 6308 # Ensure the archiver fails upon bogus file names. 6309 rm -f conftest.$ac_objext libconftest.a 6310 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6311 (eval $lt_ar_try) 2>&5 6312 ac_status=$? 6313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6314 test $ac_status = 0; } 6315 if test 0 -ne "$ac_status"; then 6316 lt_cv_ar_at_file=@ 6317 fi 6318 fi 6319 rm -f conftest.* libconftest.a 6320 6321fi 6322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6323 6324fi 6325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6326$as_echo "$lt_cv_ar_at_file" >&6; } 6327 6328if test no = "$lt_cv_ar_at_file"; then 6329 archiver_list_spec= 6330else 6331 archiver_list_spec=$lt_cv_ar_at_file 6332fi 6333 6334 6335 6336 6337 6338 6339 6340if test -n "$ac_tool_prefix"; then 6341 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6342set dummy ${ac_tool_prefix}strip; ac_word=$2 6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6344$as_echo_n "checking for $ac_word... " >&6; } 6345if ${ac_cv_prog_STRIP+:} false; then : 6346 $as_echo_n "(cached) " >&6 6347else 6348 if test -n "$STRIP"; then 6349 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6350else 6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6352for as_dir in $PATH 6353do 6354 IFS=$as_save_IFS 6355 test -z "$as_dir" && as_dir=. 6356 for ac_exec_ext in '' $ac_executable_extensions; do 6357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6358 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6360 break 2 6361 fi 6362done 6363 done 6364IFS=$as_save_IFS 6365 6366fi 6367fi 6368STRIP=$ac_cv_prog_STRIP 6369if test -n "$STRIP"; then 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6371$as_echo "$STRIP" >&6; } 6372else 6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6374$as_echo "no" >&6; } 6375fi 6376 6377 6378fi 6379if test -z "$ac_cv_prog_STRIP"; then 6380 ac_ct_STRIP=$STRIP 6381 # Extract the first word of "strip", so it can be a program name with args. 6382set dummy strip; ac_word=$2 6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6384$as_echo_n "checking for $ac_word... " >&6; } 6385if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6386 $as_echo_n "(cached) " >&6 6387else 6388 if test -n "$ac_ct_STRIP"; then 6389 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6390else 6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6392for as_dir in $PATH 6393do 6394 IFS=$as_save_IFS 6395 test -z "$as_dir" && as_dir=. 6396 for ac_exec_ext in '' $ac_executable_extensions; do 6397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6398 ac_cv_prog_ac_ct_STRIP="strip" 6399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6400 break 2 6401 fi 6402done 6403 done 6404IFS=$as_save_IFS 6405 6406fi 6407fi 6408ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6409if test -n "$ac_ct_STRIP"; then 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6411$as_echo "$ac_ct_STRIP" >&6; } 6412else 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6414$as_echo "no" >&6; } 6415fi 6416 6417 if test "x$ac_ct_STRIP" = x; then 6418 STRIP=":" 6419 else 6420 case $cross_compiling:$ac_tool_warned in 6421yes:) 6422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6424ac_tool_warned=yes ;; 6425esac 6426 STRIP=$ac_ct_STRIP 6427 fi 6428else 6429 STRIP="$ac_cv_prog_STRIP" 6430fi 6431 6432test -z "$STRIP" && STRIP=: 6433 6434 6435 6436 6437 6438 6439if test -n "$ac_tool_prefix"; then 6440 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6441set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6443$as_echo_n "checking for $ac_word... " >&6; } 6444if ${ac_cv_prog_RANLIB+:} false; then : 6445 $as_echo_n "(cached) " >&6 6446else 6447 if test -n "$RANLIB"; then 6448 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6449else 6450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6451for as_dir in $PATH 6452do 6453 IFS=$as_save_IFS 6454 test -z "$as_dir" && as_dir=. 6455 for ac_exec_ext in '' $ac_executable_extensions; do 6456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6457 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6459 break 2 6460 fi 6461done 6462 done 6463IFS=$as_save_IFS 6464 6465fi 6466fi 6467RANLIB=$ac_cv_prog_RANLIB 6468if test -n "$RANLIB"; then 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6470$as_echo "$RANLIB" >&6; } 6471else 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6473$as_echo "no" >&6; } 6474fi 6475 6476 6477fi 6478if test -z "$ac_cv_prog_RANLIB"; then 6479 ac_ct_RANLIB=$RANLIB 6480 # Extract the first word of "ranlib", so it can be a program name with args. 6481set dummy ranlib; ac_word=$2 6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6483$as_echo_n "checking for $ac_word... " >&6; } 6484if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6485 $as_echo_n "(cached) " >&6 6486else 6487 if test -n "$ac_ct_RANLIB"; then 6488 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6489else 6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6491for as_dir in $PATH 6492do 6493 IFS=$as_save_IFS 6494 test -z "$as_dir" && as_dir=. 6495 for ac_exec_ext in '' $ac_executable_extensions; do 6496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6497 ac_cv_prog_ac_ct_RANLIB="ranlib" 6498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6499 break 2 6500 fi 6501done 6502 done 6503IFS=$as_save_IFS 6504 6505fi 6506fi 6507ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6508if test -n "$ac_ct_RANLIB"; then 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6510$as_echo "$ac_ct_RANLIB" >&6; } 6511else 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6513$as_echo "no" >&6; } 6514fi 6515 6516 if test "x$ac_ct_RANLIB" = x; then 6517 RANLIB=":" 6518 else 6519 case $cross_compiling:$ac_tool_warned in 6520yes:) 6521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6523ac_tool_warned=yes ;; 6524esac 6525 RANLIB=$ac_ct_RANLIB 6526 fi 6527else 6528 RANLIB="$ac_cv_prog_RANLIB" 6529fi 6530 6531test -z "$RANLIB" && RANLIB=: 6532 6533 6534 6535 6536 6537 6538# Determine commands to create old-style static archives. 6539old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6540old_postinstall_cmds='chmod 644 $oldlib' 6541old_postuninstall_cmds= 6542 6543if test -n "$RANLIB"; then 6544 case $host_os in 6545 bitrig* | openbsd*) 6546 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6547 ;; 6548 *) 6549 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6550 ;; 6551 esac 6552 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6553fi 6554 6555case $host_os in 6556 darwin*) 6557 lock_old_archive_extraction=yes ;; 6558 *) 6559 lock_old_archive_extraction=no ;; 6560esac 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600# If no C compiler was specified, use CC. 6601LTCC=${LTCC-"$CC"} 6602 6603# If no C compiler flags were specified, use CFLAGS. 6604LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6605 6606# Allow CC to be a program name with arguments. 6607compiler=$CC 6608 6609 6610# Check for command to grab the raw symbol name followed by C symbol from nm. 6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6612$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6613if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6614 $as_echo_n "(cached) " >&6 6615else 6616 6617# These are sane defaults that work on at least a few old systems. 6618# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6619 6620# Character class describing NM global symbol codes. 6621symcode='[BCDEGRST]' 6622 6623# Regexp to match symbols that can be accessed directly from C. 6624sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6625 6626# Define system-specific variables. 6627case $host_os in 6628aix*) 6629 symcode='[BCDT]' 6630 ;; 6631cygwin* | mingw* | pw32* | cegcc*) 6632 symcode='[ABCDGISTW]' 6633 ;; 6634hpux*) 6635 if test ia64 = "$host_cpu"; then 6636 symcode='[ABCDEGRST]' 6637 fi 6638 ;; 6639irix* | nonstopux*) 6640 symcode='[BCDEGRST]' 6641 ;; 6642osf*) 6643 symcode='[BCDEGQRST]' 6644 ;; 6645solaris*) 6646 symcode='[BDRT]' 6647 ;; 6648sco3.2v5*) 6649 symcode='[DT]' 6650 ;; 6651sysv4.2uw2*) 6652 symcode='[DT]' 6653 ;; 6654sysv5* | sco5v6* | unixware* | OpenUNIX*) 6655 symcode='[ABDT]' 6656 ;; 6657sysv4) 6658 symcode='[DFNSTU]' 6659 ;; 6660esac 6661 6662# If we're using GNU nm, then use its standard symbol codes. 6663case `$NM -V 2>&1` in 6664*GNU* | *'with BFD'*) 6665 symcode='[ABCDGIRSTW]' ;; 6666esac 6667 6668if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6669 # Gets list of data symbols to import. 6670 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6671 # Adjust the below global symbol transforms to fixup imported variables. 6672 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6673 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6674 lt_c_name_lib_hook="\ 6675 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6676 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6677else 6678 # Disable hooks by default. 6679 lt_cv_sys_global_symbol_to_import= 6680 lt_cdecl_hook= 6681 lt_c_name_hook= 6682 lt_c_name_lib_hook= 6683fi 6684 6685# Transform an extracted symbol line into a proper C declaration. 6686# Some systems (esp. on ia64) link data and code symbols differently, 6687# so use this general approach. 6688lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6689$lt_cdecl_hook\ 6690" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6691" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6692 6693# Transform an extracted symbol line into symbol name and symbol address 6694lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6695$lt_c_name_hook\ 6696" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6697" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6698 6699# Transform an extracted symbol line into symbol name with lib prefix and 6700# symbol address. 6701lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6702$lt_c_name_lib_hook\ 6703" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6704" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6705" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6706 6707# Handle CRLF in mingw tool chain 6708opt_cr= 6709case $build_os in 6710mingw*) 6711 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6712 ;; 6713esac 6714 6715# Try without a prefix underscore, then with it. 6716for ac_symprfx in "" "_"; do 6717 6718 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6719 symxfrm="\\1 $ac_symprfx\\2 \\2" 6720 6721 # Write the raw and C identifiers. 6722 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6723 # Fake it for dumpbin and say T for any non-static function, 6724 # D for any global variable and I for any imported variable. 6725 # Also find C++ and __fastcall symbols from MSVC++, 6726 # which start with @ or ?. 6727 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6728" {last_section=section; section=\$ 3};"\ 6729" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6730" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6731" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6732" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6733" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6734" \$ 0!~/External *\|/{next};"\ 6735" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6736" {if(hide[section]) next};"\ 6737" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6738" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6739" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6740" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6741" ' prfx=^$ac_symprfx" 6742 else 6743 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6744 fi 6745 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6746 6747 # Check to see that the pipe works correctly. 6748 pipe_works=no 6749 6750 rm -f conftest* 6751 cat > conftest.$ac_ext <<_LT_EOF 6752#ifdef __cplusplus 6753extern "C" { 6754#endif 6755char nm_test_var; 6756void nm_test_func(void); 6757void nm_test_func(void){} 6758#ifdef __cplusplus 6759} 6760#endif 6761int main(){nm_test_var='a';nm_test_func();return(0);} 6762_LT_EOF 6763 6764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6765 (eval $ac_compile) 2>&5 6766 ac_status=$? 6767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6768 test $ac_status = 0; }; then 6769 # Now try to grab the symbols. 6770 nlist=conftest.nm 6771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6772 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6773 ac_status=$? 6774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6775 test $ac_status = 0; } && test -s "$nlist"; then 6776 # Try sorting and uniquifying the output. 6777 if sort "$nlist" | uniq > "$nlist"T; then 6778 mv -f "$nlist"T "$nlist" 6779 else 6780 rm -f "$nlist"T 6781 fi 6782 6783 # Make sure that we snagged all the symbols we need. 6784 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6785 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6786 cat <<_LT_EOF > conftest.$ac_ext 6787/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6788#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6789/* DATA imports from DLLs on WIN32 can't be const, because runtime 6790 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6791# define LT_DLSYM_CONST 6792#elif defined __osf__ 6793/* This system does not cope well with relocations in const data. */ 6794# define LT_DLSYM_CONST 6795#else 6796# define LT_DLSYM_CONST const 6797#endif 6798 6799#ifdef __cplusplus 6800extern "C" { 6801#endif 6802 6803_LT_EOF 6804 # Now generate the symbol file. 6805 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6806 6807 cat <<_LT_EOF >> conftest.$ac_ext 6808 6809/* The mapping between symbol names and symbols. */ 6810LT_DLSYM_CONST struct { 6811 const char *name; 6812 void *address; 6813} 6814lt__PROGRAM__LTX_preloaded_symbols[] = 6815{ 6816 { "@PROGRAM@", (void *) 0 }, 6817_LT_EOF 6818 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6819 cat <<\_LT_EOF >> conftest.$ac_ext 6820 {0, (void *) 0} 6821}; 6822 6823/* This works around a problem in FreeBSD linker */ 6824#ifdef FREEBSD_WORKAROUND 6825static const void *lt_preloaded_setup() { 6826 return lt__PROGRAM__LTX_preloaded_symbols; 6827} 6828#endif 6829 6830#ifdef __cplusplus 6831} 6832#endif 6833_LT_EOF 6834 # Now try linking the two files. 6835 mv conftest.$ac_objext conftstm.$ac_objext 6836 lt_globsym_save_LIBS=$LIBS 6837 lt_globsym_save_CFLAGS=$CFLAGS 6838 LIBS=conftstm.$ac_objext 6839 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6841 (eval $ac_link) 2>&5 6842 ac_status=$? 6843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6844 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6845 pipe_works=yes 6846 fi 6847 LIBS=$lt_globsym_save_LIBS 6848 CFLAGS=$lt_globsym_save_CFLAGS 6849 else 6850 echo "cannot find nm_test_func in $nlist" >&5 6851 fi 6852 else 6853 echo "cannot find nm_test_var in $nlist" >&5 6854 fi 6855 else 6856 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6857 fi 6858 else 6859 echo "$progname: failed program was:" >&5 6860 cat conftest.$ac_ext >&5 6861 fi 6862 rm -rf conftest* conftst* 6863 6864 # Do not use the global_symbol_pipe unless it works. 6865 if test yes = "$pipe_works"; then 6866 break 6867 else 6868 lt_cv_sys_global_symbol_pipe= 6869 fi 6870done 6871 6872fi 6873 6874if test -z "$lt_cv_sys_global_symbol_pipe"; then 6875 lt_cv_sys_global_symbol_to_cdecl= 6876fi 6877if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6879$as_echo "failed" >&6; } 6880else 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6882$as_echo "ok" >&6; } 6883fi 6884 6885# Response file support. 6886if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6887 nm_file_list_spec='@' 6888elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6889 nm_file_list_spec='@' 6890fi 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6929$as_echo_n "checking for sysroot... " >&6; } 6930 6931# Check whether --with-sysroot was given. 6932if test "${with_sysroot+set}" = set; then : 6933 withval=$with_sysroot; 6934else 6935 with_sysroot=no 6936fi 6937 6938 6939lt_sysroot= 6940case $with_sysroot in #( 6941 yes) 6942 if test yes = "$GCC"; then 6943 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6944 fi 6945 ;; #( 6946 /*) 6947 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6948 ;; #( 6949 no|'') 6950 ;; #( 6951 *) 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6953$as_echo "$with_sysroot" >&6; } 6954 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6955 ;; 6956esac 6957 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6959$as_echo "${lt_sysroot:-no}" >&6; } 6960 6961 6962 6963 6964 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6966$as_echo_n "checking for a working dd... " >&6; } 6967if ${ac_cv_path_lt_DD+:} false; then : 6968 $as_echo_n "(cached) " >&6 6969else 6970 printf 0123456789abcdef0123456789abcdef >conftest.i 6971cat conftest.i conftest.i >conftest2.i 6972: ${lt_DD:=$DD} 6973if test -z "$lt_DD"; then 6974 ac_path_lt_DD_found=false 6975 # Loop through the user's path and test for each of PROGNAME-LIST 6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6977for as_dir in $PATH 6978do 6979 IFS=$as_save_IFS 6980 test -z "$as_dir" && as_dir=. 6981 for ac_prog in dd; do 6982 for ac_exec_ext in '' $ac_executable_extensions; do 6983 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6984 as_fn_executable_p "$ac_path_lt_DD" || continue 6985if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6986 cmp -s conftest.i conftest.out \ 6987 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6988fi 6989 $ac_path_lt_DD_found && break 3 6990 done 6991 done 6992 done 6993IFS=$as_save_IFS 6994 if test -z "$ac_cv_path_lt_DD"; then 6995 : 6996 fi 6997else 6998 ac_cv_path_lt_DD=$lt_DD 6999fi 7000 7001rm -f conftest.i conftest2.i conftest.out 7002fi 7003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7004$as_echo "$ac_cv_path_lt_DD" >&6; } 7005 7006 7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7008$as_echo_n "checking how to truncate binary pipes... " >&6; } 7009if ${lt_cv_truncate_bin+:} false; then : 7010 $as_echo_n "(cached) " >&6 7011else 7012 printf 0123456789abcdef0123456789abcdef >conftest.i 7013cat conftest.i conftest.i >conftest2.i 7014lt_cv_truncate_bin= 7015if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7016 cmp -s conftest.i conftest.out \ 7017 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7018fi 7019rm -f conftest.i conftest2.i conftest.out 7020test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7021fi 7022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7023$as_echo "$lt_cv_truncate_bin" >&6; } 7024 7025 7026 7027 7028 7029 7030 7031# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7032func_cc_basename () 7033{ 7034 for cc_temp in $*""; do 7035 case $cc_temp in 7036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7038 \-*) ;; 7039 *) break;; 7040 esac 7041 done 7042 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7043} 7044 7045# Check whether --enable-libtool-lock was given. 7046if test "${enable_libtool_lock+set}" = set; then : 7047 enableval=$enable_libtool_lock; 7048fi 7049 7050test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7051 7052# Some flags need to be propagated to the compiler or linker for good 7053# libtool support. 7054case $host in 7055ia64-*-hpux*) 7056 # Find out what ABI is being produced by ac_compile, and set mode 7057 # options accordingly. 7058 echo 'int i;' > conftest.$ac_ext 7059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7060 (eval $ac_compile) 2>&5 7061 ac_status=$? 7062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7063 test $ac_status = 0; }; then 7064 case `/usr/bin/file conftest.$ac_objext` in 7065 *ELF-32*) 7066 HPUX_IA64_MODE=32 7067 ;; 7068 *ELF-64*) 7069 HPUX_IA64_MODE=64 7070 ;; 7071 esac 7072 fi 7073 rm -rf conftest* 7074 ;; 7075*-*-irix6*) 7076 # Find out what ABI is being produced by ac_compile, and set linker 7077 # options accordingly. 7078 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7080 (eval $ac_compile) 2>&5 7081 ac_status=$? 7082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7083 test $ac_status = 0; }; then 7084 if test yes = "$lt_cv_prog_gnu_ld"; then 7085 case `/usr/bin/file conftest.$ac_objext` in 7086 *32-bit*) 7087 LD="${LD-ld} -melf32bsmip" 7088 ;; 7089 *N32*) 7090 LD="${LD-ld} -melf32bmipn32" 7091 ;; 7092 *64-bit*) 7093 LD="${LD-ld} -melf64bmip" 7094 ;; 7095 esac 7096 else 7097 case `/usr/bin/file conftest.$ac_objext` in 7098 *32-bit*) 7099 LD="${LD-ld} -32" 7100 ;; 7101 *N32*) 7102 LD="${LD-ld} -n32" 7103 ;; 7104 *64-bit*) 7105 LD="${LD-ld} -64" 7106 ;; 7107 esac 7108 fi 7109 fi 7110 rm -rf conftest* 7111 ;; 7112 7113mips64*-*linux*) 7114 # Find out what ABI is being produced by ac_compile, and set linker 7115 # options accordingly. 7116 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7117 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7118 (eval $ac_compile) 2>&5 7119 ac_status=$? 7120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7121 test $ac_status = 0; }; then 7122 emul=elf 7123 case `/usr/bin/file conftest.$ac_objext` in 7124 *32-bit*) 7125 emul="${emul}32" 7126 ;; 7127 *64-bit*) 7128 emul="${emul}64" 7129 ;; 7130 esac 7131 case `/usr/bin/file conftest.$ac_objext` in 7132 *MSB*) 7133 emul="${emul}btsmip" 7134 ;; 7135 *LSB*) 7136 emul="${emul}ltsmip" 7137 ;; 7138 esac 7139 case `/usr/bin/file conftest.$ac_objext` in 7140 *N32*) 7141 emul="${emul}n32" 7142 ;; 7143 esac 7144 LD="${LD-ld} -m $emul" 7145 fi 7146 rm -rf conftest* 7147 ;; 7148 7149x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7150s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7151 # Find out what ABI is being produced by ac_compile, and set linker 7152 # options accordingly. Note that the listed cases only cover the 7153 # situations where additional linker options are needed (such as when 7154 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7155 # vice versa); the common cases where no linker options are needed do 7156 # not appear in the list. 7157 echo 'int i;' > conftest.$ac_ext 7158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7159 (eval $ac_compile) 2>&5 7160 ac_status=$? 7161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7162 test $ac_status = 0; }; then 7163 case `/usr/bin/file conftest.o` in 7164 *32-bit*) 7165 case $host in 7166 x86_64-*kfreebsd*-gnu) 7167 LD="${LD-ld} -m elf_i386_fbsd" 7168 ;; 7169 x86_64-*linux*) 7170 case `/usr/bin/file conftest.o` in 7171 *x86-64*) 7172 LD="${LD-ld} -m elf32_x86_64" 7173 ;; 7174 *) 7175 LD="${LD-ld} -m elf_i386" 7176 ;; 7177 esac 7178 ;; 7179 powerpc64le-*linux*) 7180 LD="${LD-ld} -m elf32lppclinux" 7181 ;; 7182 powerpc64-*linux*) 7183 LD="${LD-ld} -m elf32ppclinux" 7184 ;; 7185 s390x-*linux*) 7186 LD="${LD-ld} -m elf_s390" 7187 ;; 7188 sparc64-*linux*) 7189 LD="${LD-ld} -m elf32_sparc" 7190 ;; 7191 esac 7192 ;; 7193 *64-bit*) 7194 case $host in 7195 x86_64-*kfreebsd*-gnu) 7196 LD="${LD-ld} -m elf_x86_64_fbsd" 7197 ;; 7198 x86_64-*linux*) 7199 LD="${LD-ld} -m elf_x86_64" 7200 ;; 7201 powerpcle-*linux*) 7202 LD="${LD-ld} -m elf64lppc" 7203 ;; 7204 powerpc-*linux*) 7205 LD="${LD-ld} -m elf64ppc" 7206 ;; 7207 s390*-*linux*|s390*-*tpf*) 7208 LD="${LD-ld} -m elf64_s390" 7209 ;; 7210 sparc*-*linux*) 7211 LD="${LD-ld} -m elf64_sparc" 7212 ;; 7213 esac 7214 ;; 7215 esac 7216 fi 7217 rm -rf conftest* 7218 ;; 7219 7220*-*-sco3.2v5*) 7221 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7222 SAVE_CFLAGS=$CFLAGS 7223 CFLAGS="$CFLAGS -belf" 7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7225$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7226if ${lt_cv_cc_needs_belf+:} false; then : 7227 $as_echo_n "(cached) " >&6 7228else 7229 ac_ext=c 7230ac_cpp='$CPP $CPPFLAGS' 7231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7233ac_compiler_gnu=$ac_cv_c_compiler_gnu 7234 7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7236/* end confdefs.h. */ 7237 7238int 7239main () 7240{ 7241 7242 ; 7243 return 0; 7244} 7245_ACEOF 7246if ac_fn_c_try_link "$LINENO"; then : 7247 lt_cv_cc_needs_belf=yes 7248else 7249 lt_cv_cc_needs_belf=no 7250fi 7251rm -f core conftest.err conftest.$ac_objext \ 7252 conftest$ac_exeext conftest.$ac_ext 7253 ac_ext=c 7254ac_cpp='$CPP $CPPFLAGS' 7255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7257ac_compiler_gnu=$ac_cv_c_compiler_gnu 7258 7259fi 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7261$as_echo "$lt_cv_cc_needs_belf" >&6; } 7262 if test yes != "$lt_cv_cc_needs_belf"; then 7263 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7264 CFLAGS=$SAVE_CFLAGS 7265 fi 7266 ;; 7267*-*solaris*) 7268 # Find out what ABI is being produced by ac_compile, and set linker 7269 # options accordingly. 7270 echo 'int i;' > conftest.$ac_ext 7271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7272 (eval $ac_compile) 2>&5 7273 ac_status=$? 7274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7275 test $ac_status = 0; }; then 7276 case `/usr/bin/file conftest.o` in 7277 *64-bit*) 7278 case $lt_cv_prog_gnu_ld in 7279 yes*) 7280 case $host in 7281 i?86-*-solaris*|x86_64-*-solaris*) 7282 LD="${LD-ld} -m elf_x86_64" 7283 ;; 7284 sparc*-*-solaris*) 7285 LD="${LD-ld} -m elf64_sparc" 7286 ;; 7287 esac 7288 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7289 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7290 LD=${LD-ld}_sol2 7291 fi 7292 ;; 7293 *) 7294 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7295 LD="${LD-ld} -64" 7296 fi 7297 ;; 7298 esac 7299 ;; 7300 esac 7301 fi 7302 rm -rf conftest* 7303 ;; 7304esac 7305 7306need_locks=$enable_libtool_lock 7307 7308if test -n "$ac_tool_prefix"; then 7309 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7310set dummy ${ac_tool_prefix}mt; ac_word=$2 7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7312$as_echo_n "checking for $ac_word... " >&6; } 7313if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7314 $as_echo_n "(cached) " >&6 7315else 7316 if test -n "$MANIFEST_TOOL"; then 7317 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7318else 7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7320for as_dir in $PATH 7321do 7322 IFS=$as_save_IFS 7323 test -z "$as_dir" && as_dir=. 7324 for ac_exec_ext in '' $ac_executable_extensions; do 7325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7326 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7328 break 2 7329 fi 7330done 7331 done 7332IFS=$as_save_IFS 7333 7334fi 7335fi 7336MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7337if test -n "$MANIFEST_TOOL"; then 7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7339$as_echo "$MANIFEST_TOOL" >&6; } 7340else 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7342$as_echo "no" >&6; } 7343fi 7344 7345 7346fi 7347if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7348 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7349 # Extract the first word of "mt", so it can be a program name with args. 7350set dummy mt; ac_word=$2 7351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7352$as_echo_n "checking for $ac_word... " >&6; } 7353if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7354 $as_echo_n "(cached) " >&6 7355else 7356 if test -n "$ac_ct_MANIFEST_TOOL"; then 7357 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7358else 7359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7360for as_dir in $PATH 7361do 7362 IFS=$as_save_IFS 7363 test -z "$as_dir" && as_dir=. 7364 for ac_exec_ext in '' $ac_executable_extensions; do 7365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7366 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7368 break 2 7369 fi 7370done 7371 done 7372IFS=$as_save_IFS 7373 7374fi 7375fi 7376ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7377if test -n "$ac_ct_MANIFEST_TOOL"; then 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7379$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7380else 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7382$as_echo "no" >&6; } 7383fi 7384 7385 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7386 MANIFEST_TOOL=":" 7387 else 7388 case $cross_compiling:$ac_tool_warned in 7389yes:) 7390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7392ac_tool_warned=yes ;; 7393esac 7394 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7395 fi 7396else 7397 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7398fi 7399 7400test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7402$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7403if ${lt_cv_path_mainfest_tool+:} false; then : 7404 $as_echo_n "(cached) " >&6 7405else 7406 lt_cv_path_mainfest_tool=no 7407 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7408 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7409 cat conftest.err >&5 7410 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7411 lt_cv_path_mainfest_tool=yes 7412 fi 7413 rm -f conftest* 7414fi 7415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7416$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7417if test yes != "$lt_cv_path_mainfest_tool"; then 7418 MANIFEST_TOOL=: 7419fi 7420 7421 7422 7423 7424 7425 7426 case $host_os in 7427 rhapsody* | darwin*) 7428 if test -n "$ac_tool_prefix"; then 7429 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7430set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7432$as_echo_n "checking for $ac_word... " >&6; } 7433if ${ac_cv_prog_DSYMUTIL+:} false; then : 7434 $as_echo_n "(cached) " >&6 7435else 7436 if test -n "$DSYMUTIL"; then 7437 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7438else 7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7440for as_dir in $PATH 7441do 7442 IFS=$as_save_IFS 7443 test -z "$as_dir" && as_dir=. 7444 for ac_exec_ext in '' $ac_executable_extensions; do 7445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7446 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7448 break 2 7449 fi 7450done 7451 done 7452IFS=$as_save_IFS 7453 7454fi 7455fi 7456DSYMUTIL=$ac_cv_prog_DSYMUTIL 7457if test -n "$DSYMUTIL"; then 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7459$as_echo "$DSYMUTIL" >&6; } 7460else 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7462$as_echo "no" >&6; } 7463fi 7464 7465 7466fi 7467if test -z "$ac_cv_prog_DSYMUTIL"; then 7468 ac_ct_DSYMUTIL=$DSYMUTIL 7469 # Extract the first word of "dsymutil", so it can be a program name with args. 7470set dummy dsymutil; ac_word=$2 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7472$as_echo_n "checking for $ac_word... " >&6; } 7473if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7474 $as_echo_n "(cached) " >&6 7475else 7476 if test -n "$ac_ct_DSYMUTIL"; then 7477 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7478else 7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7480for as_dir in $PATH 7481do 7482 IFS=$as_save_IFS 7483 test -z "$as_dir" && as_dir=. 7484 for ac_exec_ext in '' $ac_executable_extensions; do 7485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7486 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7488 break 2 7489 fi 7490done 7491 done 7492IFS=$as_save_IFS 7493 7494fi 7495fi 7496ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7497if test -n "$ac_ct_DSYMUTIL"; then 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7499$as_echo "$ac_ct_DSYMUTIL" >&6; } 7500else 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7502$as_echo "no" >&6; } 7503fi 7504 7505 if test "x$ac_ct_DSYMUTIL" = x; then 7506 DSYMUTIL=":" 7507 else 7508 case $cross_compiling:$ac_tool_warned in 7509yes:) 7510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7512ac_tool_warned=yes ;; 7513esac 7514 DSYMUTIL=$ac_ct_DSYMUTIL 7515 fi 7516else 7517 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7518fi 7519 7520 if test -n "$ac_tool_prefix"; then 7521 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7522set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7524$as_echo_n "checking for $ac_word... " >&6; } 7525if ${ac_cv_prog_NMEDIT+:} false; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 if test -n "$NMEDIT"; then 7529 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7530else 7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7532for as_dir in $PATH 7533do 7534 IFS=$as_save_IFS 7535 test -z "$as_dir" && as_dir=. 7536 for ac_exec_ext in '' $ac_executable_extensions; do 7537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7538 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7540 break 2 7541 fi 7542done 7543 done 7544IFS=$as_save_IFS 7545 7546fi 7547fi 7548NMEDIT=$ac_cv_prog_NMEDIT 7549if test -n "$NMEDIT"; then 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7551$as_echo "$NMEDIT" >&6; } 7552else 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7554$as_echo "no" >&6; } 7555fi 7556 7557 7558fi 7559if test -z "$ac_cv_prog_NMEDIT"; then 7560 ac_ct_NMEDIT=$NMEDIT 7561 # Extract the first word of "nmedit", so it can be a program name with args. 7562set dummy nmedit; ac_word=$2 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7564$as_echo_n "checking for $ac_word... " >&6; } 7565if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7566 $as_echo_n "(cached) " >&6 7567else 7568 if test -n "$ac_ct_NMEDIT"; then 7569 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7570else 7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7572for as_dir in $PATH 7573do 7574 IFS=$as_save_IFS 7575 test -z "$as_dir" && as_dir=. 7576 for ac_exec_ext in '' $ac_executable_extensions; do 7577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7578 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7580 break 2 7581 fi 7582done 7583 done 7584IFS=$as_save_IFS 7585 7586fi 7587fi 7588ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7589if test -n "$ac_ct_NMEDIT"; then 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7591$as_echo "$ac_ct_NMEDIT" >&6; } 7592else 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7594$as_echo "no" >&6; } 7595fi 7596 7597 if test "x$ac_ct_NMEDIT" = x; then 7598 NMEDIT=":" 7599 else 7600 case $cross_compiling:$ac_tool_warned in 7601yes:) 7602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7604ac_tool_warned=yes ;; 7605esac 7606 NMEDIT=$ac_ct_NMEDIT 7607 fi 7608else 7609 NMEDIT="$ac_cv_prog_NMEDIT" 7610fi 7611 7612 if test -n "$ac_tool_prefix"; then 7613 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7614set dummy ${ac_tool_prefix}lipo; ac_word=$2 7615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7616$as_echo_n "checking for $ac_word... " >&6; } 7617if ${ac_cv_prog_LIPO+:} false; then : 7618 $as_echo_n "(cached) " >&6 7619else 7620 if test -n "$LIPO"; then 7621 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7622else 7623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7624for as_dir in $PATH 7625do 7626 IFS=$as_save_IFS 7627 test -z "$as_dir" && as_dir=. 7628 for ac_exec_ext in '' $ac_executable_extensions; do 7629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7630 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7632 break 2 7633 fi 7634done 7635 done 7636IFS=$as_save_IFS 7637 7638fi 7639fi 7640LIPO=$ac_cv_prog_LIPO 7641if test -n "$LIPO"; then 7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7643$as_echo "$LIPO" >&6; } 7644else 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7646$as_echo "no" >&6; } 7647fi 7648 7649 7650fi 7651if test -z "$ac_cv_prog_LIPO"; then 7652 ac_ct_LIPO=$LIPO 7653 # Extract the first word of "lipo", so it can be a program name with args. 7654set dummy lipo; ac_word=$2 7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7656$as_echo_n "checking for $ac_word... " >&6; } 7657if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7658 $as_echo_n "(cached) " >&6 7659else 7660 if test -n "$ac_ct_LIPO"; then 7661 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7662else 7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7664for as_dir in $PATH 7665do 7666 IFS=$as_save_IFS 7667 test -z "$as_dir" && as_dir=. 7668 for ac_exec_ext in '' $ac_executable_extensions; do 7669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7670 ac_cv_prog_ac_ct_LIPO="lipo" 7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7672 break 2 7673 fi 7674done 7675 done 7676IFS=$as_save_IFS 7677 7678fi 7679fi 7680ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7681if test -n "$ac_ct_LIPO"; then 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7683$as_echo "$ac_ct_LIPO" >&6; } 7684else 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7686$as_echo "no" >&6; } 7687fi 7688 7689 if test "x$ac_ct_LIPO" = x; then 7690 LIPO=":" 7691 else 7692 case $cross_compiling:$ac_tool_warned in 7693yes:) 7694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7696ac_tool_warned=yes ;; 7697esac 7698 LIPO=$ac_ct_LIPO 7699 fi 7700else 7701 LIPO="$ac_cv_prog_LIPO" 7702fi 7703 7704 if test -n "$ac_tool_prefix"; then 7705 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7706set dummy ${ac_tool_prefix}otool; ac_word=$2 7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7708$as_echo_n "checking for $ac_word... " >&6; } 7709if ${ac_cv_prog_OTOOL+:} false; then : 7710 $as_echo_n "(cached) " >&6 7711else 7712 if test -n "$OTOOL"; then 7713 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7714else 7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7716for as_dir in $PATH 7717do 7718 IFS=$as_save_IFS 7719 test -z "$as_dir" && as_dir=. 7720 for ac_exec_ext in '' $ac_executable_extensions; do 7721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7722 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7724 break 2 7725 fi 7726done 7727 done 7728IFS=$as_save_IFS 7729 7730fi 7731fi 7732OTOOL=$ac_cv_prog_OTOOL 7733if test -n "$OTOOL"; then 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7735$as_echo "$OTOOL" >&6; } 7736else 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7738$as_echo "no" >&6; } 7739fi 7740 7741 7742fi 7743if test -z "$ac_cv_prog_OTOOL"; then 7744 ac_ct_OTOOL=$OTOOL 7745 # Extract the first word of "otool", so it can be a program name with args. 7746set dummy otool; ac_word=$2 7747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7748$as_echo_n "checking for $ac_word... " >&6; } 7749if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7750 $as_echo_n "(cached) " >&6 7751else 7752 if test -n "$ac_ct_OTOOL"; then 7753 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7754else 7755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7756for as_dir in $PATH 7757do 7758 IFS=$as_save_IFS 7759 test -z "$as_dir" && as_dir=. 7760 for ac_exec_ext in '' $ac_executable_extensions; do 7761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7762 ac_cv_prog_ac_ct_OTOOL="otool" 7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7764 break 2 7765 fi 7766done 7767 done 7768IFS=$as_save_IFS 7769 7770fi 7771fi 7772ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7773if test -n "$ac_ct_OTOOL"; then 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7775$as_echo "$ac_ct_OTOOL" >&6; } 7776else 7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7778$as_echo "no" >&6; } 7779fi 7780 7781 if test "x$ac_ct_OTOOL" = x; then 7782 OTOOL=":" 7783 else 7784 case $cross_compiling:$ac_tool_warned in 7785yes:) 7786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7788ac_tool_warned=yes ;; 7789esac 7790 OTOOL=$ac_ct_OTOOL 7791 fi 7792else 7793 OTOOL="$ac_cv_prog_OTOOL" 7794fi 7795 7796 if test -n "$ac_tool_prefix"; then 7797 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7798set dummy ${ac_tool_prefix}otool64; ac_word=$2 7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7800$as_echo_n "checking for $ac_word... " >&6; } 7801if ${ac_cv_prog_OTOOL64+:} false; then : 7802 $as_echo_n "(cached) " >&6 7803else 7804 if test -n "$OTOOL64"; then 7805 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7806else 7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7808for as_dir in $PATH 7809do 7810 IFS=$as_save_IFS 7811 test -z "$as_dir" && as_dir=. 7812 for ac_exec_ext in '' $ac_executable_extensions; do 7813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7814 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7816 break 2 7817 fi 7818done 7819 done 7820IFS=$as_save_IFS 7821 7822fi 7823fi 7824OTOOL64=$ac_cv_prog_OTOOL64 7825if test -n "$OTOOL64"; then 7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7827$as_echo "$OTOOL64" >&6; } 7828else 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7830$as_echo "no" >&6; } 7831fi 7832 7833 7834fi 7835if test -z "$ac_cv_prog_OTOOL64"; then 7836 ac_ct_OTOOL64=$OTOOL64 7837 # Extract the first word of "otool64", so it can be a program name with args. 7838set dummy otool64; ac_word=$2 7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7840$as_echo_n "checking for $ac_word... " >&6; } 7841if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7842 $as_echo_n "(cached) " >&6 7843else 7844 if test -n "$ac_ct_OTOOL64"; then 7845 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7846else 7847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7848for as_dir in $PATH 7849do 7850 IFS=$as_save_IFS 7851 test -z "$as_dir" && as_dir=. 7852 for ac_exec_ext in '' $ac_executable_extensions; do 7853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7854 ac_cv_prog_ac_ct_OTOOL64="otool64" 7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7856 break 2 7857 fi 7858done 7859 done 7860IFS=$as_save_IFS 7861 7862fi 7863fi 7864ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7865if test -n "$ac_ct_OTOOL64"; then 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7867$as_echo "$ac_ct_OTOOL64" >&6; } 7868else 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7870$as_echo "no" >&6; } 7871fi 7872 7873 if test "x$ac_ct_OTOOL64" = x; then 7874 OTOOL64=":" 7875 else 7876 case $cross_compiling:$ac_tool_warned in 7877yes:) 7878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7880ac_tool_warned=yes ;; 7881esac 7882 OTOOL64=$ac_ct_OTOOL64 7883 fi 7884else 7885 OTOOL64="$ac_cv_prog_OTOOL64" 7886fi 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7915$as_echo_n "checking for -single_module linker flag... " >&6; } 7916if ${lt_cv_apple_cc_single_mod+:} false; then : 7917 $as_echo_n "(cached) " >&6 7918else 7919 lt_cv_apple_cc_single_mod=no 7920 if test -z "$LT_MULTI_MODULE"; then 7921 # By default we will add the -single_module flag. You can override 7922 # by either setting the environment variable LT_MULTI_MODULE 7923 # non-empty at configure time, or by adding -multi_module to the 7924 # link flags. 7925 rm -rf libconftest.dylib* 7926 echo "int foo(void){return 1;}" > conftest.c 7927 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7928-dynamiclib -Wl,-single_module conftest.c" >&5 7929 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7930 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7931 _lt_result=$? 7932 # If there is a non-empty error log, and "single_module" 7933 # appears in it, assume the flag caused a linker warning 7934 if test -s conftest.err && $GREP single_module conftest.err; then 7935 cat conftest.err >&5 7936 # Otherwise, if the output was created with a 0 exit code from 7937 # the compiler, it worked. 7938 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7939 lt_cv_apple_cc_single_mod=yes 7940 else 7941 cat conftest.err >&5 7942 fi 7943 rm -rf libconftest.dylib* 7944 rm -f conftest.* 7945 fi 7946fi 7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7948$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7949 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7951$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7952if ${lt_cv_ld_exported_symbols_list+:} false; then : 7953 $as_echo_n "(cached) " >&6 7954else 7955 lt_cv_ld_exported_symbols_list=no 7956 save_LDFLAGS=$LDFLAGS 7957 echo "_main" > conftest.sym 7958 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7960/* end confdefs.h. */ 7961 7962int 7963main () 7964{ 7965 7966 ; 7967 return 0; 7968} 7969_ACEOF 7970if ac_fn_c_try_link "$LINENO"; then : 7971 lt_cv_ld_exported_symbols_list=yes 7972else 7973 lt_cv_ld_exported_symbols_list=no 7974fi 7975rm -f core conftest.err conftest.$ac_objext \ 7976 conftest$ac_exeext conftest.$ac_ext 7977 LDFLAGS=$save_LDFLAGS 7978 7979fi 7980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7981$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7982 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7984$as_echo_n "checking for -force_load linker flag... " >&6; } 7985if ${lt_cv_ld_force_load+:} false; then : 7986 $as_echo_n "(cached) " >&6 7987else 7988 lt_cv_ld_force_load=no 7989 cat > conftest.c << _LT_EOF 7990int forced_loaded() { return 2;} 7991_LT_EOF 7992 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7993 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7994 echo "$AR cru libconftest.a conftest.o" >&5 7995 $AR cru libconftest.a conftest.o 2>&5 7996 echo "$RANLIB libconftest.a" >&5 7997 $RANLIB libconftest.a 2>&5 7998 cat > conftest.c << _LT_EOF 7999int main() { return 0;} 8000_LT_EOF 8001 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8002 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8003 _lt_result=$? 8004 if test -s conftest.err && $GREP force_load conftest.err; then 8005 cat conftest.err >&5 8006 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8007 lt_cv_ld_force_load=yes 8008 else 8009 cat conftest.err >&5 8010 fi 8011 rm -f conftest.err libconftest.a conftest conftest.c 8012 rm -rf conftest.dSYM 8013 8014fi 8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8016$as_echo "$lt_cv_ld_force_load" >&6; } 8017 case $host_os in 8018 rhapsody* | darwin1.[012]) 8019 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8020 darwin1.*) 8021 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8022 darwin*) # darwin 5.x on 8023 # if running on 10.5 or later, the deployment target defaults 8024 # to the OS version, if on x86, and 10.4, the deployment 8025 # target defaults to 10.4. Don't you love it? 8026 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8027 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8028 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8029 10.[012][,.]*) 8030 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8031 10.*) 8032 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8033 esac 8034 ;; 8035 esac 8036 if test yes = "$lt_cv_apple_cc_single_mod"; then 8037 _lt_dar_single_mod='$single_module' 8038 fi 8039 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8040 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8041 else 8042 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8043 fi 8044 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8045 _lt_dsymutil='~$DSYMUTIL $lib || :' 8046 else 8047 _lt_dsymutil= 8048 fi 8049 ;; 8050 esac 8051 8052# func_munge_path_list VARIABLE PATH 8053# ----------------------------------- 8054# VARIABLE is name of variable containing _space_ separated list of 8055# directories to be munged by the contents of PATH, which is string 8056# having a format: 8057# "DIR[:DIR]:" 8058# string "DIR[ DIR]" will be prepended to VARIABLE 8059# ":DIR[:DIR]" 8060# string "DIR[ DIR]" will be appended to VARIABLE 8061# "DIRP[:DIRP]::[DIRA:]DIRA" 8062# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8063# "DIRA[ DIRA]" will be appended to VARIABLE 8064# "DIR[:DIR]" 8065# VARIABLE will be replaced by "DIR[ DIR]" 8066func_munge_path_list () 8067{ 8068 case x$2 in 8069 x) 8070 ;; 8071 *:) 8072 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8073 ;; 8074 x:*) 8075 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8076 ;; 8077 *::*) 8078 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8079 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8080 ;; 8081 *) 8082 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8083 ;; 8084 esac 8085} 8086 8087ac_ext=c 8088ac_cpp='$CPP $CPPFLAGS' 8089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8091ac_compiler_gnu=$ac_cv_c_compiler_gnu 8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8093$as_echo_n "checking how to run the C preprocessor... " >&6; } 8094# On Suns, sometimes $CPP names a directory. 8095if test -n "$CPP" && test -d "$CPP"; then 8096 CPP= 8097fi 8098if test -z "$CPP"; then 8099 if ${ac_cv_prog_CPP+:} false; then : 8100 $as_echo_n "(cached) " >&6 8101else 8102 # Double quotes because CPP needs to be expanded 8103 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8104 do 8105 ac_preproc_ok=false 8106for ac_c_preproc_warn_flag in '' yes 8107do 8108 # Use a header file that comes with gcc, so configuring glibc 8109 # with a fresh cross-compiler works. 8110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8111 # <limits.h> exists even on freestanding compilers. 8112 # On the NeXT, cc -E runs the code through the compiler's parser, 8113 # not just through cpp. "Syntax error" is here to catch this case. 8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8115/* end confdefs.h. */ 8116#ifdef __STDC__ 8117# include <limits.h> 8118#else 8119# include <assert.h> 8120#endif 8121 Syntax error 8122_ACEOF 8123if ac_fn_c_try_cpp "$LINENO"; then : 8124 8125else 8126 # Broken: fails on valid input. 8127continue 8128fi 8129rm -f conftest.err conftest.i conftest.$ac_ext 8130 8131 # OK, works on sane cases. Now check whether nonexistent headers 8132 # can be detected and how. 8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8134/* end confdefs.h. */ 8135#include <ac_nonexistent.h> 8136_ACEOF 8137if ac_fn_c_try_cpp "$LINENO"; then : 8138 # Broken: success on invalid input. 8139continue 8140else 8141 # Passes both tests. 8142ac_preproc_ok=: 8143break 8144fi 8145rm -f conftest.err conftest.i conftest.$ac_ext 8146 8147done 8148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8149rm -f conftest.i conftest.err conftest.$ac_ext 8150if $ac_preproc_ok; then : 8151 break 8152fi 8153 8154 done 8155 ac_cv_prog_CPP=$CPP 8156 8157fi 8158 CPP=$ac_cv_prog_CPP 8159else 8160 ac_cv_prog_CPP=$CPP 8161fi 8162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8163$as_echo "$CPP" >&6; } 8164ac_preproc_ok=false 8165for ac_c_preproc_warn_flag in '' yes 8166do 8167 # Use a header file that comes with gcc, so configuring glibc 8168 # with a fresh cross-compiler works. 8169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8170 # <limits.h> exists even on freestanding compilers. 8171 # On the NeXT, cc -E runs the code through the compiler's parser, 8172 # not just through cpp. "Syntax error" is here to catch this case. 8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8174/* end confdefs.h. */ 8175#ifdef __STDC__ 8176# include <limits.h> 8177#else 8178# include <assert.h> 8179#endif 8180 Syntax error 8181_ACEOF 8182if ac_fn_c_try_cpp "$LINENO"; then : 8183 8184else 8185 # Broken: fails on valid input. 8186continue 8187fi 8188rm -f conftest.err conftest.i conftest.$ac_ext 8189 8190 # OK, works on sane cases. Now check whether nonexistent headers 8191 # can be detected and how. 8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8193/* end confdefs.h. */ 8194#include <ac_nonexistent.h> 8195_ACEOF 8196if ac_fn_c_try_cpp "$LINENO"; then : 8197 # Broken: success on invalid input. 8198continue 8199else 8200 # Passes both tests. 8201ac_preproc_ok=: 8202break 8203fi 8204rm -f conftest.err conftest.i conftest.$ac_ext 8205 8206done 8207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8208rm -f conftest.i conftest.err conftest.$ac_ext 8209if $ac_preproc_ok; then : 8210 8211else 8212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8214as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8215See \`config.log' for more details" "$LINENO" 5; } 8216fi 8217 8218ac_ext=c 8219ac_cpp='$CPP $CPPFLAGS' 8220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8222ac_compiler_gnu=$ac_cv_c_compiler_gnu 8223 8224 8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8226$as_echo_n "checking for ANSI C header files... " >&6; } 8227if ${ac_cv_header_stdc+:} false; then : 8228 $as_echo_n "(cached) " >&6 8229else 8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8231/* end confdefs.h. */ 8232#include <stdlib.h> 8233#include <stdarg.h> 8234#include <string.h> 8235#include <float.h> 8236 8237int 8238main () 8239{ 8240 8241 ; 8242 return 0; 8243} 8244_ACEOF 8245if ac_fn_c_try_compile "$LINENO"; then : 8246 ac_cv_header_stdc=yes 8247else 8248 ac_cv_header_stdc=no 8249fi 8250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8251 8252if test $ac_cv_header_stdc = yes; then 8253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255/* end confdefs.h. */ 8256#include <string.h> 8257 8258_ACEOF 8259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8260 $EGREP "memchr" >/dev/null 2>&1; then : 8261 8262else 8263 ac_cv_header_stdc=no 8264fi 8265rm -f conftest* 8266 8267fi 8268 8269if test $ac_cv_header_stdc = yes; then 8270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8272/* end confdefs.h. */ 8273#include <stdlib.h> 8274 8275_ACEOF 8276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8277 $EGREP "free" >/dev/null 2>&1; then : 8278 8279else 8280 ac_cv_header_stdc=no 8281fi 8282rm -f conftest* 8283 8284fi 8285 8286if test $ac_cv_header_stdc = yes; then 8287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8288 if test "$cross_compiling" = yes; then : 8289 : 8290else 8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8292/* end confdefs.h. */ 8293#include <ctype.h> 8294#include <stdlib.h> 8295#if ((' ' & 0x0FF) == 0x020) 8296# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8297# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8298#else 8299# define ISLOWER(c) \ 8300 (('a' <= (c) && (c) <= 'i') \ 8301 || ('j' <= (c) && (c) <= 'r') \ 8302 || ('s' <= (c) && (c) <= 'z')) 8303# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8304#endif 8305 8306#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8307int 8308main () 8309{ 8310 int i; 8311 for (i = 0; i < 256; i++) 8312 if (XOR (islower (i), ISLOWER (i)) 8313 || toupper (i) != TOUPPER (i)) 8314 return 2; 8315 return 0; 8316} 8317_ACEOF 8318if ac_fn_c_try_run "$LINENO"; then : 8319 8320else 8321 ac_cv_header_stdc=no 8322fi 8323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8324 conftest.$ac_objext conftest.beam conftest.$ac_ext 8325fi 8326 8327fi 8328fi 8329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8330$as_echo "$ac_cv_header_stdc" >&6; } 8331if test $ac_cv_header_stdc = yes; then 8332 8333$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8334 8335fi 8336 8337# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8338for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8339 inttypes.h stdint.h unistd.h 8340do : 8341 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8342ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8343" 8344if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8345 cat >>confdefs.h <<_ACEOF 8346#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8347_ACEOF 8348 8349fi 8350 8351done 8352 8353 8354for ac_header in dlfcn.h 8355do : 8356 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8357" 8358if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8359 cat >>confdefs.h <<_ACEOF 8360#define HAVE_DLFCN_H 1 8361_ACEOF 8362 8363fi 8364 8365done 8366 8367 8368 8369 8370 8371# Set options 8372# Check whether --enable-static was given. 8373if test "${enable_static+set}" = set; then : 8374 enableval=$enable_static; p=${PACKAGE-default} 8375 case $enableval in 8376 yes) enable_static=yes ;; 8377 no) enable_static=no ;; 8378 *) 8379 enable_static=no 8380 # Look at the argument we got. We use all the common list separators. 8381 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8382 for pkg in $enableval; do 8383 IFS=$lt_save_ifs 8384 if test "X$pkg" = "X$p"; then 8385 enable_static=yes 8386 fi 8387 done 8388 IFS=$lt_save_ifs 8389 ;; 8390 esac 8391else 8392 enable_static=no 8393fi 8394 8395 8396 8397 8398 8399 8400 8401enable_win32_dll=yes 8402 8403case $host in 8404*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8405 if test -n "$ac_tool_prefix"; then 8406 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8407set dummy ${ac_tool_prefix}as; ac_word=$2 8408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8409$as_echo_n "checking for $ac_word... " >&6; } 8410if ${ac_cv_prog_AS+:} false; then : 8411 $as_echo_n "(cached) " >&6 8412else 8413 if test -n "$AS"; then 8414 ac_cv_prog_AS="$AS" # Let the user override the test. 8415else 8416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8417for as_dir in $PATH 8418do 8419 IFS=$as_save_IFS 8420 test -z "$as_dir" && as_dir=. 8421 for ac_exec_ext in '' $ac_executable_extensions; do 8422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8423 ac_cv_prog_AS="${ac_tool_prefix}as" 8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8425 break 2 8426 fi 8427done 8428 done 8429IFS=$as_save_IFS 8430 8431fi 8432fi 8433AS=$ac_cv_prog_AS 8434if test -n "$AS"; then 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8436$as_echo "$AS" >&6; } 8437else 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8439$as_echo "no" >&6; } 8440fi 8441 8442 8443fi 8444if test -z "$ac_cv_prog_AS"; then 8445 ac_ct_AS=$AS 8446 # Extract the first word of "as", so it can be a program name with args. 8447set dummy as; ac_word=$2 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8449$as_echo_n "checking for $ac_word... " >&6; } 8450if ${ac_cv_prog_ac_ct_AS+:} false; then : 8451 $as_echo_n "(cached) " >&6 8452else 8453 if test -n "$ac_ct_AS"; then 8454 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8455else 8456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8457for as_dir in $PATH 8458do 8459 IFS=$as_save_IFS 8460 test -z "$as_dir" && as_dir=. 8461 for ac_exec_ext in '' $ac_executable_extensions; do 8462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8463 ac_cv_prog_ac_ct_AS="as" 8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8465 break 2 8466 fi 8467done 8468 done 8469IFS=$as_save_IFS 8470 8471fi 8472fi 8473ac_ct_AS=$ac_cv_prog_ac_ct_AS 8474if test -n "$ac_ct_AS"; then 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8476$as_echo "$ac_ct_AS" >&6; } 8477else 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8479$as_echo "no" >&6; } 8480fi 8481 8482 if test "x$ac_ct_AS" = x; then 8483 AS="false" 8484 else 8485 case $cross_compiling:$ac_tool_warned in 8486yes:) 8487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8489ac_tool_warned=yes ;; 8490esac 8491 AS=$ac_ct_AS 8492 fi 8493else 8494 AS="$ac_cv_prog_AS" 8495fi 8496 8497 if test -n "$ac_tool_prefix"; then 8498 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8499set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8501$as_echo_n "checking for $ac_word... " >&6; } 8502if ${ac_cv_prog_DLLTOOL+:} false; then : 8503 $as_echo_n "(cached) " >&6 8504else 8505 if test -n "$DLLTOOL"; then 8506 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8507else 8508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8509for as_dir in $PATH 8510do 8511 IFS=$as_save_IFS 8512 test -z "$as_dir" && as_dir=. 8513 for ac_exec_ext in '' $ac_executable_extensions; do 8514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8515 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8517 break 2 8518 fi 8519done 8520 done 8521IFS=$as_save_IFS 8522 8523fi 8524fi 8525DLLTOOL=$ac_cv_prog_DLLTOOL 8526if test -n "$DLLTOOL"; then 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8528$as_echo "$DLLTOOL" >&6; } 8529else 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8531$as_echo "no" >&6; } 8532fi 8533 8534 8535fi 8536if test -z "$ac_cv_prog_DLLTOOL"; then 8537 ac_ct_DLLTOOL=$DLLTOOL 8538 # Extract the first word of "dlltool", so it can be a program name with args. 8539set dummy dlltool; ac_word=$2 8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8541$as_echo_n "checking for $ac_word... " >&6; } 8542if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8543 $as_echo_n "(cached) " >&6 8544else 8545 if test -n "$ac_ct_DLLTOOL"; then 8546 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8547else 8548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8549for as_dir in $PATH 8550do 8551 IFS=$as_save_IFS 8552 test -z "$as_dir" && as_dir=. 8553 for ac_exec_ext in '' $ac_executable_extensions; do 8554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8555 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8557 break 2 8558 fi 8559done 8560 done 8561IFS=$as_save_IFS 8562 8563fi 8564fi 8565ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8566if test -n "$ac_ct_DLLTOOL"; then 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8568$as_echo "$ac_ct_DLLTOOL" >&6; } 8569else 8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8571$as_echo "no" >&6; } 8572fi 8573 8574 if test "x$ac_ct_DLLTOOL" = x; then 8575 DLLTOOL="false" 8576 else 8577 case $cross_compiling:$ac_tool_warned in 8578yes:) 8579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8581ac_tool_warned=yes ;; 8582esac 8583 DLLTOOL=$ac_ct_DLLTOOL 8584 fi 8585else 8586 DLLTOOL="$ac_cv_prog_DLLTOOL" 8587fi 8588 8589 if test -n "$ac_tool_prefix"; then 8590 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8591set dummy ${ac_tool_prefix}objdump; ac_word=$2 8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8593$as_echo_n "checking for $ac_word... " >&6; } 8594if ${ac_cv_prog_OBJDUMP+:} false; then : 8595 $as_echo_n "(cached) " >&6 8596else 8597 if test -n "$OBJDUMP"; then 8598 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8599else 8600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8601for as_dir in $PATH 8602do 8603 IFS=$as_save_IFS 8604 test -z "$as_dir" && as_dir=. 8605 for ac_exec_ext in '' $ac_executable_extensions; do 8606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8607 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8609 break 2 8610 fi 8611done 8612 done 8613IFS=$as_save_IFS 8614 8615fi 8616fi 8617OBJDUMP=$ac_cv_prog_OBJDUMP 8618if test -n "$OBJDUMP"; then 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8620$as_echo "$OBJDUMP" >&6; } 8621else 8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8623$as_echo "no" >&6; } 8624fi 8625 8626 8627fi 8628if test -z "$ac_cv_prog_OBJDUMP"; then 8629 ac_ct_OBJDUMP=$OBJDUMP 8630 # Extract the first word of "objdump", so it can be a program name with args. 8631set dummy objdump; ac_word=$2 8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8633$as_echo_n "checking for $ac_word... " >&6; } 8634if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8635 $as_echo_n "(cached) " >&6 8636else 8637 if test -n "$ac_ct_OBJDUMP"; then 8638 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8639else 8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8641for as_dir in $PATH 8642do 8643 IFS=$as_save_IFS 8644 test -z "$as_dir" && as_dir=. 8645 for ac_exec_ext in '' $ac_executable_extensions; do 8646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8647 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8649 break 2 8650 fi 8651done 8652 done 8653IFS=$as_save_IFS 8654 8655fi 8656fi 8657ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8658if test -n "$ac_ct_OBJDUMP"; then 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8660$as_echo "$ac_ct_OBJDUMP" >&6; } 8661else 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8663$as_echo "no" >&6; } 8664fi 8665 8666 if test "x$ac_ct_OBJDUMP" = x; then 8667 OBJDUMP="false" 8668 else 8669 case $cross_compiling:$ac_tool_warned in 8670yes:) 8671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8673ac_tool_warned=yes ;; 8674esac 8675 OBJDUMP=$ac_ct_OBJDUMP 8676 fi 8677else 8678 OBJDUMP="$ac_cv_prog_OBJDUMP" 8679fi 8680 8681 ;; 8682esac 8683 8684test -z "$AS" && AS=as 8685 8686 8687 8688 8689 8690test -z "$DLLTOOL" && DLLTOOL=dlltool 8691 8692 8693 8694 8695 8696test -z "$OBJDUMP" && OBJDUMP=objdump 8697 8698 8699 8700 8701 8702 8703 8704 enable_dlopen=no 8705 8706 8707 8708 # Check whether --enable-shared was given. 8709if test "${enable_shared+set}" = set; then : 8710 enableval=$enable_shared; p=${PACKAGE-default} 8711 case $enableval in 8712 yes) enable_shared=yes ;; 8713 no) enable_shared=no ;; 8714 *) 8715 enable_shared=no 8716 # Look at the argument we got. We use all the common list separators. 8717 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8718 for pkg in $enableval; do 8719 IFS=$lt_save_ifs 8720 if test "X$pkg" = "X$p"; then 8721 enable_shared=yes 8722 fi 8723 done 8724 IFS=$lt_save_ifs 8725 ;; 8726 esac 8727else 8728 enable_shared=yes 8729fi 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741# Check whether --with-pic was given. 8742if test "${with_pic+set}" = set; then : 8743 withval=$with_pic; lt_p=${PACKAGE-default} 8744 case $withval in 8745 yes|no) pic_mode=$withval ;; 8746 *) 8747 pic_mode=default 8748 # Look at the argument we got. We use all the common list separators. 8749 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8750 for lt_pkg in $withval; do 8751 IFS=$lt_save_ifs 8752 if test "X$lt_pkg" = "X$lt_p"; then 8753 pic_mode=yes 8754 fi 8755 done 8756 IFS=$lt_save_ifs 8757 ;; 8758 esac 8759else 8760 pic_mode=default 8761fi 8762 8763 8764 8765 8766 8767 8768 8769 8770 # Check whether --enable-fast-install was given. 8771if test "${enable_fast_install+set}" = set; then : 8772 enableval=$enable_fast_install; p=${PACKAGE-default} 8773 case $enableval in 8774 yes) enable_fast_install=yes ;; 8775 no) enable_fast_install=no ;; 8776 *) 8777 enable_fast_install=no 8778 # Look at the argument we got. We use all the common list separators. 8779 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8780 for pkg in $enableval; do 8781 IFS=$lt_save_ifs 8782 if test "X$pkg" = "X$p"; then 8783 enable_fast_install=yes 8784 fi 8785 done 8786 IFS=$lt_save_ifs 8787 ;; 8788 esac 8789else 8790 enable_fast_install=yes 8791fi 8792 8793 8794 8795 8796 8797 8798 8799 8800 shared_archive_member_spec= 8801case $host,$enable_shared in 8802power*-*-aix[5-9]*,yes) 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8804$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8805 8806# Check whether --with-aix-soname was given. 8807if test "${with_aix_soname+set}" = set; then : 8808 withval=$with_aix_soname; case $withval in 8809 aix|svr4|both) 8810 ;; 8811 *) 8812 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8813 ;; 8814 esac 8815 lt_cv_with_aix_soname=$with_aix_soname 8816else 8817 if ${lt_cv_with_aix_soname+:} false; then : 8818 $as_echo_n "(cached) " >&6 8819else 8820 lt_cv_with_aix_soname=aix 8821fi 8822 8823 with_aix_soname=$lt_cv_with_aix_soname 8824fi 8825 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8827$as_echo "$with_aix_soname" >&6; } 8828 if test aix != "$with_aix_soname"; then 8829 # For the AIX way of multilib, we name the shared archive member 8830 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8831 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8832 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8833 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8834 if test 64 = "${OBJECT_MODE-32}"; then 8835 shared_archive_member_spec=shr_64 8836 else 8837 shared_archive_member_spec=shr 8838 fi 8839 fi 8840 ;; 8841*) 8842 with_aix_soname=aix 8843 ;; 8844esac 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855# This can be used to rebuild libtool when needed 8856LIBTOOL_DEPS=$ltmain 8857 8858# Always use our own libtool. 8859LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890test -z "$LN_S" && LN_S="ln -s" 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905if test -n "${ZSH_VERSION+set}"; then 8906 setopt NO_GLOB_SUBST 8907fi 8908 8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8910$as_echo_n "checking for objdir... " >&6; } 8911if ${lt_cv_objdir+:} false; then : 8912 $as_echo_n "(cached) " >&6 8913else 8914 rm -f .libs 2>/dev/null 8915mkdir .libs 2>/dev/null 8916if test -d .libs; then 8917 lt_cv_objdir=.libs 8918else 8919 # MS-DOS does not allow filenames that begin with a dot. 8920 lt_cv_objdir=_libs 8921fi 8922rmdir .libs 2>/dev/null 8923fi 8924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8925$as_echo "$lt_cv_objdir" >&6; } 8926objdir=$lt_cv_objdir 8927 8928 8929 8930 8931 8932cat >>confdefs.h <<_ACEOF 8933#define LT_OBJDIR "$lt_cv_objdir/" 8934_ACEOF 8935 8936 8937 8938 8939case $host_os in 8940aix3*) 8941 # AIX sometimes has problems with the GCC collect2 program. For some 8942 # reason, if we set the COLLECT_NAMES environment variable, the problems 8943 # vanish in a puff of smoke. 8944 if test set != "${COLLECT_NAMES+set}"; then 8945 COLLECT_NAMES= 8946 export COLLECT_NAMES 8947 fi 8948 ;; 8949esac 8950 8951# Global variables: 8952ofile=libtool 8953can_build_shared=yes 8954 8955# All known linkers require a '.a' archive for static linking (except MSVC, 8956# which needs '.lib'). 8957libext=a 8958 8959with_gnu_ld=$lt_cv_prog_gnu_ld 8960 8961old_CC=$CC 8962old_CFLAGS=$CFLAGS 8963 8964# Set sane defaults for various variables 8965test -z "$CC" && CC=cc 8966test -z "$LTCC" && LTCC=$CC 8967test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8968test -z "$LD" && LD=ld 8969test -z "$ac_objext" && ac_objext=o 8970 8971func_cc_basename $compiler 8972cc_basename=$func_cc_basename_result 8973 8974 8975# Only perform the check for file, if the check method requires it 8976test -z "$MAGIC_CMD" && MAGIC_CMD=file 8977case $deplibs_check_method in 8978file_magic*) 8979 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8981$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8982if ${lt_cv_path_MAGIC_CMD+:} false; then : 8983 $as_echo_n "(cached) " >&6 8984else 8985 case $MAGIC_CMD in 8986[\\/*] | ?:[\\/]*) 8987 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8988 ;; 8989*) 8990 lt_save_MAGIC_CMD=$MAGIC_CMD 8991 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8992 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8993 for ac_dir in $ac_dummy; do 8994 IFS=$lt_save_ifs 8995 test -z "$ac_dir" && ac_dir=. 8996 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8997 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8998 if test -n "$file_magic_test_file"; then 8999 case $deplibs_check_method in 9000 "file_magic "*) 9001 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9002 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9003 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9004 $EGREP "$file_magic_regex" > /dev/null; then 9005 : 9006 else 9007 cat <<_LT_EOF 1>&2 9008 9009*** Warning: the command libtool uses to detect shared libraries, 9010*** $file_magic_cmd, produces output that libtool cannot recognize. 9011*** The result is that libtool may fail to recognize shared libraries 9012*** as such. This will affect the creation of libtool libraries that 9013*** depend on shared libraries, but programs linked with such libtool 9014*** libraries will work regardless of this problem. Nevertheless, you 9015*** may want to report the problem to your system manager and/or to 9016*** bug-libtool@gnu.org 9017 9018_LT_EOF 9019 fi ;; 9020 esac 9021 fi 9022 break 9023 fi 9024 done 9025 IFS=$lt_save_ifs 9026 MAGIC_CMD=$lt_save_MAGIC_CMD 9027 ;; 9028esac 9029fi 9030 9031MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9032if test -n "$MAGIC_CMD"; then 9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9034$as_echo "$MAGIC_CMD" >&6; } 9035else 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9037$as_echo "no" >&6; } 9038fi 9039 9040 9041 9042 9043 9044if test -z "$lt_cv_path_MAGIC_CMD"; then 9045 if test -n "$ac_tool_prefix"; then 9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9047$as_echo_n "checking for file... " >&6; } 9048if ${lt_cv_path_MAGIC_CMD+:} false; then : 9049 $as_echo_n "(cached) " >&6 9050else 9051 case $MAGIC_CMD in 9052[\\/*] | ?:[\\/]*) 9053 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9054 ;; 9055*) 9056 lt_save_MAGIC_CMD=$MAGIC_CMD 9057 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9058 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9059 for ac_dir in $ac_dummy; do 9060 IFS=$lt_save_ifs 9061 test -z "$ac_dir" && ac_dir=. 9062 if test -f "$ac_dir/file"; then 9063 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9064 if test -n "$file_magic_test_file"; then 9065 case $deplibs_check_method in 9066 "file_magic "*) 9067 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9068 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9069 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9070 $EGREP "$file_magic_regex" > /dev/null; then 9071 : 9072 else 9073 cat <<_LT_EOF 1>&2 9074 9075*** Warning: the command libtool uses to detect shared libraries, 9076*** $file_magic_cmd, produces output that libtool cannot recognize. 9077*** The result is that libtool may fail to recognize shared libraries 9078*** as such. This will affect the creation of libtool libraries that 9079*** depend on shared libraries, but programs linked with such libtool 9080*** libraries will work regardless of this problem. Nevertheless, you 9081*** may want to report the problem to your system manager and/or to 9082*** bug-libtool@gnu.org 9083 9084_LT_EOF 9085 fi ;; 9086 esac 9087 fi 9088 break 9089 fi 9090 done 9091 IFS=$lt_save_ifs 9092 MAGIC_CMD=$lt_save_MAGIC_CMD 9093 ;; 9094esac 9095fi 9096 9097MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9098if test -n "$MAGIC_CMD"; then 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9100$as_echo "$MAGIC_CMD" >&6; } 9101else 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9103$as_echo "no" >&6; } 9104fi 9105 9106 9107 else 9108 MAGIC_CMD=: 9109 fi 9110fi 9111 9112 fi 9113 ;; 9114esac 9115 9116# Use C for the default configuration in the libtool script 9117 9118lt_save_CC=$CC 9119ac_ext=c 9120ac_cpp='$CPP $CPPFLAGS' 9121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9123ac_compiler_gnu=$ac_cv_c_compiler_gnu 9124 9125 9126# Source file extension for C test sources. 9127ac_ext=c 9128 9129# Object file extension for compiled C test sources. 9130objext=o 9131objext=$objext 9132 9133# Code to be used in simple compile tests 9134lt_simple_compile_test_code="int some_variable = 0;" 9135 9136# Code to be used in simple link tests 9137lt_simple_link_test_code='int main(){return(0);}' 9138 9139 9140 9141 9142 9143 9144 9145# If no C compiler was specified, use CC. 9146LTCC=${LTCC-"$CC"} 9147 9148# If no C compiler flags were specified, use CFLAGS. 9149LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9150 9151# Allow CC to be a program name with arguments. 9152compiler=$CC 9153 9154# Save the default compiler, since it gets overwritten when the other 9155# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9156compiler_DEFAULT=$CC 9157 9158# save warnings/boilerplate of simple test code 9159ac_outfile=conftest.$ac_objext 9160echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9161eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9162_lt_compiler_boilerplate=`cat conftest.err` 9163$RM conftest* 9164 9165ac_outfile=conftest.$ac_objext 9166echo "$lt_simple_link_test_code" >conftest.$ac_ext 9167eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9168_lt_linker_boilerplate=`cat conftest.err` 9169$RM -r conftest* 9170 9171 9172## CAVEAT EMPTOR: 9173## There is no encapsulation within the following macros, do not change 9174## the running order or otherwise move them around unless you know exactly 9175## what you are doing... 9176if test -n "$compiler"; then 9177 9178lt_prog_compiler_no_builtin_flag= 9179 9180if test yes = "$GCC"; then 9181 case $cc_basename in 9182 nvcc*) 9183 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9184 *) 9185 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9186 esac 9187 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9189$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9190if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9191 $as_echo_n "(cached) " >&6 9192else 9193 lt_cv_prog_compiler_rtti_exceptions=no 9194 ac_outfile=conftest.$ac_objext 9195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9196 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9197 # Insert the option either (1) after the last *FLAGS variable, or 9198 # (2) before a word containing "conftest.", or (3) at the end. 9199 # Note that $ac_compile itself does not contain backslashes and begins 9200 # with a dollar sign (not a hyphen), so the echo should work correctly. 9201 # The option is referenced via a variable to avoid confusing sed. 9202 lt_compile=`echo "$ac_compile" | $SED \ 9203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9205 -e 's:$: $lt_compiler_flag:'` 9206 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9207 (eval "$lt_compile" 2>conftest.err) 9208 ac_status=$? 9209 cat conftest.err >&5 9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9211 if (exit $ac_status) && test -s "$ac_outfile"; then 9212 # The compiler can only warn and ignore the option if not recognized 9213 # So say no if there are warnings other than the usual output. 9214 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9215 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9216 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9217 lt_cv_prog_compiler_rtti_exceptions=yes 9218 fi 9219 fi 9220 $RM conftest* 9221 9222fi 9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9224$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9225 9226if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9227 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9228else 9229 : 9230fi 9231 9232fi 9233 9234 9235 9236 9237 9238 9239 lt_prog_compiler_wl= 9240lt_prog_compiler_pic= 9241lt_prog_compiler_static= 9242 9243 9244 if test yes = "$GCC"; then 9245 lt_prog_compiler_wl='-Wl,' 9246 lt_prog_compiler_static='-static' 9247 9248 case $host_os in 9249 aix*) 9250 # All AIX code is PIC. 9251 if test ia64 = "$host_cpu"; then 9252 # AIX 5 now supports IA64 processor 9253 lt_prog_compiler_static='-Bstatic' 9254 fi 9255 lt_prog_compiler_pic='-fPIC' 9256 ;; 9257 9258 amigaos*) 9259 case $host_cpu in 9260 powerpc) 9261 # see comment about AmigaOS4 .so support 9262 lt_prog_compiler_pic='-fPIC' 9263 ;; 9264 m68k) 9265 # FIXME: we need at least 68020 code to build shared libraries, but 9266 # adding the '-m68020' flag to GCC prevents building anything better, 9267 # like '-m68040'. 9268 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9269 ;; 9270 esac 9271 ;; 9272 9273 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9274 # PIC is the default for these OSes. 9275 ;; 9276 9277 mingw* | cygwin* | pw32* | os2* | cegcc*) 9278 # This hack is so that the source file can tell whether it is being 9279 # built for inclusion in a dll (and should export symbols for example). 9280 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9281 # (--disable-auto-import) libraries 9282 lt_prog_compiler_pic='-DDLL_EXPORT' 9283 case $host_os in 9284 os2*) 9285 lt_prog_compiler_static='$wl-static' 9286 ;; 9287 esac 9288 ;; 9289 9290 darwin* | rhapsody*) 9291 # PIC is the default on this platform 9292 # Common symbols not allowed in MH_DYLIB files 9293 lt_prog_compiler_pic='-fno-common' 9294 ;; 9295 9296 haiku*) 9297 # PIC is the default for Haiku. 9298 # The "-static" flag exists, but is broken. 9299 lt_prog_compiler_static= 9300 ;; 9301 9302 hpux*) 9303 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9304 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9305 # sets the default TLS model and affects inlining. 9306 case $host_cpu in 9307 hppa*64*) 9308 # +Z the default 9309 ;; 9310 *) 9311 lt_prog_compiler_pic='-fPIC' 9312 ;; 9313 esac 9314 ;; 9315 9316 interix[3-9]*) 9317 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9318 # Instead, we relocate shared libraries at runtime. 9319 ;; 9320 9321 msdosdjgpp*) 9322 # Just because we use GCC doesn't mean we suddenly get shared libraries 9323 # on systems that don't support them. 9324 lt_prog_compiler_can_build_shared=no 9325 enable_shared=no 9326 ;; 9327 9328 *nto* | *qnx*) 9329 # QNX uses GNU C++, but need to define -shared option too, otherwise 9330 # it will coredump. 9331 lt_prog_compiler_pic='-fPIC -shared' 9332 ;; 9333 9334 sysv4*MP*) 9335 if test -d /usr/nec; then 9336 lt_prog_compiler_pic=-Kconform_pic 9337 fi 9338 ;; 9339 9340 *) 9341 lt_prog_compiler_pic='-fPIC' 9342 ;; 9343 esac 9344 9345 case $cc_basename in 9346 nvcc*) # Cuda Compiler Driver 2.2 9347 lt_prog_compiler_wl='-Xlinker ' 9348 if test -n "$lt_prog_compiler_pic"; then 9349 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9350 fi 9351 ;; 9352 esac 9353 else 9354 # PORTME Check for flag to pass linker flags through the system compiler. 9355 case $host_os in 9356 aix*) 9357 lt_prog_compiler_wl='-Wl,' 9358 if test ia64 = "$host_cpu"; then 9359 # AIX 5 now supports IA64 processor 9360 lt_prog_compiler_static='-Bstatic' 9361 else 9362 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9363 fi 9364 ;; 9365 9366 darwin* | rhapsody*) 9367 # PIC is the default on this platform 9368 # Common symbols not allowed in MH_DYLIB files 9369 lt_prog_compiler_pic='-fno-common' 9370 case $cc_basename in 9371 nagfor*) 9372 # NAG Fortran compiler 9373 lt_prog_compiler_wl='-Wl,-Wl,,' 9374 lt_prog_compiler_pic='-PIC' 9375 lt_prog_compiler_static='-Bstatic' 9376 ;; 9377 esac 9378 ;; 9379 9380 mingw* | cygwin* | pw32* | os2* | cegcc*) 9381 # This hack is so that the source file can tell whether it is being 9382 # built for inclusion in a dll (and should export symbols for example). 9383 lt_prog_compiler_pic='-DDLL_EXPORT' 9384 case $host_os in 9385 os2*) 9386 lt_prog_compiler_static='$wl-static' 9387 ;; 9388 esac 9389 ;; 9390 9391 hpux9* | hpux10* | hpux11*) 9392 lt_prog_compiler_wl='-Wl,' 9393 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9394 # not for PA HP-UX. 9395 case $host_cpu in 9396 hppa*64*|ia64*) 9397 # +Z the default 9398 ;; 9399 *) 9400 lt_prog_compiler_pic='+Z' 9401 ;; 9402 esac 9403 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9404 lt_prog_compiler_static='$wl-a ${wl}archive' 9405 ;; 9406 9407 irix5* | irix6* | nonstopux*) 9408 lt_prog_compiler_wl='-Wl,' 9409 # PIC (with -KPIC) is the default. 9410 lt_prog_compiler_static='-non_shared' 9411 ;; 9412 9413 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9414 case $cc_basename in 9415 # old Intel for x86_64, which still supported -KPIC. 9416 ecc*) 9417 lt_prog_compiler_wl='-Wl,' 9418 lt_prog_compiler_pic='-KPIC' 9419 lt_prog_compiler_static='-static' 9420 ;; 9421 # icc used to be incompatible with GCC. 9422 # ICC 10 doesn't accept -KPIC any more. 9423 icc* | ifort*) 9424 lt_prog_compiler_wl='-Wl,' 9425 lt_prog_compiler_pic='-fPIC' 9426 lt_prog_compiler_static='-static' 9427 ;; 9428 # Lahey Fortran 8.1. 9429 lf95*) 9430 lt_prog_compiler_wl='-Wl,' 9431 lt_prog_compiler_pic='--shared' 9432 lt_prog_compiler_static='--static' 9433 ;; 9434 nagfor*) 9435 # NAG Fortran compiler 9436 lt_prog_compiler_wl='-Wl,-Wl,,' 9437 lt_prog_compiler_pic='-PIC' 9438 lt_prog_compiler_static='-Bstatic' 9439 ;; 9440 tcc*) 9441 # Fabrice Bellard et al's Tiny C Compiler 9442 lt_prog_compiler_wl='-Wl,' 9443 lt_prog_compiler_pic='-fPIC' 9444 lt_prog_compiler_static='-static' 9445 ;; 9446 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9447 # Portland Group compilers (*not* the Pentium gcc compiler, 9448 # which looks to be a dead project) 9449 lt_prog_compiler_wl='-Wl,' 9450 lt_prog_compiler_pic='-fpic' 9451 lt_prog_compiler_static='-Bstatic' 9452 ;; 9453 ccc*) 9454 lt_prog_compiler_wl='-Wl,' 9455 # All Alpha code is PIC. 9456 lt_prog_compiler_static='-non_shared' 9457 ;; 9458 xl* | bgxl* | bgf* | mpixl*) 9459 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9460 lt_prog_compiler_wl='-Wl,' 9461 lt_prog_compiler_pic='-qpic' 9462 lt_prog_compiler_static='-qstaticlink' 9463 ;; 9464 *) 9465 case `$CC -V 2>&1 | sed 5q` in 9466 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9467 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9468 lt_prog_compiler_pic='-KPIC' 9469 lt_prog_compiler_static='-Bstatic' 9470 lt_prog_compiler_wl='' 9471 ;; 9472 *Sun\ F* | *Sun*Fortran*) 9473 lt_prog_compiler_pic='-KPIC' 9474 lt_prog_compiler_static='-Bstatic' 9475 lt_prog_compiler_wl='-Qoption ld ' 9476 ;; 9477 *Sun\ C*) 9478 # Sun C 5.9 9479 lt_prog_compiler_pic='-KPIC' 9480 lt_prog_compiler_static='-Bstatic' 9481 lt_prog_compiler_wl='-Wl,' 9482 ;; 9483 *Intel*\ [CF]*Compiler*) 9484 lt_prog_compiler_wl='-Wl,' 9485 lt_prog_compiler_pic='-fPIC' 9486 lt_prog_compiler_static='-static' 9487 ;; 9488 *Portland\ Group*) 9489 lt_prog_compiler_wl='-Wl,' 9490 lt_prog_compiler_pic='-fpic' 9491 lt_prog_compiler_static='-Bstatic' 9492 ;; 9493 esac 9494 ;; 9495 esac 9496 ;; 9497 9498 newsos6) 9499 lt_prog_compiler_pic='-KPIC' 9500 lt_prog_compiler_static='-Bstatic' 9501 ;; 9502 9503 *nto* | *qnx*) 9504 # QNX uses GNU C++, but need to define -shared option too, otherwise 9505 # it will coredump. 9506 lt_prog_compiler_pic='-fPIC -shared' 9507 ;; 9508 9509 osf3* | osf4* | osf5*) 9510 lt_prog_compiler_wl='-Wl,' 9511 # All OSF/1 code is PIC. 9512 lt_prog_compiler_static='-non_shared' 9513 ;; 9514 9515 rdos*) 9516 lt_prog_compiler_static='-non_shared' 9517 ;; 9518 9519 solaris*) 9520 lt_prog_compiler_pic='-KPIC' 9521 lt_prog_compiler_static='-Bstatic' 9522 case $cc_basename in 9523 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9524 lt_prog_compiler_wl='-Qoption ld ';; 9525 *) 9526 lt_prog_compiler_wl='-Wl,';; 9527 esac 9528 ;; 9529 9530 sunos4*) 9531 lt_prog_compiler_wl='-Qoption ld ' 9532 lt_prog_compiler_pic='-PIC' 9533 lt_prog_compiler_static='-Bstatic' 9534 ;; 9535 9536 sysv4 | sysv4.2uw2* | sysv4.3*) 9537 lt_prog_compiler_wl='-Wl,' 9538 lt_prog_compiler_pic='-KPIC' 9539 lt_prog_compiler_static='-Bstatic' 9540 ;; 9541 9542 sysv4*MP*) 9543 if test -d /usr/nec; then 9544 lt_prog_compiler_pic='-Kconform_pic' 9545 lt_prog_compiler_static='-Bstatic' 9546 fi 9547 ;; 9548 9549 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9550 lt_prog_compiler_wl='-Wl,' 9551 lt_prog_compiler_pic='-KPIC' 9552 lt_prog_compiler_static='-Bstatic' 9553 ;; 9554 9555 unicos*) 9556 lt_prog_compiler_wl='-Wl,' 9557 lt_prog_compiler_can_build_shared=no 9558 ;; 9559 9560 uts4*) 9561 lt_prog_compiler_pic='-pic' 9562 lt_prog_compiler_static='-Bstatic' 9563 ;; 9564 9565 *) 9566 lt_prog_compiler_can_build_shared=no 9567 ;; 9568 esac 9569 fi 9570 9571case $host_os in 9572 # For platforms that do not support PIC, -DPIC is meaningless: 9573 *djgpp*) 9574 lt_prog_compiler_pic= 9575 ;; 9576 *) 9577 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9578 ;; 9579esac 9580 9581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9582$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9583if ${lt_cv_prog_compiler_pic+:} false; then : 9584 $as_echo_n "(cached) " >&6 9585else 9586 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9587fi 9588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9589$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9590lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9591 9592# 9593# Check to make sure the PIC flag actually works. 9594# 9595if test -n "$lt_prog_compiler_pic"; then 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9597$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9598if ${lt_cv_prog_compiler_pic_works+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600else 9601 lt_cv_prog_compiler_pic_works=no 9602 ac_outfile=conftest.$ac_objext 9603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9604 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9605 # Insert the option either (1) after the last *FLAGS variable, or 9606 # (2) before a word containing "conftest.", or (3) at the end. 9607 # Note that $ac_compile itself does not contain backslashes and begins 9608 # with a dollar sign (not a hyphen), so the echo should work correctly. 9609 # The option is referenced via a variable to avoid confusing sed. 9610 lt_compile=`echo "$ac_compile" | $SED \ 9611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9613 -e 's:$: $lt_compiler_flag:'` 9614 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9615 (eval "$lt_compile" 2>conftest.err) 9616 ac_status=$? 9617 cat conftest.err >&5 9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9619 if (exit $ac_status) && test -s "$ac_outfile"; then 9620 # The compiler can only warn and ignore the option if not recognized 9621 # So say no if there are warnings other than the usual output. 9622 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9623 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9624 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9625 lt_cv_prog_compiler_pic_works=yes 9626 fi 9627 fi 9628 $RM conftest* 9629 9630fi 9631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9632$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9633 9634if test yes = "$lt_cv_prog_compiler_pic_works"; then 9635 case $lt_prog_compiler_pic in 9636 "" | " "*) ;; 9637 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9638 esac 9639else 9640 lt_prog_compiler_pic= 9641 lt_prog_compiler_can_build_shared=no 9642fi 9643 9644fi 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656# 9657# Check to make sure the static flag actually works. 9658# 9659wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9661$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9662if ${lt_cv_prog_compiler_static_works+:} false; then : 9663 $as_echo_n "(cached) " >&6 9664else 9665 lt_cv_prog_compiler_static_works=no 9666 save_LDFLAGS=$LDFLAGS 9667 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9668 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9669 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9670 # The linker can only warn and ignore the option if not recognized 9671 # So say no if there are warnings 9672 if test -s conftest.err; then 9673 # Append any errors to the config.log. 9674 cat conftest.err 1>&5 9675 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9677 if diff conftest.exp conftest.er2 >/dev/null; then 9678 lt_cv_prog_compiler_static_works=yes 9679 fi 9680 else 9681 lt_cv_prog_compiler_static_works=yes 9682 fi 9683 fi 9684 $RM -r conftest* 9685 LDFLAGS=$save_LDFLAGS 9686 9687fi 9688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9689$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9690 9691if test yes = "$lt_cv_prog_compiler_static_works"; then 9692 : 9693else 9694 lt_prog_compiler_static= 9695fi 9696 9697 9698 9699 9700 9701 9702 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9704$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9705if ${lt_cv_prog_compiler_c_o+:} false; then : 9706 $as_echo_n "(cached) " >&6 9707else 9708 lt_cv_prog_compiler_c_o=no 9709 $RM -r conftest 2>/dev/null 9710 mkdir conftest 9711 cd conftest 9712 mkdir out 9713 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9714 9715 lt_compiler_flag="-o out/conftest2.$ac_objext" 9716 # Insert the option either (1) after the last *FLAGS variable, or 9717 # (2) before a word containing "conftest.", or (3) at the end. 9718 # Note that $ac_compile itself does not contain backslashes and begins 9719 # with a dollar sign (not a hyphen), so the echo should work correctly. 9720 lt_compile=`echo "$ac_compile" | $SED \ 9721 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9723 -e 's:$: $lt_compiler_flag:'` 9724 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9725 (eval "$lt_compile" 2>out/conftest.err) 9726 ac_status=$? 9727 cat out/conftest.err >&5 9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9729 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9730 then 9731 # The compiler can only warn and ignore the option if not recognized 9732 # So say no if there are warnings 9733 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9734 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9735 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9736 lt_cv_prog_compiler_c_o=yes 9737 fi 9738 fi 9739 chmod u+w . 2>&5 9740 $RM conftest* 9741 # SGI C++ compiler will create directory out/ii_files/ for 9742 # template instantiation 9743 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9744 $RM out/* && rmdir out 9745 cd .. 9746 $RM -r conftest 9747 $RM conftest* 9748 9749fi 9750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9751$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9752 9753 9754 9755 9756 9757 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9759$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9760if ${lt_cv_prog_compiler_c_o+:} false; then : 9761 $as_echo_n "(cached) " >&6 9762else 9763 lt_cv_prog_compiler_c_o=no 9764 $RM -r conftest 2>/dev/null 9765 mkdir conftest 9766 cd conftest 9767 mkdir out 9768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9769 9770 lt_compiler_flag="-o out/conftest2.$ac_objext" 9771 # Insert the option either (1) after the last *FLAGS variable, or 9772 # (2) before a word containing "conftest.", or (3) at the end. 9773 # Note that $ac_compile itself does not contain backslashes and begins 9774 # with a dollar sign (not a hyphen), so the echo should work correctly. 9775 lt_compile=`echo "$ac_compile" | $SED \ 9776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9778 -e 's:$: $lt_compiler_flag:'` 9779 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9780 (eval "$lt_compile" 2>out/conftest.err) 9781 ac_status=$? 9782 cat out/conftest.err >&5 9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9784 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9785 then 9786 # The compiler can only warn and ignore the option if not recognized 9787 # So say no if there are warnings 9788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9789 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9790 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9791 lt_cv_prog_compiler_c_o=yes 9792 fi 9793 fi 9794 chmod u+w . 2>&5 9795 $RM conftest* 9796 # SGI C++ compiler will create directory out/ii_files/ for 9797 # template instantiation 9798 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9799 $RM out/* && rmdir out 9800 cd .. 9801 $RM -r conftest 9802 $RM conftest* 9803 9804fi 9805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9806$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9807 9808 9809 9810 9811hard_links=nottested 9812if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9813 # do not overwrite the value of need_locks provided by the user 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9815$as_echo_n "checking if we can lock with hard links... " >&6; } 9816 hard_links=yes 9817 $RM conftest* 9818 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9819 touch conftest.a 9820 ln conftest.a conftest.b 2>&5 || hard_links=no 9821 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9823$as_echo "$hard_links" >&6; } 9824 if test no = "$hard_links"; then 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9826$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9827 need_locks=warn 9828 fi 9829else 9830 need_locks=no 9831fi 9832 9833 9834 9835 9836 9837 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9839$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9840 9841 runpath_var= 9842 allow_undefined_flag= 9843 always_export_symbols=no 9844 archive_cmds= 9845 archive_expsym_cmds= 9846 compiler_needs_object=no 9847 enable_shared_with_static_runtimes=no 9848 export_dynamic_flag_spec= 9849 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9850 hardcode_automatic=no 9851 hardcode_direct=no 9852 hardcode_direct_absolute=no 9853 hardcode_libdir_flag_spec= 9854 hardcode_libdir_separator= 9855 hardcode_minus_L=no 9856 hardcode_shlibpath_var=unsupported 9857 inherit_rpath=no 9858 link_all_deplibs=unknown 9859 module_cmds= 9860 module_expsym_cmds= 9861 old_archive_from_new_cmds= 9862 old_archive_from_expsyms_cmds= 9863 thread_safe_flag_spec= 9864 whole_archive_flag_spec= 9865 # include_expsyms should be a list of space-separated symbols to be *always* 9866 # included in the symbol list 9867 include_expsyms= 9868 # exclude_expsyms can be an extended regexp of symbols to exclude 9869 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9870 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9871 # as well as any symbol that contains 'd'. 9872 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9873 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9874 # platforms (ab)use it in PIC code, but their linkers get confused if 9875 # the symbol is explicitly referenced. Since portable code cannot 9876 # rely on this symbol name, it's probably fine to never include it in 9877 # preloaded symbol tables. 9878 # Exclude shared library initialization/finalization symbols. 9879 extract_expsyms_cmds= 9880 9881 case $host_os in 9882 cygwin* | mingw* | pw32* | cegcc*) 9883 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9884 # When not using gcc, we currently assume that we are using 9885 # Microsoft Visual C++. 9886 if test yes != "$GCC"; then 9887 with_gnu_ld=no 9888 fi 9889 ;; 9890 interix*) 9891 # we just hope/assume this is gcc and not c89 (= MSVC++) 9892 with_gnu_ld=yes 9893 ;; 9894 openbsd* | bitrig*) 9895 with_gnu_ld=no 9896 ;; 9897 esac 9898 9899 ld_shlibs=yes 9900 9901 # On some targets, GNU ld is compatible enough with the native linker 9902 # that we're better off using the native interface for both. 9903 lt_use_gnu_ld_interface=no 9904 if test yes = "$with_gnu_ld"; then 9905 case $host_os in 9906 aix*) 9907 # The AIX port of GNU ld has always aspired to compatibility 9908 # with the native linker. However, as the warning in the GNU ld 9909 # block says, versions before 2.19.5* couldn't really create working 9910 # shared libraries, regardless of the interface used. 9911 case `$LD -v 2>&1` in 9912 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9913 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9914 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9915 *) 9916 lt_use_gnu_ld_interface=yes 9917 ;; 9918 esac 9919 ;; 9920 *) 9921 lt_use_gnu_ld_interface=yes 9922 ;; 9923 esac 9924 fi 9925 9926 if test yes = "$lt_use_gnu_ld_interface"; then 9927 # If archive_cmds runs LD, not CC, wlarc should be empty 9928 wlarc='$wl' 9929 9930 # Set some defaults for GNU ld with shared library support. These 9931 # are reset later if shared libraries are not supported. Putting them 9932 # here allows them to be overridden if necessary. 9933 runpath_var=LD_RUN_PATH 9934 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9935 export_dynamic_flag_spec='$wl--export-dynamic' 9936 # ancient GNU ld didn't support --whole-archive et. al. 9937 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9938 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9939 else 9940 whole_archive_flag_spec= 9941 fi 9942 supports_anon_versioning=no 9943 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9944 *GNU\ gold*) supports_anon_versioning=yes ;; 9945 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9946 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9947 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9948 *\ 2.11.*) ;; # other 2.11 versions 9949 *) supports_anon_versioning=yes ;; 9950 esac 9951 9952 # See if GNU ld supports shared libraries. 9953 case $host_os in 9954 aix[3-9]*) 9955 # On AIX/PPC, the GNU linker is very broken 9956 if test ia64 != "$host_cpu"; then 9957 ld_shlibs=no 9958 cat <<_LT_EOF 1>&2 9959 9960*** Warning: the GNU linker, at least up to release 2.19, is reported 9961*** to be unable to reliably create shared libraries on AIX. 9962*** Therefore, libtool is disabling shared libraries support. If you 9963*** really care for shared libraries, you may want to install binutils 9964*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9965*** You will then need to restart the configuration process. 9966 9967_LT_EOF 9968 fi 9969 ;; 9970 9971 amigaos*) 9972 case $host_cpu in 9973 powerpc) 9974 # see comment about AmigaOS4 .so support 9975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9976 archive_expsym_cmds='' 9977 ;; 9978 m68k) 9979 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)' 9980 hardcode_libdir_flag_spec='-L$libdir' 9981 hardcode_minus_L=yes 9982 ;; 9983 esac 9984 ;; 9985 9986 beos*) 9987 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9988 allow_undefined_flag=unsupported 9989 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9990 # support --undefined. This deserves some investigation. FIXME 9991 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9992 else 9993 ld_shlibs=no 9994 fi 9995 ;; 9996 9997 cygwin* | mingw* | pw32* | cegcc*) 9998 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9999 # as there is no search path for DLLs. 10000 hardcode_libdir_flag_spec='-L$libdir' 10001 export_dynamic_flag_spec='$wl--export-all-symbols' 10002 allow_undefined_flag=unsupported 10003 always_export_symbols=no 10004 enable_shared_with_static_runtimes=yes 10005 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' 10006 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10007 10008 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10009 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10010 # If the export-symbols file already is a .def file, use it as 10011 # is; otherwise, prepend EXPORTS... 10012 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10013 cp $export_symbols $output_objdir/$soname.def; 10014 else 10015 echo EXPORTS > $output_objdir/$soname.def; 10016 cat $export_symbols >> $output_objdir/$soname.def; 10017 fi~ 10018 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10019 else 10020 ld_shlibs=no 10021 fi 10022 ;; 10023 10024 haiku*) 10025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10026 link_all_deplibs=yes 10027 ;; 10028 10029 os2*) 10030 hardcode_libdir_flag_spec='-L$libdir' 10031 hardcode_minus_L=yes 10032 allow_undefined_flag=unsupported 10033 shrext_cmds=.dll 10034 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10035 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10036 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10037 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10038 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10039 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10040 emximp -o $lib $output_objdir/$libname.def' 10041 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10042 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10043 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10044 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10045 prefix_cmds="$SED"~ 10046 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10047 prefix_cmds="$prefix_cmds -e 1d"; 10048 fi~ 10049 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10050 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10051 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10052 emximp -o $lib $output_objdir/$libname.def' 10053 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10054 enable_shared_with_static_runtimes=yes 10055 ;; 10056 10057 interix[3-9]*) 10058 hardcode_direct=no 10059 hardcode_shlibpath_var=no 10060 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10061 export_dynamic_flag_spec='$wl-E' 10062 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10063 # Instead, shared libraries are loaded at an image base (0x10000000 by 10064 # default) and relocated if they conflict, which is a slow very memory 10065 # consuming and fragmenting process. To avoid this, we pick a random, 10066 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10067 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10068 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10069 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' 10070 ;; 10071 10072 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10073 tmp_diet=no 10074 if test linux-dietlibc = "$host_os"; then 10075 case $cc_basename in 10076 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10077 esac 10078 fi 10079 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10080 && test no = "$tmp_diet" 10081 then 10082 tmp_addflag=' $pic_flag' 10083 tmp_sharedflag='-shared' 10084 case $cc_basename,$host_cpu in 10085 pgcc*) # Portland Group C compiler 10086 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' 10087 tmp_addflag=' $pic_flag' 10088 ;; 10089 pgf77* | pgf90* | pgf95* | pgfortran*) 10090 # Portland Group f77 and f90 compilers 10091 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' 10092 tmp_addflag=' $pic_flag -Mnomain' ;; 10093 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10094 tmp_addflag=' -i_dynamic' ;; 10095 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10096 tmp_addflag=' -i_dynamic -nofor_main' ;; 10097 ifc* | ifort*) # Intel Fortran compiler 10098 tmp_addflag=' -nofor_main' ;; 10099 lf95*) # Lahey Fortran 8.1 10100 whole_archive_flag_spec= 10101 tmp_sharedflag='--shared' ;; 10102 nagfor*) # NAGFOR 5.3 10103 tmp_sharedflag='-Wl,-shared' ;; 10104 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10105 tmp_sharedflag='-qmkshrobj' 10106 tmp_addflag= ;; 10107 nvcc*) # Cuda Compiler Driver 2.2 10108 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' 10109 compiler_needs_object=yes 10110 ;; 10111 esac 10112 case `$CC -V 2>&1 | sed 5q` in 10113 *Sun\ C*) # Sun C 5.9 10114 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' 10115 compiler_needs_object=yes 10116 tmp_sharedflag='-G' ;; 10117 *Sun\ F*) # Sun Fortran 8.3 10118 tmp_sharedflag='-G' ;; 10119 esac 10120 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10121 10122 if test yes = "$supports_anon_versioning"; then 10123 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10124 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10125 echo "local: *; };" >> $output_objdir/$libname.ver~ 10126 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10127 fi 10128 10129 case $cc_basename in 10130 tcc*) 10131 export_dynamic_flag_spec='-rdynamic' 10132 ;; 10133 xlf* | bgf* | bgxlf* | mpixlf*) 10134 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10135 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10136 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10137 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10138 if test yes = "$supports_anon_versioning"; then 10139 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10141 echo "local: *; };" >> $output_objdir/$libname.ver~ 10142 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10143 fi 10144 ;; 10145 esac 10146 else 10147 ld_shlibs=no 10148 fi 10149 ;; 10150 10151 netbsd*) 10152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10153 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10154 wlarc= 10155 else 10156 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10157 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10158 fi 10159 ;; 10160 10161 solaris*) 10162 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10163 ld_shlibs=no 10164 cat <<_LT_EOF 1>&2 10165 10166*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10167*** create shared libraries on Solaris systems. Therefore, libtool 10168*** is disabling shared libraries support. We urge you to upgrade GNU 10169*** binutils to release 2.9.1 or newer. Another option is to modify 10170*** your PATH or compiler configuration so that the native linker is 10171*** used, and then restart. 10172 10173_LT_EOF 10174 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10176 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10177 else 10178 ld_shlibs=no 10179 fi 10180 ;; 10181 10182 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10183 case `$LD -v 2>&1` in 10184 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10185 ld_shlibs=no 10186 cat <<_LT_EOF 1>&2 10187 10188*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10189*** reliably create shared libraries on SCO systems. Therefore, libtool 10190*** is disabling shared libraries support. We urge you to upgrade GNU 10191*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10192*** your PATH or compiler configuration so that the native linker is 10193*** used, and then restart. 10194 10195_LT_EOF 10196 ;; 10197 *) 10198 # For security reasons, it is highly recommended that you always 10199 # use absolute paths for naming shared libraries, and exclude the 10200 # DT_RUNPATH tag from executables and libraries. But doing so 10201 # requires that you compile everything twice, which is a pain. 10202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10203 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10206 else 10207 ld_shlibs=no 10208 fi 10209 ;; 10210 esac 10211 ;; 10212 10213 sunos4*) 10214 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10215 wlarc= 10216 hardcode_direct=yes 10217 hardcode_shlibpath_var=no 10218 ;; 10219 10220 *) 10221 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10222 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10223 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10224 else 10225 ld_shlibs=no 10226 fi 10227 ;; 10228 esac 10229 10230 if test no = "$ld_shlibs"; then 10231 runpath_var= 10232 hardcode_libdir_flag_spec= 10233 export_dynamic_flag_spec= 10234 whole_archive_flag_spec= 10235 fi 10236 else 10237 # PORTME fill in a description of your system's linker (not GNU ld) 10238 case $host_os in 10239 aix3*) 10240 allow_undefined_flag=unsupported 10241 always_export_symbols=yes 10242 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' 10243 # Note: this linker hardcodes the directories in LIBPATH if there 10244 # are no directories specified by -L. 10245 hardcode_minus_L=yes 10246 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10247 # Neither direct hardcoding nor static linking is supported with a 10248 # broken collect2. 10249 hardcode_direct=unsupported 10250 fi 10251 ;; 10252 10253 aix[4-9]*) 10254 if test ia64 = "$host_cpu"; then 10255 # On IA64, the linker does run time linking by default, so we don't 10256 # have to do anything special. 10257 aix_use_runtimelinking=no 10258 exp_sym_flag='-Bexport' 10259 no_entry_flag= 10260 else 10261 # If we're using GNU nm, then we don't want the "-C" option. 10262 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10263 # Without the "-l" option, or with the "-B" option, AIX nm treats 10264 # weak defined symbols like other global defined symbols, whereas 10265 # GNU nm marks them as "W". 10266 # While the 'weak' keyword is ignored in the Export File, we need 10267 # it in the Import File for the 'aix-soname' feature, so we have 10268 # to replace the "-B" option with "-P" for AIX nm. 10269 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10270 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' 10271 else 10272 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 == "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' 10273 fi 10274 aix_use_runtimelinking=no 10275 10276 # Test if we are trying to use run time linking or normal 10277 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10278 # have runtime linking enabled, and use it for executables. 10279 # For shared libraries, we enable/disable runtime linking 10280 # depending on the kind of the shared library created - 10281 # when "with_aix_soname,aix_use_runtimelinking" is: 10282 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10283 # "aix,yes" lib.so shared, rtl:yes, for executables 10284 # lib.a static archive 10285 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10286 # lib.a(lib.so.V) shared, rtl:no, for executables 10287 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10288 # lib.a(lib.so.V) shared, rtl:no 10289 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10290 # lib.a static archive 10291 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10292 for ld_flag in $LDFLAGS; do 10293 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10294 aix_use_runtimelinking=yes 10295 break 10296 fi 10297 done 10298 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10299 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10300 # so we don't have lib.a shared libs to link our executables. 10301 # We have to force runtime linking in this case. 10302 aix_use_runtimelinking=yes 10303 LDFLAGS="$LDFLAGS -Wl,-brtl" 10304 fi 10305 ;; 10306 esac 10307 10308 exp_sym_flag='-bexport' 10309 no_entry_flag='-bnoentry' 10310 fi 10311 10312 # When large executables or shared objects are built, AIX ld can 10313 # have problems creating the table of contents. If linking a library 10314 # or program results in "error TOC overflow" add -mminimal-toc to 10315 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10316 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10317 10318 archive_cmds='' 10319 hardcode_direct=yes 10320 hardcode_direct_absolute=yes 10321 hardcode_libdir_separator=':' 10322 link_all_deplibs=yes 10323 file_list_spec='$wl-f,' 10324 case $with_aix_soname,$aix_use_runtimelinking in 10325 aix,*) ;; # traditional, no import file 10326 svr4,* | *,yes) # use import file 10327 # The Import File defines what to hardcode. 10328 hardcode_direct=no 10329 hardcode_direct_absolute=no 10330 ;; 10331 esac 10332 10333 if test yes = "$GCC"; then 10334 case $host_os in aix4.[012]|aix4.[012].*) 10335 # We only want to do this on AIX 4.2 and lower, the check 10336 # below for broken collect2 doesn't work under 4.3+ 10337 collect2name=`$CC -print-prog-name=collect2` 10338 if test -f "$collect2name" && 10339 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10340 then 10341 # We have reworked collect2 10342 : 10343 else 10344 # We have old collect2 10345 hardcode_direct=unsupported 10346 # It fails to find uninstalled libraries when the uninstalled 10347 # path is not listed in the libpath. Setting hardcode_minus_L 10348 # to unsupported forces relinking 10349 hardcode_minus_L=yes 10350 hardcode_libdir_flag_spec='-L$libdir' 10351 hardcode_libdir_separator= 10352 fi 10353 ;; 10354 esac 10355 shared_flag='-shared' 10356 if test yes = "$aix_use_runtimelinking"; then 10357 shared_flag="$shared_flag "'$wl-G' 10358 fi 10359 # Need to ensure runtime linking is disabled for the traditional 10360 # shared library, or the linker may eventually find shared libraries 10361 # /with/ Import File - we do not want to mix them. 10362 shared_flag_aix='-shared' 10363 shared_flag_svr4='-shared $wl-G' 10364 else 10365 # not using gcc 10366 if test ia64 = "$host_cpu"; then 10367 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10368 # chokes on -Wl,-G. The following line is correct: 10369 shared_flag='-G' 10370 else 10371 if test yes = "$aix_use_runtimelinking"; then 10372 shared_flag='$wl-G' 10373 else 10374 shared_flag='$wl-bM:SRE' 10375 fi 10376 shared_flag_aix='$wl-bM:SRE' 10377 shared_flag_svr4='$wl-G' 10378 fi 10379 fi 10380 10381 export_dynamic_flag_spec='$wl-bexpall' 10382 # It seems that -bexpall does not export symbols beginning with 10383 # underscore (_), so it is better to generate a list of symbols to export. 10384 always_export_symbols=yes 10385 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10386 # Warning - without using the other runtime loading flags (-brtl), 10387 # -berok will link without error, but may produce a broken library. 10388 allow_undefined_flag='-berok' 10389 # Determine the default libpath from the value encoded in an 10390 # empty executable. 10391 if test set = "${lt_cv_aix_libpath+set}"; then 10392 aix_libpath=$lt_cv_aix_libpath 10393else 10394 if ${lt_cv_aix_libpath_+:} false; then : 10395 $as_echo_n "(cached) " >&6 10396else 10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10398/* end confdefs.h. */ 10399 10400int 10401main () 10402{ 10403 10404 ; 10405 return 0; 10406} 10407_ACEOF 10408if ac_fn_c_try_link "$LINENO"; then : 10409 10410 lt_aix_libpath_sed=' 10411 /Import File Strings/,/^$/ { 10412 /^0/ { 10413 s/^0 *\([^ ]*\) *$/\1/ 10414 p 10415 } 10416 }' 10417 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10418 # Check for a 64-bit object if we didn't find anything. 10419 if test -z "$lt_cv_aix_libpath_"; then 10420 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10421 fi 10422fi 10423rm -f core conftest.err conftest.$ac_objext \ 10424 conftest$ac_exeext conftest.$ac_ext 10425 if test -z "$lt_cv_aix_libpath_"; then 10426 lt_cv_aix_libpath_=/usr/lib:/lib 10427 fi 10428 10429fi 10430 10431 aix_libpath=$lt_cv_aix_libpath_ 10432fi 10433 10434 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10435 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 10436 else 10437 if test ia64 = "$host_cpu"; then 10438 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10439 allow_undefined_flag="-z nodefs" 10440 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" 10441 else 10442 # Determine the default libpath from the value encoded in an 10443 # empty executable. 10444 if test set = "${lt_cv_aix_libpath+set}"; then 10445 aix_libpath=$lt_cv_aix_libpath 10446else 10447 if ${lt_cv_aix_libpath_+:} false; then : 10448 $as_echo_n "(cached) " >&6 10449else 10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10451/* end confdefs.h. */ 10452 10453int 10454main () 10455{ 10456 10457 ; 10458 return 0; 10459} 10460_ACEOF 10461if ac_fn_c_try_link "$LINENO"; then : 10462 10463 lt_aix_libpath_sed=' 10464 /Import File Strings/,/^$/ { 10465 /^0/ { 10466 s/^0 *\([^ ]*\) *$/\1/ 10467 p 10468 } 10469 }' 10470 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10471 # Check for a 64-bit object if we didn't find anything. 10472 if test -z "$lt_cv_aix_libpath_"; then 10473 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10474 fi 10475fi 10476rm -f core conftest.err conftest.$ac_objext \ 10477 conftest$ac_exeext conftest.$ac_ext 10478 if test -z "$lt_cv_aix_libpath_"; then 10479 lt_cv_aix_libpath_=/usr/lib:/lib 10480 fi 10481 10482fi 10483 10484 aix_libpath=$lt_cv_aix_libpath_ 10485fi 10486 10487 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10488 # Warning - without using the other run time loading flags, 10489 # -berok will link without error, but may produce a broken library. 10490 no_undefined_flag=' $wl-bernotok' 10491 allow_undefined_flag=' $wl-berok' 10492 if test yes = "$with_gnu_ld"; then 10493 # We only use this code for GNU lds that support --whole-archive. 10494 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10495 else 10496 # Exported symbols can be pulled into shared objects from archives 10497 whole_archive_flag_spec='$convenience' 10498 fi 10499 archive_cmds_need_lc=yes 10500 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10501 # -brtl affects multiple linker settings, -berok does not and is overridden later 10502 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10503 if test svr4 != "$with_aix_soname"; then 10504 # This is similar to how AIX traditionally builds its shared libraries. 10505 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' 10506 fi 10507 if test aix != "$with_aix_soname"; then 10508 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' 10509 else 10510 # used by -dlpreopen to get the symbols 10511 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10512 fi 10513 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10514 fi 10515 fi 10516 ;; 10517 10518 amigaos*) 10519 case $host_cpu in 10520 powerpc) 10521 # see comment about AmigaOS4 .so support 10522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10523 archive_expsym_cmds='' 10524 ;; 10525 m68k) 10526 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)' 10527 hardcode_libdir_flag_spec='-L$libdir' 10528 hardcode_minus_L=yes 10529 ;; 10530 esac 10531 ;; 10532 10533 bsdi[45]*) 10534 export_dynamic_flag_spec=-rdynamic 10535 ;; 10536 10537 cygwin* | mingw* | pw32* | cegcc*) 10538 # When not using gcc, we currently assume that we are using 10539 # Microsoft Visual C++. 10540 # hardcode_libdir_flag_spec is actually meaningless, as there is 10541 # no search path for DLLs. 10542 case $cc_basename in 10543 cl*) 10544 # Native MSVC 10545 hardcode_libdir_flag_spec=' ' 10546 allow_undefined_flag=unsupported 10547 always_export_symbols=yes 10548 file_list_spec='@' 10549 # Tell ltmain to make .lib files, not .a files. 10550 libext=lib 10551 # Tell ltmain to make .dll files, not .so files. 10552 shrext_cmds=.dll 10553 # FIXME: Setting linknames here is a bad hack. 10554 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10555 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10556 cp "$export_symbols" "$output_objdir/$soname.def"; 10557 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10558 else 10559 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10560 fi~ 10561 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10562 linknames=' 10563 # The linker will not automatically build a static lib if we build a DLL. 10564 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10565 enable_shared_with_static_runtimes=yes 10566 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10567 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10568 # Don't use ranlib 10569 old_postinstall_cmds='chmod 644 $oldlib' 10570 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10571 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10572 case $lt_outputfile in 10573 *.exe|*.EXE) ;; 10574 *) 10575 lt_outputfile=$lt_outputfile.exe 10576 lt_tool_outputfile=$lt_tool_outputfile.exe 10577 ;; 10578 esac~ 10579 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10580 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10581 $RM "$lt_outputfile.manifest"; 10582 fi' 10583 ;; 10584 *) 10585 # Assume MSVC wrapper 10586 hardcode_libdir_flag_spec=' ' 10587 allow_undefined_flag=unsupported 10588 # Tell ltmain to make .lib files, not .a files. 10589 libext=lib 10590 # Tell ltmain to make .dll files, not .so files. 10591 shrext_cmds=.dll 10592 # FIXME: Setting linknames here is a bad hack. 10593 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10594 # The linker will automatically build a .lib file if we build a DLL. 10595 old_archive_from_new_cmds='true' 10596 # FIXME: Should let the user specify the lib program. 10597 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10598 enable_shared_with_static_runtimes=yes 10599 ;; 10600 esac 10601 ;; 10602 10603 darwin* | rhapsody*) 10604 10605 10606 archive_cmds_need_lc=no 10607 hardcode_direct=no 10608 hardcode_automatic=yes 10609 hardcode_shlibpath_var=unsupported 10610 if test yes = "$lt_cv_ld_force_load"; then 10611 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\"`' 10612 10613 else 10614 whole_archive_flag_spec='' 10615 fi 10616 link_all_deplibs=yes 10617 allow_undefined_flag=$_lt_dar_allow_undefined 10618 case $cc_basename in 10619 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10620 *) _lt_dar_can_shared=$GCC ;; 10621 esac 10622 if test yes = "$_lt_dar_can_shared"; then 10623 output_verbose_link_cmd=func_echo_all 10624 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10625 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10626 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" 10627 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" 10628 10629 else 10630 ld_shlibs=no 10631 fi 10632 10633 ;; 10634 10635 dgux*) 10636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10637 hardcode_libdir_flag_spec='-L$libdir' 10638 hardcode_shlibpath_var=no 10639 ;; 10640 10641 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10642 # support. Future versions do this automatically, but an explicit c++rt0.o 10643 # does not break anything, and helps significantly (at the cost of a little 10644 # extra space). 10645 freebsd2.2*) 10646 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10647 hardcode_libdir_flag_spec='-R$libdir' 10648 hardcode_direct=yes 10649 hardcode_shlibpath_var=no 10650 ;; 10651 10652 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10653 freebsd2.*) 10654 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10655 hardcode_direct=yes 10656 hardcode_minus_L=yes 10657 hardcode_shlibpath_var=no 10658 ;; 10659 10660 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10661 freebsd* | dragonfly*) 10662 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10663 hardcode_libdir_flag_spec='-R$libdir' 10664 hardcode_direct=yes 10665 hardcode_shlibpath_var=no 10666 ;; 10667 10668 hpux9*) 10669 if test yes = "$GCC"; then 10670 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' 10671 else 10672 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' 10673 fi 10674 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10675 hardcode_libdir_separator=: 10676 hardcode_direct=yes 10677 10678 # hardcode_minus_L: Not really in the search PATH, 10679 # but as the default location of the library. 10680 hardcode_minus_L=yes 10681 export_dynamic_flag_spec='$wl-E' 10682 ;; 10683 10684 hpux10*) 10685 if test yes,no = "$GCC,$with_gnu_ld"; then 10686 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10687 else 10688 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10689 fi 10690 if test no = "$with_gnu_ld"; then 10691 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10692 hardcode_libdir_separator=: 10693 hardcode_direct=yes 10694 hardcode_direct_absolute=yes 10695 export_dynamic_flag_spec='$wl-E' 10696 # hardcode_minus_L: Not really in the search PATH, 10697 # but as the default location of the library. 10698 hardcode_minus_L=yes 10699 fi 10700 ;; 10701 10702 hpux11*) 10703 if test yes,no = "$GCC,$with_gnu_ld"; then 10704 case $host_cpu in 10705 hppa*64*) 10706 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10707 ;; 10708 ia64*) 10709 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10710 ;; 10711 *) 10712 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10713 ;; 10714 esac 10715 else 10716 case $host_cpu in 10717 hppa*64*) 10718 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10719 ;; 10720 ia64*) 10721 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10722 ;; 10723 *) 10724 10725 # Older versions of the 11.00 compiler do not understand -b yet 10726 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10728$as_echo_n "checking if $CC understands -b... " >&6; } 10729if ${lt_cv_prog_compiler__b+:} false; then : 10730 $as_echo_n "(cached) " >&6 10731else 10732 lt_cv_prog_compiler__b=no 10733 save_LDFLAGS=$LDFLAGS 10734 LDFLAGS="$LDFLAGS -b" 10735 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10736 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10737 # The linker can only warn and ignore the option if not recognized 10738 # So say no if there are warnings 10739 if test -s conftest.err; then 10740 # Append any errors to the config.log. 10741 cat conftest.err 1>&5 10742 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10744 if diff conftest.exp conftest.er2 >/dev/null; then 10745 lt_cv_prog_compiler__b=yes 10746 fi 10747 else 10748 lt_cv_prog_compiler__b=yes 10749 fi 10750 fi 10751 $RM -r conftest* 10752 LDFLAGS=$save_LDFLAGS 10753 10754fi 10755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10756$as_echo "$lt_cv_prog_compiler__b" >&6; } 10757 10758if test yes = "$lt_cv_prog_compiler__b"; then 10759 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10760else 10761 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10762fi 10763 10764 ;; 10765 esac 10766 fi 10767 if test no = "$with_gnu_ld"; then 10768 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10769 hardcode_libdir_separator=: 10770 10771 case $host_cpu in 10772 hppa*64*|ia64*) 10773 hardcode_direct=no 10774 hardcode_shlibpath_var=no 10775 ;; 10776 *) 10777 hardcode_direct=yes 10778 hardcode_direct_absolute=yes 10779 export_dynamic_flag_spec='$wl-E' 10780 10781 # hardcode_minus_L: Not really in the search PATH, 10782 # but as the default location of the library. 10783 hardcode_minus_L=yes 10784 ;; 10785 esac 10786 fi 10787 ;; 10788 10789 irix5* | irix6* | nonstopux*) 10790 if test yes = "$GCC"; then 10791 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' 10792 # Try to use the -exported_symbol ld option, if it does not 10793 # work, assume that -exports_file does not work either and 10794 # implicitly export all symbols. 10795 # This should be the same for all languages, so no per-tag cache variable. 10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10797$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10798if ${lt_cv_irix_exported_symbol+:} false; then : 10799 $as_echo_n "(cached) " >&6 10800else 10801 save_LDFLAGS=$LDFLAGS 10802 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10804/* end confdefs.h. */ 10805int foo (void) { return 0; } 10806_ACEOF 10807if ac_fn_c_try_link "$LINENO"; then : 10808 lt_cv_irix_exported_symbol=yes 10809else 10810 lt_cv_irix_exported_symbol=no 10811fi 10812rm -f core conftest.err conftest.$ac_objext \ 10813 conftest$ac_exeext conftest.$ac_ext 10814 LDFLAGS=$save_LDFLAGS 10815fi 10816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10817$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10818 if test yes = "$lt_cv_irix_exported_symbol"; then 10819 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' 10820 fi 10821 else 10822 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' 10823 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' 10824 fi 10825 archive_cmds_need_lc='no' 10826 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10827 hardcode_libdir_separator=: 10828 inherit_rpath=yes 10829 link_all_deplibs=yes 10830 ;; 10831 10832 linux*) 10833 case $cc_basename in 10834 tcc*) 10835 # Fabrice Bellard et al's Tiny C Compiler 10836 ld_shlibs=yes 10837 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10838 ;; 10839 esac 10840 ;; 10841 10842 netbsd*) 10843 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10844 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10845 else 10846 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10847 fi 10848 hardcode_libdir_flag_spec='-R$libdir' 10849 hardcode_direct=yes 10850 hardcode_shlibpath_var=no 10851 ;; 10852 10853 newsos6) 10854 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10855 hardcode_direct=yes 10856 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10857 hardcode_libdir_separator=: 10858 hardcode_shlibpath_var=no 10859 ;; 10860 10861 *nto* | *qnx*) 10862 ;; 10863 10864 openbsd* | bitrig*) 10865 if test -f /usr/libexec/ld.so; then 10866 hardcode_direct=yes 10867 hardcode_shlibpath_var=no 10868 hardcode_direct_absolute=yes 10869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10870 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10871 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10872 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10873 export_dynamic_flag_spec='$wl-E' 10874 else 10875 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10876 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10877 fi 10878 else 10879 ld_shlibs=no 10880 fi 10881 ;; 10882 10883 os2*) 10884 hardcode_libdir_flag_spec='-L$libdir' 10885 hardcode_minus_L=yes 10886 allow_undefined_flag=unsupported 10887 shrext_cmds=.dll 10888 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10889 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10890 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10891 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10892 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10893 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10894 emximp -o $lib $output_objdir/$libname.def' 10895 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10896 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10897 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10898 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10899 prefix_cmds="$SED"~ 10900 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10901 prefix_cmds="$prefix_cmds -e 1d"; 10902 fi~ 10903 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10904 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10905 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10906 emximp -o $lib $output_objdir/$libname.def' 10907 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10908 enable_shared_with_static_runtimes=yes 10909 ;; 10910 10911 osf3*) 10912 if test yes = "$GCC"; then 10913 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10914 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' 10915 else 10916 allow_undefined_flag=' -expect_unresolved \*' 10917 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' 10918 fi 10919 archive_cmds_need_lc='no' 10920 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10921 hardcode_libdir_separator=: 10922 ;; 10923 10924 osf4* | osf5*) # as osf3* with the addition of -msym flag 10925 if test yes = "$GCC"; then 10926 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10927 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' 10928 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10929 else 10930 allow_undefined_flag=' -expect_unresolved \*' 10931 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' 10932 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~ 10933 $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' 10934 10935 # Both c and cxx compiler support -rpath directly 10936 hardcode_libdir_flag_spec='-rpath $libdir' 10937 fi 10938 archive_cmds_need_lc='no' 10939 hardcode_libdir_separator=: 10940 ;; 10941 10942 solaris*) 10943 no_undefined_flag=' -z defs' 10944 if test yes = "$GCC"; then 10945 wlarc='$wl' 10946 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10948 $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' 10949 else 10950 case `$CC -V 2>&1` in 10951 *"Compilers 5.0"*) 10952 wlarc='' 10953 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10954 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10955 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10956 ;; 10957 *) 10958 wlarc='$wl' 10959 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10960 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10961 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10962 ;; 10963 esac 10964 fi 10965 hardcode_libdir_flag_spec='-R$libdir' 10966 hardcode_shlibpath_var=no 10967 case $host_os in 10968 solaris2.[0-5] | solaris2.[0-5].*) ;; 10969 *) 10970 # The compiler driver will combine and reorder linker options, 10971 # but understands '-z linker_flag'. GCC discards it without '$wl', 10972 # but is careful enough not to reorder. 10973 # Supported since Solaris 2.6 (maybe 2.5.1?) 10974 if test yes = "$GCC"; then 10975 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10976 else 10977 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10978 fi 10979 ;; 10980 esac 10981 link_all_deplibs=yes 10982 ;; 10983 10984 sunos4*) 10985 if test sequent = "$host_vendor"; then 10986 # Use $CC to link under sequent, because it throws in some extra .o 10987 # files that make .init and .fini sections work. 10988 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10989 else 10990 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10991 fi 10992 hardcode_libdir_flag_spec='-L$libdir' 10993 hardcode_direct=yes 10994 hardcode_minus_L=yes 10995 hardcode_shlibpath_var=no 10996 ;; 10997 10998 sysv4) 10999 case $host_vendor in 11000 sni) 11001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11002 hardcode_direct=yes # is this really true??? 11003 ;; 11004 siemens) 11005 ## LD is ld it makes a PLAMLIB 11006 ## CC just makes a GrossModule. 11007 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11008 reload_cmds='$CC -r -o $output$reload_objs' 11009 hardcode_direct=no 11010 ;; 11011 motorola) 11012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11013 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11014 ;; 11015 esac 11016 runpath_var='LD_RUN_PATH' 11017 hardcode_shlibpath_var=no 11018 ;; 11019 11020 sysv4.3*) 11021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11022 hardcode_shlibpath_var=no 11023 export_dynamic_flag_spec='-Bexport' 11024 ;; 11025 11026 sysv4*MP*) 11027 if test -d /usr/nec; then 11028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11029 hardcode_shlibpath_var=no 11030 runpath_var=LD_RUN_PATH 11031 hardcode_runpath_var=yes 11032 ld_shlibs=yes 11033 fi 11034 ;; 11035 11036 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11037 no_undefined_flag='$wl-z,text' 11038 archive_cmds_need_lc=no 11039 hardcode_shlibpath_var=no 11040 runpath_var='LD_RUN_PATH' 11041 11042 if test yes = "$GCC"; then 11043 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11044 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11045 else 11046 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11047 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11048 fi 11049 ;; 11050 11051 sysv5* | sco3.2v5* | sco5v6*) 11052 # Note: We CANNOT use -z defs as we might desire, because we do not 11053 # link with -lc, and that would cause any symbols used from libc to 11054 # always be unresolved, which means just about no library would 11055 # ever link correctly. If we're not using GNU ld we use -z text 11056 # though, which does catch some bad symbols but isn't as heavy-handed 11057 # as -z defs. 11058 no_undefined_flag='$wl-z,text' 11059 allow_undefined_flag='$wl-z,nodefs' 11060 archive_cmds_need_lc=no 11061 hardcode_shlibpath_var=no 11062 hardcode_libdir_flag_spec='$wl-R,$libdir' 11063 hardcode_libdir_separator=':' 11064 link_all_deplibs=yes 11065 export_dynamic_flag_spec='$wl-Bexport' 11066 runpath_var='LD_RUN_PATH' 11067 11068 if test yes = "$GCC"; then 11069 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11070 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11071 else 11072 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11073 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11074 fi 11075 ;; 11076 11077 uts4*) 11078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11079 hardcode_libdir_flag_spec='-L$libdir' 11080 hardcode_shlibpath_var=no 11081 ;; 11082 11083 *) 11084 ld_shlibs=no 11085 ;; 11086 esac 11087 11088 if test sni = "$host_vendor"; then 11089 case $host in 11090 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11091 export_dynamic_flag_spec='$wl-Blargedynsym' 11092 ;; 11093 esac 11094 fi 11095 fi 11096 11097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11098$as_echo "$ld_shlibs" >&6; } 11099test no = "$ld_shlibs" && can_build_shared=no 11100 11101with_gnu_ld=$with_gnu_ld 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117# 11118# Do we need to explicitly link libc? 11119# 11120case "x$archive_cmds_need_lc" in 11121x|xyes) 11122 # Assume -lc should be added 11123 archive_cmds_need_lc=yes 11124 11125 if test yes,yes = "$GCC,$enable_shared"; then 11126 case $archive_cmds in 11127 *'~'*) 11128 # FIXME: we may have to deal with multi-command sequences. 11129 ;; 11130 '$CC '*) 11131 # Test whether the compiler implicitly links with -lc since on some 11132 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11133 # to ld, don't add -lc before -lgcc. 11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11135$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11136if ${lt_cv_archive_cmds_need_lc+:} false; then : 11137 $as_echo_n "(cached) " >&6 11138else 11139 $RM conftest* 11140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11141 11142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11143 (eval $ac_compile) 2>&5 11144 ac_status=$? 11145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11146 test $ac_status = 0; } 2>conftest.err; then 11147 soname=conftest 11148 lib=conftest 11149 libobjs=conftest.$ac_objext 11150 deplibs= 11151 wl=$lt_prog_compiler_wl 11152 pic_flag=$lt_prog_compiler_pic 11153 compiler_flags=-v 11154 linker_flags=-v 11155 verstring= 11156 output_objdir=. 11157 libname=conftest 11158 lt_save_allow_undefined_flag=$allow_undefined_flag 11159 allow_undefined_flag= 11160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11161 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11162 ac_status=$? 11163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11164 test $ac_status = 0; } 11165 then 11166 lt_cv_archive_cmds_need_lc=no 11167 else 11168 lt_cv_archive_cmds_need_lc=yes 11169 fi 11170 allow_undefined_flag=$lt_save_allow_undefined_flag 11171 else 11172 cat conftest.err 1>&5 11173 fi 11174 $RM conftest* 11175 11176fi 11177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11178$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11179 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11180 ;; 11181 esac 11182 fi 11183 ;; 11184esac 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11338$as_echo_n "checking dynamic linker characteristics... " >&6; } 11339 11340if test yes = "$GCC"; then 11341 case $host_os in 11342 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11343 *) lt_awk_arg='/^libraries:/' ;; 11344 esac 11345 case $host_os in 11346 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11347 *) lt_sed_strip_eq='s|=/|/|g' ;; 11348 esac 11349 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11350 case $lt_search_path_spec in 11351 *\;*) 11352 # if the path contains ";" then we assume it to be the separator 11353 # otherwise default to the standard path separator (i.e. ":") - it is 11354 # assumed that no part of a normal pathname contains ";" but that should 11355 # okay in the real world where ";" in dirpaths is itself problematic. 11356 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11357 ;; 11358 *) 11359 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11360 ;; 11361 esac 11362 # Ok, now we have the path, separated by spaces, we can step through it 11363 # and add multilib dir if necessary... 11364 lt_tmp_lt_search_path_spec= 11365 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11366 # ...but if some path component already ends with the multilib dir we assume 11367 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11368 case "$lt_multi_os_dir; $lt_search_path_spec " in 11369 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11370 lt_multi_os_dir= 11371 ;; 11372 esac 11373 for lt_sys_path in $lt_search_path_spec; do 11374 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11375 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11376 elif test -n "$lt_multi_os_dir"; then 11377 test -d "$lt_sys_path" && \ 11378 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11379 fi 11380 done 11381 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11382BEGIN {RS = " "; FS = "/|\n";} { 11383 lt_foo = ""; 11384 lt_count = 0; 11385 for (lt_i = NF; lt_i > 0; lt_i--) { 11386 if ($lt_i != "" && $lt_i != ".") { 11387 if ($lt_i == "..") { 11388 lt_count++; 11389 } else { 11390 if (lt_count == 0) { 11391 lt_foo = "/" $lt_i lt_foo; 11392 } else { 11393 lt_count--; 11394 } 11395 } 11396 } 11397 } 11398 if (lt_foo != "") { lt_freq[lt_foo]++; } 11399 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11400}'` 11401 # AWK program above erroneously prepends '/' to C:/dos/paths 11402 # for these hosts. 11403 case $host_os in 11404 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11405 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11406 esac 11407 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11408else 11409 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11410fi 11411library_names_spec= 11412libname_spec='lib$name' 11413soname_spec= 11414shrext_cmds=.so 11415postinstall_cmds= 11416postuninstall_cmds= 11417finish_cmds= 11418finish_eval= 11419shlibpath_var= 11420shlibpath_overrides_runpath=unknown 11421version_type=none 11422dynamic_linker="$host_os ld.so" 11423sys_lib_dlsearch_path_spec="/lib /usr/lib" 11424need_lib_prefix=unknown 11425hardcode_into_libs=no 11426 11427# when you set need_version to no, make sure it does not cause -set_version 11428# flags to be left without arguments 11429need_version=unknown 11430 11431 11432 11433case $host_os in 11434aix3*) 11435 version_type=linux # correct to gnu/linux during the next big refactor 11436 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11437 shlibpath_var=LIBPATH 11438 11439 # AIX 3 has no versioning support, so we append a major version to the name. 11440 soname_spec='$libname$release$shared_ext$major' 11441 ;; 11442 11443aix[4-9]*) 11444 version_type=linux # correct to gnu/linux during the next big refactor 11445 need_lib_prefix=no 11446 need_version=no 11447 hardcode_into_libs=yes 11448 if test ia64 = "$host_cpu"; then 11449 # AIX 5 supports IA64 11450 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11451 shlibpath_var=LD_LIBRARY_PATH 11452 else 11453 # With GCC up to 2.95.x, collect2 would create an import file 11454 # for dependence libraries. The import file would start with 11455 # the line '#! .'. This would cause the generated library to 11456 # depend on '.', always an invalid library. This was fixed in 11457 # development snapshots of GCC prior to 3.0. 11458 case $host_os in 11459 aix4 | aix4.[01] | aix4.[01].*) 11460 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11461 echo ' yes ' 11462 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11463 : 11464 else 11465 can_build_shared=no 11466 fi 11467 ;; 11468 esac 11469 # Using Import Files as archive members, it is possible to support 11470 # filename-based versioning of shared library archives on AIX. While 11471 # this would work for both with and without runtime linking, it will 11472 # prevent static linking of such archives. So we do filename-based 11473 # shared library versioning with .so extension only, which is used 11474 # when both runtime linking and shared linking is enabled. 11475 # Unfortunately, runtime linking may impact performance, so we do 11476 # not want this to be the default eventually. Also, we use the 11477 # versioned .so libs for executables only if there is the -brtl 11478 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11479 # To allow for filename-based versioning support, we need to create 11480 # libNAME.so.V as an archive file, containing: 11481 # *) an Import File, referring to the versioned filename of the 11482 # archive as well as the shared archive member, telling the 11483 # bitwidth (32 or 64) of that shared object, and providing the 11484 # list of exported symbols of that shared object, eventually 11485 # decorated with the 'weak' keyword 11486 # *) the shared object with the F_LOADONLY flag set, to really avoid 11487 # it being seen by the linker. 11488 # At run time we better use the real file rather than another symlink, 11489 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11490 11491 case $with_aix_soname,$aix_use_runtimelinking in 11492 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11493 # soname into executable. Probably we can add versioning support to 11494 # collect2, so additional links can be useful in future. 11495 aix,yes) # traditional libtool 11496 dynamic_linker='AIX unversionable lib.so' 11497 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11498 # instead of lib<name>.a to let people know that these are not 11499 # typical AIX shared libraries. 11500 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11501 ;; 11502 aix,no) # traditional AIX only 11503 dynamic_linker='AIX lib.a(lib.so.V)' 11504 # We preserve .a as extension for shared libraries through AIX4.2 11505 # and later when we are not doing run time linking. 11506 library_names_spec='$libname$release.a $libname.a' 11507 soname_spec='$libname$release$shared_ext$major' 11508 ;; 11509 svr4,*) # full svr4 only 11510 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11511 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11512 # We do not specify a path in Import Files, so LIBPATH fires. 11513 shlibpath_overrides_runpath=yes 11514 ;; 11515 *,yes) # both, prefer svr4 11516 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11517 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11518 # unpreferred sharedlib libNAME.a needs extra handling 11519 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"' 11520 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"' 11521 # We do not specify a path in Import Files, so LIBPATH fires. 11522 shlibpath_overrides_runpath=yes 11523 ;; 11524 *,no) # both, prefer aix 11525 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11526 library_names_spec='$libname$release.a $libname.a' 11527 soname_spec='$libname$release$shared_ext$major' 11528 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11529 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)' 11530 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"' 11531 ;; 11532 esac 11533 shlibpath_var=LIBPATH 11534 fi 11535 ;; 11536 11537amigaos*) 11538 case $host_cpu in 11539 powerpc) 11540 # Since July 2007 AmigaOS4 officially supports .so libraries. 11541 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11543 ;; 11544 m68k) 11545 library_names_spec='$libname.ixlibrary $libname.a' 11546 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11547 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' 11548 ;; 11549 esac 11550 ;; 11551 11552beos*) 11553 library_names_spec='$libname$shared_ext' 11554 dynamic_linker="$host_os ld.so" 11555 shlibpath_var=LIBRARY_PATH 11556 ;; 11557 11558bsdi[45]*) 11559 version_type=linux # correct to gnu/linux during the next big refactor 11560 need_version=no 11561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11562 soname_spec='$libname$release$shared_ext$major' 11563 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11564 shlibpath_var=LD_LIBRARY_PATH 11565 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11566 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11567 # the default ld.so.conf also contains /usr/contrib/lib and 11568 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11569 # libtool to hard-code these into programs 11570 ;; 11571 11572cygwin* | mingw* | pw32* | cegcc*) 11573 version_type=windows 11574 shrext_cmds=.dll 11575 need_version=no 11576 need_lib_prefix=no 11577 11578 case $GCC,$cc_basename in 11579 yes,*) 11580 # gcc 11581 library_names_spec='$libname.dll.a' 11582 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11583 postinstall_cmds='base_file=`basename \$file`~ 11584 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11585 dldir=$destdir/`dirname \$dlpath`~ 11586 test -d \$dldir || mkdir -p \$dldir~ 11587 $install_prog $dir/$dlname \$dldir/$dlname~ 11588 chmod a+x \$dldir/$dlname~ 11589 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11590 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11591 fi' 11592 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11593 dlpath=$dir/\$dldll~ 11594 $RM \$dlpath' 11595 shlibpath_overrides_runpath=yes 11596 11597 case $host_os in 11598 cygwin*) 11599 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11600 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11601 11602 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11603 ;; 11604 mingw* | cegcc*) 11605 # MinGW DLLs use traditional 'lib' prefix 11606 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11607 ;; 11608 pw32*) 11609 # pw32 DLLs use 'pw' prefix rather than 'lib' 11610 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11611 ;; 11612 esac 11613 dynamic_linker='Win32 ld.exe' 11614 ;; 11615 11616 *,cl*) 11617 # Native MSVC 11618 libname_spec='$name' 11619 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11620 library_names_spec='$libname.dll.lib' 11621 11622 case $build_os in 11623 mingw*) 11624 sys_lib_search_path_spec= 11625 lt_save_ifs=$IFS 11626 IFS=';' 11627 for lt_path in $LIB 11628 do 11629 IFS=$lt_save_ifs 11630 # Let DOS variable expansion print the short 8.3 style file name. 11631 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11632 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11633 done 11634 IFS=$lt_save_ifs 11635 # Convert to MSYS style. 11636 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11637 ;; 11638 cygwin*) 11639 # Convert to unix form, then to dos form, then back to unix form 11640 # but this time dos style (no spaces!) so that the unix form looks 11641 # like /cygdrive/c/PROGRA~1:/cygdr... 11642 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11643 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11644 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11645 ;; 11646 *) 11647 sys_lib_search_path_spec=$LIB 11648 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11649 # It is most probably a Windows format PATH. 11650 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11651 else 11652 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11653 fi 11654 # FIXME: find the short name or the path components, as spaces are 11655 # common. (e.g. "Program Files" -> "PROGRA~1") 11656 ;; 11657 esac 11658 11659 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11660 postinstall_cmds='base_file=`basename \$file`~ 11661 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11662 dldir=$destdir/`dirname \$dlpath`~ 11663 test -d \$dldir || mkdir -p \$dldir~ 11664 $install_prog $dir/$dlname \$dldir/$dlname' 11665 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11666 dlpath=$dir/\$dldll~ 11667 $RM \$dlpath' 11668 shlibpath_overrides_runpath=yes 11669 dynamic_linker='Win32 link.exe' 11670 ;; 11671 11672 *) 11673 # Assume MSVC wrapper 11674 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11675 dynamic_linker='Win32 ld.exe' 11676 ;; 11677 esac 11678 # FIXME: first we should search . and the directory the executable is in 11679 shlibpath_var=PATH 11680 ;; 11681 11682darwin* | rhapsody*) 11683 dynamic_linker="$host_os dyld" 11684 version_type=darwin 11685 need_lib_prefix=no 11686 need_version=no 11687 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11688 soname_spec='$libname$release$major$shared_ext' 11689 shlibpath_overrides_runpath=yes 11690 shlibpath_var=DYLD_LIBRARY_PATH 11691 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11692 11693 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11694 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11695 ;; 11696 11697dgux*) 11698 version_type=linux # correct to gnu/linux during the next big refactor 11699 need_lib_prefix=no 11700 need_version=no 11701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11702 soname_spec='$libname$release$shared_ext$major' 11703 shlibpath_var=LD_LIBRARY_PATH 11704 ;; 11705 11706freebsd* | dragonfly*) 11707 # DragonFly does not have aout. When/if they implement a new 11708 # versioning mechanism, adjust this. 11709 if test -x /usr/bin/objformat; then 11710 objformat=`/usr/bin/objformat` 11711 else 11712 case $host_os in 11713 freebsd[23].*) objformat=aout ;; 11714 *) objformat=elf ;; 11715 esac 11716 fi 11717 version_type=freebsd-$objformat 11718 case $version_type in 11719 freebsd-elf*) 11720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11721 soname_spec='$libname$release$shared_ext$major' 11722 need_version=no 11723 need_lib_prefix=no 11724 ;; 11725 freebsd-*) 11726 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11727 need_version=yes 11728 ;; 11729 esac 11730 shlibpath_var=LD_LIBRARY_PATH 11731 case $host_os in 11732 freebsd2.*) 11733 shlibpath_overrides_runpath=yes 11734 ;; 11735 freebsd3.[01]* | freebsdelf3.[01]*) 11736 shlibpath_overrides_runpath=yes 11737 hardcode_into_libs=yes 11738 ;; 11739 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11740 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11741 shlibpath_overrides_runpath=no 11742 hardcode_into_libs=yes 11743 ;; 11744 *) # from 4.6 on, and DragonFly 11745 shlibpath_overrides_runpath=yes 11746 hardcode_into_libs=yes 11747 ;; 11748 esac 11749 ;; 11750 11751haiku*) 11752 version_type=linux # correct to gnu/linux during the next big refactor 11753 need_lib_prefix=no 11754 need_version=no 11755 dynamic_linker="$host_os runtime_loader" 11756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11757 soname_spec='$libname$release$shared_ext$major' 11758 shlibpath_var=LIBRARY_PATH 11759 shlibpath_overrides_runpath=no 11760 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11761 hardcode_into_libs=yes 11762 ;; 11763 11764hpux9* | hpux10* | hpux11*) 11765 # Give a soname corresponding to the major version so that dld.sl refuses to 11766 # link against other versions. 11767 version_type=sunos 11768 need_lib_prefix=no 11769 need_version=no 11770 case $host_cpu in 11771 ia64*) 11772 shrext_cmds='.so' 11773 hardcode_into_libs=yes 11774 dynamic_linker="$host_os dld.so" 11775 shlibpath_var=LD_LIBRARY_PATH 11776 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11778 soname_spec='$libname$release$shared_ext$major' 11779 if test 32 = "$HPUX_IA64_MODE"; then 11780 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11781 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11782 else 11783 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11784 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11785 fi 11786 ;; 11787 hppa*64*) 11788 shrext_cmds='.sl' 11789 hardcode_into_libs=yes 11790 dynamic_linker="$host_os dld.sl" 11791 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11792 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11794 soname_spec='$libname$release$shared_ext$major' 11795 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11797 ;; 11798 *) 11799 shrext_cmds='.sl' 11800 dynamic_linker="$host_os dld.sl" 11801 shlibpath_var=SHLIB_PATH 11802 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11804 soname_spec='$libname$release$shared_ext$major' 11805 ;; 11806 esac 11807 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11808 postinstall_cmds='chmod 555 $lib' 11809 # or fails outright, so override atomically: 11810 install_override_mode=555 11811 ;; 11812 11813interix[3-9]*) 11814 version_type=linux # correct to gnu/linux during the next big refactor 11815 need_lib_prefix=no 11816 need_version=no 11817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11818 soname_spec='$libname$release$shared_ext$major' 11819 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11820 shlibpath_var=LD_LIBRARY_PATH 11821 shlibpath_overrides_runpath=no 11822 hardcode_into_libs=yes 11823 ;; 11824 11825irix5* | irix6* | nonstopux*) 11826 case $host_os in 11827 nonstopux*) version_type=nonstopux ;; 11828 *) 11829 if test yes = "$lt_cv_prog_gnu_ld"; then 11830 version_type=linux # correct to gnu/linux during the next big refactor 11831 else 11832 version_type=irix 11833 fi ;; 11834 esac 11835 need_lib_prefix=no 11836 need_version=no 11837 soname_spec='$libname$release$shared_ext$major' 11838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11839 case $host_os in 11840 irix5* | nonstopux*) 11841 libsuff= shlibsuff= 11842 ;; 11843 *) 11844 case $LD in # libtool.m4 will add one of these switches to LD 11845 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11846 libsuff= shlibsuff= libmagic=32-bit;; 11847 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11848 libsuff=32 shlibsuff=N32 libmagic=N32;; 11849 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11850 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11851 *) libsuff= shlibsuff= libmagic=never-match;; 11852 esac 11853 ;; 11854 esac 11855 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11856 shlibpath_overrides_runpath=no 11857 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11858 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11859 hardcode_into_libs=yes 11860 ;; 11861 11862# No shared lib support for Linux oldld, aout, or coff. 11863linux*oldld* | linux*aout* | linux*coff*) 11864 dynamic_linker=no 11865 ;; 11866 11867linux*android*) 11868 version_type=none # Android doesn't support versioned libraries. 11869 need_lib_prefix=no 11870 need_version=no 11871 library_names_spec='$libname$release$shared_ext' 11872 soname_spec='$libname$release$shared_ext' 11873 finish_cmds= 11874 shlibpath_var=LD_LIBRARY_PATH 11875 shlibpath_overrides_runpath=yes 11876 11877 # This implies no fast_install, which is unacceptable. 11878 # Some rework will be needed to allow for fast_install 11879 # before this can be enabled. 11880 hardcode_into_libs=yes 11881 11882 dynamic_linker='Android linker' 11883 # Don't embed -rpath directories since the linker doesn't support them. 11884 hardcode_libdir_flag_spec='-L$libdir' 11885 ;; 11886 11887# This must be glibc/ELF. 11888linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11889 version_type=linux # correct to gnu/linux during the next big refactor 11890 need_lib_prefix=no 11891 need_version=no 11892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11893 soname_spec='$libname$release$shared_ext$major' 11894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11895 shlibpath_var=LD_LIBRARY_PATH 11896 shlibpath_overrides_runpath=no 11897 11898 # Some binutils ld are patched to set DT_RUNPATH 11899 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11900 $as_echo_n "(cached) " >&6 11901else 11902 lt_cv_shlibpath_overrides_runpath=no 11903 save_LDFLAGS=$LDFLAGS 11904 save_libdir=$libdir 11905 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11906 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11908/* end confdefs.h. */ 11909 11910int 11911main () 11912{ 11913 11914 ; 11915 return 0; 11916} 11917_ACEOF 11918if ac_fn_c_try_link "$LINENO"; then : 11919 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11920 lt_cv_shlibpath_overrides_runpath=yes 11921fi 11922fi 11923rm -f core conftest.err conftest.$ac_objext \ 11924 conftest$ac_exeext conftest.$ac_ext 11925 LDFLAGS=$save_LDFLAGS 11926 libdir=$save_libdir 11927 11928fi 11929 11930 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11931 11932 # This implies no fast_install, which is unacceptable. 11933 # Some rework will be needed to allow for fast_install 11934 # before this can be enabled. 11935 hardcode_into_libs=yes 11936 11937 # Add ABI-specific directories to the system library path. 11938 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11939 11940 # Ideally, we could use ldconfig to report *all* directores which are 11941 # searched for libraries, however this is still not possible. Aside from not 11942 # being certain /sbin/ldconfig is available, command 11943 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11944 # even though it is searched at run-time. Try to do the best guess by 11945 # appending ld.so.conf contents (and includes) to the search path. 11946 if test -f /etc/ld.so.conf; then 11947 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' ' '` 11948 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11949 fi 11950 11951 # We used to test for /lib/ld.so.1 and disable shared libraries on 11952 # powerpc, because MkLinux only supported shared libraries with the 11953 # GNU dynamic linker. Since this was broken with cross compilers, 11954 # most powerpc-linux boxes support dynamic linking these days and 11955 # people can always --disable-shared, the test was removed, and we 11956 # assume the GNU/Linux dynamic linker is in use. 11957 dynamic_linker='GNU/Linux ld.so' 11958 ;; 11959 11960netbsd*) 11961 version_type=sunos 11962 need_lib_prefix=no 11963 need_version=no 11964 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11965 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11967 dynamic_linker='NetBSD (a.out) ld.so' 11968 else 11969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11970 soname_spec='$libname$release$shared_ext$major' 11971 dynamic_linker='NetBSD ld.elf_so' 11972 fi 11973 shlibpath_var=LD_LIBRARY_PATH 11974 shlibpath_overrides_runpath=yes 11975 hardcode_into_libs=yes 11976 ;; 11977 11978newsos6) 11979 version_type=linux # correct to gnu/linux during the next big refactor 11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11981 shlibpath_var=LD_LIBRARY_PATH 11982 shlibpath_overrides_runpath=yes 11983 ;; 11984 11985*nto* | *qnx*) 11986 version_type=qnx 11987 need_lib_prefix=no 11988 need_version=no 11989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11990 soname_spec='$libname$release$shared_ext$major' 11991 shlibpath_var=LD_LIBRARY_PATH 11992 shlibpath_overrides_runpath=no 11993 hardcode_into_libs=yes 11994 dynamic_linker='ldqnx.so' 11995 ;; 11996 11997openbsd* | bitrig*) 11998 version_type=sunos 11999 sys_lib_dlsearch_path_spec=/usr/lib 12000 need_lib_prefix=no 12001 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12002 need_version=no 12003 else 12004 need_version=yes 12005 fi 12006 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12008 shlibpath_var=LD_LIBRARY_PATH 12009 shlibpath_overrides_runpath=yes 12010 ;; 12011 12012os2*) 12013 libname_spec='$name' 12014 version_type=windows 12015 shrext_cmds=.dll 12016 need_version=no 12017 need_lib_prefix=no 12018 # OS/2 can only load a DLL with a base name of 8 characters or less. 12019 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12020 v=$($ECHO $release$versuffix | tr -d .-); 12021 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12022 $ECHO $n$v`$shared_ext' 12023 library_names_spec='${libname}_dll.$libext' 12024 dynamic_linker='OS/2 ld.exe' 12025 shlibpath_var=BEGINLIBPATH 12026 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12028 postinstall_cmds='base_file=`basename \$file`~ 12029 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12030 dldir=$destdir/`dirname \$dlpath`~ 12031 test -d \$dldir || mkdir -p \$dldir~ 12032 $install_prog $dir/$dlname \$dldir/$dlname~ 12033 chmod a+x \$dldir/$dlname~ 12034 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12035 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12036 fi' 12037 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12038 dlpath=$dir/\$dldll~ 12039 $RM \$dlpath' 12040 ;; 12041 12042osf3* | osf4* | osf5*) 12043 version_type=osf 12044 need_lib_prefix=no 12045 need_version=no 12046 soname_spec='$libname$release$shared_ext$major' 12047 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12048 shlibpath_var=LD_LIBRARY_PATH 12049 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12051 ;; 12052 12053rdos*) 12054 dynamic_linker=no 12055 ;; 12056 12057solaris*) 12058 version_type=linux # correct to gnu/linux during the next big refactor 12059 need_lib_prefix=no 12060 need_version=no 12061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12062 soname_spec='$libname$release$shared_ext$major' 12063 shlibpath_var=LD_LIBRARY_PATH 12064 shlibpath_overrides_runpath=yes 12065 hardcode_into_libs=yes 12066 # ldd complains unless libraries are executable 12067 postinstall_cmds='chmod +x $lib' 12068 ;; 12069 12070sunos4*) 12071 version_type=sunos 12072 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12073 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12074 shlibpath_var=LD_LIBRARY_PATH 12075 shlibpath_overrides_runpath=yes 12076 if test yes = "$with_gnu_ld"; then 12077 need_lib_prefix=no 12078 fi 12079 need_version=yes 12080 ;; 12081 12082sysv4 | sysv4.3*) 12083 version_type=linux # correct to gnu/linux during the next big refactor 12084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12085 soname_spec='$libname$release$shared_ext$major' 12086 shlibpath_var=LD_LIBRARY_PATH 12087 case $host_vendor in 12088 sni) 12089 shlibpath_overrides_runpath=no 12090 need_lib_prefix=no 12091 runpath_var=LD_RUN_PATH 12092 ;; 12093 siemens) 12094 need_lib_prefix=no 12095 ;; 12096 motorola) 12097 need_lib_prefix=no 12098 need_version=no 12099 shlibpath_overrides_runpath=no 12100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12101 ;; 12102 esac 12103 ;; 12104 12105sysv4*MP*) 12106 if test -d /usr/nec; then 12107 version_type=linux # correct to gnu/linux during the next big refactor 12108 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12109 soname_spec='$libname$shared_ext.$major' 12110 shlibpath_var=LD_LIBRARY_PATH 12111 fi 12112 ;; 12113 12114sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12115 version_type=sco 12116 need_lib_prefix=no 12117 need_version=no 12118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12119 soname_spec='$libname$release$shared_ext$major' 12120 shlibpath_var=LD_LIBRARY_PATH 12121 shlibpath_overrides_runpath=yes 12122 hardcode_into_libs=yes 12123 if test yes = "$with_gnu_ld"; then 12124 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12125 else 12126 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12127 case $host_os in 12128 sco3.2v5*) 12129 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12130 ;; 12131 esac 12132 fi 12133 sys_lib_dlsearch_path_spec='/usr/lib' 12134 ;; 12135 12136tpf*) 12137 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12138 version_type=linux # correct to gnu/linux during the next big refactor 12139 need_lib_prefix=no 12140 need_version=no 12141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12142 shlibpath_var=LD_LIBRARY_PATH 12143 shlibpath_overrides_runpath=no 12144 hardcode_into_libs=yes 12145 ;; 12146 12147uts4*) 12148 version_type=linux # correct to gnu/linux during the next big refactor 12149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12150 soname_spec='$libname$release$shared_ext$major' 12151 shlibpath_var=LD_LIBRARY_PATH 12152 ;; 12153 12154*) 12155 dynamic_linker=no 12156 ;; 12157esac 12158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12159$as_echo "$dynamic_linker" >&6; } 12160test no = "$dynamic_linker" && can_build_shared=no 12161 12162variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12163if test yes = "$GCC"; then 12164 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12165fi 12166 12167if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12168 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12169fi 12170 12171if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12172 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12173fi 12174 12175# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12176configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12177 12178# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12179func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12180 12181# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12182configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12281$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12282hardcode_action= 12283if test -n "$hardcode_libdir_flag_spec" || 12284 test -n "$runpath_var" || 12285 test yes = "$hardcode_automatic"; then 12286 12287 # We can hardcode non-existent directories. 12288 if test no != "$hardcode_direct" && 12289 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12290 # have to relink, otherwise we might link with an installed library 12291 # when we should be linking with a yet-to-be-installed one 12292 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12293 test no != "$hardcode_minus_L"; then 12294 # Linking always hardcodes the temporary library directory. 12295 hardcode_action=relink 12296 else 12297 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12298 hardcode_action=immediate 12299 fi 12300else 12301 # We cannot hardcode anything, or else we can only hardcode existing 12302 # directories. 12303 hardcode_action=unsupported 12304fi 12305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12306$as_echo "$hardcode_action" >&6; } 12307 12308if test relink = "$hardcode_action" || 12309 test yes = "$inherit_rpath"; then 12310 # Fast installation is not supported 12311 enable_fast_install=no 12312elif test yes = "$shlibpath_overrides_runpath" || 12313 test no = "$enable_shared"; then 12314 # Fast installation is not necessary 12315 enable_fast_install=needless 12316fi 12317 12318 12319 12320 12321 12322 12323 if test yes != "$enable_dlopen"; then 12324 enable_dlopen=unknown 12325 enable_dlopen_self=unknown 12326 enable_dlopen_self_static=unknown 12327else 12328 lt_cv_dlopen=no 12329 lt_cv_dlopen_libs= 12330 12331 case $host_os in 12332 beos*) 12333 lt_cv_dlopen=load_add_on 12334 lt_cv_dlopen_libs= 12335 lt_cv_dlopen_self=yes 12336 ;; 12337 12338 mingw* | pw32* | cegcc*) 12339 lt_cv_dlopen=LoadLibrary 12340 lt_cv_dlopen_libs= 12341 ;; 12342 12343 cygwin*) 12344 lt_cv_dlopen=dlopen 12345 lt_cv_dlopen_libs= 12346 ;; 12347 12348 darwin*) 12349 # if libdl is installed we need to link against it 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12351$as_echo_n "checking for dlopen in -ldl... " >&6; } 12352if ${ac_cv_lib_dl_dlopen+:} false; then : 12353 $as_echo_n "(cached) " >&6 12354else 12355 ac_check_lib_save_LIBS=$LIBS 12356LIBS="-ldl $LIBS" 12357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12358/* end confdefs.h. */ 12359 12360/* Override any GCC internal prototype to avoid an error. 12361 Use char because int might match the return type of a GCC 12362 builtin and then its argument prototype would still apply. */ 12363#ifdef __cplusplus 12364extern "C" 12365#endif 12366char dlopen (); 12367int 12368main () 12369{ 12370return dlopen (); 12371 ; 12372 return 0; 12373} 12374_ACEOF 12375if ac_fn_c_try_link "$LINENO"; then : 12376 ac_cv_lib_dl_dlopen=yes 12377else 12378 ac_cv_lib_dl_dlopen=no 12379fi 12380rm -f core conftest.err conftest.$ac_objext \ 12381 conftest$ac_exeext conftest.$ac_ext 12382LIBS=$ac_check_lib_save_LIBS 12383fi 12384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12385$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12386if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12387 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12388else 12389 12390 lt_cv_dlopen=dyld 12391 lt_cv_dlopen_libs= 12392 lt_cv_dlopen_self=yes 12393 12394fi 12395 12396 ;; 12397 12398 tpf*) 12399 # Don't try to run any link tests for TPF. We know it's impossible 12400 # because TPF is a cross-compiler, and we know how we open DSOs. 12401 lt_cv_dlopen=dlopen 12402 lt_cv_dlopen_libs= 12403 lt_cv_dlopen_self=no 12404 ;; 12405 12406 *) 12407 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12408if test "x$ac_cv_func_shl_load" = xyes; then : 12409 lt_cv_dlopen=shl_load 12410else 12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12412$as_echo_n "checking for shl_load in -ldld... " >&6; } 12413if ${ac_cv_lib_dld_shl_load+:} false; then : 12414 $as_echo_n "(cached) " >&6 12415else 12416 ac_check_lib_save_LIBS=$LIBS 12417LIBS="-ldld $LIBS" 12418cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12419/* end confdefs.h. */ 12420 12421/* Override any GCC internal prototype to avoid an error. 12422 Use char because int might match the return type of a GCC 12423 builtin and then its argument prototype would still apply. */ 12424#ifdef __cplusplus 12425extern "C" 12426#endif 12427char shl_load (); 12428int 12429main () 12430{ 12431return shl_load (); 12432 ; 12433 return 0; 12434} 12435_ACEOF 12436if ac_fn_c_try_link "$LINENO"; then : 12437 ac_cv_lib_dld_shl_load=yes 12438else 12439 ac_cv_lib_dld_shl_load=no 12440fi 12441rm -f core conftest.err conftest.$ac_objext \ 12442 conftest$ac_exeext conftest.$ac_ext 12443LIBS=$ac_check_lib_save_LIBS 12444fi 12445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12446$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12447if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12448 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12449else 12450 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12451if test "x$ac_cv_func_dlopen" = xyes; then : 12452 lt_cv_dlopen=dlopen 12453else 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12455$as_echo_n "checking for dlopen in -ldl... " >&6; } 12456if ${ac_cv_lib_dl_dlopen+:} false; then : 12457 $as_echo_n "(cached) " >&6 12458else 12459 ac_check_lib_save_LIBS=$LIBS 12460LIBS="-ldl $LIBS" 12461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12462/* end confdefs.h. */ 12463 12464/* Override any GCC internal prototype to avoid an error. 12465 Use char because int might match the return type of a GCC 12466 builtin and then its argument prototype would still apply. */ 12467#ifdef __cplusplus 12468extern "C" 12469#endif 12470char dlopen (); 12471int 12472main () 12473{ 12474return dlopen (); 12475 ; 12476 return 0; 12477} 12478_ACEOF 12479if ac_fn_c_try_link "$LINENO"; then : 12480 ac_cv_lib_dl_dlopen=yes 12481else 12482 ac_cv_lib_dl_dlopen=no 12483fi 12484rm -f core conftest.err conftest.$ac_objext \ 12485 conftest$ac_exeext conftest.$ac_ext 12486LIBS=$ac_check_lib_save_LIBS 12487fi 12488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12489$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12490if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12491 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12492else 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12494$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12495if ${ac_cv_lib_svld_dlopen+:} false; then : 12496 $as_echo_n "(cached) " >&6 12497else 12498 ac_check_lib_save_LIBS=$LIBS 12499LIBS="-lsvld $LIBS" 12500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12501/* end confdefs.h. */ 12502 12503/* Override any GCC internal prototype to avoid an error. 12504 Use char because int might match the return type of a GCC 12505 builtin and then its argument prototype would still apply. */ 12506#ifdef __cplusplus 12507extern "C" 12508#endif 12509char dlopen (); 12510int 12511main () 12512{ 12513return dlopen (); 12514 ; 12515 return 0; 12516} 12517_ACEOF 12518if ac_fn_c_try_link "$LINENO"; then : 12519 ac_cv_lib_svld_dlopen=yes 12520else 12521 ac_cv_lib_svld_dlopen=no 12522fi 12523rm -f core conftest.err conftest.$ac_objext \ 12524 conftest$ac_exeext conftest.$ac_ext 12525LIBS=$ac_check_lib_save_LIBS 12526fi 12527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12528$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12529if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12530 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12531else 12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12533$as_echo_n "checking for dld_link in -ldld... " >&6; } 12534if ${ac_cv_lib_dld_dld_link+:} false; then : 12535 $as_echo_n "(cached) " >&6 12536else 12537 ac_check_lib_save_LIBS=$LIBS 12538LIBS="-ldld $LIBS" 12539cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12540/* end confdefs.h. */ 12541 12542/* Override any GCC internal prototype to avoid an error. 12543 Use char because int might match the return type of a GCC 12544 builtin and then its argument prototype would still apply. */ 12545#ifdef __cplusplus 12546extern "C" 12547#endif 12548char dld_link (); 12549int 12550main () 12551{ 12552return dld_link (); 12553 ; 12554 return 0; 12555} 12556_ACEOF 12557if ac_fn_c_try_link "$LINENO"; then : 12558 ac_cv_lib_dld_dld_link=yes 12559else 12560 ac_cv_lib_dld_dld_link=no 12561fi 12562rm -f core conftest.err conftest.$ac_objext \ 12563 conftest$ac_exeext conftest.$ac_ext 12564LIBS=$ac_check_lib_save_LIBS 12565fi 12566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12567$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12568if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12569 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12570fi 12571 12572 12573fi 12574 12575 12576fi 12577 12578 12579fi 12580 12581 12582fi 12583 12584 12585fi 12586 12587 ;; 12588 esac 12589 12590 if test no = "$lt_cv_dlopen"; then 12591 enable_dlopen=no 12592 else 12593 enable_dlopen=yes 12594 fi 12595 12596 case $lt_cv_dlopen in 12597 dlopen) 12598 save_CPPFLAGS=$CPPFLAGS 12599 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12600 12601 save_LDFLAGS=$LDFLAGS 12602 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12603 12604 save_LIBS=$LIBS 12605 LIBS="$lt_cv_dlopen_libs $LIBS" 12606 12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12608$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12609if ${lt_cv_dlopen_self+:} false; then : 12610 $as_echo_n "(cached) " >&6 12611else 12612 if test yes = "$cross_compiling"; then : 12613 lt_cv_dlopen_self=cross 12614else 12615 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12616 lt_status=$lt_dlunknown 12617 cat > conftest.$ac_ext <<_LT_EOF 12618#line $LINENO "configure" 12619#include "confdefs.h" 12620 12621#if HAVE_DLFCN_H 12622#include <dlfcn.h> 12623#endif 12624 12625#include <stdio.h> 12626 12627#ifdef RTLD_GLOBAL 12628# define LT_DLGLOBAL RTLD_GLOBAL 12629#else 12630# ifdef DL_GLOBAL 12631# define LT_DLGLOBAL DL_GLOBAL 12632# else 12633# define LT_DLGLOBAL 0 12634# endif 12635#endif 12636 12637/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12638 find out it does not work in some platform. */ 12639#ifndef LT_DLLAZY_OR_NOW 12640# ifdef RTLD_LAZY 12641# define LT_DLLAZY_OR_NOW RTLD_LAZY 12642# else 12643# ifdef DL_LAZY 12644# define LT_DLLAZY_OR_NOW DL_LAZY 12645# else 12646# ifdef RTLD_NOW 12647# define LT_DLLAZY_OR_NOW RTLD_NOW 12648# else 12649# ifdef DL_NOW 12650# define LT_DLLAZY_OR_NOW DL_NOW 12651# else 12652# define LT_DLLAZY_OR_NOW 0 12653# endif 12654# endif 12655# endif 12656# endif 12657#endif 12658 12659/* When -fvisibility=hidden is used, assume the code has been annotated 12660 correspondingly for the symbols needed. */ 12661#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12662int fnord () __attribute__((visibility("default"))); 12663#endif 12664 12665int fnord () { return 42; } 12666int main () 12667{ 12668 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12669 int status = $lt_dlunknown; 12670 12671 if (self) 12672 { 12673 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12674 else 12675 { 12676 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12677 else puts (dlerror ()); 12678 } 12679 /* dlclose (self); */ 12680 } 12681 else 12682 puts (dlerror ()); 12683 12684 return status; 12685} 12686_LT_EOF 12687 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12688 (eval $ac_link) 2>&5 12689 ac_status=$? 12690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12691 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12692 (./conftest; exit; ) >&5 2>/dev/null 12693 lt_status=$? 12694 case x$lt_status in 12695 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12696 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12697 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12698 esac 12699 else : 12700 # compilation failed 12701 lt_cv_dlopen_self=no 12702 fi 12703fi 12704rm -fr conftest* 12705 12706 12707fi 12708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12709$as_echo "$lt_cv_dlopen_self" >&6; } 12710 12711 if test yes = "$lt_cv_dlopen_self"; then 12712 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12714$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12715if ${lt_cv_dlopen_self_static+:} false; then : 12716 $as_echo_n "(cached) " >&6 12717else 12718 if test yes = "$cross_compiling"; then : 12719 lt_cv_dlopen_self_static=cross 12720else 12721 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12722 lt_status=$lt_dlunknown 12723 cat > conftest.$ac_ext <<_LT_EOF 12724#line $LINENO "configure" 12725#include "confdefs.h" 12726 12727#if HAVE_DLFCN_H 12728#include <dlfcn.h> 12729#endif 12730 12731#include <stdio.h> 12732 12733#ifdef RTLD_GLOBAL 12734# define LT_DLGLOBAL RTLD_GLOBAL 12735#else 12736# ifdef DL_GLOBAL 12737# define LT_DLGLOBAL DL_GLOBAL 12738# else 12739# define LT_DLGLOBAL 0 12740# endif 12741#endif 12742 12743/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12744 find out it does not work in some platform. */ 12745#ifndef LT_DLLAZY_OR_NOW 12746# ifdef RTLD_LAZY 12747# define LT_DLLAZY_OR_NOW RTLD_LAZY 12748# else 12749# ifdef DL_LAZY 12750# define LT_DLLAZY_OR_NOW DL_LAZY 12751# else 12752# ifdef RTLD_NOW 12753# define LT_DLLAZY_OR_NOW RTLD_NOW 12754# else 12755# ifdef DL_NOW 12756# define LT_DLLAZY_OR_NOW DL_NOW 12757# else 12758# define LT_DLLAZY_OR_NOW 0 12759# endif 12760# endif 12761# endif 12762# endif 12763#endif 12764 12765/* When -fvisibility=hidden is used, assume the code has been annotated 12766 correspondingly for the symbols needed. */ 12767#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12768int fnord () __attribute__((visibility("default"))); 12769#endif 12770 12771int fnord () { return 42; } 12772int main () 12773{ 12774 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12775 int status = $lt_dlunknown; 12776 12777 if (self) 12778 { 12779 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12780 else 12781 { 12782 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12783 else puts (dlerror ()); 12784 } 12785 /* dlclose (self); */ 12786 } 12787 else 12788 puts (dlerror ()); 12789 12790 return status; 12791} 12792_LT_EOF 12793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12794 (eval $ac_link) 2>&5 12795 ac_status=$? 12796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12797 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12798 (./conftest; exit; ) >&5 2>/dev/null 12799 lt_status=$? 12800 case x$lt_status in 12801 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12802 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12803 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12804 esac 12805 else : 12806 # compilation failed 12807 lt_cv_dlopen_self_static=no 12808 fi 12809fi 12810rm -fr conftest* 12811 12812 12813fi 12814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12815$as_echo "$lt_cv_dlopen_self_static" >&6; } 12816 fi 12817 12818 CPPFLAGS=$save_CPPFLAGS 12819 LDFLAGS=$save_LDFLAGS 12820 LIBS=$save_LIBS 12821 ;; 12822 esac 12823 12824 case $lt_cv_dlopen_self in 12825 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12826 *) enable_dlopen_self=unknown ;; 12827 esac 12828 12829 case $lt_cv_dlopen_self_static in 12830 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12831 *) enable_dlopen_self_static=unknown ;; 12832 esac 12833fi 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851striplib= 12852old_striplib= 12853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12854$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12855if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12856 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12857 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12859$as_echo "yes" >&6; } 12860else 12861# FIXME - insert some real tests, host_os isn't really good enough 12862 case $host_os in 12863 darwin*) 12864 if test -n "$STRIP"; then 12865 striplib="$STRIP -x" 12866 old_striplib="$STRIP -S" 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12868$as_echo "yes" >&6; } 12869 else 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12871$as_echo "no" >&6; } 12872 fi 12873 ;; 12874 *) 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12876$as_echo "no" >&6; } 12877 ;; 12878 esac 12879fi 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 # Report what library types will actually be built 12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12894$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12896$as_echo "$can_build_shared" >&6; } 12897 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12899$as_echo_n "checking whether to build shared libraries... " >&6; } 12900 test no = "$can_build_shared" && enable_shared=no 12901 12902 # On AIX, shared libraries and static libraries use the same namespace, and 12903 # are all built from PIC. 12904 case $host_os in 12905 aix3*) 12906 test yes = "$enable_shared" && enable_static=no 12907 if test -n "$RANLIB"; then 12908 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12909 postinstall_cmds='$RANLIB $lib' 12910 fi 12911 ;; 12912 12913 aix[4-9]*) 12914 if test ia64 != "$host_cpu"; then 12915 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12916 yes,aix,yes) ;; # shared object as lib.so file only 12917 yes,svr4,*) ;; # shared object as lib.so archive member only 12918 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12919 esac 12920 fi 12921 ;; 12922 esac 12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12924$as_echo "$enable_shared" >&6; } 12925 12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12927$as_echo_n "checking whether to build static libraries... " >&6; } 12928 # Make sure either enable_shared or enable_static is yes. 12929 test yes = "$enable_shared" || enable_static=yes 12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12931$as_echo "$enable_static" >&6; } 12932 12933 12934 12935 12936fi 12937ac_ext=c 12938ac_cpp='$CPP $CPPFLAGS' 12939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12941ac_compiler_gnu=$ac_cv_c_compiler_gnu 12942 12943CC=$lt_save_CC 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 ac_config_commands="$ac_config_commands libtool" 12960 12961 12962 12963 12964# Only expand once: 12965 12966 12967 12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 12969$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 12970 # Check whether --enable-maintainer-mode was given. 12971if test "${enable_maintainer_mode+set}" = set; then : 12972 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 12973else 12974 USE_MAINTAINER_MODE=no 12975fi 12976 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 12978$as_echo "$USE_MAINTAINER_MODE" >&6; } 12979 if test $USE_MAINTAINER_MODE = yes; then 12980 MAINTAINER_MODE_TRUE= 12981 MAINTAINER_MODE_FALSE='#' 12982else 12983 MAINTAINER_MODE_TRUE='#' 12984 MAINTAINER_MODE_FALSE= 12985fi 12986 12987 MAINT=$MAINTAINER_MODE_TRUE 12988 12989 12990 12991GETTEXT_PACKAGE=spice-gtk 12992 12993 12994cat >>confdefs.h <<_ACEOF 12995#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE" 12996_ACEOF 12997 12998 12999 13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 13001$as_echo_n "checking whether NLS is requested... " >&6; } 13002 # Check whether --enable-nls was given. 13003if test "${enable_nls+set}" = set; then : 13004 enableval=$enable_nls; USE_NLS=$enableval 13005else 13006 USE_NLS=yes 13007fi 13008 13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 13010$as_echo "$USE_NLS" >&6; } 13011 13012 13013 13014 13015 GETTEXT_MACRO_VERSION=0.18 13016 13017 13018 13019 13020# Prepare PATH_SEPARATOR. 13021# The user is always right. 13022if test "${PATH_SEPARATOR+set}" != set; then 13023 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13024 # contains only /bin. Note that ksh looks also at the FPATH variable, 13025 # so we have to set that as well for the test. 13026 PATH_SEPARATOR=: 13027 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13028 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13029 || PATH_SEPARATOR=';' 13030 } 13031fi 13032 13033# Find out how to test for executable files. Don't use a zero-byte file, 13034# as systems may use methods other than mode bits to determine executability. 13035cat >conf$$.file <<_ASEOF 13036#! /bin/sh 13037exit 0 13038_ASEOF 13039chmod +x conf$$.file 13040if test -x conf$$.file >/dev/null 2>&1; then 13041 ac_executable_p="test -x" 13042else 13043 ac_executable_p="test -f" 13044fi 13045rm -f conf$$.file 13046 13047# Extract the first word of "msgfmt", so it can be a program name with args. 13048set dummy msgfmt; ac_word=$2 13049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13050$as_echo_n "checking for $ac_word... " >&6; } 13051if ${ac_cv_path_MSGFMT+:} false; then : 13052 $as_echo_n "(cached) " >&6 13053else 13054 case "$MSGFMT" in 13055 [\\/]* | ?:[\\/]*) 13056 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 13057 ;; 13058 *) 13059 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 13060 for ac_dir in $PATH; do 13061 IFS="$ac_save_IFS" 13062 test -z "$ac_dir" && ac_dir=. 13063 for ac_exec_ext in '' $ac_executable_extensions; do 13064 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 13065 echo "$as_me: trying $ac_dir/$ac_word..." >&5 13066 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 13067 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 13068 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 13069 break 2 13070 fi 13071 fi 13072 done 13073 done 13074 IFS="$ac_save_IFS" 13075 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 13076 ;; 13077esac 13078fi 13079MSGFMT="$ac_cv_path_MSGFMT" 13080if test "$MSGFMT" != ":"; then 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 13082$as_echo "$MSGFMT" >&6; } 13083else 13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13085$as_echo "no" >&6; } 13086fi 13087 13088 # Extract the first word of "gmsgfmt", so it can be a program name with args. 13089set dummy gmsgfmt; ac_word=$2 13090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13091$as_echo_n "checking for $ac_word... " >&6; } 13092if ${ac_cv_path_GMSGFMT+:} false; then : 13093 $as_echo_n "(cached) " >&6 13094else 13095 case $GMSGFMT in 13096 [\\/]* | ?:[\\/]*) 13097 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 13098 ;; 13099 *) 13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13101for as_dir in $PATH 13102do 13103 IFS=$as_save_IFS 13104 test -z "$as_dir" && as_dir=. 13105 for ac_exec_ext in '' $ac_executable_extensions; do 13106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13107 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 13108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13109 break 2 13110 fi 13111done 13112 done 13113IFS=$as_save_IFS 13114 13115 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 13116 ;; 13117esac 13118fi 13119GMSGFMT=$ac_cv_path_GMSGFMT 13120if test -n "$GMSGFMT"; then 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 13122$as_echo "$GMSGFMT" >&6; } 13123else 13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13125$as_echo "no" >&6; } 13126fi 13127 13128 13129 13130 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 13131 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 13132 *) MSGFMT_015=$MSGFMT ;; 13133 esac 13134 13135 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 13136 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 13137 *) GMSGFMT_015=$GMSGFMT ;; 13138 esac 13139 13140 13141 13142# Prepare PATH_SEPARATOR. 13143# The user is always right. 13144if test "${PATH_SEPARATOR+set}" != set; then 13145 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13146 # contains only /bin. Note that ksh looks also at the FPATH variable, 13147 # so we have to set that as well for the test. 13148 PATH_SEPARATOR=: 13149 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13150 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13151 || PATH_SEPARATOR=';' 13152 } 13153fi 13154 13155# Find out how to test for executable files. Don't use a zero-byte file, 13156# as systems may use methods other than mode bits to determine executability. 13157cat >conf$$.file <<_ASEOF 13158#! /bin/sh 13159exit 0 13160_ASEOF 13161chmod +x conf$$.file 13162if test -x conf$$.file >/dev/null 2>&1; then 13163 ac_executable_p="test -x" 13164else 13165 ac_executable_p="test -f" 13166fi 13167rm -f conf$$.file 13168 13169# Extract the first word of "xgettext", so it can be a program name with args. 13170set dummy xgettext; ac_word=$2 13171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13172$as_echo_n "checking for $ac_word... " >&6; } 13173if ${ac_cv_path_XGETTEXT+:} false; then : 13174 $as_echo_n "(cached) " >&6 13175else 13176 case "$XGETTEXT" in 13177 [\\/]* | ?:[\\/]*) 13178 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 13179 ;; 13180 *) 13181 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 13182 for ac_dir in $PATH; do 13183 IFS="$ac_save_IFS" 13184 test -z "$ac_dir" && ac_dir=. 13185 for ac_exec_ext in '' $ac_executable_extensions; do 13186 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 13187 echo "$as_me: trying $ac_dir/$ac_word..." >&5 13188 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 13189 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 13190 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 13191 break 2 13192 fi 13193 fi 13194 done 13195 done 13196 IFS="$ac_save_IFS" 13197 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 13198 ;; 13199esac 13200fi 13201XGETTEXT="$ac_cv_path_XGETTEXT" 13202if test "$XGETTEXT" != ":"; then 13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 13204$as_echo "$XGETTEXT" >&6; } 13205else 13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13207$as_echo "no" >&6; } 13208fi 13209 13210 rm -f messages.po 13211 13212 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 13213 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 13214 *) XGETTEXT_015=$XGETTEXT ;; 13215 esac 13216 13217 13218 13219# Prepare PATH_SEPARATOR. 13220# The user is always right. 13221if test "${PATH_SEPARATOR+set}" != set; then 13222 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13223 # contains only /bin. Note that ksh looks also at the FPATH variable, 13224 # so we have to set that as well for the test. 13225 PATH_SEPARATOR=: 13226 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13227 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13228 || PATH_SEPARATOR=';' 13229 } 13230fi 13231 13232# Find out how to test for executable files. Don't use a zero-byte file, 13233# as systems may use methods other than mode bits to determine executability. 13234cat >conf$$.file <<_ASEOF 13235#! /bin/sh 13236exit 0 13237_ASEOF 13238chmod +x conf$$.file 13239if test -x conf$$.file >/dev/null 2>&1; then 13240 ac_executable_p="test -x" 13241else 13242 ac_executable_p="test -f" 13243fi 13244rm -f conf$$.file 13245 13246# Extract the first word of "msgmerge", so it can be a program name with args. 13247set dummy msgmerge; ac_word=$2 13248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13249$as_echo_n "checking for $ac_word... " >&6; } 13250if ${ac_cv_path_MSGMERGE+:} false; then : 13251 $as_echo_n "(cached) " >&6 13252else 13253 case "$MSGMERGE" in 13254 [\\/]* | ?:[\\/]*) 13255 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 13256 ;; 13257 *) 13258 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 13259 for ac_dir in $PATH; do 13260 IFS="$ac_save_IFS" 13261 test -z "$ac_dir" && ac_dir=. 13262 for ac_exec_ext in '' $ac_executable_extensions; do 13263 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 13264 echo "$as_me: trying $ac_dir/$ac_word..." >&5 13265 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 13266 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 13267 break 2 13268 fi 13269 fi 13270 done 13271 done 13272 IFS="$ac_save_IFS" 13273 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 13274 ;; 13275esac 13276fi 13277MSGMERGE="$ac_cv_path_MSGMERGE" 13278if test "$MSGMERGE" != ":"; then 13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 13280$as_echo "$MSGMERGE" >&6; } 13281else 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13283$as_echo "no" >&6; } 13284fi 13285 13286 13287 test -n "$localedir" || localedir='${datadir}/locale' 13288 13289 13290 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 13291 13292 13293 ac_config_commands="$ac_config_commands po-directories" 13294 13295 13296 13297 if test "X$prefix" = "XNONE"; then 13298 acl_final_prefix="$ac_default_prefix" 13299 else 13300 acl_final_prefix="$prefix" 13301 fi 13302 if test "X$exec_prefix" = "XNONE"; then 13303 acl_final_exec_prefix='${prefix}' 13304 else 13305 acl_final_exec_prefix="$exec_prefix" 13306 fi 13307 acl_save_prefix="$prefix" 13308 prefix="$acl_final_prefix" 13309 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 13310 prefix="$acl_save_prefix" 13311 13312 13313 13314# Check whether --with-gnu-ld was given. 13315if test "${with_gnu_ld+set}" = set; then : 13316 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13317else 13318 with_gnu_ld=no 13319fi 13320 13321# Prepare PATH_SEPARATOR. 13322# The user is always right. 13323if test "${PATH_SEPARATOR+set}" != set; then 13324 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 13325 # contains only /bin. Note that ksh looks also at the FPATH variable, 13326 # so we have to set that as well for the test. 13327 PATH_SEPARATOR=: 13328 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13329 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 13330 || PATH_SEPARATOR=';' 13331 } 13332fi 13333 13334ac_prog=ld 13335if test "$GCC" = yes; then 13336 # Check if gcc -print-prog-name=ld gives a path. 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13338$as_echo_n "checking for ld used by $CC... " >&6; } 13339 case $host in 13340 *-*-mingw*) 13341 # gcc leaves a trailing carriage return which upsets mingw 13342 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13343 *) 13344 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13345 esac 13346 case $ac_prog in 13347 # Accept absolute paths. 13348 [\\/]* | ?:[\\/]*) 13349 re_direlt='/[^/][^/]*/\.\./' 13350 # Canonicalize the pathname of ld 13351 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 13352 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 13353 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 13354 done 13355 test -z "$LD" && LD="$ac_prog" 13356 ;; 13357 "") 13358 # If it fails, then pretend we aren't using GCC. 13359 ac_prog=ld 13360 ;; 13361 *) 13362 # If it is relative, then search for the first ld in PATH. 13363 with_gnu_ld=unknown 13364 ;; 13365 esac 13366elif test "$with_gnu_ld" = yes; then 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13368$as_echo_n "checking for GNU ld... " >&6; } 13369else 13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13371$as_echo_n "checking for non-GNU ld... " >&6; } 13372fi 13373if ${acl_cv_path_LD+:} false; then : 13374 $as_echo_n "(cached) " >&6 13375else 13376 if test -z "$LD"; then 13377 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13378 for ac_dir in $PATH; do 13379 IFS="$acl_save_ifs" 13380 test -z "$ac_dir" && ac_dir=. 13381 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13382 acl_cv_path_LD="$ac_dir/$ac_prog" 13383 # Check to see if the program is GNU ld. I'd rather use --version, 13384 # but apparently some variants of GNU ld only accept -v. 13385 # Break only if it was the GNU/non-GNU ld that we prefer. 13386 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 13387 *GNU* | *'with BFD'*) 13388 test "$with_gnu_ld" != no && break 13389 ;; 13390 *) 13391 test "$with_gnu_ld" != yes && break 13392 ;; 13393 esac 13394 fi 13395 done 13396 IFS="$acl_save_ifs" 13397else 13398 acl_cv_path_LD="$LD" # Let the user override the test with a path. 13399fi 13400fi 13401 13402LD="$acl_cv_path_LD" 13403if test -n "$LD"; then 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13405$as_echo "$LD" >&6; } 13406else 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13408$as_echo "no" >&6; } 13409fi 13410test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13412$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13413if ${acl_cv_prog_gnu_ld+:} false; then : 13414 $as_echo_n "(cached) " >&6 13415else 13416 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13417case `$LD -v 2>&1 </dev/null` in 13418*GNU* | *'with BFD'*) 13419 acl_cv_prog_gnu_ld=yes 13420 ;; 13421*) 13422 acl_cv_prog_gnu_ld=no 13423 ;; 13424esac 13425fi 13426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 13427$as_echo "$acl_cv_prog_gnu_ld" >&6; } 13428with_gnu_ld=$acl_cv_prog_gnu_ld 13429 13430 13431 13432 13433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 13434$as_echo_n "checking for shared library run path origin... " >&6; } 13435if ${acl_cv_rpath+:} false; then : 13436 $as_echo_n "(cached) " >&6 13437else 13438 13439 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 13440 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 13441 . ./conftest.sh 13442 rm -f ./conftest.sh 13443 acl_cv_rpath=done 13444 13445fi 13446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 13447$as_echo "$acl_cv_rpath" >&6; } 13448 wl="$acl_cv_wl" 13449 acl_libext="$acl_cv_libext" 13450 acl_shlibext="$acl_cv_shlibext" 13451 acl_libname_spec="$acl_cv_libname_spec" 13452 acl_library_names_spec="$acl_cv_library_names_spec" 13453 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 13454 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 13455 acl_hardcode_direct="$acl_cv_hardcode_direct" 13456 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 13457 # Check whether --enable-rpath was given. 13458if test "${enable_rpath+set}" = set; then : 13459 enableval=$enable_rpath; : 13460else 13461 enable_rpath=yes 13462fi 13463 13464 13465 13466 13467 acl_libdirstem=lib 13468 acl_libdirstem2= 13469 case "$host_os" in 13470 solaris*) 13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 13472$as_echo_n "checking for 64-bit host... " >&6; } 13473if ${gl_cv_solaris_64bit+:} false; then : 13474 $as_echo_n "(cached) " >&6 13475else 13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13477/* end confdefs.h. */ 13478 13479#ifdef _LP64 13480sixtyfour bits 13481#endif 13482 13483_ACEOF 13484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13485 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 13486 gl_cv_solaris_64bit=yes 13487else 13488 gl_cv_solaris_64bit=no 13489fi 13490rm -f conftest* 13491 13492 13493fi 13494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 13495$as_echo "$gl_cv_solaris_64bit" >&6; } 13496 if test $gl_cv_solaris_64bit = yes; then 13497 acl_libdirstem=lib/64 13498 case "$host_cpu" in 13499 sparc*) acl_libdirstem2=lib/sparcv9 ;; 13500 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 13501 esac 13502 fi 13503 ;; 13504 *) 13505 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 13506 if test -n "$searchpath"; then 13507 acl_save_IFS="${IFS= }"; IFS=":" 13508 for searchdir in $searchpath; do 13509 if test -d "$searchdir"; then 13510 case "$searchdir" in 13511 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 13512 */../ | */.. ) 13513 # Better ignore directories of this form. They are misleading. 13514 ;; 13515 *) searchdir=`cd "$searchdir" && pwd` 13516 case "$searchdir" in 13517 */lib64 ) acl_libdirstem=lib64 ;; 13518 esac ;; 13519 esac 13520 fi 13521 done 13522 IFS="$acl_save_IFS" 13523 fi 13524 ;; 13525 esac 13526 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 use_additional=yes 13540 13541 acl_save_prefix="$prefix" 13542 prefix="$acl_final_prefix" 13543 acl_save_exec_prefix="$exec_prefix" 13544 exec_prefix="$acl_final_exec_prefix" 13545 13546 eval additional_includedir=\"$includedir\" 13547 eval additional_libdir=\"$libdir\" 13548 13549 exec_prefix="$acl_save_exec_prefix" 13550 prefix="$acl_save_prefix" 13551 13552 13553# Check whether --with-libiconv-prefix was given. 13554if test "${with_libiconv_prefix+set}" = set; then : 13555 withval=$with_libiconv_prefix; 13556 if test "X$withval" = "Xno"; then 13557 use_additional=no 13558 else 13559 if test "X$withval" = "X"; then 13560 13561 acl_save_prefix="$prefix" 13562 prefix="$acl_final_prefix" 13563 acl_save_exec_prefix="$exec_prefix" 13564 exec_prefix="$acl_final_exec_prefix" 13565 13566 eval additional_includedir=\"$includedir\" 13567 eval additional_libdir=\"$libdir\" 13568 13569 exec_prefix="$acl_save_exec_prefix" 13570 prefix="$acl_save_prefix" 13571 13572 else 13573 additional_includedir="$withval/include" 13574 additional_libdir="$withval/$acl_libdirstem" 13575 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 13576 && ! test -d "$withval/$acl_libdirstem"; then 13577 additional_libdir="$withval/$acl_libdirstem2" 13578 fi 13579 fi 13580 fi 13581 13582fi 13583 13584 LIBICONV= 13585 LTLIBICONV= 13586 INCICONV= 13587 LIBICONV_PREFIX= 13588 HAVE_LIBICONV= 13589 rpathdirs= 13590 ltrpathdirs= 13591 names_already_handled= 13592 names_next_round='iconv ' 13593 while test -n "$names_next_round"; do 13594 names_this_round="$names_next_round" 13595 names_next_round= 13596 for name in $names_this_round; do 13597 already_handled= 13598 for n in $names_already_handled; do 13599 if test "$n" = "$name"; then 13600 already_handled=yes 13601 break 13602 fi 13603 done 13604 if test -z "$already_handled"; then 13605 names_already_handled="$names_already_handled $name" 13606 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 13607 eval value=\"\$HAVE_LIB$uppername\" 13608 if test -n "$value"; then 13609 if test "$value" = yes; then 13610 eval value=\"\$LIB$uppername\" 13611 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 13612 eval value=\"\$LTLIB$uppername\" 13613 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 13614 else 13615 : 13616 fi 13617 else 13618 found_dir= 13619 found_la= 13620 found_so= 13621 found_a= 13622 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 13623 if test -n "$acl_shlibext"; then 13624 shrext=".$acl_shlibext" # typically: shrext=.so 13625 else 13626 shrext= 13627 fi 13628 if test $use_additional = yes; then 13629 dir="$additional_libdir" 13630 if test -n "$acl_shlibext"; then 13631 if test -f "$dir/$libname$shrext"; then 13632 found_dir="$dir" 13633 found_so="$dir/$libname$shrext" 13634 else 13635 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13636 ver=`(cd "$dir" && \ 13637 for f in "$libname$shrext".*; do echo "$f"; done \ 13638 | sed -e "s,^$libname$shrext\\\\.,," \ 13639 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13640 | sed 1q ) 2>/dev/null` 13641 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13642 found_dir="$dir" 13643 found_so="$dir/$libname$shrext.$ver" 13644 fi 13645 else 13646 eval library_names=\"$acl_library_names_spec\" 13647 for f in $library_names; do 13648 if test -f "$dir/$f"; then 13649 found_dir="$dir" 13650 found_so="$dir/$f" 13651 break 13652 fi 13653 done 13654 fi 13655 fi 13656 fi 13657 if test "X$found_dir" = "X"; then 13658 if test -f "$dir/$libname.$acl_libext"; then 13659 found_dir="$dir" 13660 found_a="$dir/$libname.$acl_libext" 13661 fi 13662 fi 13663 if test "X$found_dir" != "X"; then 13664 if test -f "$dir/$libname.la"; then 13665 found_la="$dir/$libname.la" 13666 fi 13667 fi 13668 fi 13669 if test "X$found_dir" = "X"; then 13670 for x in $LDFLAGS $LTLIBICONV; do 13671 13672 acl_save_prefix="$prefix" 13673 prefix="$acl_final_prefix" 13674 acl_save_exec_prefix="$exec_prefix" 13675 exec_prefix="$acl_final_exec_prefix" 13676 eval x=\"$x\" 13677 exec_prefix="$acl_save_exec_prefix" 13678 prefix="$acl_save_prefix" 13679 13680 case "$x" in 13681 -L*) 13682 dir=`echo "X$x" | sed -e 's/^X-L//'` 13683 if test -n "$acl_shlibext"; then 13684 if test -f "$dir/$libname$shrext"; then 13685 found_dir="$dir" 13686 found_so="$dir/$libname$shrext" 13687 else 13688 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13689 ver=`(cd "$dir" && \ 13690 for f in "$libname$shrext".*; do echo "$f"; done \ 13691 | sed -e "s,^$libname$shrext\\\\.,," \ 13692 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13693 | sed 1q ) 2>/dev/null` 13694 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13695 found_dir="$dir" 13696 found_so="$dir/$libname$shrext.$ver" 13697 fi 13698 else 13699 eval library_names=\"$acl_library_names_spec\" 13700 for f in $library_names; do 13701 if test -f "$dir/$f"; then 13702 found_dir="$dir" 13703 found_so="$dir/$f" 13704 break 13705 fi 13706 done 13707 fi 13708 fi 13709 fi 13710 if test "X$found_dir" = "X"; then 13711 if test -f "$dir/$libname.$acl_libext"; then 13712 found_dir="$dir" 13713 found_a="$dir/$libname.$acl_libext" 13714 fi 13715 fi 13716 if test "X$found_dir" != "X"; then 13717 if test -f "$dir/$libname.la"; then 13718 found_la="$dir/$libname.la" 13719 fi 13720 fi 13721 ;; 13722 esac 13723 if test "X$found_dir" != "X"; then 13724 break 13725 fi 13726 done 13727 fi 13728 if test "X$found_dir" != "X"; then 13729 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 13730 if test "X$found_so" != "X"; then 13731 if test "$enable_rpath" = no \ 13732 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 13733 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 13734 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13735 else 13736 haveit= 13737 for x in $ltrpathdirs; do 13738 if test "X$x" = "X$found_dir"; then 13739 haveit=yes 13740 break 13741 fi 13742 done 13743 if test -z "$haveit"; then 13744 ltrpathdirs="$ltrpathdirs $found_dir" 13745 fi 13746 if test "$acl_hardcode_direct" = yes; then 13747 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13748 else 13749 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 13750 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13751 haveit= 13752 for x in $rpathdirs; do 13753 if test "X$x" = "X$found_dir"; then 13754 haveit=yes 13755 break 13756 fi 13757 done 13758 if test -z "$haveit"; then 13759 rpathdirs="$rpathdirs $found_dir" 13760 fi 13761 else 13762 haveit= 13763 for x in $LDFLAGS $LIBICONV; do 13764 13765 acl_save_prefix="$prefix" 13766 prefix="$acl_final_prefix" 13767 acl_save_exec_prefix="$exec_prefix" 13768 exec_prefix="$acl_final_exec_prefix" 13769 eval x=\"$x\" 13770 exec_prefix="$acl_save_exec_prefix" 13771 prefix="$acl_save_prefix" 13772 13773 if test "X$x" = "X-L$found_dir"; then 13774 haveit=yes 13775 break 13776 fi 13777 done 13778 if test -z "$haveit"; then 13779 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 13780 fi 13781 if test "$acl_hardcode_minus_L" != no; then 13782 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 13783 else 13784 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13785 fi 13786 fi 13787 fi 13788 fi 13789 else 13790 if test "X$found_a" != "X"; then 13791 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 13792 else 13793 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 13794 fi 13795 fi 13796 additional_includedir= 13797 case "$found_dir" in 13798 */$acl_libdirstem | */$acl_libdirstem/) 13799 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 13800 if test "$name" = 'iconv'; then 13801 LIBICONV_PREFIX="$basedir" 13802 fi 13803 additional_includedir="$basedir/include" 13804 ;; 13805 */$acl_libdirstem2 | */$acl_libdirstem2/) 13806 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 13807 if test "$name" = 'iconv'; then 13808 LIBICONV_PREFIX="$basedir" 13809 fi 13810 additional_includedir="$basedir/include" 13811 ;; 13812 esac 13813 if test "X$additional_includedir" != "X"; then 13814 if test "X$additional_includedir" != "X/usr/include"; then 13815 haveit= 13816 if test "X$additional_includedir" = "X/usr/local/include"; then 13817 if test -n "$GCC"; then 13818 case $host_os in 13819 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13820 esac 13821 fi 13822 fi 13823 if test -z "$haveit"; then 13824 for x in $CPPFLAGS $INCICONV; do 13825 13826 acl_save_prefix="$prefix" 13827 prefix="$acl_final_prefix" 13828 acl_save_exec_prefix="$exec_prefix" 13829 exec_prefix="$acl_final_exec_prefix" 13830 eval x=\"$x\" 13831 exec_prefix="$acl_save_exec_prefix" 13832 prefix="$acl_save_prefix" 13833 13834 if test "X$x" = "X-I$additional_includedir"; then 13835 haveit=yes 13836 break 13837 fi 13838 done 13839 if test -z "$haveit"; then 13840 if test -d "$additional_includedir"; then 13841 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 13842 fi 13843 fi 13844 fi 13845 fi 13846 fi 13847 if test -n "$found_la"; then 13848 save_libdir="$libdir" 13849 case "$found_la" in 13850 */* | *\\*) . "$found_la" ;; 13851 *) . "./$found_la" ;; 13852 esac 13853 libdir="$save_libdir" 13854 for dep in $dependency_libs; do 13855 case "$dep" in 13856 -L*) 13857 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13858 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 13859 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 13860 haveit= 13861 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 13862 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 13863 if test -n "$GCC"; then 13864 case $host_os in 13865 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13866 esac 13867 fi 13868 fi 13869 if test -z "$haveit"; then 13870 haveit= 13871 for x in $LDFLAGS $LIBICONV; do 13872 13873 acl_save_prefix="$prefix" 13874 prefix="$acl_final_prefix" 13875 acl_save_exec_prefix="$exec_prefix" 13876 exec_prefix="$acl_final_exec_prefix" 13877 eval x=\"$x\" 13878 exec_prefix="$acl_save_exec_prefix" 13879 prefix="$acl_save_prefix" 13880 13881 if test "X$x" = "X-L$additional_libdir"; then 13882 haveit=yes 13883 break 13884 fi 13885 done 13886 if test -z "$haveit"; then 13887 if test -d "$additional_libdir"; then 13888 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 13889 fi 13890 fi 13891 haveit= 13892 for x in $LDFLAGS $LTLIBICONV; do 13893 13894 acl_save_prefix="$prefix" 13895 prefix="$acl_final_prefix" 13896 acl_save_exec_prefix="$exec_prefix" 13897 exec_prefix="$acl_final_exec_prefix" 13898 eval x=\"$x\" 13899 exec_prefix="$acl_save_exec_prefix" 13900 prefix="$acl_save_prefix" 13901 13902 if test "X$x" = "X-L$additional_libdir"; then 13903 haveit=yes 13904 break 13905 fi 13906 done 13907 if test -z "$haveit"; then 13908 if test -d "$additional_libdir"; then 13909 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 13910 fi 13911 fi 13912 fi 13913 fi 13914 ;; 13915 -R*) 13916 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13917 if test "$enable_rpath" != no; then 13918 haveit= 13919 for x in $rpathdirs; do 13920 if test "X$x" = "X$dir"; then 13921 haveit=yes 13922 break 13923 fi 13924 done 13925 if test -z "$haveit"; then 13926 rpathdirs="$rpathdirs $dir" 13927 fi 13928 haveit= 13929 for x in $ltrpathdirs; do 13930 if test "X$x" = "X$dir"; then 13931 haveit=yes 13932 break 13933 fi 13934 done 13935 if test -z "$haveit"; then 13936 ltrpathdirs="$ltrpathdirs $dir" 13937 fi 13938 fi 13939 ;; 13940 -l*) 13941 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 13942 ;; 13943 *.la) 13944 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 13945 ;; 13946 *) 13947 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 13948 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 13949 ;; 13950 esac 13951 done 13952 fi 13953 else 13954 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13955 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 13956 fi 13957 fi 13958 fi 13959 done 13960 done 13961 if test "X$rpathdirs" != "X"; then 13962 if test -n "$acl_hardcode_libdir_separator"; then 13963 alldirs= 13964 for found_dir in $rpathdirs; do 13965 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 13966 done 13967 acl_save_libdir="$libdir" 13968 libdir="$alldirs" 13969 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13970 libdir="$acl_save_libdir" 13971 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 13972 else 13973 for found_dir in $rpathdirs; do 13974 acl_save_libdir="$libdir" 13975 libdir="$found_dir" 13976 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13977 libdir="$acl_save_libdir" 13978 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 13979 done 13980 fi 13981 fi 13982 if test "X$ltrpathdirs" != "X"; then 13983 for found_dir in $ltrpathdirs; do 13984 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 13985 done 13986 fi 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 14019$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 14020if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 14021 $as_echo_n "(cached) " >&6 14022else 14023 gt_save_LIBS="$LIBS" 14024 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14026/* end confdefs.h. */ 14027#include <CoreFoundation/CFPreferences.h> 14028int 14029main () 14030{ 14031CFPreferencesCopyAppValue(NULL, NULL) 14032 ; 14033 return 0; 14034} 14035_ACEOF 14036if ac_fn_c_try_link "$LINENO"; then : 14037 gt_cv_func_CFPreferencesCopyAppValue=yes 14038else 14039 gt_cv_func_CFPreferencesCopyAppValue=no 14040fi 14041rm -f core conftest.err conftest.$ac_objext \ 14042 conftest$ac_exeext conftest.$ac_ext 14043 LIBS="$gt_save_LIBS" 14044fi 14045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 14046$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 14047 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 14048 14049$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 14050 14051 fi 14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 14053$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 14054if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 14055 $as_echo_n "(cached) " >&6 14056else 14057 gt_save_LIBS="$LIBS" 14058 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 14059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14060/* end confdefs.h. */ 14061#include <CoreFoundation/CFLocale.h> 14062int 14063main () 14064{ 14065CFLocaleCopyCurrent(); 14066 ; 14067 return 0; 14068} 14069_ACEOF 14070if ac_fn_c_try_link "$LINENO"; then : 14071 gt_cv_func_CFLocaleCopyCurrent=yes 14072else 14073 gt_cv_func_CFLocaleCopyCurrent=no 14074fi 14075rm -f core conftest.err conftest.$ac_objext \ 14076 conftest$ac_exeext conftest.$ac_ext 14077 LIBS="$gt_save_LIBS" 14078fi 14079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 14080$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 14081 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 14082 14083$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 14084 14085 fi 14086 INTL_MACOSX_LIBS= 14087 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 14088 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 14089 fi 14090 14091 14092 14093 14094 14095 14096 LIBINTL= 14097 LTLIBINTL= 14098 POSUB= 14099 14100 case " $gt_needs " in 14101 *" need-formatstring-macros "*) gt_api_version=3 ;; 14102 *" need-ngettext "*) gt_api_version=2 ;; 14103 *) gt_api_version=1 ;; 14104 esac 14105 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 14106 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 14107 14108 if test "$USE_NLS" = "yes"; then 14109 gt_use_preinstalled_gnugettext=no 14110 14111 14112 if test $gt_api_version -ge 3; then 14113 gt_revision_test_code=' 14114#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 14115#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 14116#endif 14117typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 14118' 14119 else 14120 gt_revision_test_code= 14121 fi 14122 if test $gt_api_version -ge 2; then 14123 gt_expression_test_code=' + * ngettext ("", "", 0)' 14124 else 14125 gt_expression_test_code= 14126 fi 14127 14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 14129$as_echo_n "checking for GNU gettext in libc... " >&6; } 14130if eval \${$gt_func_gnugettext_libc+:} false; then : 14131 $as_echo_n "(cached) " >&6 14132else 14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14134/* end confdefs.h. */ 14135 14136#include <libintl.h> 14137$gt_revision_test_code 14138extern int _nl_msg_cat_cntr; 14139extern int *_nl_domain_bindings; 14140 14141int 14142main () 14143{ 14144 14145bindtextdomain ("", ""); 14146return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 14147 14148 ; 14149 return 0; 14150} 14151_ACEOF 14152if ac_fn_c_try_link "$LINENO"; then : 14153 eval "$gt_func_gnugettext_libc=yes" 14154else 14155 eval "$gt_func_gnugettext_libc=no" 14156fi 14157rm -f core conftest.err conftest.$ac_objext \ 14158 conftest$ac_exeext conftest.$ac_ext 14159fi 14160eval ac_res=\$$gt_func_gnugettext_libc 14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14162$as_echo "$ac_res" >&6; } 14163 14164 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 14165 14166 14167 14168 14169 14170 am_save_CPPFLAGS="$CPPFLAGS" 14171 14172 for element in $INCICONV; do 14173 haveit= 14174 for x in $CPPFLAGS; do 14175 14176 acl_save_prefix="$prefix" 14177 prefix="$acl_final_prefix" 14178 acl_save_exec_prefix="$exec_prefix" 14179 exec_prefix="$acl_final_exec_prefix" 14180 eval x=\"$x\" 14181 exec_prefix="$acl_save_exec_prefix" 14182 prefix="$acl_save_prefix" 14183 14184 if test "X$x" = "X$element"; then 14185 haveit=yes 14186 break 14187 fi 14188 done 14189 if test -z "$haveit"; then 14190 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 14191 fi 14192 done 14193 14194 14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 14196$as_echo_n "checking for iconv... " >&6; } 14197if ${am_cv_func_iconv+:} false; then : 14198 $as_echo_n "(cached) " >&6 14199else 14200 14201 am_cv_func_iconv="no, consider installing GNU libiconv" 14202 am_cv_lib_iconv=no 14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14204/* end confdefs.h. */ 14205 14206#include <stdlib.h> 14207#include <iconv.h> 14208 14209int 14210main () 14211{ 14212iconv_t cd = iconv_open("",""); 14213 iconv(cd,NULL,NULL,NULL,NULL); 14214 iconv_close(cd); 14215 ; 14216 return 0; 14217} 14218_ACEOF 14219if ac_fn_c_try_link "$LINENO"; then : 14220 am_cv_func_iconv=yes 14221fi 14222rm -f core conftest.err conftest.$ac_objext \ 14223 conftest$ac_exeext conftest.$ac_ext 14224 if test "$am_cv_func_iconv" != yes; then 14225 am_save_LIBS="$LIBS" 14226 LIBS="$LIBS $LIBICONV" 14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14228/* end confdefs.h. */ 14229 14230#include <stdlib.h> 14231#include <iconv.h> 14232 14233int 14234main () 14235{ 14236iconv_t cd = iconv_open("",""); 14237 iconv(cd,NULL,NULL,NULL,NULL); 14238 iconv_close(cd); 14239 ; 14240 return 0; 14241} 14242_ACEOF 14243if ac_fn_c_try_link "$LINENO"; then : 14244 am_cv_lib_iconv=yes 14245 am_cv_func_iconv=yes 14246fi 14247rm -f core conftest.err conftest.$ac_objext \ 14248 conftest$ac_exeext conftest.$ac_ext 14249 LIBS="$am_save_LIBS" 14250 fi 14251 14252fi 14253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 14254$as_echo "$am_cv_func_iconv" >&6; } 14255 if test "$am_cv_func_iconv" = yes; then 14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 14257$as_echo_n "checking for working iconv... " >&6; } 14258if ${am_cv_func_iconv_works+:} false; then : 14259 $as_echo_n "(cached) " >&6 14260else 14261 14262 am_save_LIBS="$LIBS" 14263 if test $am_cv_lib_iconv = yes; then 14264 LIBS="$LIBS $LIBICONV" 14265 fi 14266 if test "$cross_compiling" = yes; then : 14267 14268 case "$host_os" in 14269 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 14270 *) am_cv_func_iconv_works="guessing yes" ;; 14271 esac 14272 14273else 14274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14275/* end confdefs.h. */ 14276 14277#include <iconv.h> 14278#include <string.h> 14279int main () 14280{ 14281 int result = 0; 14282 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 14283 returns. */ 14284 { 14285 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 14286 if (cd_utf8_to_88591 != (iconv_t)(-1)) 14287 { 14288 static const char input[] = "\342\202\254"; /* EURO SIGN */ 14289 char buf[10]; 14290 const char *inptr = input; 14291 size_t inbytesleft = strlen (input); 14292 char *outptr = buf; 14293 size_t outbytesleft = sizeof (buf); 14294 size_t res = iconv (cd_utf8_to_88591, 14295 (char **) &inptr, &inbytesleft, 14296 &outptr, &outbytesleft); 14297 if (res == 0) 14298 result |= 1; 14299 iconv_close (cd_utf8_to_88591); 14300 } 14301 } 14302 /* Test against Solaris 10 bug: Failures are not distinguishable from 14303 successful returns. */ 14304 { 14305 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 14306 if (cd_ascii_to_88591 != (iconv_t)(-1)) 14307 { 14308 static const char input[] = "\263"; 14309 char buf[10]; 14310 const char *inptr = input; 14311 size_t inbytesleft = strlen (input); 14312 char *outptr = buf; 14313 size_t outbytesleft = sizeof (buf); 14314 size_t res = iconv (cd_ascii_to_88591, 14315 (char **) &inptr, &inbytesleft, 14316 &outptr, &outbytesleft); 14317 if (res == 0) 14318 result |= 2; 14319 iconv_close (cd_ascii_to_88591); 14320 } 14321 } 14322 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 14323 { 14324 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 14325 if (cd_88591_to_utf8 != (iconv_t)(-1)) 14326 { 14327 static const char input[] = "\304"; 14328 static char buf[2] = { (char)0xDE, (char)0xAD }; 14329 const char *inptr = input; 14330 size_t inbytesleft = 1; 14331 char *outptr = buf; 14332 size_t outbytesleft = 1; 14333 size_t res = iconv (cd_88591_to_utf8, 14334 (char **) &inptr, &inbytesleft, 14335 &outptr, &outbytesleft); 14336 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 14337 result |= 4; 14338 iconv_close (cd_88591_to_utf8); 14339 } 14340 } 14341#if 0 /* This bug could be worked around by the caller. */ 14342 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 14343 { 14344 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 14345 if (cd_88591_to_utf8 != (iconv_t)(-1)) 14346 { 14347 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 14348 char buf[50]; 14349 const char *inptr = input; 14350 size_t inbytesleft = strlen (input); 14351 char *outptr = buf; 14352 size_t outbytesleft = sizeof (buf); 14353 size_t res = iconv (cd_88591_to_utf8, 14354 (char **) &inptr, &inbytesleft, 14355 &outptr, &outbytesleft); 14356 if ((int)res > 0) 14357 result |= 8; 14358 iconv_close (cd_88591_to_utf8); 14359 } 14360 } 14361#endif 14362 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 14363 provided. */ 14364 if (/* Try standardized names. */ 14365 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 14366 /* Try IRIX, OSF/1 names. */ 14367 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 14368 /* Try AIX names. */ 14369 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 14370 /* Try HP-UX names. */ 14371 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 14372 result |= 16; 14373 return result; 14374} 14375_ACEOF 14376if ac_fn_c_try_run "$LINENO"; then : 14377 am_cv_func_iconv_works=yes 14378else 14379 am_cv_func_iconv_works=no 14380fi 14381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14382 conftest.$ac_objext conftest.beam conftest.$ac_ext 14383fi 14384 14385 LIBS="$am_save_LIBS" 14386 14387fi 14388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 14389$as_echo "$am_cv_func_iconv_works" >&6; } 14390 case "$am_cv_func_iconv_works" in 14391 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 14392 *) am_func_iconv=yes ;; 14393 esac 14394 else 14395 am_func_iconv=no am_cv_lib_iconv=no 14396 fi 14397 if test "$am_func_iconv" = yes; then 14398 14399$as_echo "#define HAVE_ICONV 1" >>confdefs.h 14400 14401 fi 14402 if test "$am_cv_lib_iconv" = yes; then 14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 14404$as_echo_n "checking how to link with libiconv... " >&6; } 14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 14406$as_echo "$LIBICONV" >&6; } 14407 else 14408 CPPFLAGS="$am_save_CPPFLAGS" 14409 LIBICONV= 14410 LTLIBICONV= 14411 fi 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 use_additional=yes 14424 14425 acl_save_prefix="$prefix" 14426 prefix="$acl_final_prefix" 14427 acl_save_exec_prefix="$exec_prefix" 14428 exec_prefix="$acl_final_exec_prefix" 14429 14430 eval additional_includedir=\"$includedir\" 14431 eval additional_libdir=\"$libdir\" 14432 14433 exec_prefix="$acl_save_exec_prefix" 14434 prefix="$acl_save_prefix" 14435 14436 14437# Check whether --with-libintl-prefix was given. 14438if test "${with_libintl_prefix+set}" = set; then : 14439 withval=$with_libintl_prefix; 14440 if test "X$withval" = "Xno"; then 14441 use_additional=no 14442 else 14443 if test "X$withval" = "X"; then 14444 14445 acl_save_prefix="$prefix" 14446 prefix="$acl_final_prefix" 14447 acl_save_exec_prefix="$exec_prefix" 14448 exec_prefix="$acl_final_exec_prefix" 14449 14450 eval additional_includedir=\"$includedir\" 14451 eval additional_libdir=\"$libdir\" 14452 14453 exec_prefix="$acl_save_exec_prefix" 14454 prefix="$acl_save_prefix" 14455 14456 else 14457 additional_includedir="$withval/include" 14458 additional_libdir="$withval/$acl_libdirstem" 14459 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 14460 && ! test -d "$withval/$acl_libdirstem"; then 14461 additional_libdir="$withval/$acl_libdirstem2" 14462 fi 14463 fi 14464 fi 14465 14466fi 14467 14468 LIBINTL= 14469 LTLIBINTL= 14470 INCINTL= 14471 LIBINTL_PREFIX= 14472 HAVE_LIBINTL= 14473 rpathdirs= 14474 ltrpathdirs= 14475 names_already_handled= 14476 names_next_round='intl ' 14477 while test -n "$names_next_round"; do 14478 names_this_round="$names_next_round" 14479 names_next_round= 14480 for name in $names_this_round; do 14481 already_handled= 14482 for n in $names_already_handled; do 14483 if test "$n" = "$name"; then 14484 already_handled=yes 14485 break 14486 fi 14487 done 14488 if test -z "$already_handled"; then 14489 names_already_handled="$names_already_handled $name" 14490 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 14491 eval value=\"\$HAVE_LIB$uppername\" 14492 if test -n "$value"; then 14493 if test "$value" = yes; then 14494 eval value=\"\$LIB$uppername\" 14495 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 14496 eval value=\"\$LTLIB$uppername\" 14497 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 14498 else 14499 : 14500 fi 14501 else 14502 found_dir= 14503 found_la= 14504 found_so= 14505 found_a= 14506 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 14507 if test -n "$acl_shlibext"; then 14508 shrext=".$acl_shlibext" # typically: shrext=.so 14509 else 14510 shrext= 14511 fi 14512 if test $use_additional = yes; then 14513 dir="$additional_libdir" 14514 if test -n "$acl_shlibext"; then 14515 if test -f "$dir/$libname$shrext"; then 14516 found_dir="$dir" 14517 found_so="$dir/$libname$shrext" 14518 else 14519 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 14520 ver=`(cd "$dir" && \ 14521 for f in "$libname$shrext".*; do echo "$f"; done \ 14522 | sed -e "s,^$libname$shrext\\\\.,," \ 14523 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 14524 | sed 1q ) 2>/dev/null` 14525 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 14526 found_dir="$dir" 14527 found_so="$dir/$libname$shrext.$ver" 14528 fi 14529 else 14530 eval library_names=\"$acl_library_names_spec\" 14531 for f in $library_names; do 14532 if test -f "$dir/$f"; then 14533 found_dir="$dir" 14534 found_so="$dir/$f" 14535 break 14536 fi 14537 done 14538 fi 14539 fi 14540 fi 14541 if test "X$found_dir" = "X"; then 14542 if test -f "$dir/$libname.$acl_libext"; then 14543 found_dir="$dir" 14544 found_a="$dir/$libname.$acl_libext" 14545 fi 14546 fi 14547 if test "X$found_dir" != "X"; then 14548 if test -f "$dir/$libname.la"; then 14549 found_la="$dir/$libname.la" 14550 fi 14551 fi 14552 fi 14553 if test "X$found_dir" = "X"; then 14554 for x in $LDFLAGS $LTLIBINTL; do 14555 14556 acl_save_prefix="$prefix" 14557 prefix="$acl_final_prefix" 14558 acl_save_exec_prefix="$exec_prefix" 14559 exec_prefix="$acl_final_exec_prefix" 14560 eval x=\"$x\" 14561 exec_prefix="$acl_save_exec_prefix" 14562 prefix="$acl_save_prefix" 14563 14564 case "$x" in 14565 -L*) 14566 dir=`echo "X$x" | sed -e 's/^X-L//'` 14567 if test -n "$acl_shlibext"; then 14568 if test -f "$dir/$libname$shrext"; then 14569 found_dir="$dir" 14570 found_so="$dir/$libname$shrext" 14571 else 14572 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 14573 ver=`(cd "$dir" && \ 14574 for f in "$libname$shrext".*; do echo "$f"; done \ 14575 | sed -e "s,^$libname$shrext\\\\.,," \ 14576 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 14577 | sed 1q ) 2>/dev/null` 14578 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 14579 found_dir="$dir" 14580 found_so="$dir/$libname$shrext.$ver" 14581 fi 14582 else 14583 eval library_names=\"$acl_library_names_spec\" 14584 for f in $library_names; do 14585 if test -f "$dir/$f"; then 14586 found_dir="$dir" 14587 found_so="$dir/$f" 14588 break 14589 fi 14590 done 14591 fi 14592 fi 14593 fi 14594 if test "X$found_dir" = "X"; then 14595 if test -f "$dir/$libname.$acl_libext"; then 14596 found_dir="$dir" 14597 found_a="$dir/$libname.$acl_libext" 14598 fi 14599 fi 14600 if test "X$found_dir" != "X"; then 14601 if test -f "$dir/$libname.la"; then 14602 found_la="$dir/$libname.la" 14603 fi 14604 fi 14605 ;; 14606 esac 14607 if test "X$found_dir" != "X"; then 14608 break 14609 fi 14610 done 14611 fi 14612 if test "X$found_dir" != "X"; then 14613 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 14614 if test "X$found_so" != "X"; then 14615 if test "$enable_rpath" = no \ 14616 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 14617 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 14618 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14619 else 14620 haveit= 14621 for x in $ltrpathdirs; do 14622 if test "X$x" = "X$found_dir"; then 14623 haveit=yes 14624 break 14625 fi 14626 done 14627 if test -z "$haveit"; then 14628 ltrpathdirs="$ltrpathdirs $found_dir" 14629 fi 14630 if test "$acl_hardcode_direct" = yes; then 14631 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14632 else 14633 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 14634 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14635 haveit= 14636 for x in $rpathdirs; do 14637 if test "X$x" = "X$found_dir"; then 14638 haveit=yes 14639 break 14640 fi 14641 done 14642 if test -z "$haveit"; then 14643 rpathdirs="$rpathdirs $found_dir" 14644 fi 14645 else 14646 haveit= 14647 for x in $LDFLAGS $LIBINTL; do 14648 14649 acl_save_prefix="$prefix" 14650 prefix="$acl_final_prefix" 14651 acl_save_exec_prefix="$exec_prefix" 14652 exec_prefix="$acl_final_exec_prefix" 14653 eval x=\"$x\" 14654 exec_prefix="$acl_save_exec_prefix" 14655 prefix="$acl_save_prefix" 14656 14657 if test "X$x" = "X-L$found_dir"; then 14658 haveit=yes 14659 break 14660 fi 14661 done 14662 if test -z "$haveit"; then 14663 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 14664 fi 14665 if test "$acl_hardcode_minus_L" != no; then 14666 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 14667 else 14668 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14669 fi 14670 fi 14671 fi 14672 fi 14673 else 14674 if test "X$found_a" != "X"; then 14675 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 14676 else 14677 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 14678 fi 14679 fi 14680 additional_includedir= 14681 case "$found_dir" in 14682 */$acl_libdirstem | */$acl_libdirstem/) 14683 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 14684 if test "$name" = 'intl'; then 14685 LIBINTL_PREFIX="$basedir" 14686 fi 14687 additional_includedir="$basedir/include" 14688 ;; 14689 */$acl_libdirstem2 | */$acl_libdirstem2/) 14690 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 14691 if test "$name" = 'intl'; then 14692 LIBINTL_PREFIX="$basedir" 14693 fi 14694 additional_includedir="$basedir/include" 14695 ;; 14696 esac 14697 if test "X$additional_includedir" != "X"; then 14698 if test "X$additional_includedir" != "X/usr/include"; then 14699 haveit= 14700 if test "X$additional_includedir" = "X/usr/local/include"; then 14701 if test -n "$GCC"; then 14702 case $host_os in 14703 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 14704 esac 14705 fi 14706 fi 14707 if test -z "$haveit"; then 14708 for x in $CPPFLAGS $INCINTL; do 14709 14710 acl_save_prefix="$prefix" 14711 prefix="$acl_final_prefix" 14712 acl_save_exec_prefix="$exec_prefix" 14713 exec_prefix="$acl_final_exec_prefix" 14714 eval x=\"$x\" 14715 exec_prefix="$acl_save_exec_prefix" 14716 prefix="$acl_save_prefix" 14717 14718 if test "X$x" = "X-I$additional_includedir"; then 14719 haveit=yes 14720 break 14721 fi 14722 done 14723 if test -z "$haveit"; then 14724 if test -d "$additional_includedir"; then 14725 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 14726 fi 14727 fi 14728 fi 14729 fi 14730 fi 14731 if test -n "$found_la"; then 14732 save_libdir="$libdir" 14733 case "$found_la" in 14734 */* | *\\*) . "$found_la" ;; 14735 *) . "./$found_la" ;; 14736 esac 14737 libdir="$save_libdir" 14738 for dep in $dependency_libs; do 14739 case "$dep" in 14740 -L*) 14741 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 14742 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 14743 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 14744 haveit= 14745 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 14746 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 14747 if test -n "$GCC"; then 14748 case $host_os in 14749 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 14750 esac 14751 fi 14752 fi 14753 if test -z "$haveit"; then 14754 haveit= 14755 for x in $LDFLAGS $LIBINTL; do 14756 14757 acl_save_prefix="$prefix" 14758 prefix="$acl_final_prefix" 14759 acl_save_exec_prefix="$exec_prefix" 14760 exec_prefix="$acl_final_exec_prefix" 14761 eval x=\"$x\" 14762 exec_prefix="$acl_save_exec_prefix" 14763 prefix="$acl_save_prefix" 14764 14765 if test "X$x" = "X-L$additional_libdir"; then 14766 haveit=yes 14767 break 14768 fi 14769 done 14770 if test -z "$haveit"; then 14771 if test -d "$additional_libdir"; then 14772 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 14773 fi 14774 fi 14775 haveit= 14776 for x in $LDFLAGS $LTLIBINTL; do 14777 14778 acl_save_prefix="$prefix" 14779 prefix="$acl_final_prefix" 14780 acl_save_exec_prefix="$exec_prefix" 14781 exec_prefix="$acl_final_exec_prefix" 14782 eval x=\"$x\" 14783 exec_prefix="$acl_save_exec_prefix" 14784 prefix="$acl_save_prefix" 14785 14786 if test "X$x" = "X-L$additional_libdir"; then 14787 haveit=yes 14788 break 14789 fi 14790 done 14791 if test -z "$haveit"; then 14792 if test -d "$additional_libdir"; then 14793 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 14794 fi 14795 fi 14796 fi 14797 fi 14798 ;; 14799 -R*) 14800 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14801 if test "$enable_rpath" != no; then 14802 haveit= 14803 for x in $rpathdirs; do 14804 if test "X$x" = "X$dir"; then 14805 haveit=yes 14806 break 14807 fi 14808 done 14809 if test -z "$haveit"; then 14810 rpathdirs="$rpathdirs $dir" 14811 fi 14812 haveit= 14813 for x in $ltrpathdirs; do 14814 if test "X$x" = "X$dir"; then 14815 haveit=yes 14816 break 14817 fi 14818 done 14819 if test -z "$haveit"; then 14820 ltrpathdirs="$ltrpathdirs $dir" 14821 fi 14822 fi 14823 ;; 14824 -l*) 14825 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14826 ;; 14827 *.la) 14828 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14829 ;; 14830 *) 14831 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 14832 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 14833 ;; 14834 esac 14835 done 14836 fi 14837 else 14838 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14839 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 14840 fi 14841 fi 14842 fi 14843 done 14844 done 14845 if test "X$rpathdirs" != "X"; then 14846 if test -n "$acl_hardcode_libdir_separator"; then 14847 alldirs= 14848 for found_dir in $rpathdirs; do 14849 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 14850 done 14851 acl_save_libdir="$libdir" 14852 libdir="$alldirs" 14853 eval flag=\"$acl_hardcode_libdir_flag_spec\" 14854 libdir="$acl_save_libdir" 14855 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14856 else 14857 for found_dir in $rpathdirs; do 14858 acl_save_libdir="$libdir" 14859 libdir="$found_dir" 14860 eval flag=\"$acl_hardcode_libdir_flag_spec\" 14861 libdir="$acl_save_libdir" 14862 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14863 done 14864 fi 14865 fi 14866 if test "X$ltrpathdirs" != "X"; then 14867 for found_dir in $ltrpathdirs; do 14868 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 14869 done 14870 fi 14871 14872 14873 14874 14875 14876 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 14878$as_echo_n "checking for GNU gettext in libintl... " >&6; } 14879if eval \${$gt_func_gnugettext_libintl+:} false; then : 14880 $as_echo_n "(cached) " >&6 14881else 14882 gt_save_CPPFLAGS="$CPPFLAGS" 14883 CPPFLAGS="$CPPFLAGS $INCINTL" 14884 gt_save_LIBS="$LIBS" 14885 LIBS="$LIBS $LIBINTL" 14886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14887/* end confdefs.h. */ 14888 14889#include <libintl.h> 14890$gt_revision_test_code 14891extern int _nl_msg_cat_cntr; 14892extern 14893#ifdef __cplusplus 14894"C" 14895#endif 14896const char *_nl_expand_alias (const char *); 14897 14898int 14899main () 14900{ 14901 14902bindtextdomain ("", ""); 14903return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 14904 14905 ; 14906 return 0; 14907} 14908_ACEOF 14909if ac_fn_c_try_link "$LINENO"; then : 14910 eval "$gt_func_gnugettext_libintl=yes" 14911else 14912 eval "$gt_func_gnugettext_libintl=no" 14913fi 14914rm -f core conftest.err conftest.$ac_objext \ 14915 conftest$ac_exeext conftest.$ac_ext 14916 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 14917 LIBS="$LIBS $LIBICONV" 14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14919/* end confdefs.h. */ 14920 14921#include <libintl.h> 14922$gt_revision_test_code 14923extern int _nl_msg_cat_cntr; 14924extern 14925#ifdef __cplusplus 14926"C" 14927#endif 14928const char *_nl_expand_alias (const char *); 14929 14930int 14931main () 14932{ 14933 14934bindtextdomain ("", ""); 14935return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 14936 14937 ; 14938 return 0; 14939} 14940_ACEOF 14941if ac_fn_c_try_link "$LINENO"; then : 14942 LIBINTL="$LIBINTL $LIBICONV" 14943 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 14944 eval "$gt_func_gnugettext_libintl=yes" 14945 14946fi 14947rm -f core conftest.err conftest.$ac_objext \ 14948 conftest$ac_exeext conftest.$ac_ext 14949 fi 14950 CPPFLAGS="$gt_save_CPPFLAGS" 14951 LIBS="$gt_save_LIBS" 14952fi 14953eval ac_res=\$$gt_func_gnugettext_libintl 14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14955$as_echo "$ac_res" >&6; } 14956 fi 14957 14958 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 14959 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 14960 && test "$PACKAGE" != gettext-runtime \ 14961 && test "$PACKAGE" != gettext-tools; }; then 14962 gt_use_preinstalled_gnugettext=yes 14963 else 14964 LIBINTL= 14965 LTLIBINTL= 14966 INCINTL= 14967 fi 14968 14969 14970 14971 if test -n "$INTL_MACOSX_LIBS"; then 14972 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14973 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14974 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 14975 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 14976 fi 14977 fi 14978 14979 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14980 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14981 14982$as_echo "#define ENABLE_NLS 1" >>confdefs.h 14983 14984 else 14985 USE_NLS=no 14986 fi 14987 fi 14988 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 14990$as_echo_n "checking whether to use NLS... " >&6; } 14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 14992$as_echo "$USE_NLS" >&6; } 14993 if test "$USE_NLS" = "yes"; then 14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 14995$as_echo_n "checking where the gettext function comes from... " >&6; } 14996 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 14997 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 14998 gt_source="external libintl" 14999 else 15000 gt_source="libc" 15001 fi 15002 else 15003 gt_source="included intl directory" 15004 fi 15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 15006$as_echo "$gt_source" >&6; } 15007 fi 15008 15009 if test "$USE_NLS" = "yes"; then 15010 15011 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 15012 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 15014$as_echo_n "checking how to link with libintl... " >&6; } 15015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 15016$as_echo "$LIBINTL" >&6; } 15017 15018 for element in $INCINTL; do 15019 haveit= 15020 for x in $CPPFLAGS; do 15021 15022 acl_save_prefix="$prefix" 15023 prefix="$acl_final_prefix" 15024 acl_save_exec_prefix="$exec_prefix" 15025 exec_prefix="$acl_final_exec_prefix" 15026 eval x=\"$x\" 15027 exec_prefix="$acl_save_exec_prefix" 15028 prefix="$acl_save_prefix" 15029 15030 if test "X$x" = "X$element"; then 15031 haveit=yes 15032 break 15033 fi 15034 done 15035 if test -z "$haveit"; then 15036 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 15037 fi 15038 done 15039 15040 fi 15041 15042 15043$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 15044 15045 15046$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 15047 15048 fi 15049 15050 POSUB=po 15051 fi 15052 15053 15054 15055 INTLLIBS="$LIBINTL" 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15072 if test -n "$ac_tool_prefix"; then 15073 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15074set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15076$as_echo_n "checking for $ac_word... " >&6; } 15077if ${ac_cv_path_PKG_CONFIG+:} false; then : 15078 $as_echo_n "(cached) " >&6 15079else 15080 case $PKG_CONFIG in 15081 [\\/]* | ?:[\\/]*) 15082 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15083 ;; 15084 *) 15085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15086for as_dir in $PATH 15087do 15088 IFS=$as_save_IFS 15089 test -z "$as_dir" && as_dir=. 15090 for ac_exec_ext in '' $ac_executable_extensions; do 15091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15092 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15094 break 2 15095 fi 15096done 15097 done 15098IFS=$as_save_IFS 15099 15100 ;; 15101esac 15102fi 15103PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15104if test -n "$PKG_CONFIG"; then 15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15106$as_echo "$PKG_CONFIG" >&6; } 15107else 15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15109$as_echo "no" >&6; } 15110fi 15111 15112 15113fi 15114if test -z "$ac_cv_path_PKG_CONFIG"; then 15115 ac_pt_PKG_CONFIG=$PKG_CONFIG 15116 # Extract the first word of "pkg-config", so it can be a program name with args. 15117set dummy pkg-config; ac_word=$2 15118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15119$as_echo_n "checking for $ac_word... " >&6; } 15120if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15121 $as_echo_n "(cached) " >&6 15122else 15123 case $ac_pt_PKG_CONFIG in 15124 [\\/]* | ?:[\\/]*) 15125 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15126 ;; 15127 *) 15128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15129for as_dir in $PATH 15130do 15131 IFS=$as_save_IFS 15132 test -z "$as_dir" && as_dir=. 15133 for ac_exec_ext in '' $ac_executable_extensions; do 15134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15135 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15137 break 2 15138 fi 15139done 15140 done 15141IFS=$as_save_IFS 15142 15143 ;; 15144esac 15145fi 15146ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15147if test -n "$ac_pt_PKG_CONFIG"; then 15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15149$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15150else 15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15152$as_echo "no" >&6; } 15153fi 15154 15155 if test "x$ac_pt_PKG_CONFIG" = x; then 15156 PKG_CONFIG="" 15157 else 15158 case $cross_compiling:$ac_tool_warned in 15159yes:) 15160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15162ac_tool_warned=yes ;; 15163esac 15164 PKG_CONFIG=$ac_pt_PKG_CONFIG 15165 fi 15166else 15167 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15168fi 15169 15170fi 15171if test -n "$PKG_CONFIG"; then 15172 _pkg_min_version=0.9.0 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15174$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15175 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15177$as_echo "yes" >&6; } 15178 else 15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15180$as_echo "no" >&6; } 15181 PKG_CONFIG="" 15182 fi 15183fi 15184 15185 15186 15187 gtk_doc_requires="gtk-doc >= 1.14" 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5 15189$as_echo_n "checking for gtk-doc... " >&6; } 15190 if test -n "$PKG_CONFIG" && \ 15191 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5 15192 ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5 15193 ac_status=$? 15194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15195 test $ac_status = 0; }; then 15196 have_gtk_doc=yes 15197else 15198 have_gtk_doc=no 15199fi 15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5 15201$as_echo "$have_gtk_doc" >&6; } 15202 15203 if test "$have_gtk_doc" = "no"; then 15204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 15205 You will not be able to create source packages with 'make dist' 15206 because $gtk_doc_requires is not found." >&5 15207$as_echo "$as_me: WARNING: 15208 You will not be able to create source packages with 'make dist' 15209 because $gtk_doc_requires is not found." >&2;} 15210 fi 15211 15212 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 15213set dummy gtkdoc-check; ac_word=$2 15214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15215$as_echo_n "checking for $ac_word... " >&6; } 15216if ${ac_cv_prog_GTKDOC_CHECK+:} false; then : 15217 $as_echo_n "(cached) " >&6 15218else 15219 if test -n "$GTKDOC_CHECK"; then 15220 ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test. 15221else 15222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15223for as_dir in $PATH 15224do 15225 IFS=$as_save_IFS 15226 test -z "$as_dir" && as_dir=. 15227 for ac_exec_ext in '' $ac_executable_extensions; do 15228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15229 ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test" 15230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15231 break 2 15232 fi 15233done 15234 done 15235IFS=$as_save_IFS 15236 15237fi 15238fi 15239GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK 15240if test -n "$GTKDOC_CHECK"; then 15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 15242$as_echo "$GTKDOC_CHECK" >&6; } 15243else 15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15245$as_echo "no" >&6; } 15246fi 15247 15248 15249 # Extract the first word of "gtkdoc-check", so it can be a program name with args. 15250set dummy gtkdoc-check; ac_word=$2 15251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15252$as_echo_n "checking for $ac_word... " >&6; } 15253if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then : 15254 $as_echo_n "(cached) " >&6 15255else 15256 case $GTKDOC_CHECK_PATH in 15257 [\\/]* | ?:[\\/]*) 15258 ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path. 15259 ;; 15260 *) 15261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15262for as_dir in $PATH 15263do 15264 IFS=$as_save_IFS 15265 test -z "$as_dir" && as_dir=. 15266 for ac_exec_ext in '' $ac_executable_extensions; do 15267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15268 ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext" 15269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15270 break 2 15271 fi 15272done 15273 done 15274IFS=$as_save_IFS 15275 15276 ;; 15277esac 15278fi 15279GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH 15280if test -n "$GTKDOC_CHECK_PATH"; then 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5 15282$as_echo "$GTKDOC_CHECK_PATH" >&6; } 15283else 15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15285$as_echo "no" >&6; } 15286fi 15287 15288 15289 for ac_prog in gtkdoc-rebase 15290do 15291 # Extract the first word of "$ac_prog", so it can be a program name with args. 15292set dummy $ac_prog; ac_word=$2 15293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15294$as_echo_n "checking for $ac_word... " >&6; } 15295if ${ac_cv_path_GTKDOC_REBASE+:} false; then : 15296 $as_echo_n "(cached) " >&6 15297else 15298 case $GTKDOC_REBASE in 15299 [\\/]* | ?:[\\/]*) 15300 ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. 15301 ;; 15302 *) 15303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15304for as_dir in $PATH 15305do 15306 IFS=$as_save_IFS 15307 test -z "$as_dir" && as_dir=. 15308 for ac_exec_ext in '' $ac_executable_extensions; do 15309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15310 ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" 15311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15312 break 2 15313 fi 15314done 15315 done 15316IFS=$as_save_IFS 15317 15318 ;; 15319esac 15320fi 15321GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE 15322if test -n "$GTKDOC_REBASE"; then 15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 15324$as_echo "$GTKDOC_REBASE" >&6; } 15325else 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15327$as_echo "no" >&6; } 15328fi 15329 15330 15331 test -n "$GTKDOC_REBASE" && break 15332done 15333test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" 15334 15335 # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. 15336set dummy gtkdoc-mkpdf; ac_word=$2 15337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15338$as_echo_n "checking for $ac_word... " >&6; } 15339if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : 15340 $as_echo_n "(cached) " >&6 15341else 15342 case $GTKDOC_MKPDF in 15343 [\\/]* | ?:[\\/]*) 15344 ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. 15345 ;; 15346 *) 15347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15348for as_dir in $PATH 15349do 15350 IFS=$as_save_IFS 15351 test -z "$as_dir" && as_dir=. 15352 for ac_exec_ext in '' $ac_executable_extensions; do 15353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15354 ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" 15355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15356 break 2 15357 fi 15358done 15359 done 15360IFS=$as_save_IFS 15361 15362 ;; 15363esac 15364fi 15365GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF 15366if test -n "$GTKDOC_MKPDF"; then 15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 15368$as_echo "$GTKDOC_MKPDF" >&6; } 15369else 15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15371$as_echo "no" >&6; } 15372fi 15373 15374 15375 15376 15377# Check whether --with-html-dir was given. 15378if test "${with_html_dir+set}" = set; then : 15379 withval=$with_html_dir; 15380else 15381 with_html_dir='${datadir}/gtk-doc/html' 15382fi 15383 15384 HTML_DIR="$with_html_dir" 15385 15386 15387 # Check whether --enable-gtk-doc was given. 15388if test "${enable_gtk_doc+set}" = set; then : 15389 enableval=$enable_gtk_doc; 15390else 15391 enable_gtk_doc=no 15392fi 15393 15394 15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 15396$as_echo_n "checking whether to build gtk-doc documentation... " >&6; } 15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 15398$as_echo "$enable_gtk_doc" >&6; } 15399 15400 if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then 15401 as_fn_error $? " 15402 You must have $gtk_doc_requires installed to build documentation for 15403 $PACKAGE_NAME. Please install gtk-doc or disable building the 15404 documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5 15405 fi 15406 15407 if test "x$PACKAGE_NAME" != "xglib"; then 15408 15409pkg_failed=no 15410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 15411$as_echo_n "checking for GTKDOC_DEPS... " >&6; } 15412 15413if test -n "$GTKDOC_DEPS_CFLAGS"; then 15414 pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" 15415 elif test -n "$PKG_CONFIG"; then 15416 if test -n "$PKG_CONFIG" && \ 15417 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 15418 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 15419 ac_status=$? 15420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15421 test $ac_status = 0; }; then 15422 pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 15423 test "x$?" != "x0" && pkg_failed=yes 15424else 15425 pkg_failed=yes 15426fi 15427 else 15428 pkg_failed=untried 15429fi 15430if test -n "$GTKDOC_DEPS_LIBS"; then 15431 pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" 15432 elif test -n "$PKG_CONFIG"; then 15433 if test -n "$PKG_CONFIG" && \ 15434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 15435 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 15436 ac_status=$? 15437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15438 test $ac_status = 0; }; then 15439 pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` 15440 test "x$?" != "x0" && pkg_failed=yes 15441else 15442 pkg_failed=yes 15443fi 15444 else 15445 pkg_failed=untried 15446fi 15447 15448 15449 15450if test $pkg_failed = yes; then 15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15452$as_echo "no" >&6; } 15453 15454if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15455 _pkg_short_errors_supported=yes 15456else 15457 _pkg_short_errors_supported=no 15458fi 15459 if test $_pkg_short_errors_supported = yes; then 15460 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` 15461 else 15462 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` 15463 fi 15464 # Put the nasty error message in config.log where it belongs 15465 echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 15466 15467 : 15468elif test $pkg_failed = untried; then 15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15470$as_echo "no" >&6; } 15471 : 15472else 15473 GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS 15474 GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS 15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15476$as_echo "yes" >&6; } 15477 15478fi 15479 fi 15480 15481 # Check whether --enable-gtk-doc-html was given. 15482if test "${enable_gtk_doc_html+set}" = set; then : 15483 enableval=$enable_gtk_doc_html; 15484else 15485 enable_gtk_doc_html=yes 15486fi 15487 15488 # Check whether --enable-gtk-doc-pdf was given. 15489if test "${enable_gtk_doc_pdf+set}" = set; then : 15490 enableval=$enable_gtk_doc_pdf; 15491else 15492 enable_gtk_doc_pdf=no 15493fi 15494 15495 15496 if test -z "$GTKDOC_MKPDF"; then 15497 enable_gtk_doc_pdf=no 15498 fi 15499 15500 if test -z "$AM_DEFAULT_VERBOSITY"; then 15501 AM_DEFAULT_VERBOSITY=1 15502 fi 15503 15504 15505 if test x$have_gtk_doc = xyes; then 15506 HAVE_GTK_DOC_TRUE= 15507 HAVE_GTK_DOC_FALSE='#' 15508else 15509 HAVE_GTK_DOC_TRUE='#' 15510 HAVE_GTK_DOC_FALSE= 15511fi 15512 15513 if test x$enable_gtk_doc = xyes; then 15514 ENABLE_GTK_DOC_TRUE= 15515 ENABLE_GTK_DOC_FALSE='#' 15516else 15517 ENABLE_GTK_DOC_TRUE='#' 15518 ENABLE_GTK_DOC_FALSE= 15519fi 15520 15521 if test x$enable_gtk_doc_html = xyes; then 15522 GTK_DOC_BUILD_HTML_TRUE= 15523 GTK_DOC_BUILD_HTML_FALSE='#' 15524else 15525 GTK_DOC_BUILD_HTML_TRUE='#' 15526 GTK_DOC_BUILD_HTML_FALSE= 15527fi 15528 15529 if test x$enable_gtk_doc_pdf = xyes; then 15530 GTK_DOC_BUILD_PDF_TRUE= 15531 GTK_DOC_BUILD_PDF_FALSE='#' 15532else 15533 GTK_DOC_BUILD_PDF_TRUE='#' 15534 GTK_DOC_BUILD_PDF_FALSE= 15535fi 15536 15537 if test -n "$LIBTOOL"; then 15538 GTK_DOC_USE_LIBTOOL_TRUE= 15539 GTK_DOC_USE_LIBTOOL_FALSE='#' 15540else 15541 GTK_DOC_USE_LIBTOOL_TRUE='#' 15542 GTK_DOC_USE_LIBTOOL_FALSE= 15543fi 15544 15545 if test -n "$GTKDOC_REBASE"; then 15546 GTK_DOC_USE_REBASE_TRUE= 15547 GTK_DOC_USE_REBASE_FALSE='#' 15548else 15549 GTK_DOC_USE_REBASE_TRUE='#' 15550 GTK_DOC_USE_REBASE_FALSE= 15551fi 15552 15553 15554 15555ac_ext=c 15556ac_cpp='$CPP $CPPFLAGS' 15557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15559ac_compiler_gnu=$ac_cv_c_compiler_gnu 15560if test -n "$ac_tool_prefix"; then 15561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 15562set dummy ${ac_tool_prefix}gcc; ac_word=$2 15563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15564$as_echo_n "checking for $ac_word... " >&6; } 15565if ${ac_cv_prog_CC+:} false; then : 15566 $as_echo_n "(cached) " >&6 15567else 15568 if test -n "$CC"; then 15569 ac_cv_prog_CC="$CC" # Let the user override the test. 15570else 15571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15572for as_dir in $PATH 15573do 15574 IFS=$as_save_IFS 15575 test -z "$as_dir" && as_dir=. 15576 for ac_exec_ext in '' $ac_executable_extensions; do 15577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15578 ac_cv_prog_CC="${ac_tool_prefix}gcc" 15579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15580 break 2 15581 fi 15582done 15583 done 15584IFS=$as_save_IFS 15585 15586fi 15587fi 15588CC=$ac_cv_prog_CC 15589if test -n "$CC"; then 15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15591$as_echo "$CC" >&6; } 15592else 15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15594$as_echo "no" >&6; } 15595fi 15596 15597 15598fi 15599if test -z "$ac_cv_prog_CC"; then 15600 ac_ct_CC=$CC 15601 # Extract the first word of "gcc", so it can be a program name with args. 15602set dummy gcc; ac_word=$2 15603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15604$as_echo_n "checking for $ac_word... " >&6; } 15605if ${ac_cv_prog_ac_ct_CC+:} false; then : 15606 $as_echo_n "(cached) " >&6 15607else 15608 if test -n "$ac_ct_CC"; then 15609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 15610else 15611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15612for as_dir in $PATH 15613do 15614 IFS=$as_save_IFS 15615 test -z "$as_dir" && as_dir=. 15616 for ac_exec_ext in '' $ac_executable_extensions; do 15617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15618 ac_cv_prog_ac_ct_CC="gcc" 15619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15620 break 2 15621 fi 15622done 15623 done 15624IFS=$as_save_IFS 15625 15626fi 15627fi 15628ac_ct_CC=$ac_cv_prog_ac_ct_CC 15629if test -n "$ac_ct_CC"; then 15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 15631$as_echo "$ac_ct_CC" >&6; } 15632else 15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15634$as_echo "no" >&6; } 15635fi 15636 15637 if test "x$ac_ct_CC" = x; then 15638 CC="" 15639 else 15640 case $cross_compiling:$ac_tool_warned in 15641yes:) 15642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15644ac_tool_warned=yes ;; 15645esac 15646 CC=$ac_ct_CC 15647 fi 15648else 15649 CC="$ac_cv_prog_CC" 15650fi 15651 15652if test -z "$CC"; then 15653 if test -n "$ac_tool_prefix"; then 15654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 15655set dummy ${ac_tool_prefix}cc; ac_word=$2 15656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15657$as_echo_n "checking for $ac_word... " >&6; } 15658if ${ac_cv_prog_CC+:} false; then : 15659 $as_echo_n "(cached) " >&6 15660else 15661 if test -n "$CC"; then 15662 ac_cv_prog_CC="$CC" # Let the user override the test. 15663else 15664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15665for as_dir in $PATH 15666do 15667 IFS=$as_save_IFS 15668 test -z "$as_dir" && as_dir=. 15669 for ac_exec_ext in '' $ac_executable_extensions; do 15670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15671 ac_cv_prog_CC="${ac_tool_prefix}cc" 15672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15673 break 2 15674 fi 15675done 15676 done 15677IFS=$as_save_IFS 15678 15679fi 15680fi 15681CC=$ac_cv_prog_CC 15682if test -n "$CC"; then 15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15684$as_echo "$CC" >&6; } 15685else 15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15687$as_echo "no" >&6; } 15688fi 15689 15690 15691 fi 15692fi 15693if test -z "$CC"; then 15694 # Extract the first word of "cc", so it can be a program name with args. 15695set dummy cc; ac_word=$2 15696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15697$as_echo_n "checking for $ac_word... " >&6; } 15698if ${ac_cv_prog_CC+:} false; then : 15699 $as_echo_n "(cached) " >&6 15700else 15701 if test -n "$CC"; then 15702 ac_cv_prog_CC="$CC" # Let the user override the test. 15703else 15704 ac_prog_rejected=no 15705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15706for as_dir in $PATH 15707do 15708 IFS=$as_save_IFS 15709 test -z "$as_dir" && as_dir=. 15710 for ac_exec_ext in '' $ac_executable_extensions; do 15711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 15713 ac_prog_rejected=yes 15714 continue 15715 fi 15716 ac_cv_prog_CC="cc" 15717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15718 break 2 15719 fi 15720done 15721 done 15722IFS=$as_save_IFS 15723 15724if test $ac_prog_rejected = yes; then 15725 # We found a bogon in the path, so make sure we never use it. 15726 set dummy $ac_cv_prog_CC 15727 shift 15728 if test $# != 0; then 15729 # We chose a different compiler from the bogus one. 15730 # However, it has the same basename, so the bogon will be chosen 15731 # first if we set CC to just the basename; use the full file name. 15732 shift 15733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 15734 fi 15735fi 15736fi 15737fi 15738CC=$ac_cv_prog_CC 15739if test -n "$CC"; then 15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15741$as_echo "$CC" >&6; } 15742else 15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15744$as_echo "no" >&6; } 15745fi 15746 15747 15748fi 15749if test -z "$CC"; then 15750 if test -n "$ac_tool_prefix"; then 15751 for ac_prog in cl.exe 15752 do 15753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 15754set dummy $ac_tool_prefix$ac_prog; ac_word=$2 15755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15756$as_echo_n "checking for $ac_word... " >&6; } 15757if ${ac_cv_prog_CC+:} false; then : 15758 $as_echo_n "(cached) " >&6 15759else 15760 if test -n "$CC"; then 15761 ac_cv_prog_CC="$CC" # Let the user override the test. 15762else 15763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15764for as_dir in $PATH 15765do 15766 IFS=$as_save_IFS 15767 test -z "$as_dir" && as_dir=. 15768 for ac_exec_ext in '' $ac_executable_extensions; do 15769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 15771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15772 break 2 15773 fi 15774done 15775 done 15776IFS=$as_save_IFS 15777 15778fi 15779fi 15780CC=$ac_cv_prog_CC 15781if test -n "$CC"; then 15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 15783$as_echo "$CC" >&6; } 15784else 15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15786$as_echo "no" >&6; } 15787fi 15788 15789 15790 test -n "$CC" && break 15791 done 15792fi 15793if test -z "$CC"; then 15794 ac_ct_CC=$CC 15795 for ac_prog in cl.exe 15796do 15797 # Extract the first word of "$ac_prog", so it can be a program name with args. 15798set dummy $ac_prog; ac_word=$2 15799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15800$as_echo_n "checking for $ac_word... " >&6; } 15801if ${ac_cv_prog_ac_ct_CC+:} false; then : 15802 $as_echo_n "(cached) " >&6 15803else 15804 if test -n "$ac_ct_CC"; then 15805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 15806else 15807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15808for as_dir in $PATH 15809do 15810 IFS=$as_save_IFS 15811 test -z "$as_dir" && as_dir=. 15812 for ac_exec_ext in '' $ac_executable_extensions; do 15813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15814 ac_cv_prog_ac_ct_CC="$ac_prog" 15815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15816 break 2 15817 fi 15818done 15819 done 15820IFS=$as_save_IFS 15821 15822fi 15823fi 15824ac_ct_CC=$ac_cv_prog_ac_ct_CC 15825if test -n "$ac_ct_CC"; then 15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 15827$as_echo "$ac_ct_CC" >&6; } 15828else 15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15830$as_echo "no" >&6; } 15831fi 15832 15833 15834 test -n "$ac_ct_CC" && break 15835done 15836 15837 if test "x$ac_ct_CC" = x; then 15838 CC="" 15839 else 15840 case $cross_compiling:$ac_tool_warned in 15841yes:) 15842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15844ac_tool_warned=yes ;; 15845esac 15846 CC=$ac_ct_CC 15847 fi 15848fi 15849 15850fi 15851 15852 15853test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15855as_fn_error $? "no acceptable C compiler found in \$PATH 15856See \`config.log' for more details" "$LINENO" 5; } 15857 15858# Provide some information about the compiler. 15859$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 15860set X $ac_compile 15861ac_compiler=$2 15862for ac_option in --version -v -V -qversion; do 15863 { { ac_try="$ac_compiler $ac_option >&5" 15864case "(($ac_try" in 15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15866 *) ac_try_echo=$ac_try;; 15867esac 15868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15869$as_echo "$ac_try_echo"; } >&5 15870 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 15871 ac_status=$? 15872 if test -s conftest.err; then 15873 sed '10a\ 15874... rest of stderr output deleted ... 15875 10q' conftest.err >conftest.er1 15876 cat conftest.er1 >&5 15877 fi 15878 rm -f conftest.er1 conftest.err 15879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15880 test $ac_status = 0; } 15881done 15882 15883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 15884$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 15885if ${ac_cv_c_compiler_gnu+:} false; then : 15886 $as_echo_n "(cached) " >&6 15887else 15888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15889/* end confdefs.h. */ 15890 15891int 15892main () 15893{ 15894#ifndef __GNUC__ 15895 choke me 15896#endif 15897 15898 ; 15899 return 0; 15900} 15901_ACEOF 15902if ac_fn_c_try_compile "$LINENO"; then : 15903 ac_compiler_gnu=yes 15904else 15905 ac_compiler_gnu=no 15906fi 15907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15908ac_cv_c_compiler_gnu=$ac_compiler_gnu 15909 15910fi 15911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 15912$as_echo "$ac_cv_c_compiler_gnu" >&6; } 15913if test $ac_compiler_gnu = yes; then 15914 GCC=yes 15915else 15916 GCC= 15917fi 15918ac_test_CFLAGS=${CFLAGS+set} 15919ac_save_CFLAGS=$CFLAGS 15920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 15921$as_echo_n "checking whether $CC accepts -g... " >&6; } 15922if ${ac_cv_prog_cc_g+:} false; then : 15923 $as_echo_n "(cached) " >&6 15924else 15925 ac_save_c_werror_flag=$ac_c_werror_flag 15926 ac_c_werror_flag=yes 15927 ac_cv_prog_cc_g=no 15928 CFLAGS="-g" 15929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15930/* end confdefs.h. */ 15931 15932int 15933main () 15934{ 15935 15936 ; 15937 return 0; 15938} 15939_ACEOF 15940if ac_fn_c_try_compile "$LINENO"; then : 15941 ac_cv_prog_cc_g=yes 15942else 15943 CFLAGS="" 15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15945/* end confdefs.h. */ 15946 15947int 15948main () 15949{ 15950 15951 ; 15952 return 0; 15953} 15954_ACEOF 15955if ac_fn_c_try_compile "$LINENO"; then : 15956 15957else 15958 ac_c_werror_flag=$ac_save_c_werror_flag 15959 CFLAGS="-g" 15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15961/* end confdefs.h. */ 15962 15963int 15964main () 15965{ 15966 15967 ; 15968 return 0; 15969} 15970_ACEOF 15971if ac_fn_c_try_compile "$LINENO"; then : 15972 ac_cv_prog_cc_g=yes 15973fi 15974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15975fi 15976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15977fi 15978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15979 ac_c_werror_flag=$ac_save_c_werror_flag 15980fi 15981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 15982$as_echo "$ac_cv_prog_cc_g" >&6; } 15983if test "$ac_test_CFLAGS" = set; then 15984 CFLAGS=$ac_save_CFLAGS 15985elif test $ac_cv_prog_cc_g = yes; then 15986 if test "$GCC" = yes; then 15987 CFLAGS="-g -O2" 15988 else 15989 CFLAGS="-g" 15990 fi 15991else 15992 if test "$GCC" = yes; then 15993 CFLAGS="-O2" 15994 else 15995 CFLAGS= 15996 fi 15997fi 15998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 15999$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 16000if ${ac_cv_prog_cc_c89+:} false; then : 16001 $as_echo_n "(cached) " >&6 16002else 16003 ac_cv_prog_cc_c89=no 16004ac_save_CC=$CC 16005cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16006/* end confdefs.h. */ 16007#include <stdarg.h> 16008#include <stdio.h> 16009struct stat; 16010/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 16011struct buf { int x; }; 16012FILE * (*rcsopen) (struct buf *, struct stat *, int); 16013static char *e (p, i) 16014 char **p; 16015 int i; 16016{ 16017 return p[i]; 16018} 16019static char *f (char * (*g) (char **, int), char **p, ...) 16020{ 16021 char *s; 16022 va_list v; 16023 va_start (v,p); 16024 s = g (p, va_arg (v,int)); 16025 va_end (v); 16026 return s; 16027} 16028 16029/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 16030 function prototypes and stuff, but not '\xHH' hex character constants. 16031 These don't provoke an error unfortunately, instead are silently treated 16032 as 'x'. The following induces an error, until -std is added to get 16033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 16034 array size at least. It's necessary to write '\x00'==0 to get something 16035 that's true only with -std. */ 16036int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 16037 16038/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 16039 inside strings and character constants. */ 16040#define FOO(x) 'x' 16041int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 16042 16043int test (int i, double x); 16044struct s1 {int (*f) (int a);}; 16045struct s2 {int (*f) (double a);}; 16046int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 16047int argc; 16048char **argv; 16049int 16050main () 16051{ 16052return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 16053 ; 16054 return 0; 16055} 16056_ACEOF 16057for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 16058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 16059do 16060 CC="$ac_save_CC $ac_arg" 16061 if ac_fn_c_try_compile "$LINENO"; then : 16062 ac_cv_prog_cc_c89=$ac_arg 16063fi 16064rm -f core conftest.err conftest.$ac_objext 16065 test "x$ac_cv_prog_cc_c89" != "xno" && break 16066done 16067rm -f conftest.$ac_ext 16068CC=$ac_save_CC 16069 16070fi 16071# AC_CACHE_VAL 16072case "x$ac_cv_prog_cc_c89" in 16073 x) 16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 16075$as_echo "none needed" >&6; } ;; 16076 xno) 16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 16078$as_echo "unsupported" >&6; } ;; 16079 *) 16080 CC="$CC $ac_cv_prog_cc_c89" 16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 16082$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 16083esac 16084if test "x$ac_cv_prog_cc_c89" != xno; then : 16085 16086fi 16087 16088ac_ext=c 16089ac_cpp='$CPP $CPPFLAGS' 16090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16092ac_compiler_gnu=$ac_cv_c_compiler_gnu 16093 16094ac_ext=c 16095ac_cpp='$CPP $CPPFLAGS' 16096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16098ac_compiler_gnu=$ac_cv_c_compiler_gnu 16099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 16100$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 16101if ${am_cv_prog_cc_c_o+:} false; then : 16102 $as_echo_n "(cached) " >&6 16103else 16104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16105/* end confdefs.h. */ 16106 16107int 16108main () 16109{ 16110 16111 ; 16112 return 0; 16113} 16114_ACEOF 16115 # Make sure it works both with $CC and with simple cc. 16116 # Following AC_PROG_CC_C_O, we do the test twice because some 16117 # compilers refuse to overwrite an existing .o file with -o, 16118 # though they will create one. 16119 am_cv_prog_cc_c_o=yes 16120 for am_i in 1 2; do 16121 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 16122 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 16123 ac_status=$? 16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16125 (exit $ac_status); } \ 16126 && test -f conftest2.$ac_objext; then 16127 : OK 16128 else 16129 am_cv_prog_cc_c_o=no 16130 break 16131 fi 16132 done 16133 rm -f core conftest* 16134 unset am_i 16135fi 16136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 16137$as_echo "$am_cv_prog_cc_c_o" >&6; } 16138if test "$am_cv_prog_cc_c_o" != yes; then 16139 # Losing compiler, so override with the script. 16140 # FIXME: It is wrong to rewrite CC. 16141 # But if we don't then we get into trouble of one sort or another. 16142 # A longer-term fix would be to have automake use am__CC in this case, 16143 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 16144 CC="$am_aux_dir/compile $CC" 16145fi 16146ac_ext=c 16147ac_cpp='$CPP $CPPFLAGS' 16148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16150ac_compiler_gnu=$ac_cv_c_compiler_gnu 16151 16152 16153depcc="$CC" am_compiler_list= 16154 16155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 16156$as_echo_n "checking dependency style of $depcc... " >&6; } 16157if ${am_cv_CC_dependencies_compiler_type+:} false; then : 16158 $as_echo_n "(cached) " >&6 16159else 16160 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 16161 # We make a subdir and do the tests there. Otherwise we can end up 16162 # making bogus files that we don't know about and never remove. For 16163 # instance it was reported that on HP-UX the gcc test will end up 16164 # making a dummy file named 'D' -- because '-MD' means "put the output 16165 # in D". 16166 rm -rf conftest.dir 16167 mkdir conftest.dir 16168 # Copy depcomp to subdir because otherwise we won't find it if we're 16169 # using a relative directory. 16170 cp "$am_depcomp" conftest.dir 16171 cd conftest.dir 16172 # We will build objects and dependencies in a subdirectory because 16173 # it helps to detect inapplicable dependency modes. For instance 16174 # both Tru64's cc and ICC support -MD to output dependencies as a 16175 # side effect of compilation, but ICC will put the dependencies in 16176 # the current directory while Tru64 will put them in the object 16177 # directory. 16178 mkdir sub 16179 16180 am_cv_CC_dependencies_compiler_type=none 16181 if test "$am_compiler_list" = ""; then 16182 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 16183 fi 16184 am__universal=false 16185 case " $depcc " in #( 16186 *\ -arch\ *\ -arch\ *) am__universal=true ;; 16187 esac 16188 16189 for depmode in $am_compiler_list; do 16190 # Setup a source with many dependencies, because some compilers 16191 # like to wrap large dependency lists on column 80 (with \), and 16192 # we should not choose a depcomp mode which is confused by this. 16193 # 16194 # We need to recreate these files for each test, as the compiler may 16195 # overwrite some of them when testing with obscure command lines. 16196 # This happens at least with the AIX C compiler. 16197 : > sub/conftest.c 16198 for i in 1 2 3 4 5 6; do 16199 echo '#include "conftst'$i'.h"' >> sub/conftest.c 16200 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 16201 # Solaris 10 /bin/sh. 16202 echo '/* dummy */' > sub/conftst$i.h 16203 done 16204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 16205 16206 # We check with '-c' and '-o' for the sake of the "dashmstdout" 16207 # mode. It turns out that the SunPro C++ compiler does not properly 16208 # handle '-M -o', and we need to detect this. Also, some Intel 16209 # versions had trouble with output in subdirs. 16210 am__obj=sub/conftest.${OBJEXT-o} 16211 am__minus_obj="-o $am__obj" 16212 case $depmode in 16213 gcc) 16214 # This depmode causes a compiler race in universal mode. 16215 test "$am__universal" = false || continue 16216 ;; 16217 nosideeffect) 16218 # After this tag, mechanisms are not by side-effect, so they'll 16219 # only be used when explicitly requested. 16220 if test "x$enable_dependency_tracking" = xyes; then 16221 continue 16222 else 16223 break 16224 fi 16225 ;; 16226 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 16227 # This compiler won't grok '-c -o', but also, the minuso test has 16228 # not run yet. These depmodes are late enough in the game, and 16229 # so weak that their functioning should not be impacted. 16230 am__obj=conftest.${OBJEXT-o} 16231 am__minus_obj= 16232 ;; 16233 none) break ;; 16234 esac 16235 if depmode=$depmode \ 16236 source=sub/conftest.c object=$am__obj \ 16237 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 16238 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 16239 >/dev/null 2>conftest.err && 16240 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 16241 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 16242 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 16243 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 16244 # icc doesn't choke on unknown options, it will just issue warnings 16245 # or remarks (even with -Werror). So we grep stderr for any message 16246 # that says an option was ignored or not supported. 16247 # When given -MP, icc 7.0 and 7.1 complain thusly: 16248 # icc: Command line warning: ignoring option '-M'; no argument required 16249 # The diagnosis changed in icc 8.0: 16250 # icc: Command line remark: option '-MP' not supported 16251 if (grep 'ignoring option' conftest.err || 16252 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 16253 am_cv_CC_dependencies_compiler_type=$depmode 16254 break 16255 fi 16256 fi 16257 done 16258 16259 cd .. 16260 rm -rf conftest.dir 16261else 16262 am_cv_CC_dependencies_compiler_type=none 16263fi 16264 16265fi 16266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 16267$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 16268CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 16269 16270 if 16271 test "x$enable_dependency_tracking" != xno \ 16272 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 16273 am__fastdepCC_TRUE= 16274 am__fastdepCC_FALSE='#' 16275else 16276 am__fastdepCC_TRUE='#' 16277 am__fastdepCC_FALSE= 16278fi 16279 16280 16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 16282$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 16283if ${ac_cv_prog_cc_c99+:} false; then : 16284 $as_echo_n "(cached) " >&6 16285else 16286 ac_cv_prog_cc_c99=no 16287ac_save_CC=$CC 16288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16289/* end confdefs.h. */ 16290#include <stdarg.h> 16291#include <stdbool.h> 16292#include <stdlib.h> 16293#include <wchar.h> 16294#include <stdio.h> 16295 16296// Check varargs macros. These examples are taken from C99 6.10.3.5. 16297#define debug(...) fprintf (stderr, __VA_ARGS__) 16298#define showlist(...) puts (#__VA_ARGS__) 16299#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 16300static void 16301test_varargs_macros (void) 16302{ 16303 int x = 1234; 16304 int y = 5678; 16305 debug ("Flag"); 16306 debug ("X = %d\n", x); 16307 showlist (The first, second, and third items.); 16308 report (x>y, "x is %d but y is %d", x, y); 16309} 16310 16311// Check long long types. 16312#define BIG64 18446744073709551615ull 16313#define BIG32 4294967295ul 16314#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 16315#if !BIG_OK 16316 your preprocessor is broken; 16317#endif 16318#if BIG_OK 16319#else 16320 your preprocessor is broken; 16321#endif 16322static long long int bignum = -9223372036854775807LL; 16323static unsigned long long int ubignum = BIG64; 16324 16325struct incomplete_array 16326{ 16327 int datasize; 16328 double data[]; 16329}; 16330 16331struct named_init { 16332 int number; 16333 const wchar_t *name; 16334 double average; 16335}; 16336 16337typedef const char *ccp; 16338 16339static inline int 16340test_restrict (ccp restrict text) 16341{ 16342 // See if C++-style comments work. 16343 // Iterate through items via the restricted pointer. 16344 // Also check for declarations in for loops. 16345 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 16346 continue; 16347 return 0; 16348} 16349 16350// Check varargs and va_copy. 16351static void 16352test_varargs (const char *format, ...) 16353{ 16354 va_list args; 16355 va_start (args, format); 16356 va_list args_copy; 16357 va_copy (args_copy, args); 16358 16359 const char *str; 16360 int number; 16361 float fnumber; 16362 16363 while (*format) 16364 { 16365 switch (*format++) 16366 { 16367 case 's': // string 16368 str = va_arg (args_copy, const char *); 16369 break; 16370 case 'd': // int 16371 number = va_arg (args_copy, int); 16372 break; 16373 case 'f': // float 16374 fnumber = va_arg (args_copy, double); 16375 break; 16376 default: 16377 break; 16378 } 16379 } 16380 va_end (args_copy); 16381 va_end (args); 16382} 16383 16384int 16385main () 16386{ 16387 16388 // Check bool. 16389 _Bool success = false; 16390 16391 // Check restrict. 16392 if (test_restrict ("String literal") == 0) 16393 success = true; 16394 char *restrict newvar = "Another string"; 16395 16396 // Check varargs. 16397 test_varargs ("s, d' f .", "string", 65, 34.234); 16398 test_varargs_macros (); 16399 16400 // Check flexible array members. 16401 struct incomplete_array *ia = 16402 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 16403 ia->datasize = 10; 16404 for (int i = 0; i < ia->datasize; ++i) 16405 ia->data[i] = i * 1.234; 16406 16407 // Check named initializers. 16408 struct named_init ni = { 16409 .number = 34, 16410 .name = L"Test wide string", 16411 .average = 543.34343, 16412 }; 16413 16414 ni.number = 58; 16415 16416 int dynamic_array[ni.number]; 16417 dynamic_array[ni.number - 1] = 543; 16418 16419 // work around unused variable warnings 16420 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 16421 || dynamic_array[ni.number - 1] != 543); 16422 16423 ; 16424 return 0; 16425} 16426_ACEOF 16427for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 16428do 16429 CC="$ac_save_CC $ac_arg" 16430 if ac_fn_c_try_compile "$LINENO"; then : 16431 ac_cv_prog_cc_c99=$ac_arg 16432fi 16433rm -f core conftest.err conftest.$ac_objext 16434 test "x$ac_cv_prog_cc_c99" != "xno" && break 16435done 16436rm -f conftest.$ac_ext 16437CC=$ac_save_CC 16438 16439fi 16440# AC_CACHE_VAL 16441case "x$ac_cv_prog_cc_c99" in 16442 x) 16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 16444$as_echo "none needed" >&6; } ;; 16445 xno) 16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 16447$as_echo "unsupported" >&6; } ;; 16448 *) 16449 CC="$CC $ac_cv_prog_cc_c99" 16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 16451$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 16452esac 16453if test "x$ac_cv_prog_cc_c99" != xno; then : 16454 16455fi 16456 16457 16458if test "x$ac_cv_prog_cc_c99" = xno; then 16459 as_fn_error $? "C99 compiler is required." "$LINENO" 5 16460fi 16461 16462 16463# Extract the first word of "stow", so it can be a program name with args. 16464set dummy stow; ac_word=$2 16465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16466$as_echo_n "checking for $ac_word... " >&6; } 16467if ${ac_cv_prog_STOW+:} false; then : 16468 $as_echo_n "(cached) " >&6 16469else 16470 if test -n "$STOW"; then 16471 ac_cv_prog_STOW="$STOW" # Let the user override the test. 16472else 16473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16474for as_dir in $PATH 16475do 16476 IFS=$as_save_IFS 16477 test -z "$as_dir" && as_dir=. 16478 for ac_exec_ext in '' $ac_executable_extensions; do 16479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16480 ac_cv_prog_STOW="yes" 16481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16482 break 2 16483 fi 16484done 16485 done 16486IFS=$as_save_IFS 16487 16488 test -z "$ac_cv_prog_STOW" && ac_cv_prog_STOW="no" 16489fi 16490fi 16491STOW=$ac_cv_prog_STOW 16492if test -n "$STOW"; then 16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STOW" >&5 16494$as_echo "$STOW" >&6; } 16495else 16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16497$as_echo "no" >&6; } 16498fi 16499 16500 16501if test "x$STOW" = "xyes" && test -d /usr/local/stow; then : 16502 16503 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME} ***" >&5 16504$as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME} ***" >&6;} 16505 ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}" 16506 16507fi 16508 16509 16510 16511 16512 16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16514$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16515if ${ac_cv_c_bigendian+:} false; then : 16516 $as_echo_n "(cached) " >&6 16517else 16518 ac_cv_c_bigendian=unknown 16519 # See if we're dealing with a universal compiler. 16520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16521/* end confdefs.h. */ 16522#ifndef __APPLE_CC__ 16523 not a universal capable compiler 16524 #endif 16525 typedef int dummy; 16526 16527_ACEOF 16528if ac_fn_c_try_compile "$LINENO"; then : 16529 16530 # Check for potential -arch flags. It is not universal unless 16531 # there are at least two -arch flags with different values. 16532 ac_arch= 16533 ac_prev= 16534 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16535 if test -n "$ac_prev"; then 16536 case $ac_word in 16537 i?86 | x86_64 | ppc | ppc64) 16538 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16539 ac_arch=$ac_word 16540 else 16541 ac_cv_c_bigendian=universal 16542 break 16543 fi 16544 ;; 16545 esac 16546 ac_prev= 16547 elif test "x$ac_word" = "x-arch"; then 16548 ac_prev=arch 16549 fi 16550 done 16551fi 16552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16553 if test $ac_cv_c_bigendian = unknown; then 16554 # See if sys/param.h defines the BYTE_ORDER macro. 16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16556/* end confdefs.h. */ 16557#include <sys/types.h> 16558 #include <sys/param.h> 16559 16560int 16561main () 16562{ 16563#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16564 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16565 && LITTLE_ENDIAN) 16566 bogus endian macros 16567 #endif 16568 16569 ; 16570 return 0; 16571} 16572_ACEOF 16573if ac_fn_c_try_compile "$LINENO"; then : 16574 # It does; now see whether it defined to BIG_ENDIAN or not. 16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16576/* end confdefs.h. */ 16577#include <sys/types.h> 16578 #include <sys/param.h> 16579 16580int 16581main () 16582{ 16583#if BYTE_ORDER != BIG_ENDIAN 16584 not big endian 16585 #endif 16586 16587 ; 16588 return 0; 16589} 16590_ACEOF 16591if ac_fn_c_try_compile "$LINENO"; then : 16592 ac_cv_c_bigendian=yes 16593else 16594 ac_cv_c_bigendian=no 16595fi 16596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16597fi 16598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16599 fi 16600 if test $ac_cv_c_bigendian = unknown; then 16601 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16603/* end confdefs.h. */ 16604#include <limits.h> 16605 16606int 16607main () 16608{ 16609#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 16610 bogus endian macros 16611 #endif 16612 16613 ; 16614 return 0; 16615} 16616_ACEOF 16617if ac_fn_c_try_compile "$LINENO"; then : 16618 # It does; now see whether it defined to _BIG_ENDIAN or not. 16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16620/* end confdefs.h. */ 16621#include <limits.h> 16622 16623int 16624main () 16625{ 16626#ifndef _BIG_ENDIAN 16627 not big endian 16628 #endif 16629 16630 ; 16631 return 0; 16632} 16633_ACEOF 16634if ac_fn_c_try_compile "$LINENO"; then : 16635 ac_cv_c_bigendian=yes 16636else 16637 ac_cv_c_bigendian=no 16638fi 16639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16640fi 16641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16642 fi 16643 if test $ac_cv_c_bigendian = unknown; then 16644 # Compile a test program. 16645 if test "$cross_compiling" = yes; then : 16646 # Try to guess by grepping values from an object file. 16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16648/* end confdefs.h. */ 16649short int ascii_mm[] = 16650 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 16651 short int ascii_ii[] = 16652 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 16653 int use_ascii (int i) { 16654 return ascii_mm[i] + ascii_ii[i]; 16655 } 16656 short int ebcdic_ii[] = 16657 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 16658 short int ebcdic_mm[] = 16659 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 16660 int use_ebcdic (int i) { 16661 return ebcdic_mm[i] + ebcdic_ii[i]; 16662 } 16663 extern int foo; 16664 16665int 16666main () 16667{ 16668return use_ascii (foo) == use_ebcdic (foo); 16669 ; 16670 return 0; 16671} 16672_ACEOF 16673if ac_fn_c_try_compile "$LINENO"; then : 16674 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 16675 ac_cv_c_bigendian=yes 16676 fi 16677 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 16678 if test "$ac_cv_c_bigendian" = unknown; then 16679 ac_cv_c_bigendian=no 16680 else 16681 # finding both strings is unlikely to happen, but who knows? 16682 ac_cv_c_bigendian=unknown 16683 fi 16684 fi 16685fi 16686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16687else 16688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16689/* end confdefs.h. */ 16690$ac_includes_default 16691int 16692main () 16693{ 16694 16695 /* Are we little or big endian? From Harbison&Steele. */ 16696 union 16697 { 16698 long int l; 16699 char c[sizeof (long int)]; 16700 } u; 16701 u.l = 1; 16702 return u.c[sizeof (long int) - 1] == 1; 16703 16704 ; 16705 return 0; 16706} 16707_ACEOF 16708if ac_fn_c_try_run "$LINENO"; then : 16709 ac_cv_c_bigendian=no 16710else 16711 ac_cv_c_bigendian=yes 16712fi 16713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16714 conftest.$ac_objext conftest.beam conftest.$ac_ext 16715fi 16716 16717 fi 16718fi 16719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16720$as_echo "$ac_cv_c_bigendian" >&6; } 16721 case $ac_cv_c_bigendian in #( 16722 yes) 16723 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 16724;; #( 16725 no) 16726 ;; #( 16727 universal) 16728 16729$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 16730 16731 ;; #( 16732 *) 16733 as_fn_error $? "unknown endianness 16734 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 16735 esac 16736 16737 16738 16739 16740 16741 16742 16743 # Find any Python interpreter. 16744 if test -z "$PYTHON"; then 16745 for ac_prog in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 16746do 16747 # Extract the first word of "$ac_prog", so it can be a program name with args. 16748set dummy $ac_prog; ac_word=$2 16749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16750$as_echo_n "checking for $ac_word... " >&6; } 16751if ${ac_cv_path_PYTHON+:} false; then : 16752 $as_echo_n "(cached) " >&6 16753else 16754 case $PYTHON in 16755 [\\/]* | ?:[\\/]*) 16756 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 16757 ;; 16758 *) 16759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16760for as_dir in $PATH 16761do 16762 IFS=$as_save_IFS 16763 test -z "$as_dir" && as_dir=. 16764 for ac_exec_ext in '' $ac_executable_extensions; do 16765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16766 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 16767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16768 break 2 16769 fi 16770done 16771 done 16772IFS=$as_save_IFS 16773 16774 ;; 16775esac 16776fi 16777PYTHON=$ac_cv_path_PYTHON 16778if test -n "$PYTHON"; then 16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 16780$as_echo "$PYTHON" >&6; } 16781else 16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16783$as_echo "no" >&6; } 16784fi 16785 16786 16787 test -n "$PYTHON" && break 16788done 16789test -n "$PYTHON" || PYTHON=":" 16790 16791 fi 16792 am_display_PYTHON=python 16793 16794 16795 if test "$PYTHON" = :; then 16796 : 16797 else 16798 16799 16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 16801$as_echo_n "checking for $am_display_PYTHON version... " >&6; } 16802if ${am_cv_python_version+:} false; then : 16803 $as_echo_n "(cached) " >&6 16804else 16805 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` 16806fi 16807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 16808$as_echo "$am_cv_python_version" >&6; } 16809 PYTHON_VERSION=$am_cv_python_version 16810 16811 16812 16813 PYTHON_PREFIX='${prefix}' 16814 16815 PYTHON_EXEC_PREFIX='${exec_prefix}' 16816 16817 16818 16819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 16820$as_echo_n "checking for $am_display_PYTHON platform... " >&6; } 16821if ${am_cv_python_platform+:} false; then : 16822 $as_echo_n "(cached) " >&6 16823else 16824 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 16825fi 16826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 16827$as_echo "$am_cv_python_platform" >&6; } 16828 PYTHON_PLATFORM=$am_cv_python_platform 16829 16830 16831 # Just factor out some code duplication. 16832 am_python_setup_sysconfig="\ 16833import sys 16834# Prefer sysconfig over distutils.sysconfig, for better compatibility 16835# with python 3.x. See automake bug#10227. 16836try: 16837 import sysconfig 16838except ImportError: 16839 can_use_sysconfig = 0 16840else: 16841 can_use_sysconfig = 1 16842# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 16843# <https://github.com/pypa/virtualenv/issues/118> 16844try: 16845 from platform import python_implementation 16846 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 16847 can_use_sysconfig = 0 16848except ImportError: 16849 pass" 16850 16851 16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 16853$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } 16854if ${am_cv_python_pythondir+:} false; then : 16855 $as_echo_n "(cached) " >&6 16856else 16857 if test "x$prefix" = xNONE 16858 then 16859 am_py_prefix=$ac_default_prefix 16860 else 16861 am_py_prefix=$prefix 16862 fi 16863 am_cv_python_pythondir=`$PYTHON -c " 16864$am_python_setup_sysconfig 16865if can_use_sysconfig: 16866 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 16867else: 16868 from distutils import sysconfig 16869 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 16870sys.stdout.write(sitedir)"` 16871 case $am_cv_python_pythondir in 16872 $am_py_prefix*) 16873 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 16874 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` 16875 ;; 16876 *) 16877 case $am_py_prefix in 16878 /usr|/System*) ;; 16879 *) 16880 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages 16881 ;; 16882 esac 16883 ;; 16884 esac 16885 16886fi 16887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 16888$as_echo "$am_cv_python_pythondir" >&6; } 16889 pythondir=$am_cv_python_pythondir 16890 16891 16892 16893 pkgpythondir=\${pythondir}/$PACKAGE 16894 16895 16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 16897$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } 16898if ${am_cv_python_pyexecdir+:} false; then : 16899 $as_echo_n "(cached) " >&6 16900else 16901 if test "x$exec_prefix" = xNONE 16902 then 16903 am_py_exec_prefix=$am_py_prefix 16904 else 16905 am_py_exec_prefix=$exec_prefix 16906 fi 16907 am_cv_python_pyexecdir=`$PYTHON -c " 16908$am_python_setup_sysconfig 16909if can_use_sysconfig: 16910 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) 16911else: 16912 from distutils import sysconfig 16913 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') 16914sys.stdout.write(sitedir)"` 16915 case $am_cv_python_pyexecdir in 16916 $am_py_exec_prefix*) 16917 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 16918 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` 16919 ;; 16920 *) 16921 case $am_py_exec_prefix in 16922 /usr|/System*) ;; 16923 *) 16924 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages 16925 ;; 16926 esac 16927 ;; 16928 esac 16929 16930fi 16931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 16932$as_echo "$am_cv_python_pyexecdir" >&6; } 16933 pyexecdir=$am_cv_python_pyexecdir 16934 16935 16936 16937 pkgpyexecdir=\${pyexecdir}/$PACKAGE 16938 16939 16940 16941 fi 16942 16943 16944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -Wl,--version-script works" >&5 16945$as_echo_n "checking if -Wl,--version-script works... " >&6; } 16946if ${rra_cv_ld_version_script+:} false; then : 16947 $as_echo_n "(cached) " >&6 16948else 16949 save_LDFLAGS="$LDFLAGS" 16950 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map" 16951 cat > conftest.map <<EOF 16952VERSION_1 { 16953 global: 16954 sym; 16955 16956 local: 16957 *; 16958}; 16959EOF 16960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16961/* end confdefs.h. */ 16962 16963int 16964main () 16965{ 16966 16967 ; 16968 return 0; 16969} 16970_ACEOF 16971if ac_fn_c_try_link "$LINENO"; then : 16972 rra_cv_ld_version_script=yes 16973else 16974 rra_cv_ld_version_script=no 16975fi 16976rm -f core conftest.err conftest.$ac_objext \ 16977 conftest$ac_exeext conftest.$ac_ext 16978 rm -f conftest.map 16979 LDFLAGS="$save_LDFLAGS" 16980fi 16981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rra_cv_ld_version_script" >&5 16982$as_echo "$rra_cv_ld_version_script" >&6; } 16983 if test x"$rra_cv_ld_version_script" = xyes; then 16984 HAVE_LD_VERSION_SCRIPT_TRUE= 16985 HAVE_LD_VERSION_SCRIPT_FALSE='#' 16986else 16987 HAVE_LD_VERSION_SCRIPT_TRUE='#' 16988 HAVE_LD_VERSION_SCRIPT_FALSE= 16989fi 16990 16991 16992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5 16993$as_echo_n "checking for native Win32... " >&6; } 16994case "$host_os" in 16995 *mingw*|*cygwin*) 16996 os_win32=yes 16997 gio_os=gio-windows-2.0 16998 red_target=Windows 16999 ;; 17000 *) 17001 os_win32=no 17002 gio_os=gio-unix-2.0 17003 red_target=Unix 17004 ;; 17005esac 17006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5 17007$as_echo "$os_win32" >&6; } 17008 if test "$os_win32" = "yes"; then 17009 OS_WIN32_TRUE= 17010 OS_WIN32_FALSE='#' 17011else 17012 OS_WIN32_TRUE='#' 17013 OS_WIN32_FALSE= 17014fi 17015 17016 17017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native macOS" >&5 17018$as_echo_n "checking for native macOS... " >&6; } 17019case "$host_os" in 17020 *darwin*) 17021 os_mac=yes 17022 ;; 17023 *) 17024 os_mac=no 17025 ;; 17026esac 17027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_mac" >&5 17028$as_echo "$os_mac" >&6; } 17029 if test "$os_mac" = "yes"; then 17030 OS_MAC_TRUE= 17031 OS_MAC_FALSE='#' 17032else 17033 OS_MAC_TRUE='#' 17034 OS_MAC_FALSE= 17035fi 17036 17037 17038for ac_header in sys/socket.h sys/types.h netinet/in.h arpa/inet.h 17039do : 17040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17041ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17042if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17043 cat >>confdefs.h <<_ACEOF 17044#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17045_ACEOF 17046 17047fi 17048 17049done 17050 17051for ac_header in termios.h 17052do : 17053 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 17054if test "x$ac_cv_header_termios_h" = xyes; then : 17055 cat >>confdefs.h <<_ACEOF 17056#define HAVE_TERMIOS_H 1 17057_ACEOF 17058 17059fi 17060 17061done 17062 17063for ac_header in epoxy/egl.h 17064do : 17065 ac_fn_c_check_header_mongrel "$LINENO" "epoxy/egl.h" "ac_cv_header_epoxy_egl_h" "$ac_includes_default" 17066if test "x$ac_cv_header_epoxy_egl_h" = xyes; then : 17067 cat >>confdefs.h <<_ACEOF 17068#define HAVE_EPOXY_EGL_H 1 17069_ACEOF 17070 have_egl=yes 17071else 17072 have_egl=no 17073fi 17074 17075done 17076 17077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use EGL in libepoxy" >&5 17078$as_echo_n "checking if we can use EGL in libepoxy... " >&6; } 17079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_egl" >&5 17080$as_echo "$have_egl" >&6; } 17081 if test "$have_egl" = "yes"; then 17082 HAVE_EGL_TRUE= 17083 HAVE_EGL_FALSE='#' 17084else 17085 HAVE_EGL_TRUE='#' 17086 HAVE_EGL_FALSE= 17087fi 17088 17089if test "$have_egl" = "yes"; then : 17090 17091$as_echo "#define HAVE_EGL 1" >>confdefs.h 17092 17093fi 17094 17095LIBM= 17096case $host in 17097*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 17098 # These system don't have libm, or don't need it 17099 ;; 17100*-ncr-sysv4.3*) 17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 17102$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 17103if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 17104 $as_echo_n "(cached) " >&6 17105else 17106 ac_check_lib_save_LIBS=$LIBS 17107LIBS="-lmw $LIBS" 17108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17109/* end confdefs.h. */ 17110 17111/* Override any GCC internal prototype to avoid an error. 17112 Use char because int might match the return type of a GCC 17113 builtin and then its argument prototype would still apply. */ 17114#ifdef __cplusplus 17115extern "C" 17116#endif 17117char _mwvalidcheckl (); 17118int 17119main () 17120{ 17121return _mwvalidcheckl (); 17122 ; 17123 return 0; 17124} 17125_ACEOF 17126if ac_fn_c_try_link "$LINENO"; then : 17127 ac_cv_lib_mw__mwvalidcheckl=yes 17128else 17129 ac_cv_lib_mw__mwvalidcheckl=no 17130fi 17131rm -f core conftest.err conftest.$ac_objext \ 17132 conftest$ac_exeext conftest.$ac_ext 17133LIBS=$ac_check_lib_save_LIBS 17134fi 17135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 17136$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 17137if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 17138 LIBM=-lmw 17139fi 17140 17141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 17142$as_echo_n "checking for cos in -lm... " >&6; } 17143if ${ac_cv_lib_m_cos+:} false; then : 17144 $as_echo_n "(cached) " >&6 17145else 17146 ac_check_lib_save_LIBS=$LIBS 17147LIBS="-lm $LIBS" 17148cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17149/* end confdefs.h. */ 17150 17151/* Override any GCC internal prototype to avoid an error. 17152 Use char because int might match the return type of a GCC 17153 builtin and then its argument prototype would still apply. */ 17154#ifdef __cplusplus 17155extern "C" 17156#endif 17157char cos (); 17158int 17159main () 17160{ 17161return cos (); 17162 ; 17163 return 0; 17164} 17165_ACEOF 17166if ac_fn_c_try_link "$LINENO"; then : 17167 ac_cv_lib_m_cos=yes 17168else 17169 ac_cv_lib_m_cos=no 17170fi 17171rm -f core conftest.err conftest.$ac_objext \ 17172 conftest$ac_exeext conftest.$ac_ext 17173LIBS=$ac_check_lib_save_LIBS 17174fi 17175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 17176$as_echo "$ac_cv_lib_m_cos" >&6; } 17177if test "x$ac_cv_lib_m_cos" = xyes; then : 17178 LIBM="$LIBM -lm" 17179fi 17180 17181 ;; 17182*) 17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 17184$as_echo_n "checking for cos in -lm... " >&6; } 17185if ${ac_cv_lib_m_cos+:} false; then : 17186 $as_echo_n "(cached) " >&6 17187else 17188 ac_check_lib_save_LIBS=$LIBS 17189LIBS="-lm $LIBS" 17190cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17191/* end confdefs.h. */ 17192 17193/* Override any GCC internal prototype to avoid an error. 17194 Use char because int might match the return type of a GCC 17195 builtin and then its argument prototype would still apply. */ 17196#ifdef __cplusplus 17197extern "C" 17198#endif 17199char cos (); 17200int 17201main () 17202{ 17203return cos (); 17204 ; 17205 return 0; 17206} 17207_ACEOF 17208if ac_fn_c_try_link "$LINENO"; then : 17209 ac_cv_lib_m_cos=yes 17210else 17211 ac_cv_lib_m_cos=no 17212fi 17213rm -f core conftest.err conftest.$ac_objext \ 17214 conftest$ac_exeext conftest.$ac_ext 17215LIBS=$ac_check_lib_save_LIBS 17216fi 17217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 17218$as_echo "$ac_cv_lib_m_cos" >&6; } 17219if test "x$ac_cv_lib_m_cos" = xyes; then : 17220 LIBM=-lm 17221fi 17222 17223 ;; 17224esac 17225 17226 17227 17228 17229 17230 17231subdirs="$subdirs subprojects/spice-common" 17232 17233 17234pkg_failed=no 17235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPICE_PROTOCOL" >&5 17236$as_echo_n "checking for SPICE_PROTOCOL... " >&6; } 17237 17238if test -n "$SPICE_PROTOCOL_CFLAGS"; then 17239 pkg_cv_SPICE_PROTOCOL_CFLAGS="$SPICE_PROTOCOL_CFLAGS" 17240 elif test -n "$PKG_CONFIG"; then 17241 if test -n "$PKG_CONFIG" && \ 17242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-protocol >= 0.12.15\""; } >&5 17243 ($PKG_CONFIG --exists --print-errors "spice-protocol >= 0.12.15") 2>&5 17244 ac_status=$? 17245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17246 test $ac_status = 0; }; then 17247 pkg_cv_SPICE_PROTOCOL_CFLAGS=`$PKG_CONFIG --cflags "spice-protocol >= 0.12.15" 2>/dev/null` 17248 test "x$?" != "x0" && pkg_failed=yes 17249else 17250 pkg_failed=yes 17251fi 17252 else 17253 pkg_failed=untried 17254fi 17255if test -n "$SPICE_PROTOCOL_LIBS"; then 17256 pkg_cv_SPICE_PROTOCOL_LIBS="$SPICE_PROTOCOL_LIBS" 17257 elif test -n "$PKG_CONFIG"; then 17258 if test -n "$PKG_CONFIG" && \ 17259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"spice-protocol >= 0.12.15\""; } >&5 17260 ($PKG_CONFIG --exists --print-errors "spice-protocol >= 0.12.15") 2>&5 17261 ac_status=$? 17262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17263 test $ac_status = 0; }; then 17264 pkg_cv_SPICE_PROTOCOL_LIBS=`$PKG_CONFIG --libs "spice-protocol >= 0.12.15" 2>/dev/null` 17265 test "x$?" != "x0" && pkg_failed=yes 17266else 17267 pkg_failed=yes 17268fi 17269 else 17270 pkg_failed=untried 17271fi 17272 17273 17274 17275if test $pkg_failed = yes; then 17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17277$as_echo "no" >&6; } 17278 17279if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17280 _pkg_short_errors_supported=yes 17281else 17282 _pkg_short_errors_supported=no 17283fi 17284 if test $_pkg_short_errors_supported = yes; then 17285 SPICE_PROTOCOL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "spice-protocol >= 0.12.15" 2>&1` 17286 else 17287 SPICE_PROTOCOL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "spice-protocol >= 0.12.15" 2>&1` 17288 fi 17289 # Put the nasty error message in config.log where it belongs 17290 echo "$SPICE_PROTOCOL_PKG_ERRORS" >&5 17291 17292 as_fn_error $? "Package requirements (spice-protocol >= 0.12.15) were not met: 17293 17294$SPICE_PROTOCOL_PKG_ERRORS 17295 17296Consider adjusting the PKG_CONFIG_PATH environment variable if you 17297installed software in a non-standard prefix. 17298 17299Alternatively, you may set the environment variables SPICE_PROTOCOL_CFLAGS 17300and SPICE_PROTOCOL_LIBS to avoid the need to call pkg-config. 17301See the pkg-config man page for more details." "$LINENO" 5 17302elif test $pkg_failed = untried; then 17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17304$as_echo "no" >&6; } 17305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17307as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17308is in your PATH or set the PKG_CONFIG environment variable to the full 17309path to pkg-config. 17310 17311Alternatively, you may set the environment variables SPICE_PROTOCOL_CFLAGS 17312and SPICE_PROTOCOL_LIBS to avoid the need to call pkg-config. 17313See the pkg-config man page for more details. 17314 17315To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17316See \`config.log' for more details" "$LINENO" 5; } 17317else 17318 SPICE_PROTOCOL_CFLAGS=$pkg_cv_SPICE_PROTOCOL_CFLAGS 17319 SPICE_PROTOCOL_LIBS=$pkg_cv_SPICE_PROTOCOL_LIBS 17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17321$as_echo "yes" >&6; } 17322 17323fi 17324 17325COMMON_CFLAGS='-I${top_builddir}/subprojects/spice-common/ -I${top_srcdir}/subprojects/spice-common/ ${SPICE_PROTOCOL_CFLAGS}' 17326 17327 17328SPICE_COMMON_DIR='${top_builddir}/subprojects/spice-common' 17329 17330 17331SPICE_GTK_MAJOR_VERSION=`echo $PACKAGE_VERSION | cut -d. -f1` 17332SPICE_GTK_MINOR_VERSION=`echo $PACKAGE_VERSION | cut -d. -f2` 17333SPICE_GTK_MICRO_VERSION=`echo $PACKAGE_VERSION | cut -d. -f3 | cut -d- -f1` 17334if test "x$SPICE_GTK_MICRO_VERSION" = "x"; then : 17335 SPICE_GTK_MICRO_VERSION=0 17336fi 17337 17338 17339 17340 17341 17342 17343SPICE_GLIB_REQUIRES="" 17344SPICE_GLIB_LIBS="" 17345SPICE_GTK_REQUIRES="" 17346 17347 17348pkg_failed=no 17349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5 17350$as_echo_n "checking for PIXMAN... " >&6; } 17351 17352if test -n "$PIXMAN_CFLAGS"; then 17353 pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS" 17354 elif test -n "$PKG_CONFIG"; then 17355 if test -n "$PKG_CONFIG" && \ 17356 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1 >= 0.17.7\""; } >&5 17357 ($PKG_CONFIG --exists --print-errors "pixman-1 >= 0.17.7") 2>&5 17358 ac_status=$? 17359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17360 test $ac_status = 0; }; then 17361 pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "pixman-1 >= 0.17.7" 2>/dev/null` 17362 test "x$?" != "x0" && pkg_failed=yes 17363else 17364 pkg_failed=yes 17365fi 17366 else 17367 pkg_failed=untried 17368fi 17369if test -n "$PIXMAN_LIBS"; then 17370 pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS" 17371 elif test -n "$PKG_CONFIG"; then 17372 if test -n "$PKG_CONFIG" && \ 17373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pixman-1 >= 0.17.7\""; } >&5 17374 ($PKG_CONFIG --exists --print-errors "pixman-1 >= 0.17.7") 2>&5 17375 ac_status=$? 17376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17377 test $ac_status = 0; }; then 17378 pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "pixman-1 >= 0.17.7" 2>/dev/null` 17379 test "x$?" != "x0" && pkg_failed=yes 17380else 17381 pkg_failed=yes 17382fi 17383 else 17384 pkg_failed=untried 17385fi 17386 17387 17388 17389if test $pkg_failed = yes; then 17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17391$as_echo "no" >&6; } 17392 17393if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17394 _pkg_short_errors_supported=yes 17395else 17396 _pkg_short_errors_supported=no 17397fi 17398 if test $_pkg_short_errors_supported = yes; then 17399 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pixman-1 >= 0.17.7" 2>&1` 17400 else 17401 PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pixman-1 >= 0.17.7" 2>&1` 17402 fi 17403 # Put the nasty error message in config.log where it belongs 17404 echo "$PIXMAN_PKG_ERRORS" >&5 17405 17406 as_fn_error $? "Package requirements (pixman-1 >= 0.17.7) were not met: 17407 17408$PIXMAN_PKG_ERRORS 17409 17410Consider adjusting the PKG_CONFIG_PATH environment variable if you 17411installed software in a non-standard prefix. 17412 17413Alternatively, you may set the environment variables PIXMAN_CFLAGS 17414and PIXMAN_LIBS to avoid the need to call pkg-config. 17415See the pkg-config man page for more details." "$LINENO" 5 17416elif test $pkg_failed = untried; then 17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17418$as_echo "no" >&6; } 17419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17421as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17422is in your PATH or set the PKG_CONFIG environment variable to the full 17423path to pkg-config. 17424 17425Alternatively, you may set the environment variables PIXMAN_CFLAGS 17426and PIXMAN_LIBS to avoid the need to call pkg-config. 17427See the pkg-config man page for more details. 17428 17429To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17430See \`config.log' for more details" "$LINENO" 5; } 17431else 17432 PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS 17433 PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS 17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17435$as_echo "yes" >&6; } 17436 17437fi 17438 17439SPICE_GLIB_REQUIRES="${SPICE_GLIB_REQUIRES} pixman-1 >= 0.17.7" 17440 17441 17442 17443pkg_failed=no 17444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 17445$as_echo_n "checking for OPENSSL... " >&6; } 17446 17447if test -n "$OPENSSL_CFLAGS"; then 17448 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 17449 elif test -n "$PKG_CONFIG"; then 17450 if test -n "$PKG_CONFIG" && \ 17451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 17452 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 17453 ac_status=$? 17454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17455 test $ac_status = 0; }; then 17456 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 17457 test "x$?" != "x0" && pkg_failed=yes 17458else 17459 pkg_failed=yes 17460fi 17461 else 17462 pkg_failed=untried 17463fi 17464if test -n "$OPENSSL_LIBS"; then 17465 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 17466 elif test -n "$PKG_CONFIG"; then 17467 if test -n "$PKG_CONFIG" && \ 17468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 17469 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 17470 ac_status=$? 17471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17472 test $ac_status = 0; }; then 17473 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 17474 test "x$?" != "x0" && pkg_failed=yes 17475else 17476 pkg_failed=yes 17477fi 17478 else 17479 pkg_failed=untried 17480fi 17481 17482 17483 17484if test $pkg_failed = yes; then 17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17486$as_echo "no" >&6; } 17487 17488if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17489 _pkg_short_errors_supported=yes 17490else 17491 _pkg_short_errors_supported=no 17492fi 17493 if test $_pkg_short_errors_supported = yes; then 17494 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` 17495 else 17496 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` 17497 fi 17498 # Put the nasty error message in config.log where it belongs 17499 echo "$OPENSSL_PKG_ERRORS" >&5 17500 17501 as_fn_error $? "Package requirements (openssl) were not met: 17502 17503$OPENSSL_PKG_ERRORS 17504 17505Consider adjusting the PKG_CONFIG_PATH environment variable if you 17506installed software in a non-standard prefix. 17507 17508Alternatively, you may set the environment variables OPENSSL_CFLAGS 17509and OPENSSL_LIBS to avoid the need to call pkg-config. 17510See the pkg-config man page for more details." "$LINENO" 5 17511elif test $pkg_failed = untried; then 17512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17513$as_echo "no" >&6; } 17514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17516as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17517is in your PATH or set the PKG_CONFIG environment variable to the full 17518path to pkg-config. 17519 17520Alternatively, you may set the environment variables OPENSSL_CFLAGS 17521and OPENSSL_LIBS to avoid the need to call pkg-config. 17522See the pkg-config man page for more details. 17523 17524To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17525See \`config.log' for more details" "$LINENO" 5; } 17526else 17527 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 17528 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17530$as_echo "yes" >&6; } 17531 17532fi 17533 17534 17535if test -n "$PKG_CONFIG" && \ 17536 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 17537 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 17538 ac_status=$? 17539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17540 test $ac_status = 0; }; then 17541 SPICE_GLIB_REQUIRES="${SPICE_GLIB_REQUIRES} openssl" 17542else 17543 SPICE_GLIB_LIBS="${SPICE_GLIB_LIBS} ${OPENSSL_LIBS}" 17544fi 17545 17546 17547 # Check whether --enable-recorder was given. 17548if test "${enable_recorder+set}" = set; then : 17549 enableval=$enable_recorder; 17550else 17551 enable_recorder="no" 17552fi 17553 17554 if test "$enable_recorder" = "yes"; then : 17555 17556$as_echo "#define ENABLE_RECORDER 1" >>confdefs.h 17557 17558fi 17559 if test "$enable_recorder" = "yes"; then 17560 ENABLE_RECORDER_TRUE= 17561 ENABLE_RECORDER_FALSE='#' 17562else 17563 ENABLE_RECORDER_TRUE='#' 17564 ENABLE_RECORDER_FALSE= 17565fi 17566 17567 17568 17569 17570# Check whether --with-sasl was given. 17571if test "${with_sasl+set}" = set; then : 17572 withval=$with_sasl; 17573else 17574 with_sasl="auto" 17575fi 17576 17577 17578 have_sasl=no 17579 if test "x$with_sasl" != "xno"; then 17580 17581pkg_failed=no 17582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SASL" >&5 17583$as_echo_n "checking for SASL... " >&6; } 17584 17585if test -n "$SASL_CFLAGS"; then 17586 pkg_cv_SASL_CFLAGS="$SASL_CFLAGS" 17587 elif test -n "$PKG_CONFIG"; then 17588 if test -n "$PKG_CONFIG" && \ 17589 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsasl2\""; } >&5 17590 ($PKG_CONFIG --exists --print-errors "libsasl2") 2>&5 17591 ac_status=$? 17592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17593 test $ac_status = 0; }; then 17594 pkg_cv_SASL_CFLAGS=`$PKG_CONFIG --cflags "libsasl2" 2>/dev/null` 17595 test "x$?" != "x0" && pkg_failed=yes 17596else 17597 pkg_failed=yes 17598fi 17599 else 17600 pkg_failed=untried 17601fi 17602if test -n "$SASL_LIBS"; then 17603 pkg_cv_SASL_LIBS="$SASL_LIBS" 17604 elif test -n "$PKG_CONFIG"; then 17605 if test -n "$PKG_CONFIG" && \ 17606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsasl2\""; } >&5 17607 ($PKG_CONFIG --exists --print-errors "libsasl2") 2>&5 17608 ac_status=$? 17609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17610 test $ac_status = 0; }; then 17611 pkg_cv_SASL_LIBS=`$PKG_CONFIG --libs "libsasl2" 2>/dev/null` 17612 test "x$?" != "x0" && pkg_failed=yes 17613else 17614 pkg_failed=yes 17615fi 17616 else 17617 pkg_failed=untried 17618fi 17619 17620 17621 17622if test $pkg_failed = yes; then 17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17624$as_echo "no" >&6; } 17625 17626if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17627 _pkg_short_errors_supported=yes 17628else 17629 _pkg_short_errors_supported=no 17630fi 17631 if test $_pkg_short_errors_supported = yes; then 17632 SASL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsasl2" 2>&1` 17633 else 17634 SASL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsasl2" 2>&1` 17635 fi 17636 # Put the nasty error message in config.log where it belongs 17637 echo "$SASL_PKG_ERRORS" >&5 17638 17639 have_sasl=no 17640elif test $pkg_failed = untried; then 17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17642$as_echo "no" >&6; } 17643 have_sasl=no 17644else 17645 SASL_CFLAGS=$pkg_cv_SASL_CFLAGS 17646 SASL_LIBS=$pkg_cv_SASL_LIBS 17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17648$as_echo "yes" >&6; } 17649 have_sasl=yes 17650fi 17651 if test "x$have_sasl" = "xno" && test "x$with_sasl" = "xyes"; then 17652 as_fn_error $? "Cyrus SASL support requested but libsasl2 could not be found" "$LINENO" 5 17653 fi 17654 if test "x$have_sasl" = "xyes"; then 17655 17656$as_echo "#define HAVE_SASL 1" >>confdefs.h 17657 17658 fi 17659 fi 17660 17661 17662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which gtk+ version to compile against" >&5 17663$as_echo_n "checking which gtk+ version to compile against... " >&6; } 17664 17665# Check whether --with-gtk was given. 17666if test "${with_gtk+set}" = set; then : 17667 withval=$with_gtk; case "$with_gtk" in 17668 3.0) { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gtk" >&5 17669$as_echo "$with_gtk" >&6; } ;; 17670 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 17671$as_echo "none" >&6; } ;; 17672 *) as_fn_error $? "invalid gtk version specified" "$LINENO" 5 ;; 17673 esac 17674else 17675 with_gtk=3.0 17676fi 17677 17678 17679case "$with_gtk" in 17680 3.0) GTK_REQUIRED=3.22 17681 GTK_ENCODED_VERSION="GDK_VERSION_3_22" 17682 ;; 17683 no) 17684 if test x$enable_gtk_doc = xyes; then : 17685 as_fn_error $? "Without GTK+, gtk-doc must be disabled" "$LINENO" 5 17686fi 17687esac 17688 17689 17690 if test "$with_gtk" != "no"; then 17691 WITH_GTK_TRUE= 17692 WITH_GTK_FALSE='#' 17693else 17694 WITH_GTK_TRUE='#' 17695 WITH_GTK_FALSE= 17696fi 17697 17698 17699if test "x$with_gtk" != "xno"; then : 17700 if test "x$os_win32" = "xyes"; then : 17701 17702pkg_failed=no 17703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 17704$as_echo_n "checking for GTK... " >&6; } 17705 17706if test -n "$GTK_CFLAGS"; then 17707 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" 17708 elif test -n "$PKG_CONFIG"; then 17709 if test -n "$PKG_CONFIG" && \ 17710 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_REQUIRED\""; } >&5 17711 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_REQUIRED") 2>&5 17712 ac_status=$? 17713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17714 test $ac_status = 0; }; then 17715 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= $GTK_REQUIRED" 2>/dev/null` 17716 test "x$?" != "x0" && pkg_failed=yes 17717else 17718 pkg_failed=yes 17719fi 17720 else 17721 pkg_failed=untried 17722fi 17723if test -n "$GTK_LIBS"; then 17724 pkg_cv_GTK_LIBS="$GTK_LIBS" 17725 elif test -n "$PKG_CONFIG"; then 17726 if test -n "$PKG_CONFIG" && \ 17727 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_REQUIRED\""; } >&5 17728 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_REQUIRED") 2>&5 17729 ac_status=$? 17730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17731 test $ac_status = 0; }; then 17732 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= $GTK_REQUIRED" 2>/dev/null` 17733 test "x$?" != "x0" && pkg_failed=yes 17734else 17735 pkg_failed=yes 17736fi 17737 else 17738 pkg_failed=untried 17739fi 17740 17741 17742 17743if test $pkg_failed = yes; then 17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17745$as_echo "no" >&6; } 17746 17747if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17748 _pkg_short_errors_supported=yes 17749else 17750 _pkg_short_errors_supported=no 17751fi 17752 if test $_pkg_short_errors_supported = yes; then 17753 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= $GTK_REQUIRED" 2>&1` 17754 else 17755 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= $GTK_REQUIRED" 2>&1` 17756 fi 17757 # Put the nasty error message in config.log where it belongs 17758 echo "$GTK_PKG_ERRORS" >&5 17759 17760 as_fn_error $? "Package requirements (gtk+-3.0 >= $GTK_REQUIRED) were not met: 17761 17762$GTK_PKG_ERRORS 17763 17764Consider adjusting the PKG_CONFIG_PATH environment variable if you 17765installed software in a non-standard prefix. 17766 17767Alternatively, you may set the environment variables GTK_CFLAGS 17768and GTK_LIBS to avoid the need to call pkg-config. 17769See the pkg-config man page for more details." "$LINENO" 5 17770elif test $pkg_failed = untried; then 17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17772$as_echo "no" >&6; } 17773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17775as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17776is in your PATH or set the PKG_CONFIG environment variable to the full 17777path to pkg-config. 17778 17779Alternatively, you may set the environment variables GTK_CFLAGS 17780and GTK_LIBS to avoid the need to call pkg-config. 17781See the pkg-config man page for more details. 17782 17783To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17784See \`config.log' for more details" "$LINENO" 5; } 17785else 17786 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS 17787 GTK_LIBS=$pkg_cv_GTK_LIBS 17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17789$as_echo "yes" >&6; } 17790 17791fi 17792else 17793 17794pkg_failed=no 17795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 17796$as_echo_n "checking for GTK... " >&6; } 17797 17798if test -n "$GTK_CFLAGS"; then 17799 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" 17800 elif test -n "$PKG_CONFIG"; then 17801 if test -n "$PKG_CONFIG" && \ 17802 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_REQUIRED epoxy\""; } >&5 17803 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_REQUIRED epoxy") 2>&5 17804 ac_status=$? 17805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17806 test $ac_status = 0; }; then 17807 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= $GTK_REQUIRED epoxy" 2>/dev/null` 17808 test "x$?" != "x0" && pkg_failed=yes 17809else 17810 pkg_failed=yes 17811fi 17812 else 17813 pkg_failed=untried 17814fi 17815if test -n "$GTK_LIBS"; then 17816 pkg_cv_GTK_LIBS="$GTK_LIBS" 17817 elif test -n "$PKG_CONFIG"; then 17818 if test -n "$PKG_CONFIG" && \ 17819 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$GTK_REQUIRED epoxy\""; } >&5 17820 ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $GTK_REQUIRED epoxy") 2>&5 17821 ac_status=$? 17822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17823 test $ac_status = 0; }; then 17824 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= $GTK_REQUIRED epoxy" 2>/dev/null` 17825 test "x$?" != "x0" && pkg_failed=yes 17826else 17827 pkg_failed=yes 17828fi 17829 else 17830 pkg_failed=untried 17831fi 17832 17833 17834 17835if test $pkg_failed = yes; then 17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17837$as_echo "no" >&6; } 17838 17839if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17840 _pkg_short_errors_supported=yes 17841else 17842 _pkg_short_errors_supported=no 17843fi 17844 if test $_pkg_short_errors_supported = yes; then 17845 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= $GTK_REQUIRED epoxy" 2>&1` 17846 else 17847 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= $GTK_REQUIRED epoxy" 2>&1` 17848 fi 17849 # Put the nasty error message in config.log where it belongs 17850 echo "$GTK_PKG_ERRORS" >&5 17851 17852 as_fn_error $? "Package requirements (gtk+-3.0 >= $GTK_REQUIRED epoxy) were not met: 17853 17854$GTK_PKG_ERRORS 17855 17856Consider adjusting the PKG_CONFIG_PATH environment variable if you 17857installed software in a non-standard prefix. 17858 17859Alternatively, you may set the environment variables GTK_CFLAGS 17860and GTK_LIBS to avoid the need to call pkg-config. 17861See the pkg-config man page for more details." "$LINENO" 5 17862elif test $pkg_failed = untried; then 17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17864$as_echo "no" >&6; } 17865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17867as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17868is in your PATH or set the PKG_CONFIG environment variable to the full 17869path to pkg-config. 17870 17871Alternatively, you may set the environment variables GTK_CFLAGS 17872and GTK_LIBS to avoid the need to call pkg-config. 17873See the pkg-config man page for more details. 17874 17875To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17876See \`config.log' for more details" "$LINENO" 5; } 17877else 17878 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS 17879 GTK_LIBS=$pkg_cv_GTK_LIBS 17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17881$as_echo "yes" >&6; } 17882 17883fi 17884fi 17885 GTK_CFLAGS="$GTK_CFLAGS -DGDK_VERSION_MIN_REQUIRED=$GTK_ENCODED_VERSION \ 17886 -DGDK_VERSION_MAX_ALLOWED=$GTK_ENCODED_VERSION" 17887fi 17888SPICE_GTK_REQUIRES="${SPICE_GTK_REQUIRES} gtk+-3.0 >= $GTK_REQUIRED" 17889 17890if test -n "$PKG_CONFIG" && \ 17891 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-x11-\$with_gtk\""; } >&5 17892 ($PKG_CONFIG --exists --print-errors "gtk+-x11-$with_gtk") 2>&5 17893 ac_status=$? 17894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17895 test $ac_status = 0; }; then 17896 17897pkg_failed=no 17898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5 17899$as_echo_n "checking for X11... " >&6; } 17900 17901if test -n "$X11_CFLAGS"; then 17902 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 17903 elif test -n "$PKG_CONFIG"; then 17904 if test -n "$PKG_CONFIG" && \ 17905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 17906 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 17907 ac_status=$? 17908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17909 test $ac_status = 0; }; then 17910 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 17911 test "x$?" != "x0" && pkg_failed=yes 17912else 17913 pkg_failed=yes 17914fi 17915 else 17916 pkg_failed=untried 17917fi 17918if test -n "$X11_LIBS"; then 17919 pkg_cv_X11_LIBS="$X11_LIBS" 17920 elif test -n "$PKG_CONFIG"; then 17921 if test -n "$PKG_CONFIG" && \ 17922 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 17923 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 17924 ac_status=$? 17925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17926 test $ac_status = 0; }; then 17927 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 17928 test "x$?" != "x0" && pkg_failed=yes 17929else 17930 pkg_failed=yes 17931fi 17932 else 17933 pkg_failed=untried 17934fi 17935 17936 17937 17938if test $pkg_failed = yes; then 17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17940$as_echo "no" >&6; } 17941 17942if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17943 _pkg_short_errors_supported=yes 17944else 17945 _pkg_short_errors_supported=no 17946fi 17947 if test $_pkg_short_errors_supported = yes; then 17948 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 17949 else 17950 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 17951 fi 17952 # Put the nasty error message in config.log where it belongs 17953 echo "$X11_PKG_ERRORS" >&5 17954 17955 as_fn_error $? "Package requirements (x11) were not met: 17956 17957$X11_PKG_ERRORS 17958 17959Consider adjusting the PKG_CONFIG_PATH environment variable if you 17960installed software in a non-standard prefix. 17961 17962Alternatively, you may set the environment variables X11_CFLAGS 17963and X11_LIBS to avoid the need to call pkg-config. 17964See the pkg-config man page for more details." "$LINENO" 5 17965elif test $pkg_failed = untried; then 17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17967$as_echo "no" >&6; } 17968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17970as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 17971is in your PATH or set the PKG_CONFIG environment variable to the full 17972path to pkg-config. 17973 17974Alternatively, you may set the environment variables X11_CFLAGS 17975and X11_LIBS to avoid the need to call pkg-config. 17976See the pkg-config man page for more details. 17977 17978To get pkg-config, see <http://pkg-config.freedesktop.org/>. 17979See \`config.log' for more details" "$LINENO" 5; } 17980else 17981 X11_CFLAGS=$pkg_cv_X11_CFLAGS 17982 X11_LIBS=$pkg_cv_X11_LIBS 17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17984$as_echo "yes" >&6; } 17985 17986fi 17987fi 17988for ac_header in X11/XKBlib.h 17989do : 17990 ac_fn_c_check_header_mongrel "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "$ac_includes_default" 17991if test "x$ac_cv_header_X11_XKBlib_h" = xyes; then : 17992 cat >>confdefs.h <<_ACEOF 17993#define HAVE_X11_XKBLIB_H 1 17994_ACEOF 17995 17996fi 17997 17998done 17999 18000 18001for ac_func in clearenv strtok_r 18002do : 18003 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18004ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18005if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18006 cat >>confdefs.h <<_ACEOF 18007#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18008_ACEOF 18009 18010fi 18011done 18012 18013 18014# Keep these two definitions in agreement. 18015GLIB2_REQUIRED="2.46" 18016GLIB2_ENCODED_VERSION="GLIB_VERSION_2_46" 18017 18018 18019pkg_failed=no 18020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5 18021$as_echo_n "checking for GLIB2... " >&6; } 18022 18023if test -n "$GLIB2_CFLAGS"; then 18024 pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS" 18025 elif test -n "$PKG_CONFIG"; then 18026 if test -n "$PKG_CONFIG" && \ 18027 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB2_REQUIRED\""; } >&5 18028 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB2_REQUIRED") 2>&5 18029 ac_status=$? 18030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18031 test $ac_status = 0; }; then 18032 pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB2_REQUIRED" 2>/dev/null` 18033 test "x$?" != "x0" && pkg_failed=yes 18034else 18035 pkg_failed=yes 18036fi 18037 else 18038 pkg_failed=untried 18039fi 18040if test -n "$GLIB2_LIBS"; then 18041 pkg_cv_GLIB2_LIBS="$GLIB2_LIBS" 18042 elif test -n "$PKG_CONFIG"; then 18043 if test -n "$PKG_CONFIG" && \ 18044 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB2_REQUIRED\""; } >&5 18045 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB2_REQUIRED") 2>&5 18046 ac_status=$? 18047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18048 test $ac_status = 0; }; then 18049 pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB2_REQUIRED" 2>/dev/null` 18050 test "x$?" != "x0" && pkg_failed=yes 18051else 18052 pkg_failed=yes 18053fi 18054 else 18055 pkg_failed=untried 18056fi 18057 18058 18059 18060if test $pkg_failed = yes; then 18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18062$as_echo "no" >&6; } 18063 18064if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18065 _pkg_short_errors_supported=yes 18066else 18067 _pkg_short_errors_supported=no 18068fi 18069 if test $_pkg_short_errors_supported = yes; then 18070 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= $GLIB2_REQUIRED" 2>&1` 18071 else 18072 GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB2_REQUIRED" 2>&1` 18073 fi 18074 # Put the nasty error message in config.log where it belongs 18075 echo "$GLIB2_PKG_ERRORS" >&5 18076 18077 as_fn_error $? "Package requirements (glib-2.0 >= $GLIB2_REQUIRED) were not met: 18078 18079$GLIB2_PKG_ERRORS 18080 18081Consider adjusting the PKG_CONFIG_PATH environment variable if you 18082installed software in a non-standard prefix. 18083 18084Alternatively, you may set the environment variables GLIB2_CFLAGS 18085and GLIB2_LIBS to avoid the need to call pkg-config. 18086See the pkg-config man page for more details." "$LINENO" 5 18087elif test $pkg_failed = untried; then 18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18089$as_echo "no" >&6; } 18090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18092as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18093is in your PATH or set the PKG_CONFIG environment variable to the full 18094path to pkg-config. 18095 18096Alternatively, you may set the environment variables GLIB2_CFLAGS 18097and GLIB2_LIBS to avoid the need to call pkg-config. 18098See the pkg-config man page for more details. 18099 18100To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18101See \`config.log' for more details" "$LINENO" 5; } 18102else 18103 GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS 18104 GLIB2_LIBS=$pkg_cv_GLIB2_LIBS 18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18106$as_echo "yes" >&6; } 18107 18108fi 18109GLIB2_CFLAGS="$GLIB2_CFLAGS -DGLIB_VERSION_MIN_REQUIRED=$GLIB2_ENCODED_VERSION \ 18110 -DGLIB_VERSION_MAX_ALLOWED=$GLIB2_ENCODED_VERSION" 18111 18112 18113pkg_failed=no 18114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT2" >&5 18115$as_echo_n "checking for GOBJECT2... " >&6; } 18116 18117if test -n "$GOBJECT2_CFLAGS"; then 18118 pkg_cv_GOBJECT2_CFLAGS="$GOBJECT2_CFLAGS" 18119 elif test -n "$PKG_CONFIG"; then 18120 if test -n "$PKG_CONFIG" && \ 18121 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5 18122 ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5 18123 ac_status=$? 18124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18125 test $ac_status = 0; }; then 18126 pkg_cv_GOBJECT2_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null` 18127 test "x$?" != "x0" && pkg_failed=yes 18128else 18129 pkg_failed=yes 18130fi 18131 else 18132 pkg_failed=untried 18133fi 18134if test -n "$GOBJECT2_LIBS"; then 18135 pkg_cv_GOBJECT2_LIBS="$GOBJECT2_LIBS" 18136 elif test -n "$PKG_CONFIG"; then 18137 if test -n "$PKG_CONFIG" && \ 18138 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5 18139 ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5 18140 ac_status=$? 18141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18142 test $ac_status = 0; }; then 18143 pkg_cv_GOBJECT2_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null` 18144 test "x$?" != "x0" && pkg_failed=yes 18145else 18146 pkg_failed=yes 18147fi 18148 else 18149 pkg_failed=untried 18150fi 18151 18152 18153 18154if test $pkg_failed = yes; then 18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18156$as_echo "no" >&6; } 18157 18158if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18159 _pkg_short_errors_supported=yes 18160else 18161 _pkg_short_errors_supported=no 18162fi 18163 if test $_pkg_short_errors_supported = yes; then 18164 GOBJECT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0" 2>&1` 18165 else 18166 GOBJECT2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0" 2>&1` 18167 fi 18168 # Put the nasty error message in config.log where it belongs 18169 echo "$GOBJECT2_PKG_ERRORS" >&5 18170 18171 as_fn_error $? "Package requirements (gobject-2.0) were not met: 18172 18173$GOBJECT2_PKG_ERRORS 18174 18175Consider adjusting the PKG_CONFIG_PATH environment variable if you 18176installed software in a non-standard prefix. 18177 18178Alternatively, you may set the environment variables GOBJECT2_CFLAGS 18179and GOBJECT2_LIBS to avoid the need to call pkg-config. 18180See the pkg-config man page for more details." "$LINENO" 5 18181elif test $pkg_failed = untried; then 18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18183$as_echo "no" >&6; } 18184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18186as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18187is in your PATH or set the PKG_CONFIG environment variable to the full 18188path to pkg-config. 18189 18190Alternatively, you may set the environment variables GOBJECT2_CFLAGS 18191and GOBJECT2_LIBS to avoid the need to call pkg-config. 18192See the pkg-config man page for more details. 18193 18194To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18195See \`config.log' for more details" "$LINENO" 5; } 18196else 18197 GOBJECT2_CFLAGS=$pkg_cv_GOBJECT2_CFLAGS 18198 GOBJECT2_LIBS=$pkg_cv_GOBJECT2_LIBS 18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18200$as_echo "yes" >&6; } 18201 18202fi 18203 18204 18205pkg_failed=no 18206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5 18207$as_echo_n "checking for GIO... " >&6; } 18208 18209if test -n "$GIO_CFLAGS"; then 18210 pkg_cv_GIO_CFLAGS="$GIO_CFLAGS" 18211 elif test -n "$PKG_CONFIG"; then 18212 if test -n "$PKG_CONFIG" && \ 18213 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.36 \$gio_os\""; } >&5 18214 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.36 $gio_os") 2>&5 18215 ac_status=$? 18216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18217 test $ac_status = 0; }; then 18218 pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.36 $gio_os" 2>/dev/null` 18219 test "x$?" != "x0" && pkg_failed=yes 18220else 18221 pkg_failed=yes 18222fi 18223 else 18224 pkg_failed=untried 18225fi 18226if test -n "$GIO_LIBS"; then 18227 pkg_cv_GIO_LIBS="$GIO_LIBS" 18228 elif test -n "$PKG_CONFIG"; then 18229 if test -n "$PKG_CONFIG" && \ 18230 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.36 \$gio_os\""; } >&5 18231 ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.36 $gio_os") 2>&5 18232 ac_status=$? 18233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18234 test $ac_status = 0; }; then 18235 pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.36 $gio_os" 2>/dev/null` 18236 test "x$?" != "x0" && pkg_failed=yes 18237else 18238 pkg_failed=yes 18239fi 18240 else 18241 pkg_failed=untried 18242fi 18243 18244 18245 18246if test $pkg_failed = yes; then 18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18248$as_echo "no" >&6; } 18249 18250if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18251 _pkg_short_errors_supported=yes 18252else 18253 _pkg_short_errors_supported=no 18254fi 18255 if test $_pkg_short_errors_supported = yes; then 18256 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.36 $gio_os" 2>&1` 18257 else 18258 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.36 $gio_os" 2>&1` 18259 fi 18260 # Put the nasty error message in config.log where it belongs 18261 echo "$GIO_PKG_ERRORS" >&5 18262 18263 as_fn_error $? "Package requirements (gio-2.0 >= 2.36 $gio_os) were not met: 18264 18265$GIO_PKG_ERRORS 18266 18267Consider adjusting the PKG_CONFIG_PATH environment variable if you 18268installed software in a non-standard prefix. 18269 18270Alternatively, you may set the environment variables GIO_CFLAGS 18271and GIO_LIBS to avoid the need to call pkg-config. 18272See the pkg-config man page for more details." "$LINENO" 5 18273elif test $pkg_failed = untried; then 18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18275$as_echo "no" >&6; } 18276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18278as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18279is in your PATH or set the PKG_CONFIG environment variable to the full 18280path to pkg-config. 18281 18282Alternatively, you may set the environment variables GIO_CFLAGS 18283and GIO_LIBS to avoid the need to call pkg-config. 18284See the pkg-config man page for more details. 18285 18286To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18287See \`config.log' for more details" "$LINENO" 5; } 18288else 18289 GIO_CFLAGS=$pkg_cv_GIO_CFLAGS 18290 GIO_LIBS=$pkg_cv_GIO_LIBS 18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18292$as_echo "yes" >&6; } 18293 18294fi 18295 18296 18297pkg_failed=no 18298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5 18299$as_echo_n "checking for CAIRO... " >&6; } 18300 18301if test -n "$CAIRO_CFLAGS"; then 18302 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS" 18303 elif test -n "$PKG_CONFIG"; then 18304 if test -n "$PKG_CONFIG" && \ 18305 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2.0\""; } >&5 18306 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2.0") 2>&5 18307 ac_status=$? 18308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18309 test $ac_status = 0; }; then 18310 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.2.0" 2>/dev/null` 18311 test "x$?" != "x0" && pkg_failed=yes 18312else 18313 pkg_failed=yes 18314fi 18315 else 18316 pkg_failed=untried 18317fi 18318if test -n "$CAIRO_LIBS"; then 18319 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS" 18320 elif test -n "$PKG_CONFIG"; then 18321 if test -n "$PKG_CONFIG" && \ 18322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2.0\""; } >&5 18323 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2.0") 2>&5 18324 ac_status=$? 18325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18326 test $ac_status = 0; }; then 18327 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.2.0" 2>/dev/null` 18328 test "x$?" != "x0" && pkg_failed=yes 18329else 18330 pkg_failed=yes 18331fi 18332 else 18333 pkg_failed=untried 18334fi 18335 18336 18337 18338if test $pkg_failed = yes; then 18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18340$as_echo "no" >&6; } 18341 18342if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18343 _pkg_short_errors_supported=yes 18344else 18345 _pkg_short_errors_supported=no 18346fi 18347 if test $_pkg_short_errors_supported = yes; then 18348 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2.0" 2>&1` 18349 else 18350 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2.0" 2>&1` 18351 fi 18352 # Put the nasty error message in config.log where it belongs 18353 echo "$CAIRO_PKG_ERRORS" >&5 18354 18355 as_fn_error $? "Package requirements (cairo >= 1.2.0) were not met: 18356 18357$CAIRO_PKG_ERRORS 18358 18359Consider adjusting the PKG_CONFIG_PATH environment variable if you 18360installed software in a non-standard prefix. 18361 18362Alternatively, you may set the environment variables CAIRO_CFLAGS 18363and CAIRO_LIBS to avoid the need to call pkg-config. 18364See the pkg-config man page for more details." "$LINENO" 5 18365elif test $pkg_failed = untried; then 18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18367$as_echo "no" >&6; } 18368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18370as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18371is in your PATH or set the PKG_CONFIG environment variable to the full 18372path to pkg-config. 18373 18374Alternatively, you may set the environment variables CAIRO_CFLAGS 18375and CAIRO_LIBS to avoid the need to call pkg-config. 18376See the pkg-config man page for more details. 18377 18378To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18379See \`config.log' for more details" "$LINENO" 5; } 18380else 18381 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS 18382 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS 18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18384$as_echo "yes" >&6; } 18385 18386fi 18387 18388 18389pkg_failed=no 18390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5 18391$as_echo_n "checking for GTHREAD... " >&6; } 18392 18393if test -n "$GTHREAD_CFLAGS"; then 18394 pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS" 18395 elif test -n "$PKG_CONFIG"; then 18396 if test -n "$PKG_CONFIG" && \ 18397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5 18398 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5 18399 ac_status=$? 18400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18401 test $ac_status = 0; }; then 18402 pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null` 18403 test "x$?" != "x0" && pkg_failed=yes 18404else 18405 pkg_failed=yes 18406fi 18407 else 18408 pkg_failed=untried 18409fi 18410if test -n "$GTHREAD_LIBS"; then 18411 pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS" 18412 elif test -n "$PKG_CONFIG"; then 18413 if test -n "$PKG_CONFIG" && \ 18414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5 18415 ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5 18416 ac_status=$? 18417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18418 test $ac_status = 0; }; then 18419 pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null` 18420 test "x$?" != "x0" && pkg_failed=yes 18421else 18422 pkg_failed=yes 18423fi 18424 else 18425 pkg_failed=untried 18426fi 18427 18428 18429 18430if test $pkg_failed = yes; then 18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18432$as_echo "no" >&6; } 18433 18434if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18435 _pkg_short_errors_supported=yes 18436else 18437 _pkg_short_errors_supported=no 18438fi 18439 if test $_pkg_short_errors_supported = yes; then 18440 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1` 18441 else 18442 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1` 18443 fi 18444 # Put the nasty error message in config.log where it belongs 18445 echo "$GTHREAD_PKG_ERRORS" >&5 18446 18447 as_fn_error $? "Package requirements (gthread-2.0) were not met: 18448 18449$GTHREAD_PKG_ERRORS 18450 18451Consider adjusting the PKG_CONFIG_PATH environment variable if you 18452installed software in a non-standard prefix. 18453 18454Alternatively, you may set the environment variables GTHREAD_CFLAGS 18455and GTHREAD_LIBS to avoid the need to call pkg-config. 18456See the pkg-config man page for more details." "$LINENO" 5 18457elif test $pkg_failed = untried; then 18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18459$as_echo "no" >&6; } 18460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18462as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18463is in your PATH or set the PKG_CONFIG environment variable to the full 18464path to pkg-config. 18465 18466Alternatively, you may set the environment variables GTHREAD_CFLAGS 18467and GTHREAD_LIBS to avoid the need to call pkg-config. 18468See the pkg-config man page for more details. 18469 18470To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18471See \`config.log' for more details" "$LINENO" 5; } 18472else 18473 GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS 18474 GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS 18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18476$as_echo "yes" >&6; } 18477 18478fi 18479 18480 18481pkg_failed=no 18482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5 18483$as_echo_n "checking for JSON... " >&6; } 18484 18485if test -n "$JSON_CFLAGS"; then 18486 pkg_cv_JSON_CFLAGS="$JSON_CFLAGS" 18487 elif test -n "$PKG_CONFIG"; then 18488 if test -n "$PKG_CONFIG" && \ 18489 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-glib-1.0\""; } >&5 18490 ($PKG_CONFIG --exists --print-errors "json-glib-1.0") 2>&5 18491 ac_status=$? 18492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18493 test $ac_status = 0; }; then 18494 pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "json-glib-1.0" 2>/dev/null` 18495 test "x$?" != "x0" && pkg_failed=yes 18496else 18497 pkg_failed=yes 18498fi 18499 else 18500 pkg_failed=untried 18501fi 18502if test -n "$JSON_LIBS"; then 18503 pkg_cv_JSON_LIBS="$JSON_LIBS" 18504 elif test -n "$PKG_CONFIG"; then 18505 if test -n "$PKG_CONFIG" && \ 18506 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-glib-1.0\""; } >&5 18507 ($PKG_CONFIG --exists --print-errors "json-glib-1.0") 2>&5 18508 ac_status=$? 18509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18510 test $ac_status = 0; }; then 18511 pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "json-glib-1.0" 2>/dev/null` 18512 test "x$?" != "x0" && pkg_failed=yes 18513else 18514 pkg_failed=yes 18515fi 18516 else 18517 pkg_failed=untried 18518fi 18519 18520 18521 18522if test $pkg_failed = yes; then 18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18524$as_echo "no" >&6; } 18525 18526if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18527 _pkg_short_errors_supported=yes 18528else 18529 _pkg_short_errors_supported=no 18530fi 18531 if test $_pkg_short_errors_supported = yes; then 18532 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-glib-1.0" 2>&1` 18533 else 18534 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-glib-1.0" 2>&1` 18535 fi 18536 # Put the nasty error message in config.log where it belongs 18537 echo "$JSON_PKG_ERRORS" >&5 18538 18539 as_fn_error $? "Package requirements (json-glib-1.0) were not met: 18540 18541$JSON_PKG_ERRORS 18542 18543Consider adjusting the PKG_CONFIG_PATH environment variable if you 18544installed software in a non-standard prefix. 18545 18546Alternatively, you may set the environment variables JSON_CFLAGS 18547and JSON_LIBS to avoid the need to call pkg-config. 18548See the pkg-config man page for more details." "$LINENO" 5 18549elif test $pkg_failed = untried; then 18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18551$as_echo "no" >&6; } 18552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18554as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18555is in your PATH or set the PKG_CONFIG environment variable to the full 18556path to pkg-config. 18557 18558Alternatively, you may set the environment variables JSON_CFLAGS 18559and JSON_LIBS to avoid the need to call pkg-config. 18560See the pkg-config man page for more details. 18561 18562To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18563See \`config.log' for more details" "$LINENO" 5; } 18564else 18565 JSON_CFLAGS=$pkg_cv_JSON_CFLAGS 18566 JSON_LIBS=$pkg_cv_JSON_LIBS 18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18568$as_echo "yes" >&6; } 18569 18570fi 18571 18572if test -n "$PKG_CONFIG" && \ 18573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-x11\""; } >&5 18574 ($PKG_CONFIG --exists --print-errors "libva-x11") 2>&5 18575 ac_status=$? 18576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18577 test $ac_status = 0; }; then 18578 18579 18580pkg_failed=no 18581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBVA" >&5 18582$as_echo_n "checking for LIBVA... " >&6; } 18583 18584if test -n "$LIBVA_CFLAGS"; then 18585 pkg_cv_LIBVA_CFLAGS="$LIBVA_CFLAGS" 18586 elif test -n "$PKG_CONFIG"; then 18587 if test -n "$PKG_CONFIG" && \ 18588 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-x11\""; } >&5 18589 ($PKG_CONFIG --exists --print-errors "libva-x11") 2>&5 18590 ac_status=$? 18591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18592 test $ac_status = 0; }; then 18593 pkg_cv_LIBVA_CFLAGS=`$PKG_CONFIG --cflags "libva-x11" 2>/dev/null` 18594 test "x$?" != "x0" && pkg_failed=yes 18595else 18596 pkg_failed=yes 18597fi 18598 else 18599 pkg_failed=untried 18600fi 18601if test -n "$LIBVA_LIBS"; then 18602 pkg_cv_LIBVA_LIBS="$LIBVA_LIBS" 18603 elif test -n "$PKG_CONFIG"; then 18604 if test -n "$PKG_CONFIG" && \ 18605 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libva-x11\""; } >&5 18606 ($PKG_CONFIG --exists --print-errors "libva-x11") 2>&5 18607 ac_status=$? 18608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18609 test $ac_status = 0; }; then 18610 pkg_cv_LIBVA_LIBS=`$PKG_CONFIG --libs "libva-x11" 2>/dev/null` 18611 test "x$?" != "x0" && pkg_failed=yes 18612else 18613 pkg_failed=yes 18614fi 18615 else 18616 pkg_failed=untried 18617fi 18618 18619 18620 18621if test $pkg_failed = yes; then 18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18623$as_echo "no" >&6; } 18624 18625if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18626 _pkg_short_errors_supported=yes 18627else 18628 _pkg_short_errors_supported=no 18629fi 18630 if test $_pkg_short_errors_supported = yes; then 18631 LIBVA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libva-x11" 2>&1` 18632 else 18633 LIBVA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libva-x11" 2>&1` 18634 fi 18635 # Put the nasty error message in config.log where it belongs 18636 echo "$LIBVA_PKG_ERRORS" >&5 18637 18638 as_fn_error $? "Package requirements (libva-x11) were not met: 18639 18640$LIBVA_PKG_ERRORS 18641 18642Consider adjusting the PKG_CONFIG_PATH environment variable if you 18643installed software in a non-standard prefix. 18644 18645Alternatively, you may set the environment variables LIBVA_CFLAGS 18646and LIBVA_LIBS to avoid the need to call pkg-config. 18647See the pkg-config man page for more details." "$LINENO" 5 18648elif test $pkg_failed = untried; then 18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18650$as_echo "no" >&6; } 18651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18652$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18653as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18654is in your PATH or set the PKG_CONFIG environment variable to the full 18655path to pkg-config. 18656 18657Alternatively, you may set the environment variables LIBVA_CFLAGS 18658and LIBVA_LIBS to avoid the need to call pkg-config. 18659See the pkg-config man page for more details. 18660 18661To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18662See \`config.log' for more details" "$LINENO" 5; } 18663else 18664 LIBVA_CFLAGS=$pkg_cv_LIBVA_CFLAGS 18665 LIBVA_LIBS=$pkg_cv_LIBVA_LIBS 18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18667$as_echo "yes" >&6; } 18668 18669fi 18670 18671$as_echo "#define HAVE_LIBVA 1" >>confdefs.h 18672 18673 18674fi 18675 18676# Check whether --enable-webdav was given. 18677if test "${enable_webdav+set}" = set; then : 18678 enableval=$enable_webdav; 18679else 18680 enable_webdav="auto" 18681fi 18682 18683 18684if test "x$enable_webdav" = "xno"; then 18685 have_phodav="no" 18686else 18687 18688pkg_failed=no 18689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHODAV" >&5 18690$as_echo_n "checking for PHODAV... " >&6; } 18691 18692if test -n "$PHODAV_CFLAGS"; then 18693 pkg_cv_PHODAV_CFLAGS="$PHODAV_CFLAGS" 18694 elif test -n "$PKG_CONFIG"; then 18695 if test -n "$PKG_CONFIG" && \ 18696 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libphodav-2.0 glib-2.0 >= 2.43.90 libsoup-2.4 >= 2.49.91\""; } >&5 18697 ($PKG_CONFIG --exists --print-errors "libphodav-2.0 glib-2.0 >= 2.43.90 libsoup-2.4 >= 2.49.91") 2>&5 18698 ac_status=$? 18699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18700 test $ac_status = 0; }; then 18701 pkg_cv_PHODAV_CFLAGS=`$PKG_CONFIG --cflags "libphodav-2.0 glib-2.0 >= 2.43.90 libsoup-2.4 >= 2.49.91" 2>/dev/null` 18702 test "x$?" != "x0" && pkg_failed=yes 18703else 18704 pkg_failed=yes 18705fi 18706 else 18707 pkg_failed=untried 18708fi 18709if test -n "$PHODAV_LIBS"; then 18710 pkg_cv_PHODAV_LIBS="$PHODAV_LIBS" 18711 elif test -n "$PKG_CONFIG"; then 18712 if test -n "$PKG_CONFIG" && \ 18713 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libphodav-2.0 glib-2.0 >= 2.43.90 libsoup-2.4 >= 2.49.91\""; } >&5 18714 ($PKG_CONFIG --exists --print-errors "libphodav-2.0 glib-2.0 >= 2.43.90 libsoup-2.4 >= 2.49.91") 2>&5 18715 ac_status=$? 18716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18717 test $ac_status = 0; }; then 18718 pkg_cv_PHODAV_LIBS=`$PKG_CONFIG --libs "libphodav-2.0 glib-2.0 >= 2.43.90 libsoup-2.4 >= 2.49.91" 2>/dev/null` 18719 test "x$?" != "x0" && pkg_failed=yes 18720else 18721 pkg_failed=yes 18722fi 18723 else 18724 pkg_failed=untried 18725fi 18726 18727 18728 18729if test $pkg_failed = yes; then 18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18731$as_echo "no" >&6; } 18732 18733if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18734 _pkg_short_errors_supported=yes 18735else 18736 _pkg_short_errors_supported=no 18737fi 18738 if test $_pkg_short_errors_supported = yes; then 18739 PHODAV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libphodav-2.0 glib-2.0 >= 2.43.90 libsoup-2.4 >= 2.49.91" 2>&1` 18740 else 18741 PHODAV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libphodav-2.0 glib-2.0 >= 2.43.90 libsoup-2.4 >= 2.49.91" 2>&1` 18742 fi 18743 # Put the nasty error message in config.log where it belongs 18744 echo "$PHODAV_PKG_ERRORS" >&5 18745 18746 have_phodav=no 18747elif test $pkg_failed = untried; then 18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18749$as_echo "no" >&6; } 18750 have_phodav=no 18751else 18752 PHODAV_CFLAGS=$pkg_cv_PHODAV_CFLAGS 18753 PHODAV_LIBS=$pkg_cv_PHODAV_LIBS 18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18755$as_echo "yes" >&6; } 18756 have_phodav=yes 18757fi 18758 18759 if test "x$have_phodav" = "xno" && test "x$enable_webdav" = "xyes"; then 18760 as_fn_error $? "webdav support explicitly requested, but some required packages are not available" "$LINENO" 5 18761 fi 18762fi 18763if test "x$have_phodav" = "xyes"; then : 18764 18765$as_echo "#define USE_PHODAV 1" >>confdefs.h 18766 18767fi 18768 18769 if test "x$have_phodav" = "xyes"; then 18770 WITH_PHODAV_TRUE= 18771 WITH_PHODAV_FALSE='#' 18772else 18773 WITH_PHODAV_TRUE='#' 18774 WITH_PHODAV_FALSE= 18775fi 18776 18777 18778# Check whether --enable-pulse was given. 18779if test "${enable_pulse+set}" = set; then : 18780 enableval=$enable_pulse; 18781else 18782 enable_pulse="auto" 18783fi 18784 18785if test "x$enable_pulse" != "xno"; then : 18786 18787pkg_failed=no 18788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSE" >&5 18789$as_echo_n "checking for PULSE... " >&6; } 18790 18791if test -n "$PULSE_CFLAGS"; then 18792 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS" 18793 elif test -n "$PKG_CONFIG"; then 18794 if test -n "$PKG_CONFIG" && \ 18795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse libpulse-mainloop-glib\""; } >&5 18796 ($PKG_CONFIG --exists --print-errors "libpulse libpulse-mainloop-glib") 2>&5 18797 ac_status=$? 18798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18799 test $ac_status = 0; }; then 18800 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse libpulse-mainloop-glib" 2>/dev/null` 18801 test "x$?" != "x0" && pkg_failed=yes 18802else 18803 pkg_failed=yes 18804fi 18805 else 18806 pkg_failed=untried 18807fi 18808if test -n "$PULSE_LIBS"; then 18809 pkg_cv_PULSE_LIBS="$PULSE_LIBS" 18810 elif test -n "$PKG_CONFIG"; then 18811 if test -n "$PKG_CONFIG" && \ 18812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse libpulse-mainloop-glib\""; } >&5 18813 ($PKG_CONFIG --exists --print-errors "libpulse libpulse-mainloop-glib") 2>&5 18814 ac_status=$? 18815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18816 test $ac_status = 0; }; then 18817 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse libpulse-mainloop-glib" 2>/dev/null` 18818 test "x$?" != "x0" && pkg_failed=yes 18819else 18820 pkg_failed=yes 18821fi 18822 else 18823 pkg_failed=untried 18824fi 18825 18826 18827 18828if test $pkg_failed = yes; then 18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18830$as_echo "no" >&6; } 18831 18832if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18833 _pkg_short_errors_supported=yes 18834else 18835 _pkg_short_errors_supported=no 18836fi 18837 if test $_pkg_short_errors_supported = yes; then 18838 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpulse libpulse-mainloop-glib" 2>&1` 18839 else 18840 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpulse libpulse-mainloop-glib" 2>&1` 18841 fi 18842 # Put the nasty error message in config.log where it belongs 18843 echo "$PULSE_PKG_ERRORS" >&5 18844 18845 if test "x$enable_pulse" = "xyes"; then : 18846 as_fn_error $? "PulseAudio requested but not found" "$LINENO" 5 18847fi 18848 enable_pulse="no" 18849 18850elif test $pkg_failed = untried; then 18851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18852$as_echo "no" >&6; } 18853 if test "x$enable_pulse" = "xyes"; then : 18854 as_fn_error $? "PulseAudio requested but not found" "$LINENO" 5 18855fi 18856 enable_pulse="no" 18857 18858else 18859 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS 18860 PULSE_LIBS=$pkg_cv_PULSE_LIBS 18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18862$as_echo "yes" >&6; } 18863 18864$as_echo "#define HAVE_PULSE 1" >>confdefs.h 18865 18866 enable_pulse="yes" 18867fi 18868 18869fi 18870 if test "x$enable_pulse" = "xyes"; then 18871 HAVE_PULSE_TRUE= 18872 HAVE_PULSE_FALSE='#' 18873else 18874 HAVE_PULSE_TRUE='#' 18875 HAVE_PULSE_FALSE= 18876fi 18877 18878 18879GST_REQ="1.10" 18880 18881 18882pkg_failed=no 18883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSTAUDIO" >&5 18884$as_echo_n "checking for GSTAUDIO... " >&6; } 18885 18886if test -n "$GSTAUDIO_CFLAGS"; then 18887 pkg_cv_GSTAUDIO_CFLAGS="$GSTAUDIO_CFLAGS" 18888 elif test -n "$PKG_CONFIG"; then 18889 if test -n "$PKG_CONFIG" && \ 18890 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-1.0 >= \$GST_REQ gstreamer-base-1.0 >= \$GST_REQ gstreamer-app-1.0 >= \$GST_REQ gstreamer-audio-1.0 >= \$GST_REQ\""; } >&5 18891 ($PKG_CONFIG --exists --print-errors "gstreamer-1.0 >= $GST_REQ gstreamer-base-1.0 >= $GST_REQ gstreamer-app-1.0 >= $GST_REQ gstreamer-audio-1.0 >= $GST_REQ") 2>&5 18892 ac_status=$? 18893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18894 test $ac_status = 0; }; then 18895 pkg_cv_GSTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-1.0 >= $GST_REQ gstreamer-base-1.0 >= $GST_REQ gstreamer-app-1.0 >= $GST_REQ gstreamer-audio-1.0 >= $GST_REQ" 2>/dev/null` 18896 test "x$?" != "x0" && pkg_failed=yes 18897else 18898 pkg_failed=yes 18899fi 18900 else 18901 pkg_failed=untried 18902fi 18903if test -n "$GSTAUDIO_LIBS"; then 18904 pkg_cv_GSTAUDIO_LIBS="$GSTAUDIO_LIBS" 18905 elif test -n "$PKG_CONFIG"; then 18906 if test -n "$PKG_CONFIG" && \ 18907 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-1.0 >= \$GST_REQ gstreamer-base-1.0 >= \$GST_REQ gstreamer-app-1.0 >= \$GST_REQ gstreamer-audio-1.0 >= \$GST_REQ\""; } >&5 18908 ($PKG_CONFIG --exists --print-errors "gstreamer-1.0 >= $GST_REQ gstreamer-base-1.0 >= $GST_REQ gstreamer-app-1.0 >= $GST_REQ gstreamer-audio-1.0 >= $GST_REQ") 2>&5 18909 ac_status=$? 18910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18911 test $ac_status = 0; }; then 18912 pkg_cv_GSTAUDIO_LIBS=`$PKG_CONFIG --libs "gstreamer-1.0 >= $GST_REQ gstreamer-base-1.0 >= $GST_REQ gstreamer-app-1.0 >= $GST_REQ gstreamer-audio-1.0 >= $GST_REQ" 2>/dev/null` 18913 test "x$?" != "x0" && pkg_failed=yes 18914else 18915 pkg_failed=yes 18916fi 18917 else 18918 pkg_failed=untried 18919fi 18920 18921 18922 18923if test $pkg_failed = yes; then 18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18925$as_echo "no" >&6; } 18926 18927if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18928 _pkg_short_errors_supported=yes 18929else 18930 _pkg_short_errors_supported=no 18931fi 18932 if test $_pkg_short_errors_supported = yes; then 18933 GSTAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-1.0 >= $GST_REQ gstreamer-base-1.0 >= $GST_REQ gstreamer-app-1.0 >= $GST_REQ gstreamer-audio-1.0 >= $GST_REQ" 2>&1` 18934 else 18935 GSTAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-1.0 >= $GST_REQ gstreamer-base-1.0 >= $GST_REQ gstreamer-app-1.0 >= $GST_REQ gstreamer-audio-1.0 >= $GST_REQ" 2>&1` 18936 fi 18937 # Put the nasty error message in config.log where it belongs 18938 echo "$GSTAUDIO_PKG_ERRORS" >&5 18939 18940 have_gstaudio="no" 18941 as_fn_error $? "Required GStreamer packages missing or system version is below $GST_REQ" "$LINENO" 5 18942elif test $pkg_failed = untried; then 18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18944$as_echo "no" >&6; } 18945 have_gstaudio="no" 18946 as_fn_error $? "Required GStreamer packages missing or system version is below $GST_REQ" "$LINENO" 5 18947else 18948 GSTAUDIO_CFLAGS=$pkg_cv_GSTAUDIO_CFLAGS 18949 GSTAUDIO_LIBS=$pkg_cv_GSTAUDIO_LIBS 18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18951$as_echo "yes" >&6; } 18952 have_gstaudio="yes" 18953 18954 18955 as_fn_append SPICE_REQUIRES " gstreamer-1.0 >= $GST_REQ gstreamer-base-1.0 >= $GST_REQ gstreamer-app-1.0 >= $GST_REQ gstreamer-audio-1.0 >= $GST_REQ" 18956 18957$as_echo "#define HAVE_GSTAUDIO 1" >>confdefs.h 18958 18959 # Extract the first word of "gst-inspect-1.0", so it can be a program name with args. 18960set dummy gst-inspect-1.0; ac_word=$2 18961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18962$as_echo_n "checking for $ac_word... " >&6; } 18963if ${ac_cv_path_GST_INSPECT_1_0+:} false; then : 18964 $as_echo_n "(cached) " >&6 18965else 18966 case $GST_INSPECT_1_0 in 18967 [\\/]* | ?:[\\/]*) 18968 ac_cv_path_GST_INSPECT_1_0="$GST_INSPECT_1_0" # Let the user override the test with a path. 18969 ;; 18970 *) 18971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18972for as_dir in $PATH 18973do 18974 IFS=$as_save_IFS 18975 test -z "$as_dir" && as_dir=. 18976 for ac_exec_ext in '' $ac_executable_extensions; do 18977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18978 ac_cv_path_GST_INSPECT_1_0="$as_dir/$ac_word$ac_exec_ext" 18979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18980 break 2 18981 fi 18982done 18983 done 18984IFS=$as_save_IFS 18985 18986 ;; 18987esac 18988fi 18989GST_INSPECT_1_0=$ac_cv_path_GST_INSPECT_1_0 18990if test -n "$GST_INSPECT_1_0"; then 18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GST_INSPECT_1_0" >&5 18992$as_echo "$GST_INSPECT_1_0" >&6; } 18993else 18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18995$as_echo "no" >&6; } 18996fi 18997 18998 18999 if test "x$GST_INSPECT_1_0" = x; then : 19000 as_fn_append spice_warnings "|Cannot verify that the required runtime GStreamer 1.0 elements are present because gst-inspect-1.0 is missing" 19001fi 19002 19003if test "x$GST_INSPECT_1_0" != x; then : 19004 missing="" 19005 for element in audioconvert audioresample appsink 19006 do 19007 as_cache_var=`$as_echo "spice_cv_prog_${1}_${element}" | $as_tr_sh` 19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the $element GStreamer element" >&5 19009$as_echo_n "checking for the $element GStreamer element... " >&6; } 19010if eval \${$as_cache_var+:} false; then : 19011 $as_echo_n "(cached) " >&6 19012else 19013 found=no 19014 "$GST_INSPECT_1_0" $element >/dev/null 2>/dev/null && found=yes 19015 eval "$as_cache_var=$found" 19016fi 19017eval ac_res=\$$as_cache_var 19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19019$as_echo "$ac_res" >&6; } 19020 eval res=\$$as_cache_var 19021 if test "x$res" = "xno"; then : 19022 missing="$missing $element" 19023fi 19024 done 19025 if test "x$missing" != x; then : 19026 as_fn_append spice_warnings "|The$missing GStreamer element(s) are missing. You should be able to find them in the gst-plugins-base 1.0 package." 19027 missing_gstreamer_elements="yes" 19028elif test "x$missing_gstreamer_elements" = x; then : 19029 missing_gstreamer_elements="no" 19030fi 19031 19032fi 19033 19034 19035if test "x$GST_INSPECT_1_0" != x; then : 19036 missing="" 19037 for element in autoaudiosrc 19038 do 19039 as_cache_var=`$as_echo "spice_cv_prog_${1}_${element}" | $as_tr_sh` 19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the $element GStreamer element" >&5 19041$as_echo_n "checking for the $element GStreamer element... " >&6; } 19042if eval \${$as_cache_var+:} false; then : 19043 $as_echo_n "(cached) " >&6 19044else 19045 found=no 19046 "$GST_INSPECT_1_0" $element >/dev/null 2>/dev/null && found=yes 19047 eval "$as_cache_var=$found" 19048fi 19049eval ac_res=\$$as_cache_var 19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19051$as_echo "$ac_res" >&6; } 19052 eval res=\$$as_cache_var 19053 if test "x$res" = "xno"; then : 19054 missing="$missing $element" 19055fi 19056 done 19057 if test "x$missing" != x; then : 19058 as_fn_append spice_warnings "|The$missing GStreamer element(s) are missing. You should be able to find them in the gst-plugins-good 1.0 package." 19059 missing_gstreamer_elements="yes" 19060elif test "x$missing_gstreamer_elements" = x; then : 19061 missing_gstreamer_elements="no" 19062fi 19063 19064fi 19065 19066 if test x"$missing_gstreamer_elements" = "xyes"; then : 19067 as_fn_append spice_warnings "|The GStreamer 1.0 audio backend can be built but may not work." 19068fi 19069 19070fi 19071 19072 19073 19074 19075pkg_failed=no 19076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSTVIDEO" >&5 19077$as_echo_n "checking for GSTVIDEO... " >&6; } 19078 19079if test -n "$GSTVIDEO_CFLAGS"; then 19080 pkg_cv_GSTVIDEO_CFLAGS="$GSTVIDEO_CFLAGS" 19081 elif test -n "$PKG_CONFIG"; then 19082 if test -n "$PKG_CONFIG" && \ 19083 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-1.0 >= \$GST_REQ gstreamer-base-1.0 >= \$GST_REQ gstreamer-app-1.0 >= \$GST_REQ gstreamer-video-1.0 >= \$GST_REQ\""; } >&5 19084 ($PKG_CONFIG --exists --print-errors "gstreamer-1.0 >= $GST_REQ gstreamer-base-1.0 >= $GST_REQ gstreamer-app-1.0 >= $GST_REQ gstreamer-video-1.0 >= $GST_REQ") 2>&5 19085 ac_status=$? 19086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19087 test $ac_status = 0; }; then 19088 pkg_cv_GSTVIDEO_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-1.0 >= $GST_REQ gstreamer-base-1.0 >= $GST_REQ gstreamer-app-1.0 >= $GST_REQ gstreamer-video-1.0 >= $GST_REQ" 2>/dev/null` 19089 test "x$?" != "x0" && pkg_failed=yes 19090else 19091 pkg_failed=yes 19092fi 19093 else 19094 pkg_failed=untried 19095fi 19096if test -n "$GSTVIDEO_LIBS"; then 19097 pkg_cv_GSTVIDEO_LIBS="$GSTVIDEO_LIBS" 19098 elif test -n "$PKG_CONFIG"; then 19099 if test -n "$PKG_CONFIG" && \ 19100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-1.0 >= \$GST_REQ gstreamer-base-1.0 >= \$GST_REQ gstreamer-app-1.0 >= \$GST_REQ gstreamer-video-1.0 >= \$GST_REQ\""; } >&5 19101 ($PKG_CONFIG --exists --print-errors "gstreamer-1.0 >= $GST_REQ gstreamer-base-1.0 >= $GST_REQ gstreamer-app-1.0 >= $GST_REQ gstreamer-video-1.0 >= $GST_REQ") 2>&5 19102 ac_status=$? 19103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19104 test $ac_status = 0; }; then 19105 pkg_cv_GSTVIDEO_LIBS=`$PKG_CONFIG --libs "gstreamer-1.0 >= $GST_REQ gstreamer-base-1.0 >= $GST_REQ gstreamer-app-1.0 >= $GST_REQ gstreamer-video-1.0 >= $GST_REQ" 2>/dev/null` 19106 test "x$?" != "x0" && pkg_failed=yes 19107else 19108 pkg_failed=yes 19109fi 19110 else 19111 pkg_failed=untried 19112fi 19113 19114 19115 19116if test $pkg_failed = yes; then 19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19118$as_echo "no" >&6; } 19119 19120if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19121 _pkg_short_errors_supported=yes 19122else 19123 _pkg_short_errors_supported=no 19124fi 19125 if test $_pkg_short_errors_supported = yes; then 19126 GSTVIDEO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-1.0 >= $GST_REQ gstreamer-base-1.0 >= $GST_REQ gstreamer-app-1.0 >= $GST_REQ gstreamer-video-1.0 >= $GST_REQ" 2>&1` 19127 else 19128 GSTVIDEO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-1.0 >= $GST_REQ gstreamer-base-1.0 >= $GST_REQ gstreamer-app-1.0 >= $GST_REQ gstreamer-video-1.0 >= $GST_REQ" 2>&1` 19129 fi 19130 # Put the nasty error message in config.log where it belongs 19131 echo "$GSTVIDEO_PKG_ERRORS" >&5 19132 19133 have_gstvideo="no" 19134 as_fn_error $? "Required GStreamer packages missing or system version is below $GST_REQ" "$LINENO" 5 19135elif test $pkg_failed = untried; then 19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19137$as_echo "no" >&6; } 19138 have_gstvideo="no" 19139 as_fn_error $? "Required GStreamer packages missing or system version is below $GST_REQ" "$LINENO" 5 19140else 19141 GSTVIDEO_CFLAGS=$pkg_cv_GSTVIDEO_CFLAGS 19142 GSTVIDEO_LIBS=$pkg_cv_GSTVIDEO_LIBS 19143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19144$as_echo "yes" >&6; } 19145 have_gstvideo="yes" 19146 19147 19148 as_fn_append SPICE_REQUIRES " gstreamer-1.0 >= $GST_REQ gstreamer-base-1.0 >= $GST_REQ gstreamer-app-1.0 >= $GST_REQ gstreamer-video-1.0 >= $GST_REQ" 19149 19150$as_echo "#define HAVE_GSTVIDEO 1" >>confdefs.h 19151 19152 # Extract the first word of "gst-inspect-1.0", so it can be a program name with args. 19153set dummy gst-inspect-1.0; ac_word=$2 19154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19155$as_echo_n "checking for $ac_word... " >&6; } 19156if ${ac_cv_path_GST_INSPECT_1_0+:} false; then : 19157 $as_echo_n "(cached) " >&6 19158else 19159 case $GST_INSPECT_1_0 in 19160 [\\/]* | ?:[\\/]*) 19161 ac_cv_path_GST_INSPECT_1_0="$GST_INSPECT_1_0" # Let the user override the test with a path. 19162 ;; 19163 *) 19164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19165for as_dir in $PATH 19166do 19167 IFS=$as_save_IFS 19168 test -z "$as_dir" && as_dir=. 19169 for ac_exec_ext in '' $ac_executable_extensions; do 19170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19171 ac_cv_path_GST_INSPECT_1_0="$as_dir/$ac_word$ac_exec_ext" 19172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19173 break 2 19174 fi 19175done 19176 done 19177IFS=$as_save_IFS 19178 19179 ;; 19180esac 19181fi 19182GST_INSPECT_1_0=$ac_cv_path_GST_INSPECT_1_0 19183if test -n "$GST_INSPECT_1_0"; then 19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GST_INSPECT_1_0" >&5 19185$as_echo "$GST_INSPECT_1_0" >&6; } 19186else 19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19188$as_echo "no" >&6; } 19189fi 19190 19191 19192 if test "x$GST_INSPECT_1_0" = x; then : 19193 as_fn_append spice_warnings "|Cannot verify that the required runtime GStreamer 1.0 elements are present because gst-inspect-1.0 is missing" 19194fi 19195 missing_gstreamer_elements="" 19196 19197if test "x$GST_INSPECT_1_0" != x; then : 19198 missing="" 19199 for element in appsrc videoconvert appsink 19200 do 19201 as_cache_var=`$as_echo "spice_cv_prog_${1}_${element}" | $as_tr_sh` 19202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the $element GStreamer element" >&5 19203$as_echo_n "checking for the $element GStreamer element... " >&6; } 19204if eval \${$as_cache_var+:} false; then : 19205 $as_echo_n "(cached) " >&6 19206else 19207 found=no 19208 "$GST_INSPECT_1_0" $element >/dev/null 2>/dev/null && found=yes 19209 eval "$as_cache_var=$found" 19210fi 19211eval ac_res=\$$as_cache_var 19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19213$as_echo "$ac_res" >&6; } 19214 eval res=\$$as_cache_var 19215 if test "x$res" = "xno"; then : 19216 missing="$missing $element" 19217fi 19218 done 19219 if test "x$missing" != x; then : 19220 as_fn_append spice_warnings "|The$missing GStreamer element(s) are missing. You should be able to find them in the gst-plugins-base 1.0 package." 19221 missing_gstreamer_elements="yes" 19222elif test "x$missing_gstreamer_elements" = x; then : 19223 missing_gstreamer_elements="no" 19224fi 19225 19226fi 19227 19228 19229if test "x$GST_INSPECT_1_0" != x; then : 19230 missing="" 19231 for element in jpegdec vp8dec vp9dec 19232 do 19233 as_cache_var=`$as_echo "spice_cv_prog_${1}_${element}" | $as_tr_sh` 19234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the $element GStreamer element" >&5 19235$as_echo_n "checking for the $element GStreamer element... " >&6; } 19236if eval \${$as_cache_var+:} false; then : 19237 $as_echo_n "(cached) " >&6 19238else 19239 found=no 19240 "$GST_INSPECT_1_0" $element >/dev/null 2>/dev/null && found=yes 19241 eval "$as_cache_var=$found" 19242fi 19243eval ac_res=\$$as_cache_var 19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19245$as_echo "$ac_res" >&6; } 19246 eval res=\$$as_cache_var 19247 if test "x$res" = "xno"; then : 19248 missing="$missing $element" 19249fi 19250 done 19251 if test "x$missing" != x; then : 19252 as_fn_append spice_warnings "|The$missing GStreamer element(s) are missing. You should be able to find them in the gst-plugins-good 1.0 package." 19253 missing_gstreamer_elements="yes" 19254elif test "x$missing_gstreamer_elements" = x; then : 19255 missing_gstreamer_elements="no" 19256fi 19257 19258fi 19259 19260 19261if test "x$GST_INSPECT_1_0" != x; then : 19262 missing="" 19263 for element in h264parse h265parse 19264 do 19265 as_cache_var=`$as_echo "spice_cv_prog_${1}_${element}" | $as_tr_sh` 19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the $element GStreamer element" >&5 19267$as_echo_n "checking for the $element GStreamer element... " >&6; } 19268if eval \${$as_cache_var+:} false; then : 19269 $as_echo_n "(cached) " >&6 19270else 19271 found=no 19272 "$GST_INSPECT_1_0" $element >/dev/null 2>/dev/null && found=yes 19273 eval "$as_cache_var=$found" 19274fi 19275eval ac_res=\$$as_cache_var 19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19277$as_echo "$ac_res" >&6; } 19278 eval res=\$$as_cache_var 19279 if test "x$res" = "xno"; then : 19280 missing="$missing $element" 19281fi 19282 done 19283 if test "x$missing" != x; then : 19284 as_fn_append spice_warnings "|The$missing GStreamer element(s) are missing. You should be able to find them in the gst-plugins-bad 1.0 package." 19285 missing_gstreamer_elements="yes" 19286elif test "x$missing_gstreamer_elements" = x; then : 19287 missing_gstreamer_elements="no" 19288fi 19289 19290fi 19291 19292 19293if test "x$GST_INSPECT_1_0" != x; then : 19294 missing="" 19295 for element in avdec_h264 avdec_h265 19296 do 19297 as_cache_var=`$as_echo "spice_cv_prog_${1}_${element}" | $as_tr_sh` 19298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the $element GStreamer element" >&5 19299$as_echo_n "checking for the $element GStreamer element... " >&6; } 19300if eval \${$as_cache_var+:} false; then : 19301 $as_echo_n "(cached) " >&6 19302else 19303 found=no 19304 "$GST_INSPECT_1_0" $element >/dev/null 2>/dev/null && found=yes 19305 eval "$as_cache_var=$found" 19306fi 19307eval ac_res=\$$as_cache_var 19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 19309$as_echo "$ac_res" >&6; } 19310 eval res=\$$as_cache_var 19311 if test "x$res" = "xno"; then : 19312 missing="$missing $element" 19313fi 19314 done 19315 if test "x$missing" != x; then : 19316 as_fn_append spice_warnings "|The$missing GStreamer element(s) are missing. You should be able to find them in the gstreamer-libav 1.0 package." 19317 missing_gstreamer_elements="yes" 19318elif test "x$missing_gstreamer_elements" = x; then : 19319 missing_gstreamer_elements="no" 19320fi 19321 19322fi 19323 19324 if test x"$missing_gstreamer_elements" = "xyes"; then : 19325 as_fn_append spice_warnings "|The GStreamer video decoder can be built but may not work." 19326fi 19327 19328fi 19329 19330 19331# Check whether --enable-builtin-mjpeg was given. 19332if test "${enable_builtin_mjpeg+set}" = set; then : 19333 enableval=$enable_builtin_mjpeg; 19334else 19335 enable_builtin_mjpeg="yes" 19336fi 19337 19338if test "x$enable_builtin_mjpeg" = "xyes"; then : 19339 19340$as_echo "#define HAVE_BUILTIN_MJPEG 1" >>confdefs.h 19341 19342fi 19343 if test "x$enable_builtin_mjpeg" != "xno"; then 19344 HAVE_BUILTIN_MJPEG_TRUE= 19345 HAVE_BUILTIN_MJPEG_FALSE='#' 19346else 19347 HAVE_BUILTIN_MJPEG_TRUE='#' 19348 HAVE_BUILTIN_MJPEG_FALSE= 19349fi 19350 19351 19352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5 19353$as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; } 19354if ${ac_cv_lib_jpeg_jpeg_destroy_decompress+:} false; then : 19355 $as_echo_n "(cached) " >&6 19356else 19357 ac_check_lib_save_LIBS=$LIBS 19358LIBS="-ljpeg $LIBS" 19359cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19360/* end confdefs.h. */ 19361 19362/* Override any GCC internal prototype to avoid an error. 19363 Use char because int might match the return type of a GCC 19364 builtin and then its argument prototype would still apply. */ 19365#ifdef __cplusplus 19366extern "C" 19367#endif 19368char jpeg_destroy_decompress (); 19369int 19370main () 19371{ 19372return jpeg_destroy_decompress (); 19373 ; 19374 return 0; 19375} 19376_ACEOF 19377if ac_fn_c_try_link "$LINENO"; then : 19378 ac_cv_lib_jpeg_jpeg_destroy_decompress=yes 19379else 19380 ac_cv_lib_jpeg_jpeg_destroy_decompress=no 19381fi 19382rm -f core conftest.err conftest.$ac_objext \ 19383 conftest$ac_exeext conftest.$ac_ext 19384LIBS=$ac_check_lib_save_LIBS 19385fi 19386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5 19387$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; } 19388if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = xyes; then : 19389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeglib.h" >&5 19390$as_echo_n "checking for jpeglib.h... " >&6; } 19391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19392/* end confdefs.h. */ 19393#include <stdio.h> 19394#undef PACKAGE 19395#undef VERSION 19396#undef HAVE_STDLIB_H 19397#include <jpeglib.h> 19398_ACEOF 19399if ac_fn_c_try_cpp "$LINENO"; then : 19400 JPEG_LIBS='-ljpeg' 19401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jpeg_ok" >&5 19402$as_echo "$jpeg_ok" >&6; } 19403else 19404 as_fn_error $? "jpeglib.h not found" "$LINENO" 5 19405fi 19406rm -f conftest.err conftest.i conftest.$ac_ext 19407else 19408 as_fn_error $? "libjpeg not found" "$LINENO" 5 19409fi 19410 19411 19412 19413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 19414$as_echo_n "checking for deflate in -lz... " >&6; } 19415if ${ac_cv_lib_z_deflate+:} false; then : 19416 $as_echo_n "(cached) " >&6 19417else 19418 ac_check_lib_save_LIBS=$LIBS 19419LIBS="-lz $LIBS" 19420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19421/* end confdefs.h. */ 19422 19423/* Override any GCC internal prototype to avoid an error. 19424 Use char because int might match the return type of a GCC 19425 builtin and then its argument prototype would still apply. */ 19426#ifdef __cplusplus 19427extern "C" 19428#endif 19429char deflate (); 19430int 19431main () 19432{ 19433return deflate (); 19434 ; 19435 return 0; 19436} 19437_ACEOF 19438if ac_fn_c_try_link "$LINENO"; then : 19439 ac_cv_lib_z_deflate=yes 19440else 19441 ac_cv_lib_z_deflate=no 19442fi 19443rm -f core conftest.err conftest.$ac_objext \ 19444 conftest$ac_exeext conftest.$ac_ext 19445LIBS=$ac_check_lib_save_LIBS 19446fi 19447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 19448$as_echo "$ac_cv_lib_z_deflate" >&6; } 19449if test "x$ac_cv_lib_z_deflate" = xyes; then : 19450 Z_LIBS='-lz' 19451else 19452 as_fn_error $? "zlib not found" "$LINENO" 5 19453fi 19454 19455 19456 19457 19458 # Check whether --enable-smartcard was given. 19459if test "${enable_smartcard+set}" = set; then : 19460 enableval=$enable_smartcard; 19461else 19462 enable_smartcard="auto" 19463fi 19464 19465 19466 have_smartcard=no 19467 if test "x$enable_smartcard" != "xno"; then 19468 19469pkg_failed=no 19470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SMARTCARD" >&5 19471$as_echo_n "checking for SMARTCARD... " >&6; } 19472 19473if test -n "$SMARTCARD_CFLAGS"; then 19474 pkg_cv_SMARTCARD_CFLAGS="$SMARTCARD_CFLAGS" 19475 elif test -n "$PKG_CONFIG"; then 19476 if test -n "$PKG_CONFIG" && \ 19477 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcacard >= 2.5.1\""; } >&5 19478 ($PKG_CONFIG --exists --print-errors "libcacard >= 2.5.1") 2>&5 19479 ac_status=$? 19480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19481 test $ac_status = 0; }; then 19482 pkg_cv_SMARTCARD_CFLAGS=`$PKG_CONFIG --cflags "libcacard >= 2.5.1" 2>/dev/null` 19483 test "x$?" != "x0" && pkg_failed=yes 19484else 19485 pkg_failed=yes 19486fi 19487 else 19488 pkg_failed=untried 19489fi 19490if test -n "$SMARTCARD_LIBS"; then 19491 pkg_cv_SMARTCARD_LIBS="$SMARTCARD_LIBS" 19492 elif test -n "$PKG_CONFIG"; then 19493 if test -n "$PKG_CONFIG" && \ 19494 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcacard >= 2.5.1\""; } >&5 19495 ($PKG_CONFIG --exists --print-errors "libcacard >= 2.5.1") 2>&5 19496 ac_status=$? 19497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19498 test $ac_status = 0; }; then 19499 pkg_cv_SMARTCARD_LIBS=`$PKG_CONFIG --libs "libcacard >= 2.5.1" 2>/dev/null` 19500 test "x$?" != "x0" && pkg_failed=yes 19501else 19502 pkg_failed=yes 19503fi 19504 else 19505 pkg_failed=untried 19506fi 19507 19508 19509 19510if test $pkg_failed = yes; then 19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19512$as_echo "no" >&6; } 19513 19514if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19515 _pkg_short_errors_supported=yes 19516else 19517 _pkg_short_errors_supported=no 19518fi 19519 if test $_pkg_short_errors_supported = yes; then 19520 SMARTCARD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcacard >= 2.5.1" 2>&1` 19521 else 19522 SMARTCARD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcacard >= 2.5.1" 2>&1` 19523 fi 19524 # Put the nasty error message in config.log where it belongs 19525 echo "$SMARTCARD_PKG_ERRORS" >&5 19526 19527 have_smartcard=no 19528elif test $pkg_failed = untried; then 19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19530$as_echo "no" >&6; } 19531 have_smartcard=no 19532else 19533 SMARTCARD_CFLAGS=$pkg_cv_SMARTCARD_CFLAGS 19534 SMARTCARD_LIBS=$pkg_cv_SMARTCARD_LIBS 19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19536$as_echo "yes" >&6; } 19537 have_smartcard=yes 19538fi 19539 if test "x$enable_smartcard" = "xyes" && test "x$have_smartcard" = "xno"; then 19540 as_fn_error $? "smarcard support explicitly requested, but some required packages are not available" "$LINENO" 5 19541 fi 19542 if test "x$have_smartcard" = "xyes"; then 19543 19544$as_echo "#define USE_SMARTCARD 1" >>confdefs.h 19545 19546 fi 19547 fi 19548 if test "x$have_smartcard" = "xyes"; then 19549 HAVE_SMARTCARD_TRUE= 19550 HAVE_SMARTCARD_FALSE='#' 19551else 19552 HAVE_SMARTCARD_TRUE='#' 19553 HAVE_SMARTCARD_FALSE= 19554fi 19555 19556 19557 if test "x$have_smartcard" = "xyes"; then 19558 WITH_SMARTCARD_TRUE= 19559 WITH_SMARTCARD_FALSE='#' 19560else 19561 WITH_SMARTCARD_TRUE='#' 19562 WITH_SMARTCARD_FALSE= 19563fi 19564 19565 19566# Check whether --enable-usbredir was given. 19567if test "${enable_usbredir+set}" = set; then : 19568 enableval=$enable_usbredir; 19569else 19570 enable_usbredir="auto" 19571fi 19572 19573 19574if test "x$enable_usbredir" = "xno"; then 19575 have_usbredir="no" 19576else 19577 19578pkg_failed=no 19579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for USBREDIR" >&5 19580$as_echo_n "checking for USBREDIR... " >&6; } 19581 19582if test -n "$USBREDIR_CFLAGS"; then 19583 pkg_cv_USBREDIR_CFLAGS="$USBREDIR_CFLAGS" 19584 elif test -n "$PKG_CONFIG"; then 19585 if test -n "$PKG_CONFIG" && \ 19586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.16 libusbredirhost >= 0.7.1 libusbredirparser-0.5 >= 0.7.1\""; } >&5 19587 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.16 libusbredirhost >= 0.7.1 libusbredirparser-0.5 >= 0.7.1") 2>&5 19588 ac_status=$? 19589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19590 test $ac_status = 0; }; then 19591 pkg_cv_USBREDIR_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 1.0.16 libusbredirhost >= 0.7.1 libusbredirparser-0.5 >= 0.7.1" 2>/dev/null` 19592 test "x$?" != "x0" && pkg_failed=yes 19593else 19594 pkg_failed=yes 19595fi 19596 else 19597 pkg_failed=untried 19598fi 19599if test -n "$USBREDIR_LIBS"; then 19600 pkg_cv_USBREDIR_LIBS="$USBREDIR_LIBS" 19601 elif test -n "$PKG_CONFIG"; then 19602 if test -n "$PKG_CONFIG" && \ 19603 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.16 libusbredirhost >= 0.7.1 libusbredirparser-0.5 >= 0.7.1\""; } >&5 19604 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.16 libusbredirhost >= 0.7.1 libusbredirparser-0.5 >= 0.7.1") 2>&5 19605 ac_status=$? 19606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19607 test $ac_status = 0; }; then 19608 pkg_cv_USBREDIR_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 1.0.16 libusbredirhost >= 0.7.1 libusbredirparser-0.5 >= 0.7.1" 2>/dev/null` 19609 test "x$?" != "x0" && pkg_failed=yes 19610else 19611 pkg_failed=yes 19612fi 19613 else 19614 pkg_failed=untried 19615fi 19616 19617 19618 19619if test $pkg_failed = yes; then 19620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19621$as_echo "no" >&6; } 19622 19623if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19624 _pkg_short_errors_supported=yes 19625else 19626 _pkg_short_errors_supported=no 19627fi 19628 if test $_pkg_short_errors_supported = yes; then 19629 USBREDIR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0 >= 1.0.16 libusbredirhost >= 0.7.1 libusbredirparser-0.5 >= 0.7.1" 2>&1` 19630 else 19631 USBREDIR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0 >= 1.0.16 libusbredirhost >= 0.7.1 libusbredirparser-0.5 >= 0.7.1" 2>&1` 19632 fi 19633 # Put the nasty error message in config.log where it belongs 19634 echo "$USBREDIR_PKG_ERRORS" >&5 19635 19636 have_usbredir=no 19637elif test $pkg_failed = untried; then 19638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19639$as_echo "no" >&6; } 19640 have_usbredir=no 19641else 19642 USBREDIR_CFLAGS=$pkg_cv_USBREDIR_CFLAGS 19643 USBREDIR_LIBS=$pkg_cv_USBREDIR_LIBS 19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19645$as_echo "yes" >&6; } 19646 have_usbredir=yes 19647fi 19648 if test "x$have_usbredir" = "xno" && test "x$enable_usbredir" = "xyes"; then 19649 as_fn_error $? "usbredir support explicitly requested, but some required packages are not available" "$LINENO" 5 19650 fi 19651 19652 if test "x$have_usbredir" = "xyes"; then 19653 19654$as_echo "#define USE_USBREDIR 1" >>confdefs.h 19655 19656 fi 19657fi 19658 if test "x$have_usbredir" = "xyes"; then 19659 WITH_USBREDIR_TRUE= 19660 WITH_USBREDIR_FALSE='#' 19661else 19662 WITH_USBREDIR_TRUE='#' 19663 WITH_USBREDIR_FALSE= 19664fi 19665 19666 19667# Check whether --enable-polkit was given. 19668if test "${enable_polkit+set}" = set; then : 19669 enableval=$enable_polkit; 19670else 19671 enable_polkit="auto" 19672fi 19673 19674 19675if test "x$have_usbredir" = "xyes" && test "x$enable_polkit" != "xno"; then 19676 19677pkg_failed=no 19678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLKIT" >&5 19679$as_echo_n "checking for POLKIT... " >&6; } 19680 19681if test -n "$POLKIT_CFLAGS"; then 19682 pkg_cv_POLKIT_CFLAGS="$POLKIT_CFLAGS" 19683 elif test -n "$PKG_CONFIG"; then 19684 if test -n "$PKG_CONFIG" && \ 19685 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"polkit-gobject-1 >= 0.96\""; } >&5 19686 ($PKG_CONFIG --exists --print-errors "polkit-gobject-1 >= 0.96") 2>&5 19687 ac_status=$? 19688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19689 test $ac_status = 0; }; then 19690 pkg_cv_POLKIT_CFLAGS=`$PKG_CONFIG --cflags "polkit-gobject-1 >= 0.96" 2>/dev/null` 19691 test "x$?" != "x0" && pkg_failed=yes 19692else 19693 pkg_failed=yes 19694fi 19695 else 19696 pkg_failed=untried 19697fi 19698if test -n "$POLKIT_LIBS"; then 19699 pkg_cv_POLKIT_LIBS="$POLKIT_LIBS" 19700 elif test -n "$PKG_CONFIG"; then 19701 if test -n "$PKG_CONFIG" && \ 19702 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"polkit-gobject-1 >= 0.96\""; } >&5 19703 ($PKG_CONFIG --exists --print-errors "polkit-gobject-1 >= 0.96") 2>&5 19704 ac_status=$? 19705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19706 test $ac_status = 0; }; then 19707 pkg_cv_POLKIT_LIBS=`$PKG_CONFIG --libs "polkit-gobject-1 >= 0.96" 2>/dev/null` 19708 test "x$?" != "x0" && pkg_failed=yes 19709else 19710 pkg_failed=yes 19711fi 19712 else 19713 pkg_failed=untried 19714fi 19715 19716 19717 19718if test $pkg_failed = yes; then 19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19720$as_echo "no" >&6; } 19721 19722if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19723 _pkg_short_errors_supported=yes 19724else 19725 _pkg_short_errors_supported=no 19726fi 19727 if test $_pkg_short_errors_supported = yes; then 19728 POLKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "polkit-gobject-1 >= 0.96" 2>&1` 19729 else 19730 POLKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "polkit-gobject-1 >= 0.96" 2>&1` 19731 fi 19732 # Put the nasty error message in config.log where it belongs 19733 echo "$POLKIT_PKG_ERRORS" >&5 19734 19735 have_polkit=no 19736elif test $pkg_failed = untried; then 19737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19738$as_echo "no" >&6; } 19739 have_polkit=no 19740else 19741 POLKIT_CFLAGS=$pkg_cv_POLKIT_CFLAGS 19742 POLKIT_LIBS=$pkg_cv_POLKIT_LIBS 19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19744$as_echo "yes" >&6; } 19745 have_polkit=yes 19746fi 19747 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default" 19748if test "x$ac_cv_header_sys_acl_h" = xyes; then : 19749 19750else 19751 have_polkit=no 19752fi 19753 19754 19755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lc" >&5 19756$as_echo_n "checking for acl_get_file in -lc... " >&6; } 19757if ${ac_cv_lib_c_acl_get_file+:} false; then : 19758 $as_echo_n "(cached) " >&6 19759else 19760 ac_check_lib_save_LIBS=$LIBS 19761LIBS="-lc $LIBS" 19762cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19763/* end confdefs.h. */ 19764 19765/* Override any GCC internal prototype to avoid an error. 19766 Use char because int might match the return type of a GCC 19767 builtin and then its argument prototype would still apply. */ 19768#ifdef __cplusplus 19769extern "C" 19770#endif 19771char acl_get_file (); 19772int 19773main () 19774{ 19775return acl_get_file (); 19776 ; 19777 return 0; 19778} 19779_ACEOF 19780if ac_fn_c_try_link "$LINENO"; then : 19781 ac_cv_lib_c_acl_get_file=yes 19782else 19783 ac_cv_lib_c_acl_get_file=no 19784fi 19785rm -f core conftest.err conftest.$ac_objext \ 19786 conftest$ac_exeext conftest.$ac_ext 19787LIBS=$ac_check_lib_save_LIBS 19788fi 19789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_acl_get_file" >&5 19790$as_echo "$ac_cv_lib_c_acl_get_file" >&6; } 19791if test "x$ac_cv_lib_c_acl_get_file" = xyes; then : 19792 ACL_LIBS="" 19793else 19794 19795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 19796$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 19797if ${ac_cv_lib_acl_acl_get_file+:} false; then : 19798 $as_echo_n "(cached) " >&6 19799else 19800 ac_check_lib_save_LIBS=$LIBS 19801LIBS="-lacl $LIBS" 19802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19803/* end confdefs.h. */ 19804 19805/* Override any GCC internal prototype to avoid an error. 19806 Use char because int might match the return type of a GCC 19807 builtin and then its argument prototype would still apply. */ 19808#ifdef __cplusplus 19809extern "C" 19810#endif 19811char acl_get_file (); 19812int 19813main () 19814{ 19815return acl_get_file (); 19816 ; 19817 return 0; 19818} 19819_ACEOF 19820if ac_fn_c_try_link "$LINENO"; then : 19821 ac_cv_lib_acl_acl_get_file=yes 19822else 19823 ac_cv_lib_acl_acl_get_file=no 19824fi 19825rm -f core conftest.err conftest.$ac_objext \ 19826 conftest$ac_exeext conftest.$ac_ext 19827LIBS=$ac_check_lib_save_LIBS 19828fi 19829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 19830$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 19831if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then : 19832 ACL_LIBS=-lacl 19833else 19834 have_polkit=no 19835fi 19836 19837fi 19838 19839 if test "x$enable_polkit" = "xyes" && test "x$have_polkit" = "xno"; then 19840 as_fn_error $? "PolicyKit support explicitly requested, but some required packages are not available" "$LINENO" 5 19841 fi 19842 19843 if test "x$have_polkit" = "xyes"; then 19844 19845 19846$as_echo "#define USE_POLKIT 1" >>confdefs.h 19847 19848 fi 19849 if test "x$have_polkit" = "xyes"; then 19850 WITH_POLKIT_TRUE= 19851 WITH_POLKIT_FALSE='#' 19852else 19853 WITH_POLKIT_TRUE='#' 19854 WITH_POLKIT_FALSE= 19855fi 19856 19857 POLICYDIR=`${PKG_CONFIG} polkit-gobject-1 --variable=policydir` 19858 19859 # Check for polkit_authority_get_sync() 19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for polkit_authority_get_sync in -lpolkit-gobject-1" >&5 19861$as_echo_n "checking for polkit_authority_get_sync in -lpolkit-gobject-1... " >&6; } 19862if ${ac_cv_lib_polkit_gobject_1_polkit_authority_get_sync+:} false; then : 19863 $as_echo_n "(cached) " >&6 19864else 19865 ac_check_lib_save_LIBS=$LIBS 19866LIBS="-lpolkit-gobject-1 $LIBS" 19867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19868/* end confdefs.h. */ 19869 19870/* Override any GCC internal prototype to avoid an error. 19871 Use char because int might match the return type of a GCC 19872 builtin and then its argument prototype would still apply. */ 19873#ifdef __cplusplus 19874extern "C" 19875#endif 19876char polkit_authority_get_sync (); 19877int 19878main () 19879{ 19880return polkit_authority_get_sync (); 19881 ; 19882 return 0; 19883} 19884_ACEOF 19885if ac_fn_c_try_link "$LINENO"; then : 19886 ac_cv_lib_polkit_gobject_1_polkit_authority_get_sync=yes 19887else 19888 ac_cv_lib_polkit_gobject_1_polkit_authority_get_sync=no 19889fi 19890rm -f core conftest.err conftest.$ac_objext \ 19891 conftest$ac_exeext conftest.$ac_ext 19892LIBS=$ac_check_lib_save_LIBS 19893fi 19894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polkit_gobject_1_polkit_authority_get_sync" >&5 19895$as_echo "$ac_cv_lib_polkit_gobject_1_polkit_authority_get_sync" >&6; } 19896if test "x$ac_cv_lib_polkit_gobject_1_polkit_authority_get_sync" = xyes; then : 19897 ac_have_pk_auth_get_sync="1" 19898else 19899 ac_have_pk_auth_get_sync="0" 19900fi 19901 19902 19903cat >>confdefs.h <<_ACEOF 19904#define HAVE_POLKIT_AUTHORITY_GET_SYNC $ac_have_pk_auth_get_sync 19905_ACEOF 19906 19907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for polkit_authorization_result_get_dismissed in -lpolkit-gobject-1" >&5 19908$as_echo_n "checking for polkit_authorization_result_get_dismissed in -lpolkit-gobject-1... " >&6; } 19909if ${ac_cv_lib_polkit_gobject_1_polkit_authorization_result_get_dismissed+:} false; then : 19910 $as_echo_n "(cached) " >&6 19911else 19912 ac_check_lib_save_LIBS=$LIBS 19913LIBS="-lpolkit-gobject-1 $LIBS" 19914cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19915/* end confdefs.h. */ 19916 19917/* Override any GCC internal prototype to avoid an error. 19918 Use char because int might match the return type of a GCC 19919 builtin and then its argument prototype would still apply. */ 19920#ifdef __cplusplus 19921extern "C" 19922#endif 19923char polkit_authorization_result_get_dismissed (); 19924int 19925main () 19926{ 19927return polkit_authorization_result_get_dismissed (); 19928 ; 19929 return 0; 19930} 19931_ACEOF 19932if ac_fn_c_try_link "$LINENO"; then : 19933 ac_cv_lib_polkit_gobject_1_polkit_authorization_result_get_dismissed=yes 19934else 19935 ac_cv_lib_polkit_gobject_1_polkit_authorization_result_get_dismissed=no 19936fi 19937rm -f core conftest.err conftest.$ac_objext \ 19938 conftest$ac_exeext conftest.$ac_ext 19939LIBS=$ac_check_lib_save_LIBS 19940fi 19941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polkit_gobject_1_polkit_authorization_result_get_dismissed" >&5 19942$as_echo "$ac_cv_lib_polkit_gobject_1_polkit_authorization_result_get_dismissed" >&6; } 19943if test "x$ac_cv_lib_polkit_gobject_1_polkit_authorization_result_get_dismissed" = xyes; then : 19944 ac_have_pk_authorization_result_get_dismissed="1" 19945else 19946 ac_have_pk_authorization_result_get_dismissed="0" 19947fi 19948 19949 19950cat >>confdefs.h <<_ACEOF 19951#define HAVE_POLKIT_AUTHORIZATION_RESULT_GET_DISMISSED $ac_have_pk_authorization_result_get_dismissed 19952_ACEOF 19953 19954else 19955 if false; then 19956 WITH_POLKIT_TRUE= 19957 WITH_POLKIT_FALSE='#' 19958else 19959 WITH_POLKIT_TRUE='#' 19960 WITH_POLKIT_FALSE= 19961fi 19962 19963fi 19964 19965if test "x$have_usbredir" = "xyes" && test "x$have_polkit" != "xyes"; then 19966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building with usbredir support, but *not* building the usb acl helper" >&5 19967$as_echo "$as_me: WARNING: Building with usbredir support, but *not* building the usb acl helper" >&2;} 19968fi 19969 19970# Check whether --enable-pie was given. 19971if test "${enable_pie+set}" = set; then : 19972 enableval=$enable_pie; 19973else 19974 enable_pie="auto" 19975fi 19976 19977 19978if test "x$have_polkit" = "xyes" && test "x$enable_pie" != "xno"; then 19979 save_CFLAGS="$CFLAGS" 19980 save_LDFLAGS="$LDFLAGS" 19981 CFLAGS="$CFLAGS -fPIE" 19982 LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now" 19983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIE support" >&5 19984$as_echo_n "checking for PIE support... " >&6; } 19985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19986/* end confdefs.h. */ 19987void main () {} 19988_ACEOF 19989if ac_fn_c_try_link "$LINENO"; then : 19990 have_pie=yes 19991else 19992 have_pie=no 19993fi 19994rm -f core conftest.err conftest.$ac_objext \ 19995 conftest$ac_exeext conftest.$ac_ext 19996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pie" >&5 19997$as_echo "$have_pie" >&6; } 19998 if test "x$have_pie" = "xno" && test "x$enable_pie" = "xyes"; then 19999 as_fn_error $? "pie support explicitly requested, but your toolchain does not support it" "$LINENO" 5 20000 fi 20001 if test "x$have_pie" = "xyes"; then 20002 PIE_CFLAGS="-fPIE" 20003 PIE_LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now" 20004 20005 20006 fi 20007 CFLAGS="$save_CFLAGS" 20008 LDFLAGS="$save_LDFLAGS" 20009fi 20010 20011 20012# Check whether --with-usb-acl-helper-dir was given. 20013if test "${with_usb_acl_helper_dir+set}" = set; then : 20014 withval=$with_usb_acl_helper_dir; ACL_HELPER_DIR="$with_usb_acl_helper_dir" 20015else 20016 ACL_HELPER_DIR="${bindir}/" 20017fi 20018 20019 20020 20021 20022# Check whether --with-usb-ids-path was given. 20023if test "${with_usb_ids_path+set}" = set; then : 20024 withval=$with_usb_ids_path; USB_IDS="$with_usb_ids_path" 20025else 20026 USB_IDS="auto" 20027fi 20028 20029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for usb.ids" >&5 20030$as_echo_n "checking for usb.ids... " >&6; } 20031if test "x$USB_IDS" = "xauto"; then 20032 if test -n "$PKG_CONFIG"; then 20033 USB_IDS=$($PKG_CONFIG --variable=usbids usbutils) 20034 else 20035 USB_IDS= 20036 fi 20037fi 20038if test -n "$USB_IDS"; then 20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USB_IDS" >&5 20040$as_echo "$USB_IDS" >&6; } 20041 20042 20043$as_echo "#define WITH_USBIDS 1" >>confdefs.h 20044 20045else 20046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20047$as_echo "not found" >&6; } 20048fi 20049 20050 20051# Check whether --with-coroutine was given. 20052if test "${with_coroutine+set}" = set; then : 20053 withval=$with_coroutine; 20054else 20055 with_coroutine=auto 20056fi 20057 20058 20059case $with_coroutine in 20060 ucontext|gthread|winfiber|auto) ;; 20061 *) as_fn_error $? "Unsupported coroutine type" "$LINENO" 5 20062esac 20063 20064if test "$with_coroutine" = "auto"; then 20065 if test "$os_win32" = "yes"; then 20066 with_coroutine=winfiber 20067 elif test "$os_mac" = "yes"; then 20068 with_coroutine=ucontext 20069 20070$as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h 20071 20072 else 20073 with_coroutine=ucontext 20074 fi 20075fi 20076 20077if test "$with_coroutine" = "ucontext"; then 20078 ac_fn_c_check_func "$LINENO" "makecontext" "ac_cv_func_makecontext" 20079if test "x$ac_cv_func_makecontext" = xyes; then : 20080 20081else 20082 with_coroutine=gthread 20083fi 20084 20085 ac_fn_c_check_func "$LINENO" "swapcontext" "ac_cv_func_swapcontext" 20086if test "x$ac_cv_func_swapcontext" = xyes; then : 20087 20088else 20089 with_coroutine=gthread 20090fi 20091 20092 ac_fn_c_check_func "$LINENO" "getcontext" "ac_cv_func_getcontext" 20093if test "x$ac_cv_func_getcontext" = xyes; then : 20094 20095else 20096 with_coroutine=gthread 20097fi 20098 20099fi 20100 20101WITH_UCONTEXT=0 20102WITH_GTHREAD=0 20103WITH_WINFIBER=0 20104 20105case $with_coroutine in 20106 ucontext) WITH_UCONTEXT=1 ;; 20107 gthread) WITH_GTHREAD=1 ;; 20108 winfiber) WITH_WINFIBER=1 ;; 20109 *) as_fn_error $? "Unsupported coroutine type" "$LINENO" 5 20110esac 20111 20112 20113cat >>confdefs.h <<_ACEOF 20114#define WITH_UCONTEXT $WITH_UCONTEXT 20115_ACEOF 20116 20117 if test "x$WITH_UCONTEXT" = "x1"; then 20118 WITH_UCONTEXT_TRUE= 20119 WITH_UCONTEXT_FALSE='#' 20120else 20121 WITH_UCONTEXT_TRUE='#' 20122 WITH_UCONTEXT_FALSE= 20123fi 20124 20125 20126 20127cat >>confdefs.h <<_ACEOF 20128#define WITH_WINFIBER $WITH_WINFIBER 20129_ACEOF 20130 20131 if test "x$WITH_WINFIBER" = "x1"; then 20132 WITH_WINFIBER_TRUE= 20133 WITH_WINFIBER_FALSE='#' 20134else 20135 WITH_WINFIBER_TRUE='#' 20136 WITH_WINFIBER_FALSE= 20137fi 20138 20139 20140 20141cat >>confdefs.h <<_ACEOF 20142#define WITH_GTHREAD $WITH_GTHREAD 20143_ACEOF 20144 20145 if test "x$WITH_GTHREAD" = "x1"; then 20146 WITH_GTHREAD_TRUE= 20147 WITH_GTHREAD_FALSE='#' 20148else 20149 WITH_GTHREAD_TRUE='#' 20150 WITH_GTHREAD_FALSE= 20151fi 20152 20153 20154 if test "0" = "1"; then 20155 HAVE_INTROSPECTION_TRUE= 20156 HAVE_INTROSPECTION_FALSE='#' 20157else 20158 HAVE_INTROSPECTION_TRUE='#' 20159 HAVE_INTROSPECTION_FALSE= 20160fi 20161 20162 20163 if test -n "$PKG_CONFIG" && \ 20164 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"GOBJECT_INTROSPECTION\""; } >&5 20165 ($PKG_CONFIG --exists --print-errors "GOBJECT_INTROSPECTION") 2>&5 20166 ac_status=$? 20167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20168 test $ac_status = 0; }; then 20169 gobject-introspection-1.0 >= 0.9.4 20170else 20171 has_symbol_prefix=yes 20172fi 20173 20174 20175 20176 # Check whether --enable-introspection was given. 20177if test "${enable_introspection+set}" = set; then : 20178 enableval=$enable_introspection; 20179else 20180 enable_introspection=auto 20181fi 20182 20183 20184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5 20185$as_echo_n "checking for gobject-introspection... " >&6; } 20186 20187 case $enable_introspection in #( 20188 no) : 20189 found_introspection="no (disabled, use --enable-introspection to enable)" 20190 ;; #( 20191 yes) : 20192 if test -n "$PKG_CONFIG" && \ 20193 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5 20194 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5 20195 ac_status=$? 20196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20197 test $ac_status = 0; }; then 20198 : 20199else 20200 as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5 20201fi 20202 if test -n "$PKG_CONFIG" && \ 20203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5 20204 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5 20205 ac_status=$? 20206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20207 test $ac_status = 0; }; then 20208 found_introspection=yes 20209else 20210 as_fn_error $? "You need to have gobject-introspection >= 0.6.7 installed to build spice-gtk" "$LINENO" 5 20211fi 20212 ;; #( 20213 auto) : 20214 if test -n "$PKG_CONFIG" && \ 20215 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5 20216 ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5 20217 ac_status=$? 20218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20219 test $ac_status = 0; }; then 20220 found_introspection=yes 20221else 20222 found_introspection=no 20223fi 20224 enable_introspection=$found_introspection 20225 ;; #( 20226 *) : 20227 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5 20228 ;; 20229esac 20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5 20231$as_echo "$found_introspection" >&6; } 20232 20233 INTROSPECTION_SCANNER= 20234 INTROSPECTION_COMPILER= 20235 INTROSPECTION_GENERATE= 20236 INTROSPECTION_GIRDIR= 20237 INTROSPECTION_TYPELIBDIR= 20238 if test "x$found_introspection" = "xyes"; then 20239 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0` 20240 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0` 20241 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0` 20242 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0` 20243 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)" 20244 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0` 20245 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0` 20246 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection 20247 fi 20248 20249 20250 20251 20252 20253 20254 20255 20256 20257 if test "x$found_introspection" = "xyes"; then 20258 HAVE_INTROSPECTION_TRUE= 20259 HAVE_INTROSPECTION_FALSE='#' 20260else 20261 HAVE_INTROSPECTION_TRUE='#' 20262 HAVE_INTROSPECTION_FALSE= 20263fi 20264 20265 20266 20267 20268 if test "x$has_symbol_prefix" = "xyes"; then 20269 G_IR_SCANNER_SYMBOL_PREFIX_TRUE= 20270 G_IR_SCANNER_SYMBOL_PREFIX_FALSE='#' 20271else 20272 G_IR_SCANNER_SYMBOL_PREFIX_TRUE='#' 20273 G_IR_SCANNER_SYMBOL_PREFIX_FALSE= 20274fi 20275 20276 20277# Check whether --enable-vala was given. 20278if test "${enable_vala+set}" = set; then : 20279 enableval=$enable_vala; 20280else 20281 enable_vala="no" 20282fi 20283 20284 20285VALA_REQUIRED=0.14 20286if test x$enable_vala = xyes ; then 20287 # check for vala 20288 # Extract the first word of "valac", so it can be a program name with args. 20289set dummy valac; ac_word=$2 20290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20291$as_echo_n "checking for $ac_word... " >&6; } 20292if ${ac_cv_path_VALAC+:} false; then : 20293 $as_echo_n "(cached) " >&6 20294else 20295 case $VALAC in 20296 [\\/]* | ?:[\\/]*) 20297 ac_cv_path_VALAC="$VALAC" # Let the user override the test with a path. 20298 ;; 20299 *) 20300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20301for as_dir in $PATH 20302do 20303 IFS=$as_save_IFS 20304 test -z "$as_dir" && as_dir=. 20305 for ac_exec_ext in '' $ac_executable_extensions; do 20306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20307 ac_cv_path_VALAC="$as_dir/$ac_word$ac_exec_ext" 20308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20309 break 2 20310 fi 20311done 20312 done 20313IFS=$as_save_IFS 20314 20315 test -z "$ac_cv_path_VALAC" && ac_cv_path_VALAC="valac" 20316 ;; 20317esac 20318fi 20319VALAC=$ac_cv_path_VALAC 20320if test -n "$VALAC"; then 20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALAC" >&5 20322$as_echo "$VALAC" >&6; } 20323else 20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20325$as_echo "no" >&6; } 20326fi 20327 20328 20329 if test "$VALAC" != valac && test -n "$VALA_REQUIRED"; then : 20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $VALAC is at least version $VALA_REQUIRED" >&5 20331$as_echo_n "checking whether $VALAC is at least version $VALA_REQUIRED... " >&6; } 20332 am__vala_version=`$VALAC --version | sed 's/Vala *//'` 20333 as_arg_v1=$VALA_REQUIRED 20334as_arg_v2="$am__vala_version" 20335awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20336case $? in #( 20337 1) : 20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20339$as_echo "yes" >&6; } ;; #( 20340 0) : 20341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20342$as_echo "yes" >&6; } ;; #( 20343 2) : 20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20345$as_echo "no" >&6; } 20346 VALAC=valac ;; #( 20347 *) : 20348 ;; 20349esac 20350fi 20351 if test "$VALAC" = valac; then 20352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no proper vala compiler found" >&5 20353$as_echo "$as_me: WARNING: no proper vala compiler found" >&2;} 20354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: you will not be able to compile vala source files" >&5 20355$as_echo "$as_me: WARNING: you will not be able to compile vala source files" >&2;} 20356 else 20357 : 20358 fi 20359 # Extract the first word of "vapigen", so it can be a program name with args. 20360set dummy vapigen; ac_word=$2 20361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20362$as_echo_n "checking for $ac_word... " >&6; } 20363if ${ac_cv_path_VAPIGEN+:} false; then : 20364 $as_echo_n "(cached) " >&6 20365else 20366 case $VAPIGEN in 20367 [\\/]* | ?:[\\/]*) 20368 ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path. 20369 ;; 20370 *) 20371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20372for as_dir in $PATH 20373do 20374 IFS=$as_save_IFS 20375 test -z "$as_dir" && as_dir=. 20376 for ac_exec_ext in '' $ac_executable_extensions; do 20377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20378 ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext" 20379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20380 break 2 20381 fi 20382done 20383 done 20384IFS=$as_save_IFS 20385 20386 test -z "$ac_cv_path_VAPIGEN" && ac_cv_path_VAPIGEN="no" 20387 ;; 20388esac 20389fi 20390VAPIGEN=$ac_cv_path_VAPIGEN 20391if test -n "$VAPIGEN"; then 20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5 20393$as_echo "$VAPIGEN" >&6; } 20394else 20395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20396$as_echo "no" >&6; } 20397fi 20398 20399 20400 if test "x$VAPIGEN" == "xno"; then 20401 as_fn_error $? "Cannot find the \"vapigen\" binary in your PATH" "$LINENO" 5 20402 fi 20403 20404fi 20405 20406 if test "x$enable_vala" = "xyes"; then 20407 WITH_VALA_TRUE= 20408 WITH_VALA_FALSE='#' 20409else 20410 WITH_VALA_TRUE='#' 20411 WITH_VALA_FALSE= 20412fi 20413 20414 20415VAPIDIR="${datadir}/vala/vapi" 20416 20417 20418# Check whether --enable-alignment-checks was given. 20419if test "${enable_alignment_checks+set}" = set; then : 20420 enableval=$enable_alignment_checks; 20421else 20422 enable_alignment_checks="no" 20423fi 20424 20425if test "x$enable_alignment_checks" = "xyes"; then : 20426 20427$as_echo "#define SPICE_DEBUG_ALIGNMENT 1" >>confdefs.h 20428 20429fi 20430 20431 20432 # Check whether --enable-lz4 was given. 20433if test "${enable_lz4+set}" = set; then : 20434 enableval=$enable_lz4; 20435else 20436 enable_lz4="auto" 20437fi 20438 20439 20440 have_lz4="no" 20441 if test "x$enable_lz4" != "xno"; then 20442 # LZ4_compress_default is available in liblz4 >= 129, however liblz has changed 20443 # versioning scheme making the check failing. Rather check for function definition 20444 20445pkg_failed=no 20446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZ4" >&5 20447$as_echo_n "checking for LZ4... " >&6; } 20448 20449if test -n "$LZ4_CFLAGS"; then 20450 pkg_cv_LZ4_CFLAGS="$LZ4_CFLAGS" 20451 elif test -n "$PKG_CONFIG"; then 20452 if test -n "$PKG_CONFIG" && \ 20453 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5 20454 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5 20455 ac_status=$? 20456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20457 test $ac_status = 0; }; then 20458 pkg_cv_LZ4_CFLAGS=`$PKG_CONFIG --cflags "liblz4" 2>/dev/null` 20459 test "x$?" != "x0" && pkg_failed=yes 20460else 20461 pkg_failed=yes 20462fi 20463 else 20464 pkg_failed=untried 20465fi 20466if test -n "$LZ4_LIBS"; then 20467 pkg_cv_LZ4_LIBS="$LZ4_LIBS" 20468 elif test -n "$PKG_CONFIG"; then 20469 if test -n "$PKG_CONFIG" && \ 20470 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblz4\""; } >&5 20471 ($PKG_CONFIG --exists --print-errors "liblz4") 2>&5 20472 ac_status=$? 20473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20474 test $ac_status = 0; }; then 20475 pkg_cv_LZ4_LIBS=`$PKG_CONFIG --libs "liblz4" 2>/dev/null` 20476 test "x$?" != "x0" && pkg_failed=yes 20477else 20478 pkg_failed=yes 20479fi 20480 else 20481 pkg_failed=untried 20482fi 20483 20484 20485 20486if test $pkg_failed = yes; then 20487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20488$as_echo "no" >&6; } 20489 20490if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20491 _pkg_short_errors_supported=yes 20492else 20493 _pkg_short_errors_supported=no 20494fi 20495 if test $_pkg_short_errors_supported = yes; then 20496 LZ4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblz4" 2>&1` 20497 else 20498 LZ4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblz4" 2>&1` 20499 fi 20500 # Put the nasty error message in config.log where it belongs 20501 echo "$LZ4_PKG_ERRORS" >&5 20502 20503 have_lz4="no" 20504elif test $pkg_failed = untried; then 20505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20506$as_echo "no" >&6; } 20507 have_lz4="no" 20508else 20509 LZ4_CFLAGS=$pkg_cv_LZ4_CFLAGS 20510 LZ4_LIBS=$pkg_cv_LZ4_LIBS 20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20512$as_echo "yes" >&6; } 20513 have_lz4="yes" 20514fi 20515 20516 if test "x$have_lz4" = "xyes"; then 20517 # It is necessary to set LIBS and CFLAGS before AC_CHECK_FUNC 20518 old_LIBS="$LIBS" 20519 old_CFLAGS="$CFLAGS" 20520 CFLAGS="$CFLAGS $LZ4_CFLAGS" 20521 LIBS="$LIBS $LZ4_LIBS" 20522 20523 ac_fn_c_check_func "$LINENO" "LZ4_compress_default" "ac_cv_func_LZ4_compress_default" 20524if test "x$ac_cv_func_LZ4_compress_default" = xyes; then : 20525 20526 20527$as_echo "#define USE_LZ4 1" >>confdefs.h 20528 20529else 20530 have_lz4="no" 20531fi 20532 20533 for ac_func in LZ4_compress_fast_continue 20534do : 20535 ac_fn_c_check_func "$LINENO" "LZ4_compress_fast_continue" "ac_cv_func_LZ4_compress_fast_continue" 20536if test "x$ac_cv_func_LZ4_compress_fast_continue" = xyes; then : 20537 cat >>confdefs.h <<_ACEOF 20538#define HAVE_LZ4_COMPRESS_FAST_CONTINUE 1 20539_ACEOF 20540 20541fi 20542done 20543 20544 20545 LIBS="$old_LIBS" 20546 CFLAGS="$old_CFLAGS" 20547 fi 20548 if test "x$enable_lz4" = "xyes" && test "x$have_lz4" = "xno"; then 20549 as_fn_error $? "lz4 support requested but liblz4 >= 129 could not be found" "$LINENO" 5 20550 fi 20551 fi 20552 if test "x$have_lz4" = "xyes"; then 20553 HAVE_LZ4_TRUE= 20554 HAVE_LZ4_FALSE='#' 20555else 20556 HAVE_LZ4_TRUE='#' 20557 HAVE_LZ4_FALSE= 20558fi 20559 20560 20561 20562 20563# some glib/gstreamer enums use 1 << 31 20564dontwarn="-Wshift-overflow=2" 20565 20566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5 20567$as_echo_n "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; } 20568if ${gl_cv_warn_c__Werror__Wunknown_warning_option+:} false; then : 20569 $as_echo_n "(cached) " >&6 20570else 20571 20572 gl_save_compiler_FLAGS="$CFLAGS" 20573 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option" 20574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20575/* end confdefs.h. */ 20576 20577int 20578main () 20579{ 20580 20581 ; 20582 return 0; 20583} 20584_ACEOF 20585if ac_fn_c_try_link "$LINENO"; then : 20586 gl_cv_warn_c__Werror__Wunknown_warning_option=yes 20587else 20588 gl_cv_warn_c__Werror__Wunknown_warning_option=no 20589fi 20590rm -f core conftest.err conftest.$ac_objext \ 20591 conftest$ac_exeext conftest.$ac_ext 20592 CFLAGS="$gl_save_compiler_FLAGS" 20593 20594fi 20595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5 20596$as_echo "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; } 20597if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes; then : 20598 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror' 20599else 20600 gl_unknown_warnings_are_errors= 20601fi 20602 20603 20604 20605 # Check whether --enable-werror was given. 20606if test "${enable_werror+set}" = set; then : 20607 enableval=$enable_werror; set_werror="$enableval" 20608else 20609 if test -d $srcdir/.git; then 20610 is_git_version=true 20611 set_werror=yes 20612 else 20613 set_werror=no 20614 fi 20615fi 20616 20617 20618 # List of warnings that are not relevant / wanted 20619 20620 dontwarn=$dontwarn 20621 20622 # Don't care about C++ compiler compat 20623 dontwarn="$dontwarn -Wc++-compat" 20624 dontwarn="$dontwarn -Wabi" 20625 dontwarn="$dontwarn -Wdeprecated" 20626 # Don't care about ancient C standard compat 20627 dontwarn="$dontwarn -Wtraditional" 20628 # Don't care about ancient C standard compat 20629 dontwarn="$dontwarn -Wtraditional-conversion" 20630 # Ignore warnings in /usr/include 20631 dontwarn="$dontwarn -Wsystem-headers" 20632 # Happy for compiler to add struct padding 20633 dontwarn="$dontwarn -Wpadded" 20634 # GCC very confused with -O2 20635 dontwarn="$dontwarn -Wunreachable-code" 20636 20637 20638 dontwarn="$dontwarn -Wconversion" 20639 dontwarn="$dontwarn -Wsign-conversion" 20640 dontwarn="$dontwarn -Wvla" 20641 dontwarn="$dontwarn -Wundef" 20642 dontwarn="$dontwarn -Wcast-qual" 20643 dontwarn="$dontwarn -Wlong-long" 20644 dontwarn="$dontwarn -Wswitch-default" 20645 dontwarn="$dontwarn -Wswitch-enum" 20646 dontwarn="$dontwarn -Wstrict-overflow" 20647 dontwarn="$dontwarn -Wunsafe-loop-optimizations" 20648 dontwarn="$dontwarn -Wformat-nonliteral" 20649 dontwarn="$dontwarn -Wfloat-equal" 20650 dontwarn="$dontwarn -Wdeclaration-after-statement" 20651 dontwarn="$dontwarn -Wpacked" 20652 dontwarn="$dontwarn -Wunused-macros" 20653 dontwarn="$dontwarn -Woverlength-strings" 20654 dontwarn="$dontwarn -Wstack-protector" 20655 dontwarn="$dontwarn -Winline" 20656 dontwarn="$dontwarn -Wbad-function-cast" 20657 dontwarn="$dontwarn -Wshadow" 20658 20659 # Get all possible GCC warnings 20660 20661 20662 if test -n "$GCC"; then 20663 20664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5 20665$as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; } 20666 if ${gl_cv_cc_nomfi_supported+:} false; then : 20667 $as_echo_n "(cached) " >&6 20668else 20669 20670 gl_save_CFLAGS="$CFLAGS" 20671 CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers" 20672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20673/* end confdefs.h. */ 20674 20675int 20676main () 20677{ 20678 20679 ; 20680 return 0; 20681} 20682_ACEOF 20683if ac_fn_c_try_compile "$LINENO"; then : 20684 gl_cv_cc_nomfi_supported=yes 20685else 20686 gl_cv_cc_nomfi_supported=no 20687fi 20688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20689 CFLAGS="$gl_save_CFLAGS" 20690fi 20691 20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5 20693$as_echo "$gl_cv_cc_nomfi_supported" >&6; } 20694 20695 if test "$gl_cv_cc_nomfi_supported" = yes; then 20696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5 20697$as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; } 20698 if ${gl_cv_cc_nomfi_needed+:} false; then : 20699 $as_echo_n "(cached) " >&6 20700else 20701 20702 gl_save_CFLAGS="$CFLAGS" 20703 CFLAGS="$CFLAGS -W -Werror" 20704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20705/* end confdefs.h. */ 20706void f (void) 20707 { 20708 typedef struct { int a; int b; } s_t; 20709 s_t s1 = { 0, }; 20710 } 20711 20712int 20713main () 20714{ 20715 20716 ; 20717 return 0; 20718} 20719_ACEOF 20720if ac_fn_c_try_compile "$LINENO"; then : 20721 gl_cv_cc_nomfi_needed=no 20722else 20723 gl_cv_cc_nomfi_needed=yes 20724fi 20725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20726 CFLAGS="$gl_save_CFLAGS" 20727 20728fi 20729 20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5 20731$as_echo "$gl_cv_cc_nomfi_needed" >&6; } 20732 fi 20733 20734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5 20735$as_echo_n "checking whether -Wuninitialized is supported... " >&6; } 20736 if ${gl_cv_cc_uninitialized_supported+:} false; then : 20737 $as_echo_n "(cached) " >&6 20738else 20739 20740 gl_save_CFLAGS="$CFLAGS" 20741 CFLAGS="$CFLAGS -Werror -Wuninitialized" 20742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20743/* end confdefs.h. */ 20744 20745int 20746main () 20747{ 20748 20749 ; 20750 return 0; 20751} 20752_ACEOF 20753if ac_fn_c_try_compile "$LINENO"; then : 20754 gl_cv_cc_uninitialized_supported=yes 20755else 20756 gl_cv_cc_uninitialized_supported=no 20757fi 20758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20759 CFLAGS="$gl_save_CFLAGS" 20760fi 20761 20762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5 20763$as_echo "$gl_cv_cc_uninitialized_supported" >&6; } 20764 20765 fi 20766 20767 # List all gcc warning categories. 20768 # To compare this list to your installed GCC's, run this Bash command: 20769 # 20770 # comm -3 \ 20771 # <(sed -n 's/^ *\(-[^ ]*\) .*/\1/p' manywarnings.m4 | sort) \ 20772 # <(gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort | 20773 # grep -v -x -f <( 20774 # awk '/^[^#]/ {print maybewarn}' ../build-aux/gcc-warning.spec)) 20775 20776 gl_manywarn_set= 20777 for gl_manywarn_item in \ 20778 -W \ 20779 -Wabi \ 20780 -Waddress \ 20781 -Waggressive-loop-optimizations \ 20782 -Wall \ 20783 -Wattributes \ 20784 -Wbad-function-cast \ 20785 -Wbool-compare \ 20786 -Wbuiltin-macro-redefined \ 20787 -Wcast-align \ 20788 -Wchar-subscripts \ 20789 -Wclobbered \ 20790 -Wcomment \ 20791 -Wcomments \ 20792 -Wcoverage-mismatch \ 20793 -Wcpp \ 20794 -Wdate-time \ 20795 -Wdeprecated \ 20796 -Wdeprecated-declarations \ 20797 -Wdesignated-init \ 20798 -Wdisabled-optimization \ 20799 -Wdiscarded-array-qualifiers \ 20800 -Wdiscarded-qualifiers \ 20801 -Wdiv-by-zero \ 20802 -Wdouble-promotion \ 20803 -Wduplicated-cond \ 20804 -Wempty-body \ 20805 -Wendif-labels \ 20806 -Wenum-compare \ 20807 -Wextra \ 20808 -Wformat-contains-nul \ 20809 -Wformat-extra-args \ 20810 -Wformat-nonliteral \ 20811 -Wformat-security \ 20812 -Wformat-signedness \ 20813 -Wformat-y2k \ 20814 -Wformat-zero-length \ 20815 -Wframe-address \ 20816 -Wfree-nonheap-object \ 20817 -Whsa \ 20818 -Wignored-attributes \ 20819 -Wignored-qualifiers \ 20820 -Wimplicit \ 20821 -Wimplicit-function-declaration \ 20822 -Wimplicit-int \ 20823 -Wincompatible-pointer-types \ 20824 -Winit-self \ 20825 -Winline \ 20826 -Wint-conversion \ 20827 -Wint-to-pointer-cast \ 20828 -Winvalid-memory-model \ 20829 -Winvalid-pch \ 20830 -Wjump-misses-init \ 20831 -Wlogical-not-parentheses \ 20832 -Wlogical-op \ 20833 -Wmain \ 20834 -Wmaybe-uninitialized \ 20835 -Wmemset-transposed-args \ 20836 -Wmisleading-indentation \ 20837 -Wmissing-braces \ 20838 -Wmissing-declarations \ 20839 -Wmissing-field-initializers \ 20840 -Wmissing-include-dirs \ 20841 -Wmissing-parameter-type \ 20842 -Wmissing-prototypes \ 20843 -Wmultichar \ 20844 -Wnarrowing \ 20845 -Wnested-externs \ 20846 -Wnonnull \ 20847 -Wnonnull-compare \ 20848 -Wnull-dereference \ 20849 -Wodr \ 20850 -Wold-style-declaration \ 20851 -Wold-style-definition \ 20852 -Wopenmp-simd \ 20853 -Woverflow \ 20854 -Woverlength-strings \ 20855 -Woverride-init \ 20856 -Wpacked \ 20857 -Wpacked-bitfield-compat \ 20858 -Wparentheses \ 20859 -Wpointer-arith \ 20860 -Wpointer-sign \ 20861 -Wpointer-to-int-cast \ 20862 -Wpragmas \ 20863 -Wreturn-local-addr \ 20864 -Wreturn-type \ 20865 -Wscalar-storage-order \ 20866 -Wsequence-point \ 20867 -Wshadow \ 20868 -Wshift-count-negative \ 20869 -Wshift-count-overflow \ 20870 -Wshift-negative-value \ 20871 -Wsizeof-array-argument \ 20872 -Wsizeof-pointer-memaccess \ 20873 -Wstack-protector \ 20874 -Wstrict-aliasing \ 20875 -Wstrict-overflow \ 20876 -Wstrict-prototypes \ 20877 -Wsuggest-attribute=const \ 20878 -Wsuggest-attribute=format \ 20879 -Wsuggest-attribute=noreturn \ 20880 -Wsuggest-attribute=pure \ 20881 -Wsuggest-final-methods \ 20882 -Wsuggest-final-types \ 20883 -Wswitch \ 20884 -Wswitch-bool \ 20885 -Wswitch-default \ 20886 -Wsync-nand \ 20887 -Wsystem-headers \ 20888 -Wtautological-compare \ 20889 -Wtrampolines \ 20890 -Wtrigraphs \ 20891 -Wtype-limits \ 20892 -Wuninitialized \ 20893 -Wunknown-pragmas \ 20894 -Wunsafe-loop-optimizations \ 20895 -Wunused \ 20896 -Wunused-but-set-parameter \ 20897 -Wunused-but-set-variable \ 20898 -Wunused-function \ 20899 -Wunused-label \ 20900 -Wunused-local-typedefs \ 20901 -Wunused-macros \ 20902 -Wunused-parameter \ 20903 -Wunused-result \ 20904 -Wunused-value \ 20905 -Wunused-variable \ 20906 -Wvarargs \ 20907 -Wvariadic-macros \ 20908 -Wvector-operation-performance \ 20909 -Wvla \ 20910 -Wvolatile-register-var \ 20911 -Wwrite-strings \ 20912 \ 20913 ; do 20914 gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" 20915 done 20916 20917 # gcc --help=warnings outputs an unusual form for these options; list 20918 # them here so that the above 'comm' command doesn't report a false match. 20919 gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2" 20920 gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc" 20921 gl_manywarn_set="$gl_manywarn_set -Wshift-overflow=2" 20922 gl_manywarn_set="$gl_manywarn_set -Wunused-const-variable=2" 20923 20924 # These are needed for older GCC versions. 20925 if test -n "$GCC"; then 20926 case `($CC --version) 2>/dev/null` in 20927 'gcc (GCC) '[0-3].* | \ 20928 'gcc (GCC) '4.[0-7].*) 20929 gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option" 20930 gl_manywarn_set="$gl_manywarn_set -funit-at-a-time" 20931 ;; 20932 esac 20933 fi 20934 20935 # Disable specific options as needed. 20936 if test "$gl_cv_cc_nomfi_needed" = yes; then 20937 gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers" 20938 fi 20939 20940 if test "$gl_cv_cc_uninitialized_supported" = no; then 20941 gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized" 20942 fi 20943 20944 maybewarn=$gl_manywarn_set 20945 20946 20947 # Remove the ones we don't want, blacklisted earlier 20948 20949 gl_warn_set= 20950 set x $maybewarn; shift 20951 for gl_warn_item 20952 do 20953 case " $dontwarn " in 20954 *" $gl_warn_item "*) 20955 ;; 20956 *) 20957 gl_warn_set="$gl_warn_set $gl_warn_item" 20958 ;; 20959 esac 20960 done 20961 wantwarn=$gl_warn_set 20962 20963 20964 # Check for $CC support of each warning 20965 for w in $wantwarn; do 20966 20967as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh` 20968gl_positive="$w" 20969case $gl_positive in 20970 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;; 20971esac 20972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5 20973$as_echo_n "checking whether C compiler handles $w... " >&6; } 20974if eval \${$as_gl_Warn+:} false; then : 20975 $as_echo_n "(cached) " >&6 20976else 20977 20978 gl_save_compiler_FLAGS="$CFLAGS" 20979 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive" 20980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20981/* end confdefs.h. */ 20982 20983int 20984main () 20985{ 20986 20987 ; 20988 return 0; 20989} 20990_ACEOF 20991if ac_fn_c_try_link "$LINENO"; then : 20992 eval "$as_gl_Warn=yes" 20993else 20994 eval "$as_gl_Warn=no" 20995fi 20996rm -f core conftest.err conftest.$ac_objext \ 20997 conftest$ac_exeext conftest.$ac_ext 20998 CFLAGS="$gl_save_compiler_FLAGS" 20999 21000fi 21001eval ac_res=\$$as_gl_Warn 21002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 21003$as_echo "$ac_res" >&6; } 21004if eval test \"x\$"$as_gl_Warn"\" = x"yes"; then : 21005 as_fn_append WARN_CFLAGS " $w" 21006fi 21007 21008 21009 done 21010 21011 # GNULIB uses '-W' (aka -Wextra) which includes a bunch of stuff. 21012 # Unfortunately, this means you can't simply use '-Wsign-compare' 21013 # with gl_MANYWARN_COMPLEMENT 21014 # So we have -W enabled, and then have to explicitly turn off... 21015 21016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5 21017$as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; } 21018if ${gl_cv_warn_c__Wno_sign_compare+:} false; then : 21019 $as_echo_n "(cached) " >&6 21020else 21021 21022 gl_save_compiler_FLAGS="$CFLAGS" 21023 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsign-compare" 21024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21025/* end confdefs.h. */ 21026 21027int 21028main () 21029{ 21030 21031 ; 21032 return 0; 21033} 21034_ACEOF 21035if ac_fn_c_try_link "$LINENO"; then : 21036 gl_cv_warn_c__Wno_sign_compare=yes 21037else 21038 gl_cv_warn_c__Wno_sign_compare=no 21039fi 21040rm -f core conftest.err conftest.$ac_objext \ 21041 conftest$ac_exeext conftest.$ac_ext 21042 CFLAGS="$gl_save_compiler_FLAGS" 21043 21044fi 21045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5 21046$as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; } 21047if test "x$gl_cv_warn_c__Wno_sign_compare" = xyes; then : 21048 as_fn_append WARN_CFLAGS " -Wno-sign-compare" 21049fi 21050 21051 21052 21053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5 21054$as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; } 21055if ${gl_cv_warn_c__Wno_unused_parameter+:} false; then : 21056 $as_echo_n "(cached) " >&6 21057else 21058 21059 gl_save_compiler_FLAGS="$CFLAGS" 21060 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter" 21061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21062/* end confdefs.h. */ 21063 21064int 21065main () 21066{ 21067 21068 ; 21069 return 0; 21070} 21071_ACEOF 21072if ac_fn_c_try_link "$LINENO"; then : 21073 gl_cv_warn_c__Wno_unused_parameter=yes 21074else 21075 gl_cv_warn_c__Wno_unused_parameter=no 21076fi 21077rm -f core conftest.err conftest.$ac_objext \ 21078 conftest$ac_exeext conftest.$ac_ext 21079 CFLAGS="$gl_save_compiler_FLAGS" 21080 21081fi 21082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5 21083$as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; } 21084if test "x$gl_cv_warn_c__Wno_unused_parameter" = xyes; then : 21085 as_fn_append WARN_CFLAGS " -Wno-unused-parameter" 21086fi 21087 21088 21089 21090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5 21091$as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; } 21092if ${gl_cv_warn_c__Wno_missing_field_initializers+:} false; then : 21093 $as_echo_n "(cached) " >&6 21094else 21095 21096 gl_save_compiler_FLAGS="$CFLAGS" 21097 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers" 21098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21099/* end confdefs.h. */ 21100 21101int 21102main () 21103{ 21104 21105 ; 21106 return 0; 21107} 21108_ACEOF 21109if ac_fn_c_try_link "$LINENO"; then : 21110 gl_cv_warn_c__Wno_missing_field_initializers=yes 21111else 21112 gl_cv_warn_c__Wno_missing_field_initializers=no 21113fi 21114rm -f core conftest.err conftest.$ac_objext \ 21115 conftest$ac_exeext conftest.$ac_ext 21116 CFLAGS="$gl_save_compiler_FLAGS" 21117 21118fi 21119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5 21120$as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; } 21121if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes; then : 21122 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers" 21123fi 21124 21125 21126 # We can't enable this due to horrible spice_usb_device_get_description 21127 # signature 21128 21129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5 21130$as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; } 21131if ${gl_cv_warn_c__Wno_format_nonliteral+:} false; then : 21132 $as_echo_n "(cached) " >&6 21133else 21134 21135 gl_save_compiler_FLAGS="$CFLAGS" 21136 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-nonliteral" 21137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21138/* end confdefs.h. */ 21139 21140int 21141main () 21142{ 21143 21144 ; 21145 return 0; 21146} 21147_ACEOF 21148if ac_fn_c_try_link "$LINENO"; then : 21149 gl_cv_warn_c__Wno_format_nonliteral=yes 21150else 21151 gl_cv_warn_c__Wno_format_nonliteral=no 21152fi 21153rm -f core conftest.err conftest.$ac_objext \ 21154 conftest$ac_exeext conftest.$ac_ext 21155 CFLAGS="$gl_save_compiler_FLAGS" 21156 21157fi 21158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5 21159$as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; } 21160if test "x$gl_cv_warn_c__Wno_format_nonliteral" = xyes; then : 21161 as_fn_append WARN_CFLAGS " -Wno-format-nonliteral" 21162fi 21163 21164 21165 # We use some deprecated functions to avoid #ifdef hell while maintaining 21166 # compat with older gtk / glib versions 21167 21168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-error=deprecated-declarations" >&5 21169$as_echo_n "checking whether C compiler handles -Wno-error=deprecated-declarations... " >&6; } 21170if ${gl_cv_warn_c__Wno_error_deprecated_declarations+:} false; then : 21171 $as_echo_n "(cached) " >&6 21172else 21173 21174 gl_save_compiler_FLAGS="$CFLAGS" 21175 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror=deprecated-declarations" 21176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21177/* end confdefs.h. */ 21178 21179int 21180main () 21181{ 21182 21183 ; 21184 return 0; 21185} 21186_ACEOF 21187if ac_fn_c_try_link "$LINENO"; then : 21188 gl_cv_warn_c__Wno_error_deprecated_declarations=yes 21189else 21190 gl_cv_warn_c__Wno_error_deprecated_declarations=no 21191fi 21192rm -f core conftest.err conftest.$ac_objext \ 21193 conftest$ac_exeext conftest.$ac_ext 21194 CFLAGS="$gl_save_compiler_FLAGS" 21195 21196fi 21197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_error_deprecated_declarations" >&5 21198$as_echo "$gl_cv_warn_c__Wno_error_deprecated_declarations" >&6; } 21199if test "x$gl_cv_warn_c__Wno_error_deprecated_declarations" = xyes; then : 21200 as_fn_append WARN_CFLAGS " -Wno-error=deprecated-declarations" 21201fi 21202 21203 21204 # g_source_set_callback() can't be compatible with this warning. Its API 21205 # doc states: 21206 # "The exact type of func depends on the type of source; ie. you should 21207 # not count on func being called with data as its first parameter." 21208 21209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-cast-function-type" >&5 21210$as_echo_n "checking whether C compiler handles -Wno-cast-function-type... " >&6; } 21211if ${gl_cv_warn_c__Wno_cast_function_type+:} false; then : 21212 $as_echo_n "(cached) " >&6 21213else 21214 21215 gl_save_compiler_FLAGS="$CFLAGS" 21216 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wcast-function-type" 21217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21218/* end confdefs.h. */ 21219 21220int 21221main () 21222{ 21223 21224 ; 21225 return 0; 21226} 21227_ACEOF 21228if ac_fn_c_try_link "$LINENO"; then : 21229 gl_cv_warn_c__Wno_cast_function_type=yes 21230else 21231 gl_cv_warn_c__Wno_cast_function_type=no 21232fi 21233rm -f core conftest.err conftest.$ac_objext \ 21234 conftest$ac_exeext conftest.$ac_ext 21235 CFLAGS="$gl_save_compiler_FLAGS" 21236 21237fi 21238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_cast_function_type" >&5 21239$as_echo "$gl_cv_warn_c__Wno_cast_function_type" >&6; } 21240if test "x$gl_cv_warn_c__Wno_cast_function_type" = xyes; then : 21241 as_fn_append WARN_CFLAGS " -Wno-cast-function-type" 21242fi 21243 21244 21245 21246 # GNULIB expects this to be part of -Wc++-compat, but we turn 21247 # that one off, so we need to manually enable this again 21248 21249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wjump-misses-init" >&5 21250$as_echo_n "checking whether C compiler handles -Wjump-misses-init... " >&6; } 21251if ${gl_cv_warn_c__Wjump_misses_init+:} false; then : 21252 $as_echo_n "(cached) " >&6 21253else 21254 21255 gl_save_compiler_FLAGS="$CFLAGS" 21256 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wjump-misses-init" 21257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21258/* end confdefs.h. */ 21259 21260int 21261main () 21262{ 21263 21264 ; 21265 return 0; 21266} 21267_ACEOF 21268if ac_fn_c_try_link "$LINENO"; then : 21269 gl_cv_warn_c__Wjump_misses_init=yes 21270else 21271 gl_cv_warn_c__Wjump_misses_init=no 21272fi 21273rm -f core conftest.err conftest.$ac_objext \ 21274 conftest$ac_exeext conftest.$ac_ext 21275 CFLAGS="$gl_save_compiler_FLAGS" 21276 21277fi 21278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wjump_misses_init" >&5 21279$as_echo "$gl_cv_warn_c__Wjump_misses_init" >&6; } 21280if test "x$gl_cv_warn_c__Wjump_misses_init" = xyes; then : 21281 as_fn_append WARN_CFLAGS " -Wjump-misses-init" 21282fi 21283 21284 21285 21286 # This should be < 1024 really. pixman_utils is the blackspot 21287 # preventing lower usage 21288 21289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wframe-larger-than=9216" >&5 21290$as_echo_n "checking whether C compiler handles -Wframe-larger-than=9216... " >&6; } 21291if ${gl_cv_warn_c__Wframe_larger_than_9216+:} false; then : 21292 $as_echo_n "(cached) " >&6 21293else 21294 21295 gl_save_compiler_FLAGS="$CFLAGS" 21296 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wframe-larger-than=9216" 21297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21298/* end confdefs.h. */ 21299 21300int 21301main () 21302{ 21303 21304 ; 21305 return 0; 21306} 21307_ACEOF 21308if ac_fn_c_try_link "$LINENO"; then : 21309 gl_cv_warn_c__Wframe_larger_than_9216=yes 21310else 21311 gl_cv_warn_c__Wframe_larger_than_9216=no 21312fi 21313rm -f core conftest.err conftest.$ac_objext \ 21314 conftest$ac_exeext conftest.$ac_ext 21315 CFLAGS="$gl_save_compiler_FLAGS" 21316 21317fi 21318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wframe_larger_than_9216" >&5 21319$as_echo "$gl_cv_warn_c__Wframe_larger_than_9216" >&6; } 21320if test "x$gl_cv_warn_c__Wframe_larger_than_9216" = xyes; then : 21321 as_fn_append WARN_CFLAGS " -Wframe-larger-than=9216" 21322fi 21323 21324 21325 21326 # Use improved glibc headers 21327 21328 21329 # Extra special flags 21330 case $host in 21331 *-*-linux*) 21332 21333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fstack-protector-all" >&5 21334$as_echo_n "checking whether C compiler handles -fstack-protector-all... " >&6; } 21335if ${gl_cv_warn_c__fstack_protector_all+:} false; then : 21336 $as_echo_n "(cached) " >&6 21337else 21338 21339 gl_save_compiler_FLAGS="$CFLAGS" 21340 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fstack-protector-all" 21341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21342/* end confdefs.h. */ 21343 21344int 21345main () 21346{ 21347 21348 ; 21349 return 0; 21350} 21351_ACEOF 21352if ac_fn_c_try_link "$LINENO"; then : 21353 gl_cv_warn_c__fstack_protector_all=yes 21354else 21355 gl_cv_warn_c__fstack_protector_all=no 21356fi 21357rm -f core conftest.err conftest.$ac_objext \ 21358 conftest$ac_exeext conftest.$ac_ext 21359 CFLAGS="$gl_save_compiler_FLAGS" 21360 21361fi 21362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fstack_protector_all" >&5 21363$as_echo "$gl_cv_warn_c__fstack_protector_all" >&6; } 21364if test "x$gl_cv_warn_c__fstack_protector_all" = xyes; then : 21365 as_fn_append WARN_CFLAGS " -fstack-protector-all" 21366fi 21367 21368 21369 21370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles --param=ssp-buffer-size=4" >&5 21371$as_echo_n "checking whether C compiler handles --param=ssp-buffer-size=4... " >&6; } 21372if ${gl_cv_warn_c___param_ssp_buffer_size_4+:} false; then : 21373 $as_echo_n "(cached) " >&6 21374else 21375 21376 gl_save_compiler_FLAGS="$CFLAGS" 21377 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors --param=ssp-buffer-size=4" 21378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21379/* end confdefs.h. */ 21380 21381int 21382main () 21383{ 21384 21385 ; 21386 return 0; 21387} 21388_ACEOF 21389if ac_fn_c_try_link "$LINENO"; then : 21390 gl_cv_warn_c___param_ssp_buffer_size_4=yes 21391else 21392 gl_cv_warn_c___param_ssp_buffer_size_4=no 21393fi 21394rm -f core conftest.err conftest.$ac_objext \ 21395 conftest$ac_exeext conftest.$ac_ext 21396 CFLAGS="$gl_save_compiler_FLAGS" 21397 21398fi 21399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c___param_ssp_buffer_size_4" >&5 21400$as_echo "$gl_cv_warn_c___param_ssp_buffer_size_4" >&6; } 21401if test "x$gl_cv_warn_c___param_ssp_buffer_size_4" = xyes; then : 21402 as_fn_append WARN_CFLAGS " --param=ssp-buffer-size=4" 21403fi 21404 21405 21406 ;; 21407 esac 21408 21409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fexceptions" >&5 21410$as_echo_n "checking whether C compiler handles -fexceptions... " >&6; } 21411if ${gl_cv_warn_c__fexceptions+:} false; then : 21412 $as_echo_n "(cached) " >&6 21413else 21414 21415 gl_save_compiler_FLAGS="$CFLAGS" 21416 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fexceptions" 21417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21418/* end confdefs.h. */ 21419 21420int 21421main () 21422{ 21423 21424 ; 21425 return 0; 21426} 21427_ACEOF 21428if ac_fn_c_try_link "$LINENO"; then : 21429 gl_cv_warn_c__fexceptions=yes 21430else 21431 gl_cv_warn_c__fexceptions=no 21432fi 21433rm -f core conftest.err conftest.$ac_objext \ 21434 conftest$ac_exeext conftest.$ac_ext 21435 CFLAGS="$gl_save_compiler_FLAGS" 21436 21437fi 21438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fexceptions" >&5 21439$as_echo "$gl_cv_warn_c__fexceptions" >&6; } 21440if test "x$gl_cv_warn_c__fexceptions" = xyes; then : 21441 as_fn_append WARN_CFLAGS " -fexceptions" 21442fi 21443 21444 21445 21446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fasynchronous-unwind-tables" >&5 21447$as_echo_n "checking whether C compiler handles -fasynchronous-unwind-tables... " >&6; } 21448if ${gl_cv_warn_c__fasynchronous_unwind_tables+:} false; then : 21449 $as_echo_n "(cached) " >&6 21450else 21451 21452 gl_save_compiler_FLAGS="$CFLAGS" 21453 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fasynchronous-unwind-tables" 21454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21455/* end confdefs.h. */ 21456 21457int 21458main () 21459{ 21460 21461 ; 21462 return 0; 21463} 21464_ACEOF 21465if ac_fn_c_try_link "$LINENO"; then : 21466 gl_cv_warn_c__fasynchronous_unwind_tables=yes 21467else 21468 gl_cv_warn_c__fasynchronous_unwind_tables=no 21469fi 21470rm -f core conftest.err conftest.$ac_objext \ 21471 conftest$ac_exeext conftest.$ac_ext 21472 CFLAGS="$gl_save_compiler_FLAGS" 21473 21474fi 21475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fasynchronous_unwind_tables" >&5 21476$as_echo "$gl_cv_warn_c__fasynchronous_unwind_tables" >&6; } 21477if test "x$gl_cv_warn_c__fasynchronous_unwind_tables" = xyes; then : 21478 as_fn_append WARN_CFLAGS " -fasynchronous-unwind-tables" 21479fi 21480 21481 21482 21483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5 21484$as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; } 21485if ${gl_cv_warn_c__fdiagnostics_show_option+:} false; then : 21486 $as_echo_n "(cached) " >&6 21487else 21488 21489 gl_save_compiler_FLAGS="$CFLAGS" 21490 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option" 21491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21492/* end confdefs.h. */ 21493 21494int 21495main () 21496{ 21497 21498 ; 21499 return 0; 21500} 21501_ACEOF 21502if ac_fn_c_try_link "$LINENO"; then : 21503 gl_cv_warn_c__fdiagnostics_show_option=yes 21504else 21505 gl_cv_warn_c__fdiagnostics_show_option=no 21506fi 21507rm -f core conftest.err conftest.$ac_objext \ 21508 conftest$ac_exeext conftest.$ac_ext 21509 CFLAGS="$gl_save_compiler_FLAGS" 21510 21511fi 21512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5 21513$as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; } 21514if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes; then : 21515 as_fn_append WARN_CFLAGS " -fdiagnostics-show-option" 21516fi 21517 21518 21519 21520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5 21521$as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; } 21522if ${gl_cv_warn_c__funit_at_a_time+:} false; then : 21523 $as_echo_n "(cached) " >&6 21524else 21525 21526 gl_save_compiler_FLAGS="$CFLAGS" 21527 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -funit-at-a-time" 21528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21529/* end confdefs.h. */ 21530 21531int 21532main () 21533{ 21534 21535 ; 21536 return 0; 21537} 21538_ACEOF 21539if ac_fn_c_try_link "$LINENO"; then : 21540 gl_cv_warn_c__funit_at_a_time=yes 21541else 21542 gl_cv_warn_c__funit_at_a_time=no 21543fi 21544rm -f core conftest.err conftest.$ac_objext \ 21545 conftest$ac_exeext conftest.$ac_ext 21546 CFLAGS="$gl_save_compiler_FLAGS" 21547 21548fi 21549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5 21550$as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; } 21551if test "x$gl_cv_warn_c__funit_at_a_time" = xyes; then : 21552 as_fn_append WARN_CFLAGS " -funit-at-a-time" 21553fi 21554 21555 21556 21557 # Need -fipa-pure-const in order to make -Wsuggest-attribute=pure 21558 # fire even without -O. 21559 21560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fipa-pure-const" >&5 21561$as_echo_n "checking whether C compiler handles -fipa-pure-const... " >&6; } 21562if ${gl_cv_warn_c__fipa_pure_const+:} false; then : 21563 $as_echo_n "(cached) " >&6 21564else 21565 21566 gl_save_compiler_FLAGS="$CFLAGS" 21567 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fipa-pure-const" 21568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21569/* end confdefs.h. */ 21570 21571int 21572main () 21573{ 21574 21575 ; 21576 return 0; 21577} 21578_ACEOF 21579if ac_fn_c_try_link "$LINENO"; then : 21580 gl_cv_warn_c__fipa_pure_const=yes 21581else 21582 gl_cv_warn_c__fipa_pure_const=no 21583fi 21584rm -f core conftest.err conftest.$ac_objext \ 21585 conftest$ac_exeext conftest.$ac_ext 21586 CFLAGS="$gl_save_compiler_FLAGS" 21587 21588fi 21589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fipa_pure_const" >&5 21590$as_echo "$gl_cv_warn_c__fipa_pure_const" >&6; } 21591if test "x$gl_cv_warn_c__fipa_pure_const" = xyes; then : 21592 as_fn_append WARN_CFLAGS " -fipa-pure-const" 21593fi 21594 21595 21596 21597 # We should eventually enable this, but right now there are at 21598 # least 75 functions triggering warnings. 21599 21600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-suggest-attribute=pure" >&5 21601$as_echo_n "checking whether C compiler handles -Wno-suggest-attribute=pure... " >&6; } 21602if ${gl_cv_warn_c__Wno_suggest_attribute_pure+:} false; then : 21603 $as_echo_n "(cached) " >&6 21604else 21605 21606 gl_save_compiler_FLAGS="$CFLAGS" 21607 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsuggest-attribute=pure" 21608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21609/* end confdefs.h. */ 21610 21611int 21612main () 21613{ 21614 21615 ; 21616 return 0; 21617} 21618_ACEOF 21619if ac_fn_c_try_link "$LINENO"; then : 21620 gl_cv_warn_c__Wno_suggest_attribute_pure=yes 21621else 21622 gl_cv_warn_c__Wno_suggest_attribute_pure=no 21623fi 21624rm -f core conftest.err conftest.$ac_objext \ 21625 conftest$ac_exeext conftest.$ac_ext 21626 CFLAGS="$gl_save_compiler_FLAGS" 21627 21628fi 21629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_suggest_attribute_pure" >&5 21630$as_echo "$gl_cv_warn_c__Wno_suggest_attribute_pure" >&6; } 21631if test "x$gl_cv_warn_c__Wno_suggest_attribute_pure" = xyes; then : 21632 as_fn_append WARN_CFLAGS " -Wno-suggest-attribute=pure" 21633fi 21634 21635 21636 21637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-suggest-attribute=const" >&5 21638$as_echo_n "checking whether C compiler handles -Wno-suggest-attribute=const... " >&6; } 21639if ${gl_cv_warn_c__Wno_suggest_attribute_const+:} false; then : 21640 $as_echo_n "(cached) " >&6 21641else 21642 21643 gl_save_compiler_FLAGS="$CFLAGS" 21644 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsuggest-attribute=const" 21645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21646/* end confdefs.h. */ 21647 21648int 21649main () 21650{ 21651 21652 ; 21653 return 0; 21654} 21655_ACEOF 21656if ac_fn_c_try_link "$LINENO"; then : 21657 gl_cv_warn_c__Wno_suggest_attribute_const=yes 21658else 21659 gl_cv_warn_c__Wno_suggest_attribute_const=no 21660fi 21661rm -f core conftest.err conftest.$ac_objext \ 21662 conftest$ac_exeext conftest.$ac_ext 21663 CFLAGS="$gl_save_compiler_FLAGS" 21664 21665fi 21666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_suggest_attribute_const" >&5 21667$as_echo "$gl_cv_warn_c__Wno_suggest_attribute_const" >&6; } 21668if test "x$gl_cv_warn_c__Wno_suggest_attribute_const" = xyes; then : 21669 as_fn_append WARN_CFLAGS " -Wno-suggest-attribute=const" 21670fi 21671 21672 21673 21674 if test "$set_werror" = "yes" 21675 then 21676 21677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5 21678$as_echo_n "checking whether C compiler handles -Werror... " >&6; } 21679if ${gl_cv_warn_c__Werror+:} false; then : 21680 $as_echo_n "(cached) " >&6 21681else 21682 21683 gl_save_compiler_FLAGS="$CFLAGS" 21684 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror" 21685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21686/* end confdefs.h. */ 21687 21688int 21689main () 21690{ 21691 21692 ; 21693 return 0; 21694} 21695_ACEOF 21696if ac_fn_c_try_link "$LINENO"; then : 21697 gl_cv_warn_c__Werror=yes 21698else 21699 gl_cv_warn_c__Werror=no 21700fi 21701rm -f core conftest.err conftest.$ac_objext \ 21702 conftest$ac_exeext conftest.$ac_ext 21703 CFLAGS="$gl_save_compiler_FLAGS" 21704 21705fi 21706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5 21707$as_echo "$gl_cv_warn_c__Werror" >&6; } 21708if test "x$gl_cv_warn_c__Werror" = xyes; then : 21709 as_fn_append WARN_CFLAGS " -Werror" 21710fi 21711 21712 21713 fi 21714 21715 WARN_LDFLAGS=$WARN_CFLAGS 21716 21717 21718 21719 21720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-write-strings" >&5 21721$as_echo_n "checking whether C compiler handles -Wno-write-strings... " >&6; } 21722if ${gl_cv_warn_c__Wno_write_strings+:} false; then : 21723 $as_echo_n "(cached) " >&6 21724else 21725 21726 gl_save_compiler_FLAGS="$CFLAGS" 21727 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wwrite-strings" 21728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21729/* end confdefs.h. */ 21730 21731int 21732main () 21733{ 21734 21735 ; 21736 return 0; 21737} 21738_ACEOF 21739if ac_fn_c_try_link "$LINENO"; then : 21740 gl_cv_warn_c__Wno_write_strings=yes 21741else 21742 gl_cv_warn_c__Wno_write_strings=no 21743fi 21744rm -f core conftest.err conftest.$ac_objext \ 21745 conftest$ac_exeext conftest.$ac_ext 21746 CFLAGS="$gl_save_compiler_FLAGS" 21747 21748fi 21749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_write_strings" >&5 21750$as_echo "$gl_cv_warn_c__Wno_write_strings" >&6; } 21751if test "x$gl_cv_warn_c__Wno_write_strings" = xyes; then : 21752 as_fn_append WARN_CFLAGS " -Wno-write-strings" 21753fi 21754 21755 21756 WARN_PYFLAGS=$WARN_CFLAGS 21757 21758 21759 21760SPICE_CFLAGS="$SPICE_CFLAGS $WARN_CFLAGS" 21761 21762 21763 21764SPICE_GLIB_CFLAGS="$PIXMAN_CFLAGS $PULSE_CFLAGS $GSTAUDIO_CFLAGS $GSTVIDEO_CFLAGS $GLIB2_CFLAGS $GIO_CFLAGS $GOBJECT2_CFLAGS $OPENSSL_CFLAGS $SASL_CFLAGS" 21765SPICE_GTK_CFLAGS="$SPICE_GLIB_CFLAGS $GTK_CFLAGS " 21766 21767 21768 21769 21770 21771 21772 21773 21774# Check whether --enable-silent-rules was given. 21775if test "${enable_silent_rules+set}" = set; then : 21776 enableval=$enable_silent_rules; 21777fi 21778 21779case $enable_silent_rules in # ((( 21780 yes) AM_DEFAULT_VERBOSITY=0;; 21781 no) AM_DEFAULT_VERBOSITY=1;; 21782 *) AM_DEFAULT_VERBOSITY=0;; 21783esac 21784am_make=${MAKE-make} 21785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 21786$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 21787if ${am_cv_make_support_nested_variables+:} false; then : 21788 $as_echo_n "(cached) " >&6 21789else 21790 if $as_echo 'TRUE=$(BAR$(V)) 21791BAR0=false 21792BAR1=true 21793V=1 21794am__doit: 21795 @$(TRUE) 21796.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 21797 am_cv_make_support_nested_variables=yes 21798else 21799 am_cv_make_support_nested_variables=no 21800fi 21801fi 21802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 21803$as_echo "$am_cv_make_support_nested_variables" >&6; } 21804if test $am_cv_make_support_nested_variables = yes; then 21805 AM_V='$(V)' 21806 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 21807else 21808 AM_V=$AM_DEFAULT_VERBOSITY 21809 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 21810fi 21811AM_BACKSLASH='\' 21812 21813 21814ac_config_files="$ac_config_files Makefile spice-client-glib-2.0.pc spice-client-gtk-3.0.pc data/Makefile po/Makefile.in src/Makefile src/spice-version.h tools/Makefile doc/Makefile doc/reference/Makefile man/Makefile vapi/Makefile tests/Makefile" 21815 21816cat >confcache <<\_ACEOF 21817# This file is a shell script that caches the results of configure 21818# tests run on this system so they can be shared between configure 21819# scripts and configure runs, see configure's option --config-cache. 21820# It is not useful on other systems. If it contains results you don't 21821# want to keep, you may remove or edit it. 21822# 21823# config.status only pays attention to the cache file if you give it 21824# the --recheck option to rerun configure. 21825# 21826# `ac_cv_env_foo' variables (set or unset) will be overridden when 21827# loading this file, other *unset* `ac_cv_foo' will be assigned the 21828# following values. 21829 21830_ACEOF 21831 21832# The following way of writing the cache mishandles newlines in values, 21833# but we know of no workaround that is simple, portable, and efficient. 21834# So, we kill variables containing newlines. 21835# Ultrix sh set writes to stderr and can't be redirected directly, 21836# and sets the high bit in the cache file unless we assign to the vars. 21837( 21838 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21839 eval ac_val=\$$ac_var 21840 case $ac_val in #( 21841 *${as_nl}*) 21842 case $ac_var in #( 21843 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21844$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21845 esac 21846 case $ac_var in #( 21847 _ | IFS | as_nl) ;; #( 21848 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21849 *) { eval $ac_var=; unset $ac_var;} ;; 21850 esac ;; 21851 esac 21852 done 21853 21854 (set) 2>&1 | 21855 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21856 *${as_nl}ac_space=\ *) 21857 # `set' does not quote correctly, so add quotes: double-quote 21858 # substitution turns \\\\ into \\, and sed turns \\ into \. 21859 sed -n \ 21860 "s/'/'\\\\''/g; 21861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21862 ;; #( 21863 *) 21864 # `set' quotes correctly as required by POSIX, so do not add quotes. 21865 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21866 ;; 21867 esac | 21868 sort 21869) | 21870 sed ' 21871 /^ac_cv_env_/b end 21872 t clear 21873 :clear 21874 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21875 t end 21876 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21877 :end' >>confcache 21878if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21879 if test -w "$cache_file"; then 21880 if test "x$cache_file" != "x/dev/null"; then 21881 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21882$as_echo "$as_me: updating cache $cache_file" >&6;} 21883 if test ! -f "$cache_file" || test -h "$cache_file"; then 21884 cat confcache >"$cache_file" 21885 else 21886 case $cache_file in #( 21887 */* | ?:*) 21888 mv -f confcache "$cache_file"$$ && 21889 mv -f "$cache_file"$$ "$cache_file" ;; #( 21890 *) 21891 mv -f confcache "$cache_file" ;; 21892 esac 21893 fi 21894 fi 21895 else 21896 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21897$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21898 fi 21899fi 21900rm -f confcache 21901 21902test "x$prefix" = xNONE && prefix=$ac_default_prefix 21903# Let make expand exec_prefix. 21904test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21905 21906DEFS=-DHAVE_CONFIG_H 21907 21908ac_libobjs= 21909ac_ltlibobjs= 21910U= 21911for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21912 # 1. Remove the extension, and $U if already installed. 21913 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21914 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21915 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21916 # will be set to the directory where LIBOBJS objects are built. 21917 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21918 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21919done 21920LIBOBJS=$ac_libobjs 21921 21922LTLIBOBJS=$ac_ltlibobjs 21923 21924 21925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21926$as_echo_n "checking that generated files are newer than configure... " >&6; } 21927 if test -n "$am_sleep_pid"; then 21928 # Hide warnings about reused PIDs. 21929 wait $am_sleep_pid 2>/dev/null 21930 fi 21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21932$as_echo "done" >&6; } 21933 if test -n "$EXEEXT"; then 21934 am__EXEEXT_TRUE= 21935 am__EXEEXT_FALSE='#' 21936else 21937 am__EXEEXT_TRUE='#' 21938 am__EXEEXT_FALSE= 21939fi 21940 21941if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21942 as_fn_error $? "conditional \"AMDEP\" was never defined. 21943Usually this means the macro was only invoked conditionally." "$LINENO" 5 21944fi 21945if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21946 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21947Usually this means the macro was only invoked conditionally." "$LINENO" 5 21948fi 21949if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21950 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 21951Usually this means the macro was only invoked conditionally." "$LINENO" 5 21952fi 21953if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then 21954 as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined. 21955Usually this means the macro was only invoked conditionally." "$LINENO" 5 21956fi 21957if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then 21958 as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. 21959Usually this means the macro was only invoked conditionally." "$LINENO" 5 21960fi 21961if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then 21962 as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. 21963Usually this means the macro was only invoked conditionally." "$LINENO" 5 21964fi 21965if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then 21966 as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. 21967Usually this means the macro was only invoked conditionally." "$LINENO" 5 21968fi 21969if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then 21970 as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. 21971Usually this means the macro was only invoked conditionally." "$LINENO" 5 21972fi 21973if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then 21974 as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. 21975Usually this means the macro was only invoked conditionally." "$LINENO" 5 21976fi 21977if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21978 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21979Usually this means the macro was only invoked conditionally." "$LINENO" 5 21980fi 21981 21982if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then 21983 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined. 21984Usually this means the macro was only invoked conditionally." "$LINENO" 5 21985fi 21986if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then 21987 as_fn_error $? "conditional \"OS_WIN32\" was never defined. 21988Usually this means the macro was only invoked conditionally." "$LINENO" 5 21989fi 21990if test -z "${OS_MAC_TRUE}" && test -z "${OS_MAC_FALSE}"; then 21991 as_fn_error $? "conditional \"OS_MAC\" was never defined. 21992Usually this means the macro was only invoked conditionally." "$LINENO" 5 21993fi 21994if test -z "${HAVE_EGL_TRUE}" && test -z "${HAVE_EGL_FALSE}"; then 21995 as_fn_error $? "conditional \"HAVE_EGL\" was never defined. 21996Usually this means the macro was only invoked conditionally." "$LINENO" 5 21997fi 21998if test -z "${ENABLE_RECORDER_TRUE}" && test -z "${ENABLE_RECORDER_FALSE}"; then 21999 as_fn_error $? "conditional \"ENABLE_RECORDER\" was never defined. 22000Usually this means the macro was only invoked conditionally." "$LINENO" 5 22001fi 22002if test -z "${WITH_GTK_TRUE}" && test -z "${WITH_GTK_FALSE}"; then 22003 as_fn_error $? "conditional \"WITH_GTK\" was never defined. 22004Usually this means the macro was only invoked conditionally." "$LINENO" 5 22005fi 22006if test -z "${WITH_PHODAV_TRUE}" && test -z "${WITH_PHODAV_FALSE}"; then 22007 as_fn_error $? "conditional \"WITH_PHODAV\" was never defined. 22008Usually this means the macro was only invoked conditionally." "$LINENO" 5 22009fi 22010if test -z "${HAVE_PULSE_TRUE}" && test -z "${HAVE_PULSE_FALSE}"; then 22011 as_fn_error $? "conditional \"HAVE_PULSE\" was never defined. 22012Usually this means the macro was only invoked conditionally." "$LINENO" 5 22013fi 22014if test -z "${HAVE_BUILTIN_MJPEG_TRUE}" && test -z "${HAVE_BUILTIN_MJPEG_FALSE}"; then 22015 as_fn_error $? "conditional \"HAVE_BUILTIN_MJPEG\" was never defined. 22016Usually this means the macro was only invoked conditionally." "$LINENO" 5 22017fi 22018if test -z "${HAVE_SMARTCARD_TRUE}" && test -z "${HAVE_SMARTCARD_FALSE}"; then 22019 as_fn_error $? "conditional \"HAVE_SMARTCARD\" was never defined. 22020Usually this means the macro was only invoked conditionally." "$LINENO" 5 22021fi 22022if test -z "${WITH_SMARTCARD_TRUE}" && test -z "${WITH_SMARTCARD_FALSE}"; then 22023 as_fn_error $? "conditional \"WITH_SMARTCARD\" was never defined. 22024Usually this means the macro was only invoked conditionally." "$LINENO" 5 22025fi 22026if test -z "${WITH_USBREDIR_TRUE}" && test -z "${WITH_USBREDIR_FALSE}"; then 22027 as_fn_error $? "conditional \"WITH_USBREDIR\" was never defined. 22028Usually this means the macro was only invoked conditionally." "$LINENO" 5 22029fi 22030if test -z "${WITH_POLKIT_TRUE}" && test -z "${WITH_POLKIT_FALSE}"; then 22031 as_fn_error $? "conditional \"WITH_POLKIT\" was never defined. 22032Usually this means the macro was only invoked conditionally." "$LINENO" 5 22033fi 22034if test -z "${WITH_POLKIT_TRUE}" && test -z "${WITH_POLKIT_FALSE}"; then 22035 as_fn_error $? "conditional \"WITH_POLKIT\" was never defined. 22036Usually this means the macro was only invoked conditionally." "$LINENO" 5 22037fi 22038if test -z "${WITH_UCONTEXT_TRUE}" && test -z "${WITH_UCONTEXT_FALSE}"; then 22039 as_fn_error $? "conditional \"WITH_UCONTEXT\" was never defined. 22040Usually this means the macro was only invoked conditionally." "$LINENO" 5 22041fi 22042if test -z "${WITH_WINFIBER_TRUE}" && test -z "${WITH_WINFIBER_FALSE}"; then 22043 as_fn_error $? "conditional \"WITH_WINFIBER\" was never defined. 22044Usually this means the macro was only invoked conditionally." "$LINENO" 5 22045fi 22046if test -z "${WITH_GTHREAD_TRUE}" && test -z "${WITH_GTHREAD_FALSE}"; then 22047 as_fn_error $? "conditional \"WITH_GTHREAD\" was never defined. 22048Usually this means the macro was only invoked conditionally." "$LINENO" 5 22049fi 22050if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then 22051 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined. 22052Usually this means the macro was only invoked conditionally." "$LINENO" 5 22053fi 22054if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then 22055 as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined. 22056Usually this means the macro was only invoked conditionally." "$LINENO" 5 22057fi 22058if test -z "${G_IR_SCANNER_SYMBOL_PREFIX_TRUE}" && test -z "${G_IR_SCANNER_SYMBOL_PREFIX_FALSE}"; then 22059 as_fn_error $? "conditional \"G_IR_SCANNER_SYMBOL_PREFIX\" was never defined. 22060Usually this means the macro was only invoked conditionally." "$LINENO" 5 22061fi 22062if test -z "${WITH_VALA_TRUE}" && test -z "${WITH_VALA_FALSE}"; then 22063 as_fn_error $? "conditional \"WITH_VALA\" was never defined. 22064Usually this means the macro was only invoked conditionally." "$LINENO" 5 22065fi 22066if test -z "${HAVE_LZ4_TRUE}" && test -z "${HAVE_LZ4_FALSE}"; then 22067 as_fn_error $? "conditional \"HAVE_LZ4\" was never defined. 22068Usually this means the macro was only invoked conditionally." "$LINENO" 5 22069fi 22070 22071: "${CONFIG_STATUS=./config.status}" 22072ac_write_fail=0 22073ac_clean_files_save=$ac_clean_files 22074ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22075{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22076$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22077as_write_fail=0 22078cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22079#! $SHELL 22080# Generated by $as_me. 22081# Run this file to recreate the current configuration. 22082# Compiler output produced by configure, useful for debugging 22083# configure, is in config.log if it exists. 22084 22085debug=false 22086ac_cs_recheck=false 22087ac_cs_silent=false 22088 22089SHELL=\${CONFIG_SHELL-$SHELL} 22090export SHELL 22091_ASEOF 22092cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22093## -------------------- ## 22094## M4sh Initialization. ## 22095## -------------------- ## 22096 22097# Be more Bourne compatible 22098DUALCASE=1; export DUALCASE # for MKS sh 22099if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22100 emulate sh 22101 NULLCMD=: 22102 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22103 # is contrary to our usage. Disable this feature. 22104 alias -g '${1+"$@"}'='"$@"' 22105 setopt NO_GLOB_SUBST 22106else 22107 case `(set -o) 2>/dev/null` in #( 22108 *posix*) : 22109 set -o posix ;; #( 22110 *) : 22111 ;; 22112esac 22113fi 22114 22115 22116as_nl=' 22117' 22118export as_nl 22119# Printing a long string crashes Solaris 7 /usr/bin/printf. 22120as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22121as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22122as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22123# Prefer a ksh shell builtin over an external printf program on Solaris, 22124# but without wasting forks for bash or zsh. 22125if test -z "$BASH_VERSION$ZSH_VERSION" \ 22126 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22127 as_echo='print -r --' 22128 as_echo_n='print -rn --' 22129elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22130 as_echo='printf %s\n' 22131 as_echo_n='printf %s' 22132else 22133 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22134 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22135 as_echo_n='/usr/ucb/echo -n' 22136 else 22137 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22138 as_echo_n_body='eval 22139 arg=$1; 22140 case $arg in #( 22141 *"$as_nl"*) 22142 expr "X$arg" : "X\\(.*\\)$as_nl"; 22143 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22144 esac; 22145 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22146 ' 22147 export as_echo_n_body 22148 as_echo_n='sh -c $as_echo_n_body as_echo' 22149 fi 22150 export as_echo_body 22151 as_echo='sh -c $as_echo_body as_echo' 22152fi 22153 22154# The user is always right. 22155if test "${PATH_SEPARATOR+set}" != set; then 22156 PATH_SEPARATOR=: 22157 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22158 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22159 PATH_SEPARATOR=';' 22160 } 22161fi 22162 22163 22164# IFS 22165# We need space, tab and new line, in precisely that order. Quoting is 22166# there to prevent editors from complaining about space-tab. 22167# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22168# splitting by setting IFS to empty value.) 22169IFS=" "" $as_nl" 22170 22171# Find who we are. Look in the path if we contain no directory separator. 22172as_myself= 22173case $0 in #(( 22174 *[\\/]* ) as_myself=$0 ;; 22175 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22176for as_dir in $PATH 22177do 22178 IFS=$as_save_IFS 22179 test -z "$as_dir" && as_dir=. 22180 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22181 done 22182IFS=$as_save_IFS 22183 22184 ;; 22185esac 22186# We did not find ourselves, most probably we were run as `sh COMMAND' 22187# in which case we are not to be found in the path. 22188if test "x$as_myself" = x; then 22189 as_myself=$0 22190fi 22191if test ! -f "$as_myself"; then 22192 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22193 exit 1 22194fi 22195 22196# Unset variables that we do not need and which cause bugs (e.g. in 22197# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22198# suppresses any "Segmentation fault" message there. '((' could 22199# trigger a bug in pdksh 5.2.14. 22200for as_var in BASH_ENV ENV MAIL MAILPATH 22201do eval test x\${$as_var+set} = xset \ 22202 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22203done 22204PS1='$ ' 22205PS2='> ' 22206PS4='+ ' 22207 22208# NLS nuisances. 22209LC_ALL=C 22210export LC_ALL 22211LANGUAGE=C 22212export LANGUAGE 22213 22214# CDPATH. 22215(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22216 22217 22218# as_fn_error STATUS ERROR [LINENO LOG_FD] 22219# ---------------------------------------- 22220# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22221# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22222# script with STATUS, using 1 if that was 0. 22223as_fn_error () 22224{ 22225 as_status=$1; test $as_status -eq 0 && as_status=1 22226 if test "$4"; then 22227 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22228 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22229 fi 22230 $as_echo "$as_me: error: $2" >&2 22231 as_fn_exit $as_status 22232} # as_fn_error 22233 22234 22235# as_fn_set_status STATUS 22236# ----------------------- 22237# Set $? to STATUS, without forking. 22238as_fn_set_status () 22239{ 22240 return $1 22241} # as_fn_set_status 22242 22243# as_fn_exit STATUS 22244# ----------------- 22245# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22246as_fn_exit () 22247{ 22248 set +e 22249 as_fn_set_status $1 22250 exit $1 22251} # as_fn_exit 22252 22253# as_fn_unset VAR 22254# --------------- 22255# Portably unset VAR. 22256as_fn_unset () 22257{ 22258 { eval $1=; unset $1;} 22259} 22260as_unset=as_fn_unset 22261# as_fn_append VAR VALUE 22262# ---------------------- 22263# Append the text in VALUE to the end of the definition contained in VAR. Take 22264# advantage of any shell optimizations that allow amortized linear growth over 22265# repeated appends, instead of the typical quadratic growth present in naive 22266# implementations. 22267if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22268 eval 'as_fn_append () 22269 { 22270 eval $1+=\$2 22271 }' 22272else 22273 as_fn_append () 22274 { 22275 eval $1=\$$1\$2 22276 } 22277fi # as_fn_append 22278 22279# as_fn_arith ARG... 22280# ------------------ 22281# Perform arithmetic evaluation on the ARGs, and store the result in the 22282# global $as_val. Take advantage of shells that can avoid forks. The arguments 22283# must be portable across $(()) and expr. 22284if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22285 eval 'as_fn_arith () 22286 { 22287 as_val=$(( $* )) 22288 }' 22289else 22290 as_fn_arith () 22291 { 22292 as_val=`expr "$@" || test $? -eq 1` 22293 } 22294fi # as_fn_arith 22295 22296 22297if expr a : '\(a\)' >/dev/null 2>&1 && 22298 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22299 as_expr=expr 22300else 22301 as_expr=false 22302fi 22303 22304if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22305 as_basename=basename 22306else 22307 as_basename=false 22308fi 22309 22310if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22311 as_dirname=dirname 22312else 22313 as_dirname=false 22314fi 22315 22316as_me=`$as_basename -- "$0" || 22317$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22318 X"$0" : 'X\(//\)$' \| \ 22319 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22320$as_echo X/"$0" | 22321 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22322 s//\1/ 22323 q 22324 } 22325 /^X\/\(\/\/\)$/{ 22326 s//\1/ 22327 q 22328 } 22329 /^X\/\(\/\).*/{ 22330 s//\1/ 22331 q 22332 } 22333 s/.*/./; q'` 22334 22335# Avoid depending upon Character Ranges. 22336as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22337as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22338as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22339as_cr_digits='0123456789' 22340as_cr_alnum=$as_cr_Letters$as_cr_digits 22341 22342ECHO_C= ECHO_N= ECHO_T= 22343case `echo -n x` in #((((( 22344-n*) 22345 case `echo 'xy\c'` in 22346 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22347 xy) ECHO_C='\c';; 22348 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22349 ECHO_T=' ';; 22350 esac;; 22351*) 22352 ECHO_N='-n';; 22353esac 22354 22355rm -f conf$$ conf$$.exe conf$$.file 22356if test -d conf$$.dir; then 22357 rm -f conf$$.dir/conf$$.file 22358else 22359 rm -f conf$$.dir 22360 mkdir conf$$.dir 2>/dev/null 22361fi 22362if (echo >conf$$.file) 2>/dev/null; then 22363 if ln -s conf$$.file conf$$ 2>/dev/null; then 22364 as_ln_s='ln -s' 22365 # ... but there are two gotchas: 22366 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22367 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22368 # In both cases, we have to default to `cp -pR'. 22369 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22370 as_ln_s='cp -pR' 22371 elif ln conf$$.file conf$$ 2>/dev/null; then 22372 as_ln_s=ln 22373 else 22374 as_ln_s='cp -pR' 22375 fi 22376else 22377 as_ln_s='cp -pR' 22378fi 22379rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22380rmdir conf$$.dir 2>/dev/null 22381 22382 22383# as_fn_mkdir_p 22384# ------------- 22385# Create "$as_dir" as a directory, including parents if necessary. 22386as_fn_mkdir_p () 22387{ 22388 22389 case $as_dir in #( 22390 -*) as_dir=./$as_dir;; 22391 esac 22392 test -d "$as_dir" || eval $as_mkdir_p || { 22393 as_dirs= 22394 while :; do 22395 case $as_dir in #( 22396 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22397 *) as_qdir=$as_dir;; 22398 esac 22399 as_dirs="'$as_qdir' $as_dirs" 22400 as_dir=`$as_dirname -- "$as_dir" || 22401$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22402 X"$as_dir" : 'X\(//\)[^/]' \| \ 22403 X"$as_dir" : 'X\(//\)$' \| \ 22404 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22405$as_echo X"$as_dir" | 22406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22407 s//\1/ 22408 q 22409 } 22410 /^X\(\/\/\)[^/].*/{ 22411 s//\1/ 22412 q 22413 } 22414 /^X\(\/\/\)$/{ 22415 s//\1/ 22416 q 22417 } 22418 /^X\(\/\).*/{ 22419 s//\1/ 22420 q 22421 } 22422 s/.*/./; q'` 22423 test -d "$as_dir" && break 22424 done 22425 test -z "$as_dirs" || eval "mkdir $as_dirs" 22426 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22427 22428 22429} # as_fn_mkdir_p 22430if mkdir -p . 2>/dev/null; then 22431 as_mkdir_p='mkdir -p "$as_dir"' 22432else 22433 test -d ./-p && rmdir ./-p 22434 as_mkdir_p=false 22435fi 22436 22437 22438# as_fn_executable_p FILE 22439# ----------------------- 22440# Test if FILE is an executable regular file. 22441as_fn_executable_p () 22442{ 22443 test -f "$1" && test -x "$1" 22444} # as_fn_executable_p 22445as_test_x='test -x' 22446as_executable_p=as_fn_executable_p 22447 22448# Sed expression to map a string onto a valid CPP name. 22449as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 22450 22451# Sed expression to map a string onto a valid variable name. 22452as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 22453 22454 22455exec 6>&1 22456## ----------------------------------- ## 22457## Main body of $CONFIG_STATUS script. ## 22458## ----------------------------------- ## 22459_ASEOF 22460test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22461 22462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22463# Save the log message, to keep $0 and so on meaningful, and to 22464# report actual input values of CONFIG_FILES etc. instead of their 22465# values after options handling. 22466ac_log=" 22467This file was extended by spice-gtk $as_me 0.37, which was 22468generated by GNU Autoconf 2.69. Invocation command line was 22469 22470 CONFIG_FILES = $CONFIG_FILES 22471 CONFIG_HEADERS = $CONFIG_HEADERS 22472 CONFIG_LINKS = $CONFIG_LINKS 22473 CONFIG_COMMANDS = $CONFIG_COMMANDS 22474 $ $0 $@ 22475 22476on `(hostname || uname -n) 2>/dev/null | sed 1q` 22477" 22478 22479_ACEOF 22480 22481case $ac_config_files in *" 22482"*) set x $ac_config_files; shift; ac_config_files=$*;; 22483esac 22484 22485case $ac_config_headers in *" 22486"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22487esac 22488 22489 22490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22491# Files that config.status was made for. 22492config_files="$ac_config_files" 22493config_headers="$ac_config_headers" 22494config_commands="$ac_config_commands" 22495 22496_ACEOF 22497 22498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22499ac_cs_usage="\ 22500\`$as_me' instantiates files and other configuration actions 22501from templates according to the current configuration. Unless the files 22502and actions are specified as TAGs, all are instantiated by default. 22503 22504Usage: $0 [OPTION]... [TAG]... 22505 22506 -h, --help print this help, then exit 22507 -V, --version print version number and configuration settings, then exit 22508 --config print configuration, then exit 22509 -q, --quiet, --silent 22510 do not print progress messages 22511 -d, --debug don't remove temporary files 22512 --recheck update $as_me by reconfiguring in the same conditions 22513 --file=FILE[:TEMPLATE] 22514 instantiate the configuration file FILE 22515 --header=FILE[:TEMPLATE] 22516 instantiate the configuration header FILE 22517 22518Configuration files: 22519$config_files 22520 22521Configuration headers: 22522$config_headers 22523 22524Configuration commands: 22525$config_commands 22526 22527Report bugs to <spice-devel@lists.freedesktop.org>." 22528 22529_ACEOF 22530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22531ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 22532ac_cs_version="\\ 22533spice-gtk config.status 0.37 22534configured by $0, generated by GNU Autoconf 2.69, 22535 with options \\"\$ac_cs_config\\" 22536 22537Copyright (C) 2012 Free Software Foundation, Inc. 22538This config.status script is free software; the Free Software Foundation 22539gives unlimited permission to copy, distribute and modify it." 22540 22541ac_pwd='$ac_pwd' 22542srcdir='$srcdir' 22543INSTALL='$INSTALL' 22544MKDIR_P='$MKDIR_P' 22545AWK='$AWK' 22546test -n "\$AWK" || AWK=awk 22547_ACEOF 22548 22549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22550# The default lists apply if the user does not specify any file. 22551ac_need_defaults=: 22552while test $# != 0 22553do 22554 case $1 in 22555 --*=?*) 22556 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22557 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22558 ac_shift=: 22559 ;; 22560 --*=) 22561 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22562 ac_optarg= 22563 ac_shift=: 22564 ;; 22565 *) 22566 ac_option=$1 22567 ac_optarg=$2 22568 ac_shift=shift 22569 ;; 22570 esac 22571 22572 case $ac_option in 22573 # Handling of the options. 22574 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22575 ac_cs_recheck=: ;; 22576 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22577 $as_echo "$ac_cs_version"; exit ;; 22578 --config | --confi | --conf | --con | --co | --c ) 22579 $as_echo "$ac_cs_config"; exit ;; 22580 --debug | --debu | --deb | --de | --d | -d ) 22581 debug=: ;; 22582 --file | --fil | --fi | --f ) 22583 $ac_shift 22584 case $ac_optarg in 22585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22586 '') as_fn_error $? "missing file argument" ;; 22587 esac 22588 as_fn_append CONFIG_FILES " '$ac_optarg'" 22589 ac_need_defaults=false;; 22590 --header | --heade | --head | --hea ) 22591 $ac_shift 22592 case $ac_optarg in 22593 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22594 esac 22595 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22596 ac_need_defaults=false;; 22597 --he | --h) 22598 # Conflict between --help and --header 22599 as_fn_error $? "ambiguous option: \`$1' 22600Try \`$0 --help' for more information.";; 22601 --help | --hel | -h ) 22602 $as_echo "$ac_cs_usage"; exit ;; 22603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22604 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22605 ac_cs_silent=: ;; 22606 22607 # This is an error. 22608 -*) as_fn_error $? "unrecognized option: \`$1' 22609Try \`$0 --help' for more information." ;; 22610 22611 *) as_fn_append ac_config_targets " $1" 22612 ac_need_defaults=false ;; 22613 22614 esac 22615 shift 22616done 22617 22618ac_configure_extra_args= 22619 22620if $ac_cs_silent; then 22621 exec 6>/dev/null 22622 ac_configure_extra_args="$ac_configure_extra_args --silent" 22623fi 22624 22625_ACEOF 22626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22627if \$ac_cs_recheck; then 22628 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22629 shift 22630 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 22631 CONFIG_SHELL='$SHELL' 22632 export CONFIG_SHELL 22633 exec "\$@" 22634fi 22635 22636_ACEOF 22637cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22638exec 5>>config.log 22639{ 22640 echo 22641 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22642## Running $as_me. ## 22643_ASBOX 22644 $as_echo "$ac_log" 22645} >&5 22646 22647_ACEOF 22648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22649# 22650# INIT-COMMANDS 22651# 22652AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22653 22654 22655# The HP-UX ksh and POSIX shell print the target directory to stdout 22656# if CDPATH is set. 22657(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22658 22659sed_quote_subst='$sed_quote_subst' 22660double_quote_subst='$double_quote_subst' 22661delay_variable_subst='$delay_variable_subst' 22662macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22663macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22664enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22665AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 22666DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22667OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22668enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22669pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22670enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22671shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22672SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22673ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22674PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22675host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22676host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22677host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22678build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22679build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22680build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22681SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22682Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22683GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22684EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22685FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22686LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22687NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22688LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22689max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22690ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22691exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22692lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22693lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22694lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22695lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22696lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22697reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22698reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22699deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22700file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22701file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22702want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22703sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22704AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22705AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22706archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22707STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22708RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22709old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22710old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22711old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22712lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22713CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22714CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22715compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22716GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22717lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22718lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22719lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22720lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22721lt_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"`' 22722lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22723nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22724lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22725lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22726objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22727MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22728lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22729lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22730lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22731lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22732lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22733need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22734MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22735DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22736NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22737LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22738OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22739OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22740libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22741shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22742extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22743archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22744enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22745export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22746whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22747compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22748old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22749old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22750archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22751archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22752module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22753module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22754with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22755allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22756no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22757hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22758hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22759hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22760hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22761hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22762hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22763hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22764inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22765link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22766always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22767export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22768exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22769include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22770prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22771postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22772file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22773variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22774need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22775need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22776version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22777runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22778shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22779shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22780libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22781library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22782soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22783install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22784postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22785postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22786finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22787finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22788hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22789sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22790configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22791configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22792hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22793enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22794enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22795enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22796old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22797striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22798 22799LTCC='$LTCC' 22800LTCFLAGS='$LTCFLAGS' 22801compiler='$compiler_DEFAULT' 22802 22803# A function that is used when there is no print builtin or printf. 22804func_fallback_echo () 22805{ 22806 eval 'cat <<_LTECHO_EOF 22807\$1 22808_LTECHO_EOF' 22809} 22810 22811# Quote evaled strings. 22812for var in AS \ 22813DLLTOOL \ 22814OBJDUMP \ 22815SHELL \ 22816ECHO \ 22817PATH_SEPARATOR \ 22818SED \ 22819GREP \ 22820EGREP \ 22821FGREP \ 22822LD \ 22823NM \ 22824LN_S \ 22825lt_SP2NL \ 22826lt_NL2SP \ 22827reload_flag \ 22828deplibs_check_method \ 22829file_magic_cmd \ 22830file_magic_glob \ 22831want_nocaseglob \ 22832sharedlib_from_linklib_cmd \ 22833AR \ 22834AR_FLAGS \ 22835archiver_list_spec \ 22836STRIP \ 22837RANLIB \ 22838CC \ 22839CFLAGS \ 22840compiler \ 22841lt_cv_sys_global_symbol_pipe \ 22842lt_cv_sys_global_symbol_to_cdecl \ 22843lt_cv_sys_global_symbol_to_import \ 22844lt_cv_sys_global_symbol_to_c_name_address \ 22845lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22846lt_cv_nm_interface \ 22847nm_file_list_spec \ 22848lt_cv_truncate_bin \ 22849lt_prog_compiler_no_builtin_flag \ 22850lt_prog_compiler_pic \ 22851lt_prog_compiler_wl \ 22852lt_prog_compiler_static \ 22853lt_cv_prog_compiler_c_o \ 22854need_locks \ 22855MANIFEST_TOOL \ 22856DSYMUTIL \ 22857NMEDIT \ 22858LIPO \ 22859OTOOL \ 22860OTOOL64 \ 22861shrext_cmds \ 22862export_dynamic_flag_spec \ 22863whole_archive_flag_spec \ 22864compiler_needs_object \ 22865with_gnu_ld \ 22866allow_undefined_flag \ 22867no_undefined_flag \ 22868hardcode_libdir_flag_spec \ 22869hardcode_libdir_separator \ 22870exclude_expsyms \ 22871include_expsyms \ 22872file_list_spec \ 22873variables_saved_for_relink \ 22874libname_spec \ 22875library_names_spec \ 22876soname_spec \ 22877install_override_mode \ 22878finish_eval \ 22879old_striplib \ 22880striplib; do 22881 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22882 *[\\\\\\\`\\"\\\$]*) 22883 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22884 ;; 22885 *) 22886 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22887 ;; 22888 esac 22889done 22890 22891# Double-quote double-evaled strings. 22892for var in reload_cmds \ 22893old_postinstall_cmds \ 22894old_postuninstall_cmds \ 22895old_archive_cmds \ 22896extract_expsyms_cmds \ 22897old_archive_from_new_cmds \ 22898old_archive_from_expsyms_cmds \ 22899archive_cmds \ 22900archive_expsym_cmds \ 22901module_cmds \ 22902module_expsym_cmds \ 22903export_symbols_cmds \ 22904prelink_cmds \ 22905postlink_cmds \ 22906postinstall_cmds \ 22907postuninstall_cmds \ 22908finish_cmds \ 22909sys_lib_search_path_spec \ 22910configure_time_dlsearch_path \ 22911configure_time_lt_sys_library_path; do 22912 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22913 *[\\\\\\\`\\"\\\$]*) 22914 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22915 ;; 22916 *) 22917 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22918 ;; 22919 esac 22920done 22921 22922ac_aux_dir='$ac_aux_dir' 22923 22924# See if we are running on zsh, and set the options that allow our 22925# commands through without removal of \ escapes INIT. 22926if test -n "\${ZSH_VERSION+set}"; then 22927 setopt NO_GLOB_SUBST 22928fi 22929 22930 22931 PACKAGE='$PACKAGE' 22932 VERSION='$VERSION' 22933 RM='$RM' 22934 ofile='$ofile' 22935 22936 22937 22938# Capture the value of obsolete ALL_LINGUAS because we need it to compute 22939 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 22940 # from automake < 1.5. 22941 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 22942 # Capture the value of LINGUAS because we need it to compute CATALOGS. 22943 LINGUAS="${LINGUAS-%UNSET%}" 22944 22945 22946_ACEOF 22947 22948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22949 22950# Handling of arguments. 22951for ac_config_target in $ac_config_targets 22952do 22953 case $ac_config_target in 22954 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 22955 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22956 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22957 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 22958 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22959 "spice-client-glib-2.0.pc") CONFIG_FILES="$CONFIG_FILES spice-client-glib-2.0.pc" ;; 22960 "spice-client-gtk-3.0.pc") CONFIG_FILES="$CONFIG_FILES spice-client-gtk-3.0.pc" ;; 22961 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; 22962 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 22963 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22964 "src/spice-version.h") CONFIG_FILES="$CONFIG_FILES src/spice-version.h" ;; 22965 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 22966 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22967 "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;; 22968 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22969 "vapi/Makefile") CONFIG_FILES="$CONFIG_FILES vapi/Makefile" ;; 22970 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 22971 22972 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22973 esac 22974done 22975 22976 22977# If the user did not use the arguments to specify the items to instantiate, 22978# then the envvar interface is used. Set only those that are not. 22979# We use the long form for the default assignment because of an extremely 22980# bizarre bug on SunOS 4.1.3. 22981if $ac_need_defaults; then 22982 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22983 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22984 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22985fi 22986 22987# Have a temporary directory for convenience. Make it in the build tree 22988# simply because there is no reason against having it here, and in addition, 22989# creating and moving files from /tmp can sometimes cause problems. 22990# Hook for its removal unless debugging. 22991# Note that there is a small window in which the directory will not be cleaned: 22992# after its creation but before its name has been assigned to `$tmp'. 22993$debug || 22994{ 22995 tmp= ac_tmp= 22996 trap 'exit_status=$? 22997 : "${ac_tmp:=$tmp}" 22998 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22999' 0 23000 trap 'as_fn_exit 1' 1 2 13 15 23001} 23002# Create a (secure) tmp directory for tmp files. 23003 23004{ 23005 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23006 test -d "$tmp" 23007} || 23008{ 23009 tmp=./conf$$-$RANDOM 23010 (umask 077 && mkdir "$tmp") 23011} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23012ac_tmp=$tmp 23013 23014# Set up the scripts for CONFIG_FILES section. 23015# No need to generate them if there are no CONFIG_FILES. 23016# This happens for instance with `./config.status config.h'. 23017if test -n "$CONFIG_FILES"; then 23018 23019 23020ac_cr=`echo X | tr X '\015'` 23021# On cygwin, bash can eat \r inside `` if the user requested igncr. 23022# But we know of no other shell where ac_cr would be empty at this 23023# point, so we can use a bashism as a fallback. 23024if test "x$ac_cr" = x; then 23025 eval ac_cr=\$\'\\r\' 23026fi 23027ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23028if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23029 ac_cs_awk_cr='\\r' 23030else 23031 ac_cs_awk_cr=$ac_cr 23032fi 23033 23034echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23035_ACEOF 23036 23037 23038{ 23039 echo "cat >conf$$subs.awk <<_ACEOF" && 23040 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23041 echo "_ACEOF" 23042} >conf$$subs.sh || 23043 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23044ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23045ac_delim='%!_!# ' 23046for ac_last_try in false false false false false :; do 23047 . ./conf$$subs.sh || 23048 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23049 23050 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23051 if test $ac_delim_n = $ac_delim_num; then 23052 break 23053 elif $ac_last_try; then 23054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23055 else 23056 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23057 fi 23058done 23059rm -f conf$$subs.sh 23060 23061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23062cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23063_ACEOF 23064sed -n ' 23065h 23066s/^/S["/; s/!.*/"]=/ 23067p 23068g 23069s/^[^!]*!// 23070:repl 23071t repl 23072s/'"$ac_delim"'$// 23073t delim 23074:nl 23075h 23076s/\(.\{148\}\)..*/\1/ 23077t more1 23078s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23079p 23080n 23081b repl 23082:more1 23083s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23084p 23085g 23086s/.\{148\}// 23087t nl 23088:delim 23089h 23090s/\(.\{148\}\)..*/\1/ 23091t more2 23092s/["\\]/\\&/g; s/^/"/; s/$/"/ 23093p 23094b 23095:more2 23096s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23097p 23098g 23099s/.\{148\}// 23100t delim 23101' <conf$$subs.awk | sed ' 23102/^[^""]/{ 23103 N 23104 s/\n// 23105} 23106' >>$CONFIG_STATUS || ac_write_fail=1 23107rm -f conf$$subs.awk 23108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23109_ACAWK 23110cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23111 for (key in S) S_is_set[key] = 1 23112 FS = "" 23113 23114} 23115{ 23116 line = $ 0 23117 nfields = split(line, field, "@") 23118 substed = 0 23119 len = length(field[1]) 23120 for (i = 2; i < nfields; i++) { 23121 key = field[i] 23122 keylen = length(key) 23123 if (S_is_set[key]) { 23124 value = S[key] 23125 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23126 len += length(value) + length(field[++i]) 23127 substed = 1 23128 } else 23129 len += 1 + keylen 23130 } 23131 23132 print line 23133} 23134 23135_ACAWK 23136_ACEOF 23137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23138if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23139 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23140else 23141 cat 23142fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23143 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23144_ACEOF 23145 23146# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23147# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23148# trailing colons and then remove the whole line if VPATH becomes empty 23149# (actually we leave an empty line to preserve line numbers). 23150if test "x$srcdir" = x.; then 23151 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23152h 23153s/// 23154s/^/:/ 23155s/[ ]*$/:/ 23156s/:\$(srcdir):/:/g 23157s/:\${srcdir}:/:/g 23158s/:@srcdir@:/:/g 23159s/^:*// 23160s/:*$// 23161x 23162s/\(=[ ]*\).*/\1/ 23163G 23164s/\n// 23165s/^[^=]*=[ ]*$// 23166}' 23167fi 23168 23169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23170fi # test -n "$CONFIG_FILES" 23171 23172# Set up the scripts for CONFIG_HEADERS section. 23173# No need to generate them if there are no CONFIG_HEADERS. 23174# This happens for instance with `./config.status Makefile'. 23175if test -n "$CONFIG_HEADERS"; then 23176cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23177BEGIN { 23178_ACEOF 23179 23180# Transform confdefs.h into an awk script `defines.awk', embedded as 23181# here-document in config.status, that substitutes the proper values into 23182# config.h.in to produce config.h. 23183 23184# Create a delimiter string that does not exist in confdefs.h, to ease 23185# handling of long lines. 23186ac_delim='%!_!# ' 23187for ac_last_try in false false :; do 23188 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23189 if test -z "$ac_tt"; then 23190 break 23191 elif $ac_last_try; then 23192 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23193 else 23194 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23195 fi 23196done 23197 23198# For the awk script, D is an array of macro values keyed by name, 23199# likewise P contains macro parameters if any. Preserve backslash 23200# newline sequences. 23201 23202ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23203sed -n ' 23204s/.\{148\}/&'"$ac_delim"'/g 23205t rset 23206:rset 23207s/^[ ]*#[ ]*define[ ][ ]*/ / 23208t def 23209d 23210:def 23211s/\\$// 23212t bsnl 23213s/["\\]/\\&/g 23214s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23215D["\1"]=" \3"/p 23216s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23217d 23218:bsnl 23219s/["\\]/\\&/g 23220s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23221D["\1"]=" \3\\\\\\n"\\/p 23222t cont 23223s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23224t cont 23225d 23226:cont 23227n 23228s/.\{148\}/&'"$ac_delim"'/g 23229t clear 23230:clear 23231s/\\$// 23232t bsnlc 23233s/["\\]/\\&/g; s/^/"/; s/$/"/p 23234d 23235:bsnlc 23236s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23237b cont 23238' <confdefs.h | sed ' 23239s/'"$ac_delim"'/"\\\ 23240"/g' >>$CONFIG_STATUS || ac_write_fail=1 23241 23242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23243 for (key in D) D_is_set[key] = 1 23244 FS = "" 23245} 23246/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23247 line = \$ 0 23248 split(line, arg, " ") 23249 if (arg[1] == "#") { 23250 defundef = arg[2] 23251 mac1 = arg[3] 23252 } else { 23253 defundef = substr(arg[1], 2) 23254 mac1 = arg[2] 23255 } 23256 split(mac1, mac2, "(") #) 23257 macro = mac2[1] 23258 prefix = substr(line, 1, index(line, defundef) - 1) 23259 if (D_is_set[macro]) { 23260 # Preserve the white space surrounding the "#". 23261 print prefix "define", macro P[macro] D[macro] 23262 next 23263 } else { 23264 # Replace #undef with comments. This is necessary, for example, 23265 # in the case of _POSIX_SOURCE, which is predefined and required 23266 # on some systems where configure will not decide to define it. 23267 if (defundef == "undef") { 23268 print "/*", prefix defundef, macro, "*/" 23269 next 23270 } 23271 } 23272} 23273{ print } 23274_ACAWK 23275_ACEOF 23276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23277 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23278fi # test -n "$CONFIG_HEADERS" 23279 23280 23281eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23282shift 23283for ac_tag 23284do 23285 case $ac_tag in 23286 :[FHLC]) ac_mode=$ac_tag; continue;; 23287 esac 23288 case $ac_mode$ac_tag in 23289 :[FHL]*:*);; 23290 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 23291 :[FH]-) ac_tag=-:-;; 23292 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23293 esac 23294 ac_save_IFS=$IFS 23295 IFS=: 23296 set x $ac_tag 23297 IFS=$ac_save_IFS 23298 shift 23299 ac_file=$1 23300 shift 23301 23302 case $ac_mode in 23303 :L) ac_source=$1;; 23304 :[FH]) 23305 ac_file_inputs= 23306 for ac_f 23307 do 23308 case $ac_f in 23309 -) ac_f="$ac_tmp/stdin";; 23310 *) # Look for the file first in the build tree, then in the source tree 23311 # (if the path is not absolute). The absolute path cannot be DOS-style, 23312 # because $ac_f cannot contain `:'. 23313 test -f "$ac_f" || 23314 case $ac_f in 23315 [\\/$]*) false;; 23316 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23317 esac || 23318 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 23319 esac 23320 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23321 as_fn_append ac_file_inputs " '$ac_f'" 23322 done 23323 23324 # Let's still pretend it is `configure' which instantiates (i.e., don't 23325 # use $as_me), people would be surprised to read: 23326 # /* config.h. Generated by config.status. */ 23327 configure_input='Generated from '` 23328 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23329 `' by configure.' 23330 if test x"$ac_file" != x-; then 23331 configure_input="$ac_file. $configure_input" 23332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23333$as_echo "$as_me: creating $ac_file" >&6;} 23334 fi 23335 # Neutralize special characters interpreted by sed in replacement strings. 23336 case $configure_input in #( 23337 *\&* | *\|* | *\\* ) 23338 ac_sed_conf_input=`$as_echo "$configure_input" | 23339 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23340 *) ac_sed_conf_input=$configure_input;; 23341 esac 23342 23343 case $ac_tag in 23344 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23346 esac 23347 ;; 23348 esac 23349 23350 ac_dir=`$as_dirname -- "$ac_file" || 23351$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23352 X"$ac_file" : 'X\(//\)[^/]' \| \ 23353 X"$ac_file" : 'X\(//\)$' \| \ 23354 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23355$as_echo X"$ac_file" | 23356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23357 s//\1/ 23358 q 23359 } 23360 /^X\(\/\/\)[^/].*/{ 23361 s//\1/ 23362 q 23363 } 23364 /^X\(\/\/\)$/{ 23365 s//\1/ 23366 q 23367 } 23368 /^X\(\/\).*/{ 23369 s//\1/ 23370 q 23371 } 23372 s/.*/./; q'` 23373 as_dir="$ac_dir"; as_fn_mkdir_p 23374 ac_builddir=. 23375 23376case "$ac_dir" in 23377.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23378*) 23379 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 23380 # A ".." for each directory in $ac_dir_suffix. 23381 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23382 case $ac_top_builddir_sub in 23383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23385 esac ;; 23386esac 23387ac_abs_top_builddir=$ac_pwd 23388ac_abs_builddir=$ac_pwd$ac_dir_suffix 23389# for backward compatibility: 23390ac_top_builddir=$ac_top_build_prefix 23391 23392case $srcdir in 23393 .) # We are building in place. 23394 ac_srcdir=. 23395 ac_top_srcdir=$ac_top_builddir_sub 23396 ac_abs_top_srcdir=$ac_pwd ;; 23397 [\\/]* | ?:[\\/]* ) # Absolute name. 23398 ac_srcdir=$srcdir$ac_dir_suffix; 23399 ac_top_srcdir=$srcdir 23400 ac_abs_top_srcdir=$srcdir ;; 23401 *) # Relative name. 23402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23403 ac_top_srcdir=$ac_top_build_prefix$srcdir 23404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23405esac 23406ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23407 23408 23409 case $ac_mode in 23410 :F) 23411 # 23412 # CONFIG_FILE 23413 # 23414 23415 case $INSTALL in 23416 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23417 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23418 esac 23419 ac_MKDIR_P=$MKDIR_P 23420 case $MKDIR_P in 23421 [\\/$]* | ?:[\\/]* ) ;; 23422 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23423 esac 23424_ACEOF 23425 23426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23427# If the template does not know about datarootdir, expand it. 23428# FIXME: This hack should be removed a few years after 2.60. 23429ac_datarootdir_hack=; ac_datarootdir_seen= 23430ac_sed_dataroot=' 23431/datarootdir/ { 23432 p 23433 q 23434} 23435/@datadir@/p 23436/@docdir@/p 23437/@infodir@/p 23438/@localedir@/p 23439/@mandir@/p' 23440case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23441*datarootdir*) ac_datarootdir_seen=yes;; 23442*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23444$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23445_ACEOF 23446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23447 ac_datarootdir_hack=' 23448 s&@datadir@&$datadir&g 23449 s&@docdir@&$docdir&g 23450 s&@infodir@&$infodir&g 23451 s&@localedir@&$localedir&g 23452 s&@mandir@&$mandir&g 23453 s&\\\${datarootdir}&$datarootdir&g' ;; 23454esac 23455_ACEOF 23456 23457# Neutralize VPATH when `$srcdir' = `.'. 23458# Shell code in configure.ac might set extrasub. 23459# FIXME: do we really want to maintain this feature? 23460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23461ac_sed_extra="$ac_vpsub 23462$extrasub 23463_ACEOF 23464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23465:t 23466/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23467s|@configure_input@|$ac_sed_conf_input|;t t 23468s&@top_builddir@&$ac_top_builddir_sub&;t t 23469s&@top_build_prefix@&$ac_top_build_prefix&;t t 23470s&@srcdir@&$ac_srcdir&;t t 23471s&@abs_srcdir@&$ac_abs_srcdir&;t t 23472s&@top_srcdir@&$ac_top_srcdir&;t t 23473s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23474s&@builddir@&$ac_builddir&;t t 23475s&@abs_builddir@&$ac_abs_builddir&;t t 23476s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23477s&@INSTALL@&$ac_INSTALL&;t t 23478s&@MKDIR_P@&$ac_MKDIR_P&;t t 23479$ac_datarootdir_hack 23480" 23481eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23482 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23483 23484test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23485 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23486 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23487 "$ac_tmp/out"`; test -z "$ac_out"; } && 23488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23489which seems to be undefined. Please make sure it is defined" >&5 23490$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 23491which seems to be undefined. Please make sure it is defined" >&2;} 23492 23493 rm -f "$ac_tmp/stdin" 23494 case $ac_file in 23495 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23496 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23497 esac \ 23498 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23499 ;; 23500 :H) 23501 # 23502 # CONFIG_HEADER 23503 # 23504 if test x"$ac_file" != x-; then 23505 { 23506 $as_echo "/* $configure_input */" \ 23507 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23508 } >"$ac_tmp/config.h" \ 23509 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23510 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23511 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23512$as_echo "$as_me: $ac_file is unchanged" >&6;} 23513 else 23514 rm -f "$ac_file" 23515 mv "$ac_tmp/config.h" "$ac_file" \ 23516 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23517 fi 23518 else 23519 $as_echo "/* $configure_input */" \ 23520 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23521 || as_fn_error $? "could not create -" "$LINENO" 5 23522 fi 23523# Compute "$ac_file"'s index in $config_headers. 23524_am_arg="$ac_file" 23525_am_stamp_count=1 23526for _am_header in $config_headers :; do 23527 case $_am_header in 23528 $_am_arg | $_am_arg:* ) 23529 break ;; 23530 * ) 23531 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23532 esac 23533done 23534echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23535$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23536 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23537 X"$_am_arg" : 'X\(//\)$' \| \ 23538 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23539$as_echo X"$_am_arg" | 23540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23541 s//\1/ 23542 q 23543 } 23544 /^X\(\/\/\)[^/].*/{ 23545 s//\1/ 23546 q 23547 } 23548 /^X\(\/\/\)$/{ 23549 s//\1/ 23550 q 23551 } 23552 /^X\(\/\).*/{ 23553 s//\1/ 23554 q 23555 } 23556 s/.*/./; q'`/stamp-h$_am_stamp_count 23557 ;; 23558 23559 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23560$as_echo "$as_me: executing $ac_file commands" >&6;} 23561 ;; 23562 esac 23563 23564 23565 case $ac_file$ac_mode in 23566 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23567 # Older Autoconf quotes --file arguments for eval, but not when files 23568 # are listed without --file. Let's play safe and only enable the eval 23569 # if we detect the quoting. 23570 # TODO: see whether this extra hack can be removed once we start 23571 # requiring Autoconf 2.70 or later. 23572 case $CONFIG_FILES in #( 23573 *\'*) : 23574 eval set x "$CONFIG_FILES" ;; #( 23575 *) : 23576 set x $CONFIG_FILES ;; #( 23577 *) : 23578 ;; 23579esac 23580 shift 23581 # Used to flag and report bootstrapping failures. 23582 am_rc=0 23583 for am_mf 23584 do 23585 # Strip MF so we end up with the name of the file. 23586 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 23587 # Check whether this is an Automake generated Makefile which includes 23588 # dependency-tracking related rules and includes. 23589 # Grep'ing the whole file directly is not great: AIX grep has a line 23590 # limit of 2048, but all sed's we know have understand at least 4000. 23591 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23592 || continue 23593 am_dirpart=`$as_dirname -- "$am_mf" || 23594$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23595 X"$am_mf" : 'X\(//\)[^/]' \| \ 23596 X"$am_mf" : 'X\(//\)$' \| \ 23597 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23598$as_echo X"$am_mf" | 23599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23600 s//\1/ 23601 q 23602 } 23603 /^X\(\/\/\)[^/].*/{ 23604 s//\1/ 23605 q 23606 } 23607 /^X\(\/\/\)$/{ 23608 s//\1/ 23609 q 23610 } 23611 /^X\(\/\).*/{ 23612 s//\1/ 23613 q 23614 } 23615 s/.*/./; q'` 23616 am_filepart=`$as_basename -- "$am_mf" || 23617$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23618 X"$am_mf" : 'X\(//\)$' \| \ 23619 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23620$as_echo X/"$am_mf" | 23621 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23622 s//\1/ 23623 q 23624 } 23625 /^X\/\(\/\/\)$/{ 23626 s//\1/ 23627 q 23628 } 23629 /^X\/\(\/\).*/{ 23630 s//\1/ 23631 q 23632 } 23633 s/.*/./; q'` 23634 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23635 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23636 | $MAKE -f - am--depfiles" >&5 23637 (cd "$am_dirpart" \ 23638 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23639 | $MAKE -f - am--depfiles) >&5 2>&5 23640 ac_status=$? 23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23642 (exit $ac_status); } || am_rc=$? 23643 done 23644 if test $am_rc -ne 0; then 23645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 23646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 23647as_fn_error $? "Something went wrong bootstrapping makefile fragments 23648 for automatic dependency tracking. Try re-running configure with the 23649 '--disable-dependency-tracking' option to at least be able to build 23650 the package (albeit without support for automatic dependency tracking). 23651See \`config.log' for more details" "$LINENO" 5; } 23652 fi 23653 { am_dirpart=; unset am_dirpart;} 23654 { am_filepart=; unset am_filepart;} 23655 { am_mf=; unset am_mf;} 23656 { am_rc=; unset am_rc;} 23657 rm -f conftest-deps.mk 23658} 23659 ;; 23660 "libtool":C) 23661 23662 # See if we are running on zsh, and set the options that allow our 23663 # commands through without removal of \ escapes. 23664 if test -n "${ZSH_VERSION+set}"; then 23665 setopt NO_GLOB_SUBST 23666 fi 23667 23668 cfgfile=${ofile}T 23669 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23670 $RM "$cfgfile" 23671 23672 cat <<_LT_EOF >> "$cfgfile" 23673#! $SHELL 23674# Generated automatically by $as_me ($PACKAGE) $VERSION 23675# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 23676# NOTE: Changes made to this file will be lost: look at ltmain.sh. 23677 23678# Provide generalized library-building support services. 23679# Written by Gordon Matzigkeit, 1996 23680 23681# Copyright (C) 2014 Free Software Foundation, Inc. 23682# This is free software; see the source for copying conditions. There is NO 23683# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23684 23685# GNU Libtool is free software; you can redistribute it and/or modify 23686# it under the terms of the GNU General Public License as published by 23687# the Free Software Foundation; either version 2 of of the License, or 23688# (at your option) any later version. 23689# 23690# As a special exception to the GNU General Public License, if you 23691# distribute this file as part of a program or library that is built 23692# using GNU Libtool, you may include this file under the same 23693# distribution terms that you use for the rest of that program. 23694# 23695# GNU Libtool is distributed in the hope that it will be useful, but 23696# WITHOUT ANY WARRANTY; without even the implied warranty of 23697# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23698# GNU General Public License for more details. 23699# 23700# You should have received a copy of the GNU General Public License 23701# along with this program. If not, see <http://www.gnu.org/licenses/>. 23702 23703 23704# The names of the tagged configurations supported by this script. 23705available_tags='' 23706 23707# Configured defaults for sys_lib_dlsearch_path munging. 23708: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23709 23710# ### BEGIN LIBTOOL CONFIG 23711 23712# Which release of libtool.m4 was used? 23713macro_version=$macro_version 23714macro_revision=$macro_revision 23715 23716# Whether or not to build static libraries. 23717build_old_libs=$enable_static 23718 23719# Assembler program. 23720AS=$lt_AS 23721 23722# DLL creation program. 23723DLLTOOL=$lt_DLLTOOL 23724 23725# Object dumper program. 23726OBJDUMP=$lt_OBJDUMP 23727 23728# Whether or not to build shared libraries. 23729build_libtool_libs=$enable_shared 23730 23731# What type of objects to build. 23732pic_mode=$pic_mode 23733 23734# Whether or not to optimize for fast installation. 23735fast_install=$enable_fast_install 23736 23737# Shared archive member basename,for filename based shared library versioning on AIX. 23738shared_archive_member_spec=$shared_archive_member_spec 23739 23740# Shell to use when invoking shell scripts. 23741SHELL=$lt_SHELL 23742 23743# An echo program that protects backslashes. 23744ECHO=$lt_ECHO 23745 23746# The PATH separator for the build system. 23747PATH_SEPARATOR=$lt_PATH_SEPARATOR 23748 23749# The host system. 23750host_alias=$host_alias 23751host=$host 23752host_os=$host_os 23753 23754# The build system. 23755build_alias=$build_alias 23756build=$build 23757build_os=$build_os 23758 23759# A sed program that does not truncate output. 23760SED=$lt_SED 23761 23762# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23763Xsed="\$SED -e 1s/^X//" 23764 23765# A grep program that handles long lines. 23766GREP=$lt_GREP 23767 23768# An ERE matcher. 23769EGREP=$lt_EGREP 23770 23771# A literal string matcher. 23772FGREP=$lt_FGREP 23773 23774# A BSD- or MS-compatible name lister. 23775NM=$lt_NM 23776 23777# Whether we need soft or hard links. 23778LN_S=$lt_LN_S 23779 23780# What is the maximum length of a command? 23781max_cmd_len=$max_cmd_len 23782 23783# Object file suffix (normally "o"). 23784objext=$ac_objext 23785 23786# Executable file suffix (normally ""). 23787exeext=$exeext 23788 23789# whether the shell understands "unset". 23790lt_unset=$lt_unset 23791 23792# turn spaces into newlines. 23793SP2NL=$lt_lt_SP2NL 23794 23795# turn newlines into spaces. 23796NL2SP=$lt_lt_NL2SP 23797 23798# convert \$build file names to \$host format. 23799to_host_file_cmd=$lt_cv_to_host_file_cmd 23800 23801# convert \$build files to toolchain format. 23802to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23803 23804# Method to check whether dependent libraries are shared objects. 23805deplibs_check_method=$lt_deplibs_check_method 23806 23807# Command to use when deplibs_check_method = "file_magic". 23808file_magic_cmd=$lt_file_magic_cmd 23809 23810# How to find potential files when deplibs_check_method = "file_magic". 23811file_magic_glob=$lt_file_magic_glob 23812 23813# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23814want_nocaseglob=$lt_want_nocaseglob 23815 23816# Command to associate shared and link libraries. 23817sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23818 23819# The archiver. 23820AR=$lt_AR 23821 23822# Flags to create an archive. 23823AR_FLAGS=$lt_AR_FLAGS 23824 23825# How to feed a file listing to the archiver. 23826archiver_list_spec=$lt_archiver_list_spec 23827 23828# A symbol stripping program. 23829STRIP=$lt_STRIP 23830 23831# Commands used to install an old-style archive. 23832RANLIB=$lt_RANLIB 23833old_postinstall_cmds=$lt_old_postinstall_cmds 23834old_postuninstall_cmds=$lt_old_postuninstall_cmds 23835 23836# Whether to use a lock for old archive extraction. 23837lock_old_archive_extraction=$lock_old_archive_extraction 23838 23839# A C compiler. 23840LTCC=$lt_CC 23841 23842# LTCC compiler flags. 23843LTCFLAGS=$lt_CFLAGS 23844 23845# Take the output of nm and produce a listing of raw symbols and C names. 23846global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23847 23848# Transform the output of nm in a proper C declaration. 23849global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23850 23851# Transform the output of nm into a list of symbols to manually relocate. 23852global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23853 23854# Transform the output of nm in a C name address pair. 23855global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23856 23857# Transform the output of nm in a C name address pair when lib prefix is needed. 23858global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23859 23860# The name lister interface. 23861nm_interface=$lt_lt_cv_nm_interface 23862 23863# Specify filename containing input files for \$NM. 23864nm_file_list_spec=$lt_nm_file_list_spec 23865 23866# The root where to search for dependent libraries,and where our libraries should be installed. 23867lt_sysroot=$lt_sysroot 23868 23869# Command to truncate a binary pipe. 23870lt_truncate_bin=$lt_lt_cv_truncate_bin 23871 23872# The name of the directory that contains temporary libtool files. 23873objdir=$objdir 23874 23875# Used to examine libraries when file_magic_cmd begins with "file". 23876MAGIC_CMD=$MAGIC_CMD 23877 23878# Must we lock files when doing compilation? 23879need_locks=$lt_need_locks 23880 23881# Manifest tool. 23882MANIFEST_TOOL=$lt_MANIFEST_TOOL 23883 23884# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23885DSYMUTIL=$lt_DSYMUTIL 23886 23887# Tool to change global to local symbols on Mac OS X. 23888NMEDIT=$lt_NMEDIT 23889 23890# Tool to manipulate fat objects and archives on Mac OS X. 23891LIPO=$lt_LIPO 23892 23893# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23894OTOOL=$lt_OTOOL 23895 23896# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23897OTOOL64=$lt_OTOOL64 23898 23899# Old archive suffix (normally "a"). 23900libext=$libext 23901 23902# Shared library suffix (normally ".so"). 23903shrext_cmds=$lt_shrext_cmds 23904 23905# The commands to extract the exported symbol list from a shared archive. 23906extract_expsyms_cmds=$lt_extract_expsyms_cmds 23907 23908# Variables whose values should be saved in libtool wrapper scripts and 23909# restored at link time. 23910variables_saved_for_relink=$lt_variables_saved_for_relink 23911 23912# Do we need the "lib" prefix for modules? 23913need_lib_prefix=$need_lib_prefix 23914 23915# Do we need a version for libraries? 23916need_version=$need_version 23917 23918# Library versioning type. 23919version_type=$version_type 23920 23921# Shared library runtime path variable. 23922runpath_var=$runpath_var 23923 23924# Shared library path variable. 23925shlibpath_var=$shlibpath_var 23926 23927# Is shlibpath searched before the hard-coded library search path? 23928shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23929 23930# Format of library name prefix. 23931libname_spec=$lt_libname_spec 23932 23933# List of archive names. First name is the real one, the rest are links. 23934# The last name is the one that the linker finds with -lNAME 23935library_names_spec=$lt_library_names_spec 23936 23937# The coded name of the library, if different from the real name. 23938soname_spec=$lt_soname_spec 23939 23940# Permission mode override for installation of shared libraries. 23941install_override_mode=$lt_install_override_mode 23942 23943# Command to use after installation of a shared archive. 23944postinstall_cmds=$lt_postinstall_cmds 23945 23946# Command to use after uninstallation of a shared archive. 23947postuninstall_cmds=$lt_postuninstall_cmds 23948 23949# Commands used to finish a libtool library installation in a directory. 23950finish_cmds=$lt_finish_cmds 23951 23952# As "finish_cmds", except a single script fragment to be evaled but 23953# not shown. 23954finish_eval=$lt_finish_eval 23955 23956# Whether we should hardcode library paths into libraries. 23957hardcode_into_libs=$hardcode_into_libs 23958 23959# Compile-time system search path for libraries. 23960sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23961 23962# Detected run-time system search path for libraries. 23963sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23964 23965# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23966configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23967 23968# Whether dlopen is supported. 23969dlopen_support=$enable_dlopen 23970 23971# Whether dlopen of programs is supported. 23972dlopen_self=$enable_dlopen_self 23973 23974# Whether dlopen of statically linked programs is supported. 23975dlopen_self_static=$enable_dlopen_self_static 23976 23977# Commands to strip libraries. 23978old_striplib=$lt_old_striplib 23979striplib=$lt_striplib 23980 23981 23982# The linker used to build libraries. 23983LD=$lt_LD 23984 23985# How to create reloadable object files. 23986reload_flag=$lt_reload_flag 23987reload_cmds=$lt_reload_cmds 23988 23989# Commands used to build an old-style archive. 23990old_archive_cmds=$lt_old_archive_cmds 23991 23992# A language specific compiler. 23993CC=$lt_compiler 23994 23995# Is the compiler the GNU compiler? 23996with_gcc=$GCC 23997 23998# Compiler flag to turn off builtin functions. 23999no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24000 24001# Additional compiler flags for building library objects. 24002pic_flag=$lt_lt_prog_compiler_pic 24003 24004# How to pass a linker flag through the compiler. 24005wl=$lt_lt_prog_compiler_wl 24006 24007# Compiler flag to prevent dynamic linking. 24008link_static_flag=$lt_lt_prog_compiler_static 24009 24010# Does compiler simultaneously support -c and -o options? 24011compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24012 24013# Whether or not to add -lc for building shared libraries. 24014build_libtool_need_lc=$archive_cmds_need_lc 24015 24016# Whether or not to disallow shared libs when runtime libs are static. 24017allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24018 24019# Compiler flag to allow reflexive dlopens. 24020export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24021 24022# Compiler flag to generate shared objects directly from archives. 24023whole_archive_flag_spec=$lt_whole_archive_flag_spec 24024 24025# Whether the compiler copes with passing no objects directly. 24026compiler_needs_object=$lt_compiler_needs_object 24027 24028# Create an old-style archive from a shared archive. 24029old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24030 24031# Create a temporary old-style archive to link instead of a shared archive. 24032old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24033 24034# Commands used to build a shared archive. 24035archive_cmds=$lt_archive_cmds 24036archive_expsym_cmds=$lt_archive_expsym_cmds 24037 24038# Commands used to build a loadable module if different from building 24039# a shared archive. 24040module_cmds=$lt_module_cmds 24041module_expsym_cmds=$lt_module_expsym_cmds 24042 24043# Whether we are building with GNU ld or not. 24044with_gnu_ld=$lt_with_gnu_ld 24045 24046# Flag that allows shared libraries with undefined symbols to be built. 24047allow_undefined_flag=$lt_allow_undefined_flag 24048 24049# Flag that enforces no undefined symbols. 24050no_undefined_flag=$lt_no_undefined_flag 24051 24052# Flag to hardcode \$libdir into a binary during linking. 24053# This must work even if \$libdir does not exist 24054hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24055 24056# Whether we need a single "-rpath" flag with a separated argument. 24057hardcode_libdir_separator=$lt_hardcode_libdir_separator 24058 24059# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24060# DIR into the resulting binary. 24061hardcode_direct=$hardcode_direct 24062 24063# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24064# DIR into the resulting binary and the resulting library dependency is 24065# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24066# library is relocated. 24067hardcode_direct_absolute=$hardcode_direct_absolute 24068 24069# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24070# into the resulting binary. 24071hardcode_minus_L=$hardcode_minus_L 24072 24073# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24074# into the resulting binary. 24075hardcode_shlibpath_var=$hardcode_shlibpath_var 24076 24077# Set to "yes" if building a shared library automatically hardcodes DIR 24078# into the library and all subsequent libraries and executables linked 24079# against it. 24080hardcode_automatic=$hardcode_automatic 24081 24082# Set to yes if linker adds runtime paths of dependent libraries 24083# to runtime path list. 24084inherit_rpath=$inherit_rpath 24085 24086# Whether libtool must link a program against all its dependency libraries. 24087link_all_deplibs=$link_all_deplibs 24088 24089# Set to "yes" if exported symbols are required. 24090always_export_symbols=$always_export_symbols 24091 24092# The commands to list exported symbols. 24093export_symbols_cmds=$lt_export_symbols_cmds 24094 24095# Symbols that should not be listed in the preloaded symbols. 24096exclude_expsyms=$lt_exclude_expsyms 24097 24098# Symbols that must always be exported. 24099include_expsyms=$lt_include_expsyms 24100 24101# Commands necessary for linking programs (against libraries) with templates. 24102prelink_cmds=$lt_prelink_cmds 24103 24104# Commands necessary for finishing linking programs. 24105postlink_cmds=$lt_postlink_cmds 24106 24107# Specify filename containing input files. 24108file_list_spec=$lt_file_list_spec 24109 24110# How to hardcode a shared library path into an executable. 24111hardcode_action=$hardcode_action 24112 24113# ### END LIBTOOL CONFIG 24114 24115_LT_EOF 24116 24117 cat <<'_LT_EOF' >> "$cfgfile" 24118 24119# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24120 24121# func_munge_path_list VARIABLE PATH 24122# ----------------------------------- 24123# VARIABLE is name of variable containing _space_ separated list of 24124# directories to be munged by the contents of PATH, which is string 24125# having a format: 24126# "DIR[:DIR]:" 24127# string "DIR[ DIR]" will be prepended to VARIABLE 24128# ":DIR[:DIR]" 24129# string "DIR[ DIR]" will be appended to VARIABLE 24130# "DIRP[:DIRP]::[DIRA:]DIRA" 24131# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24132# "DIRA[ DIRA]" will be appended to VARIABLE 24133# "DIR[:DIR]" 24134# VARIABLE will be replaced by "DIR[ DIR]" 24135func_munge_path_list () 24136{ 24137 case x$2 in 24138 x) 24139 ;; 24140 *:) 24141 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24142 ;; 24143 x:*) 24144 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24145 ;; 24146 *::*) 24147 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24148 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24149 ;; 24150 *) 24151 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24152 ;; 24153 esac 24154} 24155 24156 24157# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24158func_cc_basename () 24159{ 24160 for cc_temp in $*""; do 24161 case $cc_temp in 24162 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24163 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24164 \-*) ;; 24165 *) break;; 24166 esac 24167 done 24168 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24169} 24170 24171 24172# ### END FUNCTIONS SHARED WITH CONFIGURE 24173 24174_LT_EOF 24175 24176 case $host_os in 24177 aix3*) 24178 cat <<\_LT_EOF >> "$cfgfile" 24179# AIX sometimes has problems with the GCC collect2 program. For some 24180# reason, if we set the COLLECT_NAMES environment variable, the problems 24181# vanish in a puff of smoke. 24182if test set != "${COLLECT_NAMES+set}"; then 24183 COLLECT_NAMES= 24184 export COLLECT_NAMES 24185fi 24186_LT_EOF 24187 ;; 24188 esac 24189 24190 24191ltmain=$ac_aux_dir/ltmain.sh 24192 24193 24194 # We use sed instead of cat because bash on DJGPP gets confused if 24195 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24196 # text mode, it properly converts lines to CR/LF. This bash problem 24197 # is reportedly fixed, but why not run on old versions too? 24198 sed '$q' "$ltmain" >> "$cfgfile" \ 24199 || (rm -f "$cfgfile"; exit 1) 24200 24201 mv -f "$cfgfile" "$ofile" || 24202 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24203 chmod +x "$ofile" 24204 24205 ;; 24206 "po-directories":C) 24207 for ac_file in $CONFIG_FILES; do 24208 # Support "outfile[:infile[:infile...]]" 24209 case "$ac_file" in 24210 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 24211 esac 24212 # PO directories have a Makefile.in generated from Makefile.in.in. 24213 case "$ac_file" in */Makefile.in) 24214 # Adjust a relative srcdir. 24215 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 24216 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 24217 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 24218 # In autoconf-2.13 it is called $ac_given_srcdir. 24219 # In autoconf-2.50 it is called $srcdir. 24220 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 24221 case "$ac_given_srcdir" in 24222 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 24223 /*) top_srcdir="$ac_given_srcdir" ;; 24224 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 24225 esac 24226 # Treat a directory as a PO directory if and only if it has a 24227 # POTFILES.in file. This allows packages to have multiple PO 24228 # directories under different names or in different locations. 24229 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 24230 rm -f "$ac_dir/POTFILES" 24231 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 24232 gt_tab=`printf '\t'` 24233 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 24234 POMAKEFILEDEPS="POTFILES.in" 24235 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 24236 # on $ac_dir but don't depend on user-specified configuration 24237 # parameters. 24238 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 24239 # The LINGUAS file contains the set of available languages. 24240 if test -n "$OBSOLETE_ALL_LINGUAS"; then 24241 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 24242 fi 24243 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 24244 # Hide the ALL_LINGUAS assignment from automake < 1.5. 24245 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 24246 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 24247 else 24248 # The set of available languages was given in configure.in. 24249 # Hide the ALL_LINGUAS assignment from automake < 1.5. 24250 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 24251 fi 24252 # Compute POFILES 24253 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 24254 # Compute UPDATEPOFILES 24255 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 24256 # Compute DUMMYPOFILES 24257 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 24258 # Compute GMOFILES 24259 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 24260 case "$ac_given_srcdir" in 24261 .) srcdirpre= ;; 24262 *) srcdirpre='$(srcdir)/' ;; 24263 esac 24264 POFILES= 24265 UPDATEPOFILES= 24266 DUMMYPOFILES= 24267 GMOFILES= 24268 for lang in $ALL_LINGUAS; do 24269 POFILES="$POFILES $srcdirpre$lang.po" 24270 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 24271 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 24272 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 24273 done 24274 # CATALOGS depends on both $ac_dir and the user's LINGUAS 24275 # environment variable. 24276 INST_LINGUAS= 24277 if test -n "$ALL_LINGUAS"; then 24278 for presentlang in $ALL_LINGUAS; do 24279 useit=no 24280 if test "%UNSET%" != "$LINGUAS"; then 24281 desiredlanguages="$LINGUAS" 24282 else 24283 desiredlanguages="$ALL_LINGUAS" 24284 fi 24285 for desiredlang in $desiredlanguages; do 24286 # Use the presentlang catalog if desiredlang is 24287 # a. equal to presentlang, or 24288 # b. a variant of presentlang (because in this case, 24289 # presentlang can be used as a fallback for messages 24290 # which are not translated in the desiredlang catalog). 24291 case "$desiredlang" in 24292 "$presentlang"*) useit=yes;; 24293 esac 24294 done 24295 if test $useit = yes; then 24296 INST_LINGUAS="$INST_LINGUAS $presentlang" 24297 fi 24298 done 24299 fi 24300 CATALOGS= 24301 if test -n "$INST_LINGUAS"; then 24302 for lang in $INST_LINGUAS; do 24303 CATALOGS="$CATALOGS $lang.gmo" 24304 done 24305 fi 24306 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 24307 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 24308 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 24309 if test -f "$f"; then 24310 case "$f" in 24311 *.orig | *.bak | *~) ;; 24312 *) cat "$f" >> "$ac_dir/Makefile" ;; 24313 esac 24314 fi 24315 done 24316 fi 24317 ;; 24318 esac 24319 done ;; 24320 24321 esac 24322done # for ac_tag 24323 24324 24325as_fn_exit 0 24326_ACEOF 24327ac_clean_files=$ac_clean_files_save 24328 24329test $ac_write_fail = 0 || 24330 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24331 24332 24333# configure is writing to config.log, and then calls config.status. 24334# config.status does its own redirection, appending to config.log. 24335# Unfortunately, on DOS this fails, as config.log is still kept open 24336# by configure, so config.status won't be able to write to it; its 24337# output is simply discarded. So we exec the FD to /dev/null, 24338# effectively closing config.log, so it can be properly (re)opened and 24339# appended to by config.status. When coming back to configure, we 24340# need to make the FD available again. 24341if test "$no_create" != yes; then 24342 ac_cs_success=: 24343 ac_config_status_args= 24344 test "$silent" = yes && 24345 ac_config_status_args="$ac_config_status_args --quiet" 24346 exec 5>/dev/null 24347 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24348 exec 5>>config.log 24349 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24350 # would make configure fail if this is the last instruction. 24351 $ac_cs_success || as_fn_exit 1 24352fi 24353 24354# 24355# CONFIG_SUBDIRS section. 24356# 24357if test "$no_recursion" != yes; then 24358 24359 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 24360 # so they do not pile up. 24361 ac_sub_configure_args= 24362 ac_prev= 24363 eval "set x $ac_configure_args" 24364 shift 24365 for ac_arg 24366 do 24367 if test -n "$ac_prev"; then 24368 ac_prev= 24369 continue 24370 fi 24371 case $ac_arg in 24372 -cache-file | --cache-file | --cache-fil | --cache-fi \ 24373 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 24374 ac_prev=cache_file ;; 24375 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 24376 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 24377 | --c=*) 24378 ;; 24379 --config-cache | -C) 24380 ;; 24381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 24382 ac_prev=srcdir ;; 24383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 24384 ;; 24385 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 24386 ac_prev=prefix ;; 24387 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 24388 ;; 24389 --disable-option-checking) 24390 ;; 24391 *) 24392 case $ac_arg in 24393 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 24394 esac 24395 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 24396 esac 24397 done 24398 24399 # Always prepend --prefix to ensure using the same prefix 24400 # in subdir configurations. 24401 ac_arg="--prefix=$prefix" 24402 case $ac_arg in 24403 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 24404 esac 24405 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 24406 24407 # Pass --silent 24408 if test "$silent" = yes; then 24409 ac_sub_configure_args="--silent $ac_sub_configure_args" 24410 fi 24411 24412 # Always prepend --disable-option-checking to silence warnings, since 24413 # different subdirs can have different --enable and --with options. 24414 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 24415 24416 ac_popdir=`pwd` 24417 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 24418 24419 # Do not complain, so a configure script can configure whichever 24420 # parts of a large source tree are present. 24421 test -d "$srcdir/$ac_dir" || continue 24422 24423 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 24424 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 24425 $as_echo "$ac_msg" >&6 24426 as_dir="$ac_dir"; as_fn_mkdir_p 24427 ac_builddir=. 24428 24429case "$ac_dir" in 24430.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24431*) 24432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 24433 # A ".." for each directory in $ac_dir_suffix. 24434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24435 case $ac_top_builddir_sub in 24436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24438 esac ;; 24439esac 24440ac_abs_top_builddir=$ac_pwd 24441ac_abs_builddir=$ac_pwd$ac_dir_suffix 24442# for backward compatibility: 24443ac_top_builddir=$ac_top_build_prefix 24444 24445case $srcdir in 24446 .) # We are building in place. 24447 ac_srcdir=. 24448 ac_top_srcdir=$ac_top_builddir_sub 24449 ac_abs_top_srcdir=$ac_pwd ;; 24450 [\\/]* | ?:[\\/]* ) # Absolute name. 24451 ac_srcdir=$srcdir$ac_dir_suffix; 24452 ac_top_srcdir=$srcdir 24453 ac_abs_top_srcdir=$srcdir ;; 24454 *) # Relative name. 24455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24456 ac_top_srcdir=$ac_top_build_prefix$srcdir 24457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24458esac 24459ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24460 24461 24462 cd "$ac_dir" 24463 24464 # Check for guested configure; otherwise get Cygnus style configure. 24465 if test -f "$ac_srcdir/configure.gnu"; then 24466 ac_sub_configure=$ac_srcdir/configure.gnu 24467 elif test -f "$ac_srcdir/configure"; then 24468 ac_sub_configure=$ac_srcdir/configure 24469 elif test -f "$ac_srcdir/configure.in"; then 24470 # This should be Cygnus configure. 24471 ac_sub_configure=$ac_aux_dir/configure 24472 else 24473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 24474$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 24475 ac_sub_configure= 24476 fi 24477 24478 # The recursion is here. 24479 if test -n "$ac_sub_configure"; then 24480 # Make the cache file name correct relative to the subdirectory. 24481 case $cache_file in 24482 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 24483 *) # Relative name. 24484 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 24485 esac 24486 24487 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 24488$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 24489 # The eval makes quoting arguments work. 24490 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 24491 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 24492 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 24493 fi 24494 24495 cd "$ac_popdir" 24496 done 24497fi 24498if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24500$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24501fi 24502 24503 24504{ $as_echo "$as_me:${as_lineno-$LINENO}: 24505 24506 Spice-Gtk $VERSION 24507 ============== 24508 24509 prefix: ${prefix} 24510 c compiler: ${CC} 24511 Target: ${red_target} 24512 24513 Gtk: ${with_gtk} 24514 Coroutine: ${with_coroutine} 24515 PulseAudio: ${enable_pulse} 24516 SASL support: ${have_sasl} 24517 Smartcard support: ${have_smartcard} 24518 USB redirection support: ${have_usbredir} ${with_usbredir_hotplug} 24519 WebDAV support: ${have_phodav} 24520 LZ4 support: ${have_lz4} 24521 24522 Now type 'make' to build $PACKAGE 24523 24524" >&5 24525$as_echo "$as_me: 24526 24527 Spice-Gtk $VERSION 24528 ============== 24529 24530 prefix: ${prefix} 24531 c compiler: ${CC} 24532 Target: ${red_target} 24533 24534 Gtk: ${with_gtk} 24535 Coroutine: ${with_coroutine} 24536 PulseAudio: ${enable_pulse} 24537 SASL support: ${have_sasl} 24538 Smartcard support: ${have_smartcard} 24539 USB redirection support: ${have_usbredir} ${with_usbredir_hotplug} 24540 WebDAV support: ${have_phodav} 24541 LZ4 support: ${have_lz4} 24542 24543 Now type 'make' to build $PACKAGE 24544 24545" >&6;} 24546 24547 ac_save_IFS="$IFS" 24548 IFS="|" 24549 for msg in $spice_warnings; do 24550 IFS="$ac_save_IFS" 24551 if ${msg:+false} :; then : 24552 24553else 24554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5 24555$as_echo "$as_me: WARNING: $msg" >&2;}; echo >&2 24556fi 24557 done 24558 IFS="$ac_save_IFS" 24559 24560 24561if test "x$enable_pulse" = "xyes"; then : 24562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PulseAudio backend is deprecated and will be removed in a future release" >&5 24563$as_echo "$as_me: WARNING: PulseAudio backend is deprecated and will be removed in a future release" >&2;} 24564fi 24565