1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for wayland 1.17.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/wayland/wayland/issues/>. 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 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: https://gitlab.freedesktop.org/wayland/wayland/issues/ 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570as_awk_strverscmp=' 571 # Use only awk features that work with 7th edition Unix awk (1978). 572 # My, what an old awk you have, Mr. Solaris! 573 END { 574 while (length(v1) && length(v2)) { 575 # Set d1 to be the next thing to compare from v1, and likewise for d2. 576 # Normally this is a single character, but if v1 and v2 contain digits, 577 # compare them as integers and fractions as strverscmp does. 578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 579 # Split v1 and v2 into their leading digit string components d1 and d2, 580 # and advance v1 and v2 past the leading digit strings. 581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 585 if (d1 ~ /^0/) { 586 if (d2 ~ /^0/) { 587 # Compare two fractions. 588 while (d1 ~ /^0/ && d2 ~ /^0/) { 589 d1 = substr(d1, 2); len1-- 590 d2 = substr(d2, 2); len2-- 591 } 592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 593 # The two components differ in length, and the common prefix 594 # contains only leading zeros. Consider the longer to be less. 595 d1 = -len1 596 d2 = -len2 597 } else { 598 # Otherwise, compare as strings. 599 d1 = "x" d1 600 d2 = "x" d2 601 } 602 } else { 603 # A fraction is less than an integer. 604 exit 1 605 } 606 } else { 607 if (d2 ~ /^0/) { 608 # An integer is greater than a fraction. 609 exit 2 610 } else { 611 # Compare two integers. 612 d1 += 0 613 d2 += 0 614 } 615 } 616 } else { 617 # The normal case, without worrying about digits. 618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 620 } 621 if (d1 < d2) exit 1 622 if (d1 > d2) exit 2 623 } 624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 625 # which mishandles some comparisons of empty strings to integers. 626 if (length(v2)) exit 1 627 if (length(v1)) exit 2 628 } 629' 630 631test -n "$DJDIR" || exec 7<&0 </dev/null 632exec 6>&1 633 634# Name of the host. 635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 636# so uname gets run too. 637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 638 639# 640# Initializations. 641# 642ac_default_prefix=/usr/local 643ac_clean_files= 644ac_config_libobj_dir=. 645LIBOBJS= 646cross_compiling=no 647subdirs= 648MFLAGS= 649MAKEFLAGS= 650 651# Identity of this package. 652PACKAGE_NAME='wayland' 653PACKAGE_TARNAME='wayland' 654PACKAGE_VERSION='1.17.0' 655PACKAGE_STRING='wayland 1.17.0' 656PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/wayland/wayland/issues/' 657PACKAGE_URL='https://wayland.freedesktop.org/' 658 659# Factoring default headers for most tests. 660ac_includes_default="\ 661#include <stdio.h> 662#ifdef HAVE_SYS_TYPES_H 663# include <sys/types.h> 664#endif 665#ifdef HAVE_SYS_STAT_H 666# include <sys/stat.h> 667#endif 668#ifdef STDC_HEADERS 669# include <stdlib.h> 670# include <stddef.h> 671#else 672# ifdef HAVE_STDLIB_H 673# include <stdlib.h> 674# endif 675#endif 676#ifdef HAVE_STRING_H 677# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 678# include <memory.h> 679# endif 680# include <string.h> 681#endif 682#ifdef HAVE_STRINGS_H 683# include <strings.h> 684#endif 685#ifdef HAVE_INTTYPES_H 686# include <inttypes.h> 687#endif 688#ifdef HAVE_STDINT_H 689# include <stdint.h> 690#endif 691#ifdef HAVE_UNISTD_H 692# include <unistd.h> 693#endif" 694 695ac_subst_vars='am__EXEEXT_FALSE 696am__EXEEXT_TRUE 697LTLIBOBJS 698LIBOBJS 699HAVE_XMLTO_FALSE 700HAVE_XMLTO_TRUE 701DOT 702XMLTO 703DOXYGEN 704BUILD_DOCS_FALSE 705BUILD_DOCS_TRUE 706MANPAGES_STYLESHEET 707HAVE_MANPAGES_STYLESHEET_FALSE 708HAVE_MANPAGES_STYLESHEET_TRUE 709HAVE_XSLTPROC_FALSE 710HAVE_XSLTPROC_TRUE 711XSLTPROC 712LIBXML_LIBS 713LIBXML_CFLAGS 714DTD_VALIDATION_FALSE 715DTD_VALIDATION_TRUE 716EXPAT_LIBS 717EXPAT_CFLAGS 718FFI_LIBS 719FFI_CFLAGS 720ICONDIR 721ENABLE_LIBRARIES_FALSE 722ENABLE_LIBRARIES_TRUE 723USE_HOST_SCANNER_FALSE 724USE_HOST_SCANNER_TRUE 725GCC_CFLAGS 726PKG_CONFIG_LIBDIR 727PKG_CONFIG_PATH 728PKG_CONFIG 729CXXCPP 730CPP 731LT_SYS_LIBRARY_PATH 732OTOOL64 733OTOOL 734LIPO 735NMEDIT 736DSYMUTIL 737MANIFEST_TOOL 738RANLIB 739ac_ct_AR 740AR 741DLLTOOL 742OBJDUMP 743LN_S 744LD 745FGREP 746EGREP 747SED 748host_os 749host_vendor 750host_cpu 751host 752build_os 753build_vendor 754build_cpu 755build 756LIBTOOL 757ENABLE_CPP_TEST_FALSE 758ENABLE_CPP_TEST_TRUE 759NM 760ac_ct_DUMPBIN 761DUMPBIN 762am__fastdepCCAS_FALSE 763am__fastdepCCAS_TRUE 764CCASDEPMODE 765CCASFLAGS 766CCAS 767GREP 768am__fastdepCXX_FALSE 769am__fastdepCXX_TRUE 770CXXDEPMODE 771ac_ct_CXX 772CXXFLAGS 773CXX 774am__fastdepCC_FALSE 775am__fastdepCC_TRUE 776CCDEPMODE 777am__nodep 778AMDEPBACKSLASH 779AMDEP_FALSE 780AMDEP_TRUE 781am__quote 782am__include 783DEPDIR 784OBJEXT 785EXEEXT 786ac_ct_CC 787CPPFLAGS 788LDFLAGS 789CFLAGS 790CC 791AM_BACKSLASH 792AM_DEFAULT_VERBOSITY 793AM_DEFAULT_V 794AM_V 795am__untar 796am__tar 797AMTAR 798am__leading_dot 799SET_MAKE 800AWK 801mkdir_p 802MKDIR_P 803INSTALL_STRIP_PROGRAM 804STRIP 805install_sh 806MAKEINFO 807AUTOHEADER 808AUTOMAKE 809AUTOCONF 810ACLOCAL 811VERSION 812PACKAGE 813CYGPATH_W 814am__isrc 815INSTALL_DATA 816INSTALL_SCRIPT 817INSTALL_PROGRAM 818WAYLAND_VERSION 819WAYLAND_VERSION_MICRO 820WAYLAND_VERSION_MINOR 821WAYLAND_VERSION_MAJOR 822target_alias 823host_alias 824build_alias 825LIBS 826ECHO_T 827ECHO_N 828ECHO_C 829DEFS 830mandir 831localedir 832libdir 833psdir 834pdfdir 835dvidir 836htmldir 837infodir 838docdir 839oldincludedir 840includedir 841localstatedir 842sharedstatedir 843sysconfdir 844datadir 845datarootdir 846libexecdir 847sbindir 848bindir 849program_transform_name 850prefix 851exec_prefix 852PACKAGE_URL 853PACKAGE_BUGREPORT 854PACKAGE_STRING 855PACKAGE_VERSION 856PACKAGE_TARNAME 857PACKAGE_NAME 858PATH_SEPARATOR 859SHELL' 860ac_subst_files='' 861ac_user_opts=' 862enable_option_checking 863enable_silent_rules 864enable_dependency_tracking 865enable_static 866enable_shared 867with_pic 868enable_fast_install 869with_aix_soname 870with_gnu_ld 871with_sysroot 872enable_libtool_lock 873enable_fatal_warnings 874enable_libraries 875with_host_scanner 876enable_documentation 877enable_dtd_validation 878with_icondir 879' 880 ac_precious_vars='build_alias 881host_alias 882target_alias 883CC 884CFLAGS 885LDFLAGS 886LIBS 887CPPFLAGS 888CXX 889CXXFLAGS 890CCC 891CCAS 892CCASFLAGS 893LT_SYS_LIBRARY_PATH 894CPP 895CXXCPP 896PKG_CONFIG 897PKG_CONFIG_PATH 898PKG_CONFIG_LIBDIR 899FFI_CFLAGS 900FFI_LIBS 901EXPAT_CFLAGS 902EXPAT_LIBS 903LIBXML_CFLAGS 904LIBXML_LIBS' 905 906 907# Initialize some variables set by options. 908ac_init_help= 909ac_init_version=false 910ac_unrecognized_opts= 911ac_unrecognized_sep= 912# The variables have the same names as the options, with 913# dashes changed to underlines. 914cache_file=/dev/null 915exec_prefix=NONE 916no_create= 917no_recursion= 918prefix=NONE 919program_prefix=NONE 920program_suffix=NONE 921program_transform_name=s,x,x, 922silent= 923site= 924srcdir= 925verbose= 926x_includes=NONE 927x_libraries=NONE 928 929# Installation directory options. 930# These are left unexpanded so users can "make install exec_prefix=/foo" 931# and all the variables that are supposed to be based on exec_prefix 932# by default will actually change. 933# Use braces instead of parens because sh, perl, etc. also accept them. 934# (The list follows the same order as the GNU Coding Standards.) 935bindir='${exec_prefix}/bin' 936sbindir='${exec_prefix}/sbin' 937libexecdir='${exec_prefix}/libexec' 938datarootdir='${prefix}/share' 939datadir='${datarootdir}' 940sysconfdir='${prefix}/etc' 941sharedstatedir='${prefix}/com' 942localstatedir='${prefix}/var' 943includedir='${prefix}/include' 944oldincludedir='/usr/include' 945docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 946infodir='${datarootdir}/info' 947htmldir='${docdir}' 948dvidir='${docdir}' 949pdfdir='${docdir}' 950psdir='${docdir}' 951libdir='${exec_prefix}/lib' 952localedir='${datarootdir}/locale' 953mandir='${datarootdir}/man' 954 955ac_prev= 956ac_dashdash= 957for ac_option 958do 959 # If the previous option needs an argument, assign it. 960 if test -n "$ac_prev"; then 961 eval $ac_prev=\$ac_option 962 ac_prev= 963 continue 964 fi 965 966 case $ac_option in 967 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 968 *=) ac_optarg= ;; 969 *) ac_optarg=yes ;; 970 esac 971 972 # Accept the important Cygnus configure options, so we can diagnose typos. 973 974 case $ac_dashdash$ac_option in 975 --) 976 ac_dashdash=yes ;; 977 978 -bindir | --bindir | --bindi | --bind | --bin | --bi) 979 ac_prev=bindir ;; 980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 981 bindir=$ac_optarg ;; 982 983 -build | --build | --buil | --bui | --bu) 984 ac_prev=build_alias ;; 985 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 986 build_alias=$ac_optarg ;; 987 988 -cache-file | --cache-file | --cache-fil | --cache-fi \ 989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 990 ac_prev=cache_file ;; 991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 993 cache_file=$ac_optarg ;; 994 995 --config-cache | -C) 996 cache_file=config.cache ;; 997 998 -datadir | --datadir | --datadi | --datad) 999 ac_prev=datadir ;; 1000 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1001 datadir=$ac_optarg ;; 1002 1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1004 | --dataroo | --dataro | --datar) 1005 ac_prev=datarootdir ;; 1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1008 datarootdir=$ac_optarg ;; 1009 1010 -disable-* | --disable-*) 1011 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1012 # Reject names that are not valid shell variable names. 1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1014 as_fn_error $? "invalid feature name: $ac_useropt" 1015 ac_useropt_orig=$ac_useropt 1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1017 case $ac_user_opts in 1018 *" 1019"enable_$ac_useropt" 1020"*) ;; 1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1022 ac_unrecognized_sep=', ';; 1023 esac 1024 eval enable_$ac_useropt=no ;; 1025 1026 -docdir | --docdir | --docdi | --doc | --do) 1027 ac_prev=docdir ;; 1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1029 docdir=$ac_optarg ;; 1030 1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1032 ac_prev=dvidir ;; 1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1034 dvidir=$ac_optarg ;; 1035 1036 -enable-* | --enable-*) 1037 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1038 # Reject names that are not valid shell variable names. 1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1040 as_fn_error $? "invalid feature name: $ac_useropt" 1041 ac_useropt_orig=$ac_useropt 1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1043 case $ac_user_opts in 1044 *" 1045"enable_$ac_useropt" 1046"*) ;; 1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1048 ac_unrecognized_sep=', ';; 1049 esac 1050 eval enable_$ac_useropt=\$ac_optarg ;; 1051 1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1054 | --exec | --exe | --ex) 1055 ac_prev=exec_prefix ;; 1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1058 | --exec=* | --exe=* | --ex=*) 1059 exec_prefix=$ac_optarg ;; 1060 1061 -gas | --gas | --ga | --g) 1062 # Obsolete; use --with-gas. 1063 with_gas=yes ;; 1064 1065 -help | --help | --hel | --he | -h) 1066 ac_init_help=long ;; 1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1068 ac_init_help=recursive ;; 1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1070 ac_init_help=short ;; 1071 1072 -host | --host | --hos | --ho) 1073 ac_prev=host_alias ;; 1074 -host=* | --host=* | --hos=* | --ho=*) 1075 host_alias=$ac_optarg ;; 1076 1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1078 ac_prev=htmldir ;; 1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1080 | --ht=*) 1081 htmldir=$ac_optarg ;; 1082 1083 -includedir | --includedir | --includedi | --included | --include \ 1084 | --includ | --inclu | --incl | --inc) 1085 ac_prev=includedir ;; 1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1087 | --includ=* | --inclu=* | --incl=* | --inc=*) 1088 includedir=$ac_optarg ;; 1089 1090 -infodir | --infodir | --infodi | --infod | --info | --inf) 1091 ac_prev=infodir ;; 1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1093 infodir=$ac_optarg ;; 1094 1095 -libdir | --libdir | --libdi | --libd) 1096 ac_prev=libdir ;; 1097 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1098 libdir=$ac_optarg ;; 1099 1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1101 | --libexe | --libex | --libe) 1102 ac_prev=libexecdir ;; 1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1104 | --libexe=* | --libex=* | --libe=*) 1105 libexecdir=$ac_optarg ;; 1106 1107 -localedir | --localedir | --localedi | --localed | --locale) 1108 ac_prev=localedir ;; 1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1110 localedir=$ac_optarg ;; 1111 1112 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1113 | --localstate | --localstat | --localsta | --localst | --locals) 1114 ac_prev=localstatedir ;; 1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1117 localstatedir=$ac_optarg ;; 1118 1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1120 ac_prev=mandir ;; 1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1122 mandir=$ac_optarg ;; 1123 1124 -nfp | --nfp | --nf) 1125 # Obsolete; use --without-fp. 1126 with_fp=no ;; 1127 1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1129 | --no-cr | --no-c | -n) 1130 no_create=yes ;; 1131 1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1134 no_recursion=yes ;; 1135 1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1138 | --oldin | --oldi | --old | --ol | --o) 1139 ac_prev=oldincludedir ;; 1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1143 oldincludedir=$ac_optarg ;; 1144 1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1146 ac_prev=prefix ;; 1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1148 prefix=$ac_optarg ;; 1149 1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1151 | --program-pre | --program-pr | --program-p) 1152 ac_prev=program_prefix ;; 1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1155 program_prefix=$ac_optarg ;; 1156 1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1158 | --program-suf | --program-su | --program-s) 1159 ac_prev=program_suffix ;; 1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1162 program_suffix=$ac_optarg ;; 1163 1164 -program-transform-name | --program-transform-name \ 1165 | --program-transform-nam | --program-transform-na \ 1166 | --program-transform-n | --program-transform- \ 1167 | --program-transform | --program-transfor \ 1168 | --program-transfo | --program-transf \ 1169 | --program-trans | --program-tran \ 1170 | --progr-tra | --program-tr | --program-t) 1171 ac_prev=program_transform_name ;; 1172 -program-transform-name=* | --program-transform-name=* \ 1173 | --program-transform-nam=* | --program-transform-na=* \ 1174 | --program-transform-n=* | --program-transform-=* \ 1175 | --program-transform=* | --program-transfor=* \ 1176 | --program-transfo=* | --program-transf=* \ 1177 | --program-trans=* | --program-tran=* \ 1178 | --progr-tra=* | --program-tr=* | --program-t=*) 1179 program_transform_name=$ac_optarg ;; 1180 1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1182 ac_prev=pdfdir ;; 1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1184 pdfdir=$ac_optarg ;; 1185 1186 -psdir | --psdir | --psdi | --psd | --ps) 1187 ac_prev=psdir ;; 1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1189 psdir=$ac_optarg ;; 1190 1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1192 | -silent | --silent | --silen | --sile | --sil) 1193 silent=yes ;; 1194 1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1196 ac_prev=sbindir ;; 1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1198 | --sbi=* | --sb=*) 1199 sbindir=$ac_optarg ;; 1200 1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1203 | --sharedst | --shareds | --shared | --share | --shar \ 1204 | --sha | --sh) 1205 ac_prev=sharedstatedir ;; 1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1209 | --sha=* | --sh=*) 1210 sharedstatedir=$ac_optarg ;; 1211 1212 -site | --site | --sit) 1213 ac_prev=site ;; 1214 -site=* | --site=* | --sit=*) 1215 site=$ac_optarg ;; 1216 1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1218 ac_prev=srcdir ;; 1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1220 srcdir=$ac_optarg ;; 1221 1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1223 | --syscon | --sysco | --sysc | --sys | --sy) 1224 ac_prev=sysconfdir ;; 1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1227 sysconfdir=$ac_optarg ;; 1228 1229 -target | --target | --targe | --targ | --tar | --ta | --t) 1230 ac_prev=target_alias ;; 1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1232 target_alias=$ac_optarg ;; 1233 1234 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1235 verbose=yes ;; 1236 1237 -version | --version | --versio | --versi | --vers | -V) 1238 ac_init_version=: ;; 1239 1240 -with-* | --with-*) 1241 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1242 # Reject names that are not valid shell variable names. 1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1244 as_fn_error $? "invalid package name: $ac_useropt" 1245 ac_useropt_orig=$ac_useropt 1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1247 case $ac_user_opts in 1248 *" 1249"with_$ac_useropt" 1250"*) ;; 1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1252 ac_unrecognized_sep=', ';; 1253 esac 1254 eval with_$ac_useropt=\$ac_optarg ;; 1255 1256 -without-* | --without-*) 1257 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1258 # Reject names that are not valid shell variable names. 1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1260 as_fn_error $? "invalid package name: $ac_useropt" 1261 ac_useropt_orig=$ac_useropt 1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1263 case $ac_user_opts in 1264 *" 1265"with_$ac_useropt" 1266"*) ;; 1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1268 ac_unrecognized_sep=', ';; 1269 esac 1270 eval with_$ac_useropt=no ;; 1271 1272 --x) 1273 # Obsolete; use --with-x. 1274 with_x=yes ;; 1275 1276 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1277 | --x-incl | --x-inc | --x-in | --x-i) 1278 ac_prev=x_includes ;; 1279 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1280 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1281 x_includes=$ac_optarg ;; 1282 1283 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1284 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1285 ac_prev=x_libraries ;; 1286 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1287 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1288 x_libraries=$ac_optarg ;; 1289 1290 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1291Try \`$0 --help' for more information" 1292 ;; 1293 1294 *=*) 1295 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1296 # Reject names that are not valid shell variable names. 1297 case $ac_envvar in #( 1298 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1299 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1300 esac 1301 eval $ac_envvar=\$ac_optarg 1302 export $ac_envvar ;; 1303 1304 *) 1305 # FIXME: should be removed in autoconf 3.0. 1306 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1308 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1309 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1310 ;; 1311 1312 esac 1313done 1314 1315if test -n "$ac_prev"; then 1316 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1317 as_fn_error $? "missing argument to $ac_option" 1318fi 1319 1320if test -n "$ac_unrecognized_opts"; then 1321 case $enable_option_checking in 1322 no) ;; 1323 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1325 esac 1326fi 1327 1328# Check all directory arguments for consistency. 1329for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1330 datadir sysconfdir sharedstatedir localstatedir includedir \ 1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1332 libdir localedir mandir 1333do 1334 eval ac_val=\$$ac_var 1335 # Remove trailing slashes. 1336 case $ac_val in 1337 */ ) 1338 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1339 eval $ac_var=\$ac_val;; 1340 esac 1341 # Be sure to have absolute directory names. 1342 case $ac_val in 1343 [\\/$]* | ?:[\\/]* ) continue;; 1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1345 esac 1346 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1347done 1348 1349# There might be people who depend on the old broken behavior: `$host' 1350# used to hold the argument of --host etc. 1351# FIXME: To remove some day. 1352build=$build_alias 1353host=$host_alias 1354target=$target_alias 1355 1356# FIXME: To remove some day. 1357if test "x$host_alias" != x; then 1358 if test "x$build_alias" = x; then 1359 cross_compiling=maybe 1360 elif test "x$build_alias" != "x$host_alias"; then 1361 cross_compiling=yes 1362 fi 1363fi 1364 1365ac_tool_prefix= 1366test -n "$host_alias" && ac_tool_prefix=$host_alias- 1367 1368test "$silent" = yes && exec 6>/dev/null 1369 1370 1371ac_pwd=`pwd` && test -n "$ac_pwd" && 1372ac_ls_di=`ls -di .` && 1373ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1374 as_fn_error $? "working directory cannot be determined" 1375test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1376 as_fn_error $? "pwd does not report name of working directory" 1377 1378 1379# Find the source files, if location was not specified. 1380if test -z "$srcdir"; then 1381 ac_srcdir_defaulted=yes 1382 # Try the directory containing this script, then the parent directory. 1383 ac_confdir=`$as_dirname -- "$as_myself" || 1384$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1385 X"$as_myself" : 'X\(//\)[^/]' \| \ 1386 X"$as_myself" : 'X\(//\)$' \| \ 1387 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1388$as_echo X"$as_myself" | 1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1390 s//\1/ 1391 q 1392 } 1393 /^X\(\/\/\)[^/].*/{ 1394 s//\1/ 1395 q 1396 } 1397 /^X\(\/\/\)$/{ 1398 s//\1/ 1399 q 1400 } 1401 /^X\(\/\).*/{ 1402 s//\1/ 1403 q 1404 } 1405 s/.*/./; q'` 1406 srcdir=$ac_confdir 1407 if test ! -r "$srcdir/$ac_unique_file"; then 1408 srcdir=.. 1409 fi 1410else 1411 ac_srcdir_defaulted=no 1412fi 1413if test ! -r "$srcdir/$ac_unique_file"; then 1414 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1415 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1416fi 1417ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1418ac_abs_confdir=`( 1419 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1420 pwd)` 1421# When building in place, set srcdir=. 1422if test "$ac_abs_confdir" = "$ac_pwd"; then 1423 srcdir=. 1424fi 1425# Remove unnecessary trailing slashes from srcdir. 1426# Double slashes in file names in object file debugging info 1427# mess up M-x gdb in Emacs. 1428case $srcdir in 1429*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1430esac 1431for ac_var in $ac_precious_vars; do 1432 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1433 eval ac_env_${ac_var}_value=\$${ac_var} 1434 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1435 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1436done 1437 1438# 1439# Report the --help message. 1440# 1441if test "$ac_init_help" = "long"; then 1442 # Omit some internal or obsolete options to make the list less imposing. 1443 # This message is too long to be a string in the A/UX 3.1 sh. 1444 cat <<_ACEOF 1445\`configure' configures wayland 1.17.0 to adapt to many kinds of systems. 1446 1447Usage: $0 [OPTION]... [VAR=VALUE]... 1448 1449To assign environment variables (e.g., CC, CFLAGS...), specify them as 1450VAR=VALUE. See below for descriptions of some of the useful variables. 1451 1452Defaults for the options are specified in brackets. 1453 1454Configuration: 1455 -h, --help display this help and exit 1456 --help=short display options specific to this package 1457 --help=recursive display the short help of all the included packages 1458 -V, --version display version information and exit 1459 -q, --quiet, --silent do not print \`checking ...' messages 1460 --cache-file=FILE cache test results in FILE [disabled] 1461 -C, --config-cache alias for \`--cache-file=config.cache' 1462 -n, --no-create do not create output files 1463 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1464 1465Installation directories: 1466 --prefix=PREFIX install architecture-independent files in PREFIX 1467 [$ac_default_prefix] 1468 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1469 [PREFIX] 1470 1471By default, \`make install' will install all the files in 1472\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1473an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1474for instance \`--prefix=\$HOME'. 1475 1476For better control, use the options below. 1477 1478Fine tuning of the installation directories: 1479 --bindir=DIR user executables [EPREFIX/bin] 1480 --sbindir=DIR system admin executables [EPREFIX/sbin] 1481 --libexecdir=DIR program executables [EPREFIX/libexec] 1482 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1483 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1484 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1485 --libdir=DIR object code libraries [EPREFIX/lib] 1486 --includedir=DIR C header files [PREFIX/include] 1487 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1490 --infodir=DIR info documentation [DATAROOTDIR/info] 1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1492 --mandir=DIR man documentation [DATAROOTDIR/man] 1493 --docdir=DIR documentation root [DATAROOTDIR/doc/wayland] 1494 --htmldir=DIR html documentation [DOCDIR] 1495 --dvidir=DIR dvi documentation [DOCDIR] 1496 --pdfdir=DIR pdf documentation [DOCDIR] 1497 --psdir=DIR ps documentation [DOCDIR] 1498_ACEOF 1499 1500 cat <<\_ACEOF 1501 1502Program names: 1503 --program-prefix=PREFIX prepend PREFIX to installed program names 1504 --program-suffix=SUFFIX append SUFFIX to installed program names 1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1506 1507System types: 1508 --build=BUILD configure for building on BUILD [guessed] 1509 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1510_ACEOF 1511fi 1512 1513if test -n "$ac_init_help"; then 1514 case $ac_init_help in 1515 short | recursive ) echo "Configuration of wayland 1.17.0:";; 1516 esac 1517 cat <<\_ACEOF 1518 1519Optional Features: 1520 --disable-option-checking ignore unrecognized --enable/--with options 1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1523 --enable-silent-rules less verbose build output (undo: "make V=1") 1524 --disable-silent-rules verbose build output (undo: "make V=0") 1525 --enable-dependency-tracking 1526 do not reject slow dependency extractors 1527 --disable-dependency-tracking 1528 speeds up one-time build 1529 --enable-static[=PKGS] build static libraries [default=no] 1530 --enable-shared[=PKGS] build shared libraries [default=yes] 1531 --enable-fast-install[=PKGS] 1532 optimize for fast installation [default=yes] 1533 --disable-libtool-lock avoid locking (might break parallel builds) 1534 --enable-fatal-warnings Build with -Werror 1535 --disable-libraries Disable compilation of wayland libraries 1536 --disable-documentation Disable building the documentation 1537 --disable-dtd-validation 1538 Disable DTD validation of the protocol 1539 1540Optional Packages: 1541 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1542 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1543 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1544 both] 1545 --with-aix-soname=aix|svr4|both 1546 shared library versioning (aka "SONAME") variant to 1547 provide on AIX, [default=aix]. 1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1549 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1550 compiler's sysroot if not specified). 1551 --with-host-scanner Use installed wayland-scanner from host PATH during 1552 build 1553 --with-icondir=<dir> Look for cursor icons here 1554 1555Some influential environment variables: 1556 CC C compiler command 1557 CFLAGS C compiler flags 1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1559 nonstandard directory <lib dir> 1560 LIBS libraries to pass to the linker, e.g. -l<library> 1561 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1562 you have headers in a nonstandard directory <include dir> 1563 CXX C++ compiler command 1564 CXXFLAGS C++ compiler flags 1565 CCAS assembler compiler command (defaults to CC) 1566 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1567 LT_SYS_LIBRARY_PATH 1568 User-defined run-time library search path. 1569 CPP C preprocessor 1570 CXXCPP C++ preprocessor 1571 PKG_CONFIG path to pkg-config utility 1572 PKG_CONFIG_PATH 1573 directories to add to pkg-config's search path 1574 PKG_CONFIG_LIBDIR 1575 path overriding pkg-config's built-in search path 1576 FFI_CFLAGS C compiler flags for FFI, overriding pkg-config 1577 FFI_LIBS linker flags for FFI, overriding pkg-config 1578 EXPAT_CFLAGS 1579 C compiler flags for EXPAT, overriding pkg-config 1580 EXPAT_LIBS linker flags for EXPAT, overriding pkg-config 1581 LIBXML_CFLAGS 1582 C compiler flags for LIBXML, overriding pkg-config 1583 LIBXML_LIBS linker flags for LIBXML, overriding pkg-config 1584 1585Use these variables to override the choices made by `configure' or to help 1586it to find libraries and programs with nonstandard names/locations. 1587 1588Report bugs to <https://gitlab.freedesktop.org/wayland/wayland/issues/>. 1589wayland home page: <https://wayland.freedesktop.org/>. 1590_ACEOF 1591ac_status=$? 1592fi 1593 1594if test "$ac_init_help" = "recursive"; then 1595 # If there are subdirs, report their specific --help. 1596 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1597 test -d "$ac_dir" || 1598 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1599 continue 1600 ac_builddir=. 1601 1602case "$ac_dir" in 1603.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1604*) 1605 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1606 # A ".." for each directory in $ac_dir_suffix. 1607 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1608 case $ac_top_builddir_sub in 1609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1611 esac ;; 1612esac 1613ac_abs_top_builddir=$ac_pwd 1614ac_abs_builddir=$ac_pwd$ac_dir_suffix 1615# for backward compatibility: 1616ac_top_builddir=$ac_top_build_prefix 1617 1618case $srcdir in 1619 .) # We are building in place. 1620 ac_srcdir=. 1621 ac_top_srcdir=$ac_top_builddir_sub 1622 ac_abs_top_srcdir=$ac_pwd ;; 1623 [\\/]* | ?:[\\/]* ) # Absolute name. 1624 ac_srcdir=$srcdir$ac_dir_suffix; 1625 ac_top_srcdir=$srcdir 1626 ac_abs_top_srcdir=$srcdir ;; 1627 *) # Relative name. 1628 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1629 ac_top_srcdir=$ac_top_build_prefix$srcdir 1630 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1631esac 1632ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1633 1634 cd "$ac_dir" || { ac_status=$?; continue; } 1635 # Check for guested configure. 1636 if test -f "$ac_srcdir/configure.gnu"; then 1637 echo && 1638 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1639 elif test -f "$ac_srcdir/configure"; then 1640 echo && 1641 $SHELL "$ac_srcdir/configure" --help=recursive 1642 else 1643 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1644 fi || ac_status=$? 1645 cd "$ac_pwd" || { ac_status=$?; break; } 1646 done 1647fi 1648 1649test -n "$ac_init_help" && exit $ac_status 1650if $ac_init_version; then 1651 cat <<\_ACEOF 1652wayland configure 1.17.0 1653generated by GNU Autoconf 2.69 1654 1655Copyright (C) 2012 Free Software Foundation, Inc. 1656This configure script is free software; the Free Software Foundation 1657gives unlimited permission to copy, distribute and modify it. 1658_ACEOF 1659 exit 1660fi 1661 1662## ------------------------ ## 1663## Autoconf initialization. ## 1664## ------------------------ ## 1665 1666# ac_fn_c_try_compile LINENO 1667# -------------------------- 1668# Try to compile conftest.$ac_ext, and return whether this succeeded. 1669ac_fn_c_try_compile () 1670{ 1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1672 rm -f conftest.$ac_objext 1673 if { { ac_try="$ac_compile" 1674case "(($ac_try" in 1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1676 *) ac_try_echo=$ac_try;; 1677esac 1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1679$as_echo "$ac_try_echo"; } >&5 1680 (eval "$ac_compile") 2>conftest.err 1681 ac_status=$? 1682 if test -s conftest.err; then 1683 grep -v '^ *+' conftest.err >conftest.er1 1684 cat conftest.er1 >&5 1685 mv -f conftest.er1 conftest.err 1686 fi 1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1688 test $ac_status = 0; } && { 1689 test -z "$ac_c_werror_flag" || 1690 test ! -s conftest.err 1691 } && test -s conftest.$ac_objext; then : 1692 ac_retval=0 1693else 1694 $as_echo "$as_me: failed program was:" >&5 1695sed 's/^/| /' conftest.$ac_ext >&5 1696 1697 ac_retval=1 1698fi 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1700 as_fn_set_status $ac_retval 1701 1702} # ac_fn_c_try_compile 1703 1704# ac_fn_cxx_try_compile LINENO 1705# ---------------------------- 1706# Try to compile conftest.$ac_ext, and return whether this succeeded. 1707ac_fn_cxx_try_compile () 1708{ 1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1710 rm -f conftest.$ac_objext 1711 if { { ac_try="$ac_compile" 1712case "(($ac_try" in 1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1714 *) ac_try_echo=$ac_try;; 1715esac 1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1717$as_echo "$ac_try_echo"; } >&5 1718 (eval "$ac_compile") 2>conftest.err 1719 ac_status=$? 1720 if test -s conftest.err; then 1721 grep -v '^ *+' conftest.err >conftest.er1 1722 cat conftest.er1 >&5 1723 mv -f conftest.er1 conftest.err 1724 fi 1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; } && { 1727 test -z "$ac_cxx_werror_flag" || 1728 test ! -s conftest.err 1729 } && test -s conftest.$ac_objext; then : 1730 ac_retval=0 1731else 1732 $as_echo "$as_me: failed program was:" >&5 1733sed 's/^/| /' conftest.$ac_ext >&5 1734 1735 ac_retval=1 1736fi 1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1738 as_fn_set_status $ac_retval 1739 1740} # ac_fn_cxx_try_compile 1741 1742# ac_fn_c_try_link LINENO 1743# ----------------------- 1744# Try to link conftest.$ac_ext, and return whether this succeeded. 1745ac_fn_c_try_link () 1746{ 1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1748 rm -f conftest.$ac_objext conftest$ac_exeext 1749 if { { ac_try="$ac_link" 1750case "(($ac_try" in 1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1752 *) ac_try_echo=$ac_try;; 1753esac 1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1755$as_echo "$ac_try_echo"; } >&5 1756 (eval "$ac_link") 2>conftest.err 1757 ac_status=$? 1758 if test -s conftest.err; then 1759 grep -v '^ *+' conftest.err >conftest.er1 1760 cat conftest.er1 >&5 1761 mv -f conftest.er1 conftest.err 1762 fi 1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1764 test $ac_status = 0; } && { 1765 test -z "$ac_c_werror_flag" || 1766 test ! -s conftest.err 1767 } && test -s conftest$ac_exeext && { 1768 test "$cross_compiling" = yes || 1769 test -x conftest$ac_exeext 1770 }; then : 1771 ac_retval=0 1772else 1773 $as_echo "$as_me: failed program was:" >&5 1774sed 's/^/| /' conftest.$ac_ext >&5 1775 1776 ac_retval=1 1777fi 1778 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1779 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1780 # interfere with the next link command; also delete a directory that is 1781 # left behind by Apple's compiler. We do this before executing the actions. 1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1784 as_fn_set_status $ac_retval 1785 1786} # ac_fn_c_try_link 1787 1788# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1789# ------------------------------------------------------- 1790# Tests whether HEADER exists and can be compiled using the include files in 1791# INCLUDES, setting the cache variable VAR accordingly. 1792ac_fn_c_check_header_compile () 1793{ 1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1796$as_echo_n "checking for $2... " >&6; } 1797if eval \${$3+:} false; then : 1798 $as_echo_n "(cached) " >&6 1799else 1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1801/* end confdefs.h. */ 1802$4 1803#include <$2> 1804_ACEOF 1805if ac_fn_c_try_compile "$LINENO"; then : 1806 eval "$3=yes" 1807else 1808 eval "$3=no" 1809fi 1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1811fi 1812eval ac_res=\$$3 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1814$as_echo "$ac_res" >&6; } 1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1816 1817} # ac_fn_c_check_header_compile 1818 1819# ac_fn_c_try_cpp LINENO 1820# ---------------------- 1821# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1822ac_fn_c_try_cpp () 1823{ 1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 if { { ac_try="$ac_cpp conftest.$ac_ext" 1826case "(($ac_try" in 1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1828 *) ac_try_echo=$ac_try;; 1829esac 1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1831$as_echo "$ac_try_echo"; } >&5 1832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1833 ac_status=$? 1834 if test -s conftest.err; then 1835 grep -v '^ *+' conftest.err >conftest.er1 1836 cat conftest.er1 >&5 1837 mv -f conftest.er1 conftest.err 1838 fi 1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1840 test $ac_status = 0; } > conftest.i && { 1841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1842 test ! -s conftest.err 1843 }; then : 1844 ac_retval=0 1845else 1846 $as_echo "$as_me: failed program was:" >&5 1847sed 's/^/| /' conftest.$ac_ext >&5 1848 1849 ac_retval=1 1850fi 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1852 as_fn_set_status $ac_retval 1853 1854} # ac_fn_c_try_cpp 1855 1856# ac_fn_c_try_run LINENO 1857# ---------------------- 1858# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1859# that executables *can* be run. 1860ac_fn_c_try_run () 1861{ 1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1863 if { { ac_try="$ac_link" 1864case "(($ac_try" in 1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1866 *) ac_try_echo=$ac_try;; 1867esac 1868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1869$as_echo "$ac_try_echo"; } >&5 1870 (eval "$ac_link") 2>&5 1871 ac_status=$? 1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1873 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1874 { { case "(($ac_try" in 1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1876 *) ac_try_echo=$ac_try;; 1877esac 1878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1879$as_echo "$ac_try_echo"; } >&5 1880 (eval "$ac_try") 2>&5 1881 ac_status=$? 1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1883 test $ac_status = 0; }; }; then : 1884 ac_retval=0 1885else 1886 $as_echo "$as_me: program exited with status $ac_status" >&5 1887 $as_echo "$as_me: failed program was:" >&5 1888sed 's/^/| /' conftest.$ac_ext >&5 1889 1890 ac_retval=$ac_status 1891fi 1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1894 as_fn_set_status $ac_retval 1895 1896} # ac_fn_c_try_run 1897 1898# ac_fn_c_check_func LINENO FUNC VAR 1899# ---------------------------------- 1900# Tests whether FUNC exists, setting the cache variable VAR accordingly 1901ac_fn_c_check_func () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1905$as_echo_n "checking for $2... " >&6; } 1906if eval \${$3+:} false; then : 1907 $as_echo_n "(cached) " >&6 1908else 1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1910/* end confdefs.h. */ 1911/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1912 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1913#define $2 innocuous_$2 1914 1915/* System header to define __stub macros and hopefully few prototypes, 1916 which can conflict with char $2 (); below. 1917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1918 <limits.h> exists even on freestanding compilers. */ 1919 1920#ifdef __STDC__ 1921# include <limits.h> 1922#else 1923# include <assert.h> 1924#endif 1925 1926#undef $2 1927 1928/* Override any GCC internal prototype to avoid an error. 1929 Use char because int might match the return type of a GCC 1930 builtin and then its argument prototype would still apply. */ 1931#ifdef __cplusplus 1932extern "C" 1933#endif 1934char $2 (); 1935/* The GNU C library defines this for functions which it implements 1936 to always fail with ENOSYS. Some functions are actually named 1937 something starting with __ and the normal name is an alias. */ 1938#if defined __stub_$2 || defined __stub___$2 1939choke me 1940#endif 1941 1942int 1943main () 1944{ 1945return $2 (); 1946 ; 1947 return 0; 1948} 1949_ACEOF 1950if ac_fn_c_try_link "$LINENO"; then : 1951 eval "$3=yes" 1952else 1953 eval "$3=no" 1954fi 1955rm -f core conftest.err conftest.$ac_objext \ 1956 conftest$ac_exeext conftest.$ac_ext 1957fi 1958eval ac_res=\$$3 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1960$as_echo "$ac_res" >&6; } 1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1962 1963} # ac_fn_c_check_func 1964 1965# ac_fn_cxx_try_cpp LINENO 1966# ------------------------ 1967# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1968ac_fn_cxx_try_cpp () 1969{ 1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1971 if { { ac_try="$ac_cpp conftest.$ac_ext" 1972case "(($ac_try" in 1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1974 *) ac_try_echo=$ac_try;; 1975esac 1976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1977$as_echo "$ac_try_echo"; } >&5 1978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1979 ac_status=$? 1980 if test -s conftest.err; then 1981 grep -v '^ *+' conftest.err >conftest.er1 1982 cat conftest.er1 >&5 1983 mv -f conftest.er1 conftest.err 1984 fi 1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1986 test $ac_status = 0; } > conftest.i && { 1987 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1988 test ! -s conftest.err 1989 }; then : 1990 ac_retval=0 1991else 1992 $as_echo "$as_me: failed program was:" >&5 1993sed 's/^/| /' conftest.$ac_ext >&5 1994 1995 ac_retval=1 1996fi 1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1998 as_fn_set_status $ac_retval 1999 2000} # ac_fn_cxx_try_cpp 2001 2002# ac_fn_cxx_try_link LINENO 2003# ------------------------- 2004# Try to link conftest.$ac_ext, and return whether this succeeded. 2005ac_fn_cxx_try_link () 2006{ 2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2008 rm -f conftest.$ac_objext conftest$ac_exeext 2009 if { { ac_try="$ac_link" 2010case "(($ac_try" in 2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2012 *) ac_try_echo=$ac_try;; 2013esac 2014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2015$as_echo "$ac_try_echo"; } >&5 2016 (eval "$ac_link") 2>conftest.err 2017 ac_status=$? 2018 if test -s conftest.err; then 2019 grep -v '^ *+' conftest.err >conftest.er1 2020 cat conftest.er1 >&5 2021 mv -f conftest.er1 conftest.err 2022 fi 2023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2024 test $ac_status = 0; } && { 2025 test -z "$ac_cxx_werror_flag" || 2026 test ! -s conftest.err 2027 } && test -s conftest$ac_exeext && { 2028 test "$cross_compiling" = yes || 2029 test -x conftest$ac_exeext 2030 }; then : 2031 ac_retval=0 2032else 2033 $as_echo "$as_me: failed program was:" >&5 2034sed 's/^/| /' conftest.$ac_ext >&5 2035 2036 ac_retval=1 2037fi 2038 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2039 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2040 # interfere with the next link command; also delete a directory that is 2041 # left behind by Apple's compiler. We do this before executing the actions. 2042 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2044 as_fn_set_status $ac_retval 2045 2046} # ac_fn_cxx_try_link 2047 2048# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2049# ------------------------------------------------------- 2050# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2051# the include files in INCLUDES and setting the cache variable VAR 2052# accordingly. 2053ac_fn_c_check_header_mongrel () 2054{ 2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2056 if eval \${$3+:} false; then : 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2058$as_echo_n "checking for $2... " >&6; } 2059if eval \${$3+:} false; then : 2060 $as_echo_n "(cached) " >&6 2061fi 2062eval ac_res=\$$3 2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2064$as_echo "$ac_res" >&6; } 2065else 2066 # Is the header compilable? 2067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2068$as_echo_n "checking $2 usability... " >&6; } 2069cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2070/* end confdefs.h. */ 2071$4 2072#include <$2> 2073_ACEOF 2074if ac_fn_c_try_compile "$LINENO"; then : 2075 ac_header_compiler=yes 2076else 2077 ac_header_compiler=no 2078fi 2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2081$as_echo "$ac_header_compiler" >&6; } 2082 2083# Is the header present? 2084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2085$as_echo_n "checking $2 presence... " >&6; } 2086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2087/* end confdefs.h. */ 2088#include <$2> 2089_ACEOF 2090if ac_fn_c_try_cpp "$LINENO"; then : 2091 ac_header_preproc=yes 2092else 2093 ac_header_preproc=no 2094fi 2095rm -f conftest.err conftest.i conftest.$ac_ext 2096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2097$as_echo "$ac_header_preproc" >&6; } 2098 2099# So? What about this header? 2100case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2101 yes:no: ) 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2103$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2105$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2106 ;; 2107 no:yes:* ) 2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2109$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2111$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2113$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2115$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2117$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2118( $as_echo "## --------------------------------------------------------------------- ## 2119## Report this to https://gitlab.freedesktop.org/wayland/wayland/issues/ ## 2120## --------------------------------------------------------------------- ##" 2121 ) | sed "s/^/$as_me: WARNING: /" >&2 2122 ;; 2123esac 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2125$as_echo_n "checking for $2... " >&6; } 2126if eval \${$3+:} false; then : 2127 $as_echo_n "(cached) " >&6 2128else 2129 eval "$3=\$ac_header_compiler" 2130fi 2131eval ac_res=\$$3 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2133$as_echo "$ac_res" >&6; } 2134fi 2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2136 2137} # ac_fn_c_check_header_mongrel 2138 2139# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2140# --------------------------------------------- 2141# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2142# accordingly. 2143ac_fn_c_check_decl () 2144{ 2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2146 as_decl_name=`echo $2|sed 's/ *(.*//'` 2147 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2149$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2150if eval \${$3+:} false; then : 2151 $as_echo_n "(cached) " >&6 2152else 2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2154/* end confdefs.h. */ 2155$4 2156int 2157main () 2158{ 2159#ifndef $as_decl_name 2160#ifdef __cplusplus 2161 (void) $as_decl_use; 2162#else 2163 (void) $as_decl_name; 2164#endif 2165#endif 2166 2167 ; 2168 return 0; 2169} 2170_ACEOF 2171if ac_fn_c_try_compile "$LINENO"; then : 2172 eval "$3=yes" 2173else 2174 eval "$3=no" 2175fi 2176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2177fi 2178eval ac_res=\$$3 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2180$as_echo "$ac_res" >&6; } 2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2182 2183} # ac_fn_c_check_decl 2184cat >config.log <<_ACEOF 2185This file contains any messages produced by compilers while 2186running configure, to aid debugging if configure makes a mistake. 2187 2188It was created by wayland $as_me 1.17.0, which was 2189generated by GNU Autoconf 2.69. Invocation command line was 2190 2191 $ $0 $@ 2192 2193_ACEOF 2194exec 5>>config.log 2195{ 2196cat <<_ASUNAME 2197## --------- ## 2198## Platform. ## 2199## --------- ## 2200 2201hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2202uname -m = `(uname -m) 2>/dev/null || echo unknown` 2203uname -r = `(uname -r) 2>/dev/null || echo unknown` 2204uname -s = `(uname -s) 2>/dev/null || echo unknown` 2205uname -v = `(uname -v) 2>/dev/null || echo unknown` 2206 2207/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2208/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2209 2210/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2211/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2212/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2213/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2214/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2215/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2216/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2217 2218_ASUNAME 2219 2220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2221for as_dir in $PATH 2222do 2223 IFS=$as_save_IFS 2224 test -z "$as_dir" && as_dir=. 2225 $as_echo "PATH: $as_dir" 2226 done 2227IFS=$as_save_IFS 2228 2229} >&5 2230 2231cat >&5 <<_ACEOF 2232 2233 2234## ----------- ## 2235## Core tests. ## 2236## ----------- ## 2237 2238_ACEOF 2239 2240 2241# Keep a trace of the command line. 2242# Strip out --no-create and --no-recursion so they do not pile up. 2243# Strip out --silent because we don't want to record it for future runs. 2244# Also quote any args containing shell meta-characters. 2245# Make two passes to allow for proper duplicate-argument suppression. 2246ac_configure_args= 2247ac_configure_args0= 2248ac_configure_args1= 2249ac_must_keep_next=false 2250for ac_pass in 1 2 2251do 2252 for ac_arg 2253 do 2254 case $ac_arg in 2255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2257 | -silent | --silent | --silen | --sile | --sil) 2258 continue ;; 2259 *\'*) 2260 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2261 esac 2262 case $ac_pass in 2263 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2264 2) 2265 as_fn_append ac_configure_args1 " '$ac_arg'" 2266 if test $ac_must_keep_next = true; then 2267 ac_must_keep_next=false # Got value, back to normal. 2268 else 2269 case $ac_arg in 2270 *=* | --config-cache | -C | -disable-* | --disable-* \ 2271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2273 | -with-* | --with-* | -without-* | --without-* | --x) 2274 case "$ac_configure_args0 " in 2275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2276 esac 2277 ;; 2278 -* ) ac_must_keep_next=true ;; 2279 esac 2280 fi 2281 as_fn_append ac_configure_args " '$ac_arg'" 2282 ;; 2283 esac 2284 done 2285done 2286{ ac_configure_args0=; unset ac_configure_args0;} 2287{ ac_configure_args1=; unset ac_configure_args1;} 2288 2289# When interrupted or exit'd, cleanup temporary files, and complete 2290# config.log. We remove comments because anyway the quotes in there 2291# would cause problems or look ugly. 2292# WARNING: Use '\'' to represent an apostrophe within the trap. 2293# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2294trap 'exit_status=$? 2295 # Save into config.log some information that might help in debugging. 2296 { 2297 echo 2298 2299 $as_echo "## ---------------- ## 2300## Cache variables. ## 2301## ---------------- ##" 2302 echo 2303 # The following way of writing the cache mishandles newlines in values, 2304( 2305 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2306 eval ac_val=\$$ac_var 2307 case $ac_val in #( 2308 *${as_nl}*) 2309 case $ac_var in #( 2310 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2311$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2312 esac 2313 case $ac_var in #( 2314 _ | IFS | as_nl) ;; #( 2315 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2316 *) { eval $ac_var=; unset $ac_var;} ;; 2317 esac ;; 2318 esac 2319 done 2320 (set) 2>&1 | 2321 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2322 *${as_nl}ac_space=\ *) 2323 sed -n \ 2324 "s/'\''/'\''\\\\'\'''\''/g; 2325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2326 ;; #( 2327 *) 2328 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2329 ;; 2330 esac | 2331 sort 2332) 2333 echo 2334 2335 $as_echo "## ----------------- ## 2336## Output variables. ## 2337## ----------------- ##" 2338 echo 2339 for ac_var in $ac_subst_vars 2340 do 2341 eval ac_val=\$$ac_var 2342 case $ac_val in 2343 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2344 esac 2345 $as_echo "$ac_var='\''$ac_val'\''" 2346 done | sort 2347 echo 2348 2349 if test -n "$ac_subst_files"; then 2350 $as_echo "## ------------------- ## 2351## File substitutions. ## 2352## ------------------- ##" 2353 echo 2354 for ac_var in $ac_subst_files 2355 do 2356 eval ac_val=\$$ac_var 2357 case $ac_val in 2358 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2359 esac 2360 $as_echo "$ac_var='\''$ac_val'\''" 2361 done | sort 2362 echo 2363 fi 2364 2365 if test -s confdefs.h; then 2366 $as_echo "## ----------- ## 2367## confdefs.h. ## 2368## ----------- ##" 2369 echo 2370 cat confdefs.h 2371 echo 2372 fi 2373 test "$ac_signal" != 0 && 2374 $as_echo "$as_me: caught signal $ac_signal" 2375 $as_echo "$as_me: exit $exit_status" 2376 } >&5 2377 rm -f core *.core core.conftest.* && 2378 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2379 exit $exit_status 2380' 0 2381for ac_signal in 1 2 13 15; do 2382 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2383done 2384ac_signal=0 2385 2386# confdefs.h avoids OS command line length limits that DEFS can exceed. 2387rm -f -r conftest* confdefs.h 2388 2389$as_echo "/* confdefs.h */" > confdefs.h 2390 2391# Predefined preprocessor variables. 2392 2393cat >>confdefs.h <<_ACEOF 2394#define PACKAGE_NAME "$PACKAGE_NAME" 2395_ACEOF 2396 2397cat >>confdefs.h <<_ACEOF 2398#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2399_ACEOF 2400 2401cat >>confdefs.h <<_ACEOF 2402#define PACKAGE_VERSION "$PACKAGE_VERSION" 2403_ACEOF 2404 2405cat >>confdefs.h <<_ACEOF 2406#define PACKAGE_STRING "$PACKAGE_STRING" 2407_ACEOF 2408 2409cat >>confdefs.h <<_ACEOF 2410#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2411_ACEOF 2412 2413cat >>confdefs.h <<_ACEOF 2414#define PACKAGE_URL "$PACKAGE_URL" 2415_ACEOF 2416 2417 2418# Let the site file select an alternate cache file if it wants to. 2419# Prefer an explicitly selected file to automatically selected ones. 2420ac_site_file1=NONE 2421ac_site_file2=NONE 2422if test -n "$CONFIG_SITE"; then 2423 # We do not want a PATH search for config.site. 2424 case $CONFIG_SITE in #(( 2425 -*) ac_site_file1=./$CONFIG_SITE;; 2426 */*) ac_site_file1=$CONFIG_SITE;; 2427 *) ac_site_file1=./$CONFIG_SITE;; 2428 esac 2429elif test "x$prefix" != xNONE; then 2430 ac_site_file1=$prefix/share/config.site 2431 ac_site_file2=$prefix/etc/config.site 2432else 2433 ac_site_file1=$ac_default_prefix/share/config.site 2434 ac_site_file2=$ac_default_prefix/etc/config.site 2435fi 2436for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2437do 2438 test "x$ac_site_file" = xNONE && continue 2439 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2441$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2442 sed 's/^/| /' "$ac_site_file" >&5 2443 . "$ac_site_file" \ 2444 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2446as_fn_error $? "failed to load site script $ac_site_file 2447See \`config.log' for more details" "$LINENO" 5; } 2448 fi 2449done 2450 2451if test -r "$cache_file"; then 2452 # Some versions of bash will fail to source /dev/null (special files 2453 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2454 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2456$as_echo "$as_me: loading cache $cache_file" >&6;} 2457 case $cache_file in 2458 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2459 *) . "./$cache_file";; 2460 esac 2461 fi 2462else 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2464$as_echo "$as_me: creating cache $cache_file" >&6;} 2465 >$cache_file 2466fi 2467 2468# Check that the precious variables saved in the cache have kept the same 2469# value. 2470ac_cache_corrupted=false 2471for ac_var in $ac_precious_vars; do 2472 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2473 eval ac_new_set=\$ac_env_${ac_var}_set 2474 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2475 eval ac_new_val=\$ac_env_${ac_var}_value 2476 case $ac_old_set,$ac_new_set in 2477 set,) 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2479$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2480 ac_cache_corrupted=: ;; 2481 ,set) 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2483$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2484 ac_cache_corrupted=: ;; 2485 ,);; 2486 *) 2487 if test "x$ac_old_val" != "x$ac_new_val"; then 2488 # differences in whitespace do not lead to failure. 2489 ac_old_val_w=`echo x $ac_old_val` 2490 ac_new_val_w=`echo x $ac_new_val` 2491 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2493$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2494 ac_cache_corrupted=: 2495 else 2496 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2497$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2498 eval $ac_var=\$ac_old_val 2499 fi 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2501$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2502 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2503$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2504 fi;; 2505 esac 2506 # Pass precious variables to config.status. 2507 if test "$ac_new_set" = set; then 2508 case $ac_new_val in 2509 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2510 *) ac_arg=$ac_var=$ac_new_val ;; 2511 esac 2512 case " $ac_configure_args " in 2513 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2514 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2515 esac 2516 fi 2517done 2518if $ac_cache_corrupted; then 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2522$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2523 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2524fi 2525## -------------------- ## 2526## Main body of script. ## 2527## -------------------- ## 2528 2529ac_ext=c 2530ac_cpp='$CPP $CPPFLAGS' 2531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2533ac_compiler_gnu=$ac_cv_c_compiler_gnu 2534 2535 2536 2537WAYLAND_VERSION_MAJOR=1 2538 2539WAYLAND_VERSION_MINOR=17 2540 2541WAYLAND_VERSION_MICRO=0 2542 2543WAYLAND_VERSION=1.17.0 2544 2545 2546ac_config_headers="$ac_config_headers config.h" 2547 2548 2549 2550am__api_version='1.15' 2551 2552ac_aux_dir= 2553for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2554 if test -f "$ac_dir/install-sh"; then 2555 ac_aux_dir=$ac_dir 2556 ac_install_sh="$ac_aux_dir/install-sh -c" 2557 break 2558 elif test -f "$ac_dir/install.sh"; then 2559 ac_aux_dir=$ac_dir 2560 ac_install_sh="$ac_aux_dir/install.sh -c" 2561 break 2562 elif test -f "$ac_dir/shtool"; then 2563 ac_aux_dir=$ac_dir 2564 ac_install_sh="$ac_aux_dir/shtool install -c" 2565 break 2566 fi 2567done 2568if test -z "$ac_aux_dir"; then 2569 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2570fi 2571 2572# These three variables are undocumented and unsupported, 2573# and are intended to be withdrawn in a future Autoconf release. 2574# They can cause serious problems if a builder's source tree is in a directory 2575# whose full name contains unusual characters. 2576ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2577ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2578ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2579 2580 2581# Find a good install program. We prefer a C program (faster), 2582# so one script is as good as another. But avoid the broken or 2583# incompatible versions: 2584# SysV /etc/install, /usr/sbin/install 2585# SunOS /usr/etc/install 2586# IRIX /sbin/install 2587# AIX /bin/install 2588# AmigaOS /C/install, which installs bootblocks on floppy discs 2589# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2590# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2591# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2592# OS/2's system install, which has a completely different semantic 2593# ./install, which can be erroneously created by make from ./install.sh. 2594# Reject install programs that cannot install multiple files. 2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2596$as_echo_n "checking for a BSD-compatible install... " >&6; } 2597if test -z "$INSTALL"; then 2598if ${ac_cv_path_install+:} false; then : 2599 $as_echo_n "(cached) " >&6 2600else 2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2602for as_dir in $PATH 2603do 2604 IFS=$as_save_IFS 2605 test -z "$as_dir" && as_dir=. 2606 # Account for people who put trailing slashes in PATH elements. 2607case $as_dir/ in #(( 2608 ./ | .// | /[cC]/* | \ 2609 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2610 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2611 /usr/ucb/* ) ;; 2612 *) 2613 # OSF1 and SCO ODT 3.0 have their own names for install. 2614 # Don't use installbsd from OSF since it installs stuff as root 2615 # by default. 2616 for ac_prog in ginstall scoinst install; do 2617 for ac_exec_ext in '' $ac_executable_extensions; do 2618 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2619 if test $ac_prog = install && 2620 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2621 # AIX install. It has an incompatible calling convention. 2622 : 2623 elif test $ac_prog = install && 2624 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2625 # program-specific install script used by HP pwplus--don't use. 2626 : 2627 else 2628 rm -rf conftest.one conftest.two conftest.dir 2629 echo one > conftest.one 2630 echo two > conftest.two 2631 mkdir conftest.dir 2632 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2633 test -s conftest.one && test -s conftest.two && 2634 test -s conftest.dir/conftest.one && 2635 test -s conftest.dir/conftest.two 2636 then 2637 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2638 break 3 2639 fi 2640 fi 2641 fi 2642 done 2643 done 2644 ;; 2645esac 2646 2647 done 2648IFS=$as_save_IFS 2649 2650rm -rf conftest.one conftest.two conftest.dir 2651 2652fi 2653 if test "${ac_cv_path_install+set}" = set; then 2654 INSTALL=$ac_cv_path_install 2655 else 2656 # As a last resort, use the slow shell script. Don't cache a 2657 # value for INSTALL within a source directory, because that will 2658 # break other packages using the cache if that directory is 2659 # removed, or if the value is a relative name. 2660 INSTALL=$ac_install_sh 2661 fi 2662fi 2663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2664$as_echo "$INSTALL" >&6; } 2665 2666# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2667# It thinks the first close brace ends the variable substitution. 2668test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2669 2670test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2671 2672test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2673 2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2675$as_echo_n "checking whether build environment is sane... " >&6; } 2676# Reject unsafe characters in $srcdir or the absolute working directory 2677# name. Accept space and tab only in the latter. 2678am_lf=' 2679' 2680case `pwd` in 2681 *[\\\"\#\$\&\'\`$am_lf]*) 2682 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2683esac 2684case $srcdir in 2685 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2686 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2687esac 2688 2689# Do 'set' in a subshell so we don't clobber the current shell's 2690# arguments. Must try -L first in case configure is actually a 2691# symlink; some systems play weird games with the mod time of symlinks 2692# (eg FreeBSD returns the mod time of the symlink's containing 2693# directory). 2694if ( 2695 am_has_slept=no 2696 for am_try in 1 2; do 2697 echo "timestamp, slept: $am_has_slept" > conftest.file 2698 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2699 if test "$*" = "X"; then 2700 # -L didn't work. 2701 set X `ls -t "$srcdir/configure" conftest.file` 2702 fi 2703 if test "$*" != "X $srcdir/configure conftest.file" \ 2704 && test "$*" != "X conftest.file $srcdir/configure"; then 2705 2706 # If neither matched, then we have a broken ls. This can happen 2707 # if, for instance, CONFIG_SHELL is bash and it inherits a 2708 # broken ls alias from the environment. This has actually 2709 # happened. Such a system could not be considered "sane". 2710 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2711 alias in your environment" "$LINENO" 5 2712 fi 2713 if test "$2" = conftest.file || test $am_try -eq 2; then 2714 break 2715 fi 2716 # Just in case. 2717 sleep 1 2718 am_has_slept=yes 2719 done 2720 test "$2" = conftest.file 2721 ) 2722then 2723 # Ok. 2724 : 2725else 2726 as_fn_error $? "newly created file is older than distributed files! 2727Check your system clock" "$LINENO" 5 2728fi 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2730$as_echo "yes" >&6; } 2731# If we didn't sleep, we still need to ensure time stamps of config.status and 2732# generated files are strictly newer. 2733am_sleep_pid= 2734if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2735 ( sleep 1 ) & 2736 am_sleep_pid=$! 2737fi 2738 2739rm -f conftest.file 2740 2741test "$program_prefix" != NONE && 2742 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2743# Use a double $ so make ignores it. 2744test "$program_suffix" != NONE && 2745 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2746# Double any \ or $. 2747# By default was `s,x,x', remove it if useless. 2748ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2749program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2750 2751# Expand $ac_aux_dir to an absolute path. 2752am_aux_dir=`cd "$ac_aux_dir" && pwd` 2753 2754if test x"${MISSING+set}" != xset; then 2755 case $am_aux_dir in 2756 *\ * | *\ *) 2757 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2758 *) 2759 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2760 esac 2761fi 2762# Use eval to expand $SHELL 2763if eval "$MISSING --is-lightweight"; then 2764 am_missing_run="$MISSING " 2765else 2766 am_missing_run= 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2768$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2769fi 2770 2771if test x"${install_sh+set}" != xset; then 2772 case $am_aux_dir in 2773 *\ * | *\ *) 2774 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2775 *) 2776 install_sh="\${SHELL} $am_aux_dir/install-sh" 2777 esac 2778fi 2779 2780# Installed binaries are usually stripped using 'strip' when the user 2781# run "make install-strip". However 'strip' might not be the right 2782# tool to use in cross-compilation environments, therefore Automake 2783# will honor the 'STRIP' environment variable to overrule this program. 2784if test "$cross_compiling" != no; then 2785 if test -n "$ac_tool_prefix"; then 2786 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2787set dummy ${ac_tool_prefix}strip; ac_word=$2 2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2789$as_echo_n "checking for $ac_word... " >&6; } 2790if ${ac_cv_prog_STRIP+:} false; then : 2791 $as_echo_n "(cached) " >&6 2792else 2793 if test -n "$STRIP"; then 2794 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2795else 2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2797for as_dir in $PATH 2798do 2799 IFS=$as_save_IFS 2800 test -z "$as_dir" && as_dir=. 2801 for ac_exec_ext in '' $ac_executable_extensions; do 2802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2803 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2805 break 2 2806 fi 2807done 2808 done 2809IFS=$as_save_IFS 2810 2811fi 2812fi 2813STRIP=$ac_cv_prog_STRIP 2814if test -n "$STRIP"; then 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2816$as_echo "$STRIP" >&6; } 2817else 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2819$as_echo "no" >&6; } 2820fi 2821 2822 2823fi 2824if test -z "$ac_cv_prog_STRIP"; then 2825 ac_ct_STRIP=$STRIP 2826 # Extract the first word of "strip", so it can be a program name with args. 2827set dummy strip; ac_word=$2 2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2829$as_echo_n "checking for $ac_word... " >&6; } 2830if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2831 $as_echo_n "(cached) " >&6 2832else 2833 if test -n "$ac_ct_STRIP"; then 2834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2835else 2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2837for as_dir in $PATH 2838do 2839 IFS=$as_save_IFS 2840 test -z "$as_dir" && as_dir=. 2841 for ac_exec_ext in '' $ac_executable_extensions; do 2842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2843 ac_cv_prog_ac_ct_STRIP="strip" 2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2845 break 2 2846 fi 2847done 2848 done 2849IFS=$as_save_IFS 2850 2851fi 2852fi 2853ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2854if test -n "$ac_ct_STRIP"; then 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2856$as_echo "$ac_ct_STRIP" >&6; } 2857else 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2859$as_echo "no" >&6; } 2860fi 2861 2862 if test "x$ac_ct_STRIP" = x; then 2863 STRIP=":" 2864 else 2865 case $cross_compiling:$ac_tool_warned in 2866yes:) 2867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2869ac_tool_warned=yes ;; 2870esac 2871 STRIP=$ac_ct_STRIP 2872 fi 2873else 2874 STRIP="$ac_cv_prog_STRIP" 2875fi 2876 2877fi 2878INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2879 2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2881$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2882if test -z "$MKDIR_P"; then 2883 if ${ac_cv_path_mkdir+:} false; then : 2884 $as_echo_n "(cached) " >&6 2885else 2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2887for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2888do 2889 IFS=$as_save_IFS 2890 test -z "$as_dir" && as_dir=. 2891 for ac_prog in mkdir gmkdir; do 2892 for ac_exec_ext in '' $ac_executable_extensions; do 2893 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2894 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2895 'mkdir (GNU coreutils) '* | \ 2896 'mkdir (coreutils) '* | \ 2897 'mkdir (fileutils) '4.1*) 2898 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2899 break 3;; 2900 esac 2901 done 2902 done 2903 done 2904IFS=$as_save_IFS 2905 2906fi 2907 2908 test -d ./--version && rmdir ./--version 2909 if test "${ac_cv_path_mkdir+set}" = set; then 2910 MKDIR_P="$ac_cv_path_mkdir -p" 2911 else 2912 # As a last resort, use the slow shell script. Don't cache a 2913 # value for MKDIR_P within a source directory, because that will 2914 # break other packages using the cache if that directory is 2915 # removed, or if the value is a relative name. 2916 MKDIR_P="$ac_install_sh -d" 2917 fi 2918fi 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2920$as_echo "$MKDIR_P" >&6; } 2921 2922for ac_prog in gawk mawk nawk awk 2923do 2924 # Extract the first word of "$ac_prog", so it can be a program name with args. 2925set dummy $ac_prog; ac_word=$2 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2927$as_echo_n "checking for $ac_word... " >&6; } 2928if ${ac_cv_prog_AWK+:} false; then : 2929 $as_echo_n "(cached) " >&6 2930else 2931 if test -n "$AWK"; then 2932 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2933else 2934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2935for as_dir in $PATH 2936do 2937 IFS=$as_save_IFS 2938 test -z "$as_dir" && as_dir=. 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2941 ac_cv_prog_AWK="$ac_prog" 2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2943 break 2 2944 fi 2945done 2946 done 2947IFS=$as_save_IFS 2948 2949fi 2950fi 2951AWK=$ac_cv_prog_AWK 2952if test -n "$AWK"; then 2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2954$as_echo "$AWK" >&6; } 2955else 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2957$as_echo "no" >&6; } 2958fi 2959 2960 2961 test -n "$AWK" && break 2962done 2963 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2965$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2966set x ${MAKE-make} 2967ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2968if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2969 $as_echo_n "(cached) " >&6 2970else 2971 cat >conftest.make <<\_ACEOF 2972SHELL = /bin/sh 2973all: 2974 @echo '@@@%%%=$(MAKE)=@@@%%%' 2975_ACEOF 2976# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2977case `${MAKE-make} -f conftest.make 2>/dev/null` in 2978 *@@@%%%=?*=@@@%%%*) 2979 eval ac_cv_prog_make_${ac_make}_set=yes;; 2980 *) 2981 eval ac_cv_prog_make_${ac_make}_set=no;; 2982esac 2983rm -f conftest.make 2984fi 2985if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2987$as_echo "yes" >&6; } 2988 SET_MAKE= 2989else 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2991$as_echo "no" >&6; } 2992 SET_MAKE="MAKE=${MAKE-make}" 2993fi 2994 2995rm -rf .tst 2>/dev/null 2996mkdir .tst 2>/dev/null 2997if test -d .tst; then 2998 am__leading_dot=. 2999else 3000 am__leading_dot=_ 3001fi 3002rmdir .tst 2>/dev/null 3003 3004# Check whether --enable-silent-rules was given. 3005if test "${enable_silent_rules+set}" = set; then : 3006 enableval=$enable_silent_rules; 3007fi 3008 3009case $enable_silent_rules in # ((( 3010 yes) AM_DEFAULT_VERBOSITY=0;; 3011 no) AM_DEFAULT_VERBOSITY=1;; 3012 *) AM_DEFAULT_VERBOSITY=1;; 3013esac 3014am_make=${MAKE-make} 3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3016$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3017if ${am_cv_make_support_nested_variables+:} false; then : 3018 $as_echo_n "(cached) " >&6 3019else 3020 if $as_echo 'TRUE=$(BAR$(V)) 3021BAR0=false 3022BAR1=true 3023V=1 3024am__doit: 3025 @$(TRUE) 3026.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3027 am_cv_make_support_nested_variables=yes 3028else 3029 am_cv_make_support_nested_variables=no 3030fi 3031fi 3032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3033$as_echo "$am_cv_make_support_nested_variables" >&6; } 3034if test $am_cv_make_support_nested_variables = yes; then 3035 AM_V='$(V)' 3036 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3037else 3038 AM_V=$AM_DEFAULT_VERBOSITY 3039 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3040fi 3041AM_BACKSLASH='\' 3042 3043if test "`cd $srcdir && pwd`" != "`pwd`"; then 3044 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3045 # is not polluted with repeated "-I." 3046 am__isrc=' -I$(srcdir)' 3047 # test to see if srcdir already configured 3048 if test -f $srcdir/config.status; then 3049 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3050 fi 3051fi 3052 3053# test whether we have cygpath 3054if test -z "$CYGPATH_W"; then 3055 if (cygpath --version) >/dev/null 2>/dev/null; then 3056 CYGPATH_W='cygpath -w' 3057 else 3058 CYGPATH_W=echo 3059 fi 3060fi 3061 3062 3063# Define the identity of the package. 3064 PACKAGE='wayland' 3065 VERSION='1.17.0' 3066 3067 3068cat >>confdefs.h <<_ACEOF 3069#define PACKAGE "$PACKAGE" 3070_ACEOF 3071 3072 3073cat >>confdefs.h <<_ACEOF 3074#define VERSION "$VERSION" 3075_ACEOF 3076 3077# Some tools Automake needs. 3078 3079ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3080 3081 3082AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3083 3084 3085AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3086 3087 3088AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3089 3090 3091MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3092 3093# For better backward compatibility. To be removed once Automake 1.9.x 3094# dies out for good. For more background, see: 3095# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3096# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3097mkdir_p='$(MKDIR_P)' 3098 3099# We need awk for the "check" target (and possibly the TAP driver). The 3100# system "awk" is bad on some platforms. 3101# Always define AMTAR for backward compatibility. Yes, it's still used 3102# in the wild :-( We should find a proper way to deprecate it ... 3103AMTAR='$${TAR-tar}' 3104 3105 3106# We'll loop over all known methods to create a tar archive until one works. 3107_am_tools='gnutar pax cpio none' 3108 3109am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3110 3111 3112 3113 3114 3115 3116# POSIX will say in a future version that running "rm -f" with no argument 3117# is OK; and we want to be able to make that assumption in our Makefile 3118# recipes. So use an aggressive probe to check that the usage we want is 3119# actually supported "in the wild" to an acceptable degree. 3120# See automake bug#10828. 3121# To make any issue more visible, cause the running configure to be aborted 3122# by default if the 'rm' program in use doesn't match our expectations; the 3123# user can still override this though. 3124if rm -f && rm -fr && rm -rf; then : OK; else 3125 cat >&2 <<'END' 3126Oops! 3127 3128Your 'rm' program seems unable to run without file operands specified 3129on the command line, even when the '-f' option is present. This is contrary 3130to the behaviour of most rm programs out there, and not conforming with 3131the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3132 3133Please tell bug-automake@gnu.org about your system, including the value 3134of your $PATH and any error possibly output before this message. This 3135can help us improve future automake versions. 3136 3137END 3138 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3139 echo 'Configuration will proceed anyway, since you have set the' >&2 3140 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3141 echo >&2 3142 else 3143 cat >&2 <<'END' 3144Aborting the configuration process, to ensure you take notice of the issue. 3145 3146You can download and install GNU coreutils to get an 'rm' implementation 3147that behaves properly: <http://www.gnu.org/software/coreutils/>. 3148 3149If you want to complete the configuration process using your problematic 3150'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3151to "yes", and re-run configure. 3152 3153END 3154 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3155 fi 3156fi 3157 3158 3159# Check whether --enable-silent-rules was given. 3160if test "${enable_silent_rules+set}" = set; then : 3161 enableval=$enable_silent_rules; 3162fi 3163 3164case $enable_silent_rules in # ((( 3165 yes) AM_DEFAULT_VERBOSITY=0;; 3166 no) AM_DEFAULT_VERBOSITY=1;; 3167 *) AM_DEFAULT_VERBOSITY=0;; 3168esac 3169am_make=${MAKE-make} 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3171$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3172if ${am_cv_make_support_nested_variables+:} false; then : 3173 $as_echo_n "(cached) " >&6 3174else 3175 if $as_echo 'TRUE=$(BAR$(V)) 3176BAR0=false 3177BAR1=true 3178V=1 3179am__doit: 3180 @$(TRUE) 3181.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3182 am_cv_make_support_nested_variables=yes 3183else 3184 am_cv_make_support_nested_variables=no 3185fi 3186fi 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3188$as_echo "$am_cv_make_support_nested_variables" >&6; } 3189if test $am_cv_make_support_nested_variables = yes; then 3190 AM_V='$(V)' 3191 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3192else 3193 AM_V=$AM_DEFAULT_VERBOSITY 3194 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3195fi 3196AM_BACKSLASH='\' 3197 3198 3199# Check for programs 3200ac_ext=c 3201ac_cpp='$CPP $CPPFLAGS' 3202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3204ac_compiler_gnu=$ac_cv_c_compiler_gnu 3205if test -n "$ac_tool_prefix"; then 3206 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3207set dummy ${ac_tool_prefix}gcc; ac_word=$2 3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3209$as_echo_n "checking for $ac_word... " >&6; } 3210if ${ac_cv_prog_CC+:} false; then : 3211 $as_echo_n "(cached) " >&6 3212else 3213 if test -n "$CC"; then 3214 ac_cv_prog_CC="$CC" # Let the user override the test. 3215else 3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3217for as_dir in $PATH 3218do 3219 IFS=$as_save_IFS 3220 test -z "$as_dir" && as_dir=. 3221 for ac_exec_ext in '' $ac_executable_extensions; do 3222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3223 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3225 break 2 3226 fi 3227done 3228 done 3229IFS=$as_save_IFS 3230 3231fi 3232fi 3233CC=$ac_cv_prog_CC 3234if test -n "$CC"; then 3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3236$as_echo "$CC" >&6; } 3237else 3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3239$as_echo "no" >&6; } 3240fi 3241 3242 3243fi 3244if test -z "$ac_cv_prog_CC"; then 3245 ac_ct_CC=$CC 3246 # Extract the first word of "gcc", so it can be a program name with args. 3247set dummy gcc; ac_word=$2 3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3249$as_echo_n "checking for $ac_word... " >&6; } 3250if ${ac_cv_prog_ac_ct_CC+:} false; then : 3251 $as_echo_n "(cached) " >&6 3252else 3253 if test -n "$ac_ct_CC"; then 3254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3255else 3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3257for as_dir in $PATH 3258do 3259 IFS=$as_save_IFS 3260 test -z "$as_dir" && as_dir=. 3261 for ac_exec_ext in '' $ac_executable_extensions; do 3262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3263 ac_cv_prog_ac_ct_CC="gcc" 3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3265 break 2 3266 fi 3267done 3268 done 3269IFS=$as_save_IFS 3270 3271fi 3272fi 3273ac_ct_CC=$ac_cv_prog_ac_ct_CC 3274if test -n "$ac_ct_CC"; then 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3276$as_echo "$ac_ct_CC" >&6; } 3277else 3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3279$as_echo "no" >&6; } 3280fi 3281 3282 if test "x$ac_ct_CC" = x; then 3283 CC="" 3284 else 3285 case $cross_compiling:$ac_tool_warned in 3286yes:) 3287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3289ac_tool_warned=yes ;; 3290esac 3291 CC=$ac_ct_CC 3292 fi 3293else 3294 CC="$ac_cv_prog_CC" 3295fi 3296 3297if test -z "$CC"; then 3298 if test -n "$ac_tool_prefix"; then 3299 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3300set dummy ${ac_tool_prefix}cc; ac_word=$2 3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3302$as_echo_n "checking for $ac_word... " >&6; } 3303if ${ac_cv_prog_CC+:} false; then : 3304 $as_echo_n "(cached) " >&6 3305else 3306 if test -n "$CC"; then 3307 ac_cv_prog_CC="$CC" # Let the user override the test. 3308else 3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3310for as_dir in $PATH 3311do 3312 IFS=$as_save_IFS 3313 test -z "$as_dir" && as_dir=. 3314 for ac_exec_ext in '' $ac_executable_extensions; do 3315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3316 ac_cv_prog_CC="${ac_tool_prefix}cc" 3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3318 break 2 3319 fi 3320done 3321 done 3322IFS=$as_save_IFS 3323 3324fi 3325fi 3326CC=$ac_cv_prog_CC 3327if test -n "$CC"; then 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3329$as_echo "$CC" >&6; } 3330else 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3332$as_echo "no" >&6; } 3333fi 3334 3335 3336 fi 3337fi 3338if test -z "$CC"; then 3339 # Extract the first word of "cc", so it can be a program name with args. 3340set dummy cc; ac_word=$2 3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3342$as_echo_n "checking for $ac_word... " >&6; } 3343if ${ac_cv_prog_CC+:} false; then : 3344 $as_echo_n "(cached) " >&6 3345else 3346 if test -n "$CC"; then 3347 ac_cv_prog_CC="$CC" # Let the user override the test. 3348else 3349 ac_prog_rejected=no 3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3351for as_dir in $PATH 3352do 3353 IFS=$as_save_IFS 3354 test -z "$as_dir" && as_dir=. 3355 for ac_exec_ext in '' $ac_executable_extensions; do 3356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3358 ac_prog_rejected=yes 3359 continue 3360 fi 3361 ac_cv_prog_CC="cc" 3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3363 break 2 3364 fi 3365done 3366 done 3367IFS=$as_save_IFS 3368 3369if test $ac_prog_rejected = yes; then 3370 # We found a bogon in the path, so make sure we never use it. 3371 set dummy $ac_cv_prog_CC 3372 shift 3373 if test $# != 0; then 3374 # We chose a different compiler from the bogus one. 3375 # However, it has the same basename, so the bogon will be chosen 3376 # first if we set CC to just the basename; use the full file name. 3377 shift 3378 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3379 fi 3380fi 3381fi 3382fi 3383CC=$ac_cv_prog_CC 3384if test -n "$CC"; then 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3386$as_echo "$CC" >&6; } 3387else 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3389$as_echo "no" >&6; } 3390fi 3391 3392 3393fi 3394if test -z "$CC"; then 3395 if test -n "$ac_tool_prefix"; then 3396 for ac_prog in cl.exe 3397 do 3398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3399set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3401$as_echo_n "checking for $ac_word... " >&6; } 3402if ${ac_cv_prog_CC+:} false; then : 3403 $as_echo_n "(cached) " >&6 3404else 3405 if test -n "$CC"; then 3406 ac_cv_prog_CC="$CC" # Let the user override the test. 3407else 3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3409for as_dir in $PATH 3410do 3411 IFS=$as_save_IFS 3412 test -z "$as_dir" && as_dir=. 3413 for ac_exec_ext in '' $ac_executable_extensions; do 3414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3415 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3417 break 2 3418 fi 3419done 3420 done 3421IFS=$as_save_IFS 3422 3423fi 3424fi 3425CC=$ac_cv_prog_CC 3426if test -n "$CC"; then 3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3428$as_echo "$CC" >&6; } 3429else 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3431$as_echo "no" >&6; } 3432fi 3433 3434 3435 test -n "$CC" && break 3436 done 3437fi 3438if test -z "$CC"; then 3439 ac_ct_CC=$CC 3440 for ac_prog in cl.exe 3441do 3442 # Extract the first word of "$ac_prog", so it can be a program name with args. 3443set dummy $ac_prog; ac_word=$2 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3445$as_echo_n "checking for $ac_word... " >&6; } 3446if ${ac_cv_prog_ac_ct_CC+:} false; then : 3447 $as_echo_n "(cached) " >&6 3448else 3449 if test -n "$ac_ct_CC"; then 3450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3451else 3452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3453for as_dir in $PATH 3454do 3455 IFS=$as_save_IFS 3456 test -z "$as_dir" && as_dir=. 3457 for ac_exec_ext in '' $ac_executable_extensions; do 3458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3459 ac_cv_prog_ac_ct_CC="$ac_prog" 3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3461 break 2 3462 fi 3463done 3464 done 3465IFS=$as_save_IFS 3466 3467fi 3468fi 3469ac_ct_CC=$ac_cv_prog_ac_ct_CC 3470if test -n "$ac_ct_CC"; then 3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3472$as_echo "$ac_ct_CC" >&6; } 3473else 3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3475$as_echo "no" >&6; } 3476fi 3477 3478 3479 test -n "$ac_ct_CC" && break 3480done 3481 3482 if test "x$ac_ct_CC" = x; then 3483 CC="" 3484 else 3485 case $cross_compiling:$ac_tool_warned in 3486yes:) 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3489ac_tool_warned=yes ;; 3490esac 3491 CC=$ac_ct_CC 3492 fi 3493fi 3494 3495fi 3496 3497 3498test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3500as_fn_error $? "no acceptable C compiler found in \$PATH 3501See \`config.log' for more details" "$LINENO" 5; } 3502 3503# Provide some information about the compiler. 3504$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3505set X $ac_compile 3506ac_compiler=$2 3507for ac_option in --version -v -V -qversion; do 3508 { { ac_try="$ac_compiler $ac_option >&5" 3509case "(($ac_try" in 3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3511 *) ac_try_echo=$ac_try;; 3512esac 3513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3514$as_echo "$ac_try_echo"; } >&5 3515 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3516 ac_status=$? 3517 if test -s conftest.err; then 3518 sed '10a\ 3519... rest of stderr output deleted ... 3520 10q' conftest.err >conftest.er1 3521 cat conftest.er1 >&5 3522 fi 3523 rm -f conftest.er1 conftest.err 3524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3525 test $ac_status = 0; } 3526done 3527 3528cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3529/* end confdefs.h. */ 3530 3531int 3532main () 3533{ 3534 3535 ; 3536 return 0; 3537} 3538_ACEOF 3539ac_clean_files_save=$ac_clean_files 3540ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3541# Try to create an executable without -o first, disregard a.out. 3542# It will help us diagnose broken compilers, and finding out an intuition 3543# of exeext. 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3545$as_echo_n "checking whether the C compiler works... " >&6; } 3546ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3547 3548# The possible output files: 3549ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3550 3551ac_rmfiles= 3552for ac_file in $ac_files 3553do 3554 case $ac_file in 3555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3556 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3557 esac 3558done 3559rm -f $ac_rmfiles 3560 3561if { { ac_try="$ac_link_default" 3562case "(($ac_try" in 3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3564 *) ac_try_echo=$ac_try;; 3565esac 3566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3567$as_echo "$ac_try_echo"; } >&5 3568 (eval "$ac_link_default") 2>&5 3569 ac_status=$? 3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3571 test $ac_status = 0; }; then : 3572 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3573# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3574# in a Makefile. We should not override ac_cv_exeext if it was cached, 3575# so that the user can short-circuit this test for compilers unknown to 3576# Autoconf. 3577for ac_file in $ac_files '' 3578do 3579 test -f "$ac_file" || continue 3580 case $ac_file in 3581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3582 ;; 3583 [ab].out ) 3584 # We found the default executable, but exeext='' is most 3585 # certainly right. 3586 break;; 3587 *.* ) 3588 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3589 then :; else 3590 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3591 fi 3592 # We set ac_cv_exeext here because the later test for it is not 3593 # safe: cross compilers may not add the suffix if given an `-o' 3594 # argument, so we may need to know it at that point already. 3595 # Even if this section looks crufty: it has the advantage of 3596 # actually working. 3597 break;; 3598 * ) 3599 break;; 3600 esac 3601done 3602test "$ac_cv_exeext" = no && ac_cv_exeext= 3603 3604else 3605 ac_file='' 3606fi 3607if test -z "$ac_file"; then : 3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3609$as_echo "no" >&6; } 3610$as_echo "$as_me: failed program was:" >&5 3611sed 's/^/| /' conftest.$ac_ext >&5 3612 3613{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3615as_fn_error 77 "C compiler cannot create executables 3616See \`config.log' for more details" "$LINENO" 5; } 3617else 3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3619$as_echo "yes" >&6; } 3620fi 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3622$as_echo_n "checking for C compiler default output file name... " >&6; } 3623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3624$as_echo "$ac_file" >&6; } 3625ac_exeext=$ac_cv_exeext 3626 3627rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3628ac_clean_files=$ac_clean_files_save 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3630$as_echo_n "checking for suffix of executables... " >&6; } 3631if { { ac_try="$ac_link" 3632case "(($ac_try" in 3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3634 *) ac_try_echo=$ac_try;; 3635esac 3636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3637$as_echo "$ac_try_echo"; } >&5 3638 (eval "$ac_link") 2>&5 3639 ac_status=$? 3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3641 test $ac_status = 0; }; then : 3642 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3643# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3644# work properly (i.e., refer to `conftest.exe'), while it won't with 3645# `rm'. 3646for ac_file in conftest.exe conftest conftest.*; do 3647 test -f "$ac_file" || continue 3648 case $ac_file in 3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3650 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3651 break;; 3652 * ) break;; 3653 esac 3654done 3655else 3656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3658as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3659See \`config.log' for more details" "$LINENO" 5; } 3660fi 3661rm -f conftest conftest$ac_cv_exeext 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3663$as_echo "$ac_cv_exeext" >&6; } 3664 3665rm -f conftest.$ac_ext 3666EXEEXT=$ac_cv_exeext 3667ac_exeext=$EXEEXT 3668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3669/* end confdefs.h. */ 3670#include <stdio.h> 3671int 3672main () 3673{ 3674FILE *f = fopen ("conftest.out", "w"); 3675 return ferror (f) || fclose (f) != 0; 3676 3677 ; 3678 return 0; 3679} 3680_ACEOF 3681ac_clean_files="$ac_clean_files conftest.out" 3682# Check that the compiler produces executables we can run. If not, either 3683# the compiler is broken, or we cross compile. 3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3685$as_echo_n "checking whether we are cross compiling... " >&6; } 3686if test "$cross_compiling" != yes; then 3687 { { ac_try="$ac_link" 3688case "(($ac_try" in 3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3690 *) ac_try_echo=$ac_try;; 3691esac 3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3693$as_echo "$ac_try_echo"; } >&5 3694 (eval "$ac_link") 2>&5 3695 ac_status=$? 3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3697 test $ac_status = 0; } 3698 if { ac_try='./conftest$ac_cv_exeext' 3699 { { case "(($ac_try" in 3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3701 *) ac_try_echo=$ac_try;; 3702esac 3703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3704$as_echo "$ac_try_echo"; } >&5 3705 (eval "$ac_try") 2>&5 3706 ac_status=$? 3707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3708 test $ac_status = 0; }; }; then 3709 cross_compiling=no 3710 else 3711 if test "$cross_compiling" = maybe; then 3712 cross_compiling=yes 3713 else 3714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3716as_fn_error $? "cannot run C compiled programs. 3717If you meant to cross compile, use \`--host'. 3718See \`config.log' for more details" "$LINENO" 5; } 3719 fi 3720 fi 3721fi 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3723$as_echo "$cross_compiling" >&6; } 3724 3725rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3726ac_clean_files=$ac_clean_files_save 3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3728$as_echo_n "checking for suffix of object files... " >&6; } 3729if ${ac_cv_objext+:} false; then : 3730 $as_echo_n "(cached) " >&6 3731else 3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3733/* end confdefs.h. */ 3734 3735int 3736main () 3737{ 3738 3739 ; 3740 return 0; 3741} 3742_ACEOF 3743rm -f conftest.o conftest.obj 3744if { { ac_try="$ac_compile" 3745case "(($ac_try" in 3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3747 *) ac_try_echo=$ac_try;; 3748esac 3749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3750$as_echo "$ac_try_echo"; } >&5 3751 (eval "$ac_compile") 2>&5 3752 ac_status=$? 3753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3754 test $ac_status = 0; }; then : 3755 for ac_file in conftest.o conftest.obj conftest.*; do 3756 test -f "$ac_file" || continue; 3757 case $ac_file in 3758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3759 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3760 break;; 3761 esac 3762done 3763else 3764 $as_echo "$as_me: failed program was:" >&5 3765sed 's/^/| /' conftest.$ac_ext >&5 3766 3767{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3769as_fn_error $? "cannot compute suffix of object files: cannot compile 3770See \`config.log' for more details" "$LINENO" 5; } 3771fi 3772rm -f conftest.$ac_cv_objext conftest.$ac_ext 3773fi 3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3775$as_echo "$ac_cv_objext" >&6; } 3776OBJEXT=$ac_cv_objext 3777ac_objext=$OBJEXT 3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3779$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3780if ${ac_cv_c_compiler_gnu+:} false; then : 3781 $as_echo_n "(cached) " >&6 3782else 3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3784/* end confdefs.h. */ 3785 3786int 3787main () 3788{ 3789#ifndef __GNUC__ 3790 choke me 3791#endif 3792 3793 ; 3794 return 0; 3795} 3796_ACEOF 3797if ac_fn_c_try_compile "$LINENO"; then : 3798 ac_compiler_gnu=yes 3799else 3800 ac_compiler_gnu=no 3801fi 3802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3803ac_cv_c_compiler_gnu=$ac_compiler_gnu 3804 3805fi 3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3807$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3808if test $ac_compiler_gnu = yes; then 3809 GCC=yes 3810else 3811 GCC= 3812fi 3813ac_test_CFLAGS=${CFLAGS+set} 3814ac_save_CFLAGS=$CFLAGS 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3816$as_echo_n "checking whether $CC accepts -g... " >&6; } 3817if ${ac_cv_prog_cc_g+:} false; then : 3818 $as_echo_n "(cached) " >&6 3819else 3820 ac_save_c_werror_flag=$ac_c_werror_flag 3821 ac_c_werror_flag=yes 3822 ac_cv_prog_cc_g=no 3823 CFLAGS="-g" 3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3825/* end confdefs.h. */ 3826 3827int 3828main () 3829{ 3830 3831 ; 3832 return 0; 3833} 3834_ACEOF 3835if ac_fn_c_try_compile "$LINENO"; then : 3836 ac_cv_prog_cc_g=yes 3837else 3838 CFLAGS="" 3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3840/* end confdefs.h. */ 3841 3842int 3843main () 3844{ 3845 3846 ; 3847 return 0; 3848} 3849_ACEOF 3850if ac_fn_c_try_compile "$LINENO"; then : 3851 3852else 3853 ac_c_werror_flag=$ac_save_c_werror_flag 3854 CFLAGS="-g" 3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3856/* end confdefs.h. */ 3857 3858int 3859main () 3860{ 3861 3862 ; 3863 return 0; 3864} 3865_ACEOF 3866if ac_fn_c_try_compile "$LINENO"; then : 3867 ac_cv_prog_cc_g=yes 3868fi 3869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3870fi 3871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3872fi 3873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3874 ac_c_werror_flag=$ac_save_c_werror_flag 3875fi 3876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3877$as_echo "$ac_cv_prog_cc_g" >&6; } 3878if test "$ac_test_CFLAGS" = set; then 3879 CFLAGS=$ac_save_CFLAGS 3880elif test $ac_cv_prog_cc_g = yes; then 3881 if test "$GCC" = yes; then 3882 CFLAGS="-g -O2" 3883 else 3884 CFLAGS="-g" 3885 fi 3886else 3887 if test "$GCC" = yes; then 3888 CFLAGS="-O2" 3889 else 3890 CFLAGS= 3891 fi 3892fi 3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3894$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3895if ${ac_cv_prog_cc_c89+:} false; then : 3896 $as_echo_n "(cached) " >&6 3897else 3898 ac_cv_prog_cc_c89=no 3899ac_save_CC=$CC 3900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3901/* end confdefs.h. */ 3902#include <stdarg.h> 3903#include <stdio.h> 3904struct stat; 3905/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3906struct buf { int x; }; 3907FILE * (*rcsopen) (struct buf *, struct stat *, int); 3908static char *e (p, i) 3909 char **p; 3910 int i; 3911{ 3912 return p[i]; 3913} 3914static char *f (char * (*g) (char **, int), char **p, ...) 3915{ 3916 char *s; 3917 va_list v; 3918 va_start (v,p); 3919 s = g (p, va_arg (v,int)); 3920 va_end (v); 3921 return s; 3922} 3923 3924/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3925 function prototypes and stuff, but not '\xHH' hex character constants. 3926 These don't provoke an error unfortunately, instead are silently treated 3927 as 'x'. The following induces an error, until -std is added to get 3928 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3929 array size at least. It's necessary to write '\x00'==0 to get something 3930 that's true only with -std. */ 3931int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3932 3933/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3934 inside strings and character constants. */ 3935#define FOO(x) 'x' 3936int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3937 3938int test (int i, double x); 3939struct s1 {int (*f) (int a);}; 3940struct s2 {int (*f) (double a);}; 3941int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3942int argc; 3943char **argv; 3944int 3945main () 3946{ 3947return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3948 ; 3949 return 0; 3950} 3951_ACEOF 3952for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3953 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3954do 3955 CC="$ac_save_CC $ac_arg" 3956 if ac_fn_c_try_compile "$LINENO"; then : 3957 ac_cv_prog_cc_c89=$ac_arg 3958fi 3959rm -f core conftest.err conftest.$ac_objext 3960 test "x$ac_cv_prog_cc_c89" != "xno" && break 3961done 3962rm -f conftest.$ac_ext 3963CC=$ac_save_CC 3964 3965fi 3966# AC_CACHE_VAL 3967case "x$ac_cv_prog_cc_c89" in 3968 x) 3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3970$as_echo "none needed" >&6; } ;; 3971 xno) 3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3973$as_echo "unsupported" >&6; } ;; 3974 *) 3975 CC="$CC $ac_cv_prog_cc_c89" 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3977$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3978esac 3979if test "x$ac_cv_prog_cc_c89" != xno; then : 3980 3981fi 3982 3983ac_ext=c 3984ac_cpp='$CPP $CPPFLAGS' 3985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3987ac_compiler_gnu=$ac_cv_c_compiler_gnu 3988 3989ac_ext=c 3990ac_cpp='$CPP $CPPFLAGS' 3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3993ac_compiler_gnu=$ac_cv_c_compiler_gnu 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3995$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3996if ${am_cv_prog_cc_c_o+:} false; then : 3997 $as_echo_n "(cached) " >&6 3998else 3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4000/* end confdefs.h. */ 4001 4002int 4003main () 4004{ 4005 4006 ; 4007 return 0; 4008} 4009_ACEOF 4010 # Make sure it works both with $CC and with simple cc. 4011 # Following AC_PROG_CC_C_O, we do the test twice because some 4012 # compilers refuse to overwrite an existing .o file with -o, 4013 # though they will create one. 4014 am_cv_prog_cc_c_o=yes 4015 for am_i in 1 2; do 4016 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4017 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4018 ac_status=$? 4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4020 (exit $ac_status); } \ 4021 && test -f conftest2.$ac_objext; then 4022 : OK 4023 else 4024 am_cv_prog_cc_c_o=no 4025 break 4026 fi 4027 done 4028 rm -f core conftest* 4029 unset am_i 4030fi 4031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4032$as_echo "$am_cv_prog_cc_c_o" >&6; } 4033if test "$am_cv_prog_cc_c_o" != yes; then 4034 # Losing compiler, so override with the script. 4035 # FIXME: It is wrong to rewrite CC. 4036 # But if we don't then we get into trouble of one sort or another. 4037 # A longer-term fix would be to have automake use am__CC in this case, 4038 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4039 CC="$am_aux_dir/compile $CC" 4040fi 4041ac_ext=c 4042ac_cpp='$CPP $CPPFLAGS' 4043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4045ac_compiler_gnu=$ac_cv_c_compiler_gnu 4046 4047DEPDIR="${am__leading_dot}deps" 4048 4049ac_config_commands="$ac_config_commands depfiles" 4050 4051 4052am_make=${MAKE-make} 4053cat > confinc << 'END' 4054am__doit: 4055 @echo this is the am__doit target 4056.PHONY: am__doit 4057END 4058# If we don't find an include directive, just comment out the code. 4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4060$as_echo_n "checking for style of include used by $am_make... " >&6; } 4061am__include="#" 4062am__quote= 4063_am_result=none 4064# First try GNU make style include. 4065echo "include confinc" > confmf 4066# Ignore all kinds of additional output from 'make'. 4067case `$am_make -s -f confmf 2> /dev/null` in #( 4068*the\ am__doit\ target*) 4069 am__include=include 4070 am__quote= 4071 _am_result=GNU 4072 ;; 4073esac 4074# Now try BSD make style include. 4075if test "$am__include" = "#"; then 4076 echo '.include "confinc"' > confmf 4077 case `$am_make -s -f confmf 2> /dev/null` in #( 4078 *the\ am__doit\ target*) 4079 am__include=.include 4080 am__quote="\"" 4081 _am_result=BSD 4082 ;; 4083 esac 4084fi 4085 4086 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4088$as_echo "$_am_result" >&6; } 4089rm -f confinc confmf 4090 4091# Check whether --enable-dependency-tracking was given. 4092if test "${enable_dependency_tracking+set}" = set; then : 4093 enableval=$enable_dependency_tracking; 4094fi 4095 4096if test "x$enable_dependency_tracking" != xno; then 4097 am_depcomp="$ac_aux_dir/depcomp" 4098 AMDEPBACKSLASH='\' 4099 am__nodep='_no' 4100fi 4101 if test "x$enable_dependency_tracking" != xno; then 4102 AMDEP_TRUE= 4103 AMDEP_FALSE='#' 4104else 4105 AMDEP_TRUE='#' 4106 AMDEP_FALSE= 4107fi 4108 4109 4110 4111depcc="$CC" am_compiler_list= 4112 4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4114$as_echo_n "checking dependency style of $depcc... " >&6; } 4115if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4116 $as_echo_n "(cached) " >&6 4117else 4118 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4119 # We make a subdir and do the tests there. Otherwise we can end up 4120 # making bogus files that we don't know about and never remove. For 4121 # instance it was reported that on HP-UX the gcc test will end up 4122 # making a dummy file named 'D' -- because '-MD' means "put the output 4123 # in D". 4124 rm -rf conftest.dir 4125 mkdir conftest.dir 4126 # Copy depcomp to subdir because otherwise we won't find it if we're 4127 # using a relative directory. 4128 cp "$am_depcomp" conftest.dir 4129 cd conftest.dir 4130 # We will build objects and dependencies in a subdirectory because 4131 # it helps to detect inapplicable dependency modes. For instance 4132 # both Tru64's cc and ICC support -MD to output dependencies as a 4133 # side effect of compilation, but ICC will put the dependencies in 4134 # the current directory while Tru64 will put them in the object 4135 # directory. 4136 mkdir sub 4137 4138 am_cv_CC_dependencies_compiler_type=none 4139 if test "$am_compiler_list" = ""; then 4140 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4141 fi 4142 am__universal=false 4143 case " $depcc " in #( 4144 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4145 esac 4146 4147 for depmode in $am_compiler_list; do 4148 # Setup a source with many dependencies, because some compilers 4149 # like to wrap large dependency lists on column 80 (with \), and 4150 # we should not choose a depcomp mode which is confused by this. 4151 # 4152 # We need to recreate these files for each test, as the compiler may 4153 # overwrite some of them when testing with obscure command lines. 4154 # This happens at least with the AIX C compiler. 4155 : > sub/conftest.c 4156 for i in 1 2 3 4 5 6; do 4157 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4158 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4159 # Solaris 10 /bin/sh. 4160 echo '/* dummy */' > sub/conftst$i.h 4161 done 4162 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4163 4164 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4165 # mode. It turns out that the SunPro C++ compiler does not properly 4166 # handle '-M -o', and we need to detect this. Also, some Intel 4167 # versions had trouble with output in subdirs. 4168 am__obj=sub/conftest.${OBJEXT-o} 4169 am__minus_obj="-o $am__obj" 4170 case $depmode in 4171 gcc) 4172 # This depmode causes a compiler race in universal mode. 4173 test "$am__universal" = false || continue 4174 ;; 4175 nosideeffect) 4176 # After this tag, mechanisms are not by side-effect, so they'll 4177 # only be used when explicitly requested. 4178 if test "x$enable_dependency_tracking" = xyes; then 4179 continue 4180 else 4181 break 4182 fi 4183 ;; 4184 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4185 # This compiler won't grok '-c -o', but also, the minuso test has 4186 # not run yet. These depmodes are late enough in the game, and 4187 # so weak that their functioning should not be impacted. 4188 am__obj=conftest.${OBJEXT-o} 4189 am__minus_obj= 4190 ;; 4191 none) break ;; 4192 esac 4193 if depmode=$depmode \ 4194 source=sub/conftest.c object=$am__obj \ 4195 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4196 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4197 >/dev/null 2>conftest.err && 4198 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4199 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4200 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4201 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4202 # icc doesn't choke on unknown options, it will just issue warnings 4203 # or remarks (even with -Werror). So we grep stderr for any message 4204 # that says an option was ignored or not supported. 4205 # When given -MP, icc 7.0 and 7.1 complain thusly: 4206 # icc: Command line warning: ignoring option '-M'; no argument required 4207 # The diagnosis changed in icc 8.0: 4208 # icc: Command line remark: option '-MP' not supported 4209 if (grep 'ignoring option' conftest.err || 4210 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4211 am_cv_CC_dependencies_compiler_type=$depmode 4212 break 4213 fi 4214 fi 4215 done 4216 4217 cd .. 4218 rm -rf conftest.dir 4219else 4220 am_cv_CC_dependencies_compiler_type=none 4221fi 4222 4223fi 4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4225$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4226CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4227 4228 if 4229 test "x$enable_dependency_tracking" != xno \ 4230 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4231 am__fastdepCC_TRUE= 4232 am__fastdepCC_FALSE='#' 4233else 4234 am__fastdepCC_TRUE='#' 4235 am__fastdepCC_FALSE= 4236fi 4237 4238 4239ac_ext=cpp 4240ac_cpp='$CXXCPP $CPPFLAGS' 4241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4244if test -z "$CXX"; then 4245 if test -n "$CCC"; then 4246 CXX=$CCC 4247 else 4248 if test -n "$ac_tool_prefix"; then 4249 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4250 do 4251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4252set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4254$as_echo_n "checking for $ac_word... " >&6; } 4255if ${ac_cv_prog_CXX+:} false; then : 4256 $as_echo_n "(cached) " >&6 4257else 4258 if test -n "$CXX"; then 4259 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4260else 4261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4262for as_dir in $PATH 4263do 4264 IFS=$as_save_IFS 4265 test -z "$as_dir" && as_dir=. 4266 for ac_exec_ext in '' $ac_executable_extensions; do 4267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4268 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4270 break 2 4271 fi 4272done 4273 done 4274IFS=$as_save_IFS 4275 4276fi 4277fi 4278CXX=$ac_cv_prog_CXX 4279if test -n "$CXX"; then 4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4281$as_echo "$CXX" >&6; } 4282else 4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4284$as_echo "no" >&6; } 4285fi 4286 4287 4288 test -n "$CXX" && break 4289 done 4290fi 4291if test -z "$CXX"; then 4292 ac_ct_CXX=$CXX 4293 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4294do 4295 # Extract the first word of "$ac_prog", so it can be a program name with args. 4296set dummy $ac_prog; ac_word=$2 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4298$as_echo_n "checking for $ac_word... " >&6; } 4299if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4300 $as_echo_n "(cached) " >&6 4301else 4302 if test -n "$ac_ct_CXX"; then 4303 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4304else 4305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4306for as_dir in $PATH 4307do 4308 IFS=$as_save_IFS 4309 test -z "$as_dir" && as_dir=. 4310 for ac_exec_ext in '' $ac_executable_extensions; do 4311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4312 ac_cv_prog_ac_ct_CXX="$ac_prog" 4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4314 break 2 4315 fi 4316done 4317 done 4318IFS=$as_save_IFS 4319 4320fi 4321fi 4322ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4323if test -n "$ac_ct_CXX"; then 4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4325$as_echo "$ac_ct_CXX" >&6; } 4326else 4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4328$as_echo "no" >&6; } 4329fi 4330 4331 4332 test -n "$ac_ct_CXX" && break 4333done 4334 4335 if test "x$ac_ct_CXX" = x; then 4336 CXX="g++" 4337 else 4338 case $cross_compiling:$ac_tool_warned in 4339yes:) 4340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4342ac_tool_warned=yes ;; 4343esac 4344 CXX=$ac_ct_CXX 4345 fi 4346fi 4347 4348 fi 4349fi 4350# Provide some information about the compiler. 4351$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4352set X $ac_compile 4353ac_compiler=$2 4354for ac_option in --version -v -V -qversion; do 4355 { { ac_try="$ac_compiler $ac_option >&5" 4356case "(($ac_try" in 4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4358 *) ac_try_echo=$ac_try;; 4359esac 4360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4361$as_echo "$ac_try_echo"; } >&5 4362 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4363 ac_status=$? 4364 if test -s conftest.err; then 4365 sed '10a\ 4366... rest of stderr output deleted ... 4367 10q' conftest.err >conftest.er1 4368 cat conftest.er1 >&5 4369 fi 4370 rm -f conftest.er1 conftest.err 4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4372 test $ac_status = 0; } 4373done 4374 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4376$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4377if ${ac_cv_cxx_compiler_gnu+:} false; then : 4378 $as_echo_n "(cached) " >&6 4379else 4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4381/* end confdefs.h. */ 4382 4383int 4384main () 4385{ 4386#ifndef __GNUC__ 4387 choke me 4388#endif 4389 4390 ; 4391 return 0; 4392} 4393_ACEOF 4394if ac_fn_cxx_try_compile "$LINENO"; then : 4395 ac_compiler_gnu=yes 4396else 4397 ac_compiler_gnu=no 4398fi 4399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4400ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4401 4402fi 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4404$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4405if test $ac_compiler_gnu = yes; then 4406 GXX=yes 4407else 4408 GXX= 4409fi 4410ac_test_CXXFLAGS=${CXXFLAGS+set} 4411ac_save_CXXFLAGS=$CXXFLAGS 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4413$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4414if ${ac_cv_prog_cxx_g+:} false; then : 4415 $as_echo_n "(cached) " >&6 4416else 4417 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4418 ac_cxx_werror_flag=yes 4419 ac_cv_prog_cxx_g=no 4420 CXXFLAGS="-g" 4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4422/* end confdefs.h. */ 4423 4424int 4425main () 4426{ 4427 4428 ; 4429 return 0; 4430} 4431_ACEOF 4432if ac_fn_cxx_try_compile "$LINENO"; then : 4433 ac_cv_prog_cxx_g=yes 4434else 4435 CXXFLAGS="" 4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4437/* end confdefs.h. */ 4438 4439int 4440main () 4441{ 4442 4443 ; 4444 return 0; 4445} 4446_ACEOF 4447if ac_fn_cxx_try_compile "$LINENO"; then : 4448 4449else 4450 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4451 CXXFLAGS="-g" 4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4453/* end confdefs.h. */ 4454 4455int 4456main () 4457{ 4458 4459 ; 4460 return 0; 4461} 4462_ACEOF 4463if ac_fn_cxx_try_compile "$LINENO"; then : 4464 ac_cv_prog_cxx_g=yes 4465fi 4466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4467fi 4468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4469fi 4470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4471 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4472fi 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4474$as_echo "$ac_cv_prog_cxx_g" >&6; } 4475if test "$ac_test_CXXFLAGS" = set; then 4476 CXXFLAGS=$ac_save_CXXFLAGS 4477elif test $ac_cv_prog_cxx_g = yes; then 4478 if test "$GXX" = yes; then 4479 CXXFLAGS="-g -O2" 4480 else 4481 CXXFLAGS="-g" 4482 fi 4483else 4484 if test "$GXX" = yes; then 4485 CXXFLAGS="-O2" 4486 else 4487 CXXFLAGS= 4488 fi 4489fi 4490ac_ext=c 4491ac_cpp='$CPP $CPPFLAGS' 4492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4494ac_compiler_gnu=$ac_cv_c_compiler_gnu 4495 4496depcc="$CXX" am_compiler_list= 4497 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4499$as_echo_n "checking dependency style of $depcc... " >&6; } 4500if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4501 $as_echo_n "(cached) " >&6 4502else 4503 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4504 # We make a subdir and do the tests there. Otherwise we can end up 4505 # making bogus files that we don't know about and never remove. For 4506 # instance it was reported that on HP-UX the gcc test will end up 4507 # making a dummy file named 'D' -- because '-MD' means "put the output 4508 # in D". 4509 rm -rf conftest.dir 4510 mkdir conftest.dir 4511 # Copy depcomp to subdir because otherwise we won't find it if we're 4512 # using a relative directory. 4513 cp "$am_depcomp" conftest.dir 4514 cd conftest.dir 4515 # We will build objects and dependencies in a subdirectory because 4516 # it helps to detect inapplicable dependency modes. For instance 4517 # both Tru64's cc and ICC support -MD to output dependencies as a 4518 # side effect of compilation, but ICC will put the dependencies in 4519 # the current directory while Tru64 will put them in the object 4520 # directory. 4521 mkdir sub 4522 4523 am_cv_CXX_dependencies_compiler_type=none 4524 if test "$am_compiler_list" = ""; then 4525 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4526 fi 4527 am__universal=false 4528 case " $depcc " in #( 4529 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4530 esac 4531 4532 for depmode in $am_compiler_list; do 4533 # Setup a source with many dependencies, because some compilers 4534 # like to wrap large dependency lists on column 80 (with \), and 4535 # we should not choose a depcomp mode which is confused by this. 4536 # 4537 # We need to recreate these files for each test, as the compiler may 4538 # overwrite some of them when testing with obscure command lines. 4539 # This happens at least with the AIX C compiler. 4540 : > sub/conftest.c 4541 for i in 1 2 3 4 5 6; do 4542 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4543 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4544 # Solaris 10 /bin/sh. 4545 echo '/* dummy */' > sub/conftst$i.h 4546 done 4547 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4548 4549 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4550 # mode. It turns out that the SunPro C++ compiler does not properly 4551 # handle '-M -o', and we need to detect this. Also, some Intel 4552 # versions had trouble with output in subdirs. 4553 am__obj=sub/conftest.${OBJEXT-o} 4554 am__minus_obj="-o $am__obj" 4555 case $depmode in 4556 gcc) 4557 # This depmode causes a compiler race in universal mode. 4558 test "$am__universal" = false || continue 4559 ;; 4560 nosideeffect) 4561 # After this tag, mechanisms are not by side-effect, so they'll 4562 # only be used when explicitly requested. 4563 if test "x$enable_dependency_tracking" = xyes; then 4564 continue 4565 else 4566 break 4567 fi 4568 ;; 4569 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4570 # This compiler won't grok '-c -o', but also, the minuso test has 4571 # not run yet. These depmodes are late enough in the game, and 4572 # so weak that their functioning should not be impacted. 4573 am__obj=conftest.${OBJEXT-o} 4574 am__minus_obj= 4575 ;; 4576 none) break ;; 4577 esac 4578 if depmode=$depmode \ 4579 source=sub/conftest.c object=$am__obj \ 4580 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4581 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4582 >/dev/null 2>conftest.err && 4583 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4584 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4585 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4586 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4587 # icc doesn't choke on unknown options, it will just issue warnings 4588 # or remarks (even with -Werror). So we grep stderr for any message 4589 # that says an option was ignored or not supported. 4590 # When given -MP, icc 7.0 and 7.1 complain thusly: 4591 # icc: Command line warning: ignoring option '-M'; no argument required 4592 # The diagnosis changed in icc 8.0: 4593 # icc: Command line remark: option '-MP' not supported 4594 if (grep 'ignoring option' conftest.err || 4595 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4596 am_cv_CXX_dependencies_compiler_type=$depmode 4597 break 4598 fi 4599 fi 4600 done 4601 4602 cd .. 4603 rm -rf conftest.dir 4604else 4605 am_cv_CXX_dependencies_compiler_type=none 4606fi 4607 4608fi 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4610$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4611CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4612 4613 if 4614 test "x$enable_dependency_tracking" != xno \ 4615 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4616 am__fastdepCXX_TRUE= 4617 am__fastdepCXX_FALSE='#' 4618else 4619 am__fastdepCXX_TRUE='#' 4620 am__fastdepCXX_FALSE= 4621fi 4622 4623 4624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4625$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4626if ${ac_cv_path_GREP+:} false; then : 4627 $as_echo_n "(cached) " >&6 4628else 4629 if test -z "$GREP"; then 4630 ac_path_GREP_found=false 4631 # Loop through the user's path and test for each of PROGNAME-LIST 4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4633for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4634do 4635 IFS=$as_save_IFS 4636 test -z "$as_dir" && as_dir=. 4637 for ac_prog in grep ggrep; do 4638 for ac_exec_ext in '' $ac_executable_extensions; do 4639 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4640 as_fn_executable_p "$ac_path_GREP" || continue 4641# Check for GNU ac_path_GREP and select it if it is found. 4642 # Check for GNU $ac_path_GREP 4643case `"$ac_path_GREP" --version 2>&1` in 4644*GNU*) 4645 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4646*) 4647 ac_count=0 4648 $as_echo_n 0123456789 >"conftest.in" 4649 while : 4650 do 4651 cat "conftest.in" "conftest.in" >"conftest.tmp" 4652 mv "conftest.tmp" "conftest.in" 4653 cp "conftest.in" "conftest.nl" 4654 $as_echo 'GREP' >> "conftest.nl" 4655 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4656 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4657 as_fn_arith $ac_count + 1 && ac_count=$as_val 4658 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4659 # Best one so far, save it but keep looking for a better one 4660 ac_cv_path_GREP="$ac_path_GREP" 4661 ac_path_GREP_max=$ac_count 4662 fi 4663 # 10*(2^10) chars as input seems more than enough 4664 test $ac_count -gt 10 && break 4665 done 4666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4667esac 4668 4669 $ac_path_GREP_found && break 3 4670 done 4671 done 4672 done 4673IFS=$as_save_IFS 4674 if test -z "$ac_cv_path_GREP"; then 4675 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4676 fi 4677else 4678 ac_cv_path_GREP=$GREP 4679fi 4680 4681fi 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4683$as_echo "$ac_cv_path_GREP" >&6; } 4684 GREP="$ac_cv_path_GREP" 4685 4686 4687# By default we simply use the C compiler to build assembly code. 4688 4689test "${CCAS+set}" = set || CCAS=$CC 4690test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 4691 4692 4693 4694depcc="$CCAS" am_compiler_list= 4695 4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4697$as_echo_n "checking dependency style of $depcc... " >&6; } 4698if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 4699 $as_echo_n "(cached) " >&6 4700else 4701 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4702 # We make a subdir and do the tests there. Otherwise we can end up 4703 # making bogus files that we don't know about and never remove. For 4704 # instance it was reported that on HP-UX the gcc test will end up 4705 # making a dummy file named 'D' -- because '-MD' means "put the output 4706 # in D". 4707 rm -rf conftest.dir 4708 mkdir conftest.dir 4709 # Copy depcomp to subdir because otherwise we won't find it if we're 4710 # using a relative directory. 4711 cp "$am_depcomp" conftest.dir 4712 cd conftest.dir 4713 # We will build objects and dependencies in a subdirectory because 4714 # it helps to detect inapplicable dependency modes. For instance 4715 # both Tru64's cc and ICC support -MD to output dependencies as a 4716 # side effect of compilation, but ICC will put the dependencies in 4717 # the current directory while Tru64 will put them in the object 4718 # directory. 4719 mkdir sub 4720 4721 am_cv_CCAS_dependencies_compiler_type=none 4722 if test "$am_compiler_list" = ""; then 4723 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4724 fi 4725 am__universal=false 4726 4727 4728 for depmode in $am_compiler_list; do 4729 # Setup a source with many dependencies, because some compilers 4730 # like to wrap large dependency lists on column 80 (with \), and 4731 # we should not choose a depcomp mode which is confused by this. 4732 # 4733 # We need to recreate these files for each test, as the compiler may 4734 # overwrite some of them when testing with obscure command lines. 4735 # This happens at least with the AIX C compiler. 4736 : > sub/conftest.c 4737 for i in 1 2 3 4 5 6; do 4738 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4739 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4740 # Solaris 10 /bin/sh. 4741 echo '/* dummy */' > sub/conftst$i.h 4742 done 4743 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4744 4745 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4746 # mode. It turns out that the SunPro C++ compiler does not properly 4747 # handle '-M -o', and we need to detect this. Also, some Intel 4748 # versions had trouble with output in subdirs. 4749 am__obj=sub/conftest.${OBJEXT-o} 4750 am__minus_obj="-o $am__obj" 4751 case $depmode in 4752 gcc) 4753 # This depmode causes a compiler race in universal mode. 4754 test "$am__universal" = false || continue 4755 ;; 4756 nosideeffect) 4757 # After this tag, mechanisms are not by side-effect, so they'll 4758 # only be used when explicitly requested. 4759 if test "x$enable_dependency_tracking" = xyes; then 4760 continue 4761 else 4762 break 4763 fi 4764 ;; 4765 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4766 # This compiler won't grok '-c -o', but also, the minuso test has 4767 # not run yet. These depmodes are late enough in the game, and 4768 # so weak that their functioning should not be impacted. 4769 am__obj=conftest.${OBJEXT-o} 4770 am__minus_obj= 4771 ;; 4772 none) break ;; 4773 esac 4774 if depmode=$depmode \ 4775 source=sub/conftest.c object=$am__obj \ 4776 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4777 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4778 >/dev/null 2>conftest.err && 4779 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4780 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4781 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4782 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4783 # icc doesn't choke on unknown options, it will just issue warnings 4784 # or remarks (even with -Werror). So we grep stderr for any message 4785 # that says an option was ignored or not supported. 4786 # When given -MP, icc 7.0 and 7.1 complain thusly: 4787 # icc: Command line warning: ignoring option '-M'; no argument required 4788 # The diagnosis changed in icc 8.0: 4789 # icc: Command line remark: option '-MP' not supported 4790 if (grep 'ignoring option' conftest.err || 4791 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4792 am_cv_CCAS_dependencies_compiler_type=$depmode 4793 break 4794 fi 4795 fi 4796 done 4797 4798 cd .. 4799 rm -rf conftest.dir 4800else 4801 am_cv_CCAS_dependencies_compiler_type=none 4802fi 4803 4804fi 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 4806$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 4807CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 4808 4809 if 4810 test "x$enable_dependency_tracking" != xno \ 4811 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 4812 am__fastdepCCAS_TRUE= 4813 am__fastdepCCAS_FALSE='#' 4814else 4815 am__fastdepCCAS_TRUE='#' 4816 am__fastdepCCAS_FALSE= 4817fi 4818 4819 4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4821$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4822if ${lt_cv_path_NM+:} false; then : 4823 $as_echo_n "(cached) " >&6 4824else 4825 if test -n "$NM"; then 4826 # Let the user override the test. 4827 lt_cv_path_NM=$NM 4828else 4829 lt_nm_to_check=${ac_tool_prefix}nm 4830 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4831 lt_nm_to_check="$lt_nm_to_check nm" 4832 fi 4833 for lt_tmp_nm in $lt_nm_to_check; do 4834 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4835 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4836 IFS=$lt_save_ifs 4837 test -z "$ac_dir" && ac_dir=. 4838 tmp_nm=$ac_dir/$lt_tmp_nm 4839 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4840 # Check to see if the nm accepts a BSD-compat flag. 4841 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4842 # nm: unknown option "B" ignored 4843 # Tru64's nm complains that /dev/null is an invalid object file 4844 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4845 case $build_os in 4846 mingw*) lt_bad_file=conftest.nm/nofile ;; 4847 *) lt_bad_file=/dev/null ;; 4848 esac 4849 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4850 *$lt_bad_file* | *'Invalid file or object type'*) 4851 lt_cv_path_NM="$tmp_nm -B" 4852 break 2 4853 ;; 4854 *) 4855 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4856 */dev/null*) 4857 lt_cv_path_NM="$tmp_nm -p" 4858 break 2 4859 ;; 4860 *) 4861 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4862 continue # so that we can try to find one that supports BSD flags 4863 ;; 4864 esac 4865 ;; 4866 esac 4867 fi 4868 done 4869 IFS=$lt_save_ifs 4870 done 4871 : ${lt_cv_path_NM=no} 4872fi 4873fi 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4875$as_echo "$lt_cv_path_NM" >&6; } 4876if test no != "$lt_cv_path_NM"; then 4877 NM=$lt_cv_path_NM 4878else 4879 # Didn't find any BSD compatible name lister, look for dumpbin. 4880 if test -n "$DUMPBIN"; then : 4881 # Let the user override the test. 4882 else 4883 if test -n "$ac_tool_prefix"; then 4884 for ac_prog in dumpbin "link -dump" 4885 do 4886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4887set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4889$as_echo_n "checking for $ac_word... " >&6; } 4890if ${ac_cv_prog_DUMPBIN+:} false; then : 4891 $as_echo_n "(cached) " >&6 4892else 4893 if test -n "$DUMPBIN"; then 4894 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4895else 4896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4897for as_dir in $PATH 4898do 4899 IFS=$as_save_IFS 4900 test -z "$as_dir" && as_dir=. 4901 for ac_exec_ext in '' $ac_executable_extensions; do 4902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4903 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4905 break 2 4906 fi 4907done 4908 done 4909IFS=$as_save_IFS 4910 4911fi 4912fi 4913DUMPBIN=$ac_cv_prog_DUMPBIN 4914if test -n "$DUMPBIN"; then 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4916$as_echo "$DUMPBIN" >&6; } 4917else 4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4919$as_echo "no" >&6; } 4920fi 4921 4922 4923 test -n "$DUMPBIN" && break 4924 done 4925fi 4926if test -z "$DUMPBIN"; then 4927 ac_ct_DUMPBIN=$DUMPBIN 4928 for ac_prog in dumpbin "link -dump" 4929do 4930 # Extract the first word of "$ac_prog", so it can be a program name with args. 4931set dummy $ac_prog; ac_word=$2 4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4933$as_echo_n "checking for $ac_word... " >&6; } 4934if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4935 $as_echo_n "(cached) " >&6 4936else 4937 if test -n "$ac_ct_DUMPBIN"; then 4938 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4939else 4940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4941for as_dir in $PATH 4942do 4943 IFS=$as_save_IFS 4944 test -z "$as_dir" && as_dir=. 4945 for ac_exec_ext in '' $ac_executable_extensions; do 4946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4947 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4949 break 2 4950 fi 4951done 4952 done 4953IFS=$as_save_IFS 4954 4955fi 4956fi 4957ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4958if test -n "$ac_ct_DUMPBIN"; then 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4960$as_echo "$ac_ct_DUMPBIN" >&6; } 4961else 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4963$as_echo "no" >&6; } 4964fi 4965 4966 4967 test -n "$ac_ct_DUMPBIN" && break 4968done 4969 4970 if test "x$ac_ct_DUMPBIN" = x; then 4971 DUMPBIN=":" 4972 else 4973 case $cross_compiling:$ac_tool_warned in 4974yes:) 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4977ac_tool_warned=yes ;; 4978esac 4979 DUMPBIN=$ac_ct_DUMPBIN 4980 fi 4981fi 4982 4983 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4984 *COFF*) 4985 DUMPBIN="$DUMPBIN -symbols -headers" 4986 ;; 4987 *) 4988 DUMPBIN=: 4989 ;; 4990 esac 4991 fi 4992 4993 if test : != "$DUMPBIN"; then 4994 NM=$DUMPBIN 4995 fi 4996fi 4997test -z "$NM" && NM=nm 4998 4999 5000 5001 5002 5003 5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5005$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5006if ${lt_cv_nm_interface+:} false; then : 5007 $as_echo_n "(cached) " >&6 5008else 5009 lt_cv_nm_interface="BSD nm" 5010 echo "int some_variable = 0;" > conftest.$ac_ext 5011 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5012 (eval "$ac_compile" 2>conftest.err) 5013 cat conftest.err >&5 5014 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5015 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5016 cat conftest.err >&5 5017 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5018 cat conftest.out >&5 5019 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5020 lt_cv_nm_interface="MS dumpbin" 5021 fi 5022 rm -f conftest* 5023fi 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5025$as_echo "$lt_cv_nm_interface" >&6; } 5026 5027 5028# check if we have C++ compiler. This is hacky workaround, 5029# for a reason why it is this way see 5030# http://lists.gnu.org/archive/html/bug-autoconf/2010-05/msg00001.html 5031have_cpp_compiler=yes 5032 5033if ! which "$CXX" &>/dev/null; then 5034 have_cpp_compiler=no 5035fi 5036 5037 if test "x$have_cpp_compiler" = "xyes"; then 5038 ENABLE_CPP_TEST_TRUE= 5039 ENABLE_CPP_TEST_FALSE='#' 5040else 5041 ENABLE_CPP_TEST_TRUE='#' 5042 ENABLE_CPP_TEST_FALSE= 5043fi 5044 5045 5046# Initialize libtool 5047 5048case `pwd` in 5049 *\ * | *\ *) 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5051$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5052esac 5053 5054 5055 5056macro_version='2.4.6' 5057macro_revision='2.4.6' 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071ltmain=$ac_aux_dir/ltmain.sh 5072 5073# Make sure we can run config.sub. 5074$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5075 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5076 5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5078$as_echo_n "checking build system type... " >&6; } 5079if ${ac_cv_build+:} false; then : 5080 $as_echo_n "(cached) " >&6 5081else 5082 ac_build_alias=$build_alias 5083test "x$ac_build_alias" = x && 5084 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5085test "x$ac_build_alias" = x && 5086 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5087ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5088 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5089 5090fi 5091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5092$as_echo "$ac_cv_build" >&6; } 5093case $ac_cv_build in 5094*-*-*) ;; 5095*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5096esac 5097build=$ac_cv_build 5098ac_save_IFS=$IFS; IFS='-' 5099set x $ac_cv_build 5100shift 5101build_cpu=$1 5102build_vendor=$2 5103shift; shift 5104# Remember, the first character of IFS is used to create $*, 5105# except with old shells: 5106build_os=$* 5107IFS=$ac_save_IFS 5108case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5109 5110 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5112$as_echo_n "checking host system type... " >&6; } 5113if ${ac_cv_host+:} false; then : 5114 $as_echo_n "(cached) " >&6 5115else 5116 if test "x$host_alias" = x; then 5117 ac_cv_host=$ac_cv_build 5118else 5119 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5120 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5121fi 5122 5123fi 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5125$as_echo "$ac_cv_host" >&6; } 5126case $ac_cv_host in 5127*-*-*) ;; 5128*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5129esac 5130host=$ac_cv_host 5131ac_save_IFS=$IFS; IFS='-' 5132set x $ac_cv_host 5133shift 5134host_cpu=$1 5135host_vendor=$2 5136shift; shift 5137# Remember, the first character of IFS is used to create $*, 5138# except with old shells: 5139host_os=$* 5140IFS=$ac_save_IFS 5141case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5142 5143 5144# Backslashify metacharacters that are still active within 5145# double-quoted strings. 5146sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5147 5148# Same as above, but do not quote variable references. 5149double_quote_subst='s/\(["`\\]\)/\\\1/g' 5150 5151# Sed substitution to delay expansion of an escaped shell variable in a 5152# double_quote_subst'ed string. 5153delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5154 5155# Sed substitution to delay expansion of an escaped single quote. 5156delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5157 5158# Sed substitution to avoid accidental globbing in evaled expressions 5159no_glob_subst='s/\*/\\\*/g' 5160 5161ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5162ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5163ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5164 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5166$as_echo_n "checking how to print strings... " >&6; } 5167# Test print first, because it will be a builtin if present. 5168if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5169 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5170 ECHO='print -r --' 5171elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5172 ECHO='printf %s\n' 5173else 5174 # Use this function as a fallback that always works. 5175 func_fallback_echo () 5176 { 5177 eval 'cat <<_LTECHO_EOF 5178$1 5179_LTECHO_EOF' 5180 } 5181 ECHO='func_fallback_echo' 5182fi 5183 5184# func_echo_all arg... 5185# Invoke $ECHO with all args, space-separated. 5186func_echo_all () 5187{ 5188 $ECHO "" 5189} 5190 5191case $ECHO in 5192 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5193$as_echo "printf" >&6; } ;; 5194 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5195$as_echo "print -r" >&6; } ;; 5196 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5197$as_echo "cat" >&6; } ;; 5198esac 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5214$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5215if ${ac_cv_path_SED+:} false; then : 5216 $as_echo_n "(cached) " >&6 5217else 5218 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5219 for ac_i in 1 2 3 4 5 6 7; do 5220 ac_script="$ac_script$as_nl$ac_script" 5221 done 5222 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5223 { ac_script=; unset ac_script;} 5224 if test -z "$SED"; then 5225 ac_path_SED_found=false 5226 # Loop through the user's path and test for each of PROGNAME-LIST 5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5228for as_dir in $PATH 5229do 5230 IFS=$as_save_IFS 5231 test -z "$as_dir" && as_dir=. 5232 for ac_prog in sed gsed; do 5233 for ac_exec_ext in '' $ac_executable_extensions; do 5234 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5235 as_fn_executable_p "$ac_path_SED" || continue 5236# Check for GNU ac_path_SED and select it if it is found. 5237 # Check for GNU $ac_path_SED 5238case `"$ac_path_SED" --version 2>&1` in 5239*GNU*) 5240 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5241*) 5242 ac_count=0 5243 $as_echo_n 0123456789 >"conftest.in" 5244 while : 5245 do 5246 cat "conftest.in" "conftest.in" >"conftest.tmp" 5247 mv "conftest.tmp" "conftest.in" 5248 cp "conftest.in" "conftest.nl" 5249 $as_echo '' >> "conftest.nl" 5250 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5252 as_fn_arith $ac_count + 1 && ac_count=$as_val 5253 if test $ac_count -gt ${ac_path_SED_max-0}; then 5254 # Best one so far, save it but keep looking for a better one 5255 ac_cv_path_SED="$ac_path_SED" 5256 ac_path_SED_max=$ac_count 5257 fi 5258 # 10*(2^10) chars as input seems more than enough 5259 test $ac_count -gt 10 && break 5260 done 5261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5262esac 5263 5264 $ac_path_SED_found && break 3 5265 done 5266 done 5267 done 5268IFS=$as_save_IFS 5269 if test -z "$ac_cv_path_SED"; then 5270 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5271 fi 5272else 5273 ac_cv_path_SED=$SED 5274fi 5275 5276fi 5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5278$as_echo "$ac_cv_path_SED" >&6; } 5279 SED="$ac_cv_path_SED" 5280 rm -f conftest.sed 5281 5282test -z "$SED" && SED=sed 5283Xsed="$SED -e 1s/^X//" 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5296$as_echo_n "checking for egrep... " >&6; } 5297if ${ac_cv_path_EGREP+:} false; then : 5298 $as_echo_n "(cached) " >&6 5299else 5300 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5301 then ac_cv_path_EGREP="$GREP -E" 5302 else 5303 if test -z "$EGREP"; then 5304 ac_path_EGREP_found=false 5305 # Loop through the user's path and test for each of PROGNAME-LIST 5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5307for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5308do 5309 IFS=$as_save_IFS 5310 test -z "$as_dir" && as_dir=. 5311 for ac_prog in egrep; do 5312 for ac_exec_ext in '' $ac_executable_extensions; do 5313 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5314 as_fn_executable_p "$ac_path_EGREP" || continue 5315# Check for GNU ac_path_EGREP and select it if it is found. 5316 # Check for GNU $ac_path_EGREP 5317case `"$ac_path_EGREP" --version 2>&1` in 5318*GNU*) 5319 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5320*) 5321 ac_count=0 5322 $as_echo_n 0123456789 >"conftest.in" 5323 while : 5324 do 5325 cat "conftest.in" "conftest.in" >"conftest.tmp" 5326 mv "conftest.tmp" "conftest.in" 5327 cp "conftest.in" "conftest.nl" 5328 $as_echo 'EGREP' >> "conftest.nl" 5329 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5331 as_fn_arith $ac_count + 1 && ac_count=$as_val 5332 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5333 # Best one so far, save it but keep looking for a better one 5334 ac_cv_path_EGREP="$ac_path_EGREP" 5335 ac_path_EGREP_max=$ac_count 5336 fi 5337 # 10*(2^10) chars as input seems more than enough 5338 test $ac_count -gt 10 && break 5339 done 5340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5341esac 5342 5343 $ac_path_EGREP_found && break 3 5344 done 5345 done 5346 done 5347IFS=$as_save_IFS 5348 if test -z "$ac_cv_path_EGREP"; then 5349 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5350 fi 5351else 5352 ac_cv_path_EGREP=$EGREP 5353fi 5354 5355 fi 5356fi 5357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5358$as_echo "$ac_cv_path_EGREP" >&6; } 5359 EGREP="$ac_cv_path_EGREP" 5360 5361 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5363$as_echo_n "checking for fgrep... " >&6; } 5364if ${ac_cv_path_FGREP+:} false; then : 5365 $as_echo_n "(cached) " >&6 5366else 5367 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5368 then ac_cv_path_FGREP="$GREP -F" 5369 else 5370 if test -z "$FGREP"; then 5371 ac_path_FGREP_found=false 5372 # Loop through the user's path and test for each of PROGNAME-LIST 5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5374for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5375do 5376 IFS=$as_save_IFS 5377 test -z "$as_dir" && as_dir=. 5378 for ac_prog in fgrep; do 5379 for ac_exec_ext in '' $ac_executable_extensions; do 5380 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5381 as_fn_executable_p "$ac_path_FGREP" || continue 5382# Check for GNU ac_path_FGREP and select it if it is found. 5383 # Check for GNU $ac_path_FGREP 5384case `"$ac_path_FGREP" --version 2>&1` in 5385*GNU*) 5386 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5387*) 5388 ac_count=0 5389 $as_echo_n 0123456789 >"conftest.in" 5390 while : 5391 do 5392 cat "conftest.in" "conftest.in" >"conftest.tmp" 5393 mv "conftest.tmp" "conftest.in" 5394 cp "conftest.in" "conftest.nl" 5395 $as_echo 'FGREP' >> "conftest.nl" 5396 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5397 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5398 as_fn_arith $ac_count + 1 && ac_count=$as_val 5399 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5400 # Best one so far, save it but keep looking for a better one 5401 ac_cv_path_FGREP="$ac_path_FGREP" 5402 ac_path_FGREP_max=$ac_count 5403 fi 5404 # 10*(2^10) chars as input seems more than enough 5405 test $ac_count -gt 10 && break 5406 done 5407 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5408esac 5409 5410 $ac_path_FGREP_found && break 3 5411 done 5412 done 5413 done 5414IFS=$as_save_IFS 5415 if test -z "$ac_cv_path_FGREP"; then 5416 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5417 fi 5418else 5419 ac_cv_path_FGREP=$FGREP 5420fi 5421 5422 fi 5423fi 5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5425$as_echo "$ac_cv_path_FGREP" >&6; } 5426 FGREP="$ac_cv_path_FGREP" 5427 5428 5429test -z "$GREP" && GREP=grep 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449# Check whether --with-gnu-ld was given. 5450if test "${with_gnu_ld+set}" = set; then : 5451 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5452else 5453 with_gnu_ld=no 5454fi 5455 5456ac_prog=ld 5457if test yes = "$GCC"; then 5458 # Check if gcc -print-prog-name=ld gives a path. 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5460$as_echo_n "checking for ld used by $CC... " >&6; } 5461 case $host in 5462 *-*-mingw*) 5463 # gcc leaves a trailing carriage return, which upsets mingw 5464 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5465 *) 5466 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5467 esac 5468 case $ac_prog in 5469 # Accept absolute paths. 5470 [\\/]* | ?:[\\/]*) 5471 re_direlt='/[^/][^/]*/\.\./' 5472 # Canonicalize the pathname of ld 5473 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5474 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5475 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5476 done 5477 test -z "$LD" && LD=$ac_prog 5478 ;; 5479 "") 5480 # If it fails, then pretend we aren't using GCC. 5481 ac_prog=ld 5482 ;; 5483 *) 5484 # If it is relative, then search for the first ld in PATH. 5485 with_gnu_ld=unknown 5486 ;; 5487 esac 5488elif test yes = "$with_gnu_ld"; then 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5490$as_echo_n "checking for GNU ld... " >&6; } 5491else 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5493$as_echo_n "checking for non-GNU ld... " >&6; } 5494fi 5495if ${lt_cv_path_LD+:} false; then : 5496 $as_echo_n "(cached) " >&6 5497else 5498 if test -z "$LD"; then 5499 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5500 for ac_dir in $PATH; do 5501 IFS=$lt_save_ifs 5502 test -z "$ac_dir" && ac_dir=. 5503 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5504 lt_cv_path_LD=$ac_dir/$ac_prog 5505 # Check to see if the program is GNU ld. I'd rather use --version, 5506 # but apparently some variants of GNU ld only accept -v. 5507 # Break only if it was the GNU/non-GNU ld that we prefer. 5508 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5509 *GNU* | *'with BFD'*) 5510 test no != "$with_gnu_ld" && break 5511 ;; 5512 *) 5513 test yes != "$with_gnu_ld" && break 5514 ;; 5515 esac 5516 fi 5517 done 5518 IFS=$lt_save_ifs 5519else 5520 lt_cv_path_LD=$LD # Let the user override the test with a path. 5521fi 5522fi 5523 5524LD=$lt_cv_path_LD 5525if test -n "$LD"; then 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5527$as_echo "$LD" >&6; } 5528else 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5530$as_echo "no" >&6; } 5531fi 5532test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5534$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5535if ${lt_cv_prog_gnu_ld+:} false; then : 5536 $as_echo_n "(cached) " >&6 5537else 5538 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5539case `$LD -v 2>&1 </dev/null` in 5540*GNU* | *'with BFD'*) 5541 lt_cv_prog_gnu_ld=yes 5542 ;; 5543*) 5544 lt_cv_prog_gnu_ld=no 5545 ;; 5546esac 5547fi 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5549$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5550with_gnu_ld=$lt_cv_prog_gnu_ld 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5561$as_echo_n "checking whether ln -s works... " >&6; } 5562LN_S=$as_ln_s 5563if test "$LN_S" = "ln -s"; then 5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5565$as_echo "yes" >&6; } 5566else 5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5568$as_echo "no, using $LN_S" >&6; } 5569fi 5570 5571# find the maximum length of command line arguments 5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5573$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5574if ${lt_cv_sys_max_cmd_len+:} false; then : 5575 $as_echo_n "(cached) " >&6 5576else 5577 i=0 5578 teststring=ABCD 5579 5580 case $build_os in 5581 msdosdjgpp*) 5582 # On DJGPP, this test can blow up pretty badly due to problems in libc 5583 # (any single argument exceeding 2000 bytes causes a buffer overrun 5584 # during glob expansion). Even if it were fixed, the result of this 5585 # check would be larger than it should be. 5586 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5587 ;; 5588 5589 gnu*) 5590 # Under GNU Hurd, this test is not required because there is 5591 # no limit to the length of command line arguments. 5592 # Libtool will interpret -1 as no limit whatsoever 5593 lt_cv_sys_max_cmd_len=-1; 5594 ;; 5595 5596 cygwin* | mingw* | cegcc*) 5597 # On Win9x/ME, this test blows up -- it succeeds, but takes 5598 # about 5 minutes as the teststring grows exponentially. 5599 # Worse, since 9x/ME are not pre-emptively multitasking, 5600 # you end up with a "frozen" computer, even though with patience 5601 # the test eventually succeeds (with a max line length of 256k). 5602 # Instead, let's just punt: use the minimum linelength reported by 5603 # all of the supported platforms: 8192 (on NT/2K/XP). 5604 lt_cv_sys_max_cmd_len=8192; 5605 ;; 5606 5607 mint*) 5608 # On MiNT this can take a long time and run out of memory. 5609 lt_cv_sys_max_cmd_len=8192; 5610 ;; 5611 5612 amigaos*) 5613 # On AmigaOS with pdksh, this test takes hours, literally. 5614 # So we just punt and use a minimum line length of 8192. 5615 lt_cv_sys_max_cmd_len=8192; 5616 ;; 5617 5618 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5619 # This has been around since 386BSD, at least. Likely further. 5620 if test -x /sbin/sysctl; then 5621 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5622 elif test -x /usr/sbin/sysctl; then 5623 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5624 else 5625 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5626 fi 5627 # And add a safety zone 5628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5630 ;; 5631 5632 interix*) 5633 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5634 lt_cv_sys_max_cmd_len=196608 5635 ;; 5636 5637 os2*) 5638 # The test takes a long time on OS/2. 5639 lt_cv_sys_max_cmd_len=8192 5640 ;; 5641 5642 osf*) 5643 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5644 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5645 # nice to cause kernel panics so lets avoid the loop below. 5646 # First set a reasonable default. 5647 lt_cv_sys_max_cmd_len=16384 5648 # 5649 if test -x /sbin/sysconfig; then 5650 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5651 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5652 esac 5653 fi 5654 ;; 5655 sco3.2v5*) 5656 lt_cv_sys_max_cmd_len=102400 5657 ;; 5658 sysv5* | sco5v6* | sysv4.2uw2*) 5659 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5660 if test -n "$kargmax"; then 5661 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5662 else 5663 lt_cv_sys_max_cmd_len=32768 5664 fi 5665 ;; 5666 *) 5667 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5668 if test -n "$lt_cv_sys_max_cmd_len" && \ 5669 test undefined != "$lt_cv_sys_max_cmd_len"; then 5670 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5672 else 5673 # Make teststring a little bigger before we do anything with it. 5674 # a 1K string should be a reasonable start. 5675 for i in 1 2 3 4 5 6 7 8; do 5676 teststring=$teststring$teststring 5677 done 5678 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5679 # If test is not a shell built-in, we'll probably end up computing a 5680 # maximum length that is only half of the actual maximum length, but 5681 # we can't tell. 5682 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5683 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5684 test 17 != "$i" # 1/2 MB should be enough 5685 do 5686 i=`expr $i + 1` 5687 teststring=$teststring$teststring 5688 done 5689 # Only check the string length outside the loop. 5690 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5691 teststring= 5692 # Add a significant safety factor because C++ compilers can tack on 5693 # massive amounts of additional arguments before passing them to the 5694 # linker. It appears as though 1/2 is a usable value. 5695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5696 fi 5697 ;; 5698 esac 5699 5700fi 5701 5702if test -n "$lt_cv_sys_max_cmd_len"; then 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5704$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5705else 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5707$as_echo "none" >&6; } 5708fi 5709max_cmd_len=$lt_cv_sys_max_cmd_len 5710 5711 5712 5713 5714 5715 5716: ${CP="cp -f"} 5717: ${MV="mv -f"} 5718: ${RM="rm -f"} 5719 5720if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5721 lt_unset=unset 5722else 5723 lt_unset=false 5724fi 5725 5726 5727 5728 5729 5730# test EBCDIC or ASCII 5731case `echo X|tr X '\101'` in 5732 A) # ASCII based system 5733 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5734 lt_SP2NL='tr \040 \012' 5735 lt_NL2SP='tr \015\012 \040\040' 5736 ;; 5737 *) # EBCDIC based system 5738 lt_SP2NL='tr \100 \n' 5739 lt_NL2SP='tr \r\n \100\100' 5740 ;; 5741esac 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5752$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5753if ${lt_cv_to_host_file_cmd+:} false; then : 5754 $as_echo_n "(cached) " >&6 5755else 5756 case $host in 5757 *-*-mingw* ) 5758 case $build in 5759 *-*-mingw* ) # actually msys 5760 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5761 ;; 5762 *-*-cygwin* ) 5763 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5764 ;; 5765 * ) # otherwise, assume *nix 5766 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5767 ;; 5768 esac 5769 ;; 5770 *-*-cygwin* ) 5771 case $build in 5772 *-*-mingw* ) # actually msys 5773 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5774 ;; 5775 *-*-cygwin* ) 5776 lt_cv_to_host_file_cmd=func_convert_file_noop 5777 ;; 5778 * ) # otherwise, assume *nix 5779 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5780 ;; 5781 esac 5782 ;; 5783 * ) # unhandled hosts (and "normal" native builds) 5784 lt_cv_to_host_file_cmd=func_convert_file_noop 5785 ;; 5786esac 5787 5788fi 5789 5790to_host_file_cmd=$lt_cv_to_host_file_cmd 5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5792$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5793 5794 5795 5796 5797 5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5799$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5800if ${lt_cv_to_tool_file_cmd+:} false; then : 5801 $as_echo_n "(cached) " >&6 5802else 5803 #assume ordinary cross tools, or native build. 5804lt_cv_to_tool_file_cmd=func_convert_file_noop 5805case $host in 5806 *-*-mingw* ) 5807 case $build in 5808 *-*-mingw* ) # actually msys 5809 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5810 ;; 5811 esac 5812 ;; 5813esac 5814 5815fi 5816 5817to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5819$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5820 5821 5822 5823 5824 5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5826$as_echo_n "checking for $LD option to reload object files... " >&6; } 5827if ${lt_cv_ld_reload_flag+:} false; then : 5828 $as_echo_n "(cached) " >&6 5829else 5830 lt_cv_ld_reload_flag='-r' 5831fi 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5833$as_echo "$lt_cv_ld_reload_flag" >&6; } 5834reload_flag=$lt_cv_ld_reload_flag 5835case $reload_flag in 5836"" | " "*) ;; 5837*) reload_flag=" $reload_flag" ;; 5838esac 5839reload_cmds='$LD$reload_flag -o $output$reload_objs' 5840case $host_os in 5841 cygwin* | mingw* | pw32* | cegcc*) 5842 if test yes != "$GCC"; then 5843 reload_cmds=false 5844 fi 5845 ;; 5846 darwin*) 5847 if test yes = "$GCC"; then 5848 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5849 else 5850 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5851 fi 5852 ;; 5853esac 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863if test -n "$ac_tool_prefix"; then 5864 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5865set dummy ${ac_tool_prefix}objdump; ac_word=$2 5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5867$as_echo_n "checking for $ac_word... " >&6; } 5868if ${ac_cv_prog_OBJDUMP+:} false; then : 5869 $as_echo_n "(cached) " >&6 5870else 5871 if test -n "$OBJDUMP"; then 5872 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5873else 5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5875for as_dir in $PATH 5876do 5877 IFS=$as_save_IFS 5878 test -z "$as_dir" && as_dir=. 5879 for ac_exec_ext in '' $ac_executable_extensions; do 5880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5881 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5883 break 2 5884 fi 5885done 5886 done 5887IFS=$as_save_IFS 5888 5889fi 5890fi 5891OBJDUMP=$ac_cv_prog_OBJDUMP 5892if test -n "$OBJDUMP"; then 5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5894$as_echo "$OBJDUMP" >&6; } 5895else 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5897$as_echo "no" >&6; } 5898fi 5899 5900 5901fi 5902if test -z "$ac_cv_prog_OBJDUMP"; then 5903 ac_ct_OBJDUMP=$OBJDUMP 5904 # Extract the first word of "objdump", so it can be a program name with args. 5905set dummy objdump; ac_word=$2 5906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5907$as_echo_n "checking for $ac_word... " >&6; } 5908if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5909 $as_echo_n "(cached) " >&6 5910else 5911 if test -n "$ac_ct_OBJDUMP"; then 5912 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5913else 5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5915for as_dir in $PATH 5916do 5917 IFS=$as_save_IFS 5918 test -z "$as_dir" && as_dir=. 5919 for ac_exec_ext in '' $ac_executable_extensions; do 5920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5921 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5923 break 2 5924 fi 5925done 5926 done 5927IFS=$as_save_IFS 5928 5929fi 5930fi 5931ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5932if test -n "$ac_ct_OBJDUMP"; then 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5934$as_echo "$ac_ct_OBJDUMP" >&6; } 5935else 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5937$as_echo "no" >&6; } 5938fi 5939 5940 if test "x$ac_ct_OBJDUMP" = x; then 5941 OBJDUMP="false" 5942 else 5943 case $cross_compiling:$ac_tool_warned in 5944yes:) 5945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5947ac_tool_warned=yes ;; 5948esac 5949 OBJDUMP=$ac_ct_OBJDUMP 5950 fi 5951else 5952 OBJDUMP="$ac_cv_prog_OBJDUMP" 5953fi 5954 5955test -z "$OBJDUMP" && OBJDUMP=objdump 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5966$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5967if ${lt_cv_deplibs_check_method+:} false; then : 5968 $as_echo_n "(cached) " >&6 5969else 5970 lt_cv_file_magic_cmd='$MAGIC_CMD' 5971lt_cv_file_magic_test_file= 5972lt_cv_deplibs_check_method='unknown' 5973# Need to set the preceding variable on all platforms that support 5974# interlibrary dependencies. 5975# 'none' -- dependencies not supported. 5976# 'unknown' -- same as none, but documents that we really don't know. 5977# 'pass_all' -- all dependencies passed with no checks. 5978# 'test_compile' -- check by making test program. 5979# 'file_magic [[regex]]' -- check by looking for files in library path 5980# that responds to the $file_magic_cmd with a given extended regex. 5981# If you have 'file' or equivalent on your system and you're not sure 5982# whether 'pass_all' will *always* work, you probably want this one. 5983 5984case $host_os in 5985aix[4-9]*) 5986 lt_cv_deplibs_check_method=pass_all 5987 ;; 5988 5989beos*) 5990 lt_cv_deplibs_check_method=pass_all 5991 ;; 5992 5993bsdi[45]*) 5994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5995 lt_cv_file_magic_cmd='/usr/bin/file -L' 5996 lt_cv_file_magic_test_file=/shlib/libc.so 5997 ;; 5998 5999cygwin*) 6000 # func_win32_libid is a shell function defined in ltmain.sh 6001 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6002 lt_cv_file_magic_cmd='func_win32_libid' 6003 ;; 6004 6005mingw* | pw32*) 6006 # Base MSYS/MinGW do not provide the 'file' command needed by 6007 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6008 # unless we find 'file', for example because we are cross-compiling. 6009 if ( file / ) >/dev/null 2>&1; then 6010 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6011 lt_cv_file_magic_cmd='func_win32_libid' 6012 else 6013 # Keep this pattern in sync with the one in func_win32_libid. 6014 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6015 lt_cv_file_magic_cmd='$OBJDUMP -f' 6016 fi 6017 ;; 6018 6019cegcc*) 6020 # use the weaker test based on 'objdump'. See mingw*. 6021 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6022 lt_cv_file_magic_cmd='$OBJDUMP -f' 6023 ;; 6024 6025darwin* | rhapsody*) 6026 lt_cv_deplibs_check_method=pass_all 6027 ;; 6028 6029freebsd* | dragonfly*) 6030 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6031 case $host_cpu in 6032 i*86 ) 6033 # Not sure whether the presence of OpenBSD here was a mistake. 6034 # Let's accept both of them until this is cleared up. 6035 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6036 lt_cv_file_magic_cmd=/usr/bin/file 6037 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6038 ;; 6039 esac 6040 else 6041 lt_cv_deplibs_check_method=pass_all 6042 fi 6043 ;; 6044 6045haiku*) 6046 lt_cv_deplibs_check_method=pass_all 6047 ;; 6048 6049hpux10.20* | hpux11*) 6050 lt_cv_file_magic_cmd=/usr/bin/file 6051 case $host_cpu in 6052 ia64*) 6053 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6054 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6055 ;; 6056 hppa*64*) 6057 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]' 6058 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6059 ;; 6060 *) 6061 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6062 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6063 ;; 6064 esac 6065 ;; 6066 6067interix[3-9]*) 6068 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6070 ;; 6071 6072irix5* | irix6* | nonstopux*) 6073 case $LD in 6074 *-32|*"-32 ") libmagic=32-bit;; 6075 *-n32|*"-n32 ") libmagic=N32;; 6076 *-64|*"-64 ") libmagic=64-bit;; 6077 *) libmagic=never-match;; 6078 esac 6079 lt_cv_deplibs_check_method=pass_all 6080 ;; 6081 6082# This must be glibc/ELF. 6083linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6084 lt_cv_deplibs_check_method=pass_all 6085 ;; 6086 6087netbsd*) 6088 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6090 else 6091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6092 fi 6093 ;; 6094 6095newos6*) 6096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6097 lt_cv_file_magic_cmd=/usr/bin/file 6098 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6099 ;; 6100 6101*nto* | *qnx*) 6102 lt_cv_deplibs_check_method=pass_all 6103 ;; 6104 6105openbsd* | bitrig*) 6106 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6108 else 6109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6110 fi 6111 ;; 6112 6113osf3* | osf4* | osf5*) 6114 lt_cv_deplibs_check_method=pass_all 6115 ;; 6116 6117rdos*) 6118 lt_cv_deplibs_check_method=pass_all 6119 ;; 6120 6121solaris*) 6122 lt_cv_deplibs_check_method=pass_all 6123 ;; 6124 6125sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6126 lt_cv_deplibs_check_method=pass_all 6127 ;; 6128 6129sysv4 | sysv4.3*) 6130 case $host_vendor in 6131 motorola) 6132 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]' 6133 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6134 ;; 6135 ncr) 6136 lt_cv_deplibs_check_method=pass_all 6137 ;; 6138 sequent) 6139 lt_cv_file_magic_cmd='/bin/file' 6140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6141 ;; 6142 sni) 6143 lt_cv_file_magic_cmd='/bin/file' 6144 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6145 lt_cv_file_magic_test_file=/lib/libc.so 6146 ;; 6147 siemens) 6148 lt_cv_deplibs_check_method=pass_all 6149 ;; 6150 pc) 6151 lt_cv_deplibs_check_method=pass_all 6152 ;; 6153 esac 6154 ;; 6155 6156tpf*) 6157 lt_cv_deplibs_check_method=pass_all 6158 ;; 6159os2*) 6160 lt_cv_deplibs_check_method=pass_all 6161 ;; 6162esac 6163 6164fi 6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6166$as_echo "$lt_cv_deplibs_check_method" >&6; } 6167 6168file_magic_glob= 6169want_nocaseglob=no 6170if test "$build" = "$host"; then 6171 case $host_os in 6172 mingw* | pw32*) 6173 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6174 want_nocaseglob=yes 6175 else 6176 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6177 fi 6178 ;; 6179 esac 6180fi 6181 6182file_magic_cmd=$lt_cv_file_magic_cmd 6183deplibs_check_method=$lt_cv_deplibs_check_method 6184test -z "$deplibs_check_method" && deplibs_check_method=unknown 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207if test -n "$ac_tool_prefix"; then 6208 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6209set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6211$as_echo_n "checking for $ac_word... " >&6; } 6212if ${ac_cv_prog_DLLTOOL+:} false; then : 6213 $as_echo_n "(cached) " >&6 6214else 6215 if test -n "$DLLTOOL"; then 6216 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6217else 6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6219for as_dir in $PATH 6220do 6221 IFS=$as_save_IFS 6222 test -z "$as_dir" && as_dir=. 6223 for ac_exec_ext in '' $ac_executable_extensions; do 6224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6225 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6227 break 2 6228 fi 6229done 6230 done 6231IFS=$as_save_IFS 6232 6233fi 6234fi 6235DLLTOOL=$ac_cv_prog_DLLTOOL 6236if test -n "$DLLTOOL"; then 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6238$as_echo "$DLLTOOL" >&6; } 6239else 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6241$as_echo "no" >&6; } 6242fi 6243 6244 6245fi 6246if test -z "$ac_cv_prog_DLLTOOL"; then 6247 ac_ct_DLLTOOL=$DLLTOOL 6248 # Extract the first word of "dlltool", so it can be a program name with args. 6249set dummy dlltool; ac_word=$2 6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6251$as_echo_n "checking for $ac_word... " >&6; } 6252if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6253 $as_echo_n "(cached) " >&6 6254else 6255 if test -n "$ac_ct_DLLTOOL"; then 6256 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6257else 6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6259for as_dir in $PATH 6260do 6261 IFS=$as_save_IFS 6262 test -z "$as_dir" && as_dir=. 6263 for ac_exec_ext in '' $ac_executable_extensions; do 6264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6265 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6267 break 2 6268 fi 6269done 6270 done 6271IFS=$as_save_IFS 6272 6273fi 6274fi 6275ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6276if test -n "$ac_ct_DLLTOOL"; then 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6278$as_echo "$ac_ct_DLLTOOL" >&6; } 6279else 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6281$as_echo "no" >&6; } 6282fi 6283 6284 if test "x$ac_ct_DLLTOOL" = x; then 6285 DLLTOOL="false" 6286 else 6287 case $cross_compiling:$ac_tool_warned in 6288yes:) 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6291ac_tool_warned=yes ;; 6292esac 6293 DLLTOOL=$ac_ct_DLLTOOL 6294 fi 6295else 6296 DLLTOOL="$ac_cv_prog_DLLTOOL" 6297fi 6298 6299test -z "$DLLTOOL" && DLLTOOL=dlltool 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6311$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6312if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6313 $as_echo_n "(cached) " >&6 6314else 6315 lt_cv_sharedlib_from_linklib_cmd='unknown' 6316 6317case $host_os in 6318cygwin* | mingw* | pw32* | cegcc*) 6319 # two different shell functions defined in ltmain.sh; 6320 # decide which one to use based on capabilities of $DLLTOOL 6321 case `$DLLTOOL --help 2>&1` in 6322 *--identify-strict*) 6323 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6324 ;; 6325 *) 6326 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6327 ;; 6328 esac 6329 ;; 6330*) 6331 # fallback: assume linklib IS sharedlib 6332 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6333 ;; 6334esac 6335 6336fi 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6338$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6339sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6340test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6341 6342 6343 6344 6345 6346 6347 6348 6349if test -n "$ac_tool_prefix"; then 6350 for ac_prog in ar 6351 do 6352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6353set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6355$as_echo_n "checking for $ac_word... " >&6; } 6356if ${ac_cv_prog_AR+:} false; then : 6357 $as_echo_n "(cached) " >&6 6358else 6359 if test -n "$AR"; then 6360 ac_cv_prog_AR="$AR" # Let the user override the test. 6361else 6362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6363for as_dir in $PATH 6364do 6365 IFS=$as_save_IFS 6366 test -z "$as_dir" && as_dir=. 6367 for ac_exec_ext in '' $ac_executable_extensions; do 6368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6369 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6371 break 2 6372 fi 6373done 6374 done 6375IFS=$as_save_IFS 6376 6377fi 6378fi 6379AR=$ac_cv_prog_AR 6380if test -n "$AR"; then 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6382$as_echo "$AR" >&6; } 6383else 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6385$as_echo "no" >&6; } 6386fi 6387 6388 6389 test -n "$AR" && break 6390 done 6391fi 6392if test -z "$AR"; then 6393 ac_ct_AR=$AR 6394 for ac_prog in ar 6395do 6396 # Extract the first word of "$ac_prog", so it can be a program name with args. 6397set dummy $ac_prog; ac_word=$2 6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6399$as_echo_n "checking for $ac_word... " >&6; } 6400if ${ac_cv_prog_ac_ct_AR+:} false; then : 6401 $as_echo_n "(cached) " >&6 6402else 6403 if test -n "$ac_ct_AR"; then 6404 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6405else 6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6407for as_dir in $PATH 6408do 6409 IFS=$as_save_IFS 6410 test -z "$as_dir" && as_dir=. 6411 for ac_exec_ext in '' $ac_executable_extensions; do 6412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6413 ac_cv_prog_ac_ct_AR="$ac_prog" 6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6415 break 2 6416 fi 6417done 6418 done 6419IFS=$as_save_IFS 6420 6421fi 6422fi 6423ac_ct_AR=$ac_cv_prog_ac_ct_AR 6424if test -n "$ac_ct_AR"; then 6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6426$as_echo "$ac_ct_AR" >&6; } 6427else 6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6429$as_echo "no" >&6; } 6430fi 6431 6432 6433 test -n "$ac_ct_AR" && break 6434done 6435 6436 if test "x$ac_ct_AR" = x; then 6437 AR="false" 6438 else 6439 case $cross_compiling:$ac_tool_warned in 6440yes:) 6441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6443ac_tool_warned=yes ;; 6444esac 6445 AR=$ac_ct_AR 6446 fi 6447fi 6448 6449: ${AR=ar} 6450: ${AR_FLAGS=cru} 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6463$as_echo_n "checking for archiver @FILE support... " >&6; } 6464if ${lt_cv_ar_at_file+:} false; then : 6465 $as_echo_n "(cached) " >&6 6466else 6467 lt_cv_ar_at_file=no 6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6469/* end confdefs.h. */ 6470 6471int 6472main () 6473{ 6474 6475 ; 6476 return 0; 6477} 6478_ACEOF 6479if ac_fn_c_try_compile "$LINENO"; then : 6480 echo conftest.$ac_objext > conftest.lst 6481 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6483 (eval $lt_ar_try) 2>&5 6484 ac_status=$? 6485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6486 test $ac_status = 0; } 6487 if test 0 -eq "$ac_status"; then 6488 # Ensure the archiver fails upon bogus file names. 6489 rm -f conftest.$ac_objext libconftest.a 6490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6491 (eval $lt_ar_try) 2>&5 6492 ac_status=$? 6493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6494 test $ac_status = 0; } 6495 if test 0 -ne "$ac_status"; then 6496 lt_cv_ar_at_file=@ 6497 fi 6498 fi 6499 rm -f conftest.* libconftest.a 6500 6501fi 6502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6503 6504fi 6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6506$as_echo "$lt_cv_ar_at_file" >&6; } 6507 6508if test no = "$lt_cv_ar_at_file"; then 6509 archiver_list_spec= 6510else 6511 archiver_list_spec=$lt_cv_ar_at_file 6512fi 6513 6514 6515 6516 6517 6518 6519 6520if test -n "$ac_tool_prefix"; then 6521 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6522set dummy ${ac_tool_prefix}strip; ac_word=$2 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6524$as_echo_n "checking for $ac_word... " >&6; } 6525if ${ac_cv_prog_STRIP+:} false; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 if test -n "$STRIP"; then 6529 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6530else 6531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6532for as_dir in $PATH 6533do 6534 IFS=$as_save_IFS 6535 test -z "$as_dir" && as_dir=. 6536 for ac_exec_ext in '' $ac_executable_extensions; do 6537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6538 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6540 break 2 6541 fi 6542done 6543 done 6544IFS=$as_save_IFS 6545 6546fi 6547fi 6548STRIP=$ac_cv_prog_STRIP 6549if test -n "$STRIP"; then 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6551$as_echo "$STRIP" >&6; } 6552else 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6554$as_echo "no" >&6; } 6555fi 6556 6557 6558fi 6559if test -z "$ac_cv_prog_STRIP"; then 6560 ac_ct_STRIP=$STRIP 6561 # Extract the first word of "strip", so it can be a program name with args. 6562set dummy strip; ac_word=$2 6563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6564$as_echo_n "checking for $ac_word... " >&6; } 6565if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6566 $as_echo_n "(cached) " >&6 6567else 6568 if test -n "$ac_ct_STRIP"; then 6569 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6570else 6571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6572for as_dir in $PATH 6573do 6574 IFS=$as_save_IFS 6575 test -z "$as_dir" && as_dir=. 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6578 ac_cv_prog_ac_ct_STRIP="strip" 6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582done 6583 done 6584IFS=$as_save_IFS 6585 6586fi 6587fi 6588ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6589if test -n "$ac_ct_STRIP"; then 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6591$as_echo "$ac_ct_STRIP" >&6; } 6592else 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594$as_echo "no" >&6; } 6595fi 6596 6597 if test "x$ac_ct_STRIP" = x; then 6598 STRIP=":" 6599 else 6600 case $cross_compiling:$ac_tool_warned in 6601yes:) 6602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6604ac_tool_warned=yes ;; 6605esac 6606 STRIP=$ac_ct_STRIP 6607 fi 6608else 6609 STRIP="$ac_cv_prog_STRIP" 6610fi 6611 6612test -z "$STRIP" && STRIP=: 6613 6614 6615 6616 6617 6618 6619if test -n "$ac_tool_prefix"; then 6620 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6621set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6623$as_echo_n "checking for $ac_word... " >&6; } 6624if ${ac_cv_prog_RANLIB+:} false; then : 6625 $as_echo_n "(cached) " >&6 6626else 6627 if test -n "$RANLIB"; then 6628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6629else 6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6631for as_dir in $PATH 6632do 6633 IFS=$as_save_IFS 6634 test -z "$as_dir" && as_dir=. 6635 for ac_exec_ext in '' $ac_executable_extensions; do 6636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6639 break 2 6640 fi 6641done 6642 done 6643IFS=$as_save_IFS 6644 6645fi 6646fi 6647RANLIB=$ac_cv_prog_RANLIB 6648if test -n "$RANLIB"; then 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6650$as_echo "$RANLIB" >&6; } 6651else 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6653$as_echo "no" >&6; } 6654fi 6655 6656 6657fi 6658if test -z "$ac_cv_prog_RANLIB"; then 6659 ac_ct_RANLIB=$RANLIB 6660 # Extract the first word of "ranlib", so it can be a program name with args. 6661set dummy ranlib; ac_word=$2 6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6663$as_echo_n "checking for $ac_word... " >&6; } 6664if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6665 $as_echo_n "(cached) " >&6 6666else 6667 if test -n "$ac_ct_RANLIB"; then 6668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6669else 6670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6671for as_dir in $PATH 6672do 6673 IFS=$as_save_IFS 6674 test -z "$as_dir" && as_dir=. 6675 for ac_exec_ext in '' $ac_executable_extensions; do 6676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6677 ac_cv_prog_ac_ct_RANLIB="ranlib" 6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6679 break 2 6680 fi 6681done 6682 done 6683IFS=$as_save_IFS 6684 6685fi 6686fi 6687ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6688if test -n "$ac_ct_RANLIB"; then 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6690$as_echo "$ac_ct_RANLIB" >&6; } 6691else 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6693$as_echo "no" >&6; } 6694fi 6695 6696 if test "x$ac_ct_RANLIB" = x; then 6697 RANLIB=":" 6698 else 6699 case $cross_compiling:$ac_tool_warned in 6700yes:) 6701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6703ac_tool_warned=yes ;; 6704esac 6705 RANLIB=$ac_ct_RANLIB 6706 fi 6707else 6708 RANLIB="$ac_cv_prog_RANLIB" 6709fi 6710 6711test -z "$RANLIB" && RANLIB=: 6712 6713 6714 6715 6716 6717 6718# Determine commands to create old-style static archives. 6719old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6720old_postinstall_cmds='chmod 644 $oldlib' 6721old_postuninstall_cmds= 6722 6723if test -n "$RANLIB"; then 6724 case $host_os in 6725 bitrig* | openbsd*) 6726 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6727 ;; 6728 *) 6729 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6730 ;; 6731 esac 6732 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6733fi 6734 6735case $host_os in 6736 darwin*) 6737 lock_old_archive_extraction=yes ;; 6738 *) 6739 lock_old_archive_extraction=no ;; 6740esac 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780# If no C compiler was specified, use CC. 6781LTCC=${LTCC-"$CC"} 6782 6783# If no C compiler flags were specified, use CFLAGS. 6784LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6785 6786# Allow CC to be a program name with arguments. 6787compiler=$CC 6788 6789 6790# Check for command to grab the raw symbol name followed by C symbol from nm. 6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6792$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6793if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6794 $as_echo_n "(cached) " >&6 6795else 6796 6797# These are sane defaults that work on at least a few old systems. 6798# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6799 6800# Character class describing NM global symbol codes. 6801symcode='[BCDEGRST]' 6802 6803# Regexp to match symbols that can be accessed directly from C. 6804sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6805 6806# Define system-specific variables. 6807case $host_os in 6808aix*) 6809 symcode='[BCDT]' 6810 ;; 6811cygwin* | mingw* | pw32* | cegcc*) 6812 symcode='[ABCDGISTW]' 6813 ;; 6814hpux*) 6815 if test ia64 = "$host_cpu"; then 6816 symcode='[ABCDEGRST]' 6817 fi 6818 ;; 6819irix* | nonstopux*) 6820 symcode='[BCDEGRST]' 6821 ;; 6822osf*) 6823 symcode='[BCDEGQRST]' 6824 ;; 6825solaris*) 6826 symcode='[BDRT]' 6827 ;; 6828sco3.2v5*) 6829 symcode='[DT]' 6830 ;; 6831sysv4.2uw2*) 6832 symcode='[DT]' 6833 ;; 6834sysv5* | sco5v6* | unixware* | OpenUNIX*) 6835 symcode='[ABDT]' 6836 ;; 6837sysv4) 6838 symcode='[DFNSTU]' 6839 ;; 6840esac 6841 6842# If we're using GNU nm, then use its standard symbol codes. 6843case `$NM -V 2>&1` in 6844*GNU* | *'with BFD'*) 6845 symcode='[ABCDGIRSTW]' ;; 6846esac 6847 6848if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6849 # Gets list of data symbols to import. 6850 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6851 # Adjust the below global symbol transforms to fixup imported variables. 6852 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6853 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6854 lt_c_name_lib_hook="\ 6855 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6856 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6857else 6858 # Disable hooks by default. 6859 lt_cv_sys_global_symbol_to_import= 6860 lt_cdecl_hook= 6861 lt_c_name_hook= 6862 lt_c_name_lib_hook= 6863fi 6864 6865# Transform an extracted symbol line into a proper C declaration. 6866# Some systems (esp. on ia64) link data and code symbols differently, 6867# so use this general approach. 6868lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6869$lt_cdecl_hook\ 6870" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6871" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6872 6873# Transform an extracted symbol line into symbol name and symbol address 6874lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6875$lt_c_name_hook\ 6876" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6877" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6878 6879# Transform an extracted symbol line into symbol name with lib prefix and 6880# symbol address. 6881lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6882$lt_c_name_lib_hook\ 6883" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6884" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6885" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6886 6887# Handle CRLF in mingw tool chain 6888opt_cr= 6889case $build_os in 6890mingw*) 6891 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6892 ;; 6893esac 6894 6895# Try without a prefix underscore, then with it. 6896for ac_symprfx in "" "_"; do 6897 6898 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6899 symxfrm="\\1 $ac_symprfx\\2 \\2" 6900 6901 # Write the raw and C identifiers. 6902 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6903 # Fake it for dumpbin and say T for any non-static function, 6904 # D for any global variable and I for any imported variable. 6905 # Also find C++ and __fastcall symbols from MSVC++, 6906 # which start with @ or ?. 6907 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6908" {last_section=section; section=\$ 3};"\ 6909" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6910" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6911" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6912" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6913" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6914" \$ 0!~/External *\|/{next};"\ 6915" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6916" {if(hide[section]) next};"\ 6917" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6918" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6919" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6920" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6921" ' prfx=^$ac_symprfx" 6922 else 6923 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6924 fi 6925 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6926 6927 # Check to see that the pipe works correctly. 6928 pipe_works=no 6929 6930 rm -f conftest* 6931 cat > conftest.$ac_ext <<_LT_EOF 6932#ifdef __cplusplus 6933extern "C" { 6934#endif 6935char nm_test_var; 6936void nm_test_func(void); 6937void nm_test_func(void){} 6938#ifdef __cplusplus 6939} 6940#endif 6941int main(){nm_test_var='a';nm_test_func();return(0);} 6942_LT_EOF 6943 6944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6945 (eval $ac_compile) 2>&5 6946 ac_status=$? 6947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6948 test $ac_status = 0; }; then 6949 # Now try to grab the symbols. 6950 nlist=conftest.nm 6951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6952 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6953 ac_status=$? 6954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6955 test $ac_status = 0; } && test -s "$nlist"; then 6956 # Try sorting and uniquifying the output. 6957 if sort "$nlist" | uniq > "$nlist"T; then 6958 mv -f "$nlist"T "$nlist" 6959 else 6960 rm -f "$nlist"T 6961 fi 6962 6963 # Make sure that we snagged all the symbols we need. 6964 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6965 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6966 cat <<_LT_EOF > conftest.$ac_ext 6967/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6968#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6969/* DATA imports from DLLs on WIN32 can't be const, because runtime 6970 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6971# define LT_DLSYM_CONST 6972#elif defined __osf__ 6973/* This system does not cope well with relocations in const data. */ 6974# define LT_DLSYM_CONST 6975#else 6976# define LT_DLSYM_CONST const 6977#endif 6978 6979#ifdef __cplusplus 6980extern "C" { 6981#endif 6982 6983_LT_EOF 6984 # Now generate the symbol file. 6985 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6986 6987 cat <<_LT_EOF >> conftest.$ac_ext 6988 6989/* The mapping between symbol names and symbols. */ 6990LT_DLSYM_CONST struct { 6991 const char *name; 6992 void *address; 6993} 6994lt__PROGRAM__LTX_preloaded_symbols[] = 6995{ 6996 { "@PROGRAM@", (void *) 0 }, 6997_LT_EOF 6998 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6999 cat <<\_LT_EOF >> conftest.$ac_ext 7000 {0, (void *) 0} 7001}; 7002 7003/* This works around a problem in FreeBSD linker */ 7004#ifdef FREEBSD_WORKAROUND 7005static const void *lt_preloaded_setup() { 7006 return lt__PROGRAM__LTX_preloaded_symbols; 7007} 7008#endif 7009 7010#ifdef __cplusplus 7011} 7012#endif 7013_LT_EOF 7014 # Now try linking the two files. 7015 mv conftest.$ac_objext conftstm.$ac_objext 7016 lt_globsym_save_LIBS=$LIBS 7017 lt_globsym_save_CFLAGS=$CFLAGS 7018 LIBS=conftstm.$ac_objext 7019 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7021 (eval $ac_link) 2>&5 7022 ac_status=$? 7023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7024 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7025 pipe_works=yes 7026 fi 7027 LIBS=$lt_globsym_save_LIBS 7028 CFLAGS=$lt_globsym_save_CFLAGS 7029 else 7030 echo "cannot find nm_test_func in $nlist" >&5 7031 fi 7032 else 7033 echo "cannot find nm_test_var in $nlist" >&5 7034 fi 7035 else 7036 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7037 fi 7038 else 7039 echo "$progname: failed program was:" >&5 7040 cat conftest.$ac_ext >&5 7041 fi 7042 rm -rf conftest* conftst* 7043 7044 # Do not use the global_symbol_pipe unless it works. 7045 if test yes = "$pipe_works"; then 7046 break 7047 else 7048 lt_cv_sys_global_symbol_pipe= 7049 fi 7050done 7051 7052fi 7053 7054if test -z "$lt_cv_sys_global_symbol_pipe"; then 7055 lt_cv_sys_global_symbol_to_cdecl= 7056fi 7057if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7059$as_echo "failed" >&6; } 7060else 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7062$as_echo "ok" >&6; } 7063fi 7064 7065# Response file support. 7066if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7067 nm_file_list_spec='@' 7068elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7069 nm_file_list_spec='@' 7070fi 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7109$as_echo_n "checking for sysroot... " >&6; } 7110 7111# Check whether --with-sysroot was given. 7112if test "${with_sysroot+set}" = set; then : 7113 withval=$with_sysroot; 7114else 7115 with_sysroot=no 7116fi 7117 7118 7119lt_sysroot= 7120case $with_sysroot in #( 7121 yes) 7122 if test yes = "$GCC"; then 7123 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7124 fi 7125 ;; #( 7126 /*) 7127 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7128 ;; #( 7129 no|'') 7130 ;; #( 7131 *) 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7133$as_echo "$with_sysroot" >&6; } 7134 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7135 ;; 7136esac 7137 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7139$as_echo "${lt_sysroot:-no}" >&6; } 7140 7141 7142 7143 7144 7145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7146$as_echo_n "checking for a working dd... " >&6; } 7147if ${ac_cv_path_lt_DD+:} false; then : 7148 $as_echo_n "(cached) " >&6 7149else 7150 printf 0123456789abcdef0123456789abcdef >conftest.i 7151cat conftest.i conftest.i >conftest2.i 7152: ${lt_DD:=$DD} 7153if test -z "$lt_DD"; then 7154 ac_path_lt_DD_found=false 7155 # Loop through the user's path and test for each of PROGNAME-LIST 7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7157for as_dir in $PATH 7158do 7159 IFS=$as_save_IFS 7160 test -z "$as_dir" && as_dir=. 7161 for ac_prog in dd; do 7162 for ac_exec_ext in '' $ac_executable_extensions; do 7163 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7164 as_fn_executable_p "$ac_path_lt_DD" || continue 7165if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7166 cmp -s conftest.i conftest.out \ 7167 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7168fi 7169 $ac_path_lt_DD_found && break 3 7170 done 7171 done 7172 done 7173IFS=$as_save_IFS 7174 if test -z "$ac_cv_path_lt_DD"; then 7175 : 7176 fi 7177else 7178 ac_cv_path_lt_DD=$lt_DD 7179fi 7180 7181rm -f conftest.i conftest2.i conftest.out 7182fi 7183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7184$as_echo "$ac_cv_path_lt_DD" >&6; } 7185 7186 7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7188$as_echo_n "checking how to truncate binary pipes... " >&6; } 7189if ${lt_cv_truncate_bin+:} false; then : 7190 $as_echo_n "(cached) " >&6 7191else 7192 printf 0123456789abcdef0123456789abcdef >conftest.i 7193cat conftest.i conftest.i >conftest2.i 7194lt_cv_truncate_bin= 7195if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7196 cmp -s conftest.i conftest.out \ 7197 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7198fi 7199rm -f conftest.i conftest2.i conftest.out 7200test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7201fi 7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7203$as_echo "$lt_cv_truncate_bin" >&6; } 7204 7205 7206 7207 7208 7209 7210 7211# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7212func_cc_basename () 7213{ 7214 for cc_temp in $*""; do 7215 case $cc_temp in 7216 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7217 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7218 \-*) ;; 7219 *) break;; 7220 esac 7221 done 7222 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7223} 7224 7225# Check whether --enable-libtool-lock was given. 7226if test "${enable_libtool_lock+set}" = set; then : 7227 enableval=$enable_libtool_lock; 7228fi 7229 7230test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7231 7232# Some flags need to be propagated to the compiler or linker for good 7233# libtool support. 7234case $host in 7235ia64-*-hpux*) 7236 # Find out what ABI is being produced by ac_compile, and set mode 7237 # options accordingly. 7238 echo 'int i;' > conftest.$ac_ext 7239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7240 (eval $ac_compile) 2>&5 7241 ac_status=$? 7242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7243 test $ac_status = 0; }; then 7244 case `/usr/bin/file conftest.$ac_objext` in 7245 *ELF-32*) 7246 HPUX_IA64_MODE=32 7247 ;; 7248 *ELF-64*) 7249 HPUX_IA64_MODE=64 7250 ;; 7251 esac 7252 fi 7253 rm -rf conftest* 7254 ;; 7255*-*-irix6*) 7256 # Find out what ABI is being produced by ac_compile, and set linker 7257 # options accordingly. 7258 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7260 (eval $ac_compile) 2>&5 7261 ac_status=$? 7262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7263 test $ac_status = 0; }; then 7264 if test yes = "$lt_cv_prog_gnu_ld"; then 7265 case `/usr/bin/file conftest.$ac_objext` in 7266 *32-bit*) 7267 LD="${LD-ld} -melf32bsmip" 7268 ;; 7269 *N32*) 7270 LD="${LD-ld} -melf32bmipn32" 7271 ;; 7272 *64-bit*) 7273 LD="${LD-ld} -melf64bmip" 7274 ;; 7275 esac 7276 else 7277 case `/usr/bin/file conftest.$ac_objext` in 7278 *32-bit*) 7279 LD="${LD-ld} -32" 7280 ;; 7281 *N32*) 7282 LD="${LD-ld} -n32" 7283 ;; 7284 *64-bit*) 7285 LD="${LD-ld} -64" 7286 ;; 7287 esac 7288 fi 7289 fi 7290 rm -rf conftest* 7291 ;; 7292 7293mips64*-*linux*) 7294 # Find out what ABI is being produced by ac_compile, and set linker 7295 # options accordingly. 7296 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7298 (eval $ac_compile) 2>&5 7299 ac_status=$? 7300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7301 test $ac_status = 0; }; then 7302 emul=elf 7303 case `/usr/bin/file conftest.$ac_objext` in 7304 *32-bit*) 7305 emul="${emul}32" 7306 ;; 7307 *64-bit*) 7308 emul="${emul}64" 7309 ;; 7310 esac 7311 case `/usr/bin/file conftest.$ac_objext` in 7312 *MSB*) 7313 emul="${emul}btsmip" 7314 ;; 7315 *LSB*) 7316 emul="${emul}ltsmip" 7317 ;; 7318 esac 7319 case `/usr/bin/file conftest.$ac_objext` in 7320 *N32*) 7321 emul="${emul}n32" 7322 ;; 7323 esac 7324 LD="${LD-ld} -m $emul" 7325 fi 7326 rm -rf conftest* 7327 ;; 7328 7329x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7330s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7331 # Find out what ABI is being produced by ac_compile, and set linker 7332 # options accordingly. Note that the listed cases only cover the 7333 # situations where additional linker options are needed (such as when 7334 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7335 # vice versa); the common cases where no linker options are needed do 7336 # not appear in the list. 7337 echo 'int i;' > conftest.$ac_ext 7338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7339 (eval $ac_compile) 2>&5 7340 ac_status=$? 7341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7342 test $ac_status = 0; }; then 7343 case `/usr/bin/file conftest.o` in 7344 *32-bit*) 7345 case $host in 7346 x86_64-*kfreebsd*-gnu) 7347 LD="${LD-ld} -m elf_i386_fbsd" 7348 ;; 7349 x86_64-*linux*) 7350 case `/usr/bin/file conftest.o` in 7351 *x86-64*) 7352 LD="${LD-ld} -m elf32_x86_64" 7353 ;; 7354 *) 7355 LD="${LD-ld} -m elf_i386" 7356 ;; 7357 esac 7358 ;; 7359 powerpc64le-*linux*) 7360 LD="${LD-ld} -m elf32lppclinux" 7361 ;; 7362 powerpc64-*linux*) 7363 LD="${LD-ld} -m elf32ppclinux" 7364 ;; 7365 s390x-*linux*) 7366 LD="${LD-ld} -m elf_s390" 7367 ;; 7368 sparc64-*linux*) 7369 LD="${LD-ld} -m elf32_sparc" 7370 ;; 7371 esac 7372 ;; 7373 *64-bit*) 7374 case $host in 7375 x86_64-*kfreebsd*-gnu) 7376 LD="${LD-ld} -m elf_x86_64_fbsd" 7377 ;; 7378 x86_64-*linux*) 7379 LD="${LD-ld} -m elf_x86_64" 7380 ;; 7381 powerpcle-*linux*) 7382 LD="${LD-ld} -m elf64lppc" 7383 ;; 7384 powerpc-*linux*) 7385 LD="${LD-ld} -m elf64ppc" 7386 ;; 7387 s390*-*linux*|s390*-*tpf*) 7388 LD="${LD-ld} -m elf64_s390" 7389 ;; 7390 sparc*-*linux*) 7391 LD="${LD-ld} -m elf64_sparc" 7392 ;; 7393 esac 7394 ;; 7395 esac 7396 fi 7397 rm -rf conftest* 7398 ;; 7399 7400*-*-sco3.2v5*) 7401 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7402 SAVE_CFLAGS=$CFLAGS 7403 CFLAGS="$CFLAGS -belf" 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7405$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7406if ${lt_cv_cc_needs_belf+:} false; then : 7407 $as_echo_n "(cached) " >&6 7408else 7409 ac_ext=c 7410ac_cpp='$CPP $CPPFLAGS' 7411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7413ac_compiler_gnu=$ac_cv_c_compiler_gnu 7414 7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7416/* end confdefs.h. */ 7417 7418int 7419main () 7420{ 7421 7422 ; 7423 return 0; 7424} 7425_ACEOF 7426if ac_fn_c_try_link "$LINENO"; then : 7427 lt_cv_cc_needs_belf=yes 7428else 7429 lt_cv_cc_needs_belf=no 7430fi 7431rm -f core conftest.err conftest.$ac_objext \ 7432 conftest$ac_exeext conftest.$ac_ext 7433 ac_ext=c 7434ac_cpp='$CPP $CPPFLAGS' 7435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7437ac_compiler_gnu=$ac_cv_c_compiler_gnu 7438 7439fi 7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7441$as_echo "$lt_cv_cc_needs_belf" >&6; } 7442 if test yes != "$lt_cv_cc_needs_belf"; then 7443 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7444 CFLAGS=$SAVE_CFLAGS 7445 fi 7446 ;; 7447*-*solaris*) 7448 # Find out what ABI is being produced by ac_compile, and set linker 7449 # options accordingly. 7450 echo 'int i;' > conftest.$ac_ext 7451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7452 (eval $ac_compile) 2>&5 7453 ac_status=$? 7454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7455 test $ac_status = 0; }; then 7456 case `/usr/bin/file conftest.o` in 7457 *64-bit*) 7458 case $lt_cv_prog_gnu_ld in 7459 yes*) 7460 case $host in 7461 i?86-*-solaris*|x86_64-*-solaris*) 7462 LD="${LD-ld} -m elf_x86_64" 7463 ;; 7464 sparc*-*-solaris*) 7465 LD="${LD-ld} -m elf64_sparc" 7466 ;; 7467 esac 7468 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7469 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7470 LD=${LD-ld}_sol2 7471 fi 7472 ;; 7473 *) 7474 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7475 LD="${LD-ld} -64" 7476 fi 7477 ;; 7478 esac 7479 ;; 7480 esac 7481 fi 7482 rm -rf conftest* 7483 ;; 7484esac 7485 7486need_locks=$enable_libtool_lock 7487 7488if test -n "$ac_tool_prefix"; then 7489 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7490set dummy ${ac_tool_prefix}mt; ac_word=$2 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7492$as_echo_n "checking for $ac_word... " >&6; } 7493if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7494 $as_echo_n "(cached) " >&6 7495else 7496 if test -n "$MANIFEST_TOOL"; then 7497 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7498else 7499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7500for as_dir in $PATH 7501do 7502 IFS=$as_save_IFS 7503 test -z "$as_dir" && as_dir=. 7504 for ac_exec_ext in '' $ac_executable_extensions; do 7505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7506 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7508 break 2 7509 fi 7510done 7511 done 7512IFS=$as_save_IFS 7513 7514fi 7515fi 7516MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7517if test -n "$MANIFEST_TOOL"; then 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7519$as_echo "$MANIFEST_TOOL" >&6; } 7520else 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7522$as_echo "no" >&6; } 7523fi 7524 7525 7526fi 7527if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7528 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7529 # Extract the first word of "mt", so it can be a program name with args. 7530set dummy mt; ac_word=$2 7531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7532$as_echo_n "checking for $ac_word... " >&6; } 7533if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7534 $as_echo_n "(cached) " >&6 7535else 7536 if test -n "$ac_ct_MANIFEST_TOOL"; then 7537 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7538else 7539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7540for as_dir in $PATH 7541do 7542 IFS=$as_save_IFS 7543 test -z "$as_dir" && as_dir=. 7544 for ac_exec_ext in '' $ac_executable_extensions; do 7545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7546 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7548 break 2 7549 fi 7550done 7551 done 7552IFS=$as_save_IFS 7553 7554fi 7555fi 7556ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7557if test -n "$ac_ct_MANIFEST_TOOL"; then 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7559$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7560else 7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7562$as_echo "no" >&6; } 7563fi 7564 7565 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7566 MANIFEST_TOOL=":" 7567 else 7568 case $cross_compiling:$ac_tool_warned in 7569yes:) 7570{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7571$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7572ac_tool_warned=yes ;; 7573esac 7574 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7575 fi 7576else 7577 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7578fi 7579 7580test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7582$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7583if ${lt_cv_path_mainfest_tool+:} false; then : 7584 $as_echo_n "(cached) " >&6 7585else 7586 lt_cv_path_mainfest_tool=no 7587 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7588 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7589 cat conftest.err >&5 7590 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7591 lt_cv_path_mainfest_tool=yes 7592 fi 7593 rm -f conftest* 7594fi 7595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7596$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7597if test yes != "$lt_cv_path_mainfest_tool"; then 7598 MANIFEST_TOOL=: 7599fi 7600 7601 7602 7603 7604 7605 7606 case $host_os in 7607 rhapsody* | darwin*) 7608 if test -n "$ac_tool_prefix"; then 7609 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7610set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7612$as_echo_n "checking for $ac_word... " >&6; } 7613if ${ac_cv_prog_DSYMUTIL+:} false; then : 7614 $as_echo_n "(cached) " >&6 7615else 7616 if test -n "$DSYMUTIL"; then 7617 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7618else 7619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7620for as_dir in $PATH 7621do 7622 IFS=$as_save_IFS 7623 test -z "$as_dir" && as_dir=. 7624 for ac_exec_ext in '' $ac_executable_extensions; do 7625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7626 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7628 break 2 7629 fi 7630done 7631 done 7632IFS=$as_save_IFS 7633 7634fi 7635fi 7636DSYMUTIL=$ac_cv_prog_DSYMUTIL 7637if test -n "$DSYMUTIL"; then 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7639$as_echo "$DSYMUTIL" >&6; } 7640else 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7642$as_echo "no" >&6; } 7643fi 7644 7645 7646fi 7647if test -z "$ac_cv_prog_DSYMUTIL"; then 7648 ac_ct_DSYMUTIL=$DSYMUTIL 7649 # Extract the first word of "dsymutil", so it can be a program name with args. 7650set dummy dsymutil; ac_word=$2 7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7652$as_echo_n "checking for $ac_word... " >&6; } 7653if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7654 $as_echo_n "(cached) " >&6 7655else 7656 if test -n "$ac_ct_DSYMUTIL"; then 7657 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7658else 7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7660for as_dir in $PATH 7661do 7662 IFS=$as_save_IFS 7663 test -z "$as_dir" && as_dir=. 7664 for ac_exec_ext in '' $ac_executable_extensions; do 7665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7666 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7668 break 2 7669 fi 7670done 7671 done 7672IFS=$as_save_IFS 7673 7674fi 7675fi 7676ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7677if test -n "$ac_ct_DSYMUTIL"; then 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7679$as_echo "$ac_ct_DSYMUTIL" >&6; } 7680else 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7682$as_echo "no" >&6; } 7683fi 7684 7685 if test "x$ac_ct_DSYMUTIL" = x; then 7686 DSYMUTIL=":" 7687 else 7688 case $cross_compiling:$ac_tool_warned in 7689yes:) 7690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7692ac_tool_warned=yes ;; 7693esac 7694 DSYMUTIL=$ac_ct_DSYMUTIL 7695 fi 7696else 7697 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7698fi 7699 7700 if test -n "$ac_tool_prefix"; then 7701 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7702set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7704$as_echo_n "checking for $ac_word... " >&6; } 7705if ${ac_cv_prog_NMEDIT+:} false; then : 7706 $as_echo_n "(cached) " >&6 7707else 7708 if test -n "$NMEDIT"; then 7709 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7710else 7711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7712for as_dir in $PATH 7713do 7714 IFS=$as_save_IFS 7715 test -z "$as_dir" && as_dir=. 7716 for ac_exec_ext in '' $ac_executable_extensions; do 7717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7718 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7720 break 2 7721 fi 7722done 7723 done 7724IFS=$as_save_IFS 7725 7726fi 7727fi 7728NMEDIT=$ac_cv_prog_NMEDIT 7729if test -n "$NMEDIT"; then 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7731$as_echo "$NMEDIT" >&6; } 7732else 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7734$as_echo "no" >&6; } 7735fi 7736 7737 7738fi 7739if test -z "$ac_cv_prog_NMEDIT"; then 7740 ac_ct_NMEDIT=$NMEDIT 7741 # Extract the first word of "nmedit", so it can be a program name with args. 7742set dummy nmedit; ac_word=$2 7743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7744$as_echo_n "checking for $ac_word... " >&6; } 7745if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7746 $as_echo_n "(cached) " >&6 7747else 7748 if test -n "$ac_ct_NMEDIT"; then 7749 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7750else 7751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7752for as_dir in $PATH 7753do 7754 IFS=$as_save_IFS 7755 test -z "$as_dir" && as_dir=. 7756 for ac_exec_ext in '' $ac_executable_extensions; do 7757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7758 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7760 break 2 7761 fi 7762done 7763 done 7764IFS=$as_save_IFS 7765 7766fi 7767fi 7768ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7769if test -n "$ac_ct_NMEDIT"; then 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7771$as_echo "$ac_ct_NMEDIT" >&6; } 7772else 7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7774$as_echo "no" >&6; } 7775fi 7776 7777 if test "x$ac_ct_NMEDIT" = x; then 7778 NMEDIT=":" 7779 else 7780 case $cross_compiling:$ac_tool_warned in 7781yes:) 7782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7784ac_tool_warned=yes ;; 7785esac 7786 NMEDIT=$ac_ct_NMEDIT 7787 fi 7788else 7789 NMEDIT="$ac_cv_prog_NMEDIT" 7790fi 7791 7792 if test -n "$ac_tool_prefix"; then 7793 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7794set dummy ${ac_tool_prefix}lipo; ac_word=$2 7795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7796$as_echo_n "checking for $ac_word... " >&6; } 7797if ${ac_cv_prog_LIPO+:} false; then : 7798 $as_echo_n "(cached) " >&6 7799else 7800 if test -n "$LIPO"; then 7801 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7802else 7803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7804for as_dir in $PATH 7805do 7806 IFS=$as_save_IFS 7807 test -z "$as_dir" && as_dir=. 7808 for ac_exec_ext in '' $ac_executable_extensions; do 7809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7810 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7812 break 2 7813 fi 7814done 7815 done 7816IFS=$as_save_IFS 7817 7818fi 7819fi 7820LIPO=$ac_cv_prog_LIPO 7821if test -n "$LIPO"; then 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7823$as_echo "$LIPO" >&6; } 7824else 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7826$as_echo "no" >&6; } 7827fi 7828 7829 7830fi 7831if test -z "$ac_cv_prog_LIPO"; then 7832 ac_ct_LIPO=$LIPO 7833 # Extract the first word of "lipo", so it can be a program name with args. 7834set dummy lipo; ac_word=$2 7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7836$as_echo_n "checking for $ac_word... " >&6; } 7837if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7838 $as_echo_n "(cached) " >&6 7839else 7840 if test -n "$ac_ct_LIPO"; then 7841 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7842else 7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7844for as_dir in $PATH 7845do 7846 IFS=$as_save_IFS 7847 test -z "$as_dir" && as_dir=. 7848 for ac_exec_ext in '' $ac_executable_extensions; do 7849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7850 ac_cv_prog_ac_ct_LIPO="lipo" 7851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7852 break 2 7853 fi 7854done 7855 done 7856IFS=$as_save_IFS 7857 7858fi 7859fi 7860ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7861if test -n "$ac_ct_LIPO"; then 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7863$as_echo "$ac_ct_LIPO" >&6; } 7864else 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7866$as_echo "no" >&6; } 7867fi 7868 7869 if test "x$ac_ct_LIPO" = x; then 7870 LIPO=":" 7871 else 7872 case $cross_compiling:$ac_tool_warned in 7873yes:) 7874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7876ac_tool_warned=yes ;; 7877esac 7878 LIPO=$ac_ct_LIPO 7879 fi 7880else 7881 LIPO="$ac_cv_prog_LIPO" 7882fi 7883 7884 if test -n "$ac_tool_prefix"; then 7885 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7886set dummy ${ac_tool_prefix}otool; ac_word=$2 7887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7888$as_echo_n "checking for $ac_word... " >&6; } 7889if ${ac_cv_prog_OTOOL+:} false; then : 7890 $as_echo_n "(cached) " >&6 7891else 7892 if test -n "$OTOOL"; then 7893 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7894else 7895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7896for as_dir in $PATH 7897do 7898 IFS=$as_save_IFS 7899 test -z "$as_dir" && as_dir=. 7900 for ac_exec_ext in '' $ac_executable_extensions; do 7901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7902 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7904 break 2 7905 fi 7906done 7907 done 7908IFS=$as_save_IFS 7909 7910fi 7911fi 7912OTOOL=$ac_cv_prog_OTOOL 7913if test -n "$OTOOL"; then 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7915$as_echo "$OTOOL" >&6; } 7916else 7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7918$as_echo "no" >&6; } 7919fi 7920 7921 7922fi 7923if test -z "$ac_cv_prog_OTOOL"; then 7924 ac_ct_OTOOL=$OTOOL 7925 # Extract the first word of "otool", so it can be a program name with args. 7926set dummy otool; ac_word=$2 7927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7928$as_echo_n "checking for $ac_word... " >&6; } 7929if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7930 $as_echo_n "(cached) " >&6 7931else 7932 if test -n "$ac_ct_OTOOL"; then 7933 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7934else 7935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7936for as_dir in $PATH 7937do 7938 IFS=$as_save_IFS 7939 test -z "$as_dir" && as_dir=. 7940 for ac_exec_ext in '' $ac_executable_extensions; do 7941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7942 ac_cv_prog_ac_ct_OTOOL="otool" 7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7944 break 2 7945 fi 7946done 7947 done 7948IFS=$as_save_IFS 7949 7950fi 7951fi 7952ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7953if test -n "$ac_ct_OTOOL"; then 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7955$as_echo "$ac_ct_OTOOL" >&6; } 7956else 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7958$as_echo "no" >&6; } 7959fi 7960 7961 if test "x$ac_ct_OTOOL" = x; then 7962 OTOOL=":" 7963 else 7964 case $cross_compiling:$ac_tool_warned in 7965yes:) 7966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7968ac_tool_warned=yes ;; 7969esac 7970 OTOOL=$ac_ct_OTOOL 7971 fi 7972else 7973 OTOOL="$ac_cv_prog_OTOOL" 7974fi 7975 7976 if test -n "$ac_tool_prefix"; then 7977 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7978set dummy ${ac_tool_prefix}otool64; ac_word=$2 7979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7980$as_echo_n "checking for $ac_word... " >&6; } 7981if ${ac_cv_prog_OTOOL64+:} false; then : 7982 $as_echo_n "(cached) " >&6 7983else 7984 if test -n "$OTOOL64"; then 7985 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7986else 7987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7988for as_dir in $PATH 7989do 7990 IFS=$as_save_IFS 7991 test -z "$as_dir" && as_dir=. 7992 for ac_exec_ext in '' $ac_executable_extensions; do 7993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7994 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7996 break 2 7997 fi 7998done 7999 done 8000IFS=$as_save_IFS 8001 8002fi 8003fi 8004OTOOL64=$ac_cv_prog_OTOOL64 8005if test -n "$OTOOL64"; then 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8007$as_echo "$OTOOL64" >&6; } 8008else 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8010$as_echo "no" >&6; } 8011fi 8012 8013 8014fi 8015if test -z "$ac_cv_prog_OTOOL64"; then 8016 ac_ct_OTOOL64=$OTOOL64 8017 # Extract the first word of "otool64", so it can be a program name with args. 8018set dummy otool64; ac_word=$2 8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8020$as_echo_n "checking for $ac_word... " >&6; } 8021if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8022 $as_echo_n "(cached) " >&6 8023else 8024 if test -n "$ac_ct_OTOOL64"; then 8025 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8026else 8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8028for as_dir in $PATH 8029do 8030 IFS=$as_save_IFS 8031 test -z "$as_dir" && as_dir=. 8032 for ac_exec_ext in '' $ac_executable_extensions; do 8033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8034 ac_cv_prog_ac_ct_OTOOL64="otool64" 8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8036 break 2 8037 fi 8038done 8039 done 8040IFS=$as_save_IFS 8041 8042fi 8043fi 8044ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8045if test -n "$ac_ct_OTOOL64"; then 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8047$as_echo "$ac_ct_OTOOL64" >&6; } 8048else 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8050$as_echo "no" >&6; } 8051fi 8052 8053 if test "x$ac_ct_OTOOL64" = x; then 8054 OTOOL64=":" 8055 else 8056 case $cross_compiling:$ac_tool_warned in 8057yes:) 8058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8060ac_tool_warned=yes ;; 8061esac 8062 OTOOL64=$ac_ct_OTOOL64 8063 fi 8064else 8065 OTOOL64="$ac_cv_prog_OTOOL64" 8066fi 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8095$as_echo_n "checking for -single_module linker flag... " >&6; } 8096if ${lt_cv_apple_cc_single_mod+:} false; then : 8097 $as_echo_n "(cached) " >&6 8098else 8099 lt_cv_apple_cc_single_mod=no 8100 if test -z "$LT_MULTI_MODULE"; then 8101 # By default we will add the -single_module flag. You can override 8102 # by either setting the environment variable LT_MULTI_MODULE 8103 # non-empty at configure time, or by adding -multi_module to the 8104 # link flags. 8105 rm -rf libconftest.dylib* 8106 echo "int foo(void){return 1;}" > conftest.c 8107 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8108-dynamiclib -Wl,-single_module conftest.c" >&5 8109 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8110 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8111 _lt_result=$? 8112 # If there is a non-empty error log, and "single_module" 8113 # appears in it, assume the flag caused a linker warning 8114 if test -s conftest.err && $GREP single_module conftest.err; then 8115 cat conftest.err >&5 8116 # Otherwise, if the output was created with a 0 exit code from 8117 # the compiler, it worked. 8118 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8119 lt_cv_apple_cc_single_mod=yes 8120 else 8121 cat conftest.err >&5 8122 fi 8123 rm -rf libconftest.dylib* 8124 rm -f conftest.* 8125 fi 8126fi 8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8128$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8129 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8131$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8132if ${lt_cv_ld_exported_symbols_list+:} false; then : 8133 $as_echo_n "(cached) " >&6 8134else 8135 lt_cv_ld_exported_symbols_list=no 8136 save_LDFLAGS=$LDFLAGS 8137 echo "_main" > conftest.sym 8138 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8140/* end confdefs.h. */ 8141 8142int 8143main () 8144{ 8145 8146 ; 8147 return 0; 8148} 8149_ACEOF 8150if ac_fn_c_try_link "$LINENO"; then : 8151 lt_cv_ld_exported_symbols_list=yes 8152else 8153 lt_cv_ld_exported_symbols_list=no 8154fi 8155rm -f core conftest.err conftest.$ac_objext \ 8156 conftest$ac_exeext conftest.$ac_ext 8157 LDFLAGS=$save_LDFLAGS 8158 8159fi 8160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8161$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8162 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8164$as_echo_n "checking for -force_load linker flag... " >&6; } 8165if ${lt_cv_ld_force_load+:} false; then : 8166 $as_echo_n "(cached) " >&6 8167else 8168 lt_cv_ld_force_load=no 8169 cat > conftest.c << _LT_EOF 8170int forced_loaded() { return 2;} 8171_LT_EOF 8172 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8173 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8174 echo "$AR cru libconftest.a conftest.o" >&5 8175 $AR cru libconftest.a conftest.o 2>&5 8176 echo "$RANLIB libconftest.a" >&5 8177 $RANLIB libconftest.a 2>&5 8178 cat > conftest.c << _LT_EOF 8179int main() { return 0;} 8180_LT_EOF 8181 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8182 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8183 _lt_result=$? 8184 if test -s conftest.err && $GREP force_load conftest.err; then 8185 cat conftest.err >&5 8186 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8187 lt_cv_ld_force_load=yes 8188 else 8189 cat conftest.err >&5 8190 fi 8191 rm -f conftest.err libconftest.a conftest conftest.c 8192 rm -rf conftest.dSYM 8193 8194fi 8195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8196$as_echo "$lt_cv_ld_force_load" >&6; } 8197 case $host_os in 8198 rhapsody* | darwin1.[012]) 8199 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8200 darwin1.*) 8201 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8202 darwin*) # darwin 5.x on 8203 # if running on 10.5 or later, the deployment target defaults 8204 # to the OS version, if on x86, and 10.4, the deployment 8205 # target defaults to 10.4. Don't you love it? 8206 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8207 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8208 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8209 10.[012][,.]*) 8210 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8211 10.*) 8212 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8213 esac 8214 ;; 8215 esac 8216 if test yes = "$lt_cv_apple_cc_single_mod"; then 8217 _lt_dar_single_mod='$single_module' 8218 fi 8219 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8220 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8221 else 8222 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8223 fi 8224 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8225 _lt_dsymutil='~$DSYMUTIL $lib || :' 8226 else 8227 _lt_dsymutil= 8228 fi 8229 ;; 8230 esac 8231 8232# func_munge_path_list VARIABLE PATH 8233# ----------------------------------- 8234# VARIABLE is name of variable containing _space_ separated list of 8235# directories to be munged by the contents of PATH, which is string 8236# having a format: 8237# "DIR[:DIR]:" 8238# string "DIR[ DIR]" will be prepended to VARIABLE 8239# ":DIR[:DIR]" 8240# string "DIR[ DIR]" will be appended to VARIABLE 8241# "DIRP[:DIRP]::[DIRA:]DIRA" 8242# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8243# "DIRA[ DIRA]" will be appended to VARIABLE 8244# "DIR[:DIR]" 8245# VARIABLE will be replaced by "DIR[ DIR]" 8246func_munge_path_list () 8247{ 8248 case x$2 in 8249 x) 8250 ;; 8251 *:) 8252 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8253 ;; 8254 x:*) 8255 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8256 ;; 8257 *::*) 8258 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8259 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8260 ;; 8261 *) 8262 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8263 ;; 8264 esac 8265} 8266 8267ac_ext=c 8268ac_cpp='$CPP $CPPFLAGS' 8269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8271ac_compiler_gnu=$ac_cv_c_compiler_gnu 8272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8273$as_echo_n "checking how to run the C preprocessor... " >&6; } 8274# On Suns, sometimes $CPP names a directory. 8275if test -n "$CPP" && test -d "$CPP"; then 8276 CPP= 8277fi 8278if test -z "$CPP"; then 8279 if ${ac_cv_prog_CPP+:} false; then : 8280 $as_echo_n "(cached) " >&6 8281else 8282 # Double quotes because CPP needs to be expanded 8283 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8284 do 8285 ac_preproc_ok=false 8286for ac_c_preproc_warn_flag in '' yes 8287do 8288 # Use a header file that comes with gcc, so configuring glibc 8289 # with a fresh cross-compiler works. 8290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8291 # <limits.h> exists even on freestanding compilers. 8292 # On the NeXT, cc -E runs the code through the compiler's parser, 8293 # not just through cpp. "Syntax error" is here to catch this case. 8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8295/* end confdefs.h. */ 8296#ifdef __STDC__ 8297# include <limits.h> 8298#else 8299# include <assert.h> 8300#endif 8301 Syntax error 8302_ACEOF 8303if ac_fn_c_try_cpp "$LINENO"; then : 8304 8305else 8306 # Broken: fails on valid input. 8307continue 8308fi 8309rm -f conftest.err conftest.i conftest.$ac_ext 8310 8311 # OK, works on sane cases. Now check whether nonexistent headers 8312 # can be detected and how. 8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8314/* end confdefs.h. */ 8315#include <ac_nonexistent.h> 8316_ACEOF 8317if ac_fn_c_try_cpp "$LINENO"; then : 8318 # Broken: success on invalid input. 8319continue 8320else 8321 # Passes both tests. 8322ac_preproc_ok=: 8323break 8324fi 8325rm -f conftest.err conftest.i conftest.$ac_ext 8326 8327done 8328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8329rm -f conftest.i conftest.err conftest.$ac_ext 8330if $ac_preproc_ok; then : 8331 break 8332fi 8333 8334 done 8335 ac_cv_prog_CPP=$CPP 8336 8337fi 8338 CPP=$ac_cv_prog_CPP 8339else 8340 ac_cv_prog_CPP=$CPP 8341fi 8342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8343$as_echo "$CPP" >&6; } 8344ac_preproc_ok=false 8345for ac_c_preproc_warn_flag in '' yes 8346do 8347 # Use a header file that comes with gcc, so configuring glibc 8348 # with a fresh cross-compiler works. 8349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8350 # <limits.h> exists even on freestanding compilers. 8351 # On the NeXT, cc -E runs the code through the compiler's parser, 8352 # not just through cpp. "Syntax error" is here to catch this case. 8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8354/* end confdefs.h. */ 8355#ifdef __STDC__ 8356# include <limits.h> 8357#else 8358# include <assert.h> 8359#endif 8360 Syntax error 8361_ACEOF 8362if ac_fn_c_try_cpp "$LINENO"; then : 8363 8364else 8365 # Broken: fails on valid input. 8366continue 8367fi 8368rm -f conftest.err conftest.i conftest.$ac_ext 8369 8370 # OK, works on sane cases. Now check whether nonexistent headers 8371 # can be detected and how. 8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8373/* end confdefs.h. */ 8374#include <ac_nonexistent.h> 8375_ACEOF 8376if ac_fn_c_try_cpp "$LINENO"; then : 8377 # Broken: success on invalid input. 8378continue 8379else 8380 # Passes both tests. 8381ac_preproc_ok=: 8382break 8383fi 8384rm -f conftest.err conftest.i conftest.$ac_ext 8385 8386done 8387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8388rm -f conftest.i conftest.err conftest.$ac_ext 8389if $ac_preproc_ok; then : 8390 8391else 8392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8394as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8395See \`config.log' for more details" "$LINENO" 5; } 8396fi 8397 8398ac_ext=c 8399ac_cpp='$CPP $CPPFLAGS' 8400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8402ac_compiler_gnu=$ac_cv_c_compiler_gnu 8403 8404 8405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8406$as_echo_n "checking for ANSI C header files... " >&6; } 8407if ${ac_cv_header_stdc+:} false; then : 8408 $as_echo_n "(cached) " >&6 8409else 8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8411/* end confdefs.h. */ 8412#include <stdlib.h> 8413#include <stdarg.h> 8414#include <string.h> 8415#include <float.h> 8416 8417int 8418main () 8419{ 8420 8421 ; 8422 return 0; 8423} 8424_ACEOF 8425if ac_fn_c_try_compile "$LINENO"; then : 8426 ac_cv_header_stdc=yes 8427else 8428 ac_cv_header_stdc=no 8429fi 8430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8431 8432if test $ac_cv_header_stdc = yes; then 8433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8435/* end confdefs.h. */ 8436#include <string.h> 8437 8438_ACEOF 8439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8440 $EGREP "memchr" >/dev/null 2>&1; then : 8441 8442else 8443 ac_cv_header_stdc=no 8444fi 8445rm -f conftest* 8446 8447fi 8448 8449if test $ac_cv_header_stdc = yes; then 8450 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8452/* end confdefs.h. */ 8453#include <stdlib.h> 8454 8455_ACEOF 8456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8457 $EGREP "free" >/dev/null 2>&1; then : 8458 8459else 8460 ac_cv_header_stdc=no 8461fi 8462rm -f conftest* 8463 8464fi 8465 8466if test $ac_cv_header_stdc = yes; then 8467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8468 if test "$cross_compiling" = yes; then : 8469 : 8470else 8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8472/* end confdefs.h. */ 8473#include <ctype.h> 8474#include <stdlib.h> 8475#if ((' ' & 0x0FF) == 0x020) 8476# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8477# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8478#else 8479# define ISLOWER(c) \ 8480 (('a' <= (c) && (c) <= 'i') \ 8481 || ('j' <= (c) && (c) <= 'r') \ 8482 || ('s' <= (c) && (c) <= 'z')) 8483# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8484#endif 8485 8486#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8487int 8488main () 8489{ 8490 int i; 8491 for (i = 0; i < 256; i++) 8492 if (XOR (islower (i), ISLOWER (i)) 8493 || toupper (i) != TOUPPER (i)) 8494 return 2; 8495 return 0; 8496} 8497_ACEOF 8498if ac_fn_c_try_run "$LINENO"; then : 8499 8500else 8501 ac_cv_header_stdc=no 8502fi 8503rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8504 conftest.$ac_objext conftest.beam conftest.$ac_ext 8505fi 8506 8507fi 8508fi 8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8510$as_echo "$ac_cv_header_stdc" >&6; } 8511if test $ac_cv_header_stdc = yes; then 8512 8513$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8514 8515fi 8516 8517# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8518for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8519 inttypes.h stdint.h unistd.h 8520do : 8521 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8522ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8523" 8524if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8525 cat >>confdefs.h <<_ACEOF 8526#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8527_ACEOF 8528 8529fi 8530 8531done 8532 8533 8534for ac_header in dlfcn.h 8535do : 8536 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8537" 8538if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8539 cat >>confdefs.h <<_ACEOF 8540#define HAVE_DLFCN_H 1 8541_ACEOF 8542 8543fi 8544 8545done 8546 8547 8548 8549 8550func_stripname_cnf () 8551{ 8552 case $2 in 8553 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 8554 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 8555 esac 8556} # func_stripname_cnf 8557 8558 8559 8560 8561 8562# Set options 8563# Check whether --enable-static was given. 8564if test "${enable_static+set}" = set; then : 8565 enableval=$enable_static; p=${PACKAGE-default} 8566 case $enableval in 8567 yes) enable_static=yes ;; 8568 no) enable_static=no ;; 8569 *) 8570 enable_static=no 8571 # Look at the argument we got. We use all the common list separators. 8572 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8573 for pkg in $enableval; do 8574 IFS=$lt_save_ifs 8575 if test "X$pkg" = "X$p"; then 8576 enable_static=yes 8577 fi 8578 done 8579 IFS=$lt_save_ifs 8580 ;; 8581 esac 8582else 8583 enable_static=no 8584fi 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 enable_dlopen=no 8596 8597 8598 enable_win32_dll=no 8599 8600 8601 # Check whether --enable-shared was given. 8602if test "${enable_shared+set}" = set; then : 8603 enableval=$enable_shared; p=${PACKAGE-default} 8604 case $enableval in 8605 yes) enable_shared=yes ;; 8606 no) enable_shared=no ;; 8607 *) 8608 enable_shared=no 8609 # Look at the argument we got. We use all the common list separators. 8610 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8611 for pkg in $enableval; do 8612 IFS=$lt_save_ifs 8613 if test "X$pkg" = "X$p"; then 8614 enable_shared=yes 8615 fi 8616 done 8617 IFS=$lt_save_ifs 8618 ;; 8619 esac 8620else 8621 enable_shared=yes 8622fi 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634# Check whether --with-pic was given. 8635if test "${with_pic+set}" = set; then : 8636 withval=$with_pic; lt_p=${PACKAGE-default} 8637 case $withval in 8638 yes|no) pic_mode=$withval ;; 8639 *) 8640 pic_mode=default 8641 # Look at the argument we got. We use all the common list separators. 8642 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8643 for lt_pkg in $withval; do 8644 IFS=$lt_save_ifs 8645 if test "X$lt_pkg" = "X$lt_p"; then 8646 pic_mode=yes 8647 fi 8648 done 8649 IFS=$lt_save_ifs 8650 ;; 8651 esac 8652else 8653 pic_mode=default 8654fi 8655 8656 8657 8658 8659 8660 8661 8662 8663 # Check whether --enable-fast-install was given. 8664if test "${enable_fast_install+set}" = set; then : 8665 enableval=$enable_fast_install; p=${PACKAGE-default} 8666 case $enableval in 8667 yes) enable_fast_install=yes ;; 8668 no) enable_fast_install=no ;; 8669 *) 8670 enable_fast_install=no 8671 # Look at the argument we got. We use all the common list separators. 8672 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8673 for pkg in $enableval; do 8674 IFS=$lt_save_ifs 8675 if test "X$pkg" = "X$p"; then 8676 enable_fast_install=yes 8677 fi 8678 done 8679 IFS=$lt_save_ifs 8680 ;; 8681 esac 8682else 8683 enable_fast_install=yes 8684fi 8685 8686 8687 8688 8689 8690 8691 8692 8693 shared_archive_member_spec= 8694case $host,$enable_shared in 8695power*-*-aix[5-9]*,yes) 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8697$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8698 8699# Check whether --with-aix-soname was given. 8700if test "${with_aix_soname+set}" = set; then : 8701 withval=$with_aix_soname; case $withval in 8702 aix|svr4|both) 8703 ;; 8704 *) 8705 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8706 ;; 8707 esac 8708 lt_cv_with_aix_soname=$with_aix_soname 8709else 8710 if ${lt_cv_with_aix_soname+:} false; then : 8711 $as_echo_n "(cached) " >&6 8712else 8713 lt_cv_with_aix_soname=aix 8714fi 8715 8716 with_aix_soname=$lt_cv_with_aix_soname 8717fi 8718 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8720$as_echo "$with_aix_soname" >&6; } 8721 if test aix != "$with_aix_soname"; then 8722 # For the AIX way of multilib, we name the shared archive member 8723 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8724 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8725 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8726 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8727 if test 64 = "${OBJECT_MODE-32}"; then 8728 shared_archive_member_spec=shr_64 8729 else 8730 shared_archive_member_spec=shr 8731 fi 8732 fi 8733 ;; 8734*) 8735 with_aix_soname=aix 8736 ;; 8737esac 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748# This can be used to rebuild libtool when needed 8749LIBTOOL_DEPS=$ltmain 8750 8751# Always use our own libtool. 8752LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783test -z "$LN_S" && LN_S="ln -s" 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798if test -n "${ZSH_VERSION+set}"; then 8799 setopt NO_GLOB_SUBST 8800fi 8801 8802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8803$as_echo_n "checking for objdir... " >&6; } 8804if ${lt_cv_objdir+:} false; then : 8805 $as_echo_n "(cached) " >&6 8806else 8807 rm -f .libs 2>/dev/null 8808mkdir .libs 2>/dev/null 8809if test -d .libs; then 8810 lt_cv_objdir=.libs 8811else 8812 # MS-DOS does not allow filenames that begin with a dot. 8813 lt_cv_objdir=_libs 8814fi 8815rmdir .libs 2>/dev/null 8816fi 8817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8818$as_echo "$lt_cv_objdir" >&6; } 8819objdir=$lt_cv_objdir 8820 8821 8822 8823 8824 8825cat >>confdefs.h <<_ACEOF 8826#define LT_OBJDIR "$lt_cv_objdir/" 8827_ACEOF 8828 8829 8830 8831 8832case $host_os in 8833aix3*) 8834 # AIX sometimes has problems with the GCC collect2 program. For some 8835 # reason, if we set the COLLECT_NAMES environment variable, the problems 8836 # vanish in a puff of smoke. 8837 if test set != "${COLLECT_NAMES+set}"; then 8838 COLLECT_NAMES= 8839 export COLLECT_NAMES 8840 fi 8841 ;; 8842esac 8843 8844# Global variables: 8845ofile=libtool 8846can_build_shared=yes 8847 8848# All known linkers require a '.a' archive for static linking (except MSVC, 8849# which needs '.lib'). 8850libext=a 8851 8852with_gnu_ld=$lt_cv_prog_gnu_ld 8853 8854old_CC=$CC 8855old_CFLAGS=$CFLAGS 8856 8857# Set sane defaults for various variables 8858test -z "$CC" && CC=cc 8859test -z "$LTCC" && LTCC=$CC 8860test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8861test -z "$LD" && LD=ld 8862test -z "$ac_objext" && ac_objext=o 8863 8864func_cc_basename $compiler 8865cc_basename=$func_cc_basename_result 8866 8867 8868# Only perform the check for file, if the check method requires it 8869test -z "$MAGIC_CMD" && MAGIC_CMD=file 8870case $deplibs_check_method in 8871file_magic*) 8872 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8874$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8875if ${lt_cv_path_MAGIC_CMD+:} false; then : 8876 $as_echo_n "(cached) " >&6 8877else 8878 case $MAGIC_CMD in 8879[\\/*] | ?:[\\/]*) 8880 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8881 ;; 8882*) 8883 lt_save_MAGIC_CMD=$MAGIC_CMD 8884 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8885 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8886 for ac_dir in $ac_dummy; do 8887 IFS=$lt_save_ifs 8888 test -z "$ac_dir" && ac_dir=. 8889 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8890 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8891 if test -n "$file_magic_test_file"; then 8892 case $deplibs_check_method in 8893 "file_magic "*) 8894 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8895 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8896 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8897 $EGREP "$file_magic_regex" > /dev/null; then 8898 : 8899 else 8900 cat <<_LT_EOF 1>&2 8901 8902*** Warning: the command libtool uses to detect shared libraries, 8903*** $file_magic_cmd, produces output that libtool cannot recognize. 8904*** The result is that libtool may fail to recognize shared libraries 8905*** as such. This will affect the creation of libtool libraries that 8906*** depend on shared libraries, but programs linked with such libtool 8907*** libraries will work regardless of this problem. Nevertheless, you 8908*** may want to report the problem to your system manager and/or to 8909*** bug-libtool@gnu.org 8910 8911_LT_EOF 8912 fi ;; 8913 esac 8914 fi 8915 break 8916 fi 8917 done 8918 IFS=$lt_save_ifs 8919 MAGIC_CMD=$lt_save_MAGIC_CMD 8920 ;; 8921esac 8922fi 8923 8924MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8925if test -n "$MAGIC_CMD"; then 8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8927$as_echo "$MAGIC_CMD" >&6; } 8928else 8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8930$as_echo "no" >&6; } 8931fi 8932 8933 8934 8935 8936 8937if test -z "$lt_cv_path_MAGIC_CMD"; then 8938 if test -n "$ac_tool_prefix"; then 8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8940$as_echo_n "checking for file... " >&6; } 8941if ${lt_cv_path_MAGIC_CMD+:} false; then : 8942 $as_echo_n "(cached) " >&6 8943else 8944 case $MAGIC_CMD in 8945[\\/*] | ?:[\\/]*) 8946 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8947 ;; 8948*) 8949 lt_save_MAGIC_CMD=$MAGIC_CMD 8950 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8951 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8952 for ac_dir in $ac_dummy; do 8953 IFS=$lt_save_ifs 8954 test -z "$ac_dir" && ac_dir=. 8955 if test -f "$ac_dir/file"; then 8956 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8957 if test -n "$file_magic_test_file"; then 8958 case $deplibs_check_method in 8959 "file_magic "*) 8960 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8961 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8962 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8963 $EGREP "$file_magic_regex" > /dev/null; then 8964 : 8965 else 8966 cat <<_LT_EOF 1>&2 8967 8968*** Warning: the command libtool uses to detect shared libraries, 8969*** $file_magic_cmd, produces output that libtool cannot recognize. 8970*** The result is that libtool may fail to recognize shared libraries 8971*** as such. This will affect the creation of libtool libraries that 8972*** depend on shared libraries, but programs linked with such libtool 8973*** libraries will work regardless of this problem. Nevertheless, you 8974*** may want to report the problem to your system manager and/or to 8975*** bug-libtool@gnu.org 8976 8977_LT_EOF 8978 fi ;; 8979 esac 8980 fi 8981 break 8982 fi 8983 done 8984 IFS=$lt_save_ifs 8985 MAGIC_CMD=$lt_save_MAGIC_CMD 8986 ;; 8987esac 8988fi 8989 8990MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8991if test -n "$MAGIC_CMD"; then 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8993$as_echo "$MAGIC_CMD" >&6; } 8994else 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8996$as_echo "no" >&6; } 8997fi 8998 8999 9000 else 9001 MAGIC_CMD=: 9002 fi 9003fi 9004 9005 fi 9006 ;; 9007esac 9008 9009# Use C for the default configuration in the libtool script 9010 9011lt_save_CC=$CC 9012ac_ext=c 9013ac_cpp='$CPP $CPPFLAGS' 9014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9016ac_compiler_gnu=$ac_cv_c_compiler_gnu 9017 9018 9019# Source file extension for C test sources. 9020ac_ext=c 9021 9022# Object file extension for compiled C test sources. 9023objext=o 9024objext=$objext 9025 9026# Code to be used in simple compile tests 9027lt_simple_compile_test_code="int some_variable = 0;" 9028 9029# Code to be used in simple link tests 9030lt_simple_link_test_code='int main(){return(0);}' 9031 9032 9033 9034 9035 9036 9037 9038# If no C compiler was specified, use CC. 9039LTCC=${LTCC-"$CC"} 9040 9041# If no C compiler flags were specified, use CFLAGS. 9042LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9043 9044# Allow CC to be a program name with arguments. 9045compiler=$CC 9046 9047# Save the default compiler, since it gets overwritten when the other 9048# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9049compiler_DEFAULT=$CC 9050 9051# save warnings/boilerplate of simple test code 9052ac_outfile=conftest.$ac_objext 9053echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9054eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9055_lt_compiler_boilerplate=`cat conftest.err` 9056$RM conftest* 9057 9058ac_outfile=conftest.$ac_objext 9059echo "$lt_simple_link_test_code" >conftest.$ac_ext 9060eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9061_lt_linker_boilerplate=`cat conftest.err` 9062$RM -r conftest* 9063 9064 9065## CAVEAT EMPTOR: 9066## There is no encapsulation within the following macros, do not change 9067## the running order or otherwise move them around unless you know exactly 9068## what you are doing... 9069if test -n "$compiler"; then 9070 9071lt_prog_compiler_no_builtin_flag= 9072 9073if test yes = "$GCC"; then 9074 case $cc_basename in 9075 nvcc*) 9076 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9077 *) 9078 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9079 esac 9080 9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9082$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9083if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9084 $as_echo_n "(cached) " >&6 9085else 9086 lt_cv_prog_compiler_rtti_exceptions=no 9087 ac_outfile=conftest.$ac_objext 9088 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9089 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9090 # Insert the option either (1) after the last *FLAGS variable, or 9091 # (2) before a word containing "conftest.", or (3) at the end. 9092 # Note that $ac_compile itself does not contain backslashes and begins 9093 # with a dollar sign (not a hyphen), so the echo should work correctly. 9094 # The option is referenced via a variable to avoid confusing sed. 9095 lt_compile=`echo "$ac_compile" | $SED \ 9096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9098 -e 's:$: $lt_compiler_flag:'` 9099 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9100 (eval "$lt_compile" 2>conftest.err) 9101 ac_status=$? 9102 cat conftest.err >&5 9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9104 if (exit $ac_status) && test -s "$ac_outfile"; then 9105 # The compiler can only warn and ignore the option if not recognized 9106 # So say no if there are warnings other than the usual output. 9107 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9109 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9110 lt_cv_prog_compiler_rtti_exceptions=yes 9111 fi 9112 fi 9113 $RM conftest* 9114 9115fi 9116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9117$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9118 9119if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9120 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9121else 9122 : 9123fi 9124 9125fi 9126 9127 9128 9129 9130 9131 9132 lt_prog_compiler_wl= 9133lt_prog_compiler_pic= 9134lt_prog_compiler_static= 9135 9136 9137 if test yes = "$GCC"; then 9138 lt_prog_compiler_wl='-Wl,' 9139 lt_prog_compiler_static='-static' 9140 9141 case $host_os in 9142 aix*) 9143 # All AIX code is PIC. 9144 if test ia64 = "$host_cpu"; then 9145 # AIX 5 now supports IA64 processor 9146 lt_prog_compiler_static='-Bstatic' 9147 fi 9148 lt_prog_compiler_pic='-fPIC' 9149 ;; 9150 9151 amigaos*) 9152 case $host_cpu in 9153 powerpc) 9154 # see comment about AmigaOS4 .so support 9155 lt_prog_compiler_pic='-fPIC' 9156 ;; 9157 m68k) 9158 # FIXME: we need at least 68020 code to build shared libraries, but 9159 # adding the '-m68020' flag to GCC prevents building anything better, 9160 # like '-m68040'. 9161 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9162 ;; 9163 esac 9164 ;; 9165 9166 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9167 # PIC is the default for these OSes. 9168 ;; 9169 9170 mingw* | cygwin* | pw32* | os2* | cegcc*) 9171 # This hack is so that the source file can tell whether it is being 9172 # built for inclusion in a dll (and should export symbols for example). 9173 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9174 # (--disable-auto-import) libraries 9175 lt_prog_compiler_pic='-DDLL_EXPORT' 9176 case $host_os in 9177 os2*) 9178 lt_prog_compiler_static='$wl-static' 9179 ;; 9180 esac 9181 ;; 9182 9183 darwin* | rhapsody*) 9184 # PIC is the default on this platform 9185 # Common symbols not allowed in MH_DYLIB files 9186 lt_prog_compiler_pic='-fno-common' 9187 ;; 9188 9189 haiku*) 9190 # PIC is the default for Haiku. 9191 # The "-static" flag exists, but is broken. 9192 lt_prog_compiler_static= 9193 ;; 9194 9195 hpux*) 9196 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9197 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9198 # sets the default TLS model and affects inlining. 9199 case $host_cpu in 9200 hppa*64*) 9201 # +Z the default 9202 ;; 9203 *) 9204 lt_prog_compiler_pic='-fPIC' 9205 ;; 9206 esac 9207 ;; 9208 9209 interix[3-9]*) 9210 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9211 # Instead, we relocate shared libraries at runtime. 9212 ;; 9213 9214 msdosdjgpp*) 9215 # Just because we use GCC doesn't mean we suddenly get shared libraries 9216 # on systems that don't support them. 9217 lt_prog_compiler_can_build_shared=no 9218 enable_shared=no 9219 ;; 9220 9221 *nto* | *qnx*) 9222 # QNX uses GNU C++, but need to define -shared option too, otherwise 9223 # it will coredump. 9224 lt_prog_compiler_pic='-fPIC -shared' 9225 ;; 9226 9227 sysv4*MP*) 9228 if test -d /usr/nec; then 9229 lt_prog_compiler_pic=-Kconform_pic 9230 fi 9231 ;; 9232 9233 *) 9234 lt_prog_compiler_pic='-fPIC' 9235 ;; 9236 esac 9237 9238 case $cc_basename in 9239 nvcc*) # Cuda Compiler Driver 2.2 9240 lt_prog_compiler_wl='-Xlinker ' 9241 if test -n "$lt_prog_compiler_pic"; then 9242 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9243 fi 9244 ;; 9245 esac 9246 else 9247 # PORTME Check for flag to pass linker flags through the system compiler. 9248 case $host_os in 9249 aix*) 9250 lt_prog_compiler_wl='-Wl,' 9251 if test ia64 = "$host_cpu"; then 9252 # AIX 5 now supports IA64 processor 9253 lt_prog_compiler_static='-Bstatic' 9254 else 9255 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9256 fi 9257 ;; 9258 9259 darwin* | rhapsody*) 9260 # PIC is the default on this platform 9261 # Common symbols not allowed in MH_DYLIB files 9262 lt_prog_compiler_pic='-fno-common' 9263 case $cc_basename in 9264 nagfor*) 9265 # NAG Fortran compiler 9266 lt_prog_compiler_wl='-Wl,-Wl,,' 9267 lt_prog_compiler_pic='-PIC' 9268 lt_prog_compiler_static='-Bstatic' 9269 ;; 9270 esac 9271 ;; 9272 9273 mingw* | cygwin* | pw32* | os2* | cegcc*) 9274 # This hack is so that the source file can tell whether it is being 9275 # built for inclusion in a dll (and should export symbols for example). 9276 lt_prog_compiler_pic='-DDLL_EXPORT' 9277 case $host_os in 9278 os2*) 9279 lt_prog_compiler_static='$wl-static' 9280 ;; 9281 esac 9282 ;; 9283 9284 hpux9* | hpux10* | hpux11*) 9285 lt_prog_compiler_wl='-Wl,' 9286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9287 # not for PA HP-UX. 9288 case $host_cpu in 9289 hppa*64*|ia64*) 9290 # +Z the default 9291 ;; 9292 *) 9293 lt_prog_compiler_pic='+Z' 9294 ;; 9295 esac 9296 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9297 lt_prog_compiler_static='$wl-a ${wl}archive' 9298 ;; 9299 9300 irix5* | irix6* | nonstopux*) 9301 lt_prog_compiler_wl='-Wl,' 9302 # PIC (with -KPIC) is the default. 9303 lt_prog_compiler_static='-non_shared' 9304 ;; 9305 9306 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9307 case $cc_basename in 9308 # old Intel for x86_64, which still supported -KPIC. 9309 ecc*) 9310 lt_prog_compiler_wl='-Wl,' 9311 lt_prog_compiler_pic='-KPIC' 9312 lt_prog_compiler_static='-static' 9313 ;; 9314 # icc used to be incompatible with GCC. 9315 # ICC 10 doesn't accept -KPIC any more. 9316 icc* | ifort*) 9317 lt_prog_compiler_wl='-Wl,' 9318 lt_prog_compiler_pic='-fPIC' 9319 lt_prog_compiler_static='-static' 9320 ;; 9321 # Lahey Fortran 8.1. 9322 lf95*) 9323 lt_prog_compiler_wl='-Wl,' 9324 lt_prog_compiler_pic='--shared' 9325 lt_prog_compiler_static='--static' 9326 ;; 9327 nagfor*) 9328 # NAG Fortran compiler 9329 lt_prog_compiler_wl='-Wl,-Wl,,' 9330 lt_prog_compiler_pic='-PIC' 9331 lt_prog_compiler_static='-Bstatic' 9332 ;; 9333 tcc*) 9334 # Fabrice Bellard et al's Tiny C Compiler 9335 lt_prog_compiler_wl='-Wl,' 9336 lt_prog_compiler_pic='-fPIC' 9337 lt_prog_compiler_static='-static' 9338 ;; 9339 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9340 # Portland Group compilers (*not* the Pentium gcc compiler, 9341 # which looks to be a dead project) 9342 lt_prog_compiler_wl='-Wl,' 9343 lt_prog_compiler_pic='-fpic' 9344 lt_prog_compiler_static='-Bstatic' 9345 ;; 9346 ccc*) 9347 lt_prog_compiler_wl='-Wl,' 9348 # All Alpha code is PIC. 9349 lt_prog_compiler_static='-non_shared' 9350 ;; 9351 xl* | bgxl* | bgf* | mpixl*) 9352 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9353 lt_prog_compiler_wl='-Wl,' 9354 lt_prog_compiler_pic='-qpic' 9355 lt_prog_compiler_static='-qstaticlink' 9356 ;; 9357 *) 9358 case `$CC -V 2>&1 | sed 5q` in 9359 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9360 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9361 lt_prog_compiler_pic='-KPIC' 9362 lt_prog_compiler_static='-Bstatic' 9363 lt_prog_compiler_wl='' 9364 ;; 9365 *Sun\ F* | *Sun*Fortran*) 9366 lt_prog_compiler_pic='-KPIC' 9367 lt_prog_compiler_static='-Bstatic' 9368 lt_prog_compiler_wl='-Qoption ld ' 9369 ;; 9370 *Sun\ C*) 9371 # Sun C 5.9 9372 lt_prog_compiler_pic='-KPIC' 9373 lt_prog_compiler_static='-Bstatic' 9374 lt_prog_compiler_wl='-Wl,' 9375 ;; 9376 *Intel*\ [CF]*Compiler*) 9377 lt_prog_compiler_wl='-Wl,' 9378 lt_prog_compiler_pic='-fPIC' 9379 lt_prog_compiler_static='-static' 9380 ;; 9381 *Portland\ Group*) 9382 lt_prog_compiler_wl='-Wl,' 9383 lt_prog_compiler_pic='-fpic' 9384 lt_prog_compiler_static='-Bstatic' 9385 ;; 9386 esac 9387 ;; 9388 esac 9389 ;; 9390 9391 newsos6) 9392 lt_prog_compiler_pic='-KPIC' 9393 lt_prog_compiler_static='-Bstatic' 9394 ;; 9395 9396 *nto* | *qnx*) 9397 # QNX uses GNU C++, but need to define -shared option too, otherwise 9398 # it will coredump. 9399 lt_prog_compiler_pic='-fPIC -shared' 9400 ;; 9401 9402 osf3* | osf4* | osf5*) 9403 lt_prog_compiler_wl='-Wl,' 9404 # All OSF/1 code is PIC. 9405 lt_prog_compiler_static='-non_shared' 9406 ;; 9407 9408 rdos*) 9409 lt_prog_compiler_static='-non_shared' 9410 ;; 9411 9412 solaris*) 9413 lt_prog_compiler_pic='-KPIC' 9414 lt_prog_compiler_static='-Bstatic' 9415 case $cc_basename in 9416 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9417 lt_prog_compiler_wl='-Qoption ld ';; 9418 *) 9419 lt_prog_compiler_wl='-Wl,';; 9420 esac 9421 ;; 9422 9423 sunos4*) 9424 lt_prog_compiler_wl='-Qoption ld ' 9425 lt_prog_compiler_pic='-PIC' 9426 lt_prog_compiler_static='-Bstatic' 9427 ;; 9428 9429 sysv4 | sysv4.2uw2* | sysv4.3*) 9430 lt_prog_compiler_wl='-Wl,' 9431 lt_prog_compiler_pic='-KPIC' 9432 lt_prog_compiler_static='-Bstatic' 9433 ;; 9434 9435 sysv4*MP*) 9436 if test -d /usr/nec; then 9437 lt_prog_compiler_pic='-Kconform_pic' 9438 lt_prog_compiler_static='-Bstatic' 9439 fi 9440 ;; 9441 9442 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9443 lt_prog_compiler_wl='-Wl,' 9444 lt_prog_compiler_pic='-KPIC' 9445 lt_prog_compiler_static='-Bstatic' 9446 ;; 9447 9448 unicos*) 9449 lt_prog_compiler_wl='-Wl,' 9450 lt_prog_compiler_can_build_shared=no 9451 ;; 9452 9453 uts4*) 9454 lt_prog_compiler_pic='-pic' 9455 lt_prog_compiler_static='-Bstatic' 9456 ;; 9457 9458 *) 9459 lt_prog_compiler_can_build_shared=no 9460 ;; 9461 esac 9462 fi 9463 9464case $host_os in 9465 # For platforms that do not support PIC, -DPIC is meaningless: 9466 *djgpp*) 9467 lt_prog_compiler_pic= 9468 ;; 9469 *) 9470 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9471 ;; 9472esac 9473 9474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9475$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9476if ${lt_cv_prog_compiler_pic+:} false; then : 9477 $as_echo_n "(cached) " >&6 9478else 9479 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9480fi 9481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9482$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9483lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9484 9485# 9486# Check to make sure the PIC flag actually works. 9487# 9488if test -n "$lt_prog_compiler_pic"; then 9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9490$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9491if ${lt_cv_prog_compiler_pic_works+:} false; then : 9492 $as_echo_n "(cached) " >&6 9493else 9494 lt_cv_prog_compiler_pic_works=no 9495 ac_outfile=conftest.$ac_objext 9496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9497 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9498 # Insert the option either (1) after the last *FLAGS variable, or 9499 # (2) before a word containing "conftest.", or (3) at the end. 9500 # Note that $ac_compile itself does not contain backslashes and begins 9501 # with a dollar sign (not a hyphen), so the echo should work correctly. 9502 # The option is referenced via a variable to avoid confusing sed. 9503 lt_compile=`echo "$ac_compile" | $SED \ 9504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9506 -e 's:$: $lt_compiler_flag:'` 9507 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9508 (eval "$lt_compile" 2>conftest.err) 9509 ac_status=$? 9510 cat conftest.err >&5 9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9512 if (exit $ac_status) && test -s "$ac_outfile"; then 9513 # The compiler can only warn and ignore the option if not recognized 9514 # So say no if there are warnings other than the usual output. 9515 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9517 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9518 lt_cv_prog_compiler_pic_works=yes 9519 fi 9520 fi 9521 $RM conftest* 9522 9523fi 9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9525$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9526 9527if test yes = "$lt_cv_prog_compiler_pic_works"; then 9528 case $lt_prog_compiler_pic in 9529 "" | " "*) ;; 9530 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9531 esac 9532else 9533 lt_prog_compiler_pic= 9534 lt_prog_compiler_can_build_shared=no 9535fi 9536 9537fi 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549# 9550# Check to make sure the static flag actually works. 9551# 9552wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9554$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9555if ${lt_cv_prog_compiler_static_works+:} false; then : 9556 $as_echo_n "(cached) " >&6 9557else 9558 lt_cv_prog_compiler_static_works=no 9559 save_LDFLAGS=$LDFLAGS 9560 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9561 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9562 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9563 # The linker can only warn and ignore the option if not recognized 9564 # So say no if there are warnings 9565 if test -s conftest.err; then 9566 # Append any errors to the config.log. 9567 cat conftest.err 1>&5 9568 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9569 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9570 if diff conftest.exp conftest.er2 >/dev/null; then 9571 lt_cv_prog_compiler_static_works=yes 9572 fi 9573 else 9574 lt_cv_prog_compiler_static_works=yes 9575 fi 9576 fi 9577 $RM -r conftest* 9578 LDFLAGS=$save_LDFLAGS 9579 9580fi 9581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9582$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9583 9584if test yes = "$lt_cv_prog_compiler_static_works"; then 9585 : 9586else 9587 lt_prog_compiler_static= 9588fi 9589 9590 9591 9592 9593 9594 9595 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9597$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9598if ${lt_cv_prog_compiler_c_o+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600else 9601 lt_cv_prog_compiler_c_o=no 9602 $RM -r conftest 2>/dev/null 9603 mkdir conftest 9604 cd conftest 9605 mkdir out 9606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9607 9608 lt_compiler_flag="-o out/conftest2.$ac_objext" 9609 # Insert the option either (1) after the last *FLAGS variable, or 9610 # (2) before a word containing "conftest.", or (3) at the end. 9611 # Note that $ac_compile itself does not contain backslashes and begins 9612 # with a dollar sign (not a hyphen), so the echo should work correctly. 9613 lt_compile=`echo "$ac_compile" | $SED \ 9614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9616 -e 's:$: $lt_compiler_flag:'` 9617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9618 (eval "$lt_compile" 2>out/conftest.err) 9619 ac_status=$? 9620 cat out/conftest.err >&5 9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9622 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9623 then 9624 # The compiler can only warn and ignore the option if not recognized 9625 # So say no if there are warnings 9626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9629 lt_cv_prog_compiler_c_o=yes 9630 fi 9631 fi 9632 chmod u+w . 2>&5 9633 $RM conftest* 9634 # SGI C++ compiler will create directory out/ii_files/ for 9635 # template instantiation 9636 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9637 $RM out/* && rmdir out 9638 cd .. 9639 $RM -r conftest 9640 $RM conftest* 9641 9642fi 9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9644$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9645 9646 9647 9648 9649 9650 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9652$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9653if ${lt_cv_prog_compiler_c_o+:} false; then : 9654 $as_echo_n "(cached) " >&6 9655else 9656 lt_cv_prog_compiler_c_o=no 9657 $RM -r conftest 2>/dev/null 9658 mkdir conftest 9659 cd conftest 9660 mkdir out 9661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9662 9663 lt_compiler_flag="-o out/conftest2.$ac_objext" 9664 # Insert the option either (1) after the last *FLAGS variable, or 9665 # (2) before a word containing "conftest.", or (3) at the end. 9666 # Note that $ac_compile itself does not contain backslashes and begins 9667 # with a dollar sign (not a hyphen), so the echo should work correctly. 9668 lt_compile=`echo "$ac_compile" | $SED \ 9669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9671 -e 's:$: $lt_compiler_flag:'` 9672 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9673 (eval "$lt_compile" 2>out/conftest.err) 9674 ac_status=$? 9675 cat out/conftest.err >&5 9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9677 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9678 then 9679 # The compiler can only warn and ignore the option if not recognized 9680 # So say no if there are warnings 9681 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9682 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9683 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9684 lt_cv_prog_compiler_c_o=yes 9685 fi 9686 fi 9687 chmod u+w . 2>&5 9688 $RM conftest* 9689 # SGI C++ compiler will create directory out/ii_files/ for 9690 # template instantiation 9691 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9692 $RM out/* && rmdir out 9693 cd .. 9694 $RM -r conftest 9695 $RM conftest* 9696 9697fi 9698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9699$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9700 9701 9702 9703 9704hard_links=nottested 9705if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9706 # do not overwrite the value of need_locks provided by the user 9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9708$as_echo_n "checking if we can lock with hard links... " >&6; } 9709 hard_links=yes 9710 $RM conftest* 9711 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9712 touch conftest.a 9713 ln conftest.a conftest.b 2>&5 || hard_links=no 9714 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9716$as_echo "$hard_links" >&6; } 9717 if test no = "$hard_links"; then 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9719$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9720 need_locks=warn 9721 fi 9722else 9723 need_locks=no 9724fi 9725 9726 9727 9728 9729 9730 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9732$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9733 9734 runpath_var= 9735 allow_undefined_flag= 9736 always_export_symbols=no 9737 archive_cmds= 9738 archive_expsym_cmds= 9739 compiler_needs_object=no 9740 enable_shared_with_static_runtimes=no 9741 export_dynamic_flag_spec= 9742 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9743 hardcode_automatic=no 9744 hardcode_direct=no 9745 hardcode_direct_absolute=no 9746 hardcode_libdir_flag_spec= 9747 hardcode_libdir_separator= 9748 hardcode_minus_L=no 9749 hardcode_shlibpath_var=unsupported 9750 inherit_rpath=no 9751 link_all_deplibs=unknown 9752 module_cmds= 9753 module_expsym_cmds= 9754 old_archive_from_new_cmds= 9755 old_archive_from_expsyms_cmds= 9756 thread_safe_flag_spec= 9757 whole_archive_flag_spec= 9758 # include_expsyms should be a list of space-separated symbols to be *always* 9759 # included in the symbol list 9760 include_expsyms= 9761 # exclude_expsyms can be an extended regexp of symbols to exclude 9762 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9763 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9764 # as well as any symbol that contains 'd'. 9765 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9766 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9767 # platforms (ab)use it in PIC code, but their linkers get confused if 9768 # the symbol is explicitly referenced. Since portable code cannot 9769 # rely on this symbol name, it's probably fine to never include it in 9770 # preloaded symbol tables. 9771 # Exclude shared library initialization/finalization symbols. 9772 extract_expsyms_cmds= 9773 9774 case $host_os in 9775 cygwin* | mingw* | pw32* | cegcc*) 9776 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9777 # When not using gcc, we currently assume that we are using 9778 # Microsoft Visual C++. 9779 if test yes != "$GCC"; then 9780 with_gnu_ld=no 9781 fi 9782 ;; 9783 interix*) 9784 # we just hope/assume this is gcc and not c89 (= MSVC++) 9785 with_gnu_ld=yes 9786 ;; 9787 openbsd* | bitrig*) 9788 with_gnu_ld=no 9789 ;; 9790 esac 9791 9792 ld_shlibs=yes 9793 9794 # On some targets, GNU ld is compatible enough with the native linker 9795 # that we're better off using the native interface for both. 9796 lt_use_gnu_ld_interface=no 9797 if test yes = "$with_gnu_ld"; then 9798 case $host_os in 9799 aix*) 9800 # The AIX port of GNU ld has always aspired to compatibility 9801 # with the native linker. However, as the warning in the GNU ld 9802 # block says, versions before 2.19.5* couldn't really create working 9803 # shared libraries, regardless of the interface used. 9804 case `$LD -v 2>&1` in 9805 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9806 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9807 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9808 *) 9809 lt_use_gnu_ld_interface=yes 9810 ;; 9811 esac 9812 ;; 9813 *) 9814 lt_use_gnu_ld_interface=yes 9815 ;; 9816 esac 9817 fi 9818 9819 if test yes = "$lt_use_gnu_ld_interface"; then 9820 # If archive_cmds runs LD, not CC, wlarc should be empty 9821 wlarc='$wl' 9822 9823 # Set some defaults for GNU ld with shared library support. These 9824 # are reset later if shared libraries are not supported. Putting them 9825 # here allows them to be overridden if necessary. 9826 runpath_var=LD_RUN_PATH 9827 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9828 export_dynamic_flag_spec='$wl--export-dynamic' 9829 # ancient GNU ld didn't support --whole-archive et. al. 9830 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9831 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9832 else 9833 whole_archive_flag_spec= 9834 fi 9835 supports_anon_versioning=no 9836 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9837 *GNU\ gold*) supports_anon_versioning=yes ;; 9838 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9839 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9840 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9841 *\ 2.11.*) ;; # other 2.11 versions 9842 *) supports_anon_versioning=yes ;; 9843 esac 9844 9845 # See if GNU ld supports shared libraries. 9846 case $host_os in 9847 aix[3-9]*) 9848 # On AIX/PPC, the GNU linker is very broken 9849 if test ia64 != "$host_cpu"; then 9850 ld_shlibs=no 9851 cat <<_LT_EOF 1>&2 9852 9853*** Warning: the GNU linker, at least up to release 2.19, is reported 9854*** to be unable to reliably create shared libraries on AIX. 9855*** Therefore, libtool is disabling shared libraries support. If you 9856*** really care for shared libraries, you may want to install binutils 9857*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9858*** You will then need to restart the configuration process. 9859 9860_LT_EOF 9861 fi 9862 ;; 9863 9864 amigaos*) 9865 case $host_cpu in 9866 powerpc) 9867 # see comment about AmigaOS4 .so support 9868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9869 archive_expsym_cmds='' 9870 ;; 9871 m68k) 9872 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)' 9873 hardcode_libdir_flag_spec='-L$libdir' 9874 hardcode_minus_L=yes 9875 ;; 9876 esac 9877 ;; 9878 9879 beos*) 9880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9881 allow_undefined_flag=unsupported 9882 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9883 # support --undefined. This deserves some investigation. FIXME 9884 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9885 else 9886 ld_shlibs=no 9887 fi 9888 ;; 9889 9890 cygwin* | mingw* | pw32* | cegcc*) 9891 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9892 # as there is no search path for DLLs. 9893 hardcode_libdir_flag_spec='-L$libdir' 9894 export_dynamic_flag_spec='$wl--export-all-symbols' 9895 allow_undefined_flag=unsupported 9896 always_export_symbols=no 9897 enable_shared_with_static_runtimes=yes 9898 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' 9899 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9900 9901 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9903 # If the export-symbols file already is a .def file, use it as 9904 # is; otherwise, prepend EXPORTS... 9905 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9906 cp $export_symbols $output_objdir/$soname.def; 9907 else 9908 echo EXPORTS > $output_objdir/$soname.def; 9909 cat $export_symbols >> $output_objdir/$soname.def; 9910 fi~ 9911 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9912 else 9913 ld_shlibs=no 9914 fi 9915 ;; 9916 9917 haiku*) 9918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9919 link_all_deplibs=yes 9920 ;; 9921 9922 os2*) 9923 hardcode_libdir_flag_spec='-L$libdir' 9924 hardcode_minus_L=yes 9925 allow_undefined_flag=unsupported 9926 shrext_cmds=.dll 9927 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9928 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9929 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9930 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9931 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9932 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9933 emximp -o $lib $output_objdir/$libname.def' 9934 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9935 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9936 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9937 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9938 prefix_cmds="$SED"~ 9939 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9940 prefix_cmds="$prefix_cmds -e 1d"; 9941 fi~ 9942 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9943 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9944 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9945 emximp -o $lib $output_objdir/$libname.def' 9946 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9947 enable_shared_with_static_runtimes=yes 9948 ;; 9949 9950 interix[3-9]*) 9951 hardcode_direct=no 9952 hardcode_shlibpath_var=no 9953 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9954 export_dynamic_flag_spec='$wl-E' 9955 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9956 # Instead, shared libraries are loaded at an image base (0x10000000 by 9957 # default) and relocated if they conflict, which is a slow very memory 9958 # consuming and fragmenting process. To avoid this, we pick a random, 9959 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9960 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9961 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9962 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' 9963 ;; 9964 9965 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9966 tmp_diet=no 9967 if test linux-dietlibc = "$host_os"; then 9968 case $cc_basename in 9969 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9970 esac 9971 fi 9972 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9973 && test no = "$tmp_diet" 9974 then 9975 tmp_addflag=' $pic_flag' 9976 tmp_sharedflag='-shared' 9977 case $cc_basename,$host_cpu in 9978 pgcc*) # Portland Group C compiler 9979 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' 9980 tmp_addflag=' $pic_flag' 9981 ;; 9982 pgf77* | pgf90* | pgf95* | pgfortran*) 9983 # Portland Group f77 and f90 compilers 9984 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' 9985 tmp_addflag=' $pic_flag -Mnomain' ;; 9986 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9987 tmp_addflag=' -i_dynamic' ;; 9988 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9989 tmp_addflag=' -i_dynamic -nofor_main' ;; 9990 ifc* | ifort*) # Intel Fortran compiler 9991 tmp_addflag=' -nofor_main' ;; 9992 lf95*) # Lahey Fortran 8.1 9993 whole_archive_flag_spec= 9994 tmp_sharedflag='--shared' ;; 9995 nagfor*) # NAGFOR 5.3 9996 tmp_sharedflag='-Wl,-shared' ;; 9997 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9998 tmp_sharedflag='-qmkshrobj' 9999 tmp_addflag= ;; 10000 nvcc*) # Cuda Compiler Driver 2.2 10001 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' 10002 compiler_needs_object=yes 10003 ;; 10004 esac 10005 case `$CC -V 2>&1 | sed 5q` in 10006 *Sun\ C*) # Sun C 5.9 10007 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' 10008 compiler_needs_object=yes 10009 tmp_sharedflag='-G' ;; 10010 *Sun\ F*) # Sun Fortran 8.3 10011 tmp_sharedflag='-G' ;; 10012 esac 10013 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10014 10015 if test yes = "$supports_anon_versioning"; then 10016 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10017 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10018 echo "local: *; };" >> $output_objdir/$libname.ver~ 10019 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10020 fi 10021 10022 case $cc_basename in 10023 tcc*) 10024 export_dynamic_flag_spec='-rdynamic' 10025 ;; 10026 xlf* | bgf* | bgxlf* | mpixlf*) 10027 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10028 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10029 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10030 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10031 if test yes = "$supports_anon_versioning"; then 10032 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10034 echo "local: *; };" >> $output_objdir/$libname.ver~ 10035 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10036 fi 10037 ;; 10038 esac 10039 else 10040 ld_shlibs=no 10041 fi 10042 ;; 10043 10044 netbsd*) 10045 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10046 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10047 wlarc= 10048 else 10049 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10050 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10051 fi 10052 ;; 10053 10054 solaris*) 10055 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10056 ld_shlibs=no 10057 cat <<_LT_EOF 1>&2 10058 10059*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10060*** create shared libraries on Solaris systems. Therefore, libtool 10061*** is disabling shared libraries support. We urge you to upgrade GNU 10062*** binutils to release 2.9.1 or newer. Another option is to modify 10063*** your PATH or compiler configuration so that the native linker is 10064*** used, and then restart. 10065 10066_LT_EOF 10067 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10068 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10069 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10070 else 10071 ld_shlibs=no 10072 fi 10073 ;; 10074 10075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10076 case `$LD -v 2>&1` in 10077 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10078 ld_shlibs=no 10079 cat <<_LT_EOF 1>&2 10080 10081*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10082*** reliably create shared libraries on SCO systems. Therefore, libtool 10083*** is disabling shared libraries support. We urge you to upgrade GNU 10084*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10085*** your PATH or compiler configuration so that the native linker is 10086*** used, and then restart. 10087 10088_LT_EOF 10089 ;; 10090 *) 10091 # For security reasons, it is highly recommended that you always 10092 # use absolute paths for naming shared libraries, and exclude the 10093 # DT_RUNPATH tag from executables and libraries. But doing so 10094 # requires that you compile everything twice, which is a pain. 10095 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10096 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10098 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10099 else 10100 ld_shlibs=no 10101 fi 10102 ;; 10103 esac 10104 ;; 10105 10106 sunos4*) 10107 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10108 wlarc= 10109 hardcode_direct=yes 10110 hardcode_shlibpath_var=no 10111 ;; 10112 10113 *) 10114 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10115 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10116 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10117 else 10118 ld_shlibs=no 10119 fi 10120 ;; 10121 esac 10122 10123 if test no = "$ld_shlibs"; then 10124 runpath_var= 10125 hardcode_libdir_flag_spec= 10126 export_dynamic_flag_spec= 10127 whole_archive_flag_spec= 10128 fi 10129 else 10130 # PORTME fill in a description of your system's linker (not GNU ld) 10131 case $host_os in 10132 aix3*) 10133 allow_undefined_flag=unsupported 10134 always_export_symbols=yes 10135 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' 10136 # Note: this linker hardcodes the directories in LIBPATH if there 10137 # are no directories specified by -L. 10138 hardcode_minus_L=yes 10139 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10140 # Neither direct hardcoding nor static linking is supported with a 10141 # broken collect2. 10142 hardcode_direct=unsupported 10143 fi 10144 ;; 10145 10146 aix[4-9]*) 10147 if test ia64 = "$host_cpu"; then 10148 # On IA64, the linker does run time linking by default, so we don't 10149 # have to do anything special. 10150 aix_use_runtimelinking=no 10151 exp_sym_flag='-Bexport' 10152 no_entry_flag= 10153 else 10154 # If we're using GNU nm, then we don't want the "-C" option. 10155 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10156 # Without the "-l" option, or with the "-B" option, AIX nm treats 10157 # weak defined symbols like other global defined symbols, whereas 10158 # GNU nm marks them as "W". 10159 # While the 'weak' keyword is ignored in the Export File, we need 10160 # it in the Import File for the 'aix-soname' feature, so we have 10161 # to replace the "-B" option with "-P" for AIX nm. 10162 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10163 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' 10164 else 10165 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' 10166 fi 10167 aix_use_runtimelinking=no 10168 10169 # Test if we are trying to use run time linking or normal 10170 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10171 # have runtime linking enabled, and use it for executables. 10172 # For shared libraries, we enable/disable runtime linking 10173 # depending on the kind of the shared library created - 10174 # when "with_aix_soname,aix_use_runtimelinking" is: 10175 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10176 # "aix,yes" lib.so shared, rtl:yes, for executables 10177 # lib.a static archive 10178 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10179 # lib.a(lib.so.V) shared, rtl:no, for executables 10180 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10181 # lib.a(lib.so.V) shared, rtl:no 10182 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10183 # lib.a static archive 10184 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10185 for ld_flag in $LDFLAGS; do 10186 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10187 aix_use_runtimelinking=yes 10188 break 10189 fi 10190 done 10191 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10192 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10193 # so we don't have lib.a shared libs to link our executables. 10194 # We have to force runtime linking in this case. 10195 aix_use_runtimelinking=yes 10196 LDFLAGS="$LDFLAGS -Wl,-brtl" 10197 fi 10198 ;; 10199 esac 10200 10201 exp_sym_flag='-bexport' 10202 no_entry_flag='-bnoentry' 10203 fi 10204 10205 # When large executables or shared objects are built, AIX ld can 10206 # have problems creating the table of contents. If linking a library 10207 # or program results in "error TOC overflow" add -mminimal-toc to 10208 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10209 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10210 10211 archive_cmds='' 10212 hardcode_direct=yes 10213 hardcode_direct_absolute=yes 10214 hardcode_libdir_separator=':' 10215 link_all_deplibs=yes 10216 file_list_spec='$wl-f,' 10217 case $with_aix_soname,$aix_use_runtimelinking in 10218 aix,*) ;; # traditional, no import file 10219 svr4,* | *,yes) # use import file 10220 # The Import File defines what to hardcode. 10221 hardcode_direct=no 10222 hardcode_direct_absolute=no 10223 ;; 10224 esac 10225 10226 if test yes = "$GCC"; then 10227 case $host_os in aix4.[012]|aix4.[012].*) 10228 # We only want to do this on AIX 4.2 and lower, the check 10229 # below for broken collect2 doesn't work under 4.3+ 10230 collect2name=`$CC -print-prog-name=collect2` 10231 if test -f "$collect2name" && 10232 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10233 then 10234 # We have reworked collect2 10235 : 10236 else 10237 # We have old collect2 10238 hardcode_direct=unsupported 10239 # It fails to find uninstalled libraries when the uninstalled 10240 # path is not listed in the libpath. Setting hardcode_minus_L 10241 # to unsupported forces relinking 10242 hardcode_minus_L=yes 10243 hardcode_libdir_flag_spec='-L$libdir' 10244 hardcode_libdir_separator= 10245 fi 10246 ;; 10247 esac 10248 shared_flag='-shared' 10249 if test yes = "$aix_use_runtimelinking"; then 10250 shared_flag="$shared_flag "'$wl-G' 10251 fi 10252 # Need to ensure runtime linking is disabled for the traditional 10253 # shared library, or the linker may eventually find shared libraries 10254 # /with/ Import File - we do not want to mix them. 10255 shared_flag_aix='-shared' 10256 shared_flag_svr4='-shared $wl-G' 10257 else 10258 # not using gcc 10259 if test ia64 = "$host_cpu"; then 10260 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10261 # chokes on -Wl,-G. The following line is correct: 10262 shared_flag='-G' 10263 else 10264 if test yes = "$aix_use_runtimelinking"; then 10265 shared_flag='$wl-G' 10266 else 10267 shared_flag='$wl-bM:SRE' 10268 fi 10269 shared_flag_aix='$wl-bM:SRE' 10270 shared_flag_svr4='$wl-G' 10271 fi 10272 fi 10273 10274 export_dynamic_flag_spec='$wl-bexpall' 10275 # It seems that -bexpall does not export symbols beginning with 10276 # underscore (_), so it is better to generate a list of symbols to export. 10277 always_export_symbols=yes 10278 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10279 # Warning - without using the other runtime loading flags (-brtl), 10280 # -berok will link without error, but may produce a broken library. 10281 allow_undefined_flag='-berok' 10282 # Determine the default libpath from the value encoded in an 10283 # empty executable. 10284 if test set = "${lt_cv_aix_libpath+set}"; then 10285 aix_libpath=$lt_cv_aix_libpath 10286else 10287 if ${lt_cv_aix_libpath_+:} false; then : 10288 $as_echo_n "(cached) " >&6 10289else 10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10291/* end confdefs.h. */ 10292 10293int 10294main () 10295{ 10296 10297 ; 10298 return 0; 10299} 10300_ACEOF 10301if ac_fn_c_try_link "$LINENO"; then : 10302 10303 lt_aix_libpath_sed=' 10304 /Import File Strings/,/^$/ { 10305 /^0/ { 10306 s/^0 *\([^ ]*\) *$/\1/ 10307 p 10308 } 10309 }' 10310 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10311 # Check for a 64-bit object if we didn't find anything. 10312 if test -z "$lt_cv_aix_libpath_"; then 10313 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10314 fi 10315fi 10316rm -f core conftest.err conftest.$ac_objext \ 10317 conftest$ac_exeext conftest.$ac_ext 10318 if test -z "$lt_cv_aix_libpath_"; then 10319 lt_cv_aix_libpath_=/usr/lib:/lib 10320 fi 10321 10322fi 10323 10324 aix_libpath=$lt_cv_aix_libpath_ 10325fi 10326 10327 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10328 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 10329 else 10330 if test ia64 = "$host_cpu"; then 10331 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10332 allow_undefined_flag="-z nodefs" 10333 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" 10334 else 10335 # Determine the default libpath from the value encoded in an 10336 # empty executable. 10337 if test set = "${lt_cv_aix_libpath+set}"; then 10338 aix_libpath=$lt_cv_aix_libpath 10339else 10340 if ${lt_cv_aix_libpath_+:} false; then : 10341 $as_echo_n "(cached) " >&6 10342else 10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10344/* end confdefs.h. */ 10345 10346int 10347main () 10348{ 10349 10350 ; 10351 return 0; 10352} 10353_ACEOF 10354if ac_fn_c_try_link "$LINENO"; then : 10355 10356 lt_aix_libpath_sed=' 10357 /Import File Strings/,/^$/ { 10358 /^0/ { 10359 s/^0 *\([^ ]*\) *$/\1/ 10360 p 10361 } 10362 }' 10363 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10364 # Check for a 64-bit object if we didn't find anything. 10365 if test -z "$lt_cv_aix_libpath_"; then 10366 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10367 fi 10368fi 10369rm -f core conftest.err conftest.$ac_objext \ 10370 conftest$ac_exeext conftest.$ac_ext 10371 if test -z "$lt_cv_aix_libpath_"; then 10372 lt_cv_aix_libpath_=/usr/lib:/lib 10373 fi 10374 10375fi 10376 10377 aix_libpath=$lt_cv_aix_libpath_ 10378fi 10379 10380 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10381 # Warning - without using the other run time loading flags, 10382 # -berok will link without error, but may produce a broken library. 10383 no_undefined_flag=' $wl-bernotok' 10384 allow_undefined_flag=' $wl-berok' 10385 if test yes = "$with_gnu_ld"; then 10386 # We only use this code for GNU lds that support --whole-archive. 10387 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10388 else 10389 # Exported symbols can be pulled into shared objects from archives 10390 whole_archive_flag_spec='$convenience' 10391 fi 10392 archive_cmds_need_lc=yes 10393 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10394 # -brtl affects multiple linker settings, -berok does not and is overridden later 10395 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10396 if test svr4 != "$with_aix_soname"; then 10397 # This is similar to how AIX traditionally builds its shared libraries. 10398 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' 10399 fi 10400 if test aix != "$with_aix_soname"; then 10401 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' 10402 else 10403 # used by -dlpreopen to get the symbols 10404 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10405 fi 10406 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10407 fi 10408 fi 10409 ;; 10410 10411 amigaos*) 10412 case $host_cpu in 10413 powerpc) 10414 # see comment about AmigaOS4 .so support 10415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10416 archive_expsym_cmds='' 10417 ;; 10418 m68k) 10419 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)' 10420 hardcode_libdir_flag_spec='-L$libdir' 10421 hardcode_minus_L=yes 10422 ;; 10423 esac 10424 ;; 10425 10426 bsdi[45]*) 10427 export_dynamic_flag_spec=-rdynamic 10428 ;; 10429 10430 cygwin* | mingw* | pw32* | cegcc*) 10431 # When not using gcc, we currently assume that we are using 10432 # Microsoft Visual C++. 10433 # hardcode_libdir_flag_spec is actually meaningless, as there is 10434 # no search path for DLLs. 10435 case $cc_basename in 10436 cl*) 10437 # Native MSVC 10438 hardcode_libdir_flag_spec=' ' 10439 allow_undefined_flag=unsupported 10440 always_export_symbols=yes 10441 file_list_spec='@' 10442 # Tell ltmain to make .lib files, not .a files. 10443 libext=lib 10444 # Tell ltmain to make .dll files, not .so files. 10445 shrext_cmds=.dll 10446 # FIXME: Setting linknames here is a bad hack. 10447 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10448 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10449 cp "$export_symbols" "$output_objdir/$soname.def"; 10450 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10451 else 10452 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10453 fi~ 10454 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10455 linknames=' 10456 # The linker will not automatically build a static lib if we build a DLL. 10457 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10458 enable_shared_with_static_runtimes=yes 10459 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10460 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10461 # Don't use ranlib 10462 old_postinstall_cmds='chmod 644 $oldlib' 10463 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10464 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10465 case $lt_outputfile in 10466 *.exe|*.EXE) ;; 10467 *) 10468 lt_outputfile=$lt_outputfile.exe 10469 lt_tool_outputfile=$lt_tool_outputfile.exe 10470 ;; 10471 esac~ 10472 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10473 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10474 $RM "$lt_outputfile.manifest"; 10475 fi' 10476 ;; 10477 *) 10478 # Assume MSVC wrapper 10479 hardcode_libdir_flag_spec=' ' 10480 allow_undefined_flag=unsupported 10481 # Tell ltmain to make .lib files, not .a files. 10482 libext=lib 10483 # Tell ltmain to make .dll files, not .so files. 10484 shrext_cmds=.dll 10485 # FIXME: Setting linknames here is a bad hack. 10486 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10487 # The linker will automatically build a .lib file if we build a DLL. 10488 old_archive_from_new_cmds='true' 10489 # FIXME: Should let the user specify the lib program. 10490 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10491 enable_shared_with_static_runtimes=yes 10492 ;; 10493 esac 10494 ;; 10495 10496 darwin* | rhapsody*) 10497 10498 10499 archive_cmds_need_lc=no 10500 hardcode_direct=no 10501 hardcode_automatic=yes 10502 hardcode_shlibpath_var=unsupported 10503 if test yes = "$lt_cv_ld_force_load"; then 10504 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\"`' 10505 10506 else 10507 whole_archive_flag_spec='' 10508 fi 10509 link_all_deplibs=yes 10510 allow_undefined_flag=$_lt_dar_allow_undefined 10511 case $cc_basename in 10512 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10513 *) _lt_dar_can_shared=$GCC ;; 10514 esac 10515 if test yes = "$_lt_dar_can_shared"; then 10516 output_verbose_link_cmd=func_echo_all 10517 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10518 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10519 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" 10520 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" 10521 10522 else 10523 ld_shlibs=no 10524 fi 10525 10526 ;; 10527 10528 dgux*) 10529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10530 hardcode_libdir_flag_spec='-L$libdir' 10531 hardcode_shlibpath_var=no 10532 ;; 10533 10534 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10535 # support. Future versions do this automatically, but an explicit c++rt0.o 10536 # does not break anything, and helps significantly (at the cost of a little 10537 # extra space). 10538 freebsd2.2*) 10539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10540 hardcode_libdir_flag_spec='-R$libdir' 10541 hardcode_direct=yes 10542 hardcode_shlibpath_var=no 10543 ;; 10544 10545 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10546 freebsd2.*) 10547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10548 hardcode_direct=yes 10549 hardcode_minus_L=yes 10550 hardcode_shlibpath_var=no 10551 ;; 10552 10553 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10554 freebsd* | dragonfly*) 10555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10556 hardcode_libdir_flag_spec='-R$libdir' 10557 hardcode_direct=yes 10558 hardcode_shlibpath_var=no 10559 ;; 10560 10561 hpux9*) 10562 if test yes = "$GCC"; then 10563 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' 10564 else 10565 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' 10566 fi 10567 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10568 hardcode_libdir_separator=: 10569 hardcode_direct=yes 10570 10571 # hardcode_minus_L: Not really in the search PATH, 10572 # but as the default location of the library. 10573 hardcode_minus_L=yes 10574 export_dynamic_flag_spec='$wl-E' 10575 ;; 10576 10577 hpux10*) 10578 if test yes,no = "$GCC,$with_gnu_ld"; then 10579 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10580 else 10581 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10582 fi 10583 if test no = "$with_gnu_ld"; then 10584 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10585 hardcode_libdir_separator=: 10586 hardcode_direct=yes 10587 hardcode_direct_absolute=yes 10588 export_dynamic_flag_spec='$wl-E' 10589 # hardcode_minus_L: Not really in the search PATH, 10590 # but as the default location of the library. 10591 hardcode_minus_L=yes 10592 fi 10593 ;; 10594 10595 hpux11*) 10596 if test yes,no = "$GCC,$with_gnu_ld"; then 10597 case $host_cpu in 10598 hppa*64*) 10599 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10600 ;; 10601 ia64*) 10602 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10603 ;; 10604 *) 10605 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10606 ;; 10607 esac 10608 else 10609 case $host_cpu in 10610 hppa*64*) 10611 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10612 ;; 10613 ia64*) 10614 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10615 ;; 10616 *) 10617 10618 # Older versions of the 11.00 compiler do not understand -b yet 10619 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10621$as_echo_n "checking if $CC understands -b... " >&6; } 10622if ${lt_cv_prog_compiler__b+:} false; then : 10623 $as_echo_n "(cached) " >&6 10624else 10625 lt_cv_prog_compiler__b=no 10626 save_LDFLAGS=$LDFLAGS 10627 LDFLAGS="$LDFLAGS -b" 10628 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10629 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10630 # The linker can only warn and ignore the option if not recognized 10631 # So say no if there are warnings 10632 if test -s conftest.err; then 10633 # Append any errors to the config.log. 10634 cat conftest.err 1>&5 10635 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10637 if diff conftest.exp conftest.er2 >/dev/null; then 10638 lt_cv_prog_compiler__b=yes 10639 fi 10640 else 10641 lt_cv_prog_compiler__b=yes 10642 fi 10643 fi 10644 $RM -r conftest* 10645 LDFLAGS=$save_LDFLAGS 10646 10647fi 10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10649$as_echo "$lt_cv_prog_compiler__b" >&6; } 10650 10651if test yes = "$lt_cv_prog_compiler__b"; then 10652 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10653else 10654 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10655fi 10656 10657 ;; 10658 esac 10659 fi 10660 if test no = "$with_gnu_ld"; then 10661 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10662 hardcode_libdir_separator=: 10663 10664 case $host_cpu in 10665 hppa*64*|ia64*) 10666 hardcode_direct=no 10667 hardcode_shlibpath_var=no 10668 ;; 10669 *) 10670 hardcode_direct=yes 10671 hardcode_direct_absolute=yes 10672 export_dynamic_flag_spec='$wl-E' 10673 10674 # hardcode_minus_L: Not really in the search PATH, 10675 # but as the default location of the library. 10676 hardcode_minus_L=yes 10677 ;; 10678 esac 10679 fi 10680 ;; 10681 10682 irix5* | irix6* | nonstopux*) 10683 if test yes = "$GCC"; then 10684 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' 10685 # Try to use the -exported_symbol ld option, if it does not 10686 # work, assume that -exports_file does not work either and 10687 # implicitly export all symbols. 10688 # This should be the same for all languages, so no per-tag cache variable. 10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10690$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10691if ${lt_cv_irix_exported_symbol+:} false; then : 10692 $as_echo_n "(cached) " >&6 10693else 10694 save_LDFLAGS=$LDFLAGS 10695 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10697/* end confdefs.h. */ 10698int foo (void) { return 0; } 10699_ACEOF 10700if ac_fn_c_try_link "$LINENO"; then : 10701 lt_cv_irix_exported_symbol=yes 10702else 10703 lt_cv_irix_exported_symbol=no 10704fi 10705rm -f core conftest.err conftest.$ac_objext \ 10706 conftest$ac_exeext conftest.$ac_ext 10707 LDFLAGS=$save_LDFLAGS 10708fi 10709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10710$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10711 if test yes = "$lt_cv_irix_exported_symbol"; then 10712 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' 10713 fi 10714 else 10715 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' 10716 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' 10717 fi 10718 archive_cmds_need_lc='no' 10719 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10720 hardcode_libdir_separator=: 10721 inherit_rpath=yes 10722 link_all_deplibs=yes 10723 ;; 10724 10725 linux*) 10726 case $cc_basename in 10727 tcc*) 10728 # Fabrice Bellard et al's Tiny C Compiler 10729 ld_shlibs=yes 10730 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10731 ;; 10732 esac 10733 ;; 10734 10735 netbsd*) 10736 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10738 else 10739 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10740 fi 10741 hardcode_libdir_flag_spec='-R$libdir' 10742 hardcode_direct=yes 10743 hardcode_shlibpath_var=no 10744 ;; 10745 10746 newsos6) 10747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10748 hardcode_direct=yes 10749 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10750 hardcode_libdir_separator=: 10751 hardcode_shlibpath_var=no 10752 ;; 10753 10754 *nto* | *qnx*) 10755 ;; 10756 10757 openbsd* | bitrig*) 10758 if test -f /usr/libexec/ld.so; then 10759 hardcode_direct=yes 10760 hardcode_shlibpath_var=no 10761 hardcode_direct_absolute=yes 10762 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10763 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10764 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10765 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10766 export_dynamic_flag_spec='$wl-E' 10767 else 10768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10769 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10770 fi 10771 else 10772 ld_shlibs=no 10773 fi 10774 ;; 10775 10776 os2*) 10777 hardcode_libdir_flag_spec='-L$libdir' 10778 hardcode_minus_L=yes 10779 allow_undefined_flag=unsupported 10780 shrext_cmds=.dll 10781 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10782 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10783 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10784 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10785 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10786 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10787 emximp -o $lib $output_objdir/$libname.def' 10788 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10789 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10790 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10791 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10792 prefix_cmds="$SED"~ 10793 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10794 prefix_cmds="$prefix_cmds -e 1d"; 10795 fi~ 10796 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10797 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10798 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10799 emximp -o $lib $output_objdir/$libname.def' 10800 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10801 enable_shared_with_static_runtimes=yes 10802 ;; 10803 10804 osf3*) 10805 if test yes = "$GCC"; then 10806 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10807 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' 10808 else 10809 allow_undefined_flag=' -expect_unresolved \*' 10810 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' 10811 fi 10812 archive_cmds_need_lc='no' 10813 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10814 hardcode_libdir_separator=: 10815 ;; 10816 10817 osf4* | osf5*) # as osf3* with the addition of -msym flag 10818 if test yes = "$GCC"; then 10819 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10820 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' 10821 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10822 else 10823 allow_undefined_flag=' -expect_unresolved \*' 10824 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' 10825 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~ 10826 $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' 10827 10828 # Both c and cxx compiler support -rpath directly 10829 hardcode_libdir_flag_spec='-rpath $libdir' 10830 fi 10831 archive_cmds_need_lc='no' 10832 hardcode_libdir_separator=: 10833 ;; 10834 10835 solaris*) 10836 no_undefined_flag=' -z defs' 10837 if test yes = "$GCC"; then 10838 wlarc='$wl' 10839 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10840 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10841 $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' 10842 else 10843 case `$CC -V 2>&1` in 10844 *"Compilers 5.0"*) 10845 wlarc='' 10846 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10847 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10848 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10849 ;; 10850 *) 10851 wlarc='$wl' 10852 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10853 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10854 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10855 ;; 10856 esac 10857 fi 10858 hardcode_libdir_flag_spec='-R$libdir' 10859 hardcode_shlibpath_var=no 10860 case $host_os in 10861 solaris2.[0-5] | solaris2.[0-5].*) ;; 10862 *) 10863 # The compiler driver will combine and reorder linker options, 10864 # but understands '-z linker_flag'. GCC discards it without '$wl', 10865 # but is careful enough not to reorder. 10866 # Supported since Solaris 2.6 (maybe 2.5.1?) 10867 if test yes = "$GCC"; then 10868 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10869 else 10870 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10871 fi 10872 ;; 10873 esac 10874 link_all_deplibs=yes 10875 ;; 10876 10877 sunos4*) 10878 if test sequent = "$host_vendor"; then 10879 # Use $CC to link under sequent, because it throws in some extra .o 10880 # files that make .init and .fini sections work. 10881 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10882 else 10883 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10884 fi 10885 hardcode_libdir_flag_spec='-L$libdir' 10886 hardcode_direct=yes 10887 hardcode_minus_L=yes 10888 hardcode_shlibpath_var=no 10889 ;; 10890 10891 sysv4) 10892 case $host_vendor in 10893 sni) 10894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10895 hardcode_direct=yes # is this really true??? 10896 ;; 10897 siemens) 10898 ## LD is ld it makes a PLAMLIB 10899 ## CC just makes a GrossModule. 10900 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10901 reload_cmds='$CC -r -o $output$reload_objs' 10902 hardcode_direct=no 10903 ;; 10904 motorola) 10905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10906 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10907 ;; 10908 esac 10909 runpath_var='LD_RUN_PATH' 10910 hardcode_shlibpath_var=no 10911 ;; 10912 10913 sysv4.3*) 10914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10915 hardcode_shlibpath_var=no 10916 export_dynamic_flag_spec='-Bexport' 10917 ;; 10918 10919 sysv4*MP*) 10920 if test -d /usr/nec; then 10921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10922 hardcode_shlibpath_var=no 10923 runpath_var=LD_RUN_PATH 10924 hardcode_runpath_var=yes 10925 ld_shlibs=yes 10926 fi 10927 ;; 10928 10929 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10930 no_undefined_flag='$wl-z,text' 10931 archive_cmds_need_lc=no 10932 hardcode_shlibpath_var=no 10933 runpath_var='LD_RUN_PATH' 10934 10935 if test yes = "$GCC"; then 10936 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10937 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10938 else 10939 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10940 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10941 fi 10942 ;; 10943 10944 sysv5* | sco3.2v5* | sco5v6*) 10945 # Note: We CANNOT use -z defs as we might desire, because we do not 10946 # link with -lc, and that would cause any symbols used from libc to 10947 # always be unresolved, which means just about no library would 10948 # ever link correctly. If we're not using GNU ld we use -z text 10949 # though, which does catch some bad symbols but isn't as heavy-handed 10950 # as -z defs. 10951 no_undefined_flag='$wl-z,text' 10952 allow_undefined_flag='$wl-z,nodefs' 10953 archive_cmds_need_lc=no 10954 hardcode_shlibpath_var=no 10955 hardcode_libdir_flag_spec='$wl-R,$libdir' 10956 hardcode_libdir_separator=':' 10957 link_all_deplibs=yes 10958 export_dynamic_flag_spec='$wl-Bexport' 10959 runpath_var='LD_RUN_PATH' 10960 10961 if test yes = "$GCC"; then 10962 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10963 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10964 else 10965 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10966 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10967 fi 10968 ;; 10969 10970 uts4*) 10971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10972 hardcode_libdir_flag_spec='-L$libdir' 10973 hardcode_shlibpath_var=no 10974 ;; 10975 10976 *) 10977 ld_shlibs=no 10978 ;; 10979 esac 10980 10981 if test sni = "$host_vendor"; then 10982 case $host in 10983 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10984 export_dynamic_flag_spec='$wl-Blargedynsym' 10985 ;; 10986 esac 10987 fi 10988 fi 10989 10990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10991$as_echo "$ld_shlibs" >&6; } 10992test no = "$ld_shlibs" && can_build_shared=no 10993 10994with_gnu_ld=$with_gnu_ld 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010# 11011# Do we need to explicitly link libc? 11012# 11013case "x$archive_cmds_need_lc" in 11014x|xyes) 11015 # Assume -lc should be added 11016 archive_cmds_need_lc=yes 11017 11018 if test yes,yes = "$GCC,$enable_shared"; then 11019 case $archive_cmds in 11020 *'~'*) 11021 # FIXME: we may have to deal with multi-command sequences. 11022 ;; 11023 '$CC '*) 11024 # Test whether the compiler implicitly links with -lc since on some 11025 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11026 # to ld, don't add -lc before -lgcc. 11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11028$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11029if ${lt_cv_archive_cmds_need_lc+:} false; then : 11030 $as_echo_n "(cached) " >&6 11031else 11032 $RM conftest* 11033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11034 11035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11036 (eval $ac_compile) 2>&5 11037 ac_status=$? 11038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11039 test $ac_status = 0; } 2>conftest.err; then 11040 soname=conftest 11041 lib=conftest 11042 libobjs=conftest.$ac_objext 11043 deplibs= 11044 wl=$lt_prog_compiler_wl 11045 pic_flag=$lt_prog_compiler_pic 11046 compiler_flags=-v 11047 linker_flags=-v 11048 verstring= 11049 output_objdir=. 11050 libname=conftest 11051 lt_save_allow_undefined_flag=$allow_undefined_flag 11052 allow_undefined_flag= 11053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11054 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11055 ac_status=$? 11056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11057 test $ac_status = 0; } 11058 then 11059 lt_cv_archive_cmds_need_lc=no 11060 else 11061 lt_cv_archive_cmds_need_lc=yes 11062 fi 11063 allow_undefined_flag=$lt_save_allow_undefined_flag 11064 else 11065 cat conftest.err 1>&5 11066 fi 11067 $RM conftest* 11068 11069fi 11070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11071$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11072 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11073 ;; 11074 esac 11075 fi 11076 ;; 11077esac 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11231$as_echo_n "checking dynamic linker characteristics... " >&6; } 11232 11233if test yes = "$GCC"; then 11234 case $host_os in 11235 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11236 *) lt_awk_arg='/^libraries:/' ;; 11237 esac 11238 case $host_os in 11239 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11240 *) lt_sed_strip_eq='s|=/|/|g' ;; 11241 esac 11242 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11243 case $lt_search_path_spec in 11244 *\;*) 11245 # if the path contains ";" then we assume it to be the separator 11246 # otherwise default to the standard path separator (i.e. ":") - it is 11247 # assumed that no part of a normal pathname contains ";" but that should 11248 # okay in the real world where ";" in dirpaths is itself problematic. 11249 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11250 ;; 11251 *) 11252 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11253 ;; 11254 esac 11255 # Ok, now we have the path, separated by spaces, we can step through it 11256 # and add multilib dir if necessary... 11257 lt_tmp_lt_search_path_spec= 11258 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11259 # ...but if some path component already ends with the multilib dir we assume 11260 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11261 case "$lt_multi_os_dir; $lt_search_path_spec " in 11262 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11263 lt_multi_os_dir= 11264 ;; 11265 esac 11266 for lt_sys_path in $lt_search_path_spec; do 11267 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11268 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11269 elif test -n "$lt_multi_os_dir"; then 11270 test -d "$lt_sys_path" && \ 11271 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11272 fi 11273 done 11274 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11275BEGIN {RS = " "; FS = "/|\n";} { 11276 lt_foo = ""; 11277 lt_count = 0; 11278 for (lt_i = NF; lt_i > 0; lt_i--) { 11279 if ($lt_i != "" && $lt_i != ".") { 11280 if ($lt_i == "..") { 11281 lt_count++; 11282 } else { 11283 if (lt_count == 0) { 11284 lt_foo = "/" $lt_i lt_foo; 11285 } else { 11286 lt_count--; 11287 } 11288 } 11289 } 11290 } 11291 if (lt_foo != "") { lt_freq[lt_foo]++; } 11292 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11293}'` 11294 # AWK program above erroneously prepends '/' to C:/dos/paths 11295 # for these hosts. 11296 case $host_os in 11297 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11298 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11299 esac 11300 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11301else 11302 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11303fi 11304library_names_spec= 11305libname_spec='lib$name' 11306soname_spec= 11307shrext_cmds=.so 11308postinstall_cmds= 11309postuninstall_cmds= 11310finish_cmds= 11311finish_eval= 11312shlibpath_var= 11313shlibpath_overrides_runpath=unknown 11314version_type=none 11315dynamic_linker="$host_os ld.so" 11316sys_lib_dlsearch_path_spec="/lib /usr/lib" 11317need_lib_prefix=unknown 11318hardcode_into_libs=no 11319 11320# when you set need_version to no, make sure it does not cause -set_version 11321# flags to be left without arguments 11322need_version=unknown 11323 11324 11325 11326case $host_os in 11327aix3*) 11328 version_type=linux # correct to gnu/linux during the next big refactor 11329 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11330 shlibpath_var=LIBPATH 11331 11332 # AIX 3 has no versioning support, so we append a major version to the name. 11333 soname_spec='$libname$release$shared_ext$major' 11334 ;; 11335 11336aix[4-9]*) 11337 version_type=linux # correct to gnu/linux during the next big refactor 11338 need_lib_prefix=no 11339 need_version=no 11340 hardcode_into_libs=yes 11341 if test ia64 = "$host_cpu"; then 11342 # AIX 5 supports IA64 11343 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11344 shlibpath_var=LD_LIBRARY_PATH 11345 else 11346 # With GCC up to 2.95.x, collect2 would create an import file 11347 # for dependence libraries. The import file would start with 11348 # the line '#! .'. This would cause the generated library to 11349 # depend on '.', always an invalid library. This was fixed in 11350 # development snapshots of GCC prior to 3.0. 11351 case $host_os in 11352 aix4 | aix4.[01] | aix4.[01].*) 11353 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11354 echo ' yes ' 11355 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11356 : 11357 else 11358 can_build_shared=no 11359 fi 11360 ;; 11361 esac 11362 # Using Import Files as archive members, it is possible to support 11363 # filename-based versioning of shared library archives on AIX. While 11364 # this would work for both with and without runtime linking, it will 11365 # prevent static linking of such archives. So we do filename-based 11366 # shared library versioning with .so extension only, which is used 11367 # when both runtime linking and shared linking is enabled. 11368 # Unfortunately, runtime linking may impact performance, so we do 11369 # not want this to be the default eventually. Also, we use the 11370 # versioned .so libs for executables only if there is the -brtl 11371 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11372 # To allow for filename-based versioning support, we need to create 11373 # libNAME.so.V as an archive file, containing: 11374 # *) an Import File, referring to the versioned filename of the 11375 # archive as well as the shared archive member, telling the 11376 # bitwidth (32 or 64) of that shared object, and providing the 11377 # list of exported symbols of that shared object, eventually 11378 # decorated with the 'weak' keyword 11379 # *) the shared object with the F_LOADONLY flag set, to really avoid 11380 # it being seen by the linker. 11381 # At run time we better use the real file rather than another symlink, 11382 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11383 11384 case $with_aix_soname,$aix_use_runtimelinking in 11385 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11386 # soname into executable. Probably we can add versioning support to 11387 # collect2, so additional links can be useful in future. 11388 aix,yes) # traditional libtool 11389 dynamic_linker='AIX unversionable lib.so' 11390 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11391 # instead of lib<name>.a to let people know that these are not 11392 # typical AIX shared libraries. 11393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11394 ;; 11395 aix,no) # traditional AIX only 11396 dynamic_linker='AIX lib.a(lib.so.V)' 11397 # We preserve .a as extension for shared libraries through AIX4.2 11398 # and later when we are not doing run time linking. 11399 library_names_spec='$libname$release.a $libname.a' 11400 soname_spec='$libname$release$shared_ext$major' 11401 ;; 11402 svr4,*) # full svr4 only 11403 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11404 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11405 # We do not specify a path in Import Files, so LIBPATH fires. 11406 shlibpath_overrides_runpath=yes 11407 ;; 11408 *,yes) # both, prefer svr4 11409 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11410 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11411 # unpreferred sharedlib libNAME.a needs extra handling 11412 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"' 11413 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"' 11414 # We do not specify a path in Import Files, so LIBPATH fires. 11415 shlibpath_overrides_runpath=yes 11416 ;; 11417 *,no) # both, prefer aix 11418 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11419 library_names_spec='$libname$release.a $libname.a' 11420 soname_spec='$libname$release$shared_ext$major' 11421 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11422 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)' 11423 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"' 11424 ;; 11425 esac 11426 shlibpath_var=LIBPATH 11427 fi 11428 ;; 11429 11430amigaos*) 11431 case $host_cpu in 11432 powerpc) 11433 # Since July 2007 AmigaOS4 officially supports .so libraries. 11434 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11436 ;; 11437 m68k) 11438 library_names_spec='$libname.ixlibrary $libname.a' 11439 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11440 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' 11441 ;; 11442 esac 11443 ;; 11444 11445beos*) 11446 library_names_spec='$libname$shared_ext' 11447 dynamic_linker="$host_os ld.so" 11448 shlibpath_var=LIBRARY_PATH 11449 ;; 11450 11451bsdi[45]*) 11452 version_type=linux # correct to gnu/linux during the next big refactor 11453 need_version=no 11454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11455 soname_spec='$libname$release$shared_ext$major' 11456 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11457 shlibpath_var=LD_LIBRARY_PATH 11458 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11459 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11460 # the default ld.so.conf also contains /usr/contrib/lib and 11461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11462 # libtool to hard-code these into programs 11463 ;; 11464 11465cygwin* | mingw* | pw32* | cegcc*) 11466 version_type=windows 11467 shrext_cmds=.dll 11468 need_version=no 11469 need_lib_prefix=no 11470 11471 case $GCC,$cc_basename in 11472 yes,*) 11473 # gcc 11474 library_names_spec='$libname.dll.a' 11475 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11476 postinstall_cmds='base_file=`basename \$file`~ 11477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11478 dldir=$destdir/`dirname \$dlpath`~ 11479 test -d \$dldir || mkdir -p \$dldir~ 11480 $install_prog $dir/$dlname \$dldir/$dlname~ 11481 chmod a+x \$dldir/$dlname~ 11482 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11483 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11484 fi' 11485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11486 dlpath=$dir/\$dldll~ 11487 $RM \$dlpath' 11488 shlibpath_overrides_runpath=yes 11489 11490 case $host_os in 11491 cygwin*) 11492 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11493 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11494 11495 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11496 ;; 11497 mingw* | cegcc*) 11498 # MinGW DLLs use traditional 'lib' prefix 11499 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11500 ;; 11501 pw32*) 11502 # pw32 DLLs use 'pw' prefix rather than 'lib' 11503 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11504 ;; 11505 esac 11506 dynamic_linker='Win32 ld.exe' 11507 ;; 11508 11509 *,cl*) 11510 # Native MSVC 11511 libname_spec='$name' 11512 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11513 library_names_spec='$libname.dll.lib' 11514 11515 case $build_os in 11516 mingw*) 11517 sys_lib_search_path_spec= 11518 lt_save_ifs=$IFS 11519 IFS=';' 11520 for lt_path in $LIB 11521 do 11522 IFS=$lt_save_ifs 11523 # Let DOS variable expansion print the short 8.3 style file name. 11524 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11525 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11526 done 11527 IFS=$lt_save_ifs 11528 # Convert to MSYS style. 11529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11530 ;; 11531 cygwin*) 11532 # Convert to unix form, then to dos form, then back to unix form 11533 # but this time dos style (no spaces!) so that the unix form looks 11534 # like /cygdrive/c/PROGRA~1:/cygdr... 11535 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11536 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11537 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11538 ;; 11539 *) 11540 sys_lib_search_path_spec=$LIB 11541 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11542 # It is most probably a Windows format PATH. 11543 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11544 else 11545 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11546 fi 11547 # FIXME: find the short name or the path components, as spaces are 11548 # common. (e.g. "Program Files" -> "PROGRA~1") 11549 ;; 11550 esac 11551 11552 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11553 postinstall_cmds='base_file=`basename \$file`~ 11554 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11555 dldir=$destdir/`dirname \$dlpath`~ 11556 test -d \$dldir || mkdir -p \$dldir~ 11557 $install_prog $dir/$dlname \$dldir/$dlname' 11558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11559 dlpath=$dir/\$dldll~ 11560 $RM \$dlpath' 11561 shlibpath_overrides_runpath=yes 11562 dynamic_linker='Win32 link.exe' 11563 ;; 11564 11565 *) 11566 # Assume MSVC wrapper 11567 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11568 dynamic_linker='Win32 ld.exe' 11569 ;; 11570 esac 11571 # FIXME: first we should search . and the directory the executable is in 11572 shlibpath_var=PATH 11573 ;; 11574 11575darwin* | rhapsody*) 11576 dynamic_linker="$host_os dyld" 11577 version_type=darwin 11578 need_lib_prefix=no 11579 need_version=no 11580 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11581 soname_spec='$libname$release$major$shared_ext' 11582 shlibpath_overrides_runpath=yes 11583 shlibpath_var=DYLD_LIBRARY_PATH 11584 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11585 11586 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11588 ;; 11589 11590dgux*) 11591 version_type=linux # correct to gnu/linux during the next big refactor 11592 need_lib_prefix=no 11593 need_version=no 11594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11595 soname_spec='$libname$release$shared_ext$major' 11596 shlibpath_var=LD_LIBRARY_PATH 11597 ;; 11598 11599freebsd* | dragonfly*) 11600 # DragonFly does not have aout. When/if they implement a new 11601 # versioning mechanism, adjust this. 11602 if test -x /usr/bin/objformat; then 11603 objformat=`/usr/bin/objformat` 11604 else 11605 case $host_os in 11606 freebsd[23].*) objformat=aout ;; 11607 *) objformat=elf ;; 11608 esac 11609 fi 11610 version_type=freebsd-$objformat 11611 case $version_type in 11612 freebsd-elf*) 11613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11614 soname_spec='$libname$release$shared_ext$major' 11615 need_version=no 11616 need_lib_prefix=no 11617 ;; 11618 freebsd-*) 11619 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11620 need_version=yes 11621 ;; 11622 esac 11623 shlibpath_var=LD_LIBRARY_PATH 11624 case $host_os in 11625 freebsd2.*) 11626 shlibpath_overrides_runpath=yes 11627 ;; 11628 freebsd3.[01]* | freebsdelf3.[01]*) 11629 shlibpath_overrides_runpath=yes 11630 hardcode_into_libs=yes 11631 ;; 11632 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11633 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11634 shlibpath_overrides_runpath=no 11635 hardcode_into_libs=yes 11636 ;; 11637 *) # from 4.6 on, and DragonFly 11638 shlibpath_overrides_runpath=yes 11639 hardcode_into_libs=yes 11640 ;; 11641 esac 11642 ;; 11643 11644haiku*) 11645 version_type=linux # correct to gnu/linux during the next big refactor 11646 need_lib_prefix=no 11647 need_version=no 11648 dynamic_linker="$host_os runtime_loader" 11649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11650 soname_spec='$libname$release$shared_ext$major' 11651 shlibpath_var=LIBRARY_PATH 11652 shlibpath_overrides_runpath=no 11653 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11654 hardcode_into_libs=yes 11655 ;; 11656 11657hpux9* | hpux10* | hpux11*) 11658 # Give a soname corresponding to the major version so that dld.sl refuses to 11659 # link against other versions. 11660 version_type=sunos 11661 need_lib_prefix=no 11662 need_version=no 11663 case $host_cpu in 11664 ia64*) 11665 shrext_cmds='.so' 11666 hardcode_into_libs=yes 11667 dynamic_linker="$host_os dld.so" 11668 shlibpath_var=LD_LIBRARY_PATH 11669 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11671 soname_spec='$libname$release$shared_ext$major' 11672 if test 32 = "$HPUX_IA64_MODE"; then 11673 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11674 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11675 else 11676 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11677 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11678 fi 11679 ;; 11680 hppa*64*) 11681 shrext_cmds='.sl' 11682 hardcode_into_libs=yes 11683 dynamic_linker="$host_os dld.sl" 11684 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11687 soname_spec='$libname$release$shared_ext$major' 11688 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11690 ;; 11691 *) 11692 shrext_cmds='.sl' 11693 dynamic_linker="$host_os dld.sl" 11694 shlibpath_var=SHLIB_PATH 11695 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11697 soname_spec='$libname$release$shared_ext$major' 11698 ;; 11699 esac 11700 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11701 postinstall_cmds='chmod 555 $lib' 11702 # or fails outright, so override atomically: 11703 install_override_mode=555 11704 ;; 11705 11706interix[3-9]*) 11707 version_type=linux # correct to gnu/linux during the next big refactor 11708 need_lib_prefix=no 11709 need_version=no 11710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11711 soname_spec='$libname$release$shared_ext$major' 11712 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11713 shlibpath_var=LD_LIBRARY_PATH 11714 shlibpath_overrides_runpath=no 11715 hardcode_into_libs=yes 11716 ;; 11717 11718irix5* | irix6* | nonstopux*) 11719 case $host_os in 11720 nonstopux*) version_type=nonstopux ;; 11721 *) 11722 if test yes = "$lt_cv_prog_gnu_ld"; then 11723 version_type=linux # correct to gnu/linux during the next big refactor 11724 else 11725 version_type=irix 11726 fi ;; 11727 esac 11728 need_lib_prefix=no 11729 need_version=no 11730 soname_spec='$libname$release$shared_ext$major' 11731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11732 case $host_os in 11733 irix5* | nonstopux*) 11734 libsuff= shlibsuff= 11735 ;; 11736 *) 11737 case $LD in # libtool.m4 will add one of these switches to LD 11738 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11739 libsuff= shlibsuff= libmagic=32-bit;; 11740 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11741 libsuff=32 shlibsuff=N32 libmagic=N32;; 11742 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11743 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11744 *) libsuff= shlibsuff= libmagic=never-match;; 11745 esac 11746 ;; 11747 esac 11748 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11749 shlibpath_overrides_runpath=no 11750 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11751 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11752 hardcode_into_libs=yes 11753 ;; 11754 11755# No shared lib support for Linux oldld, aout, or coff. 11756linux*oldld* | linux*aout* | linux*coff*) 11757 dynamic_linker=no 11758 ;; 11759 11760linux*android*) 11761 version_type=none # Android doesn't support versioned libraries. 11762 need_lib_prefix=no 11763 need_version=no 11764 library_names_spec='$libname$release$shared_ext' 11765 soname_spec='$libname$release$shared_ext' 11766 finish_cmds= 11767 shlibpath_var=LD_LIBRARY_PATH 11768 shlibpath_overrides_runpath=yes 11769 11770 # This implies no fast_install, which is unacceptable. 11771 # Some rework will be needed to allow for fast_install 11772 # before this can be enabled. 11773 hardcode_into_libs=yes 11774 11775 dynamic_linker='Android linker' 11776 # Don't embed -rpath directories since the linker doesn't support them. 11777 hardcode_libdir_flag_spec='-L$libdir' 11778 ;; 11779 11780# This must be glibc/ELF. 11781linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11782 version_type=linux # correct to gnu/linux during the next big refactor 11783 need_lib_prefix=no 11784 need_version=no 11785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11786 soname_spec='$libname$release$shared_ext$major' 11787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11788 shlibpath_var=LD_LIBRARY_PATH 11789 shlibpath_overrides_runpath=no 11790 11791 # Some binutils ld are patched to set DT_RUNPATH 11792 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11793 $as_echo_n "(cached) " >&6 11794else 11795 lt_cv_shlibpath_overrides_runpath=no 11796 save_LDFLAGS=$LDFLAGS 11797 save_libdir=$libdir 11798 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11799 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11801/* end confdefs.h. */ 11802 11803int 11804main () 11805{ 11806 11807 ; 11808 return 0; 11809} 11810_ACEOF 11811if ac_fn_c_try_link "$LINENO"; then : 11812 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11813 lt_cv_shlibpath_overrides_runpath=yes 11814fi 11815fi 11816rm -f core conftest.err conftest.$ac_objext \ 11817 conftest$ac_exeext conftest.$ac_ext 11818 LDFLAGS=$save_LDFLAGS 11819 libdir=$save_libdir 11820 11821fi 11822 11823 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11824 11825 # This implies no fast_install, which is unacceptable. 11826 # Some rework will be needed to allow for fast_install 11827 # before this can be enabled. 11828 hardcode_into_libs=yes 11829 11830 # Add ABI-specific directories to the system library path. 11831 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11832 11833 # Ideally, we could use ldconfig to report *all* directores which are 11834 # searched for libraries, however this is still not possible. Aside from not 11835 # being certain /sbin/ldconfig is available, command 11836 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11837 # even though it is searched at run-time. Try to do the best guess by 11838 # appending ld.so.conf contents (and includes) to the search path. 11839 if test -f /etc/ld.so.conf; then 11840 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' ' '` 11841 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11842 fi 11843 11844 # We used to test for /lib/ld.so.1 and disable shared libraries on 11845 # powerpc, because MkLinux only supported shared libraries with the 11846 # GNU dynamic linker. Since this was broken with cross compilers, 11847 # most powerpc-linux boxes support dynamic linking these days and 11848 # people can always --disable-shared, the test was removed, and we 11849 # assume the GNU/Linux dynamic linker is in use. 11850 dynamic_linker='GNU/Linux ld.so' 11851 ;; 11852 11853netbsd*) 11854 version_type=sunos 11855 need_lib_prefix=no 11856 need_version=no 11857 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11858 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11860 dynamic_linker='NetBSD (a.out) ld.so' 11861 else 11862 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11863 soname_spec='$libname$release$shared_ext$major' 11864 dynamic_linker='NetBSD ld.elf_so' 11865 fi 11866 shlibpath_var=LD_LIBRARY_PATH 11867 shlibpath_overrides_runpath=yes 11868 hardcode_into_libs=yes 11869 ;; 11870 11871newsos6) 11872 version_type=linux # correct to gnu/linux during the next big refactor 11873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11874 shlibpath_var=LD_LIBRARY_PATH 11875 shlibpath_overrides_runpath=yes 11876 ;; 11877 11878*nto* | *qnx*) 11879 version_type=qnx 11880 need_lib_prefix=no 11881 need_version=no 11882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11883 soname_spec='$libname$release$shared_ext$major' 11884 shlibpath_var=LD_LIBRARY_PATH 11885 shlibpath_overrides_runpath=no 11886 hardcode_into_libs=yes 11887 dynamic_linker='ldqnx.so' 11888 ;; 11889 11890openbsd* | bitrig*) 11891 version_type=sunos 11892 sys_lib_dlsearch_path_spec=/usr/lib 11893 need_lib_prefix=no 11894 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11895 need_version=no 11896 else 11897 need_version=yes 11898 fi 11899 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11901 shlibpath_var=LD_LIBRARY_PATH 11902 shlibpath_overrides_runpath=yes 11903 ;; 11904 11905os2*) 11906 libname_spec='$name' 11907 version_type=windows 11908 shrext_cmds=.dll 11909 need_version=no 11910 need_lib_prefix=no 11911 # OS/2 can only load a DLL with a base name of 8 characters or less. 11912 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11913 v=$($ECHO $release$versuffix | tr -d .-); 11914 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11915 $ECHO $n$v`$shared_ext' 11916 library_names_spec='${libname}_dll.$libext' 11917 dynamic_linker='OS/2 ld.exe' 11918 shlibpath_var=BEGINLIBPATH 11919 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11921 postinstall_cmds='base_file=`basename \$file`~ 11922 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11923 dldir=$destdir/`dirname \$dlpath`~ 11924 test -d \$dldir || mkdir -p \$dldir~ 11925 $install_prog $dir/$dlname \$dldir/$dlname~ 11926 chmod a+x \$dldir/$dlname~ 11927 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11928 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11929 fi' 11930 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11931 dlpath=$dir/\$dldll~ 11932 $RM \$dlpath' 11933 ;; 11934 11935osf3* | osf4* | osf5*) 11936 version_type=osf 11937 need_lib_prefix=no 11938 need_version=no 11939 soname_spec='$libname$release$shared_ext$major' 11940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11941 shlibpath_var=LD_LIBRARY_PATH 11942 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11944 ;; 11945 11946rdos*) 11947 dynamic_linker=no 11948 ;; 11949 11950solaris*) 11951 version_type=linux # correct to gnu/linux during the next big refactor 11952 need_lib_prefix=no 11953 need_version=no 11954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11955 soname_spec='$libname$release$shared_ext$major' 11956 shlibpath_var=LD_LIBRARY_PATH 11957 shlibpath_overrides_runpath=yes 11958 hardcode_into_libs=yes 11959 # ldd complains unless libraries are executable 11960 postinstall_cmds='chmod +x $lib' 11961 ;; 11962 11963sunos4*) 11964 version_type=sunos 11965 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11966 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11967 shlibpath_var=LD_LIBRARY_PATH 11968 shlibpath_overrides_runpath=yes 11969 if test yes = "$with_gnu_ld"; then 11970 need_lib_prefix=no 11971 fi 11972 need_version=yes 11973 ;; 11974 11975sysv4 | sysv4.3*) 11976 version_type=linux # correct to gnu/linux during the next big refactor 11977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11978 soname_spec='$libname$release$shared_ext$major' 11979 shlibpath_var=LD_LIBRARY_PATH 11980 case $host_vendor in 11981 sni) 11982 shlibpath_overrides_runpath=no 11983 need_lib_prefix=no 11984 runpath_var=LD_RUN_PATH 11985 ;; 11986 siemens) 11987 need_lib_prefix=no 11988 ;; 11989 motorola) 11990 need_lib_prefix=no 11991 need_version=no 11992 shlibpath_overrides_runpath=no 11993 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11994 ;; 11995 esac 11996 ;; 11997 11998sysv4*MP*) 11999 if test -d /usr/nec; then 12000 version_type=linux # correct to gnu/linux during the next big refactor 12001 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12002 soname_spec='$libname$shared_ext.$major' 12003 shlibpath_var=LD_LIBRARY_PATH 12004 fi 12005 ;; 12006 12007sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12008 version_type=sco 12009 need_lib_prefix=no 12010 need_version=no 12011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12012 soname_spec='$libname$release$shared_ext$major' 12013 shlibpath_var=LD_LIBRARY_PATH 12014 shlibpath_overrides_runpath=yes 12015 hardcode_into_libs=yes 12016 if test yes = "$with_gnu_ld"; then 12017 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12018 else 12019 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12020 case $host_os in 12021 sco3.2v5*) 12022 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12023 ;; 12024 esac 12025 fi 12026 sys_lib_dlsearch_path_spec='/usr/lib' 12027 ;; 12028 12029tpf*) 12030 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12031 version_type=linux # correct to gnu/linux during the next big refactor 12032 need_lib_prefix=no 12033 need_version=no 12034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12035 shlibpath_var=LD_LIBRARY_PATH 12036 shlibpath_overrides_runpath=no 12037 hardcode_into_libs=yes 12038 ;; 12039 12040uts4*) 12041 version_type=linux # correct to gnu/linux during the next big refactor 12042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12043 soname_spec='$libname$release$shared_ext$major' 12044 shlibpath_var=LD_LIBRARY_PATH 12045 ;; 12046 12047*) 12048 dynamic_linker=no 12049 ;; 12050esac 12051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12052$as_echo "$dynamic_linker" >&6; } 12053test no = "$dynamic_linker" && can_build_shared=no 12054 12055variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12056if test yes = "$GCC"; then 12057 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12058fi 12059 12060if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12061 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12062fi 12063 12064if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12065 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12066fi 12067 12068# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12069configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12070 12071# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12072func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12073 12074# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12075configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12174$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12175hardcode_action= 12176if test -n "$hardcode_libdir_flag_spec" || 12177 test -n "$runpath_var" || 12178 test yes = "$hardcode_automatic"; then 12179 12180 # We can hardcode non-existent directories. 12181 if test no != "$hardcode_direct" && 12182 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12183 # have to relink, otherwise we might link with an installed library 12184 # when we should be linking with a yet-to-be-installed one 12185 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12186 test no != "$hardcode_minus_L"; then 12187 # Linking always hardcodes the temporary library directory. 12188 hardcode_action=relink 12189 else 12190 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12191 hardcode_action=immediate 12192 fi 12193else 12194 # We cannot hardcode anything, or else we can only hardcode existing 12195 # directories. 12196 hardcode_action=unsupported 12197fi 12198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12199$as_echo "$hardcode_action" >&6; } 12200 12201if test relink = "$hardcode_action" || 12202 test yes = "$inherit_rpath"; then 12203 # Fast installation is not supported 12204 enable_fast_install=no 12205elif test yes = "$shlibpath_overrides_runpath" || 12206 test no = "$enable_shared"; then 12207 # Fast installation is not necessary 12208 enable_fast_install=needless 12209fi 12210 12211 12212 12213 12214 12215 12216 if test yes != "$enable_dlopen"; then 12217 enable_dlopen=unknown 12218 enable_dlopen_self=unknown 12219 enable_dlopen_self_static=unknown 12220else 12221 lt_cv_dlopen=no 12222 lt_cv_dlopen_libs= 12223 12224 case $host_os in 12225 beos*) 12226 lt_cv_dlopen=load_add_on 12227 lt_cv_dlopen_libs= 12228 lt_cv_dlopen_self=yes 12229 ;; 12230 12231 mingw* | pw32* | cegcc*) 12232 lt_cv_dlopen=LoadLibrary 12233 lt_cv_dlopen_libs= 12234 ;; 12235 12236 cygwin*) 12237 lt_cv_dlopen=dlopen 12238 lt_cv_dlopen_libs= 12239 ;; 12240 12241 darwin*) 12242 # if libdl is installed we need to link against it 12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12244$as_echo_n "checking for dlopen in -ldl... " >&6; } 12245if ${ac_cv_lib_dl_dlopen+:} false; then : 12246 $as_echo_n "(cached) " >&6 12247else 12248 ac_check_lib_save_LIBS=$LIBS 12249LIBS="-ldl $LIBS" 12250cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12251/* end confdefs.h. */ 12252 12253/* Override any GCC internal prototype to avoid an error. 12254 Use char because int might match the return type of a GCC 12255 builtin and then its argument prototype would still apply. */ 12256#ifdef __cplusplus 12257extern "C" 12258#endif 12259char dlopen (); 12260int 12261main () 12262{ 12263return dlopen (); 12264 ; 12265 return 0; 12266} 12267_ACEOF 12268if ac_fn_c_try_link "$LINENO"; then : 12269 ac_cv_lib_dl_dlopen=yes 12270else 12271 ac_cv_lib_dl_dlopen=no 12272fi 12273rm -f core conftest.err conftest.$ac_objext \ 12274 conftest$ac_exeext conftest.$ac_ext 12275LIBS=$ac_check_lib_save_LIBS 12276fi 12277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12278$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12279if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12280 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12281else 12282 12283 lt_cv_dlopen=dyld 12284 lt_cv_dlopen_libs= 12285 lt_cv_dlopen_self=yes 12286 12287fi 12288 12289 ;; 12290 12291 tpf*) 12292 # Don't try to run any link tests for TPF. We know it's impossible 12293 # because TPF is a cross-compiler, and we know how we open DSOs. 12294 lt_cv_dlopen=dlopen 12295 lt_cv_dlopen_libs= 12296 lt_cv_dlopen_self=no 12297 ;; 12298 12299 *) 12300 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12301if test "x$ac_cv_func_shl_load" = xyes; then : 12302 lt_cv_dlopen=shl_load 12303else 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12305$as_echo_n "checking for shl_load in -ldld... " >&6; } 12306if ${ac_cv_lib_dld_shl_load+:} false; then : 12307 $as_echo_n "(cached) " >&6 12308else 12309 ac_check_lib_save_LIBS=$LIBS 12310LIBS="-ldld $LIBS" 12311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12312/* end confdefs.h. */ 12313 12314/* Override any GCC internal prototype to avoid an error. 12315 Use char because int might match the return type of a GCC 12316 builtin and then its argument prototype would still apply. */ 12317#ifdef __cplusplus 12318extern "C" 12319#endif 12320char shl_load (); 12321int 12322main () 12323{ 12324return shl_load (); 12325 ; 12326 return 0; 12327} 12328_ACEOF 12329if ac_fn_c_try_link "$LINENO"; then : 12330 ac_cv_lib_dld_shl_load=yes 12331else 12332 ac_cv_lib_dld_shl_load=no 12333fi 12334rm -f core conftest.err conftest.$ac_objext \ 12335 conftest$ac_exeext conftest.$ac_ext 12336LIBS=$ac_check_lib_save_LIBS 12337fi 12338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12339$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12340if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12341 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12342else 12343 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12344if test "x$ac_cv_func_dlopen" = xyes; then : 12345 lt_cv_dlopen=dlopen 12346else 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12348$as_echo_n "checking for dlopen in -ldl... " >&6; } 12349if ${ac_cv_lib_dl_dlopen+:} false; then : 12350 $as_echo_n "(cached) " >&6 12351else 12352 ac_check_lib_save_LIBS=$LIBS 12353LIBS="-ldl $LIBS" 12354cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12355/* end confdefs.h. */ 12356 12357/* Override any GCC internal prototype to avoid an error. 12358 Use char because int might match the return type of a GCC 12359 builtin and then its argument prototype would still apply. */ 12360#ifdef __cplusplus 12361extern "C" 12362#endif 12363char dlopen (); 12364int 12365main () 12366{ 12367return dlopen (); 12368 ; 12369 return 0; 12370} 12371_ACEOF 12372if ac_fn_c_try_link "$LINENO"; then : 12373 ac_cv_lib_dl_dlopen=yes 12374else 12375 ac_cv_lib_dl_dlopen=no 12376fi 12377rm -f core conftest.err conftest.$ac_objext \ 12378 conftest$ac_exeext conftest.$ac_ext 12379LIBS=$ac_check_lib_save_LIBS 12380fi 12381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12382$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12383if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12384 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12385else 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12387$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12388if ${ac_cv_lib_svld_dlopen+:} false; then : 12389 $as_echo_n "(cached) " >&6 12390else 12391 ac_check_lib_save_LIBS=$LIBS 12392LIBS="-lsvld $LIBS" 12393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12394/* end confdefs.h. */ 12395 12396/* Override any GCC internal prototype to avoid an error. 12397 Use char because int might match the return type of a GCC 12398 builtin and then its argument prototype would still apply. */ 12399#ifdef __cplusplus 12400extern "C" 12401#endif 12402char dlopen (); 12403int 12404main () 12405{ 12406return dlopen (); 12407 ; 12408 return 0; 12409} 12410_ACEOF 12411if ac_fn_c_try_link "$LINENO"; then : 12412 ac_cv_lib_svld_dlopen=yes 12413else 12414 ac_cv_lib_svld_dlopen=no 12415fi 12416rm -f core conftest.err conftest.$ac_objext \ 12417 conftest$ac_exeext conftest.$ac_ext 12418LIBS=$ac_check_lib_save_LIBS 12419fi 12420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12421$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12422if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12423 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12424else 12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12426$as_echo_n "checking for dld_link in -ldld... " >&6; } 12427if ${ac_cv_lib_dld_dld_link+:} false; then : 12428 $as_echo_n "(cached) " >&6 12429else 12430 ac_check_lib_save_LIBS=$LIBS 12431LIBS="-ldld $LIBS" 12432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12433/* end confdefs.h. */ 12434 12435/* Override any GCC internal prototype to avoid an error. 12436 Use char because int might match the return type of a GCC 12437 builtin and then its argument prototype would still apply. */ 12438#ifdef __cplusplus 12439extern "C" 12440#endif 12441char dld_link (); 12442int 12443main () 12444{ 12445return dld_link (); 12446 ; 12447 return 0; 12448} 12449_ACEOF 12450if ac_fn_c_try_link "$LINENO"; then : 12451 ac_cv_lib_dld_dld_link=yes 12452else 12453 ac_cv_lib_dld_dld_link=no 12454fi 12455rm -f core conftest.err conftest.$ac_objext \ 12456 conftest$ac_exeext conftest.$ac_ext 12457LIBS=$ac_check_lib_save_LIBS 12458fi 12459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12460$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12461if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12462 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12463fi 12464 12465 12466fi 12467 12468 12469fi 12470 12471 12472fi 12473 12474 12475fi 12476 12477 12478fi 12479 12480 ;; 12481 esac 12482 12483 if test no = "$lt_cv_dlopen"; then 12484 enable_dlopen=no 12485 else 12486 enable_dlopen=yes 12487 fi 12488 12489 case $lt_cv_dlopen in 12490 dlopen) 12491 save_CPPFLAGS=$CPPFLAGS 12492 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12493 12494 save_LDFLAGS=$LDFLAGS 12495 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12496 12497 save_LIBS=$LIBS 12498 LIBS="$lt_cv_dlopen_libs $LIBS" 12499 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12501$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12502if ${lt_cv_dlopen_self+:} false; then : 12503 $as_echo_n "(cached) " >&6 12504else 12505 if test yes = "$cross_compiling"; then : 12506 lt_cv_dlopen_self=cross 12507else 12508 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12509 lt_status=$lt_dlunknown 12510 cat > conftest.$ac_ext <<_LT_EOF 12511#line $LINENO "configure" 12512#include "confdefs.h" 12513 12514#if HAVE_DLFCN_H 12515#include <dlfcn.h> 12516#endif 12517 12518#include <stdio.h> 12519 12520#ifdef RTLD_GLOBAL 12521# define LT_DLGLOBAL RTLD_GLOBAL 12522#else 12523# ifdef DL_GLOBAL 12524# define LT_DLGLOBAL DL_GLOBAL 12525# else 12526# define LT_DLGLOBAL 0 12527# endif 12528#endif 12529 12530/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12531 find out it does not work in some platform. */ 12532#ifndef LT_DLLAZY_OR_NOW 12533# ifdef RTLD_LAZY 12534# define LT_DLLAZY_OR_NOW RTLD_LAZY 12535# else 12536# ifdef DL_LAZY 12537# define LT_DLLAZY_OR_NOW DL_LAZY 12538# else 12539# ifdef RTLD_NOW 12540# define LT_DLLAZY_OR_NOW RTLD_NOW 12541# else 12542# ifdef DL_NOW 12543# define LT_DLLAZY_OR_NOW DL_NOW 12544# else 12545# define LT_DLLAZY_OR_NOW 0 12546# endif 12547# endif 12548# endif 12549# endif 12550#endif 12551 12552/* When -fvisibility=hidden is used, assume the code has been annotated 12553 correspondingly for the symbols needed. */ 12554#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12555int fnord () __attribute__((visibility("default"))); 12556#endif 12557 12558int fnord () { return 42; } 12559int main () 12560{ 12561 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12562 int status = $lt_dlunknown; 12563 12564 if (self) 12565 { 12566 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12567 else 12568 { 12569 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12570 else puts (dlerror ()); 12571 } 12572 /* dlclose (self); */ 12573 } 12574 else 12575 puts (dlerror ()); 12576 12577 return status; 12578} 12579_LT_EOF 12580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12581 (eval $ac_link) 2>&5 12582 ac_status=$? 12583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12584 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12585 (./conftest; exit; ) >&5 2>/dev/null 12586 lt_status=$? 12587 case x$lt_status in 12588 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12589 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12590 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12591 esac 12592 else : 12593 # compilation failed 12594 lt_cv_dlopen_self=no 12595 fi 12596fi 12597rm -fr conftest* 12598 12599 12600fi 12601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12602$as_echo "$lt_cv_dlopen_self" >&6; } 12603 12604 if test yes = "$lt_cv_dlopen_self"; then 12605 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12607$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12608if ${lt_cv_dlopen_self_static+:} false; then : 12609 $as_echo_n "(cached) " >&6 12610else 12611 if test yes = "$cross_compiling"; then : 12612 lt_cv_dlopen_self_static=cross 12613else 12614 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12615 lt_status=$lt_dlunknown 12616 cat > conftest.$ac_ext <<_LT_EOF 12617#line $LINENO "configure" 12618#include "confdefs.h" 12619 12620#if HAVE_DLFCN_H 12621#include <dlfcn.h> 12622#endif 12623 12624#include <stdio.h> 12625 12626#ifdef RTLD_GLOBAL 12627# define LT_DLGLOBAL RTLD_GLOBAL 12628#else 12629# ifdef DL_GLOBAL 12630# define LT_DLGLOBAL DL_GLOBAL 12631# else 12632# define LT_DLGLOBAL 0 12633# endif 12634#endif 12635 12636/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12637 find out it does not work in some platform. */ 12638#ifndef LT_DLLAZY_OR_NOW 12639# ifdef RTLD_LAZY 12640# define LT_DLLAZY_OR_NOW RTLD_LAZY 12641# else 12642# ifdef DL_LAZY 12643# define LT_DLLAZY_OR_NOW DL_LAZY 12644# else 12645# ifdef RTLD_NOW 12646# define LT_DLLAZY_OR_NOW RTLD_NOW 12647# else 12648# ifdef DL_NOW 12649# define LT_DLLAZY_OR_NOW DL_NOW 12650# else 12651# define LT_DLLAZY_OR_NOW 0 12652# endif 12653# endif 12654# endif 12655# endif 12656#endif 12657 12658/* When -fvisibility=hidden is used, assume the code has been annotated 12659 correspondingly for the symbols needed. */ 12660#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12661int fnord () __attribute__((visibility("default"))); 12662#endif 12663 12664int fnord () { return 42; } 12665int main () 12666{ 12667 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12668 int status = $lt_dlunknown; 12669 12670 if (self) 12671 { 12672 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12673 else 12674 { 12675 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12676 else puts (dlerror ()); 12677 } 12678 /* dlclose (self); */ 12679 } 12680 else 12681 puts (dlerror ()); 12682 12683 return status; 12684} 12685_LT_EOF 12686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12687 (eval $ac_link) 2>&5 12688 ac_status=$? 12689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12690 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12691 (./conftest; exit; ) >&5 2>/dev/null 12692 lt_status=$? 12693 case x$lt_status in 12694 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12695 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12696 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12697 esac 12698 else : 12699 # compilation failed 12700 lt_cv_dlopen_self_static=no 12701 fi 12702fi 12703rm -fr conftest* 12704 12705 12706fi 12707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12708$as_echo "$lt_cv_dlopen_self_static" >&6; } 12709 fi 12710 12711 CPPFLAGS=$save_CPPFLAGS 12712 LDFLAGS=$save_LDFLAGS 12713 LIBS=$save_LIBS 12714 ;; 12715 esac 12716 12717 case $lt_cv_dlopen_self in 12718 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12719 *) enable_dlopen_self=unknown ;; 12720 esac 12721 12722 case $lt_cv_dlopen_self_static in 12723 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12724 *) enable_dlopen_self_static=unknown ;; 12725 esac 12726fi 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744striplib= 12745old_striplib= 12746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12747$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12748if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12749 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12750 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12752$as_echo "yes" >&6; } 12753else 12754# FIXME - insert some real tests, host_os isn't really good enough 12755 case $host_os in 12756 darwin*) 12757 if test -n "$STRIP"; then 12758 striplib="$STRIP -x" 12759 old_striplib="$STRIP -S" 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12761$as_echo "yes" >&6; } 12762 else 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12764$as_echo "no" >&6; } 12765 fi 12766 ;; 12767 *) 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12769$as_echo "no" >&6; } 12770 ;; 12771 esac 12772fi 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 # Report what library types will actually be built 12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12787$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12789$as_echo "$can_build_shared" >&6; } 12790 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12792$as_echo_n "checking whether to build shared libraries... " >&6; } 12793 test no = "$can_build_shared" && enable_shared=no 12794 12795 # On AIX, shared libraries and static libraries use the same namespace, and 12796 # are all built from PIC. 12797 case $host_os in 12798 aix3*) 12799 test yes = "$enable_shared" && enable_static=no 12800 if test -n "$RANLIB"; then 12801 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12802 postinstall_cmds='$RANLIB $lib' 12803 fi 12804 ;; 12805 12806 aix[4-9]*) 12807 if test ia64 != "$host_cpu"; then 12808 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12809 yes,aix,yes) ;; # shared object as lib.so file only 12810 yes,svr4,*) ;; # shared object as lib.so archive member only 12811 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12812 esac 12813 fi 12814 ;; 12815 esac 12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12817$as_echo "$enable_shared" >&6; } 12818 12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12820$as_echo_n "checking whether to build static libraries... " >&6; } 12821 # Make sure either enable_shared or enable_static is yes. 12822 test yes = "$enable_shared" || enable_static=yes 12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12824$as_echo "$enable_static" >&6; } 12825 12826 12827 12828 12829fi 12830ac_ext=c 12831ac_cpp='$CPP $CPPFLAGS' 12832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12834ac_compiler_gnu=$ac_cv_c_compiler_gnu 12835 12836CC=$lt_save_CC 12837 12838 if test -n "$CXX" && ( test no != "$CXX" && 12839 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12840 (test g++ != "$CXX"))); then 12841 ac_ext=cpp 12842ac_cpp='$CXXCPP $CPPFLAGS' 12843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12847$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12848if test -z "$CXXCPP"; then 12849 if ${ac_cv_prog_CXXCPP+:} false; then : 12850 $as_echo_n "(cached) " >&6 12851else 12852 # Double quotes because CXXCPP needs to be expanded 12853 for CXXCPP in "$CXX -E" "/lib/cpp" 12854 do 12855 ac_preproc_ok=false 12856for ac_cxx_preproc_warn_flag in '' yes 12857do 12858 # Use a header file that comes with gcc, so configuring glibc 12859 # with a fresh cross-compiler works. 12860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12861 # <limits.h> exists even on freestanding compilers. 12862 # On the NeXT, cc -E runs the code through the compiler's parser, 12863 # not just through cpp. "Syntax error" is here to catch this case. 12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12865/* end confdefs.h. */ 12866#ifdef __STDC__ 12867# include <limits.h> 12868#else 12869# include <assert.h> 12870#endif 12871 Syntax error 12872_ACEOF 12873if ac_fn_cxx_try_cpp "$LINENO"; then : 12874 12875else 12876 # Broken: fails on valid input. 12877continue 12878fi 12879rm -f conftest.err conftest.i conftest.$ac_ext 12880 12881 # OK, works on sane cases. Now check whether nonexistent headers 12882 # can be detected and how. 12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12884/* end confdefs.h. */ 12885#include <ac_nonexistent.h> 12886_ACEOF 12887if ac_fn_cxx_try_cpp "$LINENO"; then : 12888 # Broken: success on invalid input. 12889continue 12890else 12891 # Passes both tests. 12892ac_preproc_ok=: 12893break 12894fi 12895rm -f conftest.err conftest.i conftest.$ac_ext 12896 12897done 12898# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12899rm -f conftest.i conftest.err conftest.$ac_ext 12900if $ac_preproc_ok; then : 12901 break 12902fi 12903 12904 done 12905 ac_cv_prog_CXXCPP=$CXXCPP 12906 12907fi 12908 CXXCPP=$ac_cv_prog_CXXCPP 12909else 12910 ac_cv_prog_CXXCPP=$CXXCPP 12911fi 12912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12913$as_echo "$CXXCPP" >&6; } 12914ac_preproc_ok=false 12915for ac_cxx_preproc_warn_flag in '' yes 12916do 12917 # Use a header file that comes with gcc, so configuring glibc 12918 # with a fresh cross-compiler works. 12919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12920 # <limits.h> exists even on freestanding compilers. 12921 # On the NeXT, cc -E runs the code through the compiler's parser, 12922 # not just through cpp. "Syntax error" is here to catch this case. 12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12924/* end confdefs.h. */ 12925#ifdef __STDC__ 12926# include <limits.h> 12927#else 12928# include <assert.h> 12929#endif 12930 Syntax error 12931_ACEOF 12932if ac_fn_cxx_try_cpp "$LINENO"; then : 12933 12934else 12935 # Broken: fails on valid input. 12936continue 12937fi 12938rm -f conftest.err conftest.i conftest.$ac_ext 12939 12940 # OK, works on sane cases. Now check whether nonexistent headers 12941 # can be detected and how. 12942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12943/* end confdefs.h. */ 12944#include <ac_nonexistent.h> 12945_ACEOF 12946if ac_fn_cxx_try_cpp "$LINENO"; then : 12947 # Broken: success on invalid input. 12948continue 12949else 12950 # Passes both tests. 12951ac_preproc_ok=: 12952break 12953fi 12954rm -f conftest.err conftest.i conftest.$ac_ext 12955 12956done 12957# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12958rm -f conftest.i conftest.err conftest.$ac_ext 12959if $ac_preproc_ok; then : 12960 12961else 12962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12963$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12964as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12965See \`config.log' for more details" "$LINENO" 5; } 12966fi 12967 12968ac_ext=c 12969ac_cpp='$CPP $CPPFLAGS' 12970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12972ac_compiler_gnu=$ac_cv_c_compiler_gnu 12973 12974else 12975 _lt_caught_CXX_error=yes 12976fi 12977 12978ac_ext=cpp 12979ac_cpp='$CXXCPP $CPPFLAGS' 12980ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12981ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12982ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12983 12984archive_cmds_need_lc_CXX=no 12985allow_undefined_flag_CXX= 12986always_export_symbols_CXX=no 12987archive_expsym_cmds_CXX= 12988compiler_needs_object_CXX=no 12989export_dynamic_flag_spec_CXX= 12990hardcode_direct_CXX=no 12991hardcode_direct_absolute_CXX=no 12992hardcode_libdir_flag_spec_CXX= 12993hardcode_libdir_separator_CXX= 12994hardcode_minus_L_CXX=no 12995hardcode_shlibpath_var_CXX=unsupported 12996hardcode_automatic_CXX=no 12997inherit_rpath_CXX=no 12998module_cmds_CXX= 12999module_expsym_cmds_CXX= 13000link_all_deplibs_CXX=unknown 13001old_archive_cmds_CXX=$old_archive_cmds 13002reload_flag_CXX=$reload_flag 13003reload_cmds_CXX=$reload_cmds 13004no_undefined_flag_CXX= 13005whole_archive_flag_spec_CXX= 13006enable_shared_with_static_runtimes_CXX=no 13007 13008# Source file extension for C++ test sources. 13009ac_ext=cpp 13010 13011# Object file extension for compiled C++ test sources. 13012objext=o 13013objext_CXX=$objext 13014 13015# No sense in running all these tests if we already determined that 13016# the CXX compiler isn't working. Some variables (like enable_shared) 13017# are currently assumed to apply to all compilers on this platform, 13018# and will be corrupted by setting them based on a non-working compiler. 13019if test yes != "$_lt_caught_CXX_error"; then 13020 # Code to be used in simple compile tests 13021 lt_simple_compile_test_code="int some_variable = 0;" 13022 13023 # Code to be used in simple link tests 13024 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13025 13026 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13027 13028 13029 13030 13031 13032 13033# If no C compiler was specified, use CC. 13034LTCC=${LTCC-"$CC"} 13035 13036# If no C compiler flags were specified, use CFLAGS. 13037LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13038 13039# Allow CC to be a program name with arguments. 13040compiler=$CC 13041 13042 13043 # save warnings/boilerplate of simple test code 13044 ac_outfile=conftest.$ac_objext 13045echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13046eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13047_lt_compiler_boilerplate=`cat conftest.err` 13048$RM conftest* 13049 13050 ac_outfile=conftest.$ac_objext 13051echo "$lt_simple_link_test_code" >conftest.$ac_ext 13052eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13053_lt_linker_boilerplate=`cat conftest.err` 13054$RM -r conftest* 13055 13056 13057 # Allow CC to be a program name with arguments. 13058 lt_save_CC=$CC 13059 lt_save_CFLAGS=$CFLAGS 13060 lt_save_LD=$LD 13061 lt_save_GCC=$GCC 13062 GCC=$GXX 13063 lt_save_with_gnu_ld=$with_gnu_ld 13064 lt_save_path_LD=$lt_cv_path_LD 13065 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13066 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13067 else 13068 $as_unset lt_cv_prog_gnu_ld 13069 fi 13070 if test -n "${lt_cv_path_LDCXX+set}"; then 13071 lt_cv_path_LD=$lt_cv_path_LDCXX 13072 else 13073 $as_unset lt_cv_path_LD 13074 fi 13075 test -z "${LDCXX+set}" || LD=$LDCXX 13076 CC=${CXX-"c++"} 13077 CFLAGS=$CXXFLAGS 13078 compiler=$CC 13079 compiler_CXX=$CC 13080 func_cc_basename $compiler 13081cc_basename=$func_cc_basename_result 13082 13083 13084 if test -n "$compiler"; then 13085 # We don't want -fno-exception when compiling C++ code, so set the 13086 # no_builtin_flag separately 13087 if test yes = "$GXX"; then 13088 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13089 else 13090 lt_prog_compiler_no_builtin_flag_CXX= 13091 fi 13092 13093 if test yes = "$GXX"; then 13094 # Set up default GNU C++ configuration 13095 13096 13097 13098# Check whether --with-gnu-ld was given. 13099if test "${with_gnu_ld+set}" = set; then : 13100 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13101else 13102 with_gnu_ld=no 13103fi 13104 13105ac_prog=ld 13106if test yes = "$GCC"; then 13107 # Check if gcc -print-prog-name=ld gives a path. 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13109$as_echo_n "checking for ld used by $CC... " >&6; } 13110 case $host in 13111 *-*-mingw*) 13112 # gcc leaves a trailing carriage return, which upsets mingw 13113 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13114 *) 13115 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13116 esac 13117 case $ac_prog in 13118 # Accept absolute paths. 13119 [\\/]* | ?:[\\/]*) 13120 re_direlt='/[^/][^/]*/\.\./' 13121 # Canonicalize the pathname of ld 13122 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13123 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13124 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13125 done 13126 test -z "$LD" && LD=$ac_prog 13127 ;; 13128 "") 13129 # If it fails, then pretend we aren't using GCC. 13130 ac_prog=ld 13131 ;; 13132 *) 13133 # If it is relative, then search for the first ld in PATH. 13134 with_gnu_ld=unknown 13135 ;; 13136 esac 13137elif test yes = "$with_gnu_ld"; then 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13139$as_echo_n "checking for GNU ld... " >&6; } 13140else 13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13142$as_echo_n "checking for non-GNU ld... " >&6; } 13143fi 13144if ${lt_cv_path_LD+:} false; then : 13145 $as_echo_n "(cached) " >&6 13146else 13147 if test -z "$LD"; then 13148 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13149 for ac_dir in $PATH; do 13150 IFS=$lt_save_ifs 13151 test -z "$ac_dir" && ac_dir=. 13152 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13153 lt_cv_path_LD=$ac_dir/$ac_prog 13154 # Check to see if the program is GNU ld. I'd rather use --version, 13155 # but apparently some variants of GNU ld only accept -v. 13156 # Break only if it was the GNU/non-GNU ld that we prefer. 13157 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13158 *GNU* | *'with BFD'*) 13159 test no != "$with_gnu_ld" && break 13160 ;; 13161 *) 13162 test yes != "$with_gnu_ld" && break 13163 ;; 13164 esac 13165 fi 13166 done 13167 IFS=$lt_save_ifs 13168else 13169 lt_cv_path_LD=$LD # Let the user override the test with a path. 13170fi 13171fi 13172 13173LD=$lt_cv_path_LD 13174if test -n "$LD"; then 13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13176$as_echo "$LD" >&6; } 13177else 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13179$as_echo "no" >&6; } 13180fi 13181test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13183$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13184if ${lt_cv_prog_gnu_ld+:} false; then : 13185 $as_echo_n "(cached) " >&6 13186else 13187 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13188case `$LD -v 2>&1 </dev/null` in 13189*GNU* | *'with BFD'*) 13190 lt_cv_prog_gnu_ld=yes 13191 ;; 13192*) 13193 lt_cv_prog_gnu_ld=no 13194 ;; 13195esac 13196fi 13197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13198$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13199with_gnu_ld=$lt_cv_prog_gnu_ld 13200 13201 13202 13203 13204 13205 13206 13207 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13208 # archiving commands below assume that GNU ld is being used. 13209 if test yes = "$with_gnu_ld"; then 13210 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13211 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13212 13213 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13214 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13215 13216 # If archive_cmds runs LD, not CC, wlarc should be empty 13217 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13218 # investigate it a little bit more. (MM) 13219 wlarc='$wl' 13220 13221 # ancient GNU ld didn't support --whole-archive et. al. 13222 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13223 $GREP 'no-whole-archive' > /dev/null; then 13224 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13225 else 13226 whole_archive_flag_spec_CXX= 13227 fi 13228 else 13229 with_gnu_ld=no 13230 wlarc= 13231 13232 # A generic and very simple default shared library creation 13233 # command for GNU C++ for the case where it uses the native 13234 # linker, instead of GNU ld. If possible, this setting should 13235 # overridden to take advantage of the native linker features on 13236 # the platform it is being used on. 13237 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13238 fi 13239 13240 # Commands to make compiler produce verbose output that lists 13241 # what "hidden" libraries, object files and flags are used when 13242 # linking a shared library. 13243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13244 13245 else 13246 GXX=no 13247 with_gnu_ld=no 13248 wlarc= 13249 fi 13250 13251 # PORTME: fill in a description of your system's C++ link characteristics 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13253$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13254 ld_shlibs_CXX=yes 13255 case $host_os in 13256 aix3*) 13257 # FIXME: insert proper C++ library support 13258 ld_shlibs_CXX=no 13259 ;; 13260 aix[4-9]*) 13261 if test ia64 = "$host_cpu"; then 13262 # On IA64, the linker does run time linking by default, so we don't 13263 # have to do anything special. 13264 aix_use_runtimelinking=no 13265 exp_sym_flag='-Bexport' 13266 no_entry_flag= 13267 else 13268 aix_use_runtimelinking=no 13269 13270 # Test if we are trying to use run time linking or normal 13271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13272 # have runtime linking enabled, and use it for executables. 13273 # For shared libraries, we enable/disable runtime linking 13274 # depending on the kind of the shared library created - 13275 # when "with_aix_soname,aix_use_runtimelinking" is: 13276 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13277 # "aix,yes" lib.so shared, rtl:yes, for executables 13278 # lib.a static archive 13279 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13280 # lib.a(lib.so.V) shared, rtl:no, for executables 13281 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13282 # lib.a(lib.so.V) shared, rtl:no 13283 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13284 # lib.a static archive 13285 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13286 for ld_flag in $LDFLAGS; do 13287 case $ld_flag in 13288 *-brtl*) 13289 aix_use_runtimelinking=yes 13290 break 13291 ;; 13292 esac 13293 done 13294 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13295 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13296 # so we don't have lib.a shared libs to link our executables. 13297 # We have to force runtime linking in this case. 13298 aix_use_runtimelinking=yes 13299 LDFLAGS="$LDFLAGS -Wl,-brtl" 13300 fi 13301 ;; 13302 esac 13303 13304 exp_sym_flag='-bexport' 13305 no_entry_flag='-bnoentry' 13306 fi 13307 13308 # When large executables or shared objects are built, AIX ld can 13309 # have problems creating the table of contents. If linking a library 13310 # or program results in "error TOC overflow" add -mminimal-toc to 13311 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13312 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13313 13314 archive_cmds_CXX='' 13315 hardcode_direct_CXX=yes 13316 hardcode_direct_absolute_CXX=yes 13317 hardcode_libdir_separator_CXX=':' 13318 link_all_deplibs_CXX=yes 13319 file_list_spec_CXX='$wl-f,' 13320 case $with_aix_soname,$aix_use_runtimelinking in 13321 aix,*) ;; # no import file 13322 svr4,* | *,yes) # use import file 13323 # The Import File defines what to hardcode. 13324 hardcode_direct_CXX=no 13325 hardcode_direct_absolute_CXX=no 13326 ;; 13327 esac 13328 13329 if test yes = "$GXX"; then 13330 case $host_os in aix4.[012]|aix4.[012].*) 13331 # We only want to do this on AIX 4.2 and lower, the check 13332 # below for broken collect2 doesn't work under 4.3+ 13333 collect2name=`$CC -print-prog-name=collect2` 13334 if test -f "$collect2name" && 13335 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13336 then 13337 # We have reworked collect2 13338 : 13339 else 13340 # We have old collect2 13341 hardcode_direct_CXX=unsupported 13342 # It fails to find uninstalled libraries when the uninstalled 13343 # path is not listed in the libpath. Setting hardcode_minus_L 13344 # to unsupported forces relinking 13345 hardcode_minus_L_CXX=yes 13346 hardcode_libdir_flag_spec_CXX='-L$libdir' 13347 hardcode_libdir_separator_CXX= 13348 fi 13349 esac 13350 shared_flag='-shared' 13351 if test yes = "$aix_use_runtimelinking"; then 13352 shared_flag=$shared_flag' $wl-G' 13353 fi 13354 # Need to ensure runtime linking is disabled for the traditional 13355 # shared library, or the linker may eventually find shared libraries 13356 # /with/ Import File - we do not want to mix them. 13357 shared_flag_aix='-shared' 13358 shared_flag_svr4='-shared $wl-G' 13359 else 13360 # not using gcc 13361 if test ia64 = "$host_cpu"; then 13362 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13363 # chokes on -Wl,-G. The following line is correct: 13364 shared_flag='-G' 13365 else 13366 if test yes = "$aix_use_runtimelinking"; then 13367 shared_flag='$wl-G' 13368 else 13369 shared_flag='$wl-bM:SRE' 13370 fi 13371 shared_flag_aix='$wl-bM:SRE' 13372 shared_flag_svr4='$wl-G' 13373 fi 13374 fi 13375 13376 export_dynamic_flag_spec_CXX='$wl-bexpall' 13377 # It seems that -bexpall does not export symbols beginning with 13378 # underscore (_), so it is better to generate a list of symbols to 13379 # export. 13380 always_export_symbols_CXX=yes 13381 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13382 # Warning - without using the other runtime loading flags (-brtl), 13383 # -berok will link without error, but may produce a broken library. 13384 # The "-G" linker flag allows undefined symbols. 13385 no_undefined_flag_CXX='-bernotok' 13386 # Determine the default libpath from the value encoded in an empty 13387 # executable. 13388 if test set = "${lt_cv_aix_libpath+set}"; then 13389 aix_libpath=$lt_cv_aix_libpath 13390else 13391 if ${lt_cv_aix_libpath__CXX+:} false; then : 13392 $as_echo_n "(cached) " >&6 13393else 13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13395/* end confdefs.h. */ 13396 13397int 13398main () 13399{ 13400 13401 ; 13402 return 0; 13403} 13404_ACEOF 13405if ac_fn_cxx_try_link "$LINENO"; then : 13406 13407 lt_aix_libpath_sed=' 13408 /Import File Strings/,/^$/ { 13409 /^0/ { 13410 s/^0 *\([^ ]*\) *$/\1/ 13411 p 13412 } 13413 }' 13414 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13415 # Check for a 64-bit object if we didn't find anything. 13416 if test -z "$lt_cv_aix_libpath__CXX"; then 13417 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13418 fi 13419fi 13420rm -f core conftest.err conftest.$ac_objext \ 13421 conftest$ac_exeext conftest.$ac_ext 13422 if test -z "$lt_cv_aix_libpath__CXX"; then 13423 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13424 fi 13425 13426fi 13427 13428 aix_libpath=$lt_cv_aix_libpath__CXX 13429fi 13430 13431 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13432 13433 archive_expsym_cmds_CXX='$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 13434 else 13435 if test ia64 = "$host_cpu"; then 13436 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13437 allow_undefined_flag_CXX="-z nodefs" 13438 archive_expsym_cmds_CXX="\$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" 13439 else 13440 # Determine the default libpath from the value encoded in an 13441 # empty executable. 13442 if test set = "${lt_cv_aix_libpath+set}"; then 13443 aix_libpath=$lt_cv_aix_libpath 13444else 13445 if ${lt_cv_aix_libpath__CXX+:} false; then : 13446 $as_echo_n "(cached) " >&6 13447else 13448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13449/* end confdefs.h. */ 13450 13451int 13452main () 13453{ 13454 13455 ; 13456 return 0; 13457} 13458_ACEOF 13459if ac_fn_cxx_try_link "$LINENO"; then : 13460 13461 lt_aix_libpath_sed=' 13462 /Import File Strings/,/^$/ { 13463 /^0/ { 13464 s/^0 *\([^ ]*\) *$/\1/ 13465 p 13466 } 13467 }' 13468 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13469 # Check for a 64-bit object if we didn't find anything. 13470 if test -z "$lt_cv_aix_libpath__CXX"; then 13471 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13472 fi 13473fi 13474rm -f core conftest.err conftest.$ac_objext \ 13475 conftest$ac_exeext conftest.$ac_ext 13476 if test -z "$lt_cv_aix_libpath__CXX"; then 13477 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13478 fi 13479 13480fi 13481 13482 aix_libpath=$lt_cv_aix_libpath__CXX 13483fi 13484 13485 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13486 # Warning - without using the other run time loading flags, 13487 # -berok will link without error, but may produce a broken library. 13488 no_undefined_flag_CXX=' $wl-bernotok' 13489 allow_undefined_flag_CXX=' $wl-berok' 13490 if test yes = "$with_gnu_ld"; then 13491 # We only use this code for GNU lds that support --whole-archive. 13492 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13493 else 13494 # Exported symbols can be pulled into shared objects from archives 13495 whole_archive_flag_spec_CXX='$convenience' 13496 fi 13497 archive_cmds_need_lc_CXX=yes 13498 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13499 # -brtl affects multiple linker settings, -berok does not and is overridden later 13500 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13501 if test svr4 != "$with_aix_soname"; then 13502 # This is similar to how AIX traditionally builds its shared 13503 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13504 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' 13505 fi 13506 if test aix != "$with_aix_soname"; then 13507 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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' 13508 else 13509 # used by -dlpreopen to get the symbols 13510 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13511 fi 13512 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13513 fi 13514 fi 13515 ;; 13516 13517 beos*) 13518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13519 allow_undefined_flag_CXX=unsupported 13520 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13521 # support --undefined. This deserves some investigation. FIXME 13522 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13523 else 13524 ld_shlibs_CXX=no 13525 fi 13526 ;; 13527 13528 chorus*) 13529 case $cc_basename in 13530 *) 13531 # FIXME: insert proper C++ library support 13532 ld_shlibs_CXX=no 13533 ;; 13534 esac 13535 ;; 13536 13537 cygwin* | mingw* | pw32* | cegcc*) 13538 case $GXX,$cc_basename in 13539 ,cl* | no,cl*) 13540 # Native MSVC 13541 # hardcode_libdir_flag_spec is actually meaningless, as there is 13542 # no search path for DLLs. 13543 hardcode_libdir_flag_spec_CXX=' ' 13544 allow_undefined_flag_CXX=unsupported 13545 always_export_symbols_CXX=yes 13546 file_list_spec_CXX='@' 13547 # Tell ltmain to make .lib files, not .a files. 13548 libext=lib 13549 # Tell ltmain to make .dll files, not .so files. 13550 shrext_cmds=.dll 13551 # FIXME: Setting linknames here is a bad hack. 13552 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13553 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13554 cp "$export_symbols" "$output_objdir/$soname.def"; 13555 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13556 else 13557 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13558 fi~ 13559 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13560 linknames=' 13561 # The linker will not automatically build a static lib if we build a DLL. 13562 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13563 enable_shared_with_static_runtimes_CXX=yes 13564 # Don't use ranlib 13565 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13566 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13567 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13568 case $lt_outputfile in 13569 *.exe|*.EXE) ;; 13570 *) 13571 lt_outputfile=$lt_outputfile.exe 13572 lt_tool_outputfile=$lt_tool_outputfile.exe 13573 ;; 13574 esac~ 13575 func_to_tool_file "$lt_outputfile"~ 13576 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13577 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13578 $RM "$lt_outputfile.manifest"; 13579 fi' 13580 ;; 13581 *) 13582 # g++ 13583 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13584 # as there is no search path for DLLs. 13585 hardcode_libdir_flag_spec_CXX='-L$libdir' 13586 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13587 allow_undefined_flag_CXX=unsupported 13588 always_export_symbols_CXX=no 13589 enable_shared_with_static_runtimes_CXX=yes 13590 13591 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13592 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13593 # If the export-symbols file already is a .def file, use it as 13594 # is; otherwise, prepend EXPORTS... 13595 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13596 cp $export_symbols $output_objdir/$soname.def; 13597 else 13598 echo EXPORTS > $output_objdir/$soname.def; 13599 cat $export_symbols >> $output_objdir/$soname.def; 13600 fi~ 13601 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 13602 else 13603 ld_shlibs_CXX=no 13604 fi 13605 ;; 13606 esac 13607 ;; 13608 darwin* | rhapsody*) 13609 13610 13611 archive_cmds_need_lc_CXX=no 13612 hardcode_direct_CXX=no 13613 hardcode_automatic_CXX=yes 13614 hardcode_shlibpath_var_CXX=unsupported 13615 if test yes = "$lt_cv_ld_force_load"; then 13616 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13617 13618 else 13619 whole_archive_flag_spec_CXX='' 13620 fi 13621 link_all_deplibs_CXX=yes 13622 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13623 case $cc_basename in 13624 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13625 *) _lt_dar_can_shared=$GCC ;; 13626 esac 13627 if test yes = "$_lt_dar_can_shared"; then 13628 output_verbose_link_cmd=func_echo_all 13629 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13630 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13631 archive_expsym_cmds_CXX="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" 13632 module_expsym_cmds_CXX="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" 13633 if test yes != "$lt_cv_apple_cc_single_mod"; then 13634 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 13635 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 13636 fi 13637 13638 else 13639 ld_shlibs_CXX=no 13640 fi 13641 13642 ;; 13643 13644 os2*) 13645 hardcode_libdir_flag_spec_CXX='-L$libdir' 13646 hardcode_minus_L_CXX=yes 13647 allow_undefined_flag_CXX=unsupported 13648 shrext_cmds=.dll 13649 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13650 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13651 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13652 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13653 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13654 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13655 emximp -o $lib $output_objdir/$libname.def' 13656 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13657 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13658 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13659 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13660 prefix_cmds="$SED"~ 13661 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13662 prefix_cmds="$prefix_cmds -e 1d"; 13663 fi~ 13664 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13665 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13666 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13667 emximp -o $lib $output_objdir/$libname.def' 13668 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13669 enable_shared_with_static_runtimes_CXX=yes 13670 ;; 13671 13672 dgux*) 13673 case $cc_basename in 13674 ec++*) 13675 # FIXME: insert proper C++ library support 13676 ld_shlibs_CXX=no 13677 ;; 13678 ghcx*) 13679 # Green Hills C++ Compiler 13680 # FIXME: insert proper C++ library support 13681 ld_shlibs_CXX=no 13682 ;; 13683 *) 13684 # FIXME: insert proper C++ library support 13685 ld_shlibs_CXX=no 13686 ;; 13687 esac 13688 ;; 13689 13690 freebsd2.*) 13691 # C++ shared libraries reported to be fairly broken before 13692 # switch to ELF 13693 ld_shlibs_CXX=no 13694 ;; 13695 13696 freebsd-elf*) 13697 archive_cmds_need_lc_CXX=no 13698 ;; 13699 13700 freebsd* | dragonfly*) 13701 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13702 # conventions 13703 ld_shlibs_CXX=yes 13704 ;; 13705 13706 haiku*) 13707 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13708 link_all_deplibs_CXX=yes 13709 ;; 13710 13711 hpux9*) 13712 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13713 hardcode_libdir_separator_CXX=: 13714 export_dynamic_flag_spec_CXX='$wl-E' 13715 hardcode_direct_CXX=yes 13716 hardcode_minus_L_CXX=yes # Not in the search PATH, 13717 # but as the default 13718 # location of the library. 13719 13720 case $cc_basename in 13721 CC*) 13722 # FIXME: insert proper C++ library support 13723 ld_shlibs_CXX=no 13724 ;; 13725 aCC*) 13726 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13727 # Commands to make compiler produce verbose output that lists 13728 # what "hidden" libraries, object files and flags are used when 13729 # linking a shared library. 13730 # 13731 # There doesn't appear to be a way to prevent this compiler from 13732 # explicitly linking system object files so we need to strip them 13733 # from the output so that they don't get included in the library 13734 # dependencies. 13735 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13736 ;; 13737 *) 13738 if test yes = "$GXX"; then 13739 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13740 else 13741 # FIXME: insert proper C++ library support 13742 ld_shlibs_CXX=no 13743 fi 13744 ;; 13745 esac 13746 ;; 13747 13748 hpux10*|hpux11*) 13749 if test no = "$with_gnu_ld"; then 13750 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13751 hardcode_libdir_separator_CXX=: 13752 13753 case $host_cpu in 13754 hppa*64*|ia64*) 13755 ;; 13756 *) 13757 export_dynamic_flag_spec_CXX='$wl-E' 13758 ;; 13759 esac 13760 fi 13761 case $host_cpu in 13762 hppa*64*|ia64*) 13763 hardcode_direct_CXX=no 13764 hardcode_shlibpath_var_CXX=no 13765 ;; 13766 *) 13767 hardcode_direct_CXX=yes 13768 hardcode_direct_absolute_CXX=yes 13769 hardcode_minus_L_CXX=yes # Not in the search PATH, 13770 # but as the default 13771 # location of the library. 13772 ;; 13773 esac 13774 13775 case $cc_basename in 13776 CC*) 13777 # FIXME: insert proper C++ library support 13778 ld_shlibs_CXX=no 13779 ;; 13780 aCC*) 13781 case $host_cpu in 13782 hppa*64*) 13783 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13784 ;; 13785 ia64*) 13786 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13787 ;; 13788 *) 13789 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13790 ;; 13791 esac 13792 # Commands to make compiler produce verbose output that lists 13793 # what "hidden" libraries, object files and flags are used when 13794 # linking a shared library. 13795 # 13796 # There doesn't appear to be a way to prevent this compiler from 13797 # explicitly linking system object files so we need to strip them 13798 # from the output so that they don't get included in the library 13799 # dependencies. 13800 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13801 ;; 13802 *) 13803 if test yes = "$GXX"; then 13804 if test no = "$with_gnu_ld"; then 13805 case $host_cpu in 13806 hppa*64*) 13807 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13808 ;; 13809 ia64*) 13810 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13811 ;; 13812 *) 13813 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13814 ;; 13815 esac 13816 fi 13817 else 13818 # FIXME: insert proper C++ library support 13819 ld_shlibs_CXX=no 13820 fi 13821 ;; 13822 esac 13823 ;; 13824 13825 interix[3-9]*) 13826 hardcode_direct_CXX=no 13827 hardcode_shlibpath_var_CXX=no 13828 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13829 export_dynamic_flag_spec_CXX='$wl-E' 13830 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13831 # Instead, shared libraries are loaded at an image base (0x10000000 by 13832 # default) and relocated if they conflict, which is a slow very memory 13833 # consuming and fragmenting process. To avoid this, we pick a random, 13834 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13835 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13836 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13837 archive_expsym_cmds_CXX='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' 13838 ;; 13839 irix5* | irix6*) 13840 case $cc_basename in 13841 CC*) 13842 # SGI C++ 13843 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13844 13845 # Archives containing C++ object files must be created using 13846 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13847 # necessary to make sure instantiated templates are included 13848 # in the archive. 13849 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13850 ;; 13851 *) 13852 if test yes = "$GXX"; then 13853 if test no = "$with_gnu_ld"; then 13854 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 13855 else 13856 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 13857 fi 13858 fi 13859 link_all_deplibs_CXX=yes 13860 ;; 13861 esac 13862 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13863 hardcode_libdir_separator_CXX=: 13864 inherit_rpath_CXX=yes 13865 ;; 13866 13867 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13868 case $cc_basename in 13869 KCC*) 13870 # Kuck and Associates, Inc. (KAI) C++ Compiler 13871 13872 # KCC will only create a shared library if the output file 13873 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13874 # to its proper name (with version) after linking. 13875 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13876 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 13877 # Commands to make compiler produce verbose output that lists 13878 # what "hidden" libraries, object files and flags are used when 13879 # linking a shared library. 13880 # 13881 # There doesn't appear to be a way to prevent this compiler from 13882 # explicitly linking system object files so we need to strip them 13883 # from the output so that they don't get included in the library 13884 # dependencies. 13885 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13886 13887 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13888 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13889 13890 # Archives containing C++ object files must be created using 13891 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13892 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13893 ;; 13894 icpc* | ecpc* ) 13895 # Intel C++ 13896 with_gnu_ld=yes 13897 # version 8.0 and above of icpc choke on multiply defined symbols 13898 # if we add $predep_objects and $postdep_objects, however 7.1 and 13899 # earlier do not add the objects themselves. 13900 case `$CC -V 2>&1` in 13901 *"Version 7."*) 13902 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13903 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13904 ;; 13905 *) # Version 8.0 or newer 13906 tmp_idyn= 13907 case $host_cpu in 13908 ia64*) tmp_idyn=' -i_dynamic';; 13909 esac 13910 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13911 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13912 ;; 13913 esac 13914 archive_cmds_need_lc_CXX=no 13915 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13916 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13917 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13918 ;; 13919 pgCC* | pgcpp*) 13920 # Portland Group C++ compiler 13921 case `$CC -V` in 13922 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13923 prelink_cmds_CXX='tpldir=Template.dir~ 13924 rm -rf $tpldir~ 13925 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13926 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13927 old_archive_cmds_CXX='tpldir=Template.dir~ 13928 rm -rf $tpldir~ 13929 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13930 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13931 $RANLIB $oldlib' 13932 archive_cmds_CXX='tpldir=Template.dir~ 13933 rm -rf $tpldir~ 13934 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13935 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13936 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13937 rm -rf $tpldir~ 13938 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13939 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13940 ;; 13941 *) # Version 6 and above use weak symbols 13942 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13943 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13944 ;; 13945 esac 13946 13947 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 13948 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13949 whole_archive_flag_spec_CXX='$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' 13950 ;; 13951 cxx*) 13952 # Compaq C++ 13953 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13954 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 13955 13956 runpath_var=LD_RUN_PATH 13957 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13958 hardcode_libdir_separator_CXX=: 13959 13960 # Commands to make compiler produce verbose output that lists 13961 # what "hidden" libraries, object files and flags are used when 13962 # linking a shared library. 13963 # 13964 # There doesn't appear to be a way to prevent this compiler from 13965 # explicitly linking system object files so we need to strip them 13966 # from the output so that they don't get included in the library 13967 # dependencies. 13968 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 13969 ;; 13970 xl* | mpixl* | bgxl*) 13971 # IBM XL 8.0 on PPC, with GNU ld 13972 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13973 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13974 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13975 if test yes = "$supports_anon_versioning"; then 13976 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13977 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13978 echo "local: *; };" >> $output_objdir/$libname.ver~ 13979 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13980 fi 13981 ;; 13982 *) 13983 case `$CC -V 2>&1 | sed 5q` in 13984 *Sun\ C*) 13985 # Sun C++ 5.9 13986 no_undefined_flag_CXX=' -zdefs' 13987 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13988 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 13989 hardcode_libdir_flag_spec_CXX='-R$libdir' 13990 whole_archive_flag_spec_CXX='$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' 13991 compiler_needs_object_CXX=yes 13992 13993 # Not sure whether something based on 13994 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13995 # would be better. 13996 output_verbose_link_cmd='func_echo_all' 13997 13998 # Archives containing C++ object files must be created using 13999 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14000 # necessary to make sure instantiated templates are included 14001 # in the archive. 14002 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14003 ;; 14004 esac 14005 ;; 14006 esac 14007 ;; 14008 14009 lynxos*) 14010 # FIXME: insert proper C++ library support 14011 ld_shlibs_CXX=no 14012 ;; 14013 14014 m88k*) 14015 # FIXME: insert proper C++ library support 14016 ld_shlibs_CXX=no 14017 ;; 14018 14019 mvs*) 14020 case $cc_basename in 14021 cxx*) 14022 # FIXME: insert proper C++ library support 14023 ld_shlibs_CXX=no 14024 ;; 14025 *) 14026 # FIXME: insert proper C++ library support 14027 ld_shlibs_CXX=no 14028 ;; 14029 esac 14030 ;; 14031 14032 netbsd*) 14033 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14034 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14035 wlarc= 14036 hardcode_libdir_flag_spec_CXX='-R$libdir' 14037 hardcode_direct_CXX=yes 14038 hardcode_shlibpath_var_CXX=no 14039 fi 14040 # Workaround some broken pre-1.5 toolchains 14041 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14042 ;; 14043 14044 *nto* | *qnx*) 14045 ld_shlibs_CXX=yes 14046 ;; 14047 14048 openbsd* | bitrig*) 14049 if test -f /usr/libexec/ld.so; then 14050 hardcode_direct_CXX=yes 14051 hardcode_shlibpath_var_CXX=no 14052 hardcode_direct_absolute_CXX=yes 14053 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14054 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14055 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14056 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14057 export_dynamic_flag_spec_CXX='$wl-E' 14058 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14059 fi 14060 output_verbose_link_cmd=func_echo_all 14061 else 14062 ld_shlibs_CXX=no 14063 fi 14064 ;; 14065 14066 osf3* | osf4* | osf5*) 14067 case $cc_basename in 14068 KCC*) 14069 # Kuck and Associates, Inc. (KAI) C++ Compiler 14070 14071 # KCC will only create a shared library if the output file 14072 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14073 # to its proper name (with version) after linking. 14074 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14075 14076 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14077 hardcode_libdir_separator_CXX=: 14078 14079 # Archives containing C++ object files must be created using 14080 # the KAI C++ compiler. 14081 case $host in 14082 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14083 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14084 esac 14085 ;; 14086 RCC*) 14087 # Rational C++ 2.4.1 14088 # FIXME: insert proper C++ library support 14089 ld_shlibs_CXX=no 14090 ;; 14091 cxx*) 14092 case $host in 14093 osf3*) 14094 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14095 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14096 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14097 ;; 14098 *) 14099 allow_undefined_flag_CXX=' -expect_unresolved \*' 14100 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14101 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14102 echo "-hidden">> $lib.exp~ 14103 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 14104 $RM $lib.exp' 14105 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14106 ;; 14107 esac 14108 14109 hardcode_libdir_separator_CXX=: 14110 14111 # Commands to make compiler produce verbose output that lists 14112 # what "hidden" libraries, object files and flags are used when 14113 # linking a shared library. 14114 # 14115 # There doesn't appear to be a way to prevent this compiler from 14116 # explicitly linking system object files so we need to strip them 14117 # from the output so that they don't get included in the library 14118 # dependencies. 14119 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14120 ;; 14121 *) 14122 if test yes,no = "$GXX,$with_gnu_ld"; then 14123 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14124 case $host in 14125 osf3*) 14126 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 14127 ;; 14128 *) 14129 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 14130 ;; 14131 esac 14132 14133 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14134 hardcode_libdir_separator_CXX=: 14135 14136 # Commands to make compiler produce verbose output that lists 14137 # what "hidden" libraries, object files and flags are used when 14138 # linking a shared library. 14139 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14140 14141 else 14142 # FIXME: insert proper C++ library support 14143 ld_shlibs_CXX=no 14144 fi 14145 ;; 14146 esac 14147 ;; 14148 14149 psos*) 14150 # FIXME: insert proper C++ library support 14151 ld_shlibs_CXX=no 14152 ;; 14153 14154 sunos4*) 14155 case $cc_basename in 14156 CC*) 14157 # Sun C++ 4.x 14158 # FIXME: insert proper C++ library support 14159 ld_shlibs_CXX=no 14160 ;; 14161 lcc*) 14162 # Lucid 14163 # FIXME: insert proper C++ library support 14164 ld_shlibs_CXX=no 14165 ;; 14166 *) 14167 # FIXME: insert proper C++ library support 14168 ld_shlibs_CXX=no 14169 ;; 14170 esac 14171 ;; 14172 14173 solaris*) 14174 case $cc_basename in 14175 CC* | sunCC*) 14176 # Sun C++ 4.2, 5.x and Centerline C++ 14177 archive_cmds_need_lc_CXX=yes 14178 no_undefined_flag_CXX=' -zdefs' 14179 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14180 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14181 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14182 14183 hardcode_libdir_flag_spec_CXX='-R$libdir' 14184 hardcode_shlibpath_var_CXX=no 14185 case $host_os in 14186 solaris2.[0-5] | solaris2.[0-5].*) ;; 14187 *) 14188 # The compiler driver will combine and reorder linker options, 14189 # but understands '-z linker_flag'. 14190 # Supported since Solaris 2.6 (maybe 2.5.1?) 14191 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14192 ;; 14193 esac 14194 link_all_deplibs_CXX=yes 14195 14196 output_verbose_link_cmd='func_echo_all' 14197 14198 # Archives containing C++ object files must be created using 14199 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14200 # necessary to make sure instantiated templates are included 14201 # in the archive. 14202 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14203 ;; 14204 gcx*) 14205 # Green Hills C++ Compiler 14206 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14207 14208 # The C++ compiler must be used to create the archive. 14209 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14210 ;; 14211 *) 14212 # GNU C++ compiler with Solaris linker 14213 if test yes,no = "$GXX,$with_gnu_ld"; then 14214 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14215 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14216 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14217 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14218 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14219 14220 # Commands to make compiler produce verbose output that lists 14221 # what "hidden" libraries, object files and flags are used when 14222 # linking a shared library. 14223 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14224 else 14225 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14226 # platform. 14227 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14228 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14229 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14230 14231 # Commands to make compiler produce verbose output that lists 14232 # what "hidden" libraries, object files and flags are used when 14233 # linking a shared library. 14234 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14235 fi 14236 14237 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14238 case $host_os in 14239 solaris2.[0-5] | solaris2.[0-5].*) ;; 14240 *) 14241 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14242 ;; 14243 esac 14244 fi 14245 ;; 14246 esac 14247 ;; 14248 14249 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14250 no_undefined_flag_CXX='$wl-z,text' 14251 archive_cmds_need_lc_CXX=no 14252 hardcode_shlibpath_var_CXX=no 14253 runpath_var='LD_RUN_PATH' 14254 14255 case $cc_basename in 14256 CC*) 14257 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14258 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14259 ;; 14260 *) 14261 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14262 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14263 ;; 14264 esac 14265 ;; 14266 14267 sysv5* | sco3.2v5* | sco5v6*) 14268 # Note: We CANNOT use -z defs as we might desire, because we do not 14269 # link with -lc, and that would cause any symbols used from libc to 14270 # always be unresolved, which means just about no library would 14271 # ever link correctly. If we're not using GNU ld we use -z text 14272 # though, which does catch some bad symbols but isn't as heavy-handed 14273 # as -z defs. 14274 no_undefined_flag_CXX='$wl-z,text' 14275 allow_undefined_flag_CXX='$wl-z,nodefs' 14276 archive_cmds_need_lc_CXX=no 14277 hardcode_shlibpath_var_CXX=no 14278 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14279 hardcode_libdir_separator_CXX=':' 14280 link_all_deplibs_CXX=yes 14281 export_dynamic_flag_spec_CXX='$wl-Bexport' 14282 runpath_var='LD_RUN_PATH' 14283 14284 case $cc_basename in 14285 CC*) 14286 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14287 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14288 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14289 '"$old_archive_cmds_CXX" 14290 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14291 '"$reload_cmds_CXX" 14292 ;; 14293 *) 14294 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14295 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14296 ;; 14297 esac 14298 ;; 14299 14300 tandem*) 14301 case $cc_basename in 14302 NCC*) 14303 # NonStop-UX NCC 3.20 14304 # FIXME: insert proper C++ library support 14305 ld_shlibs_CXX=no 14306 ;; 14307 *) 14308 # FIXME: insert proper C++ library support 14309 ld_shlibs_CXX=no 14310 ;; 14311 esac 14312 ;; 14313 14314 vxworks*) 14315 # FIXME: insert proper C++ library support 14316 ld_shlibs_CXX=no 14317 ;; 14318 14319 *) 14320 # FIXME: insert proper C++ library support 14321 ld_shlibs_CXX=no 14322 ;; 14323 esac 14324 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14326$as_echo "$ld_shlibs_CXX" >&6; } 14327 test no = "$ld_shlibs_CXX" && can_build_shared=no 14328 14329 GCC_CXX=$GXX 14330 LD_CXX=$LD 14331 14332 ## CAVEAT EMPTOR: 14333 ## There is no encapsulation within the following macros, do not change 14334 ## the running order or otherwise move them around unless you know exactly 14335 ## what you are doing... 14336 # Dependencies to place before and after the object being linked: 14337predep_objects_CXX= 14338postdep_objects_CXX= 14339predeps_CXX= 14340postdeps_CXX= 14341compiler_lib_search_path_CXX= 14342 14343cat > conftest.$ac_ext <<_LT_EOF 14344class Foo 14345{ 14346public: 14347 Foo (void) { a = 0; } 14348private: 14349 int a; 14350}; 14351_LT_EOF 14352 14353 14354_lt_libdeps_save_CFLAGS=$CFLAGS 14355case "$CC $CFLAGS " in #( 14356*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14357*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14358*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14359esac 14360 14361if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14362 (eval $ac_compile) 2>&5 14363 ac_status=$? 14364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14365 test $ac_status = 0; }; then 14366 # Parse the compiler output and extract the necessary 14367 # objects, libraries and library flags. 14368 14369 # Sentinel used to keep track of whether or not we are before 14370 # the conftest object file. 14371 pre_test_object_deps_done=no 14372 14373 for p in `eval "$output_verbose_link_cmd"`; do 14374 case $prev$p in 14375 14376 -L* | -R* | -l*) 14377 # Some compilers place space between "-{L,R}" and the path. 14378 # Remove the space. 14379 if test x-L = "$p" || 14380 test x-R = "$p"; then 14381 prev=$p 14382 continue 14383 fi 14384 14385 # Expand the sysroot to ease extracting the directories later. 14386 if test -z "$prev"; then 14387 case $p in 14388 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14389 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14390 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14391 esac 14392 fi 14393 case $p in 14394 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14395 esac 14396 if test no = "$pre_test_object_deps_done"; then 14397 case $prev in 14398 -L | -R) 14399 # Internal compiler library paths should come after those 14400 # provided the user. The postdeps already come after the 14401 # user supplied libs so there is no need to process them. 14402 if test -z "$compiler_lib_search_path_CXX"; then 14403 compiler_lib_search_path_CXX=$prev$p 14404 else 14405 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14406 fi 14407 ;; 14408 # The "-l" case would never come before the object being 14409 # linked, so don't bother handling this case. 14410 esac 14411 else 14412 if test -z "$postdeps_CXX"; then 14413 postdeps_CXX=$prev$p 14414 else 14415 postdeps_CXX="${postdeps_CXX} $prev$p" 14416 fi 14417 fi 14418 prev= 14419 ;; 14420 14421 *.lto.$objext) ;; # Ignore GCC LTO objects 14422 *.$objext) 14423 # This assumes that the test object file only shows up 14424 # once in the compiler output. 14425 if test "$p" = "conftest.$objext"; then 14426 pre_test_object_deps_done=yes 14427 continue 14428 fi 14429 14430 if test no = "$pre_test_object_deps_done"; then 14431 if test -z "$predep_objects_CXX"; then 14432 predep_objects_CXX=$p 14433 else 14434 predep_objects_CXX="$predep_objects_CXX $p" 14435 fi 14436 else 14437 if test -z "$postdep_objects_CXX"; then 14438 postdep_objects_CXX=$p 14439 else 14440 postdep_objects_CXX="$postdep_objects_CXX $p" 14441 fi 14442 fi 14443 ;; 14444 14445 *) ;; # Ignore the rest. 14446 14447 esac 14448 done 14449 14450 # Clean up. 14451 rm -f a.out a.exe 14452else 14453 echo "libtool.m4: error: problem compiling CXX test program" 14454fi 14455 14456$RM -f confest.$objext 14457CFLAGS=$_lt_libdeps_save_CFLAGS 14458 14459# PORTME: override above test on systems where it is broken 14460case $host_os in 14461interix[3-9]*) 14462 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14463 # hack all around it, let's just trust "g++" to DTRT. 14464 predep_objects_CXX= 14465 postdep_objects_CXX= 14466 postdeps_CXX= 14467 ;; 14468esac 14469 14470 14471case " $postdeps_CXX " in 14472*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14473esac 14474 compiler_lib_search_dirs_CXX= 14475if test -n "${compiler_lib_search_path_CXX}"; then 14476 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14477fi 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 lt_prog_compiler_wl_CXX= 14510lt_prog_compiler_pic_CXX= 14511lt_prog_compiler_static_CXX= 14512 14513 14514 # C++ specific cases for pic, static, wl, etc. 14515 if test yes = "$GXX"; then 14516 lt_prog_compiler_wl_CXX='-Wl,' 14517 lt_prog_compiler_static_CXX='-static' 14518 14519 case $host_os in 14520 aix*) 14521 # All AIX code is PIC. 14522 if test ia64 = "$host_cpu"; then 14523 # AIX 5 now supports IA64 processor 14524 lt_prog_compiler_static_CXX='-Bstatic' 14525 fi 14526 lt_prog_compiler_pic_CXX='-fPIC' 14527 ;; 14528 14529 amigaos*) 14530 case $host_cpu in 14531 powerpc) 14532 # see comment about AmigaOS4 .so support 14533 lt_prog_compiler_pic_CXX='-fPIC' 14534 ;; 14535 m68k) 14536 # FIXME: we need at least 68020 code to build shared libraries, but 14537 # adding the '-m68020' flag to GCC prevents building anything better, 14538 # like '-m68040'. 14539 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14540 ;; 14541 esac 14542 ;; 14543 14544 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14545 # PIC is the default for these OSes. 14546 ;; 14547 mingw* | cygwin* | os2* | pw32* | cegcc*) 14548 # This hack is so that the source file can tell whether it is being 14549 # built for inclusion in a dll (and should export symbols for example). 14550 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14551 # (--disable-auto-import) libraries 14552 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14553 case $host_os in 14554 os2*) 14555 lt_prog_compiler_static_CXX='$wl-static' 14556 ;; 14557 esac 14558 ;; 14559 darwin* | rhapsody*) 14560 # PIC is the default on this platform 14561 # Common symbols not allowed in MH_DYLIB files 14562 lt_prog_compiler_pic_CXX='-fno-common' 14563 ;; 14564 *djgpp*) 14565 # DJGPP does not support shared libraries at all 14566 lt_prog_compiler_pic_CXX= 14567 ;; 14568 haiku*) 14569 # PIC is the default for Haiku. 14570 # The "-static" flag exists, but is broken. 14571 lt_prog_compiler_static_CXX= 14572 ;; 14573 interix[3-9]*) 14574 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14575 # Instead, we relocate shared libraries at runtime. 14576 ;; 14577 sysv4*MP*) 14578 if test -d /usr/nec; then 14579 lt_prog_compiler_pic_CXX=-Kconform_pic 14580 fi 14581 ;; 14582 hpux*) 14583 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14584 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14585 # sets the default TLS model and affects inlining. 14586 case $host_cpu in 14587 hppa*64*) 14588 ;; 14589 *) 14590 lt_prog_compiler_pic_CXX='-fPIC' 14591 ;; 14592 esac 14593 ;; 14594 *qnx* | *nto*) 14595 # QNX uses GNU C++, but need to define -shared option too, otherwise 14596 # it will coredump. 14597 lt_prog_compiler_pic_CXX='-fPIC -shared' 14598 ;; 14599 *) 14600 lt_prog_compiler_pic_CXX='-fPIC' 14601 ;; 14602 esac 14603 else 14604 case $host_os in 14605 aix[4-9]*) 14606 # All AIX code is PIC. 14607 if test ia64 = "$host_cpu"; then 14608 # AIX 5 now supports IA64 processor 14609 lt_prog_compiler_static_CXX='-Bstatic' 14610 else 14611 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14612 fi 14613 ;; 14614 chorus*) 14615 case $cc_basename in 14616 cxch68*) 14617 # Green Hills C++ Compiler 14618 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14619 ;; 14620 esac 14621 ;; 14622 mingw* | cygwin* | os2* | pw32* | cegcc*) 14623 # This hack is so that the source file can tell whether it is being 14624 # built for inclusion in a dll (and should export symbols for example). 14625 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14626 ;; 14627 dgux*) 14628 case $cc_basename in 14629 ec++*) 14630 lt_prog_compiler_pic_CXX='-KPIC' 14631 ;; 14632 ghcx*) 14633 # Green Hills C++ Compiler 14634 lt_prog_compiler_pic_CXX='-pic' 14635 ;; 14636 *) 14637 ;; 14638 esac 14639 ;; 14640 freebsd* | dragonfly*) 14641 # FreeBSD uses GNU C++ 14642 ;; 14643 hpux9* | hpux10* | hpux11*) 14644 case $cc_basename in 14645 CC*) 14646 lt_prog_compiler_wl_CXX='-Wl,' 14647 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14648 if test ia64 != "$host_cpu"; then 14649 lt_prog_compiler_pic_CXX='+Z' 14650 fi 14651 ;; 14652 aCC*) 14653 lt_prog_compiler_wl_CXX='-Wl,' 14654 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14655 case $host_cpu in 14656 hppa*64*|ia64*) 14657 # +Z the default 14658 ;; 14659 *) 14660 lt_prog_compiler_pic_CXX='+Z' 14661 ;; 14662 esac 14663 ;; 14664 *) 14665 ;; 14666 esac 14667 ;; 14668 interix*) 14669 # This is c89, which is MS Visual C++ (no shared libs) 14670 # Anyone wants to do a port? 14671 ;; 14672 irix5* | irix6* | nonstopux*) 14673 case $cc_basename in 14674 CC*) 14675 lt_prog_compiler_wl_CXX='-Wl,' 14676 lt_prog_compiler_static_CXX='-non_shared' 14677 # CC pic flag -KPIC is the default. 14678 ;; 14679 *) 14680 ;; 14681 esac 14682 ;; 14683 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14684 case $cc_basename in 14685 KCC*) 14686 # KAI C++ Compiler 14687 lt_prog_compiler_wl_CXX='--backend -Wl,' 14688 lt_prog_compiler_pic_CXX='-fPIC' 14689 ;; 14690 ecpc* ) 14691 # old Intel C++ for x86_64, which still supported -KPIC. 14692 lt_prog_compiler_wl_CXX='-Wl,' 14693 lt_prog_compiler_pic_CXX='-KPIC' 14694 lt_prog_compiler_static_CXX='-static' 14695 ;; 14696 icpc* ) 14697 # Intel C++, used to be incompatible with GCC. 14698 # ICC 10 doesn't accept -KPIC any more. 14699 lt_prog_compiler_wl_CXX='-Wl,' 14700 lt_prog_compiler_pic_CXX='-fPIC' 14701 lt_prog_compiler_static_CXX='-static' 14702 ;; 14703 pgCC* | pgcpp*) 14704 # Portland Group C++ compiler 14705 lt_prog_compiler_wl_CXX='-Wl,' 14706 lt_prog_compiler_pic_CXX='-fpic' 14707 lt_prog_compiler_static_CXX='-Bstatic' 14708 ;; 14709 cxx*) 14710 # Compaq C++ 14711 # Make sure the PIC flag is empty. It appears that all Alpha 14712 # Linux and Compaq Tru64 Unix objects are PIC. 14713 lt_prog_compiler_pic_CXX= 14714 lt_prog_compiler_static_CXX='-non_shared' 14715 ;; 14716 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14717 # IBM XL 8.0, 9.0 on PPC and BlueGene 14718 lt_prog_compiler_wl_CXX='-Wl,' 14719 lt_prog_compiler_pic_CXX='-qpic' 14720 lt_prog_compiler_static_CXX='-qstaticlink' 14721 ;; 14722 *) 14723 case `$CC -V 2>&1 | sed 5q` in 14724 *Sun\ C*) 14725 # Sun C++ 5.9 14726 lt_prog_compiler_pic_CXX='-KPIC' 14727 lt_prog_compiler_static_CXX='-Bstatic' 14728 lt_prog_compiler_wl_CXX='-Qoption ld ' 14729 ;; 14730 esac 14731 ;; 14732 esac 14733 ;; 14734 lynxos*) 14735 ;; 14736 m88k*) 14737 ;; 14738 mvs*) 14739 case $cc_basename in 14740 cxx*) 14741 lt_prog_compiler_pic_CXX='-W c,exportall' 14742 ;; 14743 *) 14744 ;; 14745 esac 14746 ;; 14747 netbsd*) 14748 ;; 14749 *qnx* | *nto*) 14750 # QNX uses GNU C++, but need to define -shared option too, otherwise 14751 # it will coredump. 14752 lt_prog_compiler_pic_CXX='-fPIC -shared' 14753 ;; 14754 osf3* | osf4* | osf5*) 14755 case $cc_basename in 14756 KCC*) 14757 lt_prog_compiler_wl_CXX='--backend -Wl,' 14758 ;; 14759 RCC*) 14760 # Rational C++ 2.4.1 14761 lt_prog_compiler_pic_CXX='-pic' 14762 ;; 14763 cxx*) 14764 # Digital/Compaq C++ 14765 lt_prog_compiler_wl_CXX='-Wl,' 14766 # Make sure the PIC flag is empty. It appears that all Alpha 14767 # Linux and Compaq Tru64 Unix objects are PIC. 14768 lt_prog_compiler_pic_CXX= 14769 lt_prog_compiler_static_CXX='-non_shared' 14770 ;; 14771 *) 14772 ;; 14773 esac 14774 ;; 14775 psos*) 14776 ;; 14777 solaris*) 14778 case $cc_basename in 14779 CC* | sunCC*) 14780 # Sun C++ 4.2, 5.x and Centerline C++ 14781 lt_prog_compiler_pic_CXX='-KPIC' 14782 lt_prog_compiler_static_CXX='-Bstatic' 14783 lt_prog_compiler_wl_CXX='-Qoption ld ' 14784 ;; 14785 gcx*) 14786 # Green Hills C++ Compiler 14787 lt_prog_compiler_pic_CXX='-PIC' 14788 ;; 14789 *) 14790 ;; 14791 esac 14792 ;; 14793 sunos4*) 14794 case $cc_basename in 14795 CC*) 14796 # Sun C++ 4.x 14797 lt_prog_compiler_pic_CXX='-pic' 14798 lt_prog_compiler_static_CXX='-Bstatic' 14799 ;; 14800 lcc*) 14801 # Lucid 14802 lt_prog_compiler_pic_CXX='-pic' 14803 ;; 14804 *) 14805 ;; 14806 esac 14807 ;; 14808 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14809 case $cc_basename in 14810 CC*) 14811 lt_prog_compiler_wl_CXX='-Wl,' 14812 lt_prog_compiler_pic_CXX='-KPIC' 14813 lt_prog_compiler_static_CXX='-Bstatic' 14814 ;; 14815 esac 14816 ;; 14817 tandem*) 14818 case $cc_basename in 14819 NCC*) 14820 # NonStop-UX NCC 3.20 14821 lt_prog_compiler_pic_CXX='-KPIC' 14822 ;; 14823 *) 14824 ;; 14825 esac 14826 ;; 14827 vxworks*) 14828 ;; 14829 *) 14830 lt_prog_compiler_can_build_shared_CXX=no 14831 ;; 14832 esac 14833 fi 14834 14835case $host_os in 14836 # For platforms that do not support PIC, -DPIC is meaningless: 14837 *djgpp*) 14838 lt_prog_compiler_pic_CXX= 14839 ;; 14840 *) 14841 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14842 ;; 14843esac 14844 14845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14846$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14847if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14848 $as_echo_n "(cached) " >&6 14849else 14850 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14851fi 14852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14853$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14854lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14855 14856# 14857# Check to make sure the PIC flag actually works. 14858# 14859if test -n "$lt_prog_compiler_pic_CXX"; then 14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14861$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14862if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14863 $as_echo_n "(cached) " >&6 14864else 14865 lt_cv_prog_compiler_pic_works_CXX=no 14866 ac_outfile=conftest.$ac_objext 14867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14868 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 14869 # Insert the option either (1) after the last *FLAGS variable, or 14870 # (2) before a word containing "conftest.", or (3) at the end. 14871 # Note that $ac_compile itself does not contain backslashes and begins 14872 # with a dollar sign (not a hyphen), so the echo should work correctly. 14873 # The option is referenced via a variable to avoid confusing sed. 14874 lt_compile=`echo "$ac_compile" | $SED \ 14875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14877 -e 's:$: $lt_compiler_flag:'` 14878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14879 (eval "$lt_compile" 2>conftest.err) 14880 ac_status=$? 14881 cat conftest.err >&5 14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14883 if (exit $ac_status) && test -s "$ac_outfile"; then 14884 # The compiler can only warn and ignore the option if not recognized 14885 # So say no if there are warnings other than the usual output. 14886 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14887 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14888 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14889 lt_cv_prog_compiler_pic_works_CXX=yes 14890 fi 14891 fi 14892 $RM conftest* 14893 14894fi 14895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14896$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14897 14898if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14899 case $lt_prog_compiler_pic_CXX in 14900 "" | " "*) ;; 14901 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14902 esac 14903else 14904 lt_prog_compiler_pic_CXX= 14905 lt_prog_compiler_can_build_shared_CXX=no 14906fi 14907 14908fi 14909 14910 14911 14912 14913 14914# 14915# Check to make sure the static flag actually works. 14916# 14917wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14919$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14920if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14921 $as_echo_n "(cached) " >&6 14922else 14923 lt_cv_prog_compiler_static_works_CXX=no 14924 save_LDFLAGS=$LDFLAGS 14925 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14926 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14927 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14928 # The linker can only warn and ignore the option if not recognized 14929 # So say no if there are warnings 14930 if test -s conftest.err; then 14931 # Append any errors to the config.log. 14932 cat conftest.err 1>&5 14933 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14935 if diff conftest.exp conftest.er2 >/dev/null; then 14936 lt_cv_prog_compiler_static_works_CXX=yes 14937 fi 14938 else 14939 lt_cv_prog_compiler_static_works_CXX=yes 14940 fi 14941 fi 14942 $RM -r conftest* 14943 LDFLAGS=$save_LDFLAGS 14944 14945fi 14946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14947$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14948 14949if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 14950 : 14951else 14952 lt_prog_compiler_static_CXX= 14953fi 14954 14955 14956 14957 14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14959$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14960if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14961 $as_echo_n "(cached) " >&6 14962else 14963 lt_cv_prog_compiler_c_o_CXX=no 14964 $RM -r conftest 2>/dev/null 14965 mkdir conftest 14966 cd conftest 14967 mkdir out 14968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14969 14970 lt_compiler_flag="-o out/conftest2.$ac_objext" 14971 # Insert the option either (1) after the last *FLAGS variable, or 14972 # (2) before a word containing "conftest.", or (3) at the end. 14973 # Note that $ac_compile itself does not contain backslashes and begins 14974 # with a dollar sign (not a hyphen), so the echo should work correctly. 14975 lt_compile=`echo "$ac_compile" | $SED \ 14976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14978 -e 's:$: $lt_compiler_flag:'` 14979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14980 (eval "$lt_compile" 2>out/conftest.err) 14981 ac_status=$? 14982 cat out/conftest.err >&5 14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14984 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14985 then 14986 # The compiler can only warn and ignore the option if not recognized 14987 # So say no if there are warnings 14988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14991 lt_cv_prog_compiler_c_o_CXX=yes 14992 fi 14993 fi 14994 chmod u+w . 2>&5 14995 $RM conftest* 14996 # SGI C++ compiler will create directory out/ii_files/ for 14997 # template instantiation 14998 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14999 $RM out/* && rmdir out 15000 cd .. 15001 $RM -r conftest 15002 $RM conftest* 15003 15004fi 15005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15006$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15007 15008 15009 15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15011$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15012if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15013 $as_echo_n "(cached) " >&6 15014else 15015 lt_cv_prog_compiler_c_o_CXX=no 15016 $RM -r conftest 2>/dev/null 15017 mkdir conftest 15018 cd conftest 15019 mkdir out 15020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15021 15022 lt_compiler_flag="-o out/conftest2.$ac_objext" 15023 # Insert the option either (1) after the last *FLAGS variable, or 15024 # (2) before a word containing "conftest.", or (3) at the end. 15025 # Note that $ac_compile itself does not contain backslashes and begins 15026 # with a dollar sign (not a hyphen), so the echo should work correctly. 15027 lt_compile=`echo "$ac_compile" | $SED \ 15028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15030 -e 's:$: $lt_compiler_flag:'` 15031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15032 (eval "$lt_compile" 2>out/conftest.err) 15033 ac_status=$? 15034 cat out/conftest.err >&5 15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15036 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15037 then 15038 # The compiler can only warn and ignore the option if not recognized 15039 # So say no if there are warnings 15040 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15041 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15042 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15043 lt_cv_prog_compiler_c_o_CXX=yes 15044 fi 15045 fi 15046 chmod u+w . 2>&5 15047 $RM conftest* 15048 # SGI C++ compiler will create directory out/ii_files/ for 15049 # template instantiation 15050 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15051 $RM out/* && rmdir out 15052 cd .. 15053 $RM -r conftest 15054 $RM conftest* 15055 15056fi 15057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15058$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15059 15060 15061 15062 15063hard_links=nottested 15064if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15065 # do not overwrite the value of need_locks provided by the user 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15067$as_echo_n "checking if we can lock with hard links... " >&6; } 15068 hard_links=yes 15069 $RM conftest* 15070 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15071 touch conftest.a 15072 ln conftest.a conftest.b 2>&5 || hard_links=no 15073 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15075$as_echo "$hard_links" >&6; } 15076 if test no = "$hard_links"; then 15077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15078$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15079 need_locks=warn 15080 fi 15081else 15082 need_locks=no 15083fi 15084 15085 15086 15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15088$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15089 15090 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15091 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15092 case $host_os in 15093 aix[4-9]*) 15094 # If we're using GNU nm, then we don't want the "-C" option. 15095 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15096 # Without the "-l" option, or with the "-B" option, AIX nm treats 15097 # weak defined symbols like other global defined symbols, whereas 15098 # GNU nm marks them as "W". 15099 # While the 'weak' keyword is ignored in the Export File, we need 15100 # it in the Import File for the 'aix-soname' feature, so we have 15101 # to replace the "-B" option with "-P" for AIX nm. 15102 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15103 export_symbols_cmds_CXX='$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' 15104 else 15105 export_symbols_cmds_CXX='`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' 15106 fi 15107 ;; 15108 pw32*) 15109 export_symbols_cmds_CXX=$ltdll_cmds 15110 ;; 15111 cygwin* | mingw* | cegcc*) 15112 case $cc_basename in 15113 cl*) 15114 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15115 ;; 15116 *) 15117 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15118 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15119 ;; 15120 esac 15121 ;; 15122 *) 15123 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15124 ;; 15125 esac 15126 15127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15128$as_echo "$ld_shlibs_CXX" >&6; } 15129test no = "$ld_shlibs_CXX" && can_build_shared=no 15130 15131with_gnu_ld_CXX=$with_gnu_ld 15132 15133 15134 15135 15136 15137 15138# 15139# Do we need to explicitly link libc? 15140# 15141case "x$archive_cmds_need_lc_CXX" in 15142x|xyes) 15143 # Assume -lc should be added 15144 archive_cmds_need_lc_CXX=yes 15145 15146 if test yes,yes = "$GCC,$enable_shared"; then 15147 case $archive_cmds_CXX in 15148 *'~'*) 15149 # FIXME: we may have to deal with multi-command sequences. 15150 ;; 15151 '$CC '*) 15152 # Test whether the compiler implicitly links with -lc since on some 15153 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15154 # to ld, don't add -lc before -lgcc. 15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15156$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15157if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15158 $as_echo_n "(cached) " >&6 15159else 15160 $RM conftest* 15161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15162 15163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15164 (eval $ac_compile) 2>&5 15165 ac_status=$? 15166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15167 test $ac_status = 0; } 2>conftest.err; then 15168 soname=conftest 15169 lib=conftest 15170 libobjs=conftest.$ac_objext 15171 deplibs= 15172 wl=$lt_prog_compiler_wl_CXX 15173 pic_flag=$lt_prog_compiler_pic_CXX 15174 compiler_flags=-v 15175 linker_flags=-v 15176 verstring= 15177 output_objdir=. 15178 libname=conftest 15179 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15180 allow_undefined_flag_CXX= 15181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15182 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15183 ac_status=$? 15184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15185 test $ac_status = 0; } 15186 then 15187 lt_cv_archive_cmds_need_lc_CXX=no 15188 else 15189 lt_cv_archive_cmds_need_lc_CXX=yes 15190 fi 15191 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15192 else 15193 cat conftest.err 1>&5 15194 fi 15195 $RM conftest* 15196 15197fi 15198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15199$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15200 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15201 ;; 15202 esac 15203 fi 15204 ;; 15205esac 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15269$as_echo_n "checking dynamic linker characteristics... " >&6; } 15270 15271library_names_spec= 15272libname_spec='lib$name' 15273soname_spec= 15274shrext_cmds=.so 15275postinstall_cmds= 15276postuninstall_cmds= 15277finish_cmds= 15278finish_eval= 15279shlibpath_var= 15280shlibpath_overrides_runpath=unknown 15281version_type=none 15282dynamic_linker="$host_os ld.so" 15283sys_lib_dlsearch_path_spec="/lib /usr/lib" 15284need_lib_prefix=unknown 15285hardcode_into_libs=no 15286 15287# when you set need_version to no, make sure it does not cause -set_version 15288# flags to be left without arguments 15289need_version=unknown 15290 15291 15292 15293case $host_os in 15294aix3*) 15295 version_type=linux # correct to gnu/linux during the next big refactor 15296 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15297 shlibpath_var=LIBPATH 15298 15299 # AIX 3 has no versioning support, so we append a major version to the name. 15300 soname_spec='$libname$release$shared_ext$major' 15301 ;; 15302 15303aix[4-9]*) 15304 version_type=linux # correct to gnu/linux during the next big refactor 15305 need_lib_prefix=no 15306 need_version=no 15307 hardcode_into_libs=yes 15308 if test ia64 = "$host_cpu"; then 15309 # AIX 5 supports IA64 15310 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15311 shlibpath_var=LD_LIBRARY_PATH 15312 else 15313 # With GCC up to 2.95.x, collect2 would create an import file 15314 # for dependence libraries. The import file would start with 15315 # the line '#! .'. This would cause the generated library to 15316 # depend on '.', always an invalid library. This was fixed in 15317 # development snapshots of GCC prior to 3.0. 15318 case $host_os in 15319 aix4 | aix4.[01] | aix4.[01].*) 15320 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15321 echo ' yes ' 15322 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15323 : 15324 else 15325 can_build_shared=no 15326 fi 15327 ;; 15328 esac 15329 # Using Import Files as archive members, it is possible to support 15330 # filename-based versioning of shared library archives on AIX. While 15331 # this would work for both with and without runtime linking, it will 15332 # prevent static linking of such archives. So we do filename-based 15333 # shared library versioning with .so extension only, which is used 15334 # when both runtime linking and shared linking is enabled. 15335 # Unfortunately, runtime linking may impact performance, so we do 15336 # not want this to be the default eventually. Also, we use the 15337 # versioned .so libs for executables only if there is the -brtl 15338 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15339 # To allow for filename-based versioning support, we need to create 15340 # libNAME.so.V as an archive file, containing: 15341 # *) an Import File, referring to the versioned filename of the 15342 # archive as well as the shared archive member, telling the 15343 # bitwidth (32 or 64) of that shared object, and providing the 15344 # list of exported symbols of that shared object, eventually 15345 # decorated with the 'weak' keyword 15346 # *) the shared object with the F_LOADONLY flag set, to really avoid 15347 # it being seen by the linker. 15348 # At run time we better use the real file rather than another symlink, 15349 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15350 15351 case $with_aix_soname,$aix_use_runtimelinking in 15352 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15353 # soname into executable. Probably we can add versioning support to 15354 # collect2, so additional links can be useful in future. 15355 aix,yes) # traditional libtool 15356 dynamic_linker='AIX unversionable lib.so' 15357 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15358 # instead of lib<name>.a to let people know that these are not 15359 # typical AIX shared libraries. 15360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15361 ;; 15362 aix,no) # traditional AIX only 15363 dynamic_linker='AIX lib.a(lib.so.V)' 15364 # We preserve .a as extension for shared libraries through AIX4.2 15365 # and later when we are not doing run time linking. 15366 library_names_spec='$libname$release.a $libname.a' 15367 soname_spec='$libname$release$shared_ext$major' 15368 ;; 15369 svr4,*) # full svr4 only 15370 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15371 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15372 # We do not specify a path in Import Files, so LIBPATH fires. 15373 shlibpath_overrides_runpath=yes 15374 ;; 15375 *,yes) # both, prefer svr4 15376 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15377 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15378 # unpreferred sharedlib libNAME.a needs extra handling 15379 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"' 15380 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"' 15381 # We do not specify a path in Import Files, so LIBPATH fires. 15382 shlibpath_overrides_runpath=yes 15383 ;; 15384 *,no) # both, prefer aix 15385 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15386 library_names_spec='$libname$release.a $libname.a' 15387 soname_spec='$libname$release$shared_ext$major' 15388 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15389 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)' 15390 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"' 15391 ;; 15392 esac 15393 shlibpath_var=LIBPATH 15394 fi 15395 ;; 15396 15397amigaos*) 15398 case $host_cpu in 15399 powerpc) 15400 # Since July 2007 AmigaOS4 officially supports .so libraries. 15401 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15403 ;; 15404 m68k) 15405 library_names_spec='$libname.ixlibrary $libname.a' 15406 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15407 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' 15408 ;; 15409 esac 15410 ;; 15411 15412beos*) 15413 library_names_spec='$libname$shared_ext' 15414 dynamic_linker="$host_os ld.so" 15415 shlibpath_var=LIBRARY_PATH 15416 ;; 15417 15418bsdi[45]*) 15419 version_type=linux # correct to gnu/linux during the next big refactor 15420 need_version=no 15421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15422 soname_spec='$libname$release$shared_ext$major' 15423 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15424 shlibpath_var=LD_LIBRARY_PATH 15425 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15426 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15427 # the default ld.so.conf also contains /usr/contrib/lib and 15428 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15429 # libtool to hard-code these into programs 15430 ;; 15431 15432cygwin* | mingw* | pw32* | cegcc*) 15433 version_type=windows 15434 shrext_cmds=.dll 15435 need_version=no 15436 need_lib_prefix=no 15437 15438 case $GCC,$cc_basename in 15439 yes,*) 15440 # gcc 15441 library_names_spec='$libname.dll.a' 15442 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15443 postinstall_cmds='base_file=`basename \$file`~ 15444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15445 dldir=$destdir/`dirname \$dlpath`~ 15446 test -d \$dldir || mkdir -p \$dldir~ 15447 $install_prog $dir/$dlname \$dldir/$dlname~ 15448 chmod a+x \$dldir/$dlname~ 15449 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15450 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15451 fi' 15452 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15453 dlpath=$dir/\$dldll~ 15454 $RM \$dlpath' 15455 shlibpath_overrides_runpath=yes 15456 15457 case $host_os in 15458 cygwin*) 15459 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15460 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15461 15462 ;; 15463 mingw* | cegcc*) 15464 # MinGW DLLs use traditional 'lib' prefix 15465 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15466 ;; 15467 pw32*) 15468 # pw32 DLLs use 'pw' prefix rather than 'lib' 15469 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15470 ;; 15471 esac 15472 dynamic_linker='Win32 ld.exe' 15473 ;; 15474 15475 *,cl*) 15476 # Native MSVC 15477 libname_spec='$name' 15478 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15479 library_names_spec='$libname.dll.lib' 15480 15481 case $build_os in 15482 mingw*) 15483 sys_lib_search_path_spec= 15484 lt_save_ifs=$IFS 15485 IFS=';' 15486 for lt_path in $LIB 15487 do 15488 IFS=$lt_save_ifs 15489 # Let DOS variable expansion print the short 8.3 style file name. 15490 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15491 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15492 done 15493 IFS=$lt_save_ifs 15494 # Convert to MSYS style. 15495 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15496 ;; 15497 cygwin*) 15498 # Convert to unix form, then to dos form, then back to unix form 15499 # but this time dos style (no spaces!) so that the unix form looks 15500 # like /cygdrive/c/PROGRA~1:/cygdr... 15501 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15502 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15503 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15504 ;; 15505 *) 15506 sys_lib_search_path_spec=$LIB 15507 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15508 # It is most probably a Windows format PATH. 15509 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15510 else 15511 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15512 fi 15513 # FIXME: find the short name or the path components, as spaces are 15514 # common. (e.g. "Program Files" -> "PROGRA~1") 15515 ;; 15516 esac 15517 15518 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15519 postinstall_cmds='base_file=`basename \$file`~ 15520 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15521 dldir=$destdir/`dirname \$dlpath`~ 15522 test -d \$dldir || mkdir -p \$dldir~ 15523 $install_prog $dir/$dlname \$dldir/$dlname' 15524 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15525 dlpath=$dir/\$dldll~ 15526 $RM \$dlpath' 15527 shlibpath_overrides_runpath=yes 15528 dynamic_linker='Win32 link.exe' 15529 ;; 15530 15531 *) 15532 # Assume MSVC wrapper 15533 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15534 dynamic_linker='Win32 ld.exe' 15535 ;; 15536 esac 15537 # FIXME: first we should search . and the directory the executable is in 15538 shlibpath_var=PATH 15539 ;; 15540 15541darwin* | rhapsody*) 15542 dynamic_linker="$host_os dyld" 15543 version_type=darwin 15544 need_lib_prefix=no 15545 need_version=no 15546 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15547 soname_spec='$libname$release$major$shared_ext' 15548 shlibpath_overrides_runpath=yes 15549 shlibpath_var=DYLD_LIBRARY_PATH 15550 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15551 15552 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15553 ;; 15554 15555dgux*) 15556 version_type=linux # correct to gnu/linux during the next big refactor 15557 need_lib_prefix=no 15558 need_version=no 15559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15560 soname_spec='$libname$release$shared_ext$major' 15561 shlibpath_var=LD_LIBRARY_PATH 15562 ;; 15563 15564freebsd* | dragonfly*) 15565 # DragonFly does not have aout. When/if they implement a new 15566 # versioning mechanism, adjust this. 15567 if test -x /usr/bin/objformat; then 15568 objformat=`/usr/bin/objformat` 15569 else 15570 case $host_os in 15571 freebsd[23].*) objformat=aout ;; 15572 *) objformat=elf ;; 15573 esac 15574 fi 15575 version_type=freebsd-$objformat 15576 case $version_type in 15577 freebsd-elf*) 15578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15579 soname_spec='$libname$release$shared_ext$major' 15580 need_version=no 15581 need_lib_prefix=no 15582 ;; 15583 freebsd-*) 15584 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15585 need_version=yes 15586 ;; 15587 esac 15588 shlibpath_var=LD_LIBRARY_PATH 15589 case $host_os in 15590 freebsd2.*) 15591 shlibpath_overrides_runpath=yes 15592 ;; 15593 freebsd3.[01]* | freebsdelf3.[01]*) 15594 shlibpath_overrides_runpath=yes 15595 hardcode_into_libs=yes 15596 ;; 15597 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15598 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15599 shlibpath_overrides_runpath=no 15600 hardcode_into_libs=yes 15601 ;; 15602 *) # from 4.6 on, and DragonFly 15603 shlibpath_overrides_runpath=yes 15604 hardcode_into_libs=yes 15605 ;; 15606 esac 15607 ;; 15608 15609haiku*) 15610 version_type=linux # correct to gnu/linux during the next big refactor 15611 need_lib_prefix=no 15612 need_version=no 15613 dynamic_linker="$host_os runtime_loader" 15614 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15615 soname_spec='$libname$release$shared_ext$major' 15616 shlibpath_var=LIBRARY_PATH 15617 shlibpath_overrides_runpath=no 15618 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15619 hardcode_into_libs=yes 15620 ;; 15621 15622hpux9* | hpux10* | hpux11*) 15623 # Give a soname corresponding to the major version so that dld.sl refuses to 15624 # link against other versions. 15625 version_type=sunos 15626 need_lib_prefix=no 15627 need_version=no 15628 case $host_cpu in 15629 ia64*) 15630 shrext_cmds='.so' 15631 hardcode_into_libs=yes 15632 dynamic_linker="$host_os dld.so" 15633 shlibpath_var=LD_LIBRARY_PATH 15634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15636 soname_spec='$libname$release$shared_ext$major' 15637 if test 32 = "$HPUX_IA64_MODE"; then 15638 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15639 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15640 else 15641 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15642 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15643 fi 15644 ;; 15645 hppa*64*) 15646 shrext_cmds='.sl' 15647 hardcode_into_libs=yes 15648 dynamic_linker="$host_os dld.sl" 15649 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15652 soname_spec='$libname$release$shared_ext$major' 15653 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15655 ;; 15656 *) 15657 shrext_cmds='.sl' 15658 dynamic_linker="$host_os dld.sl" 15659 shlibpath_var=SHLIB_PATH 15660 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15662 soname_spec='$libname$release$shared_ext$major' 15663 ;; 15664 esac 15665 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15666 postinstall_cmds='chmod 555 $lib' 15667 # or fails outright, so override atomically: 15668 install_override_mode=555 15669 ;; 15670 15671interix[3-9]*) 15672 version_type=linux # correct to gnu/linux during the next big refactor 15673 need_lib_prefix=no 15674 need_version=no 15675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15676 soname_spec='$libname$release$shared_ext$major' 15677 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15678 shlibpath_var=LD_LIBRARY_PATH 15679 shlibpath_overrides_runpath=no 15680 hardcode_into_libs=yes 15681 ;; 15682 15683irix5* | irix6* | nonstopux*) 15684 case $host_os in 15685 nonstopux*) version_type=nonstopux ;; 15686 *) 15687 if test yes = "$lt_cv_prog_gnu_ld"; then 15688 version_type=linux # correct to gnu/linux during the next big refactor 15689 else 15690 version_type=irix 15691 fi ;; 15692 esac 15693 need_lib_prefix=no 15694 need_version=no 15695 soname_spec='$libname$release$shared_ext$major' 15696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15697 case $host_os in 15698 irix5* | nonstopux*) 15699 libsuff= shlibsuff= 15700 ;; 15701 *) 15702 case $LD in # libtool.m4 will add one of these switches to LD 15703 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15704 libsuff= shlibsuff= libmagic=32-bit;; 15705 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15706 libsuff=32 shlibsuff=N32 libmagic=N32;; 15707 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15708 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15709 *) libsuff= shlibsuff= libmagic=never-match;; 15710 esac 15711 ;; 15712 esac 15713 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15714 shlibpath_overrides_runpath=no 15715 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15716 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15717 hardcode_into_libs=yes 15718 ;; 15719 15720# No shared lib support for Linux oldld, aout, or coff. 15721linux*oldld* | linux*aout* | linux*coff*) 15722 dynamic_linker=no 15723 ;; 15724 15725linux*android*) 15726 version_type=none # Android doesn't support versioned libraries. 15727 need_lib_prefix=no 15728 need_version=no 15729 library_names_spec='$libname$release$shared_ext' 15730 soname_spec='$libname$release$shared_ext' 15731 finish_cmds= 15732 shlibpath_var=LD_LIBRARY_PATH 15733 shlibpath_overrides_runpath=yes 15734 15735 # This implies no fast_install, which is unacceptable. 15736 # Some rework will be needed to allow for fast_install 15737 # before this can be enabled. 15738 hardcode_into_libs=yes 15739 15740 dynamic_linker='Android linker' 15741 # Don't embed -rpath directories since the linker doesn't support them. 15742 hardcode_libdir_flag_spec_CXX='-L$libdir' 15743 ;; 15744 15745# This must be glibc/ELF. 15746linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15747 version_type=linux # correct to gnu/linux during the next big refactor 15748 need_lib_prefix=no 15749 need_version=no 15750 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15751 soname_spec='$libname$release$shared_ext$major' 15752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15753 shlibpath_var=LD_LIBRARY_PATH 15754 shlibpath_overrides_runpath=no 15755 15756 # Some binutils ld are patched to set DT_RUNPATH 15757 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15758 $as_echo_n "(cached) " >&6 15759else 15760 lt_cv_shlibpath_overrides_runpath=no 15761 save_LDFLAGS=$LDFLAGS 15762 save_libdir=$libdir 15763 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15764 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15766/* end confdefs.h. */ 15767 15768int 15769main () 15770{ 15771 15772 ; 15773 return 0; 15774} 15775_ACEOF 15776if ac_fn_cxx_try_link "$LINENO"; then : 15777 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15778 lt_cv_shlibpath_overrides_runpath=yes 15779fi 15780fi 15781rm -f core conftest.err conftest.$ac_objext \ 15782 conftest$ac_exeext conftest.$ac_ext 15783 LDFLAGS=$save_LDFLAGS 15784 libdir=$save_libdir 15785 15786fi 15787 15788 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15789 15790 # This implies no fast_install, which is unacceptable. 15791 # Some rework will be needed to allow for fast_install 15792 # before this can be enabled. 15793 hardcode_into_libs=yes 15794 15795 # Add ABI-specific directories to the system library path. 15796 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 15797 15798 # Ideally, we could use ldconfig to report *all* directores which are 15799 # searched for libraries, however this is still not possible. Aside from not 15800 # being certain /sbin/ldconfig is available, command 15801 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15802 # even though it is searched at run-time. Try to do the best guess by 15803 # appending ld.so.conf contents (and includes) to the search path. 15804 if test -f /etc/ld.so.conf; then 15805 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' ' '` 15806 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 15807 fi 15808 15809 # We used to test for /lib/ld.so.1 and disable shared libraries on 15810 # powerpc, because MkLinux only supported shared libraries with the 15811 # GNU dynamic linker. Since this was broken with cross compilers, 15812 # most powerpc-linux boxes support dynamic linking these days and 15813 # people can always --disable-shared, the test was removed, and we 15814 # assume the GNU/Linux dynamic linker is in use. 15815 dynamic_linker='GNU/Linux ld.so' 15816 ;; 15817 15818netbsd*) 15819 version_type=sunos 15820 need_lib_prefix=no 15821 need_version=no 15822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15823 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15825 dynamic_linker='NetBSD (a.out) ld.so' 15826 else 15827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15828 soname_spec='$libname$release$shared_ext$major' 15829 dynamic_linker='NetBSD ld.elf_so' 15830 fi 15831 shlibpath_var=LD_LIBRARY_PATH 15832 shlibpath_overrides_runpath=yes 15833 hardcode_into_libs=yes 15834 ;; 15835 15836newsos6) 15837 version_type=linux # correct to gnu/linux during the next big refactor 15838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15839 shlibpath_var=LD_LIBRARY_PATH 15840 shlibpath_overrides_runpath=yes 15841 ;; 15842 15843*nto* | *qnx*) 15844 version_type=qnx 15845 need_lib_prefix=no 15846 need_version=no 15847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15848 soname_spec='$libname$release$shared_ext$major' 15849 shlibpath_var=LD_LIBRARY_PATH 15850 shlibpath_overrides_runpath=no 15851 hardcode_into_libs=yes 15852 dynamic_linker='ldqnx.so' 15853 ;; 15854 15855openbsd* | bitrig*) 15856 version_type=sunos 15857 sys_lib_dlsearch_path_spec=/usr/lib 15858 need_lib_prefix=no 15859 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15860 need_version=no 15861 else 15862 need_version=yes 15863 fi 15864 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15866 shlibpath_var=LD_LIBRARY_PATH 15867 shlibpath_overrides_runpath=yes 15868 ;; 15869 15870os2*) 15871 libname_spec='$name' 15872 version_type=windows 15873 shrext_cmds=.dll 15874 need_version=no 15875 need_lib_prefix=no 15876 # OS/2 can only load a DLL with a base name of 8 characters or less. 15877 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15878 v=$($ECHO $release$versuffix | tr -d .-); 15879 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15880 $ECHO $n$v`$shared_ext' 15881 library_names_spec='${libname}_dll.$libext' 15882 dynamic_linker='OS/2 ld.exe' 15883 shlibpath_var=BEGINLIBPATH 15884 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15885 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15886 postinstall_cmds='base_file=`basename \$file`~ 15887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15888 dldir=$destdir/`dirname \$dlpath`~ 15889 test -d \$dldir || mkdir -p \$dldir~ 15890 $install_prog $dir/$dlname \$dldir/$dlname~ 15891 chmod a+x \$dldir/$dlname~ 15892 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15893 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15894 fi' 15895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15896 dlpath=$dir/\$dldll~ 15897 $RM \$dlpath' 15898 ;; 15899 15900osf3* | osf4* | osf5*) 15901 version_type=osf 15902 need_lib_prefix=no 15903 need_version=no 15904 soname_spec='$libname$release$shared_ext$major' 15905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15906 shlibpath_var=LD_LIBRARY_PATH 15907 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15908 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15909 ;; 15910 15911rdos*) 15912 dynamic_linker=no 15913 ;; 15914 15915solaris*) 15916 version_type=linux # correct to gnu/linux during the next big refactor 15917 need_lib_prefix=no 15918 need_version=no 15919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15920 soname_spec='$libname$release$shared_ext$major' 15921 shlibpath_var=LD_LIBRARY_PATH 15922 shlibpath_overrides_runpath=yes 15923 hardcode_into_libs=yes 15924 # ldd complains unless libraries are executable 15925 postinstall_cmds='chmod +x $lib' 15926 ;; 15927 15928sunos4*) 15929 version_type=sunos 15930 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15931 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15932 shlibpath_var=LD_LIBRARY_PATH 15933 shlibpath_overrides_runpath=yes 15934 if test yes = "$with_gnu_ld"; then 15935 need_lib_prefix=no 15936 fi 15937 need_version=yes 15938 ;; 15939 15940sysv4 | sysv4.3*) 15941 version_type=linux # correct to gnu/linux during the next big refactor 15942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15943 soname_spec='$libname$release$shared_ext$major' 15944 shlibpath_var=LD_LIBRARY_PATH 15945 case $host_vendor in 15946 sni) 15947 shlibpath_overrides_runpath=no 15948 need_lib_prefix=no 15949 runpath_var=LD_RUN_PATH 15950 ;; 15951 siemens) 15952 need_lib_prefix=no 15953 ;; 15954 motorola) 15955 need_lib_prefix=no 15956 need_version=no 15957 shlibpath_overrides_runpath=no 15958 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15959 ;; 15960 esac 15961 ;; 15962 15963sysv4*MP*) 15964 if test -d /usr/nec; then 15965 version_type=linux # correct to gnu/linux during the next big refactor 15966 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15967 soname_spec='$libname$shared_ext.$major' 15968 shlibpath_var=LD_LIBRARY_PATH 15969 fi 15970 ;; 15971 15972sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15973 version_type=sco 15974 need_lib_prefix=no 15975 need_version=no 15976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15977 soname_spec='$libname$release$shared_ext$major' 15978 shlibpath_var=LD_LIBRARY_PATH 15979 shlibpath_overrides_runpath=yes 15980 hardcode_into_libs=yes 15981 if test yes = "$with_gnu_ld"; then 15982 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15983 else 15984 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15985 case $host_os in 15986 sco3.2v5*) 15987 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15988 ;; 15989 esac 15990 fi 15991 sys_lib_dlsearch_path_spec='/usr/lib' 15992 ;; 15993 15994tpf*) 15995 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15996 version_type=linux # correct to gnu/linux during the next big refactor 15997 need_lib_prefix=no 15998 need_version=no 15999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16000 shlibpath_var=LD_LIBRARY_PATH 16001 shlibpath_overrides_runpath=no 16002 hardcode_into_libs=yes 16003 ;; 16004 16005uts4*) 16006 version_type=linux # correct to gnu/linux during the next big refactor 16007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16008 soname_spec='$libname$release$shared_ext$major' 16009 shlibpath_var=LD_LIBRARY_PATH 16010 ;; 16011 16012*) 16013 dynamic_linker=no 16014 ;; 16015esac 16016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16017$as_echo "$dynamic_linker" >&6; } 16018test no = "$dynamic_linker" && can_build_shared=no 16019 16020variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16021if test yes = "$GCC"; then 16022 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16023fi 16024 16025if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16026 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16027fi 16028 16029if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16030 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16031fi 16032 16033# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16034configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16035 16036# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16037func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16038 16039# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16040configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16082$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16083hardcode_action_CXX= 16084if test -n "$hardcode_libdir_flag_spec_CXX" || 16085 test -n "$runpath_var_CXX" || 16086 test yes = "$hardcode_automatic_CXX"; then 16087 16088 # We can hardcode non-existent directories. 16089 if test no != "$hardcode_direct_CXX" && 16090 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16091 # have to relink, otherwise we might link with an installed library 16092 # when we should be linking with a yet-to-be-installed one 16093 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16094 test no != "$hardcode_minus_L_CXX"; then 16095 # Linking always hardcodes the temporary library directory. 16096 hardcode_action_CXX=relink 16097 else 16098 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16099 hardcode_action_CXX=immediate 16100 fi 16101else 16102 # We cannot hardcode anything, or else we can only hardcode existing 16103 # directories. 16104 hardcode_action_CXX=unsupported 16105fi 16106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16107$as_echo "$hardcode_action_CXX" >&6; } 16108 16109if test relink = "$hardcode_action_CXX" || 16110 test yes = "$inherit_rpath_CXX"; then 16111 # Fast installation is not supported 16112 enable_fast_install=no 16113elif test yes = "$shlibpath_overrides_runpath" || 16114 test no = "$enable_shared"; then 16115 # Fast installation is not necessary 16116 enable_fast_install=needless 16117fi 16118 16119 16120 16121 16122 16123 16124 16125 fi # test -n "$compiler" 16126 16127 CC=$lt_save_CC 16128 CFLAGS=$lt_save_CFLAGS 16129 LDCXX=$LD 16130 LD=$lt_save_LD 16131 GCC=$lt_save_GCC 16132 with_gnu_ld=$lt_save_with_gnu_ld 16133 lt_cv_path_LDCXX=$lt_cv_path_LD 16134 lt_cv_path_LD=$lt_save_path_LD 16135 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16136 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16137fi # test yes != "$_lt_caught_CXX_error" 16138 16139ac_ext=c 16140ac_cpp='$CPP $CPPFLAGS' 16141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16143ac_compiler_gnu=$ac_cv_c_compiler_gnu 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 ac_config_commands="$ac_config_commands libtool" 16160 16161 16162 16163 16164# Only expand once: 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 16176 if test -n "$ac_tool_prefix"; then 16177 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 16178set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 16179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16180$as_echo_n "checking for $ac_word... " >&6; } 16181if ${ac_cv_path_PKG_CONFIG+:} false; then : 16182 $as_echo_n "(cached) " >&6 16183else 16184 case $PKG_CONFIG in 16185 [\\/]* | ?:[\\/]*) 16186 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 16187 ;; 16188 *) 16189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16190for as_dir in $PATH 16191do 16192 IFS=$as_save_IFS 16193 test -z "$as_dir" && as_dir=. 16194 for ac_exec_ext in '' $ac_executable_extensions; do 16195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16196 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16198 break 2 16199 fi 16200done 16201 done 16202IFS=$as_save_IFS 16203 16204 ;; 16205esac 16206fi 16207PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16208if test -n "$PKG_CONFIG"; then 16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16210$as_echo "$PKG_CONFIG" >&6; } 16211else 16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16213$as_echo "no" >&6; } 16214fi 16215 16216 16217fi 16218if test -z "$ac_cv_path_PKG_CONFIG"; then 16219 ac_pt_PKG_CONFIG=$PKG_CONFIG 16220 # Extract the first word of "pkg-config", so it can be a program name with args. 16221set dummy pkg-config; ac_word=$2 16222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16223$as_echo_n "checking for $ac_word... " >&6; } 16224if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 16225 $as_echo_n "(cached) " >&6 16226else 16227 case $ac_pt_PKG_CONFIG in 16228 [\\/]* | ?:[\\/]*) 16229 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 16230 ;; 16231 *) 16232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16233for as_dir in $PATH 16234do 16235 IFS=$as_save_IFS 16236 test -z "$as_dir" && as_dir=. 16237 for ac_exec_ext in '' $ac_executable_extensions; do 16238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16239 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16241 break 2 16242 fi 16243done 16244 done 16245IFS=$as_save_IFS 16246 16247 ;; 16248esac 16249fi 16250ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 16251if test -n "$ac_pt_PKG_CONFIG"; then 16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 16253$as_echo "$ac_pt_PKG_CONFIG" >&6; } 16254else 16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16256$as_echo "no" >&6; } 16257fi 16258 16259 if test "x$ac_pt_PKG_CONFIG" = x; then 16260 PKG_CONFIG="" 16261 else 16262 case $cross_compiling:$ac_tool_warned in 16263yes:) 16264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16266ac_tool_warned=yes ;; 16267esac 16268 PKG_CONFIG=$ac_pt_PKG_CONFIG 16269 fi 16270else 16271 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16272fi 16273 16274fi 16275if test -n "$PKG_CONFIG"; then 16276 _pkg_min_version=0.9.0 16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 16278$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 16279 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16281$as_echo "yes" >&6; } 16282 else 16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16284$as_echo "no" >&6; } 16285 PKG_CONFIG="" 16286 fi 16287fi 16288 16289# Check whether --enable-fatal-warnings was given. 16290if test "${enable_fatal_warnings+set}" = set; then : 16291 enableval=$enable_fatal_warnings; enable_fatal_warnings=$enableval 16292else 16293 enable_fatal_warnings=no 16294fi 16295 16296if test x"$enable_fatal_warnings" != "xno"; then : 16297 16298 WERROR_CFLAGS="-Werror" 16299 16300fi 16301 16302if test "x$GCC" = "xyes"; then 16303 GCC_CFLAGS="$WERROR_CFLAGS -Wall -Wextra -Wno-unused-parameter -g -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden" 16304fi 16305 16306 16307for ac_header in sys/prctl.h 16308do : 16309 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" 16310if test "x$ac_cv_header_sys_prctl_h" = xyes; then : 16311 cat >>confdefs.h <<_ACEOF 16312#define HAVE_SYS_PRCTL_H 1 16313_ACEOF 16314 16315fi 16316 16317done 16318 16319for ac_func in accept4 mkostemp posix_fallocate prctl 16320do : 16321 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16322ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16323if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16324 cat >>confdefs.h <<_ACEOF 16325#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16326_ACEOF 16327 16328fi 16329done 16330 16331 16332# Check whether --enable-libraries was given. 16333if test "${enable_libraries+set}" = set; then : 16334 enableval=$enable_libraries; 16335else 16336 enable_libraries=yes 16337fi 16338 16339 16340 16341# Check whether --with-host-scanner was given. 16342if test "${with_host_scanner+set}" = set; then : 16343 withval=$with_host_scanner; 16344else 16345 with_host_scanner=no 16346fi 16347 16348 16349# Check whether --enable-documentation was given. 16350if test "${enable_documentation+set}" = set; then : 16351 enableval=$enable_documentation; 16352else 16353 enable_documentation=yes 16354fi 16355 16356 16357# Check whether --enable-dtd-validation was given. 16358if test "${enable_dtd_validation+set}" = set; then : 16359 enableval=$enable_dtd_validation; 16360else 16361 enable_dtd_validation=yes 16362fi 16363 16364 16365 if test "x$with_host_scanner" = xyes; then 16366 USE_HOST_SCANNER_TRUE= 16367 USE_HOST_SCANNER_FALSE='#' 16368else 16369 USE_HOST_SCANNER_TRUE='#' 16370 USE_HOST_SCANNER_FALSE= 16371fi 16372 16373 16374 if test "x$enable_libraries" = xyes; then 16375 ENABLE_LIBRARIES_TRUE= 16376 ENABLE_LIBRARIES_FALSE='#' 16377else 16378 ENABLE_LIBRARIES_TRUE='#' 16379 ENABLE_LIBRARIES_FALSE= 16380fi 16381 16382 16383 16384# Check whether --with-icondir was given. 16385if test "${with_icondir+set}" = set; then : 16386 withval=$with_icondir; ICONDIR=$withval 16387else 16388 ICONDIR=${datadir}/icons 16389fi 16390 16391 16392 16393if test "x$enable_libraries" = "xyes"; then 16394 16395pkg_failed=no 16396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5 16397$as_echo_n "checking for FFI... " >&6; } 16398 16399if test -n "$FFI_CFLAGS"; then 16400 pkg_cv_FFI_CFLAGS="$FFI_CFLAGS" 16401 elif test -n "$PKG_CONFIG"; then 16402 if test -n "$PKG_CONFIG" && \ 16403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 16404 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 16405 ac_status=$? 16406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16407 test $ac_status = 0; }; then 16408 pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 16409 test "x$?" != "x0" && pkg_failed=yes 16410else 16411 pkg_failed=yes 16412fi 16413 else 16414 pkg_failed=untried 16415fi 16416if test -n "$FFI_LIBS"; then 16417 pkg_cv_FFI_LIBS="$FFI_LIBS" 16418 elif test -n "$PKG_CONFIG"; then 16419 if test -n "$PKG_CONFIG" && \ 16420 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 16421 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 16422 ac_status=$? 16423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16424 test $ac_status = 0; }; then 16425 pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 16426 test "x$?" != "x0" && pkg_failed=yes 16427else 16428 pkg_failed=yes 16429fi 16430 else 16431 pkg_failed=untried 16432fi 16433 16434 16435 16436if test $pkg_failed = yes; then 16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16438$as_echo "no" >&6; } 16439 16440if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16441 _pkg_short_errors_supported=yes 16442else 16443 _pkg_short_errors_supported=no 16444fi 16445 if test $_pkg_short_errors_supported = yes; then 16446 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` 16447 else 16448 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` 16449 fi 16450 # Put the nasty error message in config.log where it belongs 16451 echo "$FFI_PKG_ERRORS" >&5 16452 16453 as_fn_error $? "Package requirements (libffi) were not met: 16454 16455$FFI_PKG_ERRORS 16456 16457Consider adjusting the PKG_CONFIG_PATH environment variable if you 16458installed software in a non-standard prefix. 16459 16460Alternatively, you may set the environment variables FFI_CFLAGS 16461and FFI_LIBS to avoid the need to call pkg-config. 16462See the pkg-config man page for more details." "$LINENO" 5 16463elif test $pkg_failed = untried; then 16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16465$as_echo "no" >&6; } 16466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16468as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16469is in your PATH or set the PKG_CONFIG environment variable to the full 16470path to pkg-config. 16471 16472Alternatively, you may set the environment variables FFI_CFLAGS 16473and FFI_LIBS to avoid the need to call pkg-config. 16474See the pkg-config man page for more details. 16475 16476To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16477See \`config.log' for more details" "$LINENO" 5; } 16478else 16479 FFI_CFLAGS=$pkg_cv_FFI_CFLAGS 16480 FFI_LIBS=$pkg_cv_FFI_LIBS 16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16482$as_echo "yes" >&6; } 16483 16484fi 16485 ac_fn_c_check_decl "$LINENO" "SFD_CLOEXEC" "ac_cv_have_decl_SFD_CLOEXEC" "#include <sys/signalfd.h> 16486" 16487if test "x$ac_cv_have_decl_SFD_CLOEXEC" = xyes; then : 16488 16489else 16490 as_fn_error $? "\"SFD_CLOEXEC is needed to compile wayland libraries\"" "$LINENO" 5 16491fi 16492 16493 ac_fn_c_check_decl "$LINENO" "TFD_CLOEXEC" "ac_cv_have_decl_TFD_CLOEXEC" "#include <sys/timerfd.h> 16494" 16495if test "x$ac_cv_have_decl_TFD_CLOEXEC" = xyes; then : 16496 16497else 16498 as_fn_error $? "\"TFD_CLOEXEC is needed to compile wayland libraries\"" "$LINENO" 5 16499fi 16500 16501 ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h> 16502" 16503if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then : 16504 16505else 16506 as_fn_error $? "\"CLOCK_MONOTONIC is needed to compile wayland libraries\"" "$LINENO" 5 16507fi 16508 16509fi 16510 16511 16512pkg_failed=no 16513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5 16514$as_echo_n "checking for EXPAT... " >&6; } 16515 16516if test -n "$EXPAT_CFLAGS"; then 16517 pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS" 16518 elif test -n "$PKG_CONFIG"; then 16519 if test -n "$PKG_CONFIG" && \ 16520 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 16521 ($PKG_CONFIG --exists --print-errors "expat") 2>&5 16522 ac_status=$? 16523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16524 test $ac_status = 0; }; then 16525 pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null` 16526 test "x$?" != "x0" && pkg_failed=yes 16527else 16528 pkg_failed=yes 16529fi 16530 else 16531 pkg_failed=untried 16532fi 16533if test -n "$EXPAT_LIBS"; then 16534 pkg_cv_EXPAT_LIBS="$EXPAT_LIBS" 16535 elif test -n "$PKG_CONFIG"; then 16536 if test -n "$PKG_CONFIG" && \ 16537 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 16538 ($PKG_CONFIG --exists --print-errors "expat") 2>&5 16539 ac_status=$? 16540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16541 test $ac_status = 0; }; then 16542 pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null` 16543 test "x$?" != "x0" && pkg_failed=yes 16544else 16545 pkg_failed=yes 16546fi 16547 else 16548 pkg_failed=untried 16549fi 16550 16551 16552 16553if test $pkg_failed = yes; then 16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16555$as_echo "no" >&6; } 16556 16557if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16558 _pkg_short_errors_supported=yes 16559else 16560 _pkg_short_errors_supported=no 16561fi 16562 if test $_pkg_short_errors_supported = yes; then 16563 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1` 16564 else 16565 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1` 16566 fi 16567 # Put the nasty error message in config.log where it belongs 16568 echo "$EXPAT_PKG_ERRORS" >&5 16569 16570 as_fn_error $? "Package requirements (expat) were not met: 16571 16572$EXPAT_PKG_ERRORS 16573 16574Consider adjusting the PKG_CONFIG_PATH environment variable if you 16575installed software in a non-standard prefix. 16576 16577Alternatively, you may set the environment variables EXPAT_CFLAGS 16578and EXPAT_LIBS to avoid the need to call pkg-config. 16579See the pkg-config man page for more details." "$LINENO" 5 16580elif test $pkg_failed = untried; then 16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16582$as_echo "no" >&6; } 16583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16585as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16586is in your PATH or set the PKG_CONFIG environment variable to the full 16587path to pkg-config. 16588 16589Alternatively, you may set the environment variables EXPAT_CFLAGS 16590and EXPAT_LIBS to avoid the need to call pkg-config. 16591See the pkg-config man page for more details. 16592 16593To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16594See \`config.log' for more details" "$LINENO" 5; } 16595else 16596 EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS 16597 EXPAT_LIBS=$pkg_cv_EXPAT_LIBS 16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16599$as_echo "yes" >&6; } 16600 16601fi 16602 16603 if test "x$enable_dtd_validation" = "xyes"; then 16604 DTD_VALIDATION_TRUE= 16605 DTD_VALIDATION_FALSE='#' 16606else 16607 DTD_VALIDATION_TRUE='#' 16608 DTD_VALIDATION_FALSE= 16609fi 16610 16611if test "x$enable_dtd_validation" = "xyes"; then 16612 16613pkg_failed=no 16614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML" >&5 16615$as_echo_n "checking for LIBXML... " >&6; } 16616 16617if test -n "$LIBXML_CFLAGS"; then 16618 pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS" 16619 elif test -n "$PKG_CONFIG"; then 16620 if test -n "$PKG_CONFIG" && \ 16621 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 16622 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 16623 ac_status=$? 16624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16625 test $ac_status = 0; }; then 16626 pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null` 16627 test "x$?" != "x0" && pkg_failed=yes 16628else 16629 pkg_failed=yes 16630fi 16631 else 16632 pkg_failed=untried 16633fi 16634if test -n "$LIBXML_LIBS"; then 16635 pkg_cv_LIBXML_LIBS="$LIBXML_LIBS" 16636 elif test -n "$PKG_CONFIG"; then 16637 if test -n "$PKG_CONFIG" && \ 16638 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5 16639 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5 16640 ac_status=$? 16641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16642 test $ac_status = 0; }; then 16643 pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null` 16644 test "x$?" != "x0" && pkg_failed=yes 16645else 16646 pkg_failed=yes 16647fi 16648 else 16649 pkg_failed=untried 16650fi 16651 16652 16653 16654if test $pkg_failed = yes; then 16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16656$as_echo "no" >&6; } 16657 16658if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 16659 _pkg_short_errors_supported=yes 16660else 16661 _pkg_short_errors_supported=no 16662fi 16663 if test $_pkg_short_errors_supported = yes; then 16664 LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1` 16665 else 16666 LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1` 16667 fi 16668 # Put the nasty error message in config.log where it belongs 16669 echo "$LIBXML_PKG_ERRORS" >&5 16670 16671 as_fn_error $? "Package requirements (libxml-2.0) were not met: 16672 16673$LIBXML_PKG_ERRORS 16674 16675Consider adjusting the PKG_CONFIG_PATH environment variable if you 16676installed software in a non-standard prefix. 16677 16678Alternatively, you may set the environment variables LIBXML_CFLAGS 16679and LIBXML_LIBS to avoid the need to call pkg-config. 16680See the pkg-config man page for more details." "$LINENO" 5 16681elif test $pkg_failed = untried; then 16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16683$as_echo "no" >&6; } 16684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 16685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 16686as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 16687is in your PATH or set the PKG_CONFIG environment variable to the full 16688path to pkg-config. 16689 16690Alternatively, you may set the environment variables LIBXML_CFLAGS 16691and LIBXML_LIBS to avoid the need to call pkg-config. 16692See the pkg-config man page for more details. 16693 16694To get pkg-config, see <http://pkg-config.freedesktop.org/>. 16695See \`config.log' for more details" "$LINENO" 5; } 16696else 16697 LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS 16698 LIBXML_LIBS=$pkg_cv_LIBXML_LIBS 16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16700$as_echo "yes" >&6; } 16701 16702fi 16703 16704$as_echo "#define HAVE_LIBXML 1" >>confdefs.h 16705 16706 ac_config_links="$ac_config_links src/wayland.dtd.embed:protocol/wayland.dtd" 16707 16708fi 16709 16710# Extract the first word of "xsltproc", so it can be a program name with args. 16711set dummy xsltproc; ac_word=$2 16712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16713$as_echo_n "checking for $ac_word... " >&6; } 16714if ${ac_cv_path_XSLTPROC+:} false; then : 16715 $as_echo_n "(cached) " >&6 16716else 16717 case $XSLTPROC in 16718 [\\/]* | ?:[\\/]*) 16719 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 16720 ;; 16721 *) 16722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16723for as_dir in $PATH 16724do 16725 IFS=$as_save_IFS 16726 test -z "$as_dir" && as_dir=. 16727 for ac_exec_ext in '' $ac_executable_extensions; do 16728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16729 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 16730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16731 break 2 16732 fi 16733done 16734 done 16735IFS=$as_save_IFS 16736 16737 ;; 16738esac 16739fi 16740XSLTPROC=$ac_cv_path_XSLTPROC 16741if test -n "$XSLTPROC"; then 16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 16743$as_echo "$XSLTPROC" >&6; } 16744else 16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16746$as_echo "no" >&6; } 16747fi 16748 16749 16750 if test "x$XSLTPROC" != "x"; then 16751 HAVE_XSLTPROC_TRUE= 16752 HAVE_XSLTPROC_FALSE='#' 16753else 16754 HAVE_XSLTPROC_TRUE='#' 16755 HAVE_XSLTPROC_FALSE= 16756fi 16757 16758 16759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for docbook manpages stylesheet" >&5 16760$as_echo_n "checking for docbook manpages stylesheet... " >&6; } 16761MANPAGES_STYLESHEET=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl 16762if test -z "$XSLTPROC_TMP"; then 16763 ac_path_XSLTPROC_TMP_found=false 16764 # Loop through the user's path and test for each of PROGNAME-LIST 16765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16766for as_dir in $PATH 16767do 16768 IFS=$as_save_IFS 16769 test -z "$as_dir" && as_dir=. 16770 for ac_prog in xsltproc; do 16771 for ac_exec_ext in '' $ac_executable_extensions; do 16772 ac_path_XSLTPROC_TMP="$as_dir/$ac_prog$ac_exec_ext" 16773 as_fn_executable_p "$ac_path_XSLTPROC_TMP" || continue 16774if `"$ac_path_XSLTPROC_TMP" --nonet "$MANPAGES_STYLESHEET" > /dev/null 2>&1`; then : 16775 HAVE_MANPAGES_STYLESHEET=yes 16776fi 16777 $ac_path_XSLTPROC_TMP_found && break 3 16778 done 16779 done 16780 done 16781IFS=$as_save_IFS 16782 if test -z "$ac_cv_path_XSLTPROC_TMP"; then 16783 : 16784 fi 16785else 16786 ac_cv_path_XSLTPROC_TMP=$XSLTPROC_TMP 16787fi 16788 16789if test "x$HAVE_MANPAGES_STYLESHEET" = "xyes"; then 16790 if true; then 16791 HAVE_MANPAGES_STYLESHEET_TRUE= 16792 HAVE_MANPAGES_STYLESHEET_FALSE='#' 16793else 16794 HAVE_MANPAGES_STYLESHEET_TRUE='#' 16795 HAVE_MANPAGES_STYLESHEET_FALSE= 16796fi 16797 16798 16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16800$as_echo "yes" >&6; } 16801else 16802 if false; then 16803 HAVE_MANPAGES_STYLESHEET_TRUE= 16804 HAVE_MANPAGES_STYLESHEET_FALSE='#' 16805else 16806 HAVE_MANPAGES_STYLESHEET_TRUE='#' 16807 HAVE_MANPAGES_STYLESHEET_FALSE= 16808fi 16809 16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16811$as_echo "no" >&6; } 16812fi 16813 16814 if test x$enable_documentation = xyes; then 16815 BUILD_DOCS_TRUE= 16816 BUILD_DOCS_FALSE='#' 16817else 16818 BUILD_DOCS_TRUE='#' 16819 BUILD_DOCS_FALSE= 16820fi 16821 16822if test "x$enable_documentation" = "xyes"; then 16823 # Extract the first word of "doxygen", so it can be a program name with args. 16824set dummy doxygen; ac_word=$2 16825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16826$as_echo_n "checking for $ac_word... " >&6; } 16827if ${ac_cv_path_DOXYGEN+:} false; then : 16828 $as_echo_n "(cached) " >&6 16829else 16830 case $DOXYGEN in 16831 [\\/]* | ?:[\\/]*) 16832 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 16833 ;; 16834 *) 16835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16836for as_dir in $PATH 16837do 16838 IFS=$as_save_IFS 16839 test -z "$as_dir" && as_dir=. 16840 for ac_exec_ext in '' $ac_executable_extensions; do 16841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16842 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 16843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16844 break 2 16845 fi 16846done 16847 done 16848IFS=$as_save_IFS 16849 16850 ;; 16851esac 16852fi 16853DOXYGEN=$ac_cv_path_DOXYGEN 16854if test -n "$DOXYGEN"; then 16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 16856$as_echo "$DOXYGEN" >&6; } 16857else 16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16859$as_echo "no" >&6; } 16860fi 16861 16862 16863 16864 if test "x$DOXYGEN" = "x"; then 16865 as_fn_error $? "Documentation build requested but doxygen not found. Install doxygen or disable the documentation using --disable-documentation" "$LINENO" 5 16866 fi 16867 16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible doxygen version" >&5 16869$as_echo_n "checking for compatible doxygen version... " >&6; } 16870 doxygen_version=`$DOXYGEN --version` 16871 as_arg_v1=$doxygen_version 16872as_arg_v2=1.6.0 16873awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 16874case $? in #( 16875 1) : 16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16877$as_echo "no" >&6; } 16878 as_fn_error $? "Doxygen $doxygen_version too old. Doxygen 1.6+ required for documentation build. Install required doxygen version or disable the documentation using --disable-documentation" "$LINENO" 5 ;; #( 16879 0) : 16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16881$as_echo "yes" >&6; } ;; #( 16882 2) : 16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16884$as_echo "yes" >&6; } ;; #( 16885 *) : 16886 ;; 16887esac 16888 16889 # Extract the first word of "xmlto", so it can be a program name with args. 16890set dummy xmlto; ac_word=$2 16891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16892$as_echo_n "checking for $ac_word... " >&6; } 16893if ${ac_cv_path_XMLTO+:} false; then : 16894 $as_echo_n "(cached) " >&6 16895else 16896 case $XMLTO in 16897 [\\/]* | ?:[\\/]*) 16898 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 16899 ;; 16900 *) 16901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16902for as_dir in $PATH 16903do 16904 IFS=$as_save_IFS 16905 test -z "$as_dir" && as_dir=. 16906 for ac_exec_ext in '' $ac_executable_extensions; do 16907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16908 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 16909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16910 break 2 16911 fi 16912done 16913 done 16914IFS=$as_save_IFS 16915 16916 ;; 16917esac 16918fi 16919XMLTO=$ac_cv_path_XMLTO 16920if test -n "$XMLTO"; then 16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 16922$as_echo "$XMLTO" >&6; } 16923else 16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16925$as_echo "no" >&6; } 16926fi 16927 16928 16929 16930 if test "x$XMLTO" = "x"; then 16931 as_fn_error $? "Documentation build requested but xmlto not found. Install xmlto or disable the documentation using --disable-documentation" "$LINENO" 5 16932 fi 16933 16934 # Extract the first word of "dot", so it can be a program name with args. 16935set dummy dot; ac_word=$2 16936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16937$as_echo_n "checking for $ac_word... " >&6; } 16938if ${ac_cv_path_DOT+:} false; then : 16939 $as_echo_n "(cached) " >&6 16940else 16941 case $DOT in 16942 [\\/]* | ?:[\\/]*) 16943 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 16944 ;; 16945 *) 16946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16947for as_dir in $PATH 16948do 16949 IFS=$as_save_IFS 16950 test -z "$as_dir" && as_dir=. 16951 for ac_exec_ext in '' $ac_executable_extensions; do 16952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16953 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 16954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16955 break 2 16956 fi 16957done 16958 done 16959IFS=$as_save_IFS 16960 16961 ;; 16962esac 16963fi 16964DOT=$ac_cv_path_DOT 16965if test -n "$DOT"; then 16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 16967$as_echo "$DOT" >&6; } 16968else 16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16970$as_echo "no" >&6; } 16971fi 16972 16973 16974 if test "x$DOT" = "x"; then 16975 as_fn_error $? "Documentation build requested but graphviz's dot not found. Install graphviz or disable the documentation using --disable-documentation" "$LINENO" 5 16976 fi 16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible dot version" >&5 16978$as_echo_n "checking for compatible dot version... " >&6; } 16979 dot_version=`$DOT -V 2>&1|$GREP -o '[0-9]*\.[0-9]*\.[0-9]*'` 16980 as_arg_v1=$dot_version 16981as_arg_v2=2.26.0 16982awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 16983case $? in #( 16984 1) : 16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16986$as_echo "no" >&6; } 16987 as_fn_error $? "Graphviz dot $dot_version too old. Graphviz 2.26+ required for documentation build. Install required graphviz version or disable the documentation using --disable-documentation" "$LINENO" 5 ;; #( 16988 0) : 16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16990$as_echo "yes" >&6; } ;; #( 16991 2) : 16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16993$as_echo "yes" >&6; } ;; #( 16994 *) : 16995 ;; 16996esac 16997 16998 ac_config_files="$ac_config_files doc/doxygen/wayland.doxygen" 16999 17000 17001fi 17002 if test "x$XMLTO" != "x"; then 17003 HAVE_XMLTO_TRUE= 17004 HAVE_XMLTO_FALSE='#' 17005else 17006 HAVE_XMLTO_TRUE='#' 17007 HAVE_XMLTO_FALSE= 17008fi 17009 17010 17011ac_config_files="$ac_config_files Makefile cursor/wayland-cursor.pc cursor/wayland-cursor-uninstalled.pc doc/Makefile doc/publican/Makefile doc/doxygen/Makefile doc/man/Makefile egl/wayland-egl.pc egl/wayland-egl-backend.pc src/wayland-server-uninstalled.pc src/wayland-client-uninstalled.pc src/wayland-scanner-uninstalled.pc src/wayland-server.pc src/wayland-client.pc src/wayland-scanner.pc src/wayland-version.h" 17012 17013cat >confcache <<\_ACEOF 17014# This file is a shell script that caches the results of configure 17015# tests run on this system so they can be shared between configure 17016# scripts and configure runs, see configure's option --config-cache. 17017# It is not useful on other systems. If it contains results you don't 17018# want to keep, you may remove or edit it. 17019# 17020# config.status only pays attention to the cache file if you give it 17021# the --recheck option to rerun configure. 17022# 17023# `ac_cv_env_foo' variables (set or unset) will be overridden when 17024# loading this file, other *unset* `ac_cv_foo' will be assigned the 17025# following values. 17026 17027_ACEOF 17028 17029# The following way of writing the cache mishandles newlines in values, 17030# but we know of no workaround that is simple, portable, and efficient. 17031# So, we kill variables containing newlines. 17032# Ultrix sh set writes to stderr and can't be redirected directly, 17033# and sets the high bit in the cache file unless we assign to the vars. 17034( 17035 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17036 eval ac_val=\$$ac_var 17037 case $ac_val in #( 17038 *${as_nl}*) 17039 case $ac_var in #( 17040 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17041$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17042 esac 17043 case $ac_var in #( 17044 _ | IFS | as_nl) ;; #( 17045 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17046 *) { eval $ac_var=; unset $ac_var;} ;; 17047 esac ;; 17048 esac 17049 done 17050 17051 (set) 2>&1 | 17052 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17053 *${as_nl}ac_space=\ *) 17054 # `set' does not quote correctly, so add quotes: double-quote 17055 # substitution turns \\\\ into \\, and sed turns \\ into \. 17056 sed -n \ 17057 "s/'/'\\\\''/g; 17058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17059 ;; #( 17060 *) 17061 # `set' quotes correctly as required by POSIX, so do not add quotes. 17062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17063 ;; 17064 esac | 17065 sort 17066) | 17067 sed ' 17068 /^ac_cv_env_/b end 17069 t clear 17070 :clear 17071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17072 t end 17073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17074 :end' >>confcache 17075if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17076 if test -w "$cache_file"; then 17077 if test "x$cache_file" != "x/dev/null"; then 17078 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17079$as_echo "$as_me: updating cache $cache_file" >&6;} 17080 if test ! -f "$cache_file" || test -h "$cache_file"; then 17081 cat confcache >"$cache_file" 17082 else 17083 case $cache_file in #( 17084 */* | ?:*) 17085 mv -f confcache "$cache_file"$$ && 17086 mv -f "$cache_file"$$ "$cache_file" ;; #( 17087 *) 17088 mv -f confcache "$cache_file" ;; 17089 esac 17090 fi 17091 fi 17092 else 17093 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17094$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17095 fi 17096fi 17097rm -f confcache 17098 17099test "x$prefix" = xNONE && prefix=$ac_default_prefix 17100# Let make expand exec_prefix. 17101test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17102 17103DEFS=-DHAVE_CONFIG_H 17104 17105ac_libobjs= 17106ac_ltlibobjs= 17107U= 17108for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17109 # 1. Remove the extension, and $U if already installed. 17110 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17111 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17112 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17113 # will be set to the directory where LIBOBJS objects are built. 17114 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17115 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17116done 17117LIBOBJS=$ac_libobjs 17118 17119LTLIBOBJS=$ac_ltlibobjs 17120 17121 17122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17123$as_echo_n "checking that generated files are newer than configure... " >&6; } 17124 if test -n "$am_sleep_pid"; then 17125 # Hide warnings about reused PIDs. 17126 wait $am_sleep_pid 2>/dev/null 17127 fi 17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17129$as_echo "done" >&6; } 17130 if test -n "$EXEEXT"; then 17131 am__EXEEXT_TRUE= 17132 am__EXEEXT_FALSE='#' 17133else 17134 am__EXEEXT_TRUE='#' 17135 am__EXEEXT_FALSE= 17136fi 17137 17138if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17139 as_fn_error $? "conditional \"AMDEP\" was never defined. 17140Usually this means the macro was only invoked conditionally." "$LINENO" 5 17141fi 17142if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17143 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17144Usually this means the macro was only invoked conditionally." "$LINENO" 5 17145fi 17146if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17147 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17148Usually this means the macro was only invoked conditionally." "$LINENO" 5 17149fi 17150if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 17151 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 17152Usually this means the macro was only invoked conditionally." "$LINENO" 5 17153fi 17154if test -z "${ENABLE_CPP_TEST_TRUE}" && test -z "${ENABLE_CPP_TEST_FALSE}"; then 17155 as_fn_error $? "conditional \"ENABLE_CPP_TEST\" was never defined. 17156Usually this means the macro was only invoked conditionally." "$LINENO" 5 17157fi 17158if test -z "${USE_HOST_SCANNER_TRUE}" && test -z "${USE_HOST_SCANNER_FALSE}"; then 17159 as_fn_error $? "conditional \"USE_HOST_SCANNER\" was never defined. 17160Usually this means the macro was only invoked conditionally." "$LINENO" 5 17161fi 17162if test -z "${ENABLE_LIBRARIES_TRUE}" && test -z "${ENABLE_LIBRARIES_FALSE}"; then 17163 as_fn_error $? "conditional \"ENABLE_LIBRARIES\" was never defined. 17164Usually this means the macro was only invoked conditionally." "$LINENO" 5 17165fi 17166if test -z "${DTD_VALIDATION_TRUE}" && test -z "${DTD_VALIDATION_FALSE}"; then 17167 as_fn_error $? "conditional \"DTD_VALIDATION\" was never defined. 17168Usually this means the macro was only invoked conditionally." "$LINENO" 5 17169fi 17170if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 17171 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 17172Usually this means the macro was only invoked conditionally." "$LINENO" 5 17173fi 17174if test -z "${HAVE_MANPAGES_STYLESHEET_TRUE}" && test -z "${HAVE_MANPAGES_STYLESHEET_FALSE}"; then 17175 as_fn_error $? "conditional \"HAVE_MANPAGES_STYLESHEET\" was never defined. 17176Usually this means the macro was only invoked conditionally." "$LINENO" 5 17177fi 17178if test -z "${HAVE_MANPAGES_STYLESHEET_TRUE}" && test -z "${HAVE_MANPAGES_STYLESHEET_FALSE}"; then 17179 as_fn_error $? "conditional \"HAVE_MANPAGES_STYLESHEET\" was never defined. 17180Usually this means the macro was only invoked conditionally." "$LINENO" 5 17181fi 17182if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then 17183 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined. 17184Usually this means the macro was only invoked conditionally." "$LINENO" 5 17185fi 17186if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 17187 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 17188Usually this means the macro was only invoked conditionally." "$LINENO" 5 17189fi 17190 17191: "${CONFIG_STATUS=./config.status}" 17192ac_write_fail=0 17193ac_clean_files_save=$ac_clean_files 17194ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17195{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17196$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17197as_write_fail=0 17198cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17199#! $SHELL 17200# Generated by $as_me. 17201# Run this file to recreate the current configuration. 17202# Compiler output produced by configure, useful for debugging 17203# configure, is in config.log if it exists. 17204 17205debug=false 17206ac_cs_recheck=false 17207ac_cs_silent=false 17208 17209SHELL=\${CONFIG_SHELL-$SHELL} 17210export SHELL 17211_ASEOF 17212cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17213## -------------------- ## 17214## M4sh Initialization. ## 17215## -------------------- ## 17216 17217# Be more Bourne compatible 17218DUALCASE=1; export DUALCASE # for MKS sh 17219if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17220 emulate sh 17221 NULLCMD=: 17222 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17223 # is contrary to our usage. Disable this feature. 17224 alias -g '${1+"$@"}'='"$@"' 17225 setopt NO_GLOB_SUBST 17226else 17227 case `(set -o) 2>/dev/null` in #( 17228 *posix*) : 17229 set -o posix ;; #( 17230 *) : 17231 ;; 17232esac 17233fi 17234 17235 17236as_nl=' 17237' 17238export as_nl 17239# Printing a long string crashes Solaris 7 /usr/bin/printf. 17240as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17241as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17242as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17243# Prefer a ksh shell builtin over an external printf program on Solaris, 17244# but without wasting forks for bash or zsh. 17245if test -z "$BASH_VERSION$ZSH_VERSION" \ 17246 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17247 as_echo='print -r --' 17248 as_echo_n='print -rn --' 17249elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17250 as_echo='printf %s\n' 17251 as_echo_n='printf %s' 17252else 17253 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17254 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17255 as_echo_n='/usr/ucb/echo -n' 17256 else 17257 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17258 as_echo_n_body='eval 17259 arg=$1; 17260 case $arg in #( 17261 *"$as_nl"*) 17262 expr "X$arg" : "X\\(.*\\)$as_nl"; 17263 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17264 esac; 17265 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17266 ' 17267 export as_echo_n_body 17268 as_echo_n='sh -c $as_echo_n_body as_echo' 17269 fi 17270 export as_echo_body 17271 as_echo='sh -c $as_echo_body as_echo' 17272fi 17273 17274# The user is always right. 17275if test "${PATH_SEPARATOR+set}" != set; then 17276 PATH_SEPARATOR=: 17277 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17278 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17279 PATH_SEPARATOR=';' 17280 } 17281fi 17282 17283 17284# IFS 17285# We need space, tab and new line, in precisely that order. Quoting is 17286# there to prevent editors from complaining about space-tab. 17287# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17288# splitting by setting IFS to empty value.) 17289IFS=" "" $as_nl" 17290 17291# Find who we are. Look in the path if we contain no directory separator. 17292as_myself= 17293case $0 in #(( 17294 *[\\/]* ) as_myself=$0 ;; 17295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17296for as_dir in $PATH 17297do 17298 IFS=$as_save_IFS 17299 test -z "$as_dir" && as_dir=. 17300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17301 done 17302IFS=$as_save_IFS 17303 17304 ;; 17305esac 17306# We did not find ourselves, most probably we were run as `sh COMMAND' 17307# in which case we are not to be found in the path. 17308if test "x$as_myself" = x; then 17309 as_myself=$0 17310fi 17311if test ! -f "$as_myself"; then 17312 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17313 exit 1 17314fi 17315 17316# Unset variables that we do not need and which cause bugs (e.g. in 17317# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17318# suppresses any "Segmentation fault" message there. '((' could 17319# trigger a bug in pdksh 5.2.14. 17320for as_var in BASH_ENV ENV MAIL MAILPATH 17321do eval test x\${$as_var+set} = xset \ 17322 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17323done 17324PS1='$ ' 17325PS2='> ' 17326PS4='+ ' 17327 17328# NLS nuisances. 17329LC_ALL=C 17330export LC_ALL 17331LANGUAGE=C 17332export LANGUAGE 17333 17334# CDPATH. 17335(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17336 17337 17338# as_fn_error STATUS ERROR [LINENO LOG_FD] 17339# ---------------------------------------- 17340# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17341# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17342# script with STATUS, using 1 if that was 0. 17343as_fn_error () 17344{ 17345 as_status=$1; test $as_status -eq 0 && as_status=1 17346 if test "$4"; then 17347 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17348 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17349 fi 17350 $as_echo "$as_me: error: $2" >&2 17351 as_fn_exit $as_status 17352} # as_fn_error 17353 17354 17355# as_fn_set_status STATUS 17356# ----------------------- 17357# Set $? to STATUS, without forking. 17358as_fn_set_status () 17359{ 17360 return $1 17361} # as_fn_set_status 17362 17363# as_fn_exit STATUS 17364# ----------------- 17365# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17366as_fn_exit () 17367{ 17368 set +e 17369 as_fn_set_status $1 17370 exit $1 17371} # as_fn_exit 17372 17373# as_fn_unset VAR 17374# --------------- 17375# Portably unset VAR. 17376as_fn_unset () 17377{ 17378 { eval $1=; unset $1;} 17379} 17380as_unset=as_fn_unset 17381# as_fn_append VAR VALUE 17382# ---------------------- 17383# Append the text in VALUE to the end of the definition contained in VAR. Take 17384# advantage of any shell optimizations that allow amortized linear growth over 17385# repeated appends, instead of the typical quadratic growth present in naive 17386# implementations. 17387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17388 eval 'as_fn_append () 17389 { 17390 eval $1+=\$2 17391 }' 17392else 17393 as_fn_append () 17394 { 17395 eval $1=\$$1\$2 17396 } 17397fi # as_fn_append 17398 17399# as_fn_arith ARG... 17400# ------------------ 17401# Perform arithmetic evaluation on the ARGs, and store the result in the 17402# global $as_val. Take advantage of shells that can avoid forks. The arguments 17403# must be portable across $(()) and expr. 17404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17405 eval 'as_fn_arith () 17406 { 17407 as_val=$(( $* )) 17408 }' 17409else 17410 as_fn_arith () 17411 { 17412 as_val=`expr "$@" || test $? -eq 1` 17413 } 17414fi # as_fn_arith 17415 17416 17417if expr a : '\(a\)' >/dev/null 2>&1 && 17418 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17419 as_expr=expr 17420else 17421 as_expr=false 17422fi 17423 17424if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17425 as_basename=basename 17426else 17427 as_basename=false 17428fi 17429 17430if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17431 as_dirname=dirname 17432else 17433 as_dirname=false 17434fi 17435 17436as_me=`$as_basename -- "$0" || 17437$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17438 X"$0" : 'X\(//\)$' \| \ 17439 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17440$as_echo X/"$0" | 17441 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17442 s//\1/ 17443 q 17444 } 17445 /^X\/\(\/\/\)$/{ 17446 s//\1/ 17447 q 17448 } 17449 /^X\/\(\/\).*/{ 17450 s//\1/ 17451 q 17452 } 17453 s/.*/./; q'` 17454 17455# Avoid depending upon Character Ranges. 17456as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17457as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17458as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17459as_cr_digits='0123456789' 17460as_cr_alnum=$as_cr_Letters$as_cr_digits 17461 17462ECHO_C= ECHO_N= ECHO_T= 17463case `echo -n x` in #((((( 17464-n*) 17465 case `echo 'xy\c'` in 17466 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17467 xy) ECHO_C='\c';; 17468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17469 ECHO_T=' ';; 17470 esac;; 17471*) 17472 ECHO_N='-n';; 17473esac 17474 17475rm -f conf$$ conf$$.exe conf$$.file 17476if test -d conf$$.dir; then 17477 rm -f conf$$.dir/conf$$.file 17478else 17479 rm -f conf$$.dir 17480 mkdir conf$$.dir 2>/dev/null 17481fi 17482if (echo >conf$$.file) 2>/dev/null; then 17483 if ln -s conf$$.file conf$$ 2>/dev/null; then 17484 as_ln_s='ln -s' 17485 # ... but there are two gotchas: 17486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17488 # In both cases, we have to default to `cp -pR'. 17489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17490 as_ln_s='cp -pR' 17491 elif ln conf$$.file conf$$ 2>/dev/null; then 17492 as_ln_s=ln 17493 else 17494 as_ln_s='cp -pR' 17495 fi 17496else 17497 as_ln_s='cp -pR' 17498fi 17499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17500rmdir conf$$.dir 2>/dev/null 17501 17502 17503# as_fn_mkdir_p 17504# ------------- 17505# Create "$as_dir" as a directory, including parents if necessary. 17506as_fn_mkdir_p () 17507{ 17508 17509 case $as_dir in #( 17510 -*) as_dir=./$as_dir;; 17511 esac 17512 test -d "$as_dir" || eval $as_mkdir_p || { 17513 as_dirs= 17514 while :; do 17515 case $as_dir in #( 17516 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17517 *) as_qdir=$as_dir;; 17518 esac 17519 as_dirs="'$as_qdir' $as_dirs" 17520 as_dir=`$as_dirname -- "$as_dir" || 17521$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17522 X"$as_dir" : 'X\(//\)[^/]' \| \ 17523 X"$as_dir" : 'X\(//\)$' \| \ 17524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17525$as_echo X"$as_dir" | 17526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17527 s//\1/ 17528 q 17529 } 17530 /^X\(\/\/\)[^/].*/{ 17531 s//\1/ 17532 q 17533 } 17534 /^X\(\/\/\)$/{ 17535 s//\1/ 17536 q 17537 } 17538 /^X\(\/\).*/{ 17539 s//\1/ 17540 q 17541 } 17542 s/.*/./; q'` 17543 test -d "$as_dir" && break 17544 done 17545 test -z "$as_dirs" || eval "mkdir $as_dirs" 17546 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17547 17548 17549} # as_fn_mkdir_p 17550if mkdir -p . 2>/dev/null; then 17551 as_mkdir_p='mkdir -p "$as_dir"' 17552else 17553 test -d ./-p && rmdir ./-p 17554 as_mkdir_p=false 17555fi 17556 17557 17558# as_fn_executable_p FILE 17559# ----------------------- 17560# Test if FILE is an executable regular file. 17561as_fn_executable_p () 17562{ 17563 test -f "$1" && test -x "$1" 17564} # as_fn_executable_p 17565as_test_x='test -x' 17566as_executable_p=as_fn_executable_p 17567 17568# Sed expression to map a string onto a valid CPP name. 17569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17570 17571# Sed expression to map a string onto a valid variable name. 17572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17573 17574 17575exec 6>&1 17576## ----------------------------------- ## 17577## Main body of $CONFIG_STATUS script. ## 17578## ----------------------------------- ## 17579_ASEOF 17580test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17581 17582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17583# Save the log message, to keep $0 and so on meaningful, and to 17584# report actual input values of CONFIG_FILES etc. instead of their 17585# values after options handling. 17586ac_log=" 17587This file was extended by wayland $as_me 1.17.0, which was 17588generated by GNU Autoconf 2.69. Invocation command line was 17589 17590 CONFIG_FILES = $CONFIG_FILES 17591 CONFIG_HEADERS = $CONFIG_HEADERS 17592 CONFIG_LINKS = $CONFIG_LINKS 17593 CONFIG_COMMANDS = $CONFIG_COMMANDS 17594 $ $0 $@ 17595 17596on `(hostname || uname -n) 2>/dev/null | sed 1q` 17597" 17598 17599_ACEOF 17600 17601case $ac_config_files in *" 17602"*) set x $ac_config_files; shift; ac_config_files=$*;; 17603esac 17604 17605case $ac_config_headers in *" 17606"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17607esac 17608 17609 17610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17611# Files that config.status was made for. 17612config_files="$ac_config_files" 17613config_headers="$ac_config_headers" 17614config_links="$ac_config_links" 17615config_commands="$ac_config_commands" 17616 17617_ACEOF 17618 17619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17620ac_cs_usage="\ 17621\`$as_me' instantiates files and other configuration actions 17622from templates according to the current configuration. Unless the files 17623and actions are specified as TAGs, all are instantiated by default. 17624 17625Usage: $0 [OPTION]... [TAG]... 17626 17627 -h, --help print this help, then exit 17628 -V, --version print version number and configuration settings, then exit 17629 --config print configuration, then exit 17630 -q, --quiet, --silent 17631 do not print progress messages 17632 -d, --debug don't remove temporary files 17633 --recheck update $as_me by reconfiguring in the same conditions 17634 --file=FILE[:TEMPLATE] 17635 instantiate the configuration file FILE 17636 --header=FILE[:TEMPLATE] 17637 instantiate the configuration header FILE 17638 17639Configuration files: 17640$config_files 17641 17642Configuration headers: 17643$config_headers 17644 17645Configuration links: 17646$config_links 17647 17648Configuration commands: 17649$config_commands 17650 17651Report bugs to <https://gitlab.freedesktop.org/wayland/wayland/issues/>. 17652wayland home page: <https://wayland.freedesktop.org/>." 17653 17654_ACEOF 17655cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17656ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17657ac_cs_version="\\ 17658wayland config.status 1.17.0 17659configured by $0, generated by GNU Autoconf 2.69, 17660 with options \\"\$ac_cs_config\\" 17661 17662Copyright (C) 2012 Free Software Foundation, Inc. 17663This config.status script is free software; the Free Software Foundation 17664gives unlimited permission to copy, distribute and modify it." 17665 17666ac_pwd='$ac_pwd' 17667srcdir='$srcdir' 17668INSTALL='$INSTALL' 17669MKDIR_P='$MKDIR_P' 17670AWK='$AWK' 17671test -n "\$AWK" || AWK=awk 17672_ACEOF 17673 17674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17675# The default lists apply if the user does not specify any file. 17676ac_need_defaults=: 17677while test $# != 0 17678do 17679 case $1 in 17680 --*=?*) 17681 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17682 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17683 ac_shift=: 17684 ;; 17685 --*=) 17686 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17687 ac_optarg= 17688 ac_shift=: 17689 ;; 17690 *) 17691 ac_option=$1 17692 ac_optarg=$2 17693 ac_shift=shift 17694 ;; 17695 esac 17696 17697 case $ac_option in 17698 # Handling of the options. 17699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17700 ac_cs_recheck=: ;; 17701 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17702 $as_echo "$ac_cs_version"; exit ;; 17703 --config | --confi | --conf | --con | --co | --c ) 17704 $as_echo "$ac_cs_config"; exit ;; 17705 --debug | --debu | --deb | --de | --d | -d ) 17706 debug=: ;; 17707 --file | --fil | --fi | --f ) 17708 $ac_shift 17709 case $ac_optarg in 17710 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17711 '') as_fn_error $? "missing file argument" ;; 17712 esac 17713 as_fn_append CONFIG_FILES " '$ac_optarg'" 17714 ac_need_defaults=false;; 17715 --header | --heade | --head | --hea ) 17716 $ac_shift 17717 case $ac_optarg in 17718 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17719 esac 17720 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17721 ac_need_defaults=false;; 17722 --he | --h) 17723 # Conflict between --help and --header 17724 as_fn_error $? "ambiguous option: \`$1' 17725Try \`$0 --help' for more information.";; 17726 --help | --hel | -h ) 17727 $as_echo "$ac_cs_usage"; exit ;; 17728 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17729 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17730 ac_cs_silent=: ;; 17731 17732 # This is an error. 17733 -*) as_fn_error $? "unrecognized option: \`$1' 17734Try \`$0 --help' for more information." ;; 17735 17736 *) as_fn_append ac_config_targets " $1" 17737 ac_need_defaults=false ;; 17738 17739 esac 17740 shift 17741done 17742 17743ac_configure_extra_args= 17744 17745if $ac_cs_silent; then 17746 exec 6>/dev/null 17747 ac_configure_extra_args="$ac_configure_extra_args --silent" 17748fi 17749 17750_ACEOF 17751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17752if \$ac_cs_recheck; then 17753 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17754 shift 17755 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17756 CONFIG_SHELL='$SHELL' 17757 export CONFIG_SHELL 17758 exec "\$@" 17759fi 17760 17761_ACEOF 17762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17763exec 5>>config.log 17764{ 17765 echo 17766 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17767## Running $as_me. ## 17768_ASBOX 17769 $as_echo "$ac_log" 17770} >&5 17771 17772_ACEOF 17773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17774# 17775# INIT-COMMANDS 17776# 17777AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17778 17779 17780# The HP-UX ksh and POSIX shell print the target directory to stdout 17781# if CDPATH is set. 17782(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17783 17784sed_quote_subst='$sed_quote_subst' 17785double_quote_subst='$double_quote_subst' 17786delay_variable_subst='$delay_variable_subst' 17787NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17788macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17789macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17790enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17791enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17792pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17793enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17794shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17795SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17796ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17797PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17798host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17799host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17800host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17801build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17802build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17803build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17804SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17805Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17806GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17807EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17808FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17809LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17810LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17811max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17812ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17813exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17814lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17815lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17816lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17817lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17818lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17819reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17820reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17821OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17822deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17823file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17824file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17825want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17826DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17827sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17828AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17829AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17830archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17831STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17832RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17833old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17834old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17835old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17836lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17837CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17838CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17839compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17840GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17841lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17842lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17843lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17844lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17845lt_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"`' 17846lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17847nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17848lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17849lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17850objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17851MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17852lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17853lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17854lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17855lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17856lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17857need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17858MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17859DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17860NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17861LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17862OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17863OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17864libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17865shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17866extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17867archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17868enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17869export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17870whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17871compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17872old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17873old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17874archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17875archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17876module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17877module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17878with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17879allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17880no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17881hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17882hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17883hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17884hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17885hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17886hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17887hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17888inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17889link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17890always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17891export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17892exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17893include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17894prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17895postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17896file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17897variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17898need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17899need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17900version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17901runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17902shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17903shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17904libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17905library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17906soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17907install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17908postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17909postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17910finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17911finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17912hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17913sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17914configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17915configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17916hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17917enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17918enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17919enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17920old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17921striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17922compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17923predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17924postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17925predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17926postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17927compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17928LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17929reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17930reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17931old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17932compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17933GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17934lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17935lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17936lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17937lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17938lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17939archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17940enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17941export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17942whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17943compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17944old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17945old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17946archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17947archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17948module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17949module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17950with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17951allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17952no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17953hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17954hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17955hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17956hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17957hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17958hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17959hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17960inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17961link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17962always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17963export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17964exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17965include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17966prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17967postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17968file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17969hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17970compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17971predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17972postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17973predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17974postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17975compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17976 17977LTCC='$LTCC' 17978LTCFLAGS='$LTCFLAGS' 17979compiler='$compiler_DEFAULT' 17980 17981# A function that is used when there is no print builtin or printf. 17982func_fallback_echo () 17983{ 17984 eval 'cat <<_LTECHO_EOF 17985\$1 17986_LTECHO_EOF' 17987} 17988 17989# Quote evaled strings. 17990for var in NM \ 17991SHELL \ 17992ECHO \ 17993PATH_SEPARATOR \ 17994SED \ 17995GREP \ 17996EGREP \ 17997FGREP \ 17998LD \ 17999LN_S \ 18000lt_SP2NL \ 18001lt_NL2SP \ 18002reload_flag \ 18003OBJDUMP \ 18004deplibs_check_method \ 18005file_magic_cmd \ 18006file_magic_glob \ 18007want_nocaseglob \ 18008DLLTOOL \ 18009sharedlib_from_linklib_cmd \ 18010AR \ 18011AR_FLAGS \ 18012archiver_list_spec \ 18013STRIP \ 18014RANLIB \ 18015CC \ 18016CFLAGS \ 18017compiler \ 18018lt_cv_sys_global_symbol_pipe \ 18019lt_cv_sys_global_symbol_to_cdecl \ 18020lt_cv_sys_global_symbol_to_import \ 18021lt_cv_sys_global_symbol_to_c_name_address \ 18022lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18023lt_cv_nm_interface \ 18024nm_file_list_spec \ 18025lt_cv_truncate_bin \ 18026lt_prog_compiler_no_builtin_flag \ 18027lt_prog_compiler_pic \ 18028lt_prog_compiler_wl \ 18029lt_prog_compiler_static \ 18030lt_cv_prog_compiler_c_o \ 18031need_locks \ 18032MANIFEST_TOOL \ 18033DSYMUTIL \ 18034NMEDIT \ 18035LIPO \ 18036OTOOL \ 18037OTOOL64 \ 18038shrext_cmds \ 18039export_dynamic_flag_spec \ 18040whole_archive_flag_spec \ 18041compiler_needs_object \ 18042with_gnu_ld \ 18043allow_undefined_flag \ 18044no_undefined_flag \ 18045hardcode_libdir_flag_spec \ 18046hardcode_libdir_separator \ 18047exclude_expsyms \ 18048include_expsyms \ 18049file_list_spec \ 18050variables_saved_for_relink \ 18051libname_spec \ 18052library_names_spec \ 18053soname_spec \ 18054install_override_mode \ 18055finish_eval \ 18056old_striplib \ 18057striplib \ 18058compiler_lib_search_dirs \ 18059predep_objects \ 18060postdep_objects \ 18061predeps \ 18062postdeps \ 18063compiler_lib_search_path \ 18064LD_CXX \ 18065reload_flag_CXX \ 18066compiler_CXX \ 18067lt_prog_compiler_no_builtin_flag_CXX \ 18068lt_prog_compiler_pic_CXX \ 18069lt_prog_compiler_wl_CXX \ 18070lt_prog_compiler_static_CXX \ 18071lt_cv_prog_compiler_c_o_CXX \ 18072export_dynamic_flag_spec_CXX \ 18073whole_archive_flag_spec_CXX \ 18074compiler_needs_object_CXX \ 18075with_gnu_ld_CXX \ 18076allow_undefined_flag_CXX \ 18077no_undefined_flag_CXX \ 18078hardcode_libdir_flag_spec_CXX \ 18079hardcode_libdir_separator_CXX \ 18080exclude_expsyms_CXX \ 18081include_expsyms_CXX \ 18082file_list_spec_CXX \ 18083compiler_lib_search_dirs_CXX \ 18084predep_objects_CXX \ 18085postdep_objects_CXX \ 18086predeps_CXX \ 18087postdeps_CXX \ 18088compiler_lib_search_path_CXX; do 18089 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18090 *[\\\\\\\`\\"\\\$]*) 18091 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18092 ;; 18093 *) 18094 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18095 ;; 18096 esac 18097done 18098 18099# Double-quote double-evaled strings. 18100for var in reload_cmds \ 18101old_postinstall_cmds \ 18102old_postuninstall_cmds \ 18103old_archive_cmds \ 18104extract_expsyms_cmds \ 18105old_archive_from_new_cmds \ 18106old_archive_from_expsyms_cmds \ 18107archive_cmds \ 18108archive_expsym_cmds \ 18109module_cmds \ 18110module_expsym_cmds \ 18111export_symbols_cmds \ 18112prelink_cmds \ 18113postlink_cmds \ 18114postinstall_cmds \ 18115postuninstall_cmds \ 18116finish_cmds \ 18117sys_lib_search_path_spec \ 18118configure_time_dlsearch_path \ 18119configure_time_lt_sys_library_path \ 18120reload_cmds_CXX \ 18121old_archive_cmds_CXX \ 18122old_archive_from_new_cmds_CXX \ 18123old_archive_from_expsyms_cmds_CXX \ 18124archive_cmds_CXX \ 18125archive_expsym_cmds_CXX \ 18126module_cmds_CXX \ 18127module_expsym_cmds_CXX \ 18128export_symbols_cmds_CXX \ 18129prelink_cmds_CXX \ 18130postlink_cmds_CXX; do 18131 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18132 *[\\\\\\\`\\"\\\$]*) 18133 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18134 ;; 18135 *) 18136 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18137 ;; 18138 esac 18139done 18140 18141ac_aux_dir='$ac_aux_dir' 18142 18143# See if we are running on zsh, and set the options that allow our 18144# commands through without removal of \ escapes INIT. 18145if test -n "\${ZSH_VERSION+set}"; then 18146 setopt NO_GLOB_SUBST 18147fi 18148 18149 18150 PACKAGE='$PACKAGE' 18151 VERSION='$VERSION' 18152 RM='$RM' 18153 ofile='$ofile' 18154 18155 18156 18157 18158 18159 18160_ACEOF 18161 18162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18163 18164# Handling of arguments. 18165for ac_config_target in $ac_config_targets 18166do 18167 case $ac_config_target in 18168 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18169 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18170 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18171 "src/wayland.dtd.embed") CONFIG_LINKS="$CONFIG_LINKS src/wayland.dtd.embed:protocol/wayland.dtd" ;; 18172 "doc/doxygen/wayland.doxygen") CONFIG_FILES="$CONFIG_FILES doc/doxygen/wayland.doxygen" ;; 18173 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18174 "cursor/wayland-cursor.pc") CONFIG_FILES="$CONFIG_FILES cursor/wayland-cursor.pc" ;; 18175 "cursor/wayland-cursor-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES cursor/wayland-cursor-uninstalled.pc" ;; 18176 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 18177 "doc/publican/Makefile") CONFIG_FILES="$CONFIG_FILES doc/publican/Makefile" ;; 18178 "doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;; 18179 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; 18180 "egl/wayland-egl.pc") CONFIG_FILES="$CONFIG_FILES egl/wayland-egl.pc" ;; 18181 "egl/wayland-egl-backend.pc") CONFIG_FILES="$CONFIG_FILES egl/wayland-egl-backend.pc" ;; 18182 "src/wayland-server-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES src/wayland-server-uninstalled.pc" ;; 18183 "src/wayland-client-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES src/wayland-client-uninstalled.pc" ;; 18184 "src/wayland-scanner-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES src/wayland-scanner-uninstalled.pc" ;; 18185 "src/wayland-server.pc") CONFIG_FILES="$CONFIG_FILES src/wayland-server.pc" ;; 18186 "src/wayland-client.pc") CONFIG_FILES="$CONFIG_FILES src/wayland-client.pc" ;; 18187 "src/wayland-scanner.pc") CONFIG_FILES="$CONFIG_FILES src/wayland-scanner.pc" ;; 18188 "src/wayland-version.h") CONFIG_FILES="$CONFIG_FILES src/wayland-version.h" ;; 18189 18190 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18191 esac 18192done 18193 18194 18195# If the user did not use the arguments to specify the items to instantiate, 18196# then the envvar interface is used. Set only those that are not. 18197# We use the long form for the default assignment because of an extremely 18198# bizarre bug on SunOS 4.1.3. 18199if $ac_need_defaults; then 18200 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18201 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18202 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 18203 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18204fi 18205 18206# Have a temporary directory for convenience. Make it in the build tree 18207# simply because there is no reason against having it here, and in addition, 18208# creating and moving files from /tmp can sometimes cause problems. 18209# Hook for its removal unless debugging. 18210# Note that there is a small window in which the directory will not be cleaned: 18211# after its creation but before its name has been assigned to `$tmp'. 18212$debug || 18213{ 18214 tmp= ac_tmp= 18215 trap 'exit_status=$? 18216 : "${ac_tmp:=$tmp}" 18217 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18218' 0 18219 trap 'as_fn_exit 1' 1 2 13 15 18220} 18221# Create a (secure) tmp directory for tmp files. 18222 18223{ 18224 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18225 test -d "$tmp" 18226} || 18227{ 18228 tmp=./conf$$-$RANDOM 18229 (umask 077 && mkdir "$tmp") 18230} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18231ac_tmp=$tmp 18232 18233# Set up the scripts for CONFIG_FILES section. 18234# No need to generate them if there are no CONFIG_FILES. 18235# This happens for instance with `./config.status config.h'. 18236if test -n "$CONFIG_FILES"; then 18237 18238 18239ac_cr=`echo X | tr X '\015'` 18240# On cygwin, bash can eat \r inside `` if the user requested igncr. 18241# But we know of no other shell where ac_cr would be empty at this 18242# point, so we can use a bashism as a fallback. 18243if test "x$ac_cr" = x; then 18244 eval ac_cr=\$\'\\r\' 18245fi 18246ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18247if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18248 ac_cs_awk_cr='\\r' 18249else 18250 ac_cs_awk_cr=$ac_cr 18251fi 18252 18253echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18254_ACEOF 18255 18256 18257{ 18258 echo "cat >conf$$subs.awk <<_ACEOF" && 18259 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18260 echo "_ACEOF" 18261} >conf$$subs.sh || 18262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18263ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18264ac_delim='%!_!# ' 18265for ac_last_try in false false false false false :; do 18266 . ./conf$$subs.sh || 18267 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18268 18269 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18270 if test $ac_delim_n = $ac_delim_num; then 18271 break 18272 elif $ac_last_try; then 18273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18274 else 18275 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18276 fi 18277done 18278rm -f conf$$subs.sh 18279 18280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18281cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18282_ACEOF 18283sed -n ' 18284h 18285s/^/S["/; s/!.*/"]=/ 18286p 18287g 18288s/^[^!]*!// 18289:repl 18290t repl 18291s/'"$ac_delim"'$// 18292t delim 18293:nl 18294h 18295s/\(.\{148\}\)..*/\1/ 18296t more1 18297s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18298p 18299n 18300b repl 18301:more1 18302s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18303p 18304g 18305s/.\{148\}// 18306t nl 18307:delim 18308h 18309s/\(.\{148\}\)..*/\1/ 18310t more2 18311s/["\\]/\\&/g; s/^/"/; s/$/"/ 18312p 18313b 18314:more2 18315s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18316p 18317g 18318s/.\{148\}// 18319t delim 18320' <conf$$subs.awk | sed ' 18321/^[^""]/{ 18322 N 18323 s/\n// 18324} 18325' >>$CONFIG_STATUS || ac_write_fail=1 18326rm -f conf$$subs.awk 18327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18328_ACAWK 18329cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18330 for (key in S) S_is_set[key] = 1 18331 FS = "" 18332 18333} 18334{ 18335 line = $ 0 18336 nfields = split(line, field, "@") 18337 substed = 0 18338 len = length(field[1]) 18339 for (i = 2; i < nfields; i++) { 18340 key = field[i] 18341 keylen = length(key) 18342 if (S_is_set[key]) { 18343 value = S[key] 18344 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18345 len += length(value) + length(field[++i]) 18346 substed = 1 18347 } else 18348 len += 1 + keylen 18349 } 18350 18351 print line 18352} 18353 18354_ACAWK 18355_ACEOF 18356cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18357if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18358 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18359else 18360 cat 18361fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18362 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18363_ACEOF 18364 18365# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18366# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18367# trailing colons and then remove the whole line if VPATH becomes empty 18368# (actually we leave an empty line to preserve line numbers). 18369if test "x$srcdir" = x.; then 18370 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18371h 18372s/// 18373s/^/:/ 18374s/[ ]*$/:/ 18375s/:\$(srcdir):/:/g 18376s/:\${srcdir}:/:/g 18377s/:@srcdir@:/:/g 18378s/^:*// 18379s/:*$// 18380x 18381s/\(=[ ]*\).*/\1/ 18382G 18383s/\n// 18384s/^[^=]*=[ ]*$// 18385}' 18386fi 18387 18388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18389fi # test -n "$CONFIG_FILES" 18390 18391# Set up the scripts for CONFIG_HEADERS section. 18392# No need to generate them if there are no CONFIG_HEADERS. 18393# This happens for instance with `./config.status Makefile'. 18394if test -n "$CONFIG_HEADERS"; then 18395cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18396BEGIN { 18397_ACEOF 18398 18399# Transform confdefs.h into an awk script `defines.awk', embedded as 18400# here-document in config.status, that substitutes the proper values into 18401# config.h.in to produce config.h. 18402 18403# Create a delimiter string that does not exist in confdefs.h, to ease 18404# handling of long lines. 18405ac_delim='%!_!# ' 18406for ac_last_try in false false :; do 18407 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18408 if test -z "$ac_tt"; then 18409 break 18410 elif $ac_last_try; then 18411 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18412 else 18413 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18414 fi 18415done 18416 18417# For the awk script, D is an array of macro values keyed by name, 18418# likewise P contains macro parameters if any. Preserve backslash 18419# newline sequences. 18420 18421ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18422sed -n ' 18423s/.\{148\}/&'"$ac_delim"'/g 18424t rset 18425:rset 18426s/^[ ]*#[ ]*define[ ][ ]*/ / 18427t def 18428d 18429:def 18430s/\\$// 18431t bsnl 18432s/["\\]/\\&/g 18433s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18434D["\1"]=" \3"/p 18435s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18436d 18437:bsnl 18438s/["\\]/\\&/g 18439s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18440D["\1"]=" \3\\\\\\n"\\/p 18441t cont 18442s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18443t cont 18444d 18445:cont 18446n 18447s/.\{148\}/&'"$ac_delim"'/g 18448t clear 18449:clear 18450s/\\$// 18451t bsnlc 18452s/["\\]/\\&/g; s/^/"/; s/$/"/p 18453d 18454:bsnlc 18455s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18456b cont 18457' <confdefs.h | sed ' 18458s/'"$ac_delim"'/"\\\ 18459"/g' >>$CONFIG_STATUS || ac_write_fail=1 18460 18461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18462 for (key in D) D_is_set[key] = 1 18463 FS = "" 18464} 18465/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18466 line = \$ 0 18467 split(line, arg, " ") 18468 if (arg[1] == "#") { 18469 defundef = arg[2] 18470 mac1 = arg[3] 18471 } else { 18472 defundef = substr(arg[1], 2) 18473 mac1 = arg[2] 18474 } 18475 split(mac1, mac2, "(") #) 18476 macro = mac2[1] 18477 prefix = substr(line, 1, index(line, defundef) - 1) 18478 if (D_is_set[macro]) { 18479 # Preserve the white space surrounding the "#". 18480 print prefix "define", macro P[macro] D[macro] 18481 next 18482 } else { 18483 # Replace #undef with comments. This is necessary, for example, 18484 # in the case of _POSIX_SOURCE, which is predefined and required 18485 # on some systems where configure will not decide to define it. 18486 if (defundef == "undef") { 18487 print "/*", prefix defundef, macro, "*/" 18488 next 18489 } 18490 } 18491} 18492{ print } 18493_ACAWK 18494_ACEOF 18495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18496 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18497fi # test -n "$CONFIG_HEADERS" 18498 18499 18500eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 18501shift 18502for ac_tag 18503do 18504 case $ac_tag in 18505 :[FHLC]) ac_mode=$ac_tag; continue;; 18506 esac 18507 case $ac_mode$ac_tag in 18508 :[FHL]*:*);; 18509 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18510 :[FH]-) ac_tag=-:-;; 18511 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18512 esac 18513 ac_save_IFS=$IFS 18514 IFS=: 18515 set x $ac_tag 18516 IFS=$ac_save_IFS 18517 shift 18518 ac_file=$1 18519 shift 18520 18521 case $ac_mode in 18522 :L) ac_source=$1;; 18523 :[FH]) 18524 ac_file_inputs= 18525 for ac_f 18526 do 18527 case $ac_f in 18528 -) ac_f="$ac_tmp/stdin";; 18529 *) # Look for the file first in the build tree, then in the source tree 18530 # (if the path is not absolute). The absolute path cannot be DOS-style, 18531 # because $ac_f cannot contain `:'. 18532 test -f "$ac_f" || 18533 case $ac_f in 18534 [\\/$]*) false;; 18535 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18536 esac || 18537 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18538 esac 18539 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18540 as_fn_append ac_file_inputs " '$ac_f'" 18541 done 18542 18543 # Let's still pretend it is `configure' which instantiates (i.e., don't 18544 # use $as_me), people would be surprised to read: 18545 # /* config.h. Generated by config.status. */ 18546 configure_input='Generated from '` 18547 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18548 `' by configure.' 18549 if test x"$ac_file" != x-; then 18550 configure_input="$ac_file. $configure_input" 18551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18552$as_echo "$as_me: creating $ac_file" >&6;} 18553 fi 18554 # Neutralize special characters interpreted by sed in replacement strings. 18555 case $configure_input in #( 18556 *\&* | *\|* | *\\* ) 18557 ac_sed_conf_input=`$as_echo "$configure_input" | 18558 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18559 *) ac_sed_conf_input=$configure_input;; 18560 esac 18561 18562 case $ac_tag in 18563 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18565 esac 18566 ;; 18567 esac 18568 18569 ac_dir=`$as_dirname -- "$ac_file" || 18570$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18571 X"$ac_file" : 'X\(//\)[^/]' \| \ 18572 X"$ac_file" : 'X\(//\)$' \| \ 18573 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18574$as_echo X"$ac_file" | 18575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18576 s//\1/ 18577 q 18578 } 18579 /^X\(\/\/\)[^/].*/{ 18580 s//\1/ 18581 q 18582 } 18583 /^X\(\/\/\)$/{ 18584 s//\1/ 18585 q 18586 } 18587 /^X\(\/\).*/{ 18588 s//\1/ 18589 q 18590 } 18591 s/.*/./; q'` 18592 as_dir="$ac_dir"; as_fn_mkdir_p 18593 ac_builddir=. 18594 18595case "$ac_dir" in 18596.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18597*) 18598 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18599 # A ".." for each directory in $ac_dir_suffix. 18600 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18601 case $ac_top_builddir_sub in 18602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18604 esac ;; 18605esac 18606ac_abs_top_builddir=$ac_pwd 18607ac_abs_builddir=$ac_pwd$ac_dir_suffix 18608# for backward compatibility: 18609ac_top_builddir=$ac_top_build_prefix 18610 18611case $srcdir in 18612 .) # We are building in place. 18613 ac_srcdir=. 18614 ac_top_srcdir=$ac_top_builddir_sub 18615 ac_abs_top_srcdir=$ac_pwd ;; 18616 [\\/]* | ?:[\\/]* ) # Absolute name. 18617 ac_srcdir=$srcdir$ac_dir_suffix; 18618 ac_top_srcdir=$srcdir 18619 ac_abs_top_srcdir=$srcdir ;; 18620 *) # Relative name. 18621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18622 ac_top_srcdir=$ac_top_build_prefix$srcdir 18623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18624esac 18625ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18626 18627 18628 case $ac_mode in 18629 :F) 18630 # 18631 # CONFIG_FILE 18632 # 18633 18634 case $INSTALL in 18635 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18636 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18637 esac 18638 ac_MKDIR_P=$MKDIR_P 18639 case $MKDIR_P in 18640 [\\/$]* | ?:[\\/]* ) ;; 18641 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18642 esac 18643_ACEOF 18644 18645cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18646# If the template does not know about datarootdir, expand it. 18647# FIXME: This hack should be removed a few years after 2.60. 18648ac_datarootdir_hack=; ac_datarootdir_seen= 18649ac_sed_dataroot=' 18650/datarootdir/ { 18651 p 18652 q 18653} 18654/@datadir@/p 18655/@docdir@/p 18656/@infodir@/p 18657/@localedir@/p 18658/@mandir@/p' 18659case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18660*datarootdir*) ac_datarootdir_seen=yes;; 18661*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18663$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18664_ACEOF 18665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18666 ac_datarootdir_hack=' 18667 s&@datadir@&$datadir&g 18668 s&@docdir@&$docdir&g 18669 s&@infodir@&$infodir&g 18670 s&@localedir@&$localedir&g 18671 s&@mandir@&$mandir&g 18672 s&\\\${datarootdir}&$datarootdir&g' ;; 18673esac 18674_ACEOF 18675 18676# Neutralize VPATH when `$srcdir' = `.'. 18677# Shell code in configure.ac might set extrasub. 18678# FIXME: do we really want to maintain this feature? 18679cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18680ac_sed_extra="$ac_vpsub 18681$extrasub 18682_ACEOF 18683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18684:t 18685/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18686s|@configure_input@|$ac_sed_conf_input|;t t 18687s&@top_builddir@&$ac_top_builddir_sub&;t t 18688s&@top_build_prefix@&$ac_top_build_prefix&;t t 18689s&@srcdir@&$ac_srcdir&;t t 18690s&@abs_srcdir@&$ac_abs_srcdir&;t t 18691s&@top_srcdir@&$ac_top_srcdir&;t t 18692s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18693s&@builddir@&$ac_builddir&;t t 18694s&@abs_builddir@&$ac_abs_builddir&;t t 18695s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18696s&@INSTALL@&$ac_INSTALL&;t t 18697s&@MKDIR_P@&$ac_MKDIR_P&;t t 18698$ac_datarootdir_hack 18699" 18700eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18701 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18702 18703test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18704 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18705 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18706 "$ac_tmp/out"`; test -z "$ac_out"; } && 18707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18708which seems to be undefined. Please make sure it is defined" >&5 18709$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18710which seems to be undefined. Please make sure it is defined" >&2;} 18711 18712 rm -f "$ac_tmp/stdin" 18713 case $ac_file in 18714 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18715 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18716 esac \ 18717 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18718 ;; 18719 :H) 18720 # 18721 # CONFIG_HEADER 18722 # 18723 if test x"$ac_file" != x-; then 18724 { 18725 $as_echo "/* $configure_input */" \ 18726 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18727 } >"$ac_tmp/config.h" \ 18728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18729 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18730 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18731$as_echo "$as_me: $ac_file is unchanged" >&6;} 18732 else 18733 rm -f "$ac_file" 18734 mv "$ac_tmp/config.h" "$ac_file" \ 18735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18736 fi 18737 else 18738 $as_echo "/* $configure_input */" \ 18739 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18740 || as_fn_error $? "could not create -" "$LINENO" 5 18741 fi 18742# Compute "$ac_file"'s index in $config_headers. 18743_am_arg="$ac_file" 18744_am_stamp_count=1 18745for _am_header in $config_headers :; do 18746 case $_am_header in 18747 $_am_arg | $_am_arg:* ) 18748 break ;; 18749 * ) 18750 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18751 esac 18752done 18753echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18754$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18755 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18756 X"$_am_arg" : 'X\(//\)$' \| \ 18757 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18758$as_echo X"$_am_arg" | 18759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18760 s//\1/ 18761 q 18762 } 18763 /^X\(\/\/\)[^/].*/{ 18764 s//\1/ 18765 q 18766 } 18767 /^X\(\/\/\)$/{ 18768 s//\1/ 18769 q 18770 } 18771 /^X\(\/\).*/{ 18772 s//\1/ 18773 q 18774 } 18775 s/.*/./; q'`/stamp-h$_am_stamp_count 18776 ;; 18777 :L) 18778 # 18779 # CONFIG_LINK 18780 # 18781 18782 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 18783 : 18784 else 18785 # Prefer the file from the source tree if names are identical. 18786 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 18787 ac_source=$srcdir/$ac_source 18788 fi 18789 18790 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 18791$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 18792 18793 if test ! -r "$ac_source"; then 18794 as_fn_error $? "$ac_source: file not found" "$LINENO" 5 18795 fi 18796 rm -f "$ac_file" 18797 18798 # Try a relative symlink, then a hard link, then a copy. 18799 case $ac_source in 18800 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 18801 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 18802 esac 18803 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 18804 ln "$ac_source" "$ac_file" 2>/dev/null || 18805 cp -p "$ac_source" "$ac_file" || 18806 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 18807 fi 18808 ;; 18809 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18810$as_echo "$as_me: executing $ac_file commands" >&6;} 18811 ;; 18812 esac 18813 18814 18815 case $ac_file$ac_mode in 18816 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18817 # Older Autoconf quotes --file arguments for eval, but not when files 18818 # are listed without --file. Let's play safe and only enable the eval 18819 # if we detect the quoting. 18820 case $CONFIG_FILES in 18821 *\'*) eval set x "$CONFIG_FILES" ;; 18822 *) set x $CONFIG_FILES ;; 18823 esac 18824 shift 18825 for mf 18826 do 18827 # Strip MF so we end up with the name of the file. 18828 mf=`echo "$mf" | sed -e 's/:.*$//'` 18829 # Check whether this is an Automake generated Makefile or not. 18830 # We used to match only the files named 'Makefile.in', but 18831 # some people rename them; so instead we look at the file content. 18832 # Grep'ing the first line is not enough: some people post-process 18833 # each Makefile.in and add a new line on top of each file to say so. 18834 # Grep'ing the whole file is not good either: AIX grep has a line 18835 # limit of 2048, but all sed's we know have understand at least 4000. 18836 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18837 dirpart=`$as_dirname -- "$mf" || 18838$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18839 X"$mf" : 'X\(//\)[^/]' \| \ 18840 X"$mf" : 'X\(//\)$' \| \ 18841 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18842$as_echo X"$mf" | 18843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18844 s//\1/ 18845 q 18846 } 18847 /^X\(\/\/\)[^/].*/{ 18848 s//\1/ 18849 q 18850 } 18851 /^X\(\/\/\)$/{ 18852 s//\1/ 18853 q 18854 } 18855 /^X\(\/\).*/{ 18856 s//\1/ 18857 q 18858 } 18859 s/.*/./; q'` 18860 else 18861 continue 18862 fi 18863 # Extract the definition of DEPDIR, am__include, and am__quote 18864 # from the Makefile without running 'make'. 18865 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18866 test -z "$DEPDIR" && continue 18867 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18868 test -z "$am__include" && continue 18869 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18870 # Find all dependency output files, they are included files with 18871 # $(DEPDIR) in their names. We invoke sed twice because it is the 18872 # simplest approach to changing $(DEPDIR) to its actual value in the 18873 # expansion. 18874 for file in `sed -n " 18875 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18876 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18877 # Make sure the directory exists. 18878 test -f "$dirpart/$file" && continue 18879 fdir=`$as_dirname -- "$file" || 18880$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18881 X"$file" : 'X\(//\)[^/]' \| \ 18882 X"$file" : 'X\(//\)$' \| \ 18883 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18884$as_echo X"$file" | 18885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18886 s//\1/ 18887 q 18888 } 18889 /^X\(\/\/\)[^/].*/{ 18890 s//\1/ 18891 q 18892 } 18893 /^X\(\/\/\)$/{ 18894 s//\1/ 18895 q 18896 } 18897 /^X\(\/\).*/{ 18898 s//\1/ 18899 q 18900 } 18901 s/.*/./; q'` 18902 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18903 # echo "creating $dirpart/$file" 18904 echo '# dummy' > "$dirpart/$file" 18905 done 18906 done 18907} 18908 ;; 18909 "libtool":C) 18910 18911 # See if we are running on zsh, and set the options that allow our 18912 # commands through without removal of \ escapes. 18913 if test -n "${ZSH_VERSION+set}"; then 18914 setopt NO_GLOB_SUBST 18915 fi 18916 18917 cfgfile=${ofile}T 18918 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18919 $RM "$cfgfile" 18920 18921 cat <<_LT_EOF >> "$cfgfile" 18922#! $SHELL 18923# Generated automatically by $as_me ($PACKAGE) $VERSION 18924# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18925# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18926 18927# Provide generalized library-building support services. 18928# Written by Gordon Matzigkeit, 1996 18929 18930# Copyright (C) 2014 Free Software Foundation, Inc. 18931# This is free software; see the source for copying conditions. There is NO 18932# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18933 18934# GNU Libtool is free software; you can redistribute it and/or modify 18935# it under the terms of the GNU General Public License as published by 18936# the Free Software Foundation; either version 2 of of the License, or 18937# (at your option) any later version. 18938# 18939# As a special exception to the GNU General Public License, if you 18940# distribute this file as part of a program or library that is built 18941# using GNU Libtool, you may include this file under the same 18942# distribution terms that you use for the rest of that program. 18943# 18944# GNU Libtool is distributed in the hope that it will be useful, but 18945# WITHOUT ANY WARRANTY; without even the implied warranty of 18946# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18947# GNU General Public License for more details. 18948# 18949# You should have received a copy of the GNU General Public License 18950# along with this program. If not, see <http://www.gnu.org/licenses/>. 18951 18952 18953# The names of the tagged configurations supported by this script. 18954available_tags='CXX ' 18955 18956# Configured defaults for sys_lib_dlsearch_path munging. 18957: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18958 18959# ### BEGIN LIBTOOL CONFIG 18960 18961# A BSD- or MS-compatible name lister. 18962NM=$lt_NM 18963 18964# Which release of libtool.m4 was used? 18965macro_version=$macro_version 18966macro_revision=$macro_revision 18967 18968# Whether or not to build static libraries. 18969build_old_libs=$enable_static 18970 18971# Whether or not to build shared libraries. 18972build_libtool_libs=$enable_shared 18973 18974# What type of objects to build. 18975pic_mode=$pic_mode 18976 18977# Whether or not to optimize for fast installation. 18978fast_install=$enable_fast_install 18979 18980# Shared archive member basename,for filename based shared library versioning on AIX. 18981shared_archive_member_spec=$shared_archive_member_spec 18982 18983# Shell to use when invoking shell scripts. 18984SHELL=$lt_SHELL 18985 18986# An echo program that protects backslashes. 18987ECHO=$lt_ECHO 18988 18989# The PATH separator for the build system. 18990PATH_SEPARATOR=$lt_PATH_SEPARATOR 18991 18992# The host system. 18993host_alias=$host_alias 18994host=$host 18995host_os=$host_os 18996 18997# The build system. 18998build_alias=$build_alias 18999build=$build 19000build_os=$build_os 19001 19002# A sed program that does not truncate output. 19003SED=$lt_SED 19004 19005# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19006Xsed="\$SED -e 1s/^X//" 19007 19008# A grep program that handles long lines. 19009GREP=$lt_GREP 19010 19011# An ERE matcher. 19012EGREP=$lt_EGREP 19013 19014# A literal string matcher. 19015FGREP=$lt_FGREP 19016 19017# Whether we need soft or hard links. 19018LN_S=$lt_LN_S 19019 19020# What is the maximum length of a command? 19021max_cmd_len=$max_cmd_len 19022 19023# Object file suffix (normally "o"). 19024objext=$ac_objext 19025 19026# Executable file suffix (normally ""). 19027exeext=$exeext 19028 19029# whether the shell understands "unset". 19030lt_unset=$lt_unset 19031 19032# turn spaces into newlines. 19033SP2NL=$lt_lt_SP2NL 19034 19035# turn newlines into spaces. 19036NL2SP=$lt_lt_NL2SP 19037 19038# convert \$build file names to \$host format. 19039to_host_file_cmd=$lt_cv_to_host_file_cmd 19040 19041# convert \$build files to toolchain format. 19042to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19043 19044# An object symbol dumper. 19045OBJDUMP=$lt_OBJDUMP 19046 19047# Method to check whether dependent libraries are shared objects. 19048deplibs_check_method=$lt_deplibs_check_method 19049 19050# Command to use when deplibs_check_method = "file_magic". 19051file_magic_cmd=$lt_file_magic_cmd 19052 19053# How to find potential files when deplibs_check_method = "file_magic". 19054file_magic_glob=$lt_file_magic_glob 19055 19056# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19057want_nocaseglob=$lt_want_nocaseglob 19058 19059# DLL creation program. 19060DLLTOOL=$lt_DLLTOOL 19061 19062# Command to associate shared and link libraries. 19063sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19064 19065# The archiver. 19066AR=$lt_AR 19067 19068# Flags to create an archive. 19069AR_FLAGS=$lt_AR_FLAGS 19070 19071# How to feed a file listing to the archiver. 19072archiver_list_spec=$lt_archiver_list_spec 19073 19074# A symbol stripping program. 19075STRIP=$lt_STRIP 19076 19077# Commands used to install an old-style archive. 19078RANLIB=$lt_RANLIB 19079old_postinstall_cmds=$lt_old_postinstall_cmds 19080old_postuninstall_cmds=$lt_old_postuninstall_cmds 19081 19082# Whether to use a lock for old archive extraction. 19083lock_old_archive_extraction=$lock_old_archive_extraction 19084 19085# A C compiler. 19086LTCC=$lt_CC 19087 19088# LTCC compiler flags. 19089LTCFLAGS=$lt_CFLAGS 19090 19091# Take the output of nm and produce a listing of raw symbols and C names. 19092global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19093 19094# Transform the output of nm in a proper C declaration. 19095global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19096 19097# Transform the output of nm into a list of symbols to manually relocate. 19098global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19099 19100# Transform the output of nm in a C name address pair. 19101global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19102 19103# Transform the output of nm in a C name address pair when lib prefix is needed. 19104global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19105 19106# The name lister interface. 19107nm_interface=$lt_lt_cv_nm_interface 19108 19109# Specify filename containing input files for \$NM. 19110nm_file_list_spec=$lt_nm_file_list_spec 19111 19112# The root where to search for dependent libraries,and where our libraries should be installed. 19113lt_sysroot=$lt_sysroot 19114 19115# Command to truncate a binary pipe. 19116lt_truncate_bin=$lt_lt_cv_truncate_bin 19117 19118# The name of the directory that contains temporary libtool files. 19119objdir=$objdir 19120 19121# Used to examine libraries when file_magic_cmd begins with "file". 19122MAGIC_CMD=$MAGIC_CMD 19123 19124# Must we lock files when doing compilation? 19125need_locks=$lt_need_locks 19126 19127# Manifest tool. 19128MANIFEST_TOOL=$lt_MANIFEST_TOOL 19129 19130# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19131DSYMUTIL=$lt_DSYMUTIL 19132 19133# Tool to change global to local symbols on Mac OS X. 19134NMEDIT=$lt_NMEDIT 19135 19136# Tool to manipulate fat objects and archives on Mac OS X. 19137LIPO=$lt_LIPO 19138 19139# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19140OTOOL=$lt_OTOOL 19141 19142# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19143OTOOL64=$lt_OTOOL64 19144 19145# Old archive suffix (normally "a"). 19146libext=$libext 19147 19148# Shared library suffix (normally ".so"). 19149shrext_cmds=$lt_shrext_cmds 19150 19151# The commands to extract the exported symbol list from a shared archive. 19152extract_expsyms_cmds=$lt_extract_expsyms_cmds 19153 19154# Variables whose values should be saved in libtool wrapper scripts and 19155# restored at link time. 19156variables_saved_for_relink=$lt_variables_saved_for_relink 19157 19158# Do we need the "lib" prefix for modules? 19159need_lib_prefix=$need_lib_prefix 19160 19161# Do we need a version for libraries? 19162need_version=$need_version 19163 19164# Library versioning type. 19165version_type=$version_type 19166 19167# Shared library runtime path variable. 19168runpath_var=$runpath_var 19169 19170# Shared library path variable. 19171shlibpath_var=$shlibpath_var 19172 19173# Is shlibpath searched before the hard-coded library search path? 19174shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19175 19176# Format of library name prefix. 19177libname_spec=$lt_libname_spec 19178 19179# List of archive names. First name is the real one, the rest are links. 19180# The last name is the one that the linker finds with -lNAME 19181library_names_spec=$lt_library_names_spec 19182 19183# The coded name of the library, if different from the real name. 19184soname_spec=$lt_soname_spec 19185 19186# Permission mode override for installation of shared libraries. 19187install_override_mode=$lt_install_override_mode 19188 19189# Command to use after installation of a shared archive. 19190postinstall_cmds=$lt_postinstall_cmds 19191 19192# Command to use after uninstallation of a shared archive. 19193postuninstall_cmds=$lt_postuninstall_cmds 19194 19195# Commands used to finish a libtool library installation in a directory. 19196finish_cmds=$lt_finish_cmds 19197 19198# As "finish_cmds", except a single script fragment to be evaled but 19199# not shown. 19200finish_eval=$lt_finish_eval 19201 19202# Whether we should hardcode library paths into libraries. 19203hardcode_into_libs=$hardcode_into_libs 19204 19205# Compile-time system search path for libraries. 19206sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19207 19208# Detected run-time system search path for libraries. 19209sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19210 19211# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19212configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19213 19214# Whether dlopen is supported. 19215dlopen_support=$enable_dlopen 19216 19217# Whether dlopen of programs is supported. 19218dlopen_self=$enable_dlopen_self 19219 19220# Whether dlopen of statically linked programs is supported. 19221dlopen_self_static=$enable_dlopen_self_static 19222 19223# Commands to strip libraries. 19224old_striplib=$lt_old_striplib 19225striplib=$lt_striplib 19226 19227 19228# The linker used to build libraries. 19229LD=$lt_LD 19230 19231# How to create reloadable object files. 19232reload_flag=$lt_reload_flag 19233reload_cmds=$lt_reload_cmds 19234 19235# Commands used to build an old-style archive. 19236old_archive_cmds=$lt_old_archive_cmds 19237 19238# A language specific compiler. 19239CC=$lt_compiler 19240 19241# Is the compiler the GNU compiler? 19242with_gcc=$GCC 19243 19244# Compiler flag to turn off builtin functions. 19245no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19246 19247# Additional compiler flags for building library objects. 19248pic_flag=$lt_lt_prog_compiler_pic 19249 19250# How to pass a linker flag through the compiler. 19251wl=$lt_lt_prog_compiler_wl 19252 19253# Compiler flag to prevent dynamic linking. 19254link_static_flag=$lt_lt_prog_compiler_static 19255 19256# Does compiler simultaneously support -c and -o options? 19257compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19258 19259# Whether or not to add -lc for building shared libraries. 19260build_libtool_need_lc=$archive_cmds_need_lc 19261 19262# Whether or not to disallow shared libs when runtime libs are static. 19263allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19264 19265# Compiler flag to allow reflexive dlopens. 19266export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19267 19268# Compiler flag to generate shared objects directly from archives. 19269whole_archive_flag_spec=$lt_whole_archive_flag_spec 19270 19271# Whether the compiler copes with passing no objects directly. 19272compiler_needs_object=$lt_compiler_needs_object 19273 19274# Create an old-style archive from a shared archive. 19275old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19276 19277# Create a temporary old-style archive to link instead of a shared archive. 19278old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19279 19280# Commands used to build a shared archive. 19281archive_cmds=$lt_archive_cmds 19282archive_expsym_cmds=$lt_archive_expsym_cmds 19283 19284# Commands used to build a loadable module if different from building 19285# a shared archive. 19286module_cmds=$lt_module_cmds 19287module_expsym_cmds=$lt_module_expsym_cmds 19288 19289# Whether we are building with GNU ld or not. 19290with_gnu_ld=$lt_with_gnu_ld 19291 19292# Flag that allows shared libraries with undefined symbols to be built. 19293allow_undefined_flag=$lt_allow_undefined_flag 19294 19295# Flag that enforces no undefined symbols. 19296no_undefined_flag=$lt_no_undefined_flag 19297 19298# Flag to hardcode \$libdir into a binary during linking. 19299# This must work even if \$libdir does not exist 19300hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19301 19302# Whether we need a single "-rpath" flag with a separated argument. 19303hardcode_libdir_separator=$lt_hardcode_libdir_separator 19304 19305# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19306# DIR into the resulting binary. 19307hardcode_direct=$hardcode_direct 19308 19309# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19310# DIR into the resulting binary and the resulting library dependency is 19311# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19312# library is relocated. 19313hardcode_direct_absolute=$hardcode_direct_absolute 19314 19315# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19316# into the resulting binary. 19317hardcode_minus_L=$hardcode_minus_L 19318 19319# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19320# into the resulting binary. 19321hardcode_shlibpath_var=$hardcode_shlibpath_var 19322 19323# Set to "yes" if building a shared library automatically hardcodes DIR 19324# into the library and all subsequent libraries and executables linked 19325# against it. 19326hardcode_automatic=$hardcode_automatic 19327 19328# Set to yes if linker adds runtime paths of dependent libraries 19329# to runtime path list. 19330inherit_rpath=$inherit_rpath 19331 19332# Whether libtool must link a program against all its dependency libraries. 19333link_all_deplibs=$link_all_deplibs 19334 19335# Set to "yes" if exported symbols are required. 19336always_export_symbols=$always_export_symbols 19337 19338# The commands to list exported symbols. 19339export_symbols_cmds=$lt_export_symbols_cmds 19340 19341# Symbols that should not be listed in the preloaded symbols. 19342exclude_expsyms=$lt_exclude_expsyms 19343 19344# Symbols that must always be exported. 19345include_expsyms=$lt_include_expsyms 19346 19347# Commands necessary for linking programs (against libraries) with templates. 19348prelink_cmds=$lt_prelink_cmds 19349 19350# Commands necessary for finishing linking programs. 19351postlink_cmds=$lt_postlink_cmds 19352 19353# Specify filename containing input files. 19354file_list_spec=$lt_file_list_spec 19355 19356# How to hardcode a shared library path into an executable. 19357hardcode_action=$hardcode_action 19358 19359# The directories searched by this compiler when creating a shared library. 19360compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19361 19362# Dependencies to place before and after the objects being linked to 19363# create a shared library. 19364predep_objects=$lt_predep_objects 19365postdep_objects=$lt_postdep_objects 19366predeps=$lt_predeps 19367postdeps=$lt_postdeps 19368 19369# The library search path used internally by the compiler when linking 19370# a shared library. 19371compiler_lib_search_path=$lt_compiler_lib_search_path 19372 19373# ### END LIBTOOL CONFIG 19374 19375_LT_EOF 19376 19377 cat <<'_LT_EOF' >> "$cfgfile" 19378 19379# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19380 19381# func_munge_path_list VARIABLE PATH 19382# ----------------------------------- 19383# VARIABLE is name of variable containing _space_ separated list of 19384# directories to be munged by the contents of PATH, which is string 19385# having a format: 19386# "DIR[:DIR]:" 19387# string "DIR[ DIR]" will be prepended to VARIABLE 19388# ":DIR[:DIR]" 19389# string "DIR[ DIR]" will be appended to VARIABLE 19390# "DIRP[:DIRP]::[DIRA:]DIRA" 19391# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19392# "DIRA[ DIRA]" will be appended to VARIABLE 19393# "DIR[:DIR]" 19394# VARIABLE will be replaced by "DIR[ DIR]" 19395func_munge_path_list () 19396{ 19397 case x$2 in 19398 x) 19399 ;; 19400 *:) 19401 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19402 ;; 19403 x:*) 19404 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19405 ;; 19406 *::*) 19407 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19408 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19409 ;; 19410 *) 19411 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19412 ;; 19413 esac 19414} 19415 19416 19417# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19418func_cc_basename () 19419{ 19420 for cc_temp in $*""; do 19421 case $cc_temp in 19422 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19423 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19424 \-*) ;; 19425 *) break;; 19426 esac 19427 done 19428 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19429} 19430 19431 19432# ### END FUNCTIONS SHARED WITH CONFIGURE 19433 19434_LT_EOF 19435 19436 case $host_os in 19437 aix3*) 19438 cat <<\_LT_EOF >> "$cfgfile" 19439# AIX sometimes has problems with the GCC collect2 program. For some 19440# reason, if we set the COLLECT_NAMES environment variable, the problems 19441# vanish in a puff of smoke. 19442if test set != "${COLLECT_NAMES+set}"; then 19443 COLLECT_NAMES= 19444 export COLLECT_NAMES 19445fi 19446_LT_EOF 19447 ;; 19448 esac 19449 19450 19451ltmain=$ac_aux_dir/ltmain.sh 19452 19453 19454 # We use sed instead of cat because bash on DJGPP gets confused if 19455 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19456 # text mode, it properly converts lines to CR/LF. This bash problem 19457 # is reportedly fixed, but why not run on old versions too? 19458 sed '$q' "$ltmain" >> "$cfgfile" \ 19459 || (rm -f "$cfgfile"; exit 1) 19460 19461 mv -f "$cfgfile" "$ofile" || 19462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19463 chmod +x "$ofile" 19464 19465 19466 cat <<_LT_EOF >> "$ofile" 19467 19468# ### BEGIN LIBTOOL TAG CONFIG: CXX 19469 19470# The linker used to build libraries. 19471LD=$lt_LD_CXX 19472 19473# How to create reloadable object files. 19474reload_flag=$lt_reload_flag_CXX 19475reload_cmds=$lt_reload_cmds_CXX 19476 19477# Commands used to build an old-style archive. 19478old_archive_cmds=$lt_old_archive_cmds_CXX 19479 19480# A language specific compiler. 19481CC=$lt_compiler_CXX 19482 19483# Is the compiler the GNU compiler? 19484with_gcc=$GCC_CXX 19485 19486# Compiler flag to turn off builtin functions. 19487no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19488 19489# Additional compiler flags for building library objects. 19490pic_flag=$lt_lt_prog_compiler_pic_CXX 19491 19492# How to pass a linker flag through the compiler. 19493wl=$lt_lt_prog_compiler_wl_CXX 19494 19495# Compiler flag to prevent dynamic linking. 19496link_static_flag=$lt_lt_prog_compiler_static_CXX 19497 19498# Does compiler simultaneously support -c and -o options? 19499compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19500 19501# Whether or not to add -lc for building shared libraries. 19502build_libtool_need_lc=$archive_cmds_need_lc_CXX 19503 19504# Whether or not to disallow shared libs when runtime libs are static. 19505allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19506 19507# Compiler flag to allow reflexive dlopens. 19508export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19509 19510# Compiler flag to generate shared objects directly from archives. 19511whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19512 19513# Whether the compiler copes with passing no objects directly. 19514compiler_needs_object=$lt_compiler_needs_object_CXX 19515 19516# Create an old-style archive from a shared archive. 19517old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19518 19519# Create a temporary old-style archive to link instead of a shared archive. 19520old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19521 19522# Commands used to build a shared archive. 19523archive_cmds=$lt_archive_cmds_CXX 19524archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19525 19526# Commands used to build a loadable module if different from building 19527# a shared archive. 19528module_cmds=$lt_module_cmds_CXX 19529module_expsym_cmds=$lt_module_expsym_cmds_CXX 19530 19531# Whether we are building with GNU ld or not. 19532with_gnu_ld=$lt_with_gnu_ld_CXX 19533 19534# Flag that allows shared libraries with undefined symbols to be built. 19535allow_undefined_flag=$lt_allow_undefined_flag_CXX 19536 19537# Flag that enforces no undefined symbols. 19538no_undefined_flag=$lt_no_undefined_flag_CXX 19539 19540# Flag to hardcode \$libdir into a binary during linking. 19541# This must work even if \$libdir does not exist 19542hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19543 19544# Whether we need a single "-rpath" flag with a separated argument. 19545hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19546 19547# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19548# DIR into the resulting binary. 19549hardcode_direct=$hardcode_direct_CXX 19550 19551# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19552# DIR into the resulting binary and the resulting library dependency is 19553# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19554# library is relocated. 19555hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19556 19557# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19558# into the resulting binary. 19559hardcode_minus_L=$hardcode_minus_L_CXX 19560 19561# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19562# into the resulting binary. 19563hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19564 19565# Set to "yes" if building a shared library automatically hardcodes DIR 19566# into the library and all subsequent libraries and executables linked 19567# against it. 19568hardcode_automatic=$hardcode_automatic_CXX 19569 19570# Set to yes if linker adds runtime paths of dependent libraries 19571# to runtime path list. 19572inherit_rpath=$inherit_rpath_CXX 19573 19574# Whether libtool must link a program against all its dependency libraries. 19575link_all_deplibs=$link_all_deplibs_CXX 19576 19577# Set to "yes" if exported symbols are required. 19578always_export_symbols=$always_export_symbols_CXX 19579 19580# The commands to list exported symbols. 19581export_symbols_cmds=$lt_export_symbols_cmds_CXX 19582 19583# Symbols that should not be listed in the preloaded symbols. 19584exclude_expsyms=$lt_exclude_expsyms_CXX 19585 19586# Symbols that must always be exported. 19587include_expsyms=$lt_include_expsyms_CXX 19588 19589# Commands necessary for linking programs (against libraries) with templates. 19590prelink_cmds=$lt_prelink_cmds_CXX 19591 19592# Commands necessary for finishing linking programs. 19593postlink_cmds=$lt_postlink_cmds_CXX 19594 19595# Specify filename containing input files. 19596file_list_spec=$lt_file_list_spec_CXX 19597 19598# How to hardcode a shared library path into an executable. 19599hardcode_action=$hardcode_action_CXX 19600 19601# The directories searched by this compiler when creating a shared library. 19602compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19603 19604# Dependencies to place before and after the objects being linked to 19605# create a shared library. 19606predep_objects=$lt_predep_objects_CXX 19607postdep_objects=$lt_postdep_objects_CXX 19608predeps=$lt_predeps_CXX 19609postdeps=$lt_postdeps_CXX 19610 19611# The library search path used internally by the compiler when linking 19612# a shared library. 19613compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19614 19615# ### END LIBTOOL TAG CONFIG: CXX 19616_LT_EOF 19617 19618 ;; 19619 19620 esac 19621done # for ac_tag 19622 19623 19624as_fn_exit 0 19625_ACEOF 19626ac_clean_files=$ac_clean_files_save 19627 19628test $ac_write_fail = 0 || 19629 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19630 19631 19632# configure is writing to config.log, and then calls config.status. 19633# config.status does its own redirection, appending to config.log. 19634# Unfortunately, on DOS this fails, as config.log is still kept open 19635# by configure, so config.status won't be able to write to it; its 19636# output is simply discarded. So we exec the FD to /dev/null, 19637# effectively closing config.log, so it can be properly (re)opened and 19638# appended to by config.status. When coming back to configure, we 19639# need to make the FD available again. 19640if test "$no_create" != yes; then 19641 ac_cs_success=: 19642 ac_config_status_args= 19643 test "$silent" = yes && 19644 ac_config_status_args="$ac_config_status_args --quiet" 19645 exec 5>/dev/null 19646 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19647 exec 5>>config.log 19648 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19649 # would make configure fail if this is the last instruction. 19650 $ac_cs_success || as_fn_exit 1 19651fi 19652if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19654$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19655fi 19656 19657