1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for SoundTouch 1.7.0. 4# 5# Report bugs to <http://www.surina.net/soundtouch>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: http://www.surina.net/soundtouch about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='SoundTouch' 592PACKAGE_TARNAME='soundtouch' 593PACKAGE_VERSION='1.7.0' 594PACKAGE_STRING='SoundTouch 1.7.0' 595PACKAGE_BUGREPORT='http://www.surina.net/soundtouch' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638HAVE_SSE_FALSE 639HAVE_SSE_TRUE 640HAVE_MMX_FALSE 641HAVE_MMX_TRUE 642X86_OPTIMIZATIONS_FALSE 643X86_OPTIMIZATIONS_TRUE 644OTOOL64 645OTOOL 646LIPO 647NMEDIT 648DSYMUTIL 649MANIFEST_TOOL 650RANLIB 651ac_ct_AR 652AR 653DLLTOOL 654OBJDUMP 655LN_S 656NM 657ac_ct_DUMPBIN 658DUMPBIN 659LD 660FGREP 661EGREP 662GREP 663SED 664host_os 665host_vendor 666host_cpu 667host 668build_os 669build_vendor 670build_cpu 671build 672LIBTOOL 673CXXCPP 674CPP 675am__fastdepCC_FALSE 676am__fastdepCC_TRUE 677CCDEPMODE 678ac_ct_CC 679CFLAGS 680CC 681am__fastdepCXX_FALSE 682am__fastdepCXX_TRUE 683CXXDEPMODE 684am__nodep 685AMDEPBACKSLASH 686AMDEP_FALSE 687AMDEP_TRUE 688am__quote 689am__include 690DEPDIR 691OBJEXT 692EXEEXT 693ac_ct_CXX 694CPPFLAGS 695LDFLAGS 696CXXFLAGS 697CXX 698MAINT 699MAINTAINER_MODE_FALSE 700MAINTAINER_MODE_TRUE 701AM_BACKSLASH 702AM_DEFAULT_VERBOSITY 703AM_DEFAULT_V 704AM_V 705am__untar 706am__tar 707AMTAR 708am__leading_dot 709SET_MAKE 710AWK 711mkdir_p 712MKDIR_P 713INSTALL_STRIP_PROGRAM 714STRIP 715install_sh 716MAKEINFO 717AUTOHEADER 718AUTOMAKE 719AUTOCONF 720ACLOCAL 721VERSION 722PACKAGE 723CYGPATH_W 724am__isrc 725INSTALL_DATA 726INSTALL_SCRIPT 727INSTALL_PROGRAM 728target_alias 729host_alias 730build_alias 731LIBS 732ECHO_T 733ECHO_N 734ECHO_C 735DEFS 736mandir 737localedir 738libdir 739psdir 740pdfdir 741dvidir 742htmldir 743infodir 744docdir 745oldincludedir 746includedir 747localstatedir 748sharedstatedir 749sysconfdir 750datadir 751datarootdir 752libexecdir 753sbindir 754bindir 755program_transform_name 756prefix 757exec_prefix 758PACKAGE_URL 759PACKAGE_BUGREPORT 760PACKAGE_STRING 761PACKAGE_VERSION 762PACKAGE_TARNAME 763PACKAGE_NAME 764PATH_SEPARATOR 765SHELL' 766ac_subst_files='' 767ac_user_opts=' 768enable_option_checking 769enable_silent_rules 770enable_maintainer_mode 771enable_static 772enable_dependency_tracking 773enable_shared 774with_pic 775enable_fast_install 776with_gnu_ld 777with_sysroot 778enable_libtool_lock 779enable_integer_samples 780enable_x86_optimizations 781' 782 ac_precious_vars='build_alias 783host_alias 784target_alias 785CXX 786CXXFLAGS 787LDFLAGS 788LIBS 789CPPFLAGS 790CCC 791CC 792CFLAGS 793CPP 794CXXCPP' 795 796 797# Initialize some variables set by options. 798ac_init_help= 799ac_init_version=false 800ac_unrecognized_opts= 801ac_unrecognized_sep= 802# The variables have the same names as the options, with 803# dashes changed to underlines. 804cache_file=/dev/null 805exec_prefix=NONE 806no_create= 807no_recursion= 808prefix=NONE 809program_prefix=NONE 810program_suffix=NONE 811program_transform_name=s,x,x, 812silent= 813site= 814srcdir= 815verbose= 816x_includes=NONE 817x_libraries=NONE 818 819# Installation directory options. 820# These are left unexpanded so users can "make install exec_prefix=/foo" 821# and all the variables that are supposed to be based on exec_prefix 822# by default will actually change. 823# Use braces instead of parens because sh, perl, etc. also accept them. 824# (The list follows the same order as the GNU Coding Standards.) 825bindir='${exec_prefix}/bin' 826sbindir='${exec_prefix}/sbin' 827libexecdir='${exec_prefix}/libexec' 828datarootdir='${prefix}/share' 829datadir='${datarootdir}' 830sysconfdir='${prefix}/etc' 831sharedstatedir='${prefix}/com' 832localstatedir='${prefix}/var' 833includedir='${prefix}/include' 834oldincludedir='/usr/include' 835docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 836infodir='${datarootdir}/info' 837htmldir='${docdir}' 838dvidir='${docdir}' 839pdfdir='${docdir}' 840psdir='${docdir}' 841libdir='${exec_prefix}/lib' 842localedir='${datarootdir}/locale' 843mandir='${datarootdir}/man' 844 845ac_prev= 846ac_dashdash= 847for ac_option 848do 849 # If the previous option needs an argument, assign it. 850 if test -n "$ac_prev"; then 851 eval $ac_prev=\$ac_option 852 ac_prev= 853 continue 854 fi 855 856 case $ac_option in 857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 858 *=) ac_optarg= ;; 859 *) ac_optarg=yes ;; 860 esac 861 862 # Accept the important Cygnus configure options, so we can diagnose typos. 863 864 case $ac_dashdash$ac_option in 865 --) 866 ac_dashdash=yes ;; 867 868 -bindir | --bindir | --bindi | --bind | --bin | --bi) 869 ac_prev=bindir ;; 870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 871 bindir=$ac_optarg ;; 872 873 -build | --build | --buil | --bui | --bu) 874 ac_prev=build_alias ;; 875 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 876 build_alias=$ac_optarg ;; 877 878 -cache-file | --cache-file | --cache-fil | --cache-fi \ 879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 880 ac_prev=cache_file ;; 881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 883 cache_file=$ac_optarg ;; 884 885 --config-cache | -C) 886 cache_file=config.cache ;; 887 888 -datadir | --datadir | --datadi | --datad) 889 ac_prev=datadir ;; 890 -datadir=* | --datadir=* | --datadi=* | --datad=*) 891 datadir=$ac_optarg ;; 892 893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 894 | --dataroo | --dataro | --datar) 895 ac_prev=datarootdir ;; 896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 898 datarootdir=$ac_optarg ;; 899 900 -disable-* | --disable-*) 901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 902 # Reject names that are not valid shell variable names. 903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 904 as_fn_error $? "invalid feature name: $ac_useropt" 905 ac_useropt_orig=$ac_useropt 906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 907 case $ac_user_opts in 908 *" 909"enable_$ac_useropt" 910"*) ;; 911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 912 ac_unrecognized_sep=', ';; 913 esac 914 eval enable_$ac_useropt=no ;; 915 916 -docdir | --docdir | --docdi | --doc | --do) 917 ac_prev=docdir ;; 918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 919 docdir=$ac_optarg ;; 920 921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 922 ac_prev=dvidir ;; 923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 924 dvidir=$ac_optarg ;; 925 926 -enable-* | --enable-*) 927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 928 # Reject names that are not valid shell variable names. 929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 930 as_fn_error $? "invalid feature name: $ac_useropt" 931 ac_useropt_orig=$ac_useropt 932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 933 case $ac_user_opts in 934 *" 935"enable_$ac_useropt" 936"*) ;; 937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 938 ac_unrecognized_sep=', ';; 939 esac 940 eval enable_$ac_useropt=\$ac_optarg ;; 941 942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 944 | --exec | --exe | --ex) 945 ac_prev=exec_prefix ;; 946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 948 | --exec=* | --exe=* | --ex=*) 949 exec_prefix=$ac_optarg ;; 950 951 -gas | --gas | --ga | --g) 952 # Obsolete; use --with-gas. 953 with_gas=yes ;; 954 955 -help | --help | --hel | --he | -h) 956 ac_init_help=long ;; 957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 958 ac_init_help=recursive ;; 959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 960 ac_init_help=short ;; 961 962 -host | --host | --hos | --ho) 963 ac_prev=host_alias ;; 964 -host=* | --host=* | --hos=* | --ho=*) 965 host_alias=$ac_optarg ;; 966 967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 968 ac_prev=htmldir ;; 969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 970 | --ht=*) 971 htmldir=$ac_optarg ;; 972 973 -includedir | --includedir | --includedi | --included | --include \ 974 | --includ | --inclu | --incl | --inc) 975 ac_prev=includedir ;; 976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 977 | --includ=* | --inclu=* | --incl=* | --inc=*) 978 includedir=$ac_optarg ;; 979 980 -infodir | --infodir | --infodi | --infod | --info | --inf) 981 ac_prev=infodir ;; 982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 983 infodir=$ac_optarg ;; 984 985 -libdir | --libdir | --libdi | --libd) 986 ac_prev=libdir ;; 987 -libdir=* | --libdir=* | --libdi=* | --libd=*) 988 libdir=$ac_optarg ;; 989 990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 991 | --libexe | --libex | --libe) 992 ac_prev=libexecdir ;; 993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 994 | --libexe=* | --libex=* | --libe=*) 995 libexecdir=$ac_optarg ;; 996 997 -localedir | --localedir | --localedi | --localed | --locale) 998 ac_prev=localedir ;; 999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1000 localedir=$ac_optarg ;; 1001 1002 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1003 | --localstate | --localstat | --localsta | --localst | --locals) 1004 ac_prev=localstatedir ;; 1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1007 localstatedir=$ac_optarg ;; 1008 1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1010 ac_prev=mandir ;; 1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1012 mandir=$ac_optarg ;; 1013 1014 -nfp | --nfp | --nf) 1015 # Obsolete; use --without-fp. 1016 with_fp=no ;; 1017 1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1019 | --no-cr | --no-c | -n) 1020 no_create=yes ;; 1021 1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1024 no_recursion=yes ;; 1025 1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1028 | --oldin | --oldi | --old | --ol | --o) 1029 ac_prev=oldincludedir ;; 1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1033 oldincludedir=$ac_optarg ;; 1034 1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1036 ac_prev=prefix ;; 1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1038 prefix=$ac_optarg ;; 1039 1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1041 | --program-pre | --program-pr | --program-p) 1042 ac_prev=program_prefix ;; 1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1045 program_prefix=$ac_optarg ;; 1046 1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1048 | --program-suf | --program-su | --program-s) 1049 ac_prev=program_suffix ;; 1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1052 program_suffix=$ac_optarg ;; 1053 1054 -program-transform-name | --program-transform-name \ 1055 | --program-transform-nam | --program-transform-na \ 1056 | --program-transform-n | --program-transform- \ 1057 | --program-transform | --program-transfor \ 1058 | --program-transfo | --program-transf \ 1059 | --program-trans | --program-tran \ 1060 | --progr-tra | --program-tr | --program-t) 1061 ac_prev=program_transform_name ;; 1062 -program-transform-name=* | --program-transform-name=* \ 1063 | --program-transform-nam=* | --program-transform-na=* \ 1064 | --program-transform-n=* | --program-transform-=* \ 1065 | --program-transform=* | --program-transfor=* \ 1066 | --program-transfo=* | --program-transf=* \ 1067 | --program-trans=* | --program-tran=* \ 1068 | --progr-tra=* | --program-tr=* | --program-t=*) 1069 program_transform_name=$ac_optarg ;; 1070 1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1072 ac_prev=pdfdir ;; 1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1074 pdfdir=$ac_optarg ;; 1075 1076 -psdir | --psdir | --psdi | --psd | --ps) 1077 ac_prev=psdir ;; 1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1079 psdir=$ac_optarg ;; 1080 1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1082 | -silent | --silent | --silen | --sile | --sil) 1083 silent=yes ;; 1084 1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1086 ac_prev=sbindir ;; 1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1088 | --sbi=* | --sb=*) 1089 sbindir=$ac_optarg ;; 1090 1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1093 | --sharedst | --shareds | --shared | --share | --shar \ 1094 | --sha | --sh) 1095 ac_prev=sharedstatedir ;; 1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1099 | --sha=* | --sh=*) 1100 sharedstatedir=$ac_optarg ;; 1101 1102 -site | --site | --sit) 1103 ac_prev=site ;; 1104 -site=* | --site=* | --sit=*) 1105 site=$ac_optarg ;; 1106 1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1108 ac_prev=srcdir ;; 1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1110 srcdir=$ac_optarg ;; 1111 1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1113 | --syscon | --sysco | --sysc | --sys | --sy) 1114 ac_prev=sysconfdir ;; 1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1117 sysconfdir=$ac_optarg ;; 1118 1119 -target | --target | --targe | --targ | --tar | --ta | --t) 1120 ac_prev=target_alias ;; 1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1122 target_alias=$ac_optarg ;; 1123 1124 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1125 verbose=yes ;; 1126 1127 -version | --version | --versio | --versi | --vers | -V) 1128 ac_init_version=: ;; 1129 1130 -with-* | --with-*) 1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1132 # Reject names that are not valid shell variable names. 1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1134 as_fn_error $? "invalid package name: $ac_useropt" 1135 ac_useropt_orig=$ac_useropt 1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1137 case $ac_user_opts in 1138 *" 1139"with_$ac_useropt" 1140"*) ;; 1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1142 ac_unrecognized_sep=', ';; 1143 esac 1144 eval with_$ac_useropt=\$ac_optarg ;; 1145 1146 -without-* | --without-*) 1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1148 # Reject names that are not valid shell variable names. 1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1150 as_fn_error $? "invalid package name: $ac_useropt" 1151 ac_useropt_orig=$ac_useropt 1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1153 case $ac_user_opts in 1154 *" 1155"with_$ac_useropt" 1156"*) ;; 1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1158 ac_unrecognized_sep=', ';; 1159 esac 1160 eval with_$ac_useropt=no ;; 1161 1162 --x) 1163 # Obsolete; use --with-x. 1164 with_x=yes ;; 1165 1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1167 | --x-incl | --x-inc | --x-in | --x-i) 1168 ac_prev=x_includes ;; 1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1171 x_includes=$ac_optarg ;; 1172 1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1175 ac_prev=x_libraries ;; 1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1178 x_libraries=$ac_optarg ;; 1179 1180 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1181Try \`$0 --help' for more information" 1182 ;; 1183 1184 *=*) 1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1186 # Reject names that are not valid shell variable names. 1187 case $ac_envvar in #( 1188 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1189 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1190 esac 1191 eval $ac_envvar=\$ac_optarg 1192 export $ac_envvar ;; 1193 1194 *) 1195 # FIXME: should be removed in autoconf 3.0. 1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1199 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1200 ;; 1201 1202 esac 1203done 1204 1205if test -n "$ac_prev"; then 1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1207 as_fn_error $? "missing argument to $ac_option" 1208fi 1209 1210if test -n "$ac_unrecognized_opts"; then 1211 case $enable_option_checking in 1212 no) ;; 1213 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1215 esac 1216fi 1217 1218# Check all directory arguments for consistency. 1219for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1220 datadir sysconfdir sharedstatedir localstatedir includedir \ 1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1222 libdir localedir mandir 1223do 1224 eval ac_val=\$$ac_var 1225 # Remove trailing slashes. 1226 case $ac_val in 1227 */ ) 1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1229 eval $ac_var=\$ac_val;; 1230 esac 1231 # Be sure to have absolute directory names. 1232 case $ac_val in 1233 [\\/$]* | ?:[\\/]* ) continue;; 1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1235 esac 1236 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1237done 1238 1239# There might be people who depend on the old broken behavior: `$host' 1240# used to hold the argument of --host etc. 1241# FIXME: To remove some day. 1242build=$build_alias 1243host=$host_alias 1244target=$target_alias 1245 1246# FIXME: To remove some day. 1247if test "x$host_alias" != x; then 1248 if test "x$build_alias" = x; then 1249 cross_compiling=maybe 1250 elif test "x$build_alias" != "x$host_alias"; then 1251 cross_compiling=yes 1252 fi 1253fi 1254 1255ac_tool_prefix= 1256test -n "$host_alias" && ac_tool_prefix=$host_alias- 1257 1258test "$silent" = yes && exec 6>/dev/null 1259 1260 1261ac_pwd=`pwd` && test -n "$ac_pwd" && 1262ac_ls_di=`ls -di .` && 1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1264 as_fn_error $? "working directory cannot be determined" 1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1266 as_fn_error $? "pwd does not report name of working directory" 1267 1268 1269# Find the source files, if location was not specified. 1270if test -z "$srcdir"; then 1271 ac_srcdir_defaulted=yes 1272 # Try the directory containing this script, then the parent directory. 1273 ac_confdir=`$as_dirname -- "$as_myself" || 1274$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1275 X"$as_myself" : 'X\(//\)[^/]' \| \ 1276 X"$as_myself" : 'X\(//\)$' \| \ 1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1278$as_echo X"$as_myself" | 1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\/\)[^/].*/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\/\)$/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\).*/{ 1292 s//\1/ 1293 q 1294 } 1295 s/.*/./; q'` 1296 srcdir=$ac_confdir 1297 if test ! -r "$srcdir/$ac_unique_file"; then 1298 srcdir=.. 1299 fi 1300else 1301 ac_srcdir_defaulted=no 1302fi 1303if test ! -r "$srcdir/$ac_unique_file"; then 1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1306fi 1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1308ac_abs_confdir=`( 1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1310 pwd)` 1311# When building in place, set srcdir=. 1312if test "$ac_abs_confdir" = "$ac_pwd"; then 1313 srcdir=. 1314fi 1315# Remove unnecessary trailing slashes from srcdir. 1316# Double slashes in file names in object file debugging info 1317# mess up M-x gdb in Emacs. 1318case $srcdir in 1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1320esac 1321for ac_var in $ac_precious_vars; do 1322 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1323 eval ac_env_${ac_var}_value=\$${ac_var} 1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1325 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1326done 1327 1328# 1329# Report the --help message. 1330# 1331if test "$ac_init_help" = "long"; then 1332 # Omit some internal or obsolete options to make the list less imposing. 1333 # This message is too long to be a string in the A/UX 3.1 sh. 1334 cat <<_ACEOF 1335\`configure' configures SoundTouch 1.7.0 to adapt to many kinds of systems. 1336 1337Usage: $0 [OPTION]... [VAR=VALUE]... 1338 1339To assign environment variables (e.g., CC, CFLAGS...), specify them as 1340VAR=VALUE. See below for descriptions of some of the useful variables. 1341 1342Defaults for the options are specified in brackets. 1343 1344Configuration: 1345 -h, --help display this help and exit 1346 --help=short display options specific to this package 1347 --help=recursive display the short help of all the included packages 1348 -V, --version display version information and exit 1349 -q, --quiet, --silent do not print \`checking ...' messages 1350 --cache-file=FILE cache test results in FILE [disabled] 1351 -C, --config-cache alias for \`--cache-file=config.cache' 1352 -n, --no-create do not create output files 1353 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1354 1355Installation directories: 1356 --prefix=PREFIX install architecture-independent files in PREFIX 1357 [$ac_default_prefix] 1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1359 [PREFIX] 1360 1361By default, \`make install' will install all the files in 1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1363an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1364for instance \`--prefix=\$HOME'. 1365 1366For better control, use the options below. 1367 1368Fine tuning of the installation directories: 1369 --bindir=DIR user executables [EPREFIX/bin] 1370 --sbindir=DIR system admin executables [EPREFIX/sbin] 1371 --libexecdir=DIR program executables [EPREFIX/libexec] 1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1375 --libdir=DIR object code libraries [EPREFIX/lib] 1376 --includedir=DIR C header files [PREFIX/include] 1377 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1380 --infodir=DIR info documentation [DATAROOTDIR/info] 1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1382 --mandir=DIR man documentation [DATAROOTDIR/man] 1383 --docdir=DIR documentation root [DATAROOTDIR/doc/soundtouch] 1384 --htmldir=DIR html documentation [DOCDIR] 1385 --dvidir=DIR dvi documentation [DOCDIR] 1386 --pdfdir=DIR pdf documentation [DOCDIR] 1387 --psdir=DIR ps documentation [DOCDIR] 1388_ACEOF 1389 1390 cat <<\_ACEOF 1391 1392Program names: 1393 --program-prefix=PREFIX prepend PREFIX to installed program names 1394 --program-suffix=SUFFIX append SUFFIX to installed program names 1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1396 1397System types: 1398 --build=BUILD configure for building on BUILD [guessed] 1399 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1400_ACEOF 1401fi 1402 1403if test -n "$ac_init_help"; then 1404 case $ac_init_help in 1405 short | recursive ) echo "Configuration of SoundTouch 1.7.0:";; 1406 esac 1407 cat <<\_ACEOF 1408 1409Optional Features: 1410 --disable-option-checking ignore unrecognized --enable/--with options 1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1413 --enable-silent-rules less verbose build output (undo: "make V=1") 1414 --disable-silent-rules verbose build output (undo: "make V=0") 1415 --enable-maintainer-mode 1416 enable make rules and dependencies not useful (and 1417 sometimes confusing) to the casual installer 1418 --enable-static[=PKGS] build static libraries [default=no] 1419 --enable-dependency-tracking 1420 do not reject slow dependency extractors 1421 --disable-dependency-tracking 1422 speeds up one-time build 1423 --enable-shared[=PKGS] build shared libraries [default=yes] 1424 --enable-fast-install[=PKGS] 1425 optimize for fast installation [default=yes] 1426 --disable-libtool-lock avoid locking (might break parallel builds) 1427 --enable-integer-samples 1428 use integer samples instead of floats [default=yes] 1429 --enable-x86-optimizations 1430 use MMX or SSE optimization [default=yes] 1431 1432Optional Packages: 1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1436 both] 1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1438 --with-sysroot=DIR Search for dependent libraries within DIR 1439 (or the compiler's sysroot if not specified). 1440 1441Some influential environment variables: 1442 CXX C++ compiler command 1443 CXXFLAGS C++ compiler flags 1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1445 nonstandard directory <lib dir> 1446 LIBS libraries to pass to the linker, e.g. -l<library> 1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1448 you have headers in a nonstandard directory <include dir> 1449 CC C compiler command 1450 CFLAGS C compiler flags 1451 CPP C preprocessor 1452 CXXCPP C++ preprocessor 1453 1454Use these variables to override the choices made by `configure' or to help 1455it to find libraries and programs with nonstandard names/locations. 1456 1457Report bugs to <http://www.surina.net/soundtouch>. 1458_ACEOF 1459ac_status=$? 1460fi 1461 1462if test "$ac_init_help" = "recursive"; then 1463 # If there are subdirs, report their specific --help. 1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1465 test -d "$ac_dir" || 1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1467 continue 1468 ac_builddir=. 1469 1470case "$ac_dir" in 1471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1472*) 1473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1474 # A ".." for each directory in $ac_dir_suffix. 1475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1476 case $ac_top_builddir_sub in 1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1479 esac ;; 1480esac 1481ac_abs_top_builddir=$ac_pwd 1482ac_abs_builddir=$ac_pwd$ac_dir_suffix 1483# for backward compatibility: 1484ac_top_builddir=$ac_top_build_prefix 1485 1486case $srcdir in 1487 .) # We are building in place. 1488 ac_srcdir=. 1489 ac_top_srcdir=$ac_top_builddir_sub 1490 ac_abs_top_srcdir=$ac_pwd ;; 1491 [\\/]* | ?:[\\/]* ) # Absolute name. 1492 ac_srcdir=$srcdir$ac_dir_suffix; 1493 ac_top_srcdir=$srcdir 1494 ac_abs_top_srcdir=$srcdir ;; 1495 *) # Relative name. 1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1497 ac_top_srcdir=$ac_top_build_prefix$srcdir 1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1499esac 1500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1501 1502 cd "$ac_dir" || { ac_status=$?; continue; } 1503 # Check for guested configure. 1504 if test -f "$ac_srcdir/configure.gnu"; then 1505 echo && 1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1507 elif test -f "$ac_srcdir/configure"; then 1508 echo && 1509 $SHELL "$ac_srcdir/configure" --help=recursive 1510 else 1511 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1512 fi || ac_status=$? 1513 cd "$ac_pwd" || { ac_status=$?; break; } 1514 done 1515fi 1516 1517test -n "$ac_init_help" && exit $ac_status 1518if $ac_init_version; then 1519 cat <<\_ACEOF 1520SoundTouch configure 1.7.0 1521generated by GNU Autoconf 2.69 1522 1523Copyright (C) 2012 Free Software Foundation, Inc. 1524This configure script is free software; the Free Software Foundation 1525gives unlimited permission to copy, distribute and modify it. 1526_ACEOF 1527 exit 1528fi 1529 1530## ------------------------ ## 1531## Autoconf initialization. ## 1532## ------------------------ ## 1533 1534# ac_fn_cxx_try_compile LINENO 1535# ---------------------------- 1536# Try to compile conftest.$ac_ext, and return whether this succeeded. 1537ac_fn_cxx_try_compile () 1538{ 1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1540 rm -f conftest.$ac_objext 1541 if { { ac_try="$ac_compile" 1542case "(($ac_try" in 1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1544 *) ac_try_echo=$ac_try;; 1545esac 1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1547$as_echo "$ac_try_echo"; } >&5 1548 (eval "$ac_compile") 2>conftest.err 1549 ac_status=$? 1550 if test -s conftest.err; then 1551 grep -v '^ *+' conftest.err >conftest.er1 1552 cat conftest.er1 >&5 1553 mv -f conftest.er1 conftest.err 1554 fi 1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1556 test $ac_status = 0; } && { 1557 test -z "$ac_cxx_werror_flag" || 1558 test ! -s conftest.err 1559 } && test -s conftest.$ac_objext; then : 1560 ac_retval=0 1561else 1562 $as_echo "$as_me: failed program was:" >&5 1563sed 's/^/| /' conftest.$ac_ext >&5 1564 1565 ac_retval=1 1566fi 1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1568 as_fn_set_status $ac_retval 1569 1570} # ac_fn_cxx_try_compile 1571 1572# ac_fn_c_try_compile LINENO 1573# -------------------------- 1574# Try to compile conftest.$ac_ext, and return whether this succeeded. 1575ac_fn_c_try_compile () 1576{ 1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1578 rm -f conftest.$ac_objext 1579 if { { ac_try="$ac_compile" 1580case "(($ac_try" in 1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1582 *) ac_try_echo=$ac_try;; 1583esac 1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1585$as_echo "$ac_try_echo"; } >&5 1586 (eval "$ac_compile") 2>conftest.err 1587 ac_status=$? 1588 if test -s conftest.err; then 1589 grep -v '^ *+' conftest.err >conftest.er1 1590 cat conftest.er1 >&5 1591 mv -f conftest.er1 conftest.err 1592 fi 1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1594 test $ac_status = 0; } && { 1595 test -z "$ac_c_werror_flag" || 1596 test ! -s conftest.err 1597 } && test -s conftest.$ac_objext; then : 1598 ac_retval=0 1599else 1600 $as_echo "$as_me: failed program was:" >&5 1601sed 's/^/| /' conftest.$ac_ext >&5 1602 1603 ac_retval=1 1604fi 1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1606 as_fn_set_status $ac_retval 1607 1608} # ac_fn_c_try_compile 1609 1610# ac_fn_c_try_cpp LINENO 1611# ---------------------- 1612# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1613ac_fn_c_try_cpp () 1614{ 1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1616 if { { ac_try="$ac_cpp conftest.$ac_ext" 1617case "(($ac_try" in 1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1619 *) ac_try_echo=$ac_try;; 1620esac 1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1622$as_echo "$ac_try_echo"; } >&5 1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1624 ac_status=$? 1625 if test -s conftest.err; then 1626 grep -v '^ *+' conftest.err >conftest.er1 1627 cat conftest.er1 >&5 1628 mv -f conftest.er1 conftest.err 1629 fi 1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1631 test $ac_status = 0; } > conftest.i && { 1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1633 test ! -s conftest.err 1634 }; then : 1635 ac_retval=0 1636else 1637 $as_echo "$as_me: failed program was:" >&5 1638sed 's/^/| /' conftest.$ac_ext >&5 1639 1640 ac_retval=1 1641fi 1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1643 as_fn_set_status $ac_retval 1644 1645} # ac_fn_c_try_cpp 1646 1647# ac_fn_cxx_try_cpp LINENO 1648# ------------------------ 1649# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1650ac_fn_cxx_try_cpp () 1651{ 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 if { { ac_try="$ac_cpp conftest.$ac_ext" 1654case "(($ac_try" in 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1656 *) ac_try_echo=$ac_try;; 1657esac 1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1659$as_echo "$ac_try_echo"; } >&5 1660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1661 ac_status=$? 1662 if test -s conftest.err; then 1663 grep -v '^ *+' conftest.err >conftest.er1 1664 cat conftest.er1 >&5 1665 mv -f conftest.er1 conftest.err 1666 fi 1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1668 test $ac_status = 0; } > conftest.i && { 1669 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1670 test ! -s conftest.err 1671 }; then : 1672 ac_retval=0 1673else 1674 $as_echo "$as_me: failed program was:" >&5 1675sed 's/^/| /' conftest.$ac_ext >&5 1676 1677 ac_retval=1 1678fi 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 as_fn_set_status $ac_retval 1681 1682} # ac_fn_cxx_try_cpp 1683 1684# ac_fn_c_try_link LINENO 1685# ----------------------- 1686# Try to link conftest.$ac_ext, and return whether this succeeded. 1687ac_fn_c_try_link () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 rm -f conftest.$ac_objext conftest$ac_exeext 1691 if { { ac_try="$ac_link" 1692case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697$as_echo "$ac_try_echo"; } >&5 1698 (eval "$ac_link") 2>conftest.err 1699 ac_status=$? 1700 if test -s conftest.err; then 1701 grep -v '^ *+' conftest.err >conftest.er1 1702 cat conftest.er1 >&5 1703 mv -f conftest.er1 conftest.err 1704 fi 1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; } && { 1707 test -z "$ac_c_werror_flag" || 1708 test ! -s conftest.err 1709 } && test -s conftest$ac_exeext && { 1710 test "$cross_compiling" = yes || 1711 test -x conftest$ac_exeext 1712 }; then : 1713 ac_retval=0 1714else 1715 $as_echo "$as_me: failed program was:" >&5 1716sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 ac_retval=1 1719fi 1720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1722 # interfere with the next link command; also delete a directory that is 1723 # left behind by Apple's compiler. We do this before executing the actions. 1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726 as_fn_set_status $ac_retval 1727 1728} # ac_fn_c_try_link 1729 1730# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1731# ------------------------------------------------------- 1732# Tests whether HEADER exists and can be compiled using the include files in 1733# INCLUDES, setting the cache variable VAR accordingly. 1734ac_fn_c_check_header_compile () 1735{ 1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1738$as_echo_n "checking for $2... " >&6; } 1739if eval \${$3+:} false; then : 1740 $as_echo_n "(cached) " >&6 1741else 1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1743/* end confdefs.h. */ 1744$4 1745#include <$2> 1746_ACEOF 1747if ac_fn_c_try_compile "$LINENO"; then : 1748 eval "$3=yes" 1749else 1750 eval "$3=no" 1751fi 1752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1753fi 1754eval ac_res=\$$3 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1756$as_echo "$ac_res" >&6; } 1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1758 1759} # ac_fn_c_check_header_compile 1760 1761# ac_fn_c_try_run LINENO 1762# ---------------------- 1763# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1764# that executables *can* be run. 1765ac_fn_c_try_run () 1766{ 1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1768 if { { ac_try="$ac_link" 1769case "(($ac_try" in 1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1771 *) ac_try_echo=$ac_try;; 1772esac 1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1774$as_echo "$ac_try_echo"; } >&5 1775 (eval "$ac_link") 2>&5 1776 ac_status=$? 1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1778 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1779 { { case "(($ac_try" in 1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1781 *) ac_try_echo=$ac_try;; 1782esac 1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1784$as_echo "$ac_try_echo"; } >&5 1785 (eval "$ac_try") 2>&5 1786 ac_status=$? 1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1788 test $ac_status = 0; }; }; then : 1789 ac_retval=0 1790else 1791 $as_echo "$as_me: program exited with status $ac_status" >&5 1792 $as_echo "$as_me: failed program was:" >&5 1793sed 's/^/| /' conftest.$ac_ext >&5 1794 1795 ac_retval=$ac_status 1796fi 1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 as_fn_set_status $ac_retval 1800 1801} # ac_fn_c_try_run 1802 1803# ac_fn_c_check_func LINENO FUNC VAR 1804# ---------------------------------- 1805# Tests whether FUNC exists, setting the cache variable VAR accordingly 1806ac_fn_c_check_func () 1807{ 1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1810$as_echo_n "checking for $2... " >&6; } 1811if eval \${$3+:} false; then : 1812 $as_echo_n "(cached) " >&6 1813else 1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1815/* end confdefs.h. */ 1816/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1817 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1818#define $2 innocuous_$2 1819 1820/* System header to define __stub macros and hopefully few prototypes, 1821 which can conflict with char $2 (); below. 1822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1823 <limits.h> exists even on freestanding compilers. */ 1824 1825#ifdef __STDC__ 1826# include <limits.h> 1827#else 1828# include <assert.h> 1829#endif 1830 1831#undef $2 1832 1833/* Override any GCC internal prototype to avoid an error. 1834 Use char because int might match the return type of a GCC 1835 builtin and then its argument prototype would still apply. */ 1836#ifdef __cplusplus 1837extern "C" 1838#endif 1839char $2 (); 1840/* The GNU C library defines this for functions which it implements 1841 to always fail with ENOSYS. Some functions are actually named 1842 something starting with __ and the normal name is an alias. */ 1843#if defined __stub_$2 || defined __stub___$2 1844choke me 1845#endif 1846 1847int 1848main () 1849{ 1850return $2 (); 1851 ; 1852 return 0; 1853} 1854_ACEOF 1855if ac_fn_c_try_link "$LINENO"; then : 1856 eval "$3=yes" 1857else 1858 eval "$3=no" 1859fi 1860rm -f core conftest.err conftest.$ac_objext \ 1861 conftest$ac_exeext conftest.$ac_ext 1862fi 1863eval ac_res=\$$3 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1865$as_echo "$ac_res" >&6; } 1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1867 1868} # ac_fn_c_check_func 1869 1870# ac_fn_cxx_try_link LINENO 1871# ------------------------- 1872# Try to link conftest.$ac_ext, and return whether this succeeded. 1873ac_fn_cxx_try_link () 1874{ 1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1876 rm -f conftest.$ac_objext conftest$ac_exeext 1877 if { { ac_try="$ac_link" 1878case "(($ac_try" in 1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1880 *) ac_try_echo=$ac_try;; 1881esac 1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1883$as_echo "$ac_try_echo"; } >&5 1884 (eval "$ac_link") 2>conftest.err 1885 ac_status=$? 1886 if test -s conftest.err; then 1887 grep -v '^ *+' conftest.err >conftest.er1 1888 cat conftest.er1 >&5 1889 mv -f conftest.er1 conftest.err 1890 fi 1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1892 test $ac_status = 0; } && { 1893 test -z "$ac_cxx_werror_flag" || 1894 test ! -s conftest.err 1895 } && test -s conftest$ac_exeext && { 1896 test "$cross_compiling" = yes || 1897 test -x conftest$ac_exeext 1898 }; then : 1899 ac_retval=0 1900else 1901 $as_echo "$as_me: failed program was:" >&5 1902sed 's/^/| /' conftest.$ac_ext >&5 1903 1904 ac_retval=1 1905fi 1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1908 # interfere with the next link command; also delete a directory that is 1909 # left behind by Apple's compiler. We do this before executing the actions. 1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1912 as_fn_set_status $ac_retval 1913 1914} # ac_fn_cxx_try_link 1915 1916# ac_fn_cxx_try_run LINENO 1917# ------------------------ 1918# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1919# that executables *can* be run. 1920ac_fn_cxx_try_run () 1921{ 1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1923 if { { ac_try="$ac_link" 1924case "(($ac_try" in 1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1926 *) ac_try_echo=$ac_try;; 1927esac 1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1929$as_echo "$ac_try_echo"; } >&5 1930 (eval "$ac_link") 2>&5 1931 ac_status=$? 1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1933 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1934 { { case "(($ac_try" in 1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1936 *) ac_try_echo=$ac_try;; 1937esac 1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1939$as_echo "$ac_try_echo"; } >&5 1940 (eval "$ac_try") 2>&5 1941 ac_status=$? 1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1943 test $ac_status = 0; }; }; then : 1944 ac_retval=0 1945else 1946 $as_echo "$as_me: program exited with status $ac_status" >&5 1947 $as_echo "$as_me: failed program was:" >&5 1948sed 's/^/| /' conftest.$ac_ext >&5 1949 1950 ac_retval=$ac_status 1951fi 1952 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1954 as_fn_set_status $ac_retval 1955 1956} # ac_fn_cxx_try_run 1957 1958# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 1959# --------------------------------------------------------- 1960# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1961# the include files in INCLUDES and setting the cache variable VAR 1962# accordingly. 1963ac_fn_cxx_check_header_mongrel () 1964{ 1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1966 if eval \${$3+:} false; then : 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1968$as_echo_n "checking for $2... " >&6; } 1969if eval \${$3+:} false; then : 1970 $as_echo_n "(cached) " >&6 1971fi 1972eval ac_res=\$$3 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1974$as_echo "$ac_res" >&6; } 1975else 1976 # Is the header compilable? 1977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1978$as_echo_n "checking $2 usability... " >&6; } 1979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1980/* end confdefs.h. */ 1981$4 1982#include <$2> 1983_ACEOF 1984if ac_fn_cxx_try_compile "$LINENO"; then : 1985 ac_header_compiler=yes 1986else 1987 ac_header_compiler=no 1988fi 1989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1991$as_echo "$ac_header_compiler" >&6; } 1992 1993# Is the header present? 1994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1995$as_echo_n "checking $2 presence... " >&6; } 1996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997/* end confdefs.h. */ 1998#include <$2> 1999_ACEOF 2000if ac_fn_cxx_try_cpp "$LINENO"; then : 2001 ac_header_preproc=yes 2002else 2003 ac_header_preproc=no 2004fi 2005rm -f conftest.err conftest.i conftest.$ac_ext 2006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2007$as_echo "$ac_header_preproc" >&6; } 2008 2009# So? What about this header? 2010case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2011 yes:no: ) 2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2013$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2015$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2016 ;; 2017 no:yes:* ) 2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2019$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2021$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2023$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2025$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2027$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2028( $as_echo "## ----------------------------------------------- ## 2029## Report this to http://www.surina.net/soundtouch ## 2030## ----------------------------------------------- ##" 2031 ) | sed "s/^/$as_me: WARNING: /" >&2 2032 ;; 2033esac 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2035$as_echo_n "checking for $2... " >&6; } 2036if eval \${$3+:} false; then : 2037 $as_echo_n "(cached) " >&6 2038else 2039 eval "$3=\$ac_header_compiler" 2040fi 2041eval ac_res=\$$3 2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2043$as_echo "$ac_res" >&6; } 2044fi 2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2046 2047} # ac_fn_cxx_check_header_mongrel 2048cat >config.log <<_ACEOF 2049This file contains any messages produced by compilers while 2050running configure, to aid debugging if configure makes a mistake. 2051 2052It was created by SoundTouch $as_me 1.7.0, which was 2053generated by GNU Autoconf 2.69. Invocation command line was 2054 2055 $ $0 $@ 2056 2057_ACEOF 2058exec 5>>config.log 2059{ 2060cat <<_ASUNAME 2061## --------- ## 2062## Platform. ## 2063## --------- ## 2064 2065hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2066uname -m = `(uname -m) 2>/dev/null || echo unknown` 2067uname -r = `(uname -r) 2>/dev/null || echo unknown` 2068uname -s = `(uname -s) 2>/dev/null || echo unknown` 2069uname -v = `(uname -v) 2>/dev/null || echo unknown` 2070 2071/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2072/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2073 2074/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2075/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2076/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2077/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2078/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2079/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2080/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2081 2082_ASUNAME 2083 2084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2085for as_dir in $PATH 2086do 2087 IFS=$as_save_IFS 2088 test -z "$as_dir" && as_dir=. 2089 $as_echo "PATH: $as_dir" 2090 done 2091IFS=$as_save_IFS 2092 2093} >&5 2094 2095cat >&5 <<_ACEOF 2096 2097 2098## ----------- ## 2099## Core tests. ## 2100## ----------- ## 2101 2102_ACEOF 2103 2104 2105# Keep a trace of the command line. 2106# Strip out --no-create and --no-recursion so they do not pile up. 2107# Strip out --silent because we don't want to record it for future runs. 2108# Also quote any args containing shell meta-characters. 2109# Make two passes to allow for proper duplicate-argument suppression. 2110ac_configure_args= 2111ac_configure_args0= 2112ac_configure_args1= 2113ac_must_keep_next=false 2114for ac_pass in 1 2 2115do 2116 for ac_arg 2117 do 2118 case $ac_arg in 2119 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2121 | -silent | --silent | --silen | --sile | --sil) 2122 continue ;; 2123 *\'*) 2124 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2125 esac 2126 case $ac_pass in 2127 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2128 2) 2129 as_fn_append ac_configure_args1 " '$ac_arg'" 2130 if test $ac_must_keep_next = true; then 2131 ac_must_keep_next=false # Got value, back to normal. 2132 else 2133 case $ac_arg in 2134 *=* | --config-cache | -C | -disable-* | --disable-* \ 2135 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2136 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2137 | -with-* | --with-* | -without-* | --without-* | --x) 2138 case "$ac_configure_args0 " in 2139 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2140 esac 2141 ;; 2142 -* ) ac_must_keep_next=true ;; 2143 esac 2144 fi 2145 as_fn_append ac_configure_args " '$ac_arg'" 2146 ;; 2147 esac 2148 done 2149done 2150{ ac_configure_args0=; unset ac_configure_args0;} 2151{ ac_configure_args1=; unset ac_configure_args1;} 2152 2153# When interrupted or exit'd, cleanup temporary files, and complete 2154# config.log. We remove comments because anyway the quotes in there 2155# would cause problems or look ugly. 2156# WARNING: Use '\'' to represent an apostrophe within the trap. 2157# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2158trap 'exit_status=$? 2159 # Save into config.log some information that might help in debugging. 2160 { 2161 echo 2162 2163 $as_echo "## ---------------- ## 2164## Cache variables. ## 2165## ---------------- ##" 2166 echo 2167 # The following way of writing the cache mishandles newlines in values, 2168( 2169 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2170 eval ac_val=\$$ac_var 2171 case $ac_val in #( 2172 *${as_nl}*) 2173 case $ac_var in #( 2174 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2175$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2176 esac 2177 case $ac_var in #( 2178 _ | IFS | as_nl) ;; #( 2179 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2180 *) { eval $ac_var=; unset $ac_var;} ;; 2181 esac ;; 2182 esac 2183 done 2184 (set) 2>&1 | 2185 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2186 *${as_nl}ac_space=\ *) 2187 sed -n \ 2188 "s/'\''/'\''\\\\'\'''\''/g; 2189 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2190 ;; #( 2191 *) 2192 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2193 ;; 2194 esac | 2195 sort 2196) 2197 echo 2198 2199 $as_echo "## ----------------- ## 2200## Output variables. ## 2201## ----------------- ##" 2202 echo 2203 for ac_var in $ac_subst_vars 2204 do 2205 eval ac_val=\$$ac_var 2206 case $ac_val in 2207 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2208 esac 2209 $as_echo "$ac_var='\''$ac_val'\''" 2210 done | sort 2211 echo 2212 2213 if test -n "$ac_subst_files"; then 2214 $as_echo "## ------------------- ## 2215## File substitutions. ## 2216## ------------------- ##" 2217 echo 2218 for ac_var in $ac_subst_files 2219 do 2220 eval ac_val=\$$ac_var 2221 case $ac_val in 2222 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2223 esac 2224 $as_echo "$ac_var='\''$ac_val'\''" 2225 done | sort 2226 echo 2227 fi 2228 2229 if test -s confdefs.h; then 2230 $as_echo "## ----------- ## 2231## confdefs.h. ## 2232## ----------- ##" 2233 echo 2234 cat confdefs.h 2235 echo 2236 fi 2237 test "$ac_signal" != 0 && 2238 $as_echo "$as_me: caught signal $ac_signal" 2239 $as_echo "$as_me: exit $exit_status" 2240 } >&5 2241 rm -f core *.core core.conftest.* && 2242 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2243 exit $exit_status 2244' 0 2245for ac_signal in 1 2 13 15; do 2246 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2247done 2248ac_signal=0 2249 2250# confdefs.h avoids OS command line length limits that DEFS can exceed. 2251rm -f -r conftest* confdefs.h 2252 2253$as_echo "/* confdefs.h */" > confdefs.h 2254 2255# Predefined preprocessor variables. 2256 2257cat >>confdefs.h <<_ACEOF 2258#define PACKAGE_NAME "$PACKAGE_NAME" 2259_ACEOF 2260 2261cat >>confdefs.h <<_ACEOF 2262#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2263_ACEOF 2264 2265cat >>confdefs.h <<_ACEOF 2266#define PACKAGE_VERSION "$PACKAGE_VERSION" 2267_ACEOF 2268 2269cat >>confdefs.h <<_ACEOF 2270#define PACKAGE_STRING "$PACKAGE_STRING" 2271_ACEOF 2272 2273cat >>confdefs.h <<_ACEOF 2274#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2275_ACEOF 2276 2277cat >>confdefs.h <<_ACEOF 2278#define PACKAGE_URL "$PACKAGE_URL" 2279_ACEOF 2280 2281 2282# Let the site file select an alternate cache file if it wants to. 2283# Prefer an explicitly selected file to automatically selected ones. 2284ac_site_file1=NONE 2285ac_site_file2=NONE 2286if test -n "$CONFIG_SITE"; then 2287 # We do not want a PATH search for config.site. 2288 case $CONFIG_SITE in #(( 2289 -*) ac_site_file1=./$CONFIG_SITE;; 2290 */*) ac_site_file1=$CONFIG_SITE;; 2291 *) ac_site_file1=./$CONFIG_SITE;; 2292 esac 2293elif test "x$prefix" != xNONE; then 2294 ac_site_file1=$prefix/share/config.site 2295 ac_site_file2=$prefix/etc/config.site 2296else 2297 ac_site_file1=$ac_default_prefix/share/config.site 2298 ac_site_file2=$ac_default_prefix/etc/config.site 2299fi 2300for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2301do 2302 test "x$ac_site_file" = xNONE && continue 2303 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2304 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2305$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2306 sed 's/^/| /' "$ac_site_file" >&5 2307 . "$ac_site_file" \ 2308 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2310as_fn_error $? "failed to load site script $ac_site_file 2311See \`config.log' for more details" "$LINENO" 5; } 2312 fi 2313done 2314 2315if test -r "$cache_file"; then 2316 # Some versions of bash will fail to source /dev/null (special files 2317 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2318 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2320$as_echo "$as_me: loading cache $cache_file" >&6;} 2321 case $cache_file in 2322 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2323 *) . "./$cache_file";; 2324 esac 2325 fi 2326else 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2328$as_echo "$as_me: creating cache $cache_file" >&6;} 2329 >$cache_file 2330fi 2331 2332# Check that the precious variables saved in the cache have kept the same 2333# value. 2334ac_cache_corrupted=false 2335for ac_var in $ac_precious_vars; do 2336 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2337 eval ac_new_set=\$ac_env_${ac_var}_set 2338 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2339 eval ac_new_val=\$ac_env_${ac_var}_value 2340 case $ac_old_set,$ac_new_set in 2341 set,) 2342 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2343$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2344 ac_cache_corrupted=: ;; 2345 ,set) 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2347$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2348 ac_cache_corrupted=: ;; 2349 ,);; 2350 *) 2351 if test "x$ac_old_val" != "x$ac_new_val"; then 2352 # differences in whitespace do not lead to failure. 2353 ac_old_val_w=`echo x $ac_old_val` 2354 ac_new_val_w=`echo x $ac_new_val` 2355 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2357$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2358 ac_cache_corrupted=: 2359 else 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2361$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2362 eval $ac_var=\$ac_old_val 2363 fi 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2365$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2367$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2368 fi;; 2369 esac 2370 # Pass precious variables to config.status. 2371 if test "$ac_new_set" = set; then 2372 case $ac_new_val in 2373 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2374 *) ac_arg=$ac_var=$ac_new_val ;; 2375 esac 2376 case " $ac_configure_args " in 2377 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2378 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2379 esac 2380 fi 2381done 2382if $ac_cache_corrupted; then 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2386$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2387 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2388fi 2389## -------------------- ## 2390## Main body of script. ## 2391## -------------------- ## 2392 2393ac_ext=c 2394ac_cpp='$CPP $CPPFLAGS' 2395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2397ac_compiler_gnu=$ac_cv_c_compiler_gnu 2398 2399 2400ac_aux_dir= 2401for ac_dir in config "$srcdir"/config; do 2402 if test -f "$ac_dir/install-sh"; then 2403 ac_aux_dir=$ac_dir 2404 ac_install_sh="$ac_aux_dir/install-sh -c" 2405 break 2406 elif test -f "$ac_dir/install.sh"; then 2407 ac_aux_dir=$ac_dir 2408 ac_install_sh="$ac_aux_dir/install.sh -c" 2409 break 2410 elif test -f "$ac_dir/shtool"; then 2411 ac_aux_dir=$ac_dir 2412 ac_install_sh="$ac_aux_dir/shtool install -c" 2413 break 2414 fi 2415done 2416if test -z "$ac_aux_dir"; then 2417 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2418fi 2419 2420# These three variables are undocumented and unsupported, 2421# and are intended to be withdrawn in a future Autoconf release. 2422# They can cause serious problems if a builder's source tree is in a directory 2423# whose full name contains unusual characters. 2424ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2425ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2426ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2427 2428 2429 2430ac_config_headers="$ac_config_headers include/soundtouch_config.h" 2431 2432am__api_version='1.14' 2433 2434# Find a good install program. We prefer a C program (faster), 2435# so one script is as good as another. But avoid the broken or 2436# incompatible versions: 2437# SysV /etc/install, /usr/sbin/install 2438# SunOS /usr/etc/install 2439# IRIX /sbin/install 2440# AIX /bin/install 2441# AmigaOS /C/install, which installs bootblocks on floppy discs 2442# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2443# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2444# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2445# OS/2's system install, which has a completely different semantic 2446# ./install, which can be erroneously created by make from ./install.sh. 2447# Reject install programs that cannot install multiple files. 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2449$as_echo_n "checking for a BSD-compatible install... " >&6; } 2450if test -z "$INSTALL"; then 2451if ${ac_cv_path_install+:} false; then : 2452 $as_echo_n "(cached) " >&6 2453else 2454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2455for as_dir in $PATH 2456do 2457 IFS=$as_save_IFS 2458 test -z "$as_dir" && as_dir=. 2459 # Account for people who put trailing slashes in PATH elements. 2460case $as_dir/ in #(( 2461 ./ | .// | /[cC]/* | \ 2462 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2463 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2464 /usr/ucb/* ) ;; 2465 *) 2466 # OSF1 and SCO ODT 3.0 have their own names for install. 2467 # Don't use installbsd from OSF since it installs stuff as root 2468 # by default. 2469 for ac_prog in ginstall scoinst install; do 2470 for ac_exec_ext in '' $ac_executable_extensions; do 2471 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2472 if test $ac_prog = install && 2473 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2474 # AIX install. It has an incompatible calling convention. 2475 : 2476 elif test $ac_prog = install && 2477 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2478 # program-specific install script used by HP pwplus--don't use. 2479 : 2480 else 2481 rm -rf conftest.one conftest.two conftest.dir 2482 echo one > conftest.one 2483 echo two > conftest.two 2484 mkdir conftest.dir 2485 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2486 test -s conftest.one && test -s conftest.two && 2487 test -s conftest.dir/conftest.one && 2488 test -s conftest.dir/conftest.two 2489 then 2490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2491 break 3 2492 fi 2493 fi 2494 fi 2495 done 2496 done 2497 ;; 2498esac 2499 2500 done 2501IFS=$as_save_IFS 2502 2503rm -rf conftest.one conftest.two conftest.dir 2504 2505fi 2506 if test "${ac_cv_path_install+set}" = set; then 2507 INSTALL=$ac_cv_path_install 2508 else 2509 # As a last resort, use the slow shell script. Don't cache a 2510 # value for INSTALL within a source directory, because that will 2511 # break other packages using the cache if that directory is 2512 # removed, or if the value is a relative name. 2513 INSTALL=$ac_install_sh 2514 fi 2515fi 2516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2517$as_echo "$INSTALL" >&6; } 2518 2519# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2520# It thinks the first close brace ends the variable substitution. 2521test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2522 2523test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2524 2525test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2526 2527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2528$as_echo_n "checking whether build environment is sane... " >&6; } 2529# Reject unsafe characters in $srcdir or the absolute working directory 2530# name. Accept space and tab only in the latter. 2531am_lf=' 2532' 2533case `pwd` in 2534 *[\\\"\#\$\&\'\`$am_lf]*) 2535 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2536esac 2537case $srcdir in 2538 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2539 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2540esac 2541 2542# Do 'set' in a subshell so we don't clobber the current shell's 2543# arguments. Must try -L first in case configure is actually a 2544# symlink; some systems play weird games with the mod time of symlinks 2545# (eg FreeBSD returns the mod time of the symlink's containing 2546# directory). 2547if ( 2548 am_has_slept=no 2549 for am_try in 1 2; do 2550 echo "timestamp, slept: $am_has_slept" > conftest.file 2551 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2552 if test "$*" = "X"; then 2553 # -L didn't work. 2554 set X `ls -t "$srcdir/configure" conftest.file` 2555 fi 2556 if test "$*" != "X $srcdir/configure conftest.file" \ 2557 && test "$*" != "X conftest.file $srcdir/configure"; then 2558 2559 # If neither matched, then we have a broken ls. This can happen 2560 # if, for instance, CONFIG_SHELL is bash and it inherits a 2561 # broken ls alias from the environment. This has actually 2562 # happened. Such a system could not be considered "sane". 2563 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2564 alias in your environment" "$LINENO" 5 2565 fi 2566 if test "$2" = conftest.file || test $am_try -eq 2; then 2567 break 2568 fi 2569 # Just in case. 2570 sleep 1 2571 am_has_slept=yes 2572 done 2573 test "$2" = conftest.file 2574 ) 2575then 2576 # Ok. 2577 : 2578else 2579 as_fn_error $? "newly created file is older than distributed files! 2580Check your system clock" "$LINENO" 5 2581fi 2582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2583$as_echo "yes" >&6; } 2584# If we didn't sleep, we still need to ensure time stamps of config.status and 2585# generated files are strictly newer. 2586am_sleep_pid= 2587if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2588 ( sleep 1 ) & 2589 am_sleep_pid=$! 2590fi 2591 2592rm -f conftest.file 2593 2594test "$program_prefix" != NONE && 2595 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2596# Use a double $ so make ignores it. 2597test "$program_suffix" != NONE && 2598 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2599# Double any \ or $. 2600# By default was `s,x,x', remove it if useless. 2601ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2602program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2603 2604# expand $ac_aux_dir to an absolute path 2605am_aux_dir=`cd $ac_aux_dir && pwd` 2606 2607if test x"${MISSING+set}" != xset; then 2608 case $am_aux_dir in 2609 *\ * | *\ *) 2610 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2611 *) 2612 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2613 esac 2614fi 2615# Use eval to expand $SHELL 2616if eval "$MISSING --is-lightweight"; then 2617 am_missing_run="$MISSING " 2618else 2619 am_missing_run= 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2621$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2622fi 2623 2624if test x"${install_sh}" != xset; then 2625 case $am_aux_dir in 2626 *\ * | *\ *) 2627 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2628 *) 2629 install_sh="\${SHELL} $am_aux_dir/install-sh" 2630 esac 2631fi 2632 2633# Installed binaries are usually stripped using 'strip' when the user 2634# run "make install-strip". However 'strip' might not be the right 2635# tool to use in cross-compilation environments, therefore Automake 2636# will honor the 'STRIP' environment variable to overrule this program. 2637if test "$cross_compiling" != no; then 2638 if test -n "$ac_tool_prefix"; then 2639 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2640set dummy ${ac_tool_prefix}strip; ac_word=$2 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2642$as_echo_n "checking for $ac_word... " >&6; } 2643if ${ac_cv_prog_STRIP+:} false; then : 2644 $as_echo_n "(cached) " >&6 2645else 2646 if test -n "$STRIP"; then 2647 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2648else 2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2650for as_dir in $PATH 2651do 2652 IFS=$as_save_IFS 2653 test -z "$as_dir" && as_dir=. 2654 for ac_exec_ext in '' $ac_executable_extensions; do 2655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2656 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2658 break 2 2659 fi 2660done 2661 done 2662IFS=$as_save_IFS 2663 2664fi 2665fi 2666STRIP=$ac_cv_prog_STRIP 2667if test -n "$STRIP"; then 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2669$as_echo "$STRIP" >&6; } 2670else 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2672$as_echo "no" >&6; } 2673fi 2674 2675 2676fi 2677if test -z "$ac_cv_prog_STRIP"; then 2678 ac_ct_STRIP=$STRIP 2679 # Extract the first word of "strip", so it can be a program name with args. 2680set dummy strip; ac_word=$2 2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2682$as_echo_n "checking for $ac_word... " >&6; } 2683if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2684 $as_echo_n "(cached) " >&6 2685else 2686 if test -n "$ac_ct_STRIP"; then 2687 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2688else 2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2690for as_dir in $PATH 2691do 2692 IFS=$as_save_IFS 2693 test -z "$as_dir" && as_dir=. 2694 for ac_exec_ext in '' $ac_executable_extensions; do 2695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2696 ac_cv_prog_ac_ct_STRIP="strip" 2697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2698 break 2 2699 fi 2700done 2701 done 2702IFS=$as_save_IFS 2703 2704fi 2705fi 2706ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2707if test -n "$ac_ct_STRIP"; then 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2709$as_echo "$ac_ct_STRIP" >&6; } 2710else 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2712$as_echo "no" >&6; } 2713fi 2714 2715 if test "x$ac_ct_STRIP" = x; then 2716 STRIP=":" 2717 else 2718 case $cross_compiling:$ac_tool_warned in 2719yes:) 2720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2722ac_tool_warned=yes ;; 2723esac 2724 STRIP=$ac_ct_STRIP 2725 fi 2726else 2727 STRIP="$ac_cv_prog_STRIP" 2728fi 2729 2730fi 2731INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2732 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2734$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2735if test -z "$MKDIR_P"; then 2736 if ${ac_cv_path_mkdir+:} false; then : 2737 $as_echo_n "(cached) " >&6 2738else 2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2740for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2741do 2742 IFS=$as_save_IFS 2743 test -z "$as_dir" && as_dir=. 2744 for ac_prog in mkdir gmkdir; do 2745 for ac_exec_ext in '' $ac_executable_extensions; do 2746 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2747 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2748 'mkdir (GNU coreutils) '* | \ 2749 'mkdir (coreutils) '* | \ 2750 'mkdir (fileutils) '4.1*) 2751 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2752 break 3;; 2753 esac 2754 done 2755 done 2756 done 2757IFS=$as_save_IFS 2758 2759fi 2760 2761 test -d ./--version && rmdir ./--version 2762 if test "${ac_cv_path_mkdir+set}" = set; then 2763 MKDIR_P="$ac_cv_path_mkdir -p" 2764 else 2765 # As a last resort, use the slow shell script. Don't cache a 2766 # value for MKDIR_P within a source directory, because that will 2767 # break other packages using the cache if that directory is 2768 # removed, or if the value is a relative name. 2769 MKDIR_P="$ac_install_sh -d" 2770 fi 2771fi 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2773$as_echo "$MKDIR_P" >&6; } 2774 2775for ac_prog in gawk mawk nawk awk 2776do 2777 # Extract the first word of "$ac_prog", so it can be a program name with args. 2778set dummy $ac_prog; ac_word=$2 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2780$as_echo_n "checking for $ac_word... " >&6; } 2781if ${ac_cv_prog_AWK+:} false; then : 2782 $as_echo_n "(cached) " >&6 2783else 2784 if test -n "$AWK"; then 2785 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2786else 2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2788for as_dir in $PATH 2789do 2790 IFS=$as_save_IFS 2791 test -z "$as_dir" && as_dir=. 2792 for ac_exec_ext in '' $ac_executable_extensions; do 2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2794 ac_cv_prog_AWK="$ac_prog" 2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2796 break 2 2797 fi 2798done 2799 done 2800IFS=$as_save_IFS 2801 2802fi 2803fi 2804AWK=$ac_cv_prog_AWK 2805if test -n "$AWK"; then 2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2807$as_echo "$AWK" >&6; } 2808else 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2810$as_echo "no" >&6; } 2811fi 2812 2813 2814 test -n "$AWK" && break 2815done 2816 2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2818$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2819set x ${MAKE-make} 2820ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2821if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2822 $as_echo_n "(cached) " >&6 2823else 2824 cat >conftest.make <<\_ACEOF 2825SHELL = /bin/sh 2826all: 2827 @echo '@@@%%%=$(MAKE)=@@@%%%' 2828_ACEOF 2829# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2830case `${MAKE-make} -f conftest.make 2>/dev/null` in 2831 *@@@%%%=?*=@@@%%%*) 2832 eval ac_cv_prog_make_${ac_make}_set=yes;; 2833 *) 2834 eval ac_cv_prog_make_${ac_make}_set=no;; 2835esac 2836rm -f conftest.make 2837fi 2838if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2840$as_echo "yes" >&6; } 2841 SET_MAKE= 2842else 2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2844$as_echo "no" >&6; } 2845 SET_MAKE="MAKE=${MAKE-make}" 2846fi 2847 2848rm -rf .tst 2>/dev/null 2849mkdir .tst 2>/dev/null 2850if test -d .tst; then 2851 am__leading_dot=. 2852else 2853 am__leading_dot=_ 2854fi 2855rmdir .tst 2>/dev/null 2856 2857# Check whether --enable-silent-rules was given. 2858if test "${enable_silent_rules+set}" = set; then : 2859 enableval=$enable_silent_rules; 2860fi 2861 2862case $enable_silent_rules in # ((( 2863 yes) AM_DEFAULT_VERBOSITY=0;; 2864 no) AM_DEFAULT_VERBOSITY=1;; 2865 *) AM_DEFAULT_VERBOSITY=1;; 2866esac 2867am_make=${MAKE-make} 2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2869$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2870if ${am_cv_make_support_nested_variables+:} false; then : 2871 $as_echo_n "(cached) " >&6 2872else 2873 if $as_echo 'TRUE=$(BAR$(V)) 2874BAR0=false 2875BAR1=true 2876V=1 2877am__doit: 2878 @$(TRUE) 2879.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2880 am_cv_make_support_nested_variables=yes 2881else 2882 am_cv_make_support_nested_variables=no 2883fi 2884fi 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2886$as_echo "$am_cv_make_support_nested_variables" >&6; } 2887if test $am_cv_make_support_nested_variables = yes; then 2888 AM_V='$(V)' 2889 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2890else 2891 AM_V=$AM_DEFAULT_VERBOSITY 2892 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2893fi 2894AM_BACKSLASH='\' 2895 2896if test "`cd $srcdir && pwd`" != "`pwd`"; then 2897 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2898 # is not polluted with repeated "-I." 2899 am__isrc=' -I$(srcdir)' 2900 # test to see if srcdir already configured 2901 if test -f $srcdir/config.status; then 2902 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2903 fi 2904fi 2905 2906# test whether we have cygpath 2907if test -z "$CYGPATH_W"; then 2908 if (cygpath --version) >/dev/null 2>/dev/null; then 2909 CYGPATH_W='cygpath -w' 2910 else 2911 CYGPATH_W=echo 2912 fi 2913fi 2914 2915 2916# Define the identity of the package. 2917 PACKAGE='soundtouch' 2918 VERSION='1.7.0' 2919 2920 2921cat >>confdefs.h <<_ACEOF 2922#define PACKAGE "$PACKAGE" 2923_ACEOF 2924 2925 2926cat >>confdefs.h <<_ACEOF 2927#define VERSION "$VERSION" 2928_ACEOF 2929 2930# Some tools Automake needs. 2931 2932ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2933 2934 2935AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2936 2937 2938AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2939 2940 2941AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2942 2943 2944MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2945 2946# For better backward compatibility. To be removed once Automake 1.9.x 2947# dies out for good. For more background, see: 2948# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2949# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2950mkdir_p='$(MKDIR_P)' 2951 2952# We need awk for the "check" target. The system "awk" is bad on 2953# some platforms. 2954# Always define AMTAR for backward compatibility. Yes, it's still used 2955# in the wild :-( We should find a proper way to deprecate it ... 2956AMTAR='$${TAR-tar}' 2957 2958 2959# We'll loop over all known methods to create a tar archive until one works. 2960_am_tools='gnutar pax cpio none' 2961 2962am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2963 2964 2965 2966 2967 2968 2969# POSIX will say in a future version that running "rm -f" with no argument 2970# is OK; and we want to be able to make that assumption in our Makefile 2971# recipes. So use an aggressive probe to check that the usage we want is 2972# actually supported "in the wild" to an acceptable degree. 2973# See automake bug#10828. 2974# To make any issue more visible, cause the running configure to be aborted 2975# by default if the 'rm' program in use doesn't match our expectations; the 2976# user can still override this though. 2977if rm -f && rm -fr && rm -rf; then : OK; else 2978 cat >&2 <<'END' 2979Oops! 2980 2981Your 'rm' program seems unable to run without file operands specified 2982on the command line, even when the '-f' option is present. This is contrary 2983to the behaviour of most rm programs out there, and not conforming with 2984the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2985 2986Please tell bug-automake@gnu.org about your system, including the value 2987of your $PATH and any error possibly output before this message. This 2988can help us improve future automake versions. 2989 2990END 2991 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2992 echo 'Configuration will proceed anyway, since you have set the' >&2 2993 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2994 echo >&2 2995 else 2996 cat >&2 <<'END' 2997Aborting the configuration process, to ensure you take notice of the issue. 2998 2999You can download and install GNU coreutils to get an 'rm' implementation 3000that behaves properly: <http://www.gnu.org/software/coreutils/>. 3001 3002If you want to complete the configuration process using your problematic 3003'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3004to "yes", and re-run configure. 3005 3006END 3007 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3008 fi 3009fi 3010 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3012$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3013 # Check whether --enable-maintainer-mode was given. 3014if test "${enable_maintainer_mode+set}" = set; then : 3015 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3016else 3017 USE_MAINTAINER_MODE=no 3018fi 3019 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3021$as_echo "$USE_MAINTAINER_MODE" >&6; } 3022 if test $USE_MAINTAINER_MODE = yes; then 3023 MAINTAINER_MODE_TRUE= 3024 MAINTAINER_MODE_FALSE='#' 3025else 3026 MAINTAINER_MODE_TRUE='#' 3027 MAINTAINER_MODE_FALSE= 3028fi 3029 3030 MAINT=$MAINTAINER_MODE_TRUE 3031 3032 3033#AC_DISABLE_SHARED dnl This makes libtool only build static libs 3034# Check whether --enable-static was given. 3035if test "${enable_static+set}" = set; then : 3036 enableval=$enable_static; p=${PACKAGE-default} 3037 case $enableval in 3038 yes) enable_static=yes ;; 3039 no) enable_static=no ;; 3040 *) 3041 enable_static=no 3042 # Look at the argument we got. We use all the common list separators. 3043 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3044 for pkg in $enableval; do 3045 IFS="$lt_save_ifs" 3046 if test "X$pkg" = "X$p"; then 3047 enable_static=yes 3048 fi 3049 done 3050 IFS="$lt_save_ifs" 3051 ;; 3052 esac 3053else 3054 enable_static=no 3055fi 3056 3057 3058 3059 3060 3061 3062 3063 3064 #AC_GNU_SOURCE dnl enable posix extensions in glibc 3065 3066ac_ext=cpp 3067ac_cpp='$CXXCPP $CPPFLAGS' 3068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3071 3072 3073 3074 3075 3076 3077ac_ext=cpp 3078ac_cpp='$CXXCPP $CPPFLAGS' 3079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3082if test -z "$CXX"; then 3083 if test -n "$CCC"; then 3084 CXX=$CCC 3085 else 3086 if test -n "$ac_tool_prefix"; then 3087 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3088 do 3089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3090set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3092$as_echo_n "checking for $ac_word... " >&6; } 3093if ${ac_cv_prog_CXX+:} false; then : 3094 $as_echo_n "(cached) " >&6 3095else 3096 if test -n "$CXX"; then 3097 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3098else 3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3100for as_dir in $PATH 3101do 3102 IFS=$as_save_IFS 3103 test -z "$as_dir" && as_dir=. 3104 for ac_exec_ext in '' $ac_executable_extensions; do 3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3106 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3108 break 2 3109 fi 3110done 3111 done 3112IFS=$as_save_IFS 3113 3114fi 3115fi 3116CXX=$ac_cv_prog_CXX 3117if test -n "$CXX"; then 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3119$as_echo "$CXX" >&6; } 3120else 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3122$as_echo "no" >&6; } 3123fi 3124 3125 3126 test -n "$CXX" && break 3127 done 3128fi 3129if test -z "$CXX"; then 3130 ac_ct_CXX=$CXX 3131 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3132do 3133 # Extract the first word of "$ac_prog", so it can be a program name with args. 3134set dummy $ac_prog; ac_word=$2 3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3136$as_echo_n "checking for $ac_word... " >&6; } 3137if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3138 $as_echo_n "(cached) " >&6 3139else 3140 if test -n "$ac_ct_CXX"; then 3141 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3142else 3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3144for as_dir in $PATH 3145do 3146 IFS=$as_save_IFS 3147 test -z "$as_dir" && as_dir=. 3148 for ac_exec_ext in '' $ac_executable_extensions; do 3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3150 ac_cv_prog_ac_ct_CXX="$ac_prog" 3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3152 break 2 3153 fi 3154done 3155 done 3156IFS=$as_save_IFS 3157 3158fi 3159fi 3160ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3161if test -n "$ac_ct_CXX"; then 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3163$as_echo "$ac_ct_CXX" >&6; } 3164else 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3166$as_echo "no" >&6; } 3167fi 3168 3169 3170 test -n "$ac_ct_CXX" && break 3171done 3172 3173 if test "x$ac_ct_CXX" = x; then 3174 CXX="g++" 3175 else 3176 case $cross_compiling:$ac_tool_warned in 3177yes:) 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3180ac_tool_warned=yes ;; 3181esac 3182 CXX=$ac_ct_CXX 3183 fi 3184fi 3185 3186 fi 3187fi 3188# Provide some information about the compiler. 3189$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3190set X $ac_compile 3191ac_compiler=$2 3192for ac_option in --version -v -V -qversion; do 3193 { { ac_try="$ac_compiler $ac_option >&5" 3194case "(($ac_try" in 3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3196 *) ac_try_echo=$ac_try;; 3197esac 3198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3199$as_echo "$ac_try_echo"; } >&5 3200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3201 ac_status=$? 3202 if test -s conftest.err; then 3203 sed '10a\ 3204... rest of stderr output deleted ... 3205 10q' conftest.err >conftest.er1 3206 cat conftest.er1 >&5 3207 fi 3208 rm -f conftest.er1 conftest.err 3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3210 test $ac_status = 0; } 3211done 3212 3213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3214/* end confdefs.h. */ 3215 3216int 3217main () 3218{ 3219 3220 ; 3221 return 0; 3222} 3223_ACEOF 3224ac_clean_files_save=$ac_clean_files 3225ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3226# Try to create an executable without -o first, disregard a.out. 3227# It will help us diagnose broken compilers, and finding out an intuition 3228# of exeext. 3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 3230$as_echo_n "checking whether the C++ compiler works... " >&6; } 3231ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3232 3233# The possible output files: 3234ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3235 3236ac_rmfiles= 3237for ac_file in $ac_files 3238do 3239 case $ac_file in 3240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3241 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3242 esac 3243done 3244rm -f $ac_rmfiles 3245 3246if { { ac_try="$ac_link_default" 3247case "(($ac_try" in 3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *) ac_try_echo=$ac_try;; 3250esac 3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3252$as_echo "$ac_try_echo"; } >&5 3253 (eval "$ac_link_default") 2>&5 3254 ac_status=$? 3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3256 test $ac_status = 0; }; then : 3257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3258# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3259# in a Makefile. We should not override ac_cv_exeext if it was cached, 3260# so that the user can short-circuit this test for compilers unknown to 3261# Autoconf. 3262for ac_file in $ac_files '' 3263do 3264 test -f "$ac_file" || continue 3265 case $ac_file in 3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3267 ;; 3268 [ab].out ) 3269 # We found the default executable, but exeext='' is most 3270 # certainly right. 3271 break;; 3272 *.* ) 3273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3274 then :; else 3275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3276 fi 3277 # We set ac_cv_exeext here because the later test for it is not 3278 # safe: cross compilers may not add the suffix if given an `-o' 3279 # argument, so we may need to know it at that point already. 3280 # Even if this section looks crufty: it has the advantage of 3281 # actually working. 3282 break;; 3283 * ) 3284 break;; 3285 esac 3286done 3287test "$ac_cv_exeext" = no && ac_cv_exeext= 3288 3289else 3290 ac_file='' 3291fi 3292if test -z "$ac_file"; then : 3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3294$as_echo "no" >&6; } 3295$as_echo "$as_me: failed program was:" >&5 3296sed 's/^/| /' conftest.$ac_ext >&5 3297 3298{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3300as_fn_error 77 "C++ compiler cannot create executables 3301See \`config.log' for more details" "$LINENO" 5; } 3302else 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3304$as_echo "yes" >&6; } 3305fi 3306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 3307$as_echo_n "checking for C++ compiler default output file name... " >&6; } 3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3309$as_echo "$ac_file" >&6; } 3310ac_exeext=$ac_cv_exeext 3311 3312rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3313ac_clean_files=$ac_clean_files_save 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3315$as_echo_n "checking for suffix of executables... " >&6; } 3316if { { ac_try="$ac_link" 3317case "(($ac_try" in 3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3319 *) ac_try_echo=$ac_try;; 3320esac 3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3322$as_echo "$ac_try_echo"; } >&5 3323 (eval "$ac_link") 2>&5 3324 ac_status=$? 3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3326 test $ac_status = 0; }; then : 3327 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3328# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3329# work properly (i.e., refer to `conftest.exe'), while it won't with 3330# `rm'. 3331for ac_file in conftest.exe conftest conftest.*; do 3332 test -f "$ac_file" || continue 3333 case $ac_file in 3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3336 break;; 3337 * ) break;; 3338 esac 3339done 3340else 3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3343as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3344See \`config.log' for more details" "$LINENO" 5; } 3345fi 3346rm -f conftest conftest$ac_cv_exeext 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3348$as_echo "$ac_cv_exeext" >&6; } 3349 3350rm -f conftest.$ac_ext 3351EXEEXT=$ac_cv_exeext 3352ac_exeext=$EXEEXT 3353cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3354/* end confdefs.h. */ 3355#include <stdio.h> 3356int 3357main () 3358{ 3359FILE *f = fopen ("conftest.out", "w"); 3360 return ferror (f) || fclose (f) != 0; 3361 3362 ; 3363 return 0; 3364} 3365_ACEOF 3366ac_clean_files="$ac_clean_files conftest.out" 3367# Check that the compiler produces executables we can run. If not, either 3368# the compiler is broken, or we cross compile. 3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3370$as_echo_n "checking whether we are cross compiling... " >&6; } 3371if test "$cross_compiling" != yes; then 3372 { { ac_try="$ac_link" 3373case "(($ac_try" in 3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3375 *) ac_try_echo=$ac_try;; 3376esac 3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3378$as_echo "$ac_try_echo"; } >&5 3379 (eval "$ac_link") 2>&5 3380 ac_status=$? 3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3382 test $ac_status = 0; } 3383 if { ac_try='./conftest$ac_cv_exeext' 3384 { { case "(($ac_try" in 3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3386 *) ac_try_echo=$ac_try;; 3387esac 3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3389$as_echo "$ac_try_echo"; } >&5 3390 (eval "$ac_try") 2>&5 3391 ac_status=$? 3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3393 test $ac_status = 0; }; }; then 3394 cross_compiling=no 3395 else 3396 if test "$cross_compiling" = maybe; then 3397 cross_compiling=yes 3398 else 3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3401as_fn_error $? "cannot run C++ compiled programs. 3402If you meant to cross compile, use \`--host'. 3403See \`config.log' for more details" "$LINENO" 5; } 3404 fi 3405 fi 3406fi 3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3408$as_echo "$cross_compiling" >&6; } 3409 3410rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3411ac_clean_files=$ac_clean_files_save 3412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3413$as_echo_n "checking for suffix of object files... " >&6; } 3414if ${ac_cv_objext+:} false; then : 3415 $as_echo_n "(cached) " >&6 3416else 3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3418/* end confdefs.h. */ 3419 3420int 3421main () 3422{ 3423 3424 ; 3425 return 0; 3426} 3427_ACEOF 3428rm -f conftest.o conftest.obj 3429if { { ac_try="$ac_compile" 3430case "(($ac_try" in 3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3432 *) ac_try_echo=$ac_try;; 3433esac 3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3435$as_echo "$ac_try_echo"; } >&5 3436 (eval "$ac_compile") 2>&5 3437 ac_status=$? 3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3439 test $ac_status = 0; }; then : 3440 for ac_file in conftest.o conftest.obj conftest.*; do 3441 test -f "$ac_file" || continue; 3442 case $ac_file in 3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3445 break;; 3446 esac 3447done 3448else 3449 $as_echo "$as_me: failed program was:" >&5 3450sed 's/^/| /' conftest.$ac_ext >&5 3451 3452{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3454as_fn_error $? "cannot compute suffix of object files: cannot compile 3455See \`config.log' for more details" "$LINENO" 5; } 3456fi 3457rm -f conftest.$ac_cv_objext conftest.$ac_ext 3458fi 3459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3460$as_echo "$ac_cv_objext" >&6; } 3461OBJEXT=$ac_cv_objext 3462ac_objext=$OBJEXT 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3464$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3465if ${ac_cv_cxx_compiler_gnu+:} false; then : 3466 $as_echo_n "(cached) " >&6 3467else 3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3469/* end confdefs.h. */ 3470 3471int 3472main () 3473{ 3474#ifndef __GNUC__ 3475 choke me 3476#endif 3477 3478 ; 3479 return 0; 3480} 3481_ACEOF 3482if ac_fn_cxx_try_compile "$LINENO"; then : 3483 ac_compiler_gnu=yes 3484else 3485 ac_compiler_gnu=no 3486fi 3487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3488ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3489 3490fi 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3492$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3493if test $ac_compiler_gnu = yes; then 3494 GXX=yes 3495else 3496 GXX= 3497fi 3498ac_test_CXXFLAGS=${CXXFLAGS+set} 3499ac_save_CXXFLAGS=$CXXFLAGS 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3501$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3502if ${ac_cv_prog_cxx_g+:} false; then : 3503 $as_echo_n "(cached) " >&6 3504else 3505 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3506 ac_cxx_werror_flag=yes 3507 ac_cv_prog_cxx_g=no 3508 CXXFLAGS="-g" 3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3510/* end confdefs.h. */ 3511 3512int 3513main () 3514{ 3515 3516 ; 3517 return 0; 3518} 3519_ACEOF 3520if ac_fn_cxx_try_compile "$LINENO"; then : 3521 ac_cv_prog_cxx_g=yes 3522else 3523 CXXFLAGS="" 3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3525/* end confdefs.h. */ 3526 3527int 3528main () 3529{ 3530 3531 ; 3532 return 0; 3533} 3534_ACEOF 3535if ac_fn_cxx_try_compile "$LINENO"; then : 3536 3537else 3538 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3539 CXXFLAGS="-g" 3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3541/* end confdefs.h. */ 3542 3543int 3544main () 3545{ 3546 3547 ; 3548 return 0; 3549} 3550_ACEOF 3551if ac_fn_cxx_try_compile "$LINENO"; then : 3552 ac_cv_prog_cxx_g=yes 3553fi 3554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3555fi 3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3557fi 3558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3559 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3560fi 3561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3562$as_echo "$ac_cv_prog_cxx_g" >&6; } 3563if test "$ac_test_CXXFLAGS" = set; then 3564 CXXFLAGS=$ac_save_CXXFLAGS 3565elif test $ac_cv_prog_cxx_g = yes; then 3566 if test "$GXX" = yes; then 3567 CXXFLAGS="-g -O2" 3568 else 3569 CXXFLAGS="-g" 3570 fi 3571else 3572 if test "$GXX" = yes; then 3573 CXXFLAGS="-O2" 3574 else 3575 CXXFLAGS= 3576 fi 3577fi 3578ac_ext=cpp 3579ac_cpp='$CXXCPP $CPPFLAGS' 3580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3583DEPDIR="${am__leading_dot}deps" 3584 3585ac_config_commands="$ac_config_commands depfiles" 3586 3587 3588am_make=${MAKE-make} 3589cat > confinc << 'END' 3590am__doit: 3591 @echo this is the am__doit target 3592.PHONY: am__doit 3593END 3594# If we don't find an include directive, just comment out the code. 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3596$as_echo_n "checking for style of include used by $am_make... " >&6; } 3597am__include="#" 3598am__quote= 3599_am_result=none 3600# First try GNU make style include. 3601echo "include confinc" > confmf 3602# Ignore all kinds of additional output from 'make'. 3603case `$am_make -s -f confmf 2> /dev/null` in #( 3604*the\ am__doit\ target*) 3605 am__include=include 3606 am__quote= 3607 _am_result=GNU 3608 ;; 3609esac 3610# Now try BSD make style include. 3611if test "$am__include" = "#"; then 3612 echo '.include "confinc"' > confmf 3613 case `$am_make -s -f confmf 2> /dev/null` in #( 3614 *the\ am__doit\ target*) 3615 am__include=.include 3616 am__quote="\"" 3617 _am_result=BSD 3618 ;; 3619 esac 3620fi 3621 3622 3623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3624$as_echo "$_am_result" >&6; } 3625rm -f confinc confmf 3626 3627# Check whether --enable-dependency-tracking was given. 3628if test "${enable_dependency_tracking+set}" = set; then : 3629 enableval=$enable_dependency_tracking; 3630fi 3631 3632if test "x$enable_dependency_tracking" != xno; then 3633 am_depcomp="$ac_aux_dir/depcomp" 3634 AMDEPBACKSLASH='\' 3635 am__nodep='_no' 3636fi 3637 if test "x$enable_dependency_tracking" != xno; then 3638 AMDEP_TRUE= 3639 AMDEP_FALSE='#' 3640else 3641 AMDEP_TRUE='#' 3642 AMDEP_FALSE= 3643fi 3644 3645 3646 3647depcc="$CXX" am_compiler_list= 3648 3649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3650$as_echo_n "checking dependency style of $depcc... " >&6; } 3651if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 3652 $as_echo_n "(cached) " >&6 3653else 3654 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3655 # We make a subdir and do the tests there. Otherwise we can end up 3656 # making bogus files that we don't know about and never remove. For 3657 # instance it was reported that on HP-UX the gcc test will end up 3658 # making a dummy file named 'D' -- because '-MD' means "put the output 3659 # in D". 3660 rm -rf conftest.dir 3661 mkdir conftest.dir 3662 # Copy depcomp to subdir because otherwise we won't find it if we're 3663 # using a relative directory. 3664 cp "$am_depcomp" conftest.dir 3665 cd conftest.dir 3666 # We will build objects and dependencies in a subdirectory because 3667 # it helps to detect inapplicable dependency modes. For instance 3668 # both Tru64's cc and ICC support -MD to output dependencies as a 3669 # side effect of compilation, but ICC will put the dependencies in 3670 # the current directory while Tru64 will put them in the object 3671 # directory. 3672 mkdir sub 3673 3674 am_cv_CXX_dependencies_compiler_type=none 3675 if test "$am_compiler_list" = ""; then 3676 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3677 fi 3678 am__universal=false 3679 case " $depcc " in #( 3680 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3681 esac 3682 3683 for depmode in $am_compiler_list; do 3684 # Setup a source with many dependencies, because some compilers 3685 # like to wrap large dependency lists on column 80 (with \), and 3686 # we should not choose a depcomp mode which is confused by this. 3687 # 3688 # We need to recreate these files for each test, as the compiler may 3689 # overwrite some of them when testing with obscure command lines. 3690 # This happens at least with the AIX C compiler. 3691 : > sub/conftest.c 3692 for i in 1 2 3 4 5 6; do 3693 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3694 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3695 # Solaris 10 /bin/sh. 3696 echo '/* dummy */' > sub/conftst$i.h 3697 done 3698 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3699 3700 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3701 # mode. It turns out that the SunPro C++ compiler does not properly 3702 # handle '-M -o', and we need to detect this. Also, some Intel 3703 # versions had trouble with output in subdirs. 3704 am__obj=sub/conftest.${OBJEXT-o} 3705 am__minus_obj="-o $am__obj" 3706 case $depmode in 3707 gcc) 3708 # This depmode causes a compiler race in universal mode. 3709 test "$am__universal" = false || continue 3710 ;; 3711 nosideeffect) 3712 # After this tag, mechanisms are not by side-effect, so they'll 3713 # only be used when explicitly requested. 3714 if test "x$enable_dependency_tracking" = xyes; then 3715 continue 3716 else 3717 break 3718 fi 3719 ;; 3720 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3721 # This compiler won't grok '-c -o', but also, the minuso test has 3722 # not run yet. These depmodes are late enough in the game, and 3723 # so weak that their functioning should not be impacted. 3724 am__obj=conftest.${OBJEXT-o} 3725 am__minus_obj= 3726 ;; 3727 none) break ;; 3728 esac 3729 if depmode=$depmode \ 3730 source=sub/conftest.c object=$am__obj \ 3731 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3732 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3733 >/dev/null 2>conftest.err && 3734 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3735 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3736 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3737 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3738 # icc doesn't choke on unknown options, it will just issue warnings 3739 # or remarks (even with -Werror). So we grep stderr for any message 3740 # that says an option was ignored or not supported. 3741 # When given -MP, icc 7.0 and 7.1 complain thusly: 3742 # icc: Command line warning: ignoring option '-M'; no argument required 3743 # The diagnosis changed in icc 8.0: 3744 # icc: Command line remark: option '-MP' not supported 3745 if (grep 'ignoring option' conftest.err || 3746 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3747 am_cv_CXX_dependencies_compiler_type=$depmode 3748 break 3749 fi 3750 fi 3751 done 3752 3753 cd .. 3754 rm -rf conftest.dir 3755else 3756 am_cv_CXX_dependencies_compiler_type=none 3757fi 3758 3759fi 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 3761$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3762CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3763 3764 if 3765 test "x$enable_dependency_tracking" != xno \ 3766 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3767 am__fastdepCXX_TRUE= 3768 am__fastdepCXX_FALSE='#' 3769else 3770 am__fastdepCXX_TRUE='#' 3771 am__fastdepCXX_FALSE= 3772fi 3773 3774 3775#AC_PROG_AWK 3776ac_ext=c 3777ac_cpp='$CPP $CPPFLAGS' 3778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3780ac_compiler_gnu=$ac_cv_c_compiler_gnu 3781if test -n "$ac_tool_prefix"; then 3782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3783set dummy ${ac_tool_prefix}gcc; ac_word=$2 3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3785$as_echo_n "checking for $ac_word... " >&6; } 3786if ${ac_cv_prog_CC+:} false; then : 3787 $as_echo_n "(cached) " >&6 3788else 3789 if test -n "$CC"; then 3790 ac_cv_prog_CC="$CC" # Let the user override the test. 3791else 3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3793for as_dir in $PATH 3794do 3795 IFS=$as_save_IFS 3796 test -z "$as_dir" && as_dir=. 3797 for ac_exec_ext in '' $ac_executable_extensions; do 3798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3799 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3801 break 2 3802 fi 3803done 3804 done 3805IFS=$as_save_IFS 3806 3807fi 3808fi 3809CC=$ac_cv_prog_CC 3810if test -n "$CC"; then 3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3812$as_echo "$CC" >&6; } 3813else 3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3815$as_echo "no" >&6; } 3816fi 3817 3818 3819fi 3820if test -z "$ac_cv_prog_CC"; then 3821 ac_ct_CC=$CC 3822 # Extract the first word of "gcc", so it can be a program name with args. 3823set dummy gcc; ac_word=$2 3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3825$as_echo_n "checking for $ac_word... " >&6; } 3826if ${ac_cv_prog_ac_ct_CC+:} false; then : 3827 $as_echo_n "(cached) " >&6 3828else 3829 if test -n "$ac_ct_CC"; then 3830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3831else 3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3833for as_dir in $PATH 3834do 3835 IFS=$as_save_IFS 3836 test -z "$as_dir" && as_dir=. 3837 for ac_exec_ext in '' $ac_executable_extensions; do 3838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3839 ac_cv_prog_ac_ct_CC="gcc" 3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3841 break 2 3842 fi 3843done 3844 done 3845IFS=$as_save_IFS 3846 3847fi 3848fi 3849ac_ct_CC=$ac_cv_prog_ac_ct_CC 3850if test -n "$ac_ct_CC"; then 3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3852$as_echo "$ac_ct_CC" >&6; } 3853else 3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3855$as_echo "no" >&6; } 3856fi 3857 3858 if test "x$ac_ct_CC" = x; then 3859 CC="" 3860 else 3861 case $cross_compiling:$ac_tool_warned in 3862yes:) 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3865ac_tool_warned=yes ;; 3866esac 3867 CC=$ac_ct_CC 3868 fi 3869else 3870 CC="$ac_cv_prog_CC" 3871fi 3872 3873if test -z "$CC"; then 3874 if test -n "$ac_tool_prefix"; then 3875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3876set dummy ${ac_tool_prefix}cc; ac_word=$2 3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3878$as_echo_n "checking for $ac_word... " >&6; } 3879if ${ac_cv_prog_CC+:} false; then : 3880 $as_echo_n "(cached) " >&6 3881else 3882 if test -n "$CC"; then 3883 ac_cv_prog_CC="$CC" # Let the user override the test. 3884else 3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3886for as_dir in $PATH 3887do 3888 IFS=$as_save_IFS 3889 test -z "$as_dir" && as_dir=. 3890 for ac_exec_ext in '' $ac_executable_extensions; do 3891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3892 ac_cv_prog_CC="${ac_tool_prefix}cc" 3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3894 break 2 3895 fi 3896done 3897 done 3898IFS=$as_save_IFS 3899 3900fi 3901fi 3902CC=$ac_cv_prog_CC 3903if test -n "$CC"; then 3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3905$as_echo "$CC" >&6; } 3906else 3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3908$as_echo "no" >&6; } 3909fi 3910 3911 3912 fi 3913fi 3914if test -z "$CC"; then 3915 # Extract the first word of "cc", so it can be a program name with args. 3916set dummy cc; ac_word=$2 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3918$as_echo_n "checking for $ac_word... " >&6; } 3919if ${ac_cv_prog_CC+:} false; then : 3920 $as_echo_n "(cached) " >&6 3921else 3922 if test -n "$CC"; then 3923 ac_cv_prog_CC="$CC" # Let the user override the test. 3924else 3925 ac_prog_rejected=no 3926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3927for as_dir in $PATH 3928do 3929 IFS=$as_save_IFS 3930 test -z "$as_dir" && as_dir=. 3931 for ac_exec_ext in '' $ac_executable_extensions; do 3932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3934 ac_prog_rejected=yes 3935 continue 3936 fi 3937 ac_cv_prog_CC="cc" 3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3939 break 2 3940 fi 3941done 3942 done 3943IFS=$as_save_IFS 3944 3945if test $ac_prog_rejected = yes; then 3946 # We found a bogon in the path, so make sure we never use it. 3947 set dummy $ac_cv_prog_CC 3948 shift 3949 if test $# != 0; then 3950 # We chose a different compiler from the bogus one. 3951 # However, it has the same basename, so the bogon will be chosen 3952 # first if we set CC to just the basename; use the full file name. 3953 shift 3954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3955 fi 3956fi 3957fi 3958fi 3959CC=$ac_cv_prog_CC 3960if test -n "$CC"; then 3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3962$as_echo "$CC" >&6; } 3963else 3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3965$as_echo "no" >&6; } 3966fi 3967 3968 3969fi 3970if test -z "$CC"; then 3971 if test -n "$ac_tool_prefix"; then 3972 for ac_prog in cl.exe 3973 do 3974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3975set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3977$as_echo_n "checking for $ac_word... " >&6; } 3978if ${ac_cv_prog_CC+:} false; then : 3979 $as_echo_n "(cached) " >&6 3980else 3981 if test -n "$CC"; then 3982 ac_cv_prog_CC="$CC" # Let the user override the test. 3983else 3984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3985for as_dir in $PATH 3986do 3987 IFS=$as_save_IFS 3988 test -z "$as_dir" && as_dir=. 3989 for ac_exec_ext in '' $ac_executable_extensions; do 3990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3993 break 2 3994 fi 3995done 3996 done 3997IFS=$as_save_IFS 3998 3999fi 4000fi 4001CC=$ac_cv_prog_CC 4002if test -n "$CC"; then 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4004$as_echo "$CC" >&6; } 4005else 4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4007$as_echo "no" >&6; } 4008fi 4009 4010 4011 test -n "$CC" && break 4012 done 4013fi 4014if test -z "$CC"; then 4015 ac_ct_CC=$CC 4016 for ac_prog in cl.exe 4017do 4018 # Extract the first word of "$ac_prog", so it can be a program name with args. 4019set dummy $ac_prog; ac_word=$2 4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4021$as_echo_n "checking for $ac_word... " >&6; } 4022if ${ac_cv_prog_ac_ct_CC+:} false; then : 4023 $as_echo_n "(cached) " >&6 4024else 4025 if test -n "$ac_ct_CC"; then 4026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4027else 4028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4029for as_dir in $PATH 4030do 4031 IFS=$as_save_IFS 4032 test -z "$as_dir" && as_dir=. 4033 for ac_exec_ext in '' $ac_executable_extensions; do 4034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4035 ac_cv_prog_ac_ct_CC="$ac_prog" 4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4037 break 2 4038 fi 4039done 4040 done 4041IFS=$as_save_IFS 4042 4043fi 4044fi 4045ac_ct_CC=$ac_cv_prog_ac_ct_CC 4046if test -n "$ac_ct_CC"; then 4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4048$as_echo "$ac_ct_CC" >&6; } 4049else 4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4051$as_echo "no" >&6; } 4052fi 4053 4054 4055 test -n "$ac_ct_CC" && break 4056done 4057 4058 if test "x$ac_ct_CC" = x; then 4059 CC="" 4060 else 4061 case $cross_compiling:$ac_tool_warned in 4062yes:) 4063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4065ac_tool_warned=yes ;; 4066esac 4067 CC=$ac_ct_CC 4068 fi 4069fi 4070 4071fi 4072 4073 4074test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4076as_fn_error $? "no acceptable C compiler found in \$PATH 4077See \`config.log' for more details" "$LINENO" 5; } 4078 4079# Provide some information about the compiler. 4080$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4081set X $ac_compile 4082ac_compiler=$2 4083for ac_option in --version -v -V -qversion; do 4084 { { ac_try="$ac_compiler $ac_option >&5" 4085case "(($ac_try" in 4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4087 *) ac_try_echo=$ac_try;; 4088esac 4089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4090$as_echo "$ac_try_echo"; } >&5 4091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4092 ac_status=$? 4093 if test -s conftest.err; then 4094 sed '10a\ 4095... rest of stderr output deleted ... 4096 10q' conftest.err >conftest.er1 4097 cat conftest.er1 >&5 4098 fi 4099 rm -f conftest.er1 conftest.err 4100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4101 test $ac_status = 0; } 4102done 4103 4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4105$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4106if ${ac_cv_c_compiler_gnu+:} false; then : 4107 $as_echo_n "(cached) " >&6 4108else 4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4110/* end confdefs.h. */ 4111 4112int 4113main () 4114{ 4115#ifndef __GNUC__ 4116 choke me 4117#endif 4118 4119 ; 4120 return 0; 4121} 4122_ACEOF 4123if ac_fn_c_try_compile "$LINENO"; then : 4124 ac_compiler_gnu=yes 4125else 4126 ac_compiler_gnu=no 4127fi 4128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4129ac_cv_c_compiler_gnu=$ac_compiler_gnu 4130 4131fi 4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4133$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4134if test $ac_compiler_gnu = yes; then 4135 GCC=yes 4136else 4137 GCC= 4138fi 4139ac_test_CFLAGS=${CFLAGS+set} 4140ac_save_CFLAGS=$CFLAGS 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4142$as_echo_n "checking whether $CC accepts -g... " >&6; } 4143if ${ac_cv_prog_cc_g+:} false; then : 4144 $as_echo_n "(cached) " >&6 4145else 4146 ac_save_c_werror_flag=$ac_c_werror_flag 4147 ac_c_werror_flag=yes 4148 ac_cv_prog_cc_g=no 4149 CFLAGS="-g" 4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4151/* end confdefs.h. */ 4152 4153int 4154main () 4155{ 4156 4157 ; 4158 return 0; 4159} 4160_ACEOF 4161if ac_fn_c_try_compile "$LINENO"; then : 4162 ac_cv_prog_cc_g=yes 4163else 4164 CFLAGS="" 4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4166/* end confdefs.h. */ 4167 4168int 4169main () 4170{ 4171 4172 ; 4173 return 0; 4174} 4175_ACEOF 4176if ac_fn_c_try_compile "$LINENO"; then : 4177 4178else 4179 ac_c_werror_flag=$ac_save_c_werror_flag 4180 CFLAGS="-g" 4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4182/* end confdefs.h. */ 4183 4184int 4185main () 4186{ 4187 4188 ; 4189 return 0; 4190} 4191_ACEOF 4192if ac_fn_c_try_compile "$LINENO"; then : 4193 ac_cv_prog_cc_g=yes 4194fi 4195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4196fi 4197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4198fi 4199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4200 ac_c_werror_flag=$ac_save_c_werror_flag 4201fi 4202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4203$as_echo "$ac_cv_prog_cc_g" >&6; } 4204if test "$ac_test_CFLAGS" = set; then 4205 CFLAGS=$ac_save_CFLAGS 4206elif test $ac_cv_prog_cc_g = yes; then 4207 if test "$GCC" = yes; then 4208 CFLAGS="-g -O2" 4209 else 4210 CFLAGS="-g" 4211 fi 4212else 4213 if test "$GCC" = yes; then 4214 CFLAGS="-O2" 4215 else 4216 CFLAGS= 4217 fi 4218fi 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4220$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4221if ${ac_cv_prog_cc_c89+:} false; then : 4222 $as_echo_n "(cached) " >&6 4223else 4224 ac_cv_prog_cc_c89=no 4225ac_save_CC=$CC 4226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4227/* end confdefs.h. */ 4228#include <stdarg.h> 4229#include <stdio.h> 4230struct stat; 4231/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4232struct buf { int x; }; 4233FILE * (*rcsopen) (struct buf *, struct stat *, int); 4234static char *e (p, i) 4235 char **p; 4236 int i; 4237{ 4238 return p[i]; 4239} 4240static char *f (char * (*g) (char **, int), char **p, ...) 4241{ 4242 char *s; 4243 va_list v; 4244 va_start (v,p); 4245 s = g (p, va_arg (v,int)); 4246 va_end (v); 4247 return s; 4248} 4249 4250/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4251 function prototypes and stuff, but not '\xHH' hex character constants. 4252 These don't provoke an error unfortunately, instead are silently treated 4253 as 'x'. The following induces an error, until -std is added to get 4254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4255 array size at least. It's necessary to write '\x00'==0 to get something 4256 that's true only with -std. */ 4257int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4258 4259/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4260 inside strings and character constants. */ 4261#define FOO(x) 'x' 4262int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4263 4264int test (int i, double x); 4265struct s1 {int (*f) (int a);}; 4266struct s2 {int (*f) (double a);}; 4267int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4268int argc; 4269char **argv; 4270int 4271main () 4272{ 4273return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4274 ; 4275 return 0; 4276} 4277_ACEOF 4278for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4280do 4281 CC="$ac_save_CC $ac_arg" 4282 if ac_fn_c_try_compile "$LINENO"; then : 4283 ac_cv_prog_cc_c89=$ac_arg 4284fi 4285rm -f core conftest.err conftest.$ac_objext 4286 test "x$ac_cv_prog_cc_c89" != "xno" && break 4287done 4288rm -f conftest.$ac_ext 4289CC=$ac_save_CC 4290 4291fi 4292# AC_CACHE_VAL 4293case "x$ac_cv_prog_cc_c89" in 4294 x) 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4296$as_echo "none needed" >&6; } ;; 4297 xno) 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4299$as_echo "unsupported" >&6; } ;; 4300 *) 4301 CC="$CC $ac_cv_prog_cc_c89" 4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4303$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4304esac 4305if test "x$ac_cv_prog_cc_c89" != xno; then : 4306 4307fi 4308 4309ac_ext=cpp 4310ac_cpp='$CXXCPP $CPPFLAGS' 4311ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4312ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4313ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4314 4315ac_ext=c 4316ac_cpp='$CPP $CPPFLAGS' 4317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4319ac_compiler_gnu=$ac_cv_c_compiler_gnu 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4321$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4322if ${am_cv_prog_cc_c_o+:} false; then : 4323 $as_echo_n "(cached) " >&6 4324else 4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4326/* end confdefs.h. */ 4327 4328int 4329main () 4330{ 4331 4332 ; 4333 return 0; 4334} 4335_ACEOF 4336 # Make sure it works both with $CC and with simple cc. 4337 # Following AC_PROG_CC_C_O, we do the test twice because some 4338 # compilers refuse to overwrite an existing .o file with -o, 4339 # though they will create one. 4340 am_cv_prog_cc_c_o=yes 4341 for am_i in 1 2; do 4342 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4343 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4344 ac_status=$? 4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4346 (exit $ac_status); } \ 4347 && test -f conftest2.$ac_objext; then 4348 : OK 4349 else 4350 am_cv_prog_cc_c_o=no 4351 break 4352 fi 4353 done 4354 rm -f core conftest* 4355 unset am_i 4356fi 4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4358$as_echo "$am_cv_prog_cc_c_o" >&6; } 4359if test "$am_cv_prog_cc_c_o" != yes; then 4360 # Losing compiler, so override with the script. 4361 # FIXME: It is wrong to rewrite CC. 4362 # But if we don't then we get into trouble of one sort or another. 4363 # A longer-term fix would be to have automake use am__CC in this case, 4364 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4365 CC="$am_aux_dir/compile $CC" 4366fi 4367ac_ext=cpp 4368ac_cpp='$CXXCPP $CPPFLAGS' 4369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4372 4373 4374depcc="$CC" am_compiler_list= 4375 4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4377$as_echo_n "checking dependency style of $depcc... " >&6; } 4378if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4379 $as_echo_n "(cached) " >&6 4380else 4381 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4382 # We make a subdir and do the tests there. Otherwise we can end up 4383 # making bogus files that we don't know about and never remove. For 4384 # instance it was reported that on HP-UX the gcc test will end up 4385 # making a dummy file named 'D' -- because '-MD' means "put the output 4386 # in D". 4387 rm -rf conftest.dir 4388 mkdir conftest.dir 4389 # Copy depcomp to subdir because otherwise we won't find it if we're 4390 # using a relative directory. 4391 cp "$am_depcomp" conftest.dir 4392 cd conftest.dir 4393 # We will build objects and dependencies in a subdirectory because 4394 # it helps to detect inapplicable dependency modes. For instance 4395 # both Tru64's cc and ICC support -MD to output dependencies as a 4396 # side effect of compilation, but ICC will put the dependencies in 4397 # the current directory while Tru64 will put them in the object 4398 # directory. 4399 mkdir sub 4400 4401 am_cv_CC_dependencies_compiler_type=none 4402 if test "$am_compiler_list" = ""; then 4403 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4404 fi 4405 am__universal=false 4406 case " $depcc " in #( 4407 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4408 esac 4409 4410 for depmode in $am_compiler_list; do 4411 # Setup a source with many dependencies, because some compilers 4412 # like to wrap large dependency lists on column 80 (with \), and 4413 # we should not choose a depcomp mode which is confused by this. 4414 # 4415 # We need to recreate these files for each test, as the compiler may 4416 # overwrite some of them when testing with obscure command lines. 4417 # This happens at least with the AIX C compiler. 4418 : > sub/conftest.c 4419 for i in 1 2 3 4 5 6; do 4420 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4421 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4422 # Solaris 10 /bin/sh. 4423 echo '/* dummy */' > sub/conftst$i.h 4424 done 4425 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4426 4427 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4428 # mode. It turns out that the SunPro C++ compiler does not properly 4429 # handle '-M -o', and we need to detect this. Also, some Intel 4430 # versions had trouble with output in subdirs. 4431 am__obj=sub/conftest.${OBJEXT-o} 4432 am__minus_obj="-o $am__obj" 4433 case $depmode in 4434 gcc) 4435 # This depmode causes a compiler race in universal mode. 4436 test "$am__universal" = false || continue 4437 ;; 4438 nosideeffect) 4439 # After this tag, mechanisms are not by side-effect, so they'll 4440 # only be used when explicitly requested. 4441 if test "x$enable_dependency_tracking" = xyes; then 4442 continue 4443 else 4444 break 4445 fi 4446 ;; 4447 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4448 # This compiler won't grok '-c -o', but also, the minuso test has 4449 # not run yet. These depmodes are late enough in the game, and 4450 # so weak that their functioning should not be impacted. 4451 am__obj=conftest.${OBJEXT-o} 4452 am__minus_obj= 4453 ;; 4454 none) break ;; 4455 esac 4456 if depmode=$depmode \ 4457 source=sub/conftest.c object=$am__obj \ 4458 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4459 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4460 >/dev/null 2>conftest.err && 4461 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4462 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4463 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4464 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4465 # icc doesn't choke on unknown options, it will just issue warnings 4466 # or remarks (even with -Werror). So we grep stderr for any message 4467 # that says an option was ignored or not supported. 4468 # When given -MP, icc 7.0 and 7.1 complain thusly: 4469 # icc: Command line warning: ignoring option '-M'; no argument required 4470 # The diagnosis changed in icc 8.0: 4471 # icc: Command line remark: option '-MP' not supported 4472 if (grep 'ignoring option' conftest.err || 4473 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4474 am_cv_CC_dependencies_compiler_type=$depmode 4475 break 4476 fi 4477 fi 4478 done 4479 4480 cd .. 4481 rm -rf conftest.dir 4482else 4483 am_cv_CC_dependencies_compiler_type=none 4484fi 4485 4486fi 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4488$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4489CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4490 4491 if 4492 test "x$enable_dependency_tracking" != xno \ 4493 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4494 am__fastdepCC_TRUE= 4495 am__fastdepCC_FALSE='#' 4496else 4497 am__fastdepCC_TRUE='#' 4498 am__fastdepCC_FALSE= 4499fi 4500 4501 4502ac_ext=c 4503ac_cpp='$CPP $CPPFLAGS' 4504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4506ac_compiler_gnu=$ac_cv_c_compiler_gnu 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4508$as_echo_n "checking how to run the C preprocessor... " >&6; } 4509# On Suns, sometimes $CPP names a directory. 4510if test -n "$CPP" && test -d "$CPP"; then 4511 CPP= 4512fi 4513if test -z "$CPP"; then 4514 if ${ac_cv_prog_CPP+:} false; then : 4515 $as_echo_n "(cached) " >&6 4516else 4517 # Double quotes because CPP needs to be expanded 4518 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4519 do 4520 ac_preproc_ok=false 4521for ac_c_preproc_warn_flag in '' yes 4522do 4523 # Use a header file that comes with gcc, so configuring glibc 4524 # with a fresh cross-compiler works. 4525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4526 # <limits.h> exists even on freestanding compilers. 4527 # On the NeXT, cc -E runs the code through the compiler's parser, 4528 # not just through cpp. "Syntax error" is here to catch this case. 4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4530/* end confdefs.h. */ 4531#ifdef __STDC__ 4532# include <limits.h> 4533#else 4534# include <assert.h> 4535#endif 4536 Syntax error 4537_ACEOF 4538if ac_fn_c_try_cpp "$LINENO"; then : 4539 4540else 4541 # Broken: fails on valid input. 4542continue 4543fi 4544rm -f conftest.err conftest.i conftest.$ac_ext 4545 4546 # OK, works on sane cases. Now check whether nonexistent headers 4547 # can be detected and how. 4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4549/* end confdefs.h. */ 4550#include <ac_nonexistent.h> 4551_ACEOF 4552if ac_fn_c_try_cpp "$LINENO"; then : 4553 # Broken: success on invalid input. 4554continue 4555else 4556 # Passes both tests. 4557ac_preproc_ok=: 4558break 4559fi 4560rm -f conftest.err conftest.i conftest.$ac_ext 4561 4562done 4563# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4564rm -f conftest.i conftest.err conftest.$ac_ext 4565if $ac_preproc_ok; then : 4566 break 4567fi 4568 4569 done 4570 ac_cv_prog_CPP=$CPP 4571 4572fi 4573 CPP=$ac_cv_prog_CPP 4574else 4575 ac_cv_prog_CPP=$CPP 4576fi 4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4578$as_echo "$CPP" >&6; } 4579ac_preproc_ok=false 4580for ac_c_preproc_warn_flag in '' yes 4581do 4582 # Use a header file that comes with gcc, so configuring glibc 4583 # with a fresh cross-compiler works. 4584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4585 # <limits.h> exists even on freestanding compilers. 4586 # On the NeXT, cc -E runs the code through the compiler's parser, 4587 # not just through cpp. "Syntax error" is here to catch this case. 4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4589/* end confdefs.h. */ 4590#ifdef __STDC__ 4591# include <limits.h> 4592#else 4593# include <assert.h> 4594#endif 4595 Syntax error 4596_ACEOF 4597if ac_fn_c_try_cpp "$LINENO"; then : 4598 4599else 4600 # Broken: fails on valid input. 4601continue 4602fi 4603rm -f conftest.err conftest.i conftest.$ac_ext 4604 4605 # OK, works on sane cases. Now check whether nonexistent headers 4606 # can be detected and how. 4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4608/* end confdefs.h. */ 4609#include <ac_nonexistent.h> 4610_ACEOF 4611if ac_fn_c_try_cpp "$LINENO"; then : 4612 # Broken: success on invalid input. 4613continue 4614else 4615 # Passes both tests. 4616ac_preproc_ok=: 4617break 4618fi 4619rm -f conftest.err conftest.i conftest.$ac_ext 4620 4621done 4622# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4623rm -f conftest.i conftest.err conftest.$ac_ext 4624if $ac_preproc_ok; then : 4625 4626else 4627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4629as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4630See \`config.log' for more details" "$LINENO" 5; } 4631fi 4632 4633ac_ext=cpp 4634ac_cpp='$CXXCPP $CPPFLAGS' 4635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4638 4639ac_ext=cpp 4640ac_cpp='$CXXCPP $CPPFLAGS' 4641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 4645$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 4646if test -z "$CXXCPP"; then 4647 if ${ac_cv_prog_CXXCPP+:} false; then : 4648 $as_echo_n "(cached) " >&6 4649else 4650 # Double quotes because CXXCPP needs to be expanded 4651 for CXXCPP in "$CXX -E" "/lib/cpp" 4652 do 4653 ac_preproc_ok=false 4654for ac_cxx_preproc_warn_flag in '' yes 4655do 4656 # Use a header file that comes with gcc, so configuring glibc 4657 # with a fresh cross-compiler works. 4658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4659 # <limits.h> exists even on freestanding compilers. 4660 # On the NeXT, cc -E runs the code through the compiler's parser, 4661 # not just through cpp. "Syntax error" is here to catch this case. 4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4663/* end confdefs.h. */ 4664#ifdef __STDC__ 4665# include <limits.h> 4666#else 4667# include <assert.h> 4668#endif 4669 Syntax error 4670_ACEOF 4671if ac_fn_cxx_try_cpp "$LINENO"; then : 4672 4673else 4674 # Broken: fails on valid input. 4675continue 4676fi 4677rm -f conftest.err conftest.i conftest.$ac_ext 4678 4679 # OK, works on sane cases. Now check whether nonexistent headers 4680 # can be detected and how. 4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4682/* end confdefs.h. */ 4683#include <ac_nonexistent.h> 4684_ACEOF 4685if ac_fn_cxx_try_cpp "$LINENO"; then : 4686 # Broken: success on invalid input. 4687continue 4688else 4689 # Passes both tests. 4690ac_preproc_ok=: 4691break 4692fi 4693rm -f conftest.err conftest.i conftest.$ac_ext 4694 4695done 4696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4697rm -f conftest.i conftest.err conftest.$ac_ext 4698if $ac_preproc_ok; then : 4699 break 4700fi 4701 4702 done 4703 ac_cv_prog_CXXCPP=$CXXCPP 4704 4705fi 4706 CXXCPP=$ac_cv_prog_CXXCPP 4707else 4708 ac_cv_prog_CXXCPP=$CXXCPP 4709fi 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 4711$as_echo "$CXXCPP" >&6; } 4712ac_preproc_ok=false 4713for ac_cxx_preproc_warn_flag in '' yes 4714do 4715 # Use a header file that comes with gcc, so configuring glibc 4716 # with a fresh cross-compiler works. 4717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4718 # <limits.h> exists even on freestanding compilers. 4719 # On the NeXT, cc -E runs the code through the compiler's parser, 4720 # not just through cpp. "Syntax error" is here to catch this case. 4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4722/* end confdefs.h. */ 4723#ifdef __STDC__ 4724# include <limits.h> 4725#else 4726# include <assert.h> 4727#endif 4728 Syntax error 4729_ACEOF 4730if ac_fn_cxx_try_cpp "$LINENO"; then : 4731 4732else 4733 # Broken: fails on valid input. 4734continue 4735fi 4736rm -f conftest.err conftest.i conftest.$ac_ext 4737 4738 # OK, works on sane cases. Now check whether nonexistent headers 4739 # can be detected and how. 4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4741/* end confdefs.h. */ 4742#include <ac_nonexistent.h> 4743_ACEOF 4744if ac_fn_cxx_try_cpp "$LINENO"; then : 4745 # Broken: success on invalid input. 4746continue 4747else 4748 # Passes both tests. 4749ac_preproc_ok=: 4750break 4751fi 4752rm -f conftest.err conftest.i conftest.$ac_ext 4753 4754done 4755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4756rm -f conftest.i conftest.err conftest.$ac_ext 4757if $ac_preproc_ok; then : 4758 4759else 4760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4762as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 4763See \`config.log' for more details" "$LINENO" 5; } 4764fi 4765 4766ac_ext=cpp 4767ac_cpp='$CXXCPP $CPPFLAGS' 4768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4771 4772 4773#AC_PROG_LN_S 4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4775$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4776set x ${MAKE-make} 4777ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4778if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4779 $as_echo_n "(cached) " >&6 4780else 4781 cat >conftest.make <<\_ACEOF 4782SHELL = /bin/sh 4783all: 4784 @echo '@@@%%%=$(MAKE)=@@@%%%' 4785_ACEOF 4786# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4787case `${MAKE-make} -f conftest.make 2>/dev/null` in 4788 *@@@%%%=?*=@@@%%%*) 4789 eval ac_cv_prog_make_${ac_make}_set=yes;; 4790 *) 4791 eval ac_cv_prog_make_${ac_make}_set=no;; 4792esac 4793rm -f conftest.make 4794fi 4795if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4797$as_echo "yes" >&6; } 4798 SET_MAKE= 4799else 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4801$as_echo "no" >&6; } 4802 SET_MAKE="MAKE=${MAKE-make}" 4803fi 4804 4805 4806case `pwd` in 4807 *\ * | *\ *) 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4809$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4810esac 4811 4812 4813 4814macro_version='2.4.2' 4815macro_revision='1.3337' 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829ltmain="$ac_aux_dir/ltmain.sh" 4830 4831# Make sure we can run config.sub. 4832$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4833 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4834 4835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4836$as_echo_n "checking build system type... " >&6; } 4837if ${ac_cv_build+:} false; then : 4838 $as_echo_n "(cached) " >&6 4839else 4840 ac_build_alias=$build_alias 4841test "x$ac_build_alias" = x && 4842 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4843test "x$ac_build_alias" = x && 4844 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4845ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4847 4848fi 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4850$as_echo "$ac_cv_build" >&6; } 4851case $ac_cv_build in 4852*-*-*) ;; 4853*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4854esac 4855build=$ac_cv_build 4856ac_save_IFS=$IFS; IFS='-' 4857set x $ac_cv_build 4858shift 4859build_cpu=$1 4860build_vendor=$2 4861shift; shift 4862# Remember, the first character of IFS is used to create $*, 4863# except with old shells: 4864build_os=$* 4865IFS=$ac_save_IFS 4866case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4867 4868 4869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4870$as_echo_n "checking host system type... " >&6; } 4871if ${ac_cv_host+:} false; then : 4872 $as_echo_n "(cached) " >&6 4873else 4874 if test "x$host_alias" = x; then 4875 ac_cv_host=$ac_cv_build 4876else 4877 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4878 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4879fi 4880 4881fi 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4883$as_echo "$ac_cv_host" >&6; } 4884case $ac_cv_host in 4885*-*-*) ;; 4886*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4887esac 4888host=$ac_cv_host 4889ac_save_IFS=$IFS; IFS='-' 4890set x $ac_cv_host 4891shift 4892host_cpu=$1 4893host_vendor=$2 4894shift; shift 4895# Remember, the first character of IFS is used to create $*, 4896# except with old shells: 4897host_os=$* 4898IFS=$ac_save_IFS 4899case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4900 4901 4902# Backslashify metacharacters that are still active within 4903# double-quoted strings. 4904sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4905 4906# Same as above, but do not quote variable references. 4907double_quote_subst='s/\(["`\\]\)/\\\1/g' 4908 4909# Sed substitution to delay expansion of an escaped shell variable in a 4910# double_quote_subst'ed string. 4911delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4912 4913# Sed substitution to delay expansion of an escaped single quote. 4914delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4915 4916# Sed substitution to avoid accidental globbing in evaled expressions 4917no_glob_subst='s/\*/\\\*/g' 4918 4919ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4920ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4921ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4922 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4924$as_echo_n "checking how to print strings... " >&6; } 4925# Test print first, because it will be a builtin if present. 4926if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4927 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4928 ECHO='print -r --' 4929elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4930 ECHO='printf %s\n' 4931else 4932 # Use this function as a fallback that always works. 4933 func_fallback_echo () 4934 { 4935 eval 'cat <<_LTECHO_EOF 4936$1 4937_LTECHO_EOF' 4938 } 4939 ECHO='func_fallback_echo' 4940fi 4941 4942# func_echo_all arg... 4943# Invoke $ECHO with all args, space-separated. 4944func_echo_all () 4945{ 4946 $ECHO "" 4947} 4948 4949case "$ECHO" in 4950 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4951$as_echo "printf" >&6; } ;; 4952 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4953$as_echo "print -r" >&6; } ;; 4954 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4955$as_echo "cat" >&6; } ;; 4956esac 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4972$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4973if ${ac_cv_path_SED+:} false; then : 4974 $as_echo_n "(cached) " >&6 4975else 4976 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4977 for ac_i in 1 2 3 4 5 6 7; do 4978 ac_script="$ac_script$as_nl$ac_script" 4979 done 4980 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4981 { ac_script=; unset ac_script;} 4982 if test -z "$SED"; then 4983 ac_path_SED_found=false 4984 # Loop through the user's path and test for each of PROGNAME-LIST 4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4986for as_dir in $PATH 4987do 4988 IFS=$as_save_IFS 4989 test -z "$as_dir" && as_dir=. 4990 for ac_prog in sed gsed; do 4991 for ac_exec_ext in '' $ac_executable_extensions; do 4992 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4993 as_fn_executable_p "$ac_path_SED" || continue 4994# Check for GNU ac_path_SED and select it if it is found. 4995 # Check for GNU $ac_path_SED 4996case `"$ac_path_SED" --version 2>&1` in 4997*GNU*) 4998 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4999*) 5000 ac_count=0 5001 $as_echo_n 0123456789 >"conftest.in" 5002 while : 5003 do 5004 cat "conftest.in" "conftest.in" >"conftest.tmp" 5005 mv "conftest.tmp" "conftest.in" 5006 cp "conftest.in" "conftest.nl" 5007 $as_echo '' >> "conftest.nl" 5008 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5010 as_fn_arith $ac_count + 1 && ac_count=$as_val 5011 if test $ac_count -gt ${ac_path_SED_max-0}; then 5012 # Best one so far, save it but keep looking for a better one 5013 ac_cv_path_SED="$ac_path_SED" 5014 ac_path_SED_max=$ac_count 5015 fi 5016 # 10*(2^10) chars as input seems more than enough 5017 test $ac_count -gt 10 && break 5018 done 5019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5020esac 5021 5022 $ac_path_SED_found && break 3 5023 done 5024 done 5025 done 5026IFS=$as_save_IFS 5027 if test -z "$ac_cv_path_SED"; then 5028 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5029 fi 5030else 5031 ac_cv_path_SED=$SED 5032fi 5033 5034fi 5035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5036$as_echo "$ac_cv_path_SED" >&6; } 5037 SED="$ac_cv_path_SED" 5038 rm -f conftest.sed 5039 5040test -z "$SED" && SED=sed 5041Xsed="$SED -e 1s/^X//" 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5054$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5055if ${ac_cv_path_GREP+:} false; then : 5056 $as_echo_n "(cached) " >&6 5057else 5058 if test -z "$GREP"; then 5059 ac_path_GREP_found=false 5060 # Loop through the user's path and test for each of PROGNAME-LIST 5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5062for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5063do 5064 IFS=$as_save_IFS 5065 test -z "$as_dir" && as_dir=. 5066 for ac_prog in grep ggrep; do 5067 for ac_exec_ext in '' $ac_executable_extensions; do 5068 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5069 as_fn_executable_p "$ac_path_GREP" || continue 5070# Check for GNU ac_path_GREP and select it if it is found. 5071 # Check for GNU $ac_path_GREP 5072case `"$ac_path_GREP" --version 2>&1` in 5073*GNU*) 5074 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5075*) 5076 ac_count=0 5077 $as_echo_n 0123456789 >"conftest.in" 5078 while : 5079 do 5080 cat "conftest.in" "conftest.in" >"conftest.tmp" 5081 mv "conftest.tmp" "conftest.in" 5082 cp "conftest.in" "conftest.nl" 5083 $as_echo 'GREP' >> "conftest.nl" 5084 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5086 as_fn_arith $ac_count + 1 && ac_count=$as_val 5087 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5088 # Best one so far, save it but keep looking for a better one 5089 ac_cv_path_GREP="$ac_path_GREP" 5090 ac_path_GREP_max=$ac_count 5091 fi 5092 # 10*(2^10) chars as input seems more than enough 5093 test $ac_count -gt 10 && break 5094 done 5095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5096esac 5097 5098 $ac_path_GREP_found && break 3 5099 done 5100 done 5101 done 5102IFS=$as_save_IFS 5103 if test -z "$ac_cv_path_GREP"; then 5104 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5105 fi 5106else 5107 ac_cv_path_GREP=$GREP 5108fi 5109 5110fi 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5112$as_echo "$ac_cv_path_GREP" >&6; } 5113 GREP="$ac_cv_path_GREP" 5114 5115 5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5117$as_echo_n "checking for egrep... " >&6; } 5118if ${ac_cv_path_EGREP+:} false; then : 5119 $as_echo_n "(cached) " >&6 5120else 5121 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5122 then ac_cv_path_EGREP="$GREP -E" 5123 else 5124 if test -z "$EGREP"; then 5125 ac_path_EGREP_found=false 5126 # Loop through the user's path and test for each of PROGNAME-LIST 5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5128for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5129do 5130 IFS=$as_save_IFS 5131 test -z "$as_dir" && as_dir=. 5132 for ac_prog in egrep; do 5133 for ac_exec_ext in '' $ac_executable_extensions; do 5134 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5135 as_fn_executable_p "$ac_path_EGREP" || continue 5136# Check for GNU ac_path_EGREP and select it if it is found. 5137 # Check for GNU $ac_path_EGREP 5138case `"$ac_path_EGREP" --version 2>&1` in 5139*GNU*) 5140 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5141*) 5142 ac_count=0 5143 $as_echo_n 0123456789 >"conftest.in" 5144 while : 5145 do 5146 cat "conftest.in" "conftest.in" >"conftest.tmp" 5147 mv "conftest.tmp" "conftest.in" 5148 cp "conftest.in" "conftest.nl" 5149 $as_echo 'EGREP' >> "conftest.nl" 5150 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5152 as_fn_arith $ac_count + 1 && ac_count=$as_val 5153 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5154 # Best one so far, save it but keep looking for a better one 5155 ac_cv_path_EGREP="$ac_path_EGREP" 5156 ac_path_EGREP_max=$ac_count 5157 fi 5158 # 10*(2^10) chars as input seems more than enough 5159 test $ac_count -gt 10 && break 5160 done 5161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5162esac 5163 5164 $ac_path_EGREP_found && break 3 5165 done 5166 done 5167 done 5168IFS=$as_save_IFS 5169 if test -z "$ac_cv_path_EGREP"; then 5170 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5171 fi 5172else 5173 ac_cv_path_EGREP=$EGREP 5174fi 5175 5176 fi 5177fi 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5179$as_echo "$ac_cv_path_EGREP" >&6; } 5180 EGREP="$ac_cv_path_EGREP" 5181 5182 5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5184$as_echo_n "checking for fgrep... " >&6; } 5185if ${ac_cv_path_FGREP+:} false; then : 5186 $as_echo_n "(cached) " >&6 5187else 5188 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5189 then ac_cv_path_FGREP="$GREP -F" 5190 else 5191 if test -z "$FGREP"; then 5192 ac_path_FGREP_found=false 5193 # Loop through the user's path and test for each of PROGNAME-LIST 5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5195for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5196do 5197 IFS=$as_save_IFS 5198 test -z "$as_dir" && as_dir=. 5199 for ac_prog in fgrep; do 5200 for ac_exec_ext in '' $ac_executable_extensions; do 5201 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5202 as_fn_executable_p "$ac_path_FGREP" || continue 5203# Check for GNU ac_path_FGREP and select it if it is found. 5204 # Check for GNU $ac_path_FGREP 5205case `"$ac_path_FGREP" --version 2>&1` in 5206*GNU*) 5207 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5208*) 5209 ac_count=0 5210 $as_echo_n 0123456789 >"conftest.in" 5211 while : 5212 do 5213 cat "conftest.in" "conftest.in" >"conftest.tmp" 5214 mv "conftest.tmp" "conftest.in" 5215 cp "conftest.in" "conftest.nl" 5216 $as_echo 'FGREP' >> "conftest.nl" 5217 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5219 as_fn_arith $ac_count + 1 && ac_count=$as_val 5220 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5221 # Best one so far, save it but keep looking for a better one 5222 ac_cv_path_FGREP="$ac_path_FGREP" 5223 ac_path_FGREP_max=$ac_count 5224 fi 5225 # 10*(2^10) chars as input seems more than enough 5226 test $ac_count -gt 10 && break 5227 done 5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5229esac 5230 5231 $ac_path_FGREP_found && break 3 5232 done 5233 done 5234 done 5235IFS=$as_save_IFS 5236 if test -z "$ac_cv_path_FGREP"; then 5237 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5238 fi 5239else 5240 ac_cv_path_FGREP=$FGREP 5241fi 5242 5243 fi 5244fi 5245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5246$as_echo "$ac_cv_path_FGREP" >&6; } 5247 FGREP="$ac_cv_path_FGREP" 5248 5249 5250test -z "$GREP" && GREP=grep 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270# Check whether --with-gnu-ld was given. 5271if test "${with_gnu_ld+set}" = set; then : 5272 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5273else 5274 with_gnu_ld=no 5275fi 5276 5277ac_prog=ld 5278if test "$GCC" = yes; then 5279 # Check if gcc -print-prog-name=ld gives a path. 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5281$as_echo_n "checking for ld used by $CC... " >&6; } 5282 case $host in 5283 *-*-mingw*) 5284 # gcc leaves a trailing carriage return which upsets mingw 5285 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5286 *) 5287 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5288 esac 5289 case $ac_prog in 5290 # Accept absolute paths. 5291 [\\/]* | ?:[\\/]*) 5292 re_direlt='/[^/][^/]*/\.\./' 5293 # Canonicalize the pathname of ld 5294 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5295 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5296 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5297 done 5298 test -z "$LD" && LD="$ac_prog" 5299 ;; 5300 "") 5301 # If it fails, then pretend we aren't using GCC. 5302 ac_prog=ld 5303 ;; 5304 *) 5305 # If it is relative, then search for the first ld in PATH. 5306 with_gnu_ld=unknown 5307 ;; 5308 esac 5309elif test "$with_gnu_ld" = yes; then 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5311$as_echo_n "checking for GNU ld... " >&6; } 5312else 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5314$as_echo_n "checking for non-GNU ld... " >&6; } 5315fi 5316if ${lt_cv_path_LD+:} false; then : 5317 $as_echo_n "(cached) " >&6 5318else 5319 if test -z "$LD"; then 5320 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5321 for ac_dir in $PATH; do 5322 IFS="$lt_save_ifs" 5323 test -z "$ac_dir" && ac_dir=. 5324 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5325 lt_cv_path_LD="$ac_dir/$ac_prog" 5326 # Check to see if the program is GNU ld. I'd rather use --version, 5327 # but apparently some variants of GNU ld only accept -v. 5328 # Break only if it was the GNU/non-GNU ld that we prefer. 5329 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5330 *GNU* | *'with BFD'*) 5331 test "$with_gnu_ld" != no && break 5332 ;; 5333 *) 5334 test "$with_gnu_ld" != yes && break 5335 ;; 5336 esac 5337 fi 5338 done 5339 IFS="$lt_save_ifs" 5340else 5341 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5342fi 5343fi 5344 5345LD="$lt_cv_path_LD" 5346if test -n "$LD"; then 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5348$as_echo "$LD" >&6; } 5349else 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5351$as_echo "no" >&6; } 5352fi 5353test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5355$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5356if ${lt_cv_prog_gnu_ld+:} false; then : 5357 $as_echo_n "(cached) " >&6 5358else 5359 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5360case `$LD -v 2>&1 </dev/null` in 5361*GNU* | *'with BFD'*) 5362 lt_cv_prog_gnu_ld=yes 5363 ;; 5364*) 5365 lt_cv_prog_gnu_ld=no 5366 ;; 5367esac 5368fi 5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5370$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5371with_gnu_ld=$lt_cv_prog_gnu_ld 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5382$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5383if ${lt_cv_path_NM+:} false; then : 5384 $as_echo_n "(cached) " >&6 5385else 5386 if test -n "$NM"; then 5387 # Let the user override the test. 5388 lt_cv_path_NM="$NM" 5389else 5390 lt_nm_to_check="${ac_tool_prefix}nm" 5391 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5392 lt_nm_to_check="$lt_nm_to_check nm" 5393 fi 5394 for lt_tmp_nm in $lt_nm_to_check; do 5395 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5396 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5397 IFS="$lt_save_ifs" 5398 test -z "$ac_dir" && ac_dir=. 5399 tmp_nm="$ac_dir/$lt_tmp_nm" 5400 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5401 # Check to see if the nm accepts a BSD-compat flag. 5402 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5403 # nm: unknown option "B" ignored 5404 # Tru64's nm complains that /dev/null is an invalid object file 5405 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5406 */dev/null* | *'Invalid file or object type'*) 5407 lt_cv_path_NM="$tmp_nm -B" 5408 break 5409 ;; 5410 *) 5411 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5412 */dev/null*) 5413 lt_cv_path_NM="$tmp_nm -p" 5414 break 5415 ;; 5416 *) 5417 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5418 continue # so that we can try to find one that supports BSD flags 5419 ;; 5420 esac 5421 ;; 5422 esac 5423 fi 5424 done 5425 IFS="$lt_save_ifs" 5426 done 5427 : ${lt_cv_path_NM=no} 5428fi 5429fi 5430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5431$as_echo "$lt_cv_path_NM" >&6; } 5432if test "$lt_cv_path_NM" != "no"; then 5433 NM="$lt_cv_path_NM" 5434else 5435 # Didn't find any BSD compatible name lister, look for dumpbin. 5436 if test -n "$DUMPBIN"; then : 5437 # Let the user override the test. 5438 else 5439 if test -n "$ac_tool_prefix"; then 5440 for ac_prog in dumpbin "link -dump" 5441 do 5442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5443set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5445$as_echo_n "checking for $ac_word... " >&6; } 5446if ${ac_cv_prog_DUMPBIN+:} false; then : 5447 $as_echo_n "(cached) " >&6 5448else 5449 if test -n "$DUMPBIN"; then 5450 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5451else 5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5453for as_dir in $PATH 5454do 5455 IFS=$as_save_IFS 5456 test -z "$as_dir" && as_dir=. 5457 for ac_exec_ext in '' $ac_executable_extensions; do 5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5459 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5461 break 2 5462 fi 5463done 5464 done 5465IFS=$as_save_IFS 5466 5467fi 5468fi 5469DUMPBIN=$ac_cv_prog_DUMPBIN 5470if test -n "$DUMPBIN"; then 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5472$as_echo "$DUMPBIN" >&6; } 5473else 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5475$as_echo "no" >&6; } 5476fi 5477 5478 5479 test -n "$DUMPBIN" && break 5480 done 5481fi 5482if test -z "$DUMPBIN"; then 5483 ac_ct_DUMPBIN=$DUMPBIN 5484 for ac_prog in dumpbin "link -dump" 5485do 5486 # Extract the first word of "$ac_prog", so it can be a program name with args. 5487set dummy $ac_prog; ac_word=$2 5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5489$as_echo_n "checking for $ac_word... " >&6; } 5490if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5491 $as_echo_n "(cached) " >&6 5492else 5493 if test -n "$ac_ct_DUMPBIN"; then 5494 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5495else 5496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5497for as_dir in $PATH 5498do 5499 IFS=$as_save_IFS 5500 test -z "$as_dir" && as_dir=. 5501 for ac_exec_ext in '' $ac_executable_extensions; do 5502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5503 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5505 break 2 5506 fi 5507done 5508 done 5509IFS=$as_save_IFS 5510 5511fi 5512fi 5513ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5514if test -n "$ac_ct_DUMPBIN"; then 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5516$as_echo "$ac_ct_DUMPBIN" >&6; } 5517else 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5519$as_echo "no" >&6; } 5520fi 5521 5522 5523 test -n "$ac_ct_DUMPBIN" && break 5524done 5525 5526 if test "x$ac_ct_DUMPBIN" = x; then 5527 DUMPBIN=":" 5528 else 5529 case $cross_compiling:$ac_tool_warned in 5530yes:) 5531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5533ac_tool_warned=yes ;; 5534esac 5535 DUMPBIN=$ac_ct_DUMPBIN 5536 fi 5537fi 5538 5539 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5540 *COFF*) 5541 DUMPBIN="$DUMPBIN -symbols" 5542 ;; 5543 *) 5544 DUMPBIN=: 5545 ;; 5546 esac 5547 fi 5548 5549 if test "$DUMPBIN" != ":"; then 5550 NM="$DUMPBIN" 5551 fi 5552fi 5553test -z "$NM" && NM=nm 5554 5555 5556 5557 5558 5559 5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5561$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5562if ${lt_cv_nm_interface+:} false; then : 5563 $as_echo_n "(cached) " >&6 5564else 5565 lt_cv_nm_interface="BSD nm" 5566 echo "int some_variable = 0;" > conftest.$ac_ext 5567 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5568 (eval "$ac_compile" 2>conftest.err) 5569 cat conftest.err >&5 5570 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5571 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5572 cat conftest.err >&5 5573 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5574 cat conftest.out >&5 5575 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5576 lt_cv_nm_interface="MS dumpbin" 5577 fi 5578 rm -f conftest* 5579fi 5580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5581$as_echo "$lt_cv_nm_interface" >&6; } 5582 5583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5584$as_echo_n "checking whether ln -s works... " >&6; } 5585LN_S=$as_ln_s 5586if test "$LN_S" = "ln -s"; then 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5588$as_echo "yes" >&6; } 5589else 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5591$as_echo "no, using $LN_S" >&6; } 5592fi 5593 5594# find the maximum length of command line arguments 5595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5596$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5597if ${lt_cv_sys_max_cmd_len+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599else 5600 i=0 5601 teststring="ABCD" 5602 5603 case $build_os in 5604 msdosdjgpp*) 5605 # On DJGPP, this test can blow up pretty badly due to problems in libc 5606 # (any single argument exceeding 2000 bytes causes a buffer overrun 5607 # during glob expansion). Even if it were fixed, the result of this 5608 # check would be larger than it should be. 5609 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5610 ;; 5611 5612 gnu*) 5613 # Under GNU Hurd, this test is not required because there is 5614 # no limit to the length of command line arguments. 5615 # Libtool will interpret -1 as no limit whatsoever 5616 lt_cv_sys_max_cmd_len=-1; 5617 ;; 5618 5619 cygwin* | mingw* | cegcc*) 5620 # On Win9x/ME, this test blows up -- it succeeds, but takes 5621 # about 5 minutes as the teststring grows exponentially. 5622 # Worse, since 9x/ME are not pre-emptively multitasking, 5623 # you end up with a "frozen" computer, even though with patience 5624 # the test eventually succeeds (with a max line length of 256k). 5625 # Instead, let's just punt: use the minimum linelength reported by 5626 # all of the supported platforms: 8192 (on NT/2K/XP). 5627 lt_cv_sys_max_cmd_len=8192; 5628 ;; 5629 5630 mint*) 5631 # On MiNT this can take a long time and run out of memory. 5632 lt_cv_sys_max_cmd_len=8192; 5633 ;; 5634 5635 amigaos*) 5636 # On AmigaOS with pdksh, this test takes hours, literally. 5637 # So we just punt and use a minimum line length of 8192. 5638 lt_cv_sys_max_cmd_len=8192; 5639 ;; 5640 5641 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5642 # This has been around since 386BSD, at least. Likely further. 5643 if test -x /sbin/sysctl; then 5644 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5645 elif test -x /usr/sbin/sysctl; then 5646 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5647 else 5648 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5649 fi 5650 # And add a safety zone 5651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5653 ;; 5654 5655 interix*) 5656 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5657 lt_cv_sys_max_cmd_len=196608 5658 ;; 5659 5660 os2*) 5661 # The test takes a long time on OS/2. 5662 lt_cv_sys_max_cmd_len=8192 5663 ;; 5664 5665 osf*) 5666 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5667 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5668 # nice to cause kernel panics so lets avoid the loop below. 5669 # First set a reasonable default. 5670 lt_cv_sys_max_cmd_len=16384 5671 # 5672 if test -x /sbin/sysconfig; then 5673 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5674 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5675 esac 5676 fi 5677 ;; 5678 sco3.2v5*) 5679 lt_cv_sys_max_cmd_len=102400 5680 ;; 5681 sysv5* | sco5v6* | sysv4.2uw2*) 5682 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5683 if test -n "$kargmax"; then 5684 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5685 else 5686 lt_cv_sys_max_cmd_len=32768 5687 fi 5688 ;; 5689 *) 5690 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5691 if test -n "$lt_cv_sys_max_cmd_len" && \ 5692 test undefined != "$lt_cv_sys_max_cmd_len"; then 5693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5695 else 5696 # Make teststring a little bigger before we do anything with it. 5697 # a 1K string should be a reasonable start. 5698 for i in 1 2 3 4 5 6 7 8 ; do 5699 teststring=$teststring$teststring 5700 done 5701 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5702 # If test is not a shell built-in, we'll probably end up computing a 5703 # maximum length that is only half of the actual maximum length, but 5704 # we can't tell. 5705 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5706 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5707 test $i != 17 # 1/2 MB should be enough 5708 do 5709 i=`expr $i + 1` 5710 teststring=$teststring$teststring 5711 done 5712 # Only check the string length outside the loop. 5713 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5714 teststring= 5715 # Add a significant safety factor because C++ compilers can tack on 5716 # massive amounts of additional arguments before passing them to the 5717 # linker. It appears as though 1/2 is a usable value. 5718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5719 fi 5720 ;; 5721 esac 5722 5723fi 5724 5725if test -n $lt_cv_sys_max_cmd_len ; then 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5727$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5728else 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5730$as_echo "none" >&6; } 5731fi 5732max_cmd_len=$lt_cv_sys_max_cmd_len 5733 5734 5735 5736 5737 5738 5739: ${CP="cp -f"} 5740: ${MV="mv -f"} 5741: ${RM="rm -f"} 5742 5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5744$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5745# Try some XSI features 5746xsi_shell=no 5747( _lt_dummy="a/b/c" 5748 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5749 = c,a/b,b/c, \ 5750 && eval 'test $(( 1 + 1 )) -eq 2 \ 5751 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5752 && xsi_shell=yes 5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5754$as_echo "$xsi_shell" >&6; } 5755 5756 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5758$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5759lt_shell_append=no 5760( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5761 >/dev/null 2>&1 \ 5762 && lt_shell_append=yes 5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5764$as_echo "$lt_shell_append" >&6; } 5765 5766 5767if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5768 lt_unset=unset 5769else 5770 lt_unset=false 5771fi 5772 5773 5774 5775 5776 5777# test EBCDIC or ASCII 5778case `echo X|tr X '\101'` in 5779 A) # ASCII based system 5780 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5781 lt_SP2NL='tr \040 \012' 5782 lt_NL2SP='tr \015\012 \040\040' 5783 ;; 5784 *) # EBCDIC based system 5785 lt_SP2NL='tr \100 \n' 5786 lt_NL2SP='tr \r\n \100\100' 5787 ;; 5788esac 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5799$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5800if ${lt_cv_to_host_file_cmd+:} false; then : 5801 $as_echo_n "(cached) " >&6 5802else 5803 case $host in 5804 *-*-mingw* ) 5805 case $build in 5806 *-*-mingw* ) # actually msys 5807 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5808 ;; 5809 *-*-cygwin* ) 5810 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5811 ;; 5812 * ) # otherwise, assume *nix 5813 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5814 ;; 5815 esac 5816 ;; 5817 *-*-cygwin* ) 5818 case $build in 5819 *-*-mingw* ) # actually msys 5820 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5821 ;; 5822 *-*-cygwin* ) 5823 lt_cv_to_host_file_cmd=func_convert_file_noop 5824 ;; 5825 * ) # otherwise, assume *nix 5826 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5827 ;; 5828 esac 5829 ;; 5830 * ) # unhandled hosts (and "normal" native builds) 5831 lt_cv_to_host_file_cmd=func_convert_file_noop 5832 ;; 5833esac 5834 5835fi 5836 5837to_host_file_cmd=$lt_cv_to_host_file_cmd 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5839$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5840 5841 5842 5843 5844 5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5846$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5847if ${lt_cv_to_tool_file_cmd+:} false; then : 5848 $as_echo_n "(cached) " >&6 5849else 5850 #assume ordinary cross tools, or native build. 5851lt_cv_to_tool_file_cmd=func_convert_file_noop 5852case $host in 5853 *-*-mingw* ) 5854 case $build in 5855 *-*-mingw* ) # actually msys 5856 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5857 ;; 5858 esac 5859 ;; 5860esac 5861 5862fi 5863 5864to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5866$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5867 5868 5869 5870 5871 5872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5873$as_echo_n "checking for $LD option to reload object files... " >&6; } 5874if ${lt_cv_ld_reload_flag+:} false; then : 5875 $as_echo_n "(cached) " >&6 5876else 5877 lt_cv_ld_reload_flag='-r' 5878fi 5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5880$as_echo "$lt_cv_ld_reload_flag" >&6; } 5881reload_flag=$lt_cv_ld_reload_flag 5882case $reload_flag in 5883"" | " "*) ;; 5884*) reload_flag=" $reload_flag" ;; 5885esac 5886reload_cmds='$LD$reload_flag -o $output$reload_objs' 5887case $host_os in 5888 cygwin* | mingw* | pw32* | cegcc*) 5889 if test "$GCC" != yes; then 5890 reload_cmds=false 5891 fi 5892 ;; 5893 darwin*) 5894 if test "$GCC" = yes; then 5895 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5896 else 5897 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5898 fi 5899 ;; 5900esac 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910if test -n "$ac_tool_prefix"; then 5911 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5912set dummy ${ac_tool_prefix}objdump; ac_word=$2 5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5914$as_echo_n "checking for $ac_word... " >&6; } 5915if ${ac_cv_prog_OBJDUMP+:} false; then : 5916 $as_echo_n "(cached) " >&6 5917else 5918 if test -n "$OBJDUMP"; then 5919 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5920else 5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5922for as_dir in $PATH 5923do 5924 IFS=$as_save_IFS 5925 test -z "$as_dir" && as_dir=. 5926 for ac_exec_ext in '' $ac_executable_extensions; do 5927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5928 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5930 break 2 5931 fi 5932done 5933 done 5934IFS=$as_save_IFS 5935 5936fi 5937fi 5938OBJDUMP=$ac_cv_prog_OBJDUMP 5939if test -n "$OBJDUMP"; then 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5941$as_echo "$OBJDUMP" >&6; } 5942else 5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5944$as_echo "no" >&6; } 5945fi 5946 5947 5948fi 5949if test -z "$ac_cv_prog_OBJDUMP"; then 5950 ac_ct_OBJDUMP=$OBJDUMP 5951 # Extract the first word of "objdump", so it can be a program name with args. 5952set dummy objdump; ac_word=$2 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5954$as_echo_n "checking for $ac_word... " >&6; } 5955if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5956 $as_echo_n "(cached) " >&6 5957else 5958 if test -n "$ac_ct_OBJDUMP"; then 5959 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5960else 5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5962for as_dir in $PATH 5963do 5964 IFS=$as_save_IFS 5965 test -z "$as_dir" && as_dir=. 5966 for ac_exec_ext in '' $ac_executable_extensions; do 5967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5968 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5970 break 2 5971 fi 5972done 5973 done 5974IFS=$as_save_IFS 5975 5976fi 5977fi 5978ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5979if test -n "$ac_ct_OBJDUMP"; then 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5981$as_echo "$ac_ct_OBJDUMP" >&6; } 5982else 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5984$as_echo "no" >&6; } 5985fi 5986 5987 if test "x$ac_ct_OBJDUMP" = x; then 5988 OBJDUMP="false" 5989 else 5990 case $cross_compiling:$ac_tool_warned in 5991yes:) 5992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5994ac_tool_warned=yes ;; 5995esac 5996 OBJDUMP=$ac_ct_OBJDUMP 5997 fi 5998else 5999 OBJDUMP="$ac_cv_prog_OBJDUMP" 6000fi 6001 6002test -z "$OBJDUMP" && OBJDUMP=objdump 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6013$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6014if ${lt_cv_deplibs_check_method+:} false; then : 6015 $as_echo_n "(cached) " >&6 6016else 6017 lt_cv_file_magic_cmd='$MAGIC_CMD' 6018lt_cv_file_magic_test_file= 6019lt_cv_deplibs_check_method='unknown' 6020# Need to set the preceding variable on all platforms that support 6021# interlibrary dependencies. 6022# 'none' -- dependencies not supported. 6023# `unknown' -- same as none, but documents that we really don't know. 6024# 'pass_all' -- all dependencies passed with no checks. 6025# 'test_compile' -- check by making test program. 6026# 'file_magic [[regex]]' -- check by looking for files in library path 6027# which responds to the $file_magic_cmd with a given extended regex. 6028# If you have `file' or equivalent on your system and you're not sure 6029# whether `pass_all' will *always* work, you probably want this one. 6030 6031case $host_os in 6032aix[4-9]*) 6033 lt_cv_deplibs_check_method=pass_all 6034 ;; 6035 6036beos*) 6037 lt_cv_deplibs_check_method=pass_all 6038 ;; 6039 6040bsdi[45]*) 6041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6042 lt_cv_file_magic_cmd='/usr/bin/file -L' 6043 lt_cv_file_magic_test_file=/shlib/libc.so 6044 ;; 6045 6046cygwin*) 6047 # func_win32_libid is a shell function defined in ltmain.sh 6048 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6049 lt_cv_file_magic_cmd='func_win32_libid' 6050 ;; 6051 6052mingw* | pw32*) 6053 # Base MSYS/MinGW do not provide the 'file' command needed by 6054 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6055 # unless we find 'file', for example because we are cross-compiling. 6056 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6057 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6058 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6059 lt_cv_file_magic_cmd='func_win32_libid' 6060 else 6061 # Keep this pattern in sync with the one in func_win32_libid. 6062 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6063 lt_cv_file_magic_cmd='$OBJDUMP -f' 6064 fi 6065 ;; 6066 6067cegcc*) 6068 # use the weaker test based on 'objdump'. See mingw*. 6069 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6070 lt_cv_file_magic_cmd='$OBJDUMP -f' 6071 ;; 6072 6073darwin* | rhapsody*) 6074 lt_cv_deplibs_check_method=pass_all 6075 ;; 6076 6077freebsd* | dragonfly*) 6078 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6079 case $host_cpu in 6080 i*86 ) 6081 # Not sure whether the presence of OpenBSD here was a mistake. 6082 # Let's accept both of them until this is cleared up. 6083 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6084 lt_cv_file_magic_cmd=/usr/bin/file 6085 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6086 ;; 6087 esac 6088 else 6089 lt_cv_deplibs_check_method=pass_all 6090 fi 6091 ;; 6092 6093haiku*) 6094 lt_cv_deplibs_check_method=pass_all 6095 ;; 6096 6097hpux10.20* | hpux11*) 6098 lt_cv_file_magic_cmd=/usr/bin/file 6099 case $host_cpu in 6100 ia64*) 6101 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6102 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6103 ;; 6104 hppa*64*) 6105 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]' 6106 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6107 ;; 6108 *) 6109 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6110 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6111 ;; 6112 esac 6113 ;; 6114 6115interix[3-9]*) 6116 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6118 ;; 6119 6120irix5* | irix6* | nonstopux*) 6121 case $LD in 6122 *-32|*"-32 ") libmagic=32-bit;; 6123 *-n32|*"-n32 ") libmagic=N32;; 6124 *-64|*"-64 ") libmagic=64-bit;; 6125 *) libmagic=never-match;; 6126 esac 6127 lt_cv_deplibs_check_method=pass_all 6128 ;; 6129 6130# This must be glibc/ELF. 6131linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6132 lt_cv_deplibs_check_method=pass_all 6133 ;; 6134 6135netbsd* | netbsdelf*-gnu) 6136 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6137 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6138 else 6139 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6140 fi 6141 ;; 6142 6143newos6*) 6144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6145 lt_cv_file_magic_cmd=/usr/bin/file 6146 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6147 ;; 6148 6149*nto* | *qnx*) 6150 lt_cv_deplibs_check_method=pass_all 6151 ;; 6152 6153openbsd*) 6154 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6156 else 6157 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6158 fi 6159 ;; 6160 6161osf3* | osf4* | osf5*) 6162 lt_cv_deplibs_check_method=pass_all 6163 ;; 6164 6165rdos*) 6166 lt_cv_deplibs_check_method=pass_all 6167 ;; 6168 6169solaris*) 6170 lt_cv_deplibs_check_method=pass_all 6171 ;; 6172 6173sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6174 lt_cv_deplibs_check_method=pass_all 6175 ;; 6176 6177sysv4 | sysv4.3*) 6178 case $host_vendor in 6179 motorola) 6180 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]' 6181 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6182 ;; 6183 ncr) 6184 lt_cv_deplibs_check_method=pass_all 6185 ;; 6186 sequent) 6187 lt_cv_file_magic_cmd='/bin/file' 6188 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6189 ;; 6190 sni) 6191 lt_cv_file_magic_cmd='/bin/file' 6192 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6193 lt_cv_file_magic_test_file=/lib/libc.so 6194 ;; 6195 siemens) 6196 lt_cv_deplibs_check_method=pass_all 6197 ;; 6198 pc) 6199 lt_cv_deplibs_check_method=pass_all 6200 ;; 6201 esac 6202 ;; 6203 6204tpf*) 6205 lt_cv_deplibs_check_method=pass_all 6206 ;; 6207esac 6208 6209fi 6210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6211$as_echo "$lt_cv_deplibs_check_method" >&6; } 6212 6213file_magic_glob= 6214want_nocaseglob=no 6215if test "$build" = "$host"; then 6216 case $host_os in 6217 mingw* | pw32*) 6218 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6219 want_nocaseglob=yes 6220 else 6221 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6222 fi 6223 ;; 6224 esac 6225fi 6226 6227file_magic_cmd=$lt_cv_file_magic_cmd 6228deplibs_check_method=$lt_cv_deplibs_check_method 6229test -z "$deplibs_check_method" && deplibs_check_method=unknown 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252if test -n "$ac_tool_prefix"; then 6253 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6254set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6256$as_echo_n "checking for $ac_word... " >&6; } 6257if ${ac_cv_prog_DLLTOOL+:} false; then : 6258 $as_echo_n "(cached) " >&6 6259else 6260 if test -n "$DLLTOOL"; then 6261 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6262else 6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6264for as_dir in $PATH 6265do 6266 IFS=$as_save_IFS 6267 test -z "$as_dir" && as_dir=. 6268 for ac_exec_ext in '' $ac_executable_extensions; do 6269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6270 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6272 break 2 6273 fi 6274done 6275 done 6276IFS=$as_save_IFS 6277 6278fi 6279fi 6280DLLTOOL=$ac_cv_prog_DLLTOOL 6281if test -n "$DLLTOOL"; then 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6283$as_echo "$DLLTOOL" >&6; } 6284else 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6286$as_echo "no" >&6; } 6287fi 6288 6289 6290fi 6291if test -z "$ac_cv_prog_DLLTOOL"; then 6292 ac_ct_DLLTOOL=$DLLTOOL 6293 # Extract the first word of "dlltool", so it can be a program name with args. 6294set dummy dlltool; ac_word=$2 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6296$as_echo_n "checking for $ac_word... " >&6; } 6297if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6298 $as_echo_n "(cached) " >&6 6299else 6300 if test -n "$ac_ct_DLLTOOL"; then 6301 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6302else 6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6304for as_dir in $PATH 6305do 6306 IFS=$as_save_IFS 6307 test -z "$as_dir" && as_dir=. 6308 for ac_exec_ext in '' $ac_executable_extensions; do 6309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6310 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6312 break 2 6313 fi 6314done 6315 done 6316IFS=$as_save_IFS 6317 6318fi 6319fi 6320ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6321if test -n "$ac_ct_DLLTOOL"; then 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6323$as_echo "$ac_ct_DLLTOOL" >&6; } 6324else 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6326$as_echo "no" >&6; } 6327fi 6328 6329 if test "x$ac_ct_DLLTOOL" = x; then 6330 DLLTOOL="false" 6331 else 6332 case $cross_compiling:$ac_tool_warned in 6333yes:) 6334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6336ac_tool_warned=yes ;; 6337esac 6338 DLLTOOL=$ac_ct_DLLTOOL 6339 fi 6340else 6341 DLLTOOL="$ac_cv_prog_DLLTOOL" 6342fi 6343 6344test -z "$DLLTOOL" && DLLTOOL=dlltool 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6356$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6357if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6358 $as_echo_n "(cached) " >&6 6359else 6360 lt_cv_sharedlib_from_linklib_cmd='unknown' 6361 6362case $host_os in 6363cygwin* | mingw* | pw32* | cegcc*) 6364 # two different shell functions defined in ltmain.sh 6365 # decide which to use based on capabilities of $DLLTOOL 6366 case `$DLLTOOL --help 2>&1` in 6367 *--identify-strict*) 6368 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6369 ;; 6370 *) 6371 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6372 ;; 6373 esac 6374 ;; 6375*) 6376 # fallback: assume linklib IS sharedlib 6377 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 6378 ;; 6379esac 6380 6381fi 6382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6383$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6384sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6385test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6386 6387 6388 6389 6390 6391 6392 6393 6394if test -n "$ac_tool_prefix"; then 6395 for ac_prog in ar 6396 do 6397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6398set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6400$as_echo_n "checking for $ac_word... " >&6; } 6401if ${ac_cv_prog_AR+:} false; then : 6402 $as_echo_n "(cached) " >&6 6403else 6404 if test -n "$AR"; then 6405 ac_cv_prog_AR="$AR" # Let the user override the test. 6406else 6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6408for as_dir in $PATH 6409do 6410 IFS=$as_save_IFS 6411 test -z "$as_dir" && as_dir=. 6412 for ac_exec_ext in '' $ac_executable_extensions; do 6413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6414 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6416 break 2 6417 fi 6418done 6419 done 6420IFS=$as_save_IFS 6421 6422fi 6423fi 6424AR=$ac_cv_prog_AR 6425if test -n "$AR"; then 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6427$as_echo "$AR" >&6; } 6428else 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6430$as_echo "no" >&6; } 6431fi 6432 6433 6434 test -n "$AR" && break 6435 done 6436fi 6437if test -z "$AR"; then 6438 ac_ct_AR=$AR 6439 for ac_prog in ar 6440do 6441 # Extract the first word of "$ac_prog", so it can be a program name with args. 6442set dummy $ac_prog; ac_word=$2 6443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6444$as_echo_n "checking for $ac_word... " >&6; } 6445if ${ac_cv_prog_ac_ct_AR+:} false; then : 6446 $as_echo_n "(cached) " >&6 6447else 6448 if test -n "$ac_ct_AR"; then 6449 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6450else 6451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6452for as_dir in $PATH 6453do 6454 IFS=$as_save_IFS 6455 test -z "$as_dir" && as_dir=. 6456 for ac_exec_ext in '' $ac_executable_extensions; do 6457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6458 ac_cv_prog_ac_ct_AR="$ac_prog" 6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6460 break 2 6461 fi 6462done 6463 done 6464IFS=$as_save_IFS 6465 6466fi 6467fi 6468ac_ct_AR=$ac_cv_prog_ac_ct_AR 6469if test -n "$ac_ct_AR"; then 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6471$as_echo "$ac_ct_AR" >&6; } 6472else 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6474$as_echo "no" >&6; } 6475fi 6476 6477 6478 test -n "$ac_ct_AR" && break 6479done 6480 6481 if test "x$ac_ct_AR" = x; then 6482 AR="false" 6483 else 6484 case $cross_compiling:$ac_tool_warned in 6485yes:) 6486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6488ac_tool_warned=yes ;; 6489esac 6490 AR=$ac_ct_AR 6491 fi 6492fi 6493 6494: ${AR=ar} 6495: ${AR_FLAGS=cru} 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6508$as_echo_n "checking for archiver @FILE support... " >&6; } 6509if ${lt_cv_ar_at_file+:} false; then : 6510 $as_echo_n "(cached) " >&6 6511else 6512 lt_cv_ar_at_file=no 6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6514/* end confdefs.h. */ 6515 6516int 6517main () 6518{ 6519 6520 ; 6521 return 0; 6522} 6523_ACEOF 6524if ac_fn_cxx_try_compile "$LINENO"; then : 6525 echo conftest.$ac_objext > conftest.lst 6526 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6528 (eval $lt_ar_try) 2>&5 6529 ac_status=$? 6530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6531 test $ac_status = 0; } 6532 if test "$ac_status" -eq 0; then 6533 # Ensure the archiver fails upon bogus file names. 6534 rm -f conftest.$ac_objext libconftest.a 6535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6536 (eval $lt_ar_try) 2>&5 6537 ac_status=$? 6538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6539 test $ac_status = 0; } 6540 if test "$ac_status" -ne 0; then 6541 lt_cv_ar_at_file=@ 6542 fi 6543 fi 6544 rm -f conftest.* libconftest.a 6545 6546fi 6547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6548 6549fi 6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6551$as_echo "$lt_cv_ar_at_file" >&6; } 6552 6553if test "x$lt_cv_ar_at_file" = xno; then 6554 archiver_list_spec= 6555else 6556 archiver_list_spec=$lt_cv_ar_at_file 6557fi 6558 6559 6560 6561 6562 6563 6564 6565if test -n "$ac_tool_prefix"; then 6566 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6567set dummy ${ac_tool_prefix}strip; ac_word=$2 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6569$as_echo_n "checking for $ac_word... " >&6; } 6570if ${ac_cv_prog_STRIP+:} false; then : 6571 $as_echo_n "(cached) " >&6 6572else 6573 if test -n "$STRIP"; then 6574 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6575else 6576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6577for as_dir in $PATH 6578do 6579 IFS=$as_save_IFS 6580 test -z "$as_dir" && as_dir=. 6581 for ac_exec_ext in '' $ac_executable_extensions; do 6582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6583 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6585 break 2 6586 fi 6587done 6588 done 6589IFS=$as_save_IFS 6590 6591fi 6592fi 6593STRIP=$ac_cv_prog_STRIP 6594if test -n "$STRIP"; then 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6596$as_echo "$STRIP" >&6; } 6597else 6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6599$as_echo "no" >&6; } 6600fi 6601 6602 6603fi 6604if test -z "$ac_cv_prog_STRIP"; then 6605 ac_ct_STRIP=$STRIP 6606 # Extract the first word of "strip", so it can be a program name with args. 6607set dummy strip; ac_word=$2 6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6609$as_echo_n "checking for $ac_word... " >&6; } 6610if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6611 $as_echo_n "(cached) " >&6 6612else 6613 if test -n "$ac_ct_STRIP"; then 6614 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6615else 6616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6617for as_dir in $PATH 6618do 6619 IFS=$as_save_IFS 6620 test -z "$as_dir" && as_dir=. 6621 for ac_exec_ext in '' $ac_executable_extensions; do 6622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6623 ac_cv_prog_ac_ct_STRIP="strip" 6624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6625 break 2 6626 fi 6627done 6628 done 6629IFS=$as_save_IFS 6630 6631fi 6632fi 6633ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6634if test -n "$ac_ct_STRIP"; then 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6636$as_echo "$ac_ct_STRIP" >&6; } 6637else 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6639$as_echo "no" >&6; } 6640fi 6641 6642 if test "x$ac_ct_STRIP" = x; then 6643 STRIP=":" 6644 else 6645 case $cross_compiling:$ac_tool_warned in 6646yes:) 6647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6649ac_tool_warned=yes ;; 6650esac 6651 STRIP=$ac_ct_STRIP 6652 fi 6653else 6654 STRIP="$ac_cv_prog_STRIP" 6655fi 6656 6657test -z "$STRIP" && STRIP=: 6658 6659 6660 6661 6662 6663 6664if test -n "$ac_tool_prefix"; then 6665 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6666set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6668$as_echo_n "checking for $ac_word... " >&6; } 6669if ${ac_cv_prog_RANLIB+:} false; then : 6670 $as_echo_n "(cached) " >&6 6671else 6672 if test -n "$RANLIB"; then 6673 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6674else 6675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6676for as_dir in $PATH 6677do 6678 IFS=$as_save_IFS 6679 test -z "$as_dir" && as_dir=. 6680 for ac_exec_ext in '' $ac_executable_extensions; do 6681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6682 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6684 break 2 6685 fi 6686done 6687 done 6688IFS=$as_save_IFS 6689 6690fi 6691fi 6692RANLIB=$ac_cv_prog_RANLIB 6693if test -n "$RANLIB"; then 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6695$as_echo "$RANLIB" >&6; } 6696else 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6698$as_echo "no" >&6; } 6699fi 6700 6701 6702fi 6703if test -z "$ac_cv_prog_RANLIB"; then 6704 ac_ct_RANLIB=$RANLIB 6705 # Extract the first word of "ranlib", so it can be a program name with args. 6706set dummy ranlib; ac_word=$2 6707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6708$as_echo_n "checking for $ac_word... " >&6; } 6709if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6710 $as_echo_n "(cached) " >&6 6711else 6712 if test -n "$ac_ct_RANLIB"; then 6713 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6714else 6715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6716for as_dir in $PATH 6717do 6718 IFS=$as_save_IFS 6719 test -z "$as_dir" && as_dir=. 6720 for ac_exec_ext in '' $ac_executable_extensions; do 6721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6722 ac_cv_prog_ac_ct_RANLIB="ranlib" 6723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6724 break 2 6725 fi 6726done 6727 done 6728IFS=$as_save_IFS 6729 6730fi 6731fi 6732ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6733if test -n "$ac_ct_RANLIB"; then 6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6735$as_echo "$ac_ct_RANLIB" >&6; } 6736else 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6738$as_echo "no" >&6; } 6739fi 6740 6741 if test "x$ac_ct_RANLIB" = x; then 6742 RANLIB=":" 6743 else 6744 case $cross_compiling:$ac_tool_warned in 6745yes:) 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6748ac_tool_warned=yes ;; 6749esac 6750 RANLIB=$ac_ct_RANLIB 6751 fi 6752else 6753 RANLIB="$ac_cv_prog_RANLIB" 6754fi 6755 6756test -z "$RANLIB" && RANLIB=: 6757 6758 6759 6760 6761 6762 6763# Determine commands to create old-style static archives. 6764old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6765old_postinstall_cmds='chmod 644 $oldlib' 6766old_postuninstall_cmds= 6767 6768if test -n "$RANLIB"; then 6769 case $host_os in 6770 openbsd*) 6771 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6772 ;; 6773 *) 6774 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6775 ;; 6776 esac 6777 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6778fi 6779 6780case $host_os in 6781 darwin*) 6782 lock_old_archive_extraction=yes ;; 6783 *) 6784 lock_old_archive_extraction=no ;; 6785esac 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825# If no C compiler was specified, use CC. 6826LTCC=${LTCC-"$CC"} 6827 6828# If no C compiler flags were specified, use CFLAGS. 6829LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6830 6831# Allow CC to be a program name with arguments. 6832compiler=$CC 6833 6834 6835# Check for command to grab the raw symbol name followed by C symbol from nm. 6836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6837$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6838if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6839 $as_echo_n "(cached) " >&6 6840else 6841 6842# These are sane defaults that work on at least a few old systems. 6843# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6844 6845# Character class describing NM global symbol codes. 6846symcode='[BCDEGRST]' 6847 6848# Regexp to match symbols that can be accessed directly from C. 6849sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6850 6851# Define system-specific variables. 6852case $host_os in 6853aix*) 6854 symcode='[BCDT]' 6855 ;; 6856cygwin* | mingw* | pw32* | cegcc*) 6857 symcode='[ABCDGISTW]' 6858 ;; 6859hpux*) 6860 if test "$host_cpu" = ia64; then 6861 symcode='[ABCDEGRST]' 6862 fi 6863 ;; 6864irix* | nonstopux*) 6865 symcode='[BCDEGRST]' 6866 ;; 6867osf*) 6868 symcode='[BCDEGQRST]' 6869 ;; 6870solaris*) 6871 symcode='[BDRT]' 6872 ;; 6873sco3.2v5*) 6874 symcode='[DT]' 6875 ;; 6876sysv4.2uw2*) 6877 symcode='[DT]' 6878 ;; 6879sysv5* | sco5v6* | unixware* | OpenUNIX*) 6880 symcode='[ABDT]' 6881 ;; 6882sysv4) 6883 symcode='[DFNSTU]' 6884 ;; 6885esac 6886 6887# If we're using GNU nm, then use its standard symbol codes. 6888case `$NM -V 2>&1` in 6889*GNU* | *'with BFD'*) 6890 symcode='[ABCDGIRSTW]' ;; 6891esac 6892 6893# Transform an extracted symbol line into a proper C declaration. 6894# Some systems (esp. on ia64) link data and code symbols differently, 6895# so use this general approach. 6896lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6897 6898# Transform an extracted symbol line into symbol name and symbol address 6899lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6900lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6901 6902# Handle CRLF in mingw tool chain 6903opt_cr= 6904case $build_os in 6905mingw*) 6906 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6907 ;; 6908esac 6909 6910# Try without a prefix underscore, then with it. 6911for ac_symprfx in "" "_"; do 6912 6913 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6914 symxfrm="\\1 $ac_symprfx\\2 \\2" 6915 6916 # Write the raw and C identifiers. 6917 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6918 # Fake it for dumpbin and say T for any non-static function 6919 # and D for any global variable. 6920 # Also find C++ and __fastcall symbols from MSVC++, 6921 # which start with @ or ?. 6922 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6923" {last_section=section; section=\$ 3};"\ 6924" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6925" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6926" \$ 0!~/External *\|/{next};"\ 6927" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6928" {if(hide[section]) next};"\ 6929" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6930" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6931" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6932" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6933" ' prfx=^$ac_symprfx" 6934 else 6935 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6936 fi 6937 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6938 6939 # Check to see that the pipe works correctly. 6940 pipe_works=no 6941 6942 rm -f conftest* 6943 cat > conftest.$ac_ext <<_LT_EOF 6944#ifdef __cplusplus 6945extern "C" { 6946#endif 6947char nm_test_var; 6948void nm_test_func(void); 6949void nm_test_func(void){} 6950#ifdef __cplusplus 6951} 6952#endif 6953int main(){nm_test_var='a';nm_test_func();return(0);} 6954_LT_EOF 6955 6956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6957 (eval $ac_compile) 2>&5 6958 ac_status=$? 6959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6960 test $ac_status = 0; }; then 6961 # Now try to grab the symbols. 6962 nlist=conftest.nm 6963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6964 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6965 ac_status=$? 6966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6967 test $ac_status = 0; } && test -s "$nlist"; then 6968 # Try sorting and uniquifying the output. 6969 if sort "$nlist" | uniq > "$nlist"T; then 6970 mv -f "$nlist"T "$nlist" 6971 else 6972 rm -f "$nlist"T 6973 fi 6974 6975 # Make sure that we snagged all the symbols we need. 6976 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6977 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6978 cat <<_LT_EOF > conftest.$ac_ext 6979/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6980#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6981/* DATA imports from DLLs on WIN32 con't be const, because runtime 6982 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6983# define LT_DLSYM_CONST 6984#elif defined(__osf__) 6985/* This system does not cope well with relocations in const data. */ 6986# define LT_DLSYM_CONST 6987#else 6988# define LT_DLSYM_CONST const 6989#endif 6990 6991#ifdef __cplusplus 6992extern "C" { 6993#endif 6994 6995_LT_EOF 6996 # Now generate the symbol file. 6997 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6998 6999 cat <<_LT_EOF >> conftest.$ac_ext 7000 7001/* The mapping between symbol names and symbols. */ 7002LT_DLSYM_CONST struct { 7003 const char *name; 7004 void *address; 7005} 7006lt__PROGRAM__LTX_preloaded_symbols[] = 7007{ 7008 { "@PROGRAM@", (void *) 0 }, 7009_LT_EOF 7010 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7011 cat <<\_LT_EOF >> conftest.$ac_ext 7012 {0, (void *) 0} 7013}; 7014 7015/* This works around a problem in FreeBSD linker */ 7016#ifdef FREEBSD_WORKAROUND 7017static const void *lt_preloaded_setup() { 7018 return lt__PROGRAM__LTX_preloaded_symbols; 7019} 7020#endif 7021 7022#ifdef __cplusplus 7023} 7024#endif 7025_LT_EOF 7026 # Now try linking the two files. 7027 mv conftest.$ac_objext conftstm.$ac_objext 7028 lt_globsym_save_LIBS=$LIBS 7029 lt_globsym_save_CFLAGS=$CFLAGS 7030 LIBS="conftstm.$ac_objext" 7031 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7033 (eval $ac_link) 2>&5 7034 ac_status=$? 7035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7036 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7037 pipe_works=yes 7038 fi 7039 LIBS=$lt_globsym_save_LIBS 7040 CFLAGS=$lt_globsym_save_CFLAGS 7041 else 7042 echo "cannot find nm_test_func in $nlist" >&5 7043 fi 7044 else 7045 echo "cannot find nm_test_var in $nlist" >&5 7046 fi 7047 else 7048 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7049 fi 7050 else 7051 echo "$progname: failed program was:" >&5 7052 cat conftest.$ac_ext >&5 7053 fi 7054 rm -rf conftest* conftst* 7055 7056 # Do not use the global_symbol_pipe unless it works. 7057 if test "$pipe_works" = yes; then 7058 break 7059 else 7060 lt_cv_sys_global_symbol_pipe= 7061 fi 7062done 7063 7064fi 7065 7066if test -z "$lt_cv_sys_global_symbol_pipe"; then 7067 lt_cv_sys_global_symbol_to_cdecl= 7068fi 7069if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7071$as_echo "failed" >&6; } 7072else 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7074$as_echo "ok" >&6; } 7075fi 7076 7077# Response file support. 7078if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7079 nm_file_list_spec='@' 7080elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7081 nm_file_list_spec='@' 7082fi 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 7109 7110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7111$as_echo_n "checking for sysroot... " >&6; } 7112 7113# Check whether --with-sysroot was given. 7114if test "${with_sysroot+set}" = set; then : 7115 withval=$with_sysroot; 7116else 7117 with_sysroot=no 7118fi 7119 7120 7121lt_sysroot= 7122case ${with_sysroot} in #( 7123 yes) 7124 if test "$GCC" = yes; then 7125 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7126 fi 7127 ;; #( 7128 /*) 7129 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7130 ;; #( 7131 no|'') 7132 ;; #( 7133 *) 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 7135$as_echo "${with_sysroot}" >&6; } 7136 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7137 ;; 7138esac 7139 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7141$as_echo "${lt_sysroot:-no}" >&6; } 7142 7143 7144 7145 7146 7147 7148# Check whether --enable-libtool-lock was given. 7149if test "${enable_libtool_lock+set}" = set; then : 7150 enableval=$enable_libtool_lock; 7151fi 7152 7153test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7154 7155# Some flags need to be propagated to the compiler or linker for good 7156# libtool support. 7157case $host in 7158ia64-*-hpux*) 7159 # Find out which ABI we are using. 7160 echo 'int i;' > conftest.$ac_ext 7161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7162 (eval $ac_compile) 2>&5 7163 ac_status=$? 7164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7165 test $ac_status = 0; }; then 7166 case `/usr/bin/file conftest.$ac_objext` in 7167 *ELF-32*) 7168 HPUX_IA64_MODE="32" 7169 ;; 7170 *ELF-64*) 7171 HPUX_IA64_MODE="64" 7172 ;; 7173 esac 7174 fi 7175 rm -rf conftest* 7176 ;; 7177*-*-irix6*) 7178 # Find out which ABI we are using. 7179 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7181 (eval $ac_compile) 2>&5 7182 ac_status=$? 7183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7184 test $ac_status = 0; }; then 7185 if test "$lt_cv_prog_gnu_ld" = yes; then 7186 case `/usr/bin/file conftest.$ac_objext` in 7187 *32-bit*) 7188 LD="${LD-ld} -melf32bsmip" 7189 ;; 7190 *N32*) 7191 LD="${LD-ld} -melf32bmipn32" 7192 ;; 7193 *64-bit*) 7194 LD="${LD-ld} -melf64bmip" 7195 ;; 7196 esac 7197 else 7198 case `/usr/bin/file conftest.$ac_objext` in 7199 *32-bit*) 7200 LD="${LD-ld} -32" 7201 ;; 7202 *N32*) 7203 LD="${LD-ld} -n32" 7204 ;; 7205 *64-bit*) 7206 LD="${LD-ld} -64" 7207 ;; 7208 esac 7209 fi 7210 fi 7211 rm -rf conftest* 7212 ;; 7213 7214x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7215s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7216 # Find out which ABI we are using. 7217 echo 'int i;' > conftest.$ac_ext 7218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7219 (eval $ac_compile) 2>&5 7220 ac_status=$? 7221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7222 test $ac_status = 0; }; then 7223 case `/usr/bin/file conftest.o` in 7224 *32-bit*) 7225 case $host in 7226 x86_64-*kfreebsd*-gnu) 7227 LD="${LD-ld} -m elf_i386_fbsd" 7228 ;; 7229 x86_64-*linux*) 7230 case `/usr/bin/file conftest.o` in 7231 *x86-64*) 7232 LD="${LD-ld} -m elf32_x86_64" 7233 ;; 7234 *) 7235 LD="${LD-ld} -m elf_i386" 7236 ;; 7237 esac 7238 ;; 7239 powerpc64le-*) 7240 LD="${LD-ld} -m elf32lppclinux" 7241 ;; 7242 powerpc64-*) 7243 LD="${LD-ld} -m elf32ppclinux" 7244 ;; 7245 s390x-*linux*) 7246 LD="${LD-ld} -m elf_s390" 7247 ;; 7248 sparc64-*linux*) 7249 LD="${LD-ld} -m elf32_sparc" 7250 ;; 7251 esac 7252 ;; 7253 *64-bit*) 7254 case $host in 7255 x86_64-*kfreebsd*-gnu) 7256 LD="${LD-ld} -m elf_x86_64_fbsd" 7257 ;; 7258 x86_64-*linux*) 7259 LD="${LD-ld} -m elf_x86_64" 7260 ;; 7261 powerpcle-*) 7262 LD="${LD-ld} -m elf64lppc" 7263 ;; 7264 powerpc-*) 7265 LD="${LD-ld} -m elf64ppc" 7266 ;; 7267 s390*-*linux*|s390*-*tpf*) 7268 LD="${LD-ld} -m elf64_s390" 7269 ;; 7270 sparc*-*linux*) 7271 LD="${LD-ld} -m elf64_sparc" 7272 ;; 7273 esac 7274 ;; 7275 esac 7276 fi 7277 rm -rf conftest* 7278 ;; 7279 7280*-*-sco3.2v5*) 7281 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7282 SAVE_CFLAGS="$CFLAGS" 7283 CFLAGS="$CFLAGS -belf" 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7285$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7286if ${lt_cv_cc_needs_belf+:} false; then : 7287 $as_echo_n "(cached) " >&6 7288else 7289 ac_ext=c 7290ac_cpp='$CPP $CPPFLAGS' 7291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7293ac_compiler_gnu=$ac_cv_c_compiler_gnu 7294 7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7296/* end confdefs.h. */ 7297 7298int 7299main () 7300{ 7301 7302 ; 7303 return 0; 7304} 7305_ACEOF 7306if ac_fn_c_try_link "$LINENO"; then : 7307 lt_cv_cc_needs_belf=yes 7308else 7309 lt_cv_cc_needs_belf=no 7310fi 7311rm -f core conftest.err conftest.$ac_objext \ 7312 conftest$ac_exeext conftest.$ac_ext 7313 ac_ext=c 7314ac_cpp='$CPP $CPPFLAGS' 7315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7317ac_compiler_gnu=$ac_cv_c_compiler_gnu 7318 7319fi 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7321$as_echo "$lt_cv_cc_needs_belf" >&6; } 7322 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7323 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7324 CFLAGS="$SAVE_CFLAGS" 7325 fi 7326 ;; 7327*-*solaris*) 7328 # Find out which ABI we are using. 7329 echo 'int i;' > conftest.$ac_ext 7330 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7331 (eval $ac_compile) 2>&5 7332 ac_status=$? 7333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7334 test $ac_status = 0; }; then 7335 case `/usr/bin/file conftest.o` in 7336 *64-bit*) 7337 case $lt_cv_prog_gnu_ld in 7338 yes*) 7339 case $host in 7340 i?86-*-solaris*) 7341 LD="${LD-ld} -m elf_x86_64" 7342 ;; 7343 sparc*-*-solaris*) 7344 LD="${LD-ld} -m elf64_sparc" 7345 ;; 7346 esac 7347 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7348 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7349 LD="${LD-ld}_sol2" 7350 fi 7351 ;; 7352 *) 7353 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7354 LD="${LD-ld} -64" 7355 fi 7356 ;; 7357 esac 7358 ;; 7359 esac 7360 fi 7361 rm -rf conftest* 7362 ;; 7363esac 7364 7365need_locks="$enable_libtool_lock" 7366 7367if test -n "$ac_tool_prefix"; then 7368 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7369set dummy ${ac_tool_prefix}mt; ac_word=$2 7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7371$as_echo_n "checking for $ac_word... " >&6; } 7372if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7373 $as_echo_n "(cached) " >&6 7374else 7375 if test -n "$MANIFEST_TOOL"; then 7376 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7377else 7378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7379for as_dir in $PATH 7380do 7381 IFS=$as_save_IFS 7382 test -z "$as_dir" && as_dir=. 7383 for ac_exec_ext in '' $ac_executable_extensions; do 7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7385 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7387 break 2 7388 fi 7389done 7390 done 7391IFS=$as_save_IFS 7392 7393fi 7394fi 7395MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7396if test -n "$MANIFEST_TOOL"; then 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7398$as_echo "$MANIFEST_TOOL" >&6; } 7399else 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7401$as_echo "no" >&6; } 7402fi 7403 7404 7405fi 7406if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7407 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7408 # Extract the first word of "mt", so it can be a program name with args. 7409set dummy mt; ac_word=$2 7410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7411$as_echo_n "checking for $ac_word... " >&6; } 7412if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7413 $as_echo_n "(cached) " >&6 7414else 7415 if test -n "$ac_ct_MANIFEST_TOOL"; then 7416 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7417else 7418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7419for as_dir in $PATH 7420do 7421 IFS=$as_save_IFS 7422 test -z "$as_dir" && as_dir=. 7423 for ac_exec_ext in '' $ac_executable_extensions; do 7424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7425 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7427 break 2 7428 fi 7429done 7430 done 7431IFS=$as_save_IFS 7432 7433fi 7434fi 7435ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7436if test -n "$ac_ct_MANIFEST_TOOL"; then 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7438$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7439else 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7441$as_echo "no" >&6; } 7442fi 7443 7444 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7445 MANIFEST_TOOL=":" 7446 else 7447 case $cross_compiling:$ac_tool_warned in 7448yes:) 7449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7451ac_tool_warned=yes ;; 7452esac 7453 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7454 fi 7455else 7456 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7457fi 7458 7459test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7461$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7462if ${lt_cv_path_mainfest_tool+:} false; then : 7463 $as_echo_n "(cached) " >&6 7464else 7465 lt_cv_path_mainfest_tool=no 7466 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7467 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7468 cat conftest.err >&5 7469 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7470 lt_cv_path_mainfest_tool=yes 7471 fi 7472 rm -f conftest* 7473fi 7474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7475$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7476if test "x$lt_cv_path_mainfest_tool" != xyes; then 7477 MANIFEST_TOOL=: 7478fi 7479 7480 7481 7482 7483 7484 7485 case $host_os in 7486 rhapsody* | darwin*) 7487 if test -n "$ac_tool_prefix"; then 7488 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7489set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7491$as_echo_n "checking for $ac_word... " >&6; } 7492if ${ac_cv_prog_DSYMUTIL+:} false; then : 7493 $as_echo_n "(cached) " >&6 7494else 7495 if test -n "$DSYMUTIL"; then 7496 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7497else 7498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7499for as_dir in $PATH 7500do 7501 IFS=$as_save_IFS 7502 test -z "$as_dir" && as_dir=. 7503 for ac_exec_ext in '' $ac_executable_extensions; do 7504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7505 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7507 break 2 7508 fi 7509done 7510 done 7511IFS=$as_save_IFS 7512 7513fi 7514fi 7515DSYMUTIL=$ac_cv_prog_DSYMUTIL 7516if test -n "$DSYMUTIL"; then 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7518$as_echo "$DSYMUTIL" >&6; } 7519else 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7521$as_echo "no" >&6; } 7522fi 7523 7524 7525fi 7526if test -z "$ac_cv_prog_DSYMUTIL"; then 7527 ac_ct_DSYMUTIL=$DSYMUTIL 7528 # Extract the first word of "dsymutil", so it can be a program name with args. 7529set dummy dsymutil; ac_word=$2 7530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7531$as_echo_n "checking for $ac_word... " >&6; } 7532if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7533 $as_echo_n "(cached) " >&6 7534else 7535 if test -n "$ac_ct_DSYMUTIL"; then 7536 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7537else 7538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7539for as_dir in $PATH 7540do 7541 IFS=$as_save_IFS 7542 test -z "$as_dir" && as_dir=. 7543 for ac_exec_ext in '' $ac_executable_extensions; do 7544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7545 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7547 break 2 7548 fi 7549done 7550 done 7551IFS=$as_save_IFS 7552 7553fi 7554fi 7555ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7556if test -n "$ac_ct_DSYMUTIL"; then 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7558$as_echo "$ac_ct_DSYMUTIL" >&6; } 7559else 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7561$as_echo "no" >&6; } 7562fi 7563 7564 if test "x$ac_ct_DSYMUTIL" = x; then 7565 DSYMUTIL=":" 7566 else 7567 case $cross_compiling:$ac_tool_warned in 7568yes:) 7569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7571ac_tool_warned=yes ;; 7572esac 7573 DSYMUTIL=$ac_ct_DSYMUTIL 7574 fi 7575else 7576 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7577fi 7578 7579 if test -n "$ac_tool_prefix"; then 7580 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7581set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7583$as_echo_n "checking for $ac_word... " >&6; } 7584if ${ac_cv_prog_NMEDIT+:} false; then : 7585 $as_echo_n "(cached) " >&6 7586else 7587 if test -n "$NMEDIT"; then 7588 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7589else 7590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7591for as_dir in $PATH 7592do 7593 IFS=$as_save_IFS 7594 test -z "$as_dir" && as_dir=. 7595 for ac_exec_ext in '' $ac_executable_extensions; do 7596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7597 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7599 break 2 7600 fi 7601done 7602 done 7603IFS=$as_save_IFS 7604 7605fi 7606fi 7607NMEDIT=$ac_cv_prog_NMEDIT 7608if test -n "$NMEDIT"; then 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7610$as_echo "$NMEDIT" >&6; } 7611else 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7613$as_echo "no" >&6; } 7614fi 7615 7616 7617fi 7618if test -z "$ac_cv_prog_NMEDIT"; then 7619 ac_ct_NMEDIT=$NMEDIT 7620 # Extract the first word of "nmedit", so it can be a program name with args. 7621set dummy nmedit; ac_word=$2 7622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7623$as_echo_n "checking for $ac_word... " >&6; } 7624if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7625 $as_echo_n "(cached) " >&6 7626else 7627 if test -n "$ac_ct_NMEDIT"; then 7628 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7629else 7630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7631for as_dir in $PATH 7632do 7633 IFS=$as_save_IFS 7634 test -z "$as_dir" && as_dir=. 7635 for ac_exec_ext in '' $ac_executable_extensions; do 7636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7637 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7639 break 2 7640 fi 7641done 7642 done 7643IFS=$as_save_IFS 7644 7645fi 7646fi 7647ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7648if test -n "$ac_ct_NMEDIT"; then 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7650$as_echo "$ac_ct_NMEDIT" >&6; } 7651else 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7653$as_echo "no" >&6; } 7654fi 7655 7656 if test "x$ac_ct_NMEDIT" = x; then 7657 NMEDIT=":" 7658 else 7659 case $cross_compiling:$ac_tool_warned in 7660yes:) 7661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7663ac_tool_warned=yes ;; 7664esac 7665 NMEDIT=$ac_ct_NMEDIT 7666 fi 7667else 7668 NMEDIT="$ac_cv_prog_NMEDIT" 7669fi 7670 7671 if test -n "$ac_tool_prefix"; then 7672 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7673set dummy ${ac_tool_prefix}lipo; ac_word=$2 7674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7675$as_echo_n "checking for $ac_word... " >&6; } 7676if ${ac_cv_prog_LIPO+:} false; then : 7677 $as_echo_n "(cached) " >&6 7678else 7679 if test -n "$LIPO"; then 7680 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7681else 7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7683for as_dir in $PATH 7684do 7685 IFS=$as_save_IFS 7686 test -z "$as_dir" && as_dir=. 7687 for ac_exec_ext in '' $ac_executable_extensions; do 7688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7689 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7691 break 2 7692 fi 7693done 7694 done 7695IFS=$as_save_IFS 7696 7697fi 7698fi 7699LIPO=$ac_cv_prog_LIPO 7700if test -n "$LIPO"; then 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7702$as_echo "$LIPO" >&6; } 7703else 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7705$as_echo "no" >&6; } 7706fi 7707 7708 7709fi 7710if test -z "$ac_cv_prog_LIPO"; then 7711 ac_ct_LIPO=$LIPO 7712 # Extract the first word of "lipo", so it can be a program name with args. 7713set dummy lipo; ac_word=$2 7714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7715$as_echo_n "checking for $ac_word... " >&6; } 7716if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7717 $as_echo_n "(cached) " >&6 7718else 7719 if test -n "$ac_ct_LIPO"; then 7720 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7721else 7722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7723for as_dir in $PATH 7724do 7725 IFS=$as_save_IFS 7726 test -z "$as_dir" && as_dir=. 7727 for ac_exec_ext in '' $ac_executable_extensions; do 7728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7729 ac_cv_prog_ac_ct_LIPO="lipo" 7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7731 break 2 7732 fi 7733done 7734 done 7735IFS=$as_save_IFS 7736 7737fi 7738fi 7739ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7740if test -n "$ac_ct_LIPO"; then 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7742$as_echo "$ac_ct_LIPO" >&6; } 7743else 7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7745$as_echo "no" >&6; } 7746fi 7747 7748 if test "x$ac_ct_LIPO" = x; then 7749 LIPO=":" 7750 else 7751 case $cross_compiling:$ac_tool_warned in 7752yes:) 7753{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7754$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7755ac_tool_warned=yes ;; 7756esac 7757 LIPO=$ac_ct_LIPO 7758 fi 7759else 7760 LIPO="$ac_cv_prog_LIPO" 7761fi 7762 7763 if test -n "$ac_tool_prefix"; then 7764 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7765set dummy ${ac_tool_prefix}otool; ac_word=$2 7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7767$as_echo_n "checking for $ac_word... " >&6; } 7768if ${ac_cv_prog_OTOOL+:} false; then : 7769 $as_echo_n "(cached) " >&6 7770else 7771 if test -n "$OTOOL"; then 7772 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7773else 7774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7775for as_dir in $PATH 7776do 7777 IFS=$as_save_IFS 7778 test -z "$as_dir" && as_dir=. 7779 for ac_exec_ext in '' $ac_executable_extensions; do 7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7781 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7783 break 2 7784 fi 7785done 7786 done 7787IFS=$as_save_IFS 7788 7789fi 7790fi 7791OTOOL=$ac_cv_prog_OTOOL 7792if test -n "$OTOOL"; then 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7794$as_echo "$OTOOL" >&6; } 7795else 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7797$as_echo "no" >&6; } 7798fi 7799 7800 7801fi 7802if test -z "$ac_cv_prog_OTOOL"; then 7803 ac_ct_OTOOL=$OTOOL 7804 # Extract the first word of "otool", so it can be a program name with args. 7805set dummy otool; ac_word=$2 7806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7807$as_echo_n "checking for $ac_word... " >&6; } 7808if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7809 $as_echo_n "(cached) " >&6 7810else 7811 if test -n "$ac_ct_OTOOL"; then 7812 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7813else 7814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7815for as_dir in $PATH 7816do 7817 IFS=$as_save_IFS 7818 test -z "$as_dir" && as_dir=. 7819 for ac_exec_ext in '' $ac_executable_extensions; do 7820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7821 ac_cv_prog_ac_ct_OTOOL="otool" 7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7823 break 2 7824 fi 7825done 7826 done 7827IFS=$as_save_IFS 7828 7829fi 7830fi 7831ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7832if test -n "$ac_ct_OTOOL"; then 7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7834$as_echo "$ac_ct_OTOOL" >&6; } 7835else 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7837$as_echo "no" >&6; } 7838fi 7839 7840 if test "x$ac_ct_OTOOL" = x; then 7841 OTOOL=":" 7842 else 7843 case $cross_compiling:$ac_tool_warned in 7844yes:) 7845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7847ac_tool_warned=yes ;; 7848esac 7849 OTOOL=$ac_ct_OTOOL 7850 fi 7851else 7852 OTOOL="$ac_cv_prog_OTOOL" 7853fi 7854 7855 if test -n "$ac_tool_prefix"; then 7856 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7857set dummy ${ac_tool_prefix}otool64; ac_word=$2 7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7859$as_echo_n "checking for $ac_word... " >&6; } 7860if ${ac_cv_prog_OTOOL64+:} false; then : 7861 $as_echo_n "(cached) " >&6 7862else 7863 if test -n "$OTOOL64"; then 7864 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7865else 7866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7867for as_dir in $PATH 7868do 7869 IFS=$as_save_IFS 7870 test -z "$as_dir" && as_dir=. 7871 for ac_exec_ext in '' $ac_executable_extensions; do 7872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7873 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7875 break 2 7876 fi 7877done 7878 done 7879IFS=$as_save_IFS 7880 7881fi 7882fi 7883OTOOL64=$ac_cv_prog_OTOOL64 7884if test -n "$OTOOL64"; then 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7886$as_echo "$OTOOL64" >&6; } 7887else 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7889$as_echo "no" >&6; } 7890fi 7891 7892 7893fi 7894if test -z "$ac_cv_prog_OTOOL64"; then 7895 ac_ct_OTOOL64=$OTOOL64 7896 # Extract the first word of "otool64", so it can be a program name with args. 7897set dummy otool64; ac_word=$2 7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7899$as_echo_n "checking for $ac_word... " >&6; } 7900if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7901 $as_echo_n "(cached) " >&6 7902else 7903 if test -n "$ac_ct_OTOOL64"; then 7904 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7905else 7906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7907for as_dir in $PATH 7908do 7909 IFS=$as_save_IFS 7910 test -z "$as_dir" && as_dir=. 7911 for ac_exec_ext in '' $ac_executable_extensions; do 7912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7913 ac_cv_prog_ac_ct_OTOOL64="otool64" 7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7915 break 2 7916 fi 7917done 7918 done 7919IFS=$as_save_IFS 7920 7921fi 7922fi 7923ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7924if test -n "$ac_ct_OTOOL64"; then 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7926$as_echo "$ac_ct_OTOOL64" >&6; } 7927else 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7929$as_echo "no" >&6; } 7930fi 7931 7932 if test "x$ac_ct_OTOOL64" = x; then 7933 OTOOL64=":" 7934 else 7935 case $cross_compiling:$ac_tool_warned in 7936yes:) 7937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7939ac_tool_warned=yes ;; 7940esac 7941 OTOOL64=$ac_ct_OTOOL64 7942 fi 7943else 7944 OTOOL64="$ac_cv_prog_OTOOL64" 7945fi 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7974$as_echo_n "checking for -single_module linker flag... " >&6; } 7975if ${lt_cv_apple_cc_single_mod+:} false; then : 7976 $as_echo_n "(cached) " >&6 7977else 7978 lt_cv_apple_cc_single_mod=no 7979 if test -z "${LT_MULTI_MODULE}"; then 7980 # By default we will add the -single_module flag. You can override 7981 # by either setting the environment variable LT_MULTI_MODULE 7982 # non-empty at configure time, or by adding -multi_module to the 7983 # link flags. 7984 rm -rf libconftest.dylib* 7985 echo "int foo(void){return 1;}" > conftest.c 7986 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7987-dynamiclib -Wl,-single_module conftest.c" >&5 7988 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7989 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7990 _lt_result=$? 7991 # If there is a non-empty error log, and "single_module" 7992 # appears in it, assume the flag caused a linker warning 7993 if test -s conftest.err && $GREP single_module conftest.err; then 7994 cat conftest.err >&5 7995 # Otherwise, if the output was created with a 0 exit code from 7996 # the compiler, it worked. 7997 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7998 lt_cv_apple_cc_single_mod=yes 7999 else 8000 cat conftest.err >&5 8001 fi 8002 rm -rf libconftest.dylib* 8003 rm -f conftest.* 8004 fi 8005fi 8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8007$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8008 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8010$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8011if ${lt_cv_ld_exported_symbols_list+:} false; then : 8012 $as_echo_n "(cached) " >&6 8013else 8014 lt_cv_ld_exported_symbols_list=no 8015 save_LDFLAGS=$LDFLAGS 8016 echo "_main" > conftest.sym 8017 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8019/* end confdefs.h. */ 8020 8021int 8022main () 8023{ 8024 8025 ; 8026 return 0; 8027} 8028_ACEOF 8029if ac_fn_c_try_link "$LINENO"; then : 8030 lt_cv_ld_exported_symbols_list=yes 8031else 8032 lt_cv_ld_exported_symbols_list=no 8033fi 8034rm -f core conftest.err conftest.$ac_objext \ 8035 conftest$ac_exeext conftest.$ac_ext 8036 LDFLAGS="$save_LDFLAGS" 8037 8038fi 8039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8040$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8041 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8043$as_echo_n "checking for -force_load linker flag... " >&6; } 8044if ${lt_cv_ld_force_load+:} false; then : 8045 $as_echo_n "(cached) " >&6 8046else 8047 lt_cv_ld_force_load=no 8048 cat > conftest.c << _LT_EOF 8049int forced_loaded() { return 2;} 8050_LT_EOF 8051 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8052 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8053 echo "$AR cru libconftest.a conftest.o" >&5 8054 $AR cru libconftest.a conftest.o 2>&5 8055 echo "$RANLIB libconftest.a" >&5 8056 $RANLIB libconftest.a 2>&5 8057 cat > conftest.c << _LT_EOF 8058int main() { return 0;} 8059_LT_EOF 8060 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8061 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8062 _lt_result=$? 8063 if test -s conftest.err && $GREP force_load conftest.err; then 8064 cat conftest.err >&5 8065 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 8066 lt_cv_ld_force_load=yes 8067 else 8068 cat conftest.err >&5 8069 fi 8070 rm -f conftest.err libconftest.a conftest conftest.c 8071 rm -rf conftest.dSYM 8072 8073fi 8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8075$as_echo "$lt_cv_ld_force_load" >&6; } 8076 case $host_os in 8077 rhapsody* | darwin1.[012]) 8078 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8079 darwin1.*) 8080 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8081 darwin*) # darwin 5.x on 8082 # if running on 10.5 or later, the deployment target defaults 8083 # to the OS version, if on x86, and 10.4, the deployment 8084 # target defaults to 10.4. Don't you love it? 8085 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8086 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8087 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8088 10.[012]*) 8089 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8090 10.*) 8091 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8092 esac 8093 ;; 8094 esac 8095 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8096 _lt_dar_single_mod='$single_module' 8097 fi 8098 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8099 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8100 else 8101 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8102 fi 8103 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8104 _lt_dsymutil='~$DSYMUTIL $lib || :' 8105 else 8106 _lt_dsymutil= 8107 fi 8108 ;; 8109 esac 8110 8111 8112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8113$as_echo_n "checking for ANSI C header files... " >&6; } 8114if ${ac_cv_header_stdc+:} false; then : 8115 $as_echo_n "(cached) " >&6 8116else 8117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8118/* end confdefs.h. */ 8119#include <stdlib.h> 8120#include <stdarg.h> 8121#include <string.h> 8122#include <float.h> 8123 8124int 8125main () 8126{ 8127 8128 ; 8129 return 0; 8130} 8131_ACEOF 8132if ac_fn_c_try_compile "$LINENO"; then : 8133 ac_cv_header_stdc=yes 8134else 8135 ac_cv_header_stdc=no 8136fi 8137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8138 8139if test $ac_cv_header_stdc = yes; then 8140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8142/* end confdefs.h. */ 8143#include <string.h> 8144 8145_ACEOF 8146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8147 $EGREP "memchr" >/dev/null 2>&1; then : 8148 8149else 8150 ac_cv_header_stdc=no 8151fi 8152rm -f conftest* 8153 8154fi 8155 8156if test $ac_cv_header_stdc = yes; then 8157 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8159/* end confdefs.h. */ 8160#include <stdlib.h> 8161 8162_ACEOF 8163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8164 $EGREP "free" >/dev/null 2>&1; then : 8165 8166else 8167 ac_cv_header_stdc=no 8168fi 8169rm -f conftest* 8170 8171fi 8172 8173if test $ac_cv_header_stdc = yes; then 8174 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8175 if test "$cross_compiling" = yes; then : 8176 : 8177else 8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8179/* end confdefs.h. */ 8180#include <ctype.h> 8181#include <stdlib.h> 8182#if ((' ' & 0x0FF) == 0x020) 8183# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8184# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8185#else 8186# define ISLOWER(c) \ 8187 (('a' <= (c) && (c) <= 'i') \ 8188 || ('j' <= (c) && (c) <= 'r') \ 8189 || ('s' <= (c) && (c) <= 'z')) 8190# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8191#endif 8192 8193#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8194int 8195main () 8196{ 8197 int i; 8198 for (i = 0; i < 256; i++) 8199 if (XOR (islower (i), ISLOWER (i)) 8200 || toupper (i) != TOUPPER (i)) 8201 return 2; 8202 return 0; 8203} 8204_ACEOF 8205if ac_fn_c_try_run "$LINENO"; then : 8206 8207else 8208 ac_cv_header_stdc=no 8209fi 8210rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8211 conftest.$ac_objext conftest.beam conftest.$ac_ext 8212fi 8213 8214fi 8215fi 8216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8217$as_echo "$ac_cv_header_stdc" >&6; } 8218if test $ac_cv_header_stdc = yes; then 8219 8220$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8221 8222fi 8223 8224# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8225for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8226 inttypes.h stdint.h unistd.h 8227do : 8228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8229ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8230" 8231if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8232 cat >>confdefs.h <<_ACEOF 8233#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8234_ACEOF 8235 8236fi 8237 8238done 8239 8240 8241for ac_header in dlfcn.h 8242do : 8243 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8244" 8245if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8246 cat >>confdefs.h <<_ACEOF 8247#define HAVE_DLFCN_H 1 8248_ACEOF 8249 8250fi 8251 8252done 8253 8254 8255 8256func_stripname_cnf () 8257{ 8258 case ${2} in 8259 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 8260 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 8261 esac 8262} # func_stripname_cnf 8263 8264 8265 8266 8267 8268# Set options 8269 8270 8271 8272 enable_dlopen=no 8273 8274 8275 enable_win32_dll=no 8276 8277 8278 # Check whether --enable-shared was given. 8279if test "${enable_shared+set}" = set; then : 8280 enableval=$enable_shared; p=${PACKAGE-default} 8281 case $enableval in 8282 yes) enable_shared=yes ;; 8283 no) enable_shared=no ;; 8284 *) 8285 enable_shared=no 8286 # Look at the argument we got. We use all the common list separators. 8287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8288 for pkg in $enableval; do 8289 IFS="$lt_save_ifs" 8290 if test "X$pkg" = "X$p"; then 8291 enable_shared=yes 8292 fi 8293 done 8294 IFS="$lt_save_ifs" 8295 ;; 8296 esac 8297else 8298 enable_shared=yes 8299fi 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311# Check whether --with-pic was given. 8312if test "${with_pic+set}" = set; then : 8313 withval=$with_pic; lt_p=${PACKAGE-default} 8314 case $withval in 8315 yes|no) pic_mode=$withval ;; 8316 *) 8317 pic_mode=default 8318 # Look at the argument we got. We use all the common list separators. 8319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8320 for lt_pkg in $withval; do 8321 IFS="$lt_save_ifs" 8322 if test "X$lt_pkg" = "X$lt_p"; then 8323 pic_mode=yes 8324 fi 8325 done 8326 IFS="$lt_save_ifs" 8327 ;; 8328 esac 8329else 8330 pic_mode=default 8331fi 8332 8333 8334test -z "$pic_mode" && pic_mode=default 8335 8336 8337 8338 8339 8340 8341 8342 # Check whether --enable-fast-install was given. 8343if test "${enable_fast_install+set}" = set; then : 8344 enableval=$enable_fast_install; p=${PACKAGE-default} 8345 case $enableval in 8346 yes) enable_fast_install=yes ;; 8347 no) enable_fast_install=no ;; 8348 *) 8349 enable_fast_install=no 8350 # Look at the argument we got. We use all the common list separators. 8351 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8352 for pkg in $enableval; do 8353 IFS="$lt_save_ifs" 8354 if test "X$pkg" = "X$p"; then 8355 enable_fast_install=yes 8356 fi 8357 done 8358 IFS="$lt_save_ifs" 8359 ;; 8360 esac 8361else 8362 enable_fast_install=yes 8363fi 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375# This can be used to rebuild libtool when needed 8376LIBTOOL_DEPS="$ltmain" 8377 8378# Always use our own libtool. 8379LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410test -z "$LN_S" && LN_S="ln -s" 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425if test -n "${ZSH_VERSION+set}" ; then 8426 setopt NO_GLOB_SUBST 8427fi 8428 8429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8430$as_echo_n "checking for objdir... " >&6; } 8431if ${lt_cv_objdir+:} false; then : 8432 $as_echo_n "(cached) " >&6 8433else 8434 rm -f .libs 2>/dev/null 8435mkdir .libs 2>/dev/null 8436if test -d .libs; then 8437 lt_cv_objdir=.libs 8438else 8439 # MS-DOS does not allow filenames that begin with a dot. 8440 lt_cv_objdir=_libs 8441fi 8442rmdir .libs 2>/dev/null 8443fi 8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8445$as_echo "$lt_cv_objdir" >&6; } 8446objdir=$lt_cv_objdir 8447 8448 8449 8450 8451 8452cat >>confdefs.h <<_ACEOF 8453#define LT_OBJDIR "$lt_cv_objdir/" 8454_ACEOF 8455 8456 8457 8458 8459case $host_os in 8460aix3*) 8461 # AIX sometimes has problems with the GCC collect2 program. For some 8462 # reason, if we set the COLLECT_NAMES environment variable, the problems 8463 # vanish in a puff of smoke. 8464 if test "X${COLLECT_NAMES+set}" != Xset; then 8465 COLLECT_NAMES= 8466 export COLLECT_NAMES 8467 fi 8468 ;; 8469esac 8470 8471# Global variables: 8472ofile=libtool 8473can_build_shared=yes 8474 8475# All known linkers require a `.a' archive for static linking (except MSVC, 8476# which needs '.lib'). 8477libext=a 8478 8479with_gnu_ld="$lt_cv_prog_gnu_ld" 8480 8481old_CC="$CC" 8482old_CFLAGS="$CFLAGS" 8483 8484# Set sane defaults for various variables 8485test -z "$CC" && CC=cc 8486test -z "$LTCC" && LTCC=$CC 8487test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8488test -z "$LD" && LD=ld 8489test -z "$ac_objext" && ac_objext=o 8490 8491for cc_temp in $compiler""; do 8492 case $cc_temp in 8493 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8494 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8495 \-*) ;; 8496 *) break;; 8497 esac 8498done 8499cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8500 8501 8502# Only perform the check for file, if the check method requires it 8503test -z "$MAGIC_CMD" && MAGIC_CMD=file 8504case $deplibs_check_method in 8505file_magic*) 8506 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8508$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8509if ${lt_cv_path_MAGIC_CMD+:} false; then : 8510 $as_echo_n "(cached) " >&6 8511else 8512 case $MAGIC_CMD in 8513[\\/*] | ?:[\\/]*) 8514 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8515 ;; 8516*) 8517 lt_save_MAGIC_CMD="$MAGIC_CMD" 8518 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8519 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8520 for ac_dir in $ac_dummy; do 8521 IFS="$lt_save_ifs" 8522 test -z "$ac_dir" && ac_dir=. 8523 if test -f $ac_dir/${ac_tool_prefix}file; then 8524 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8525 if test -n "$file_magic_test_file"; then 8526 case $deplibs_check_method in 8527 "file_magic "*) 8528 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8529 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8530 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8531 $EGREP "$file_magic_regex" > /dev/null; then 8532 : 8533 else 8534 cat <<_LT_EOF 1>&2 8535 8536*** Warning: the command libtool uses to detect shared libraries, 8537*** $file_magic_cmd, produces output that libtool cannot recognize. 8538*** The result is that libtool may fail to recognize shared libraries 8539*** as such. This will affect the creation of libtool libraries that 8540*** depend on shared libraries, but programs linked with such libtool 8541*** libraries will work regardless of this problem. Nevertheless, you 8542*** may want to report the problem to your system manager and/or to 8543*** bug-libtool@gnu.org 8544 8545_LT_EOF 8546 fi ;; 8547 esac 8548 fi 8549 break 8550 fi 8551 done 8552 IFS="$lt_save_ifs" 8553 MAGIC_CMD="$lt_save_MAGIC_CMD" 8554 ;; 8555esac 8556fi 8557 8558MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8559if test -n "$MAGIC_CMD"; then 8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8561$as_echo "$MAGIC_CMD" >&6; } 8562else 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8564$as_echo "no" >&6; } 8565fi 8566 8567 8568 8569 8570 8571if test -z "$lt_cv_path_MAGIC_CMD"; then 8572 if test -n "$ac_tool_prefix"; then 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8574$as_echo_n "checking for file... " >&6; } 8575if ${lt_cv_path_MAGIC_CMD+:} false; then : 8576 $as_echo_n "(cached) " >&6 8577else 8578 case $MAGIC_CMD in 8579[\\/*] | ?:[\\/]*) 8580 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8581 ;; 8582*) 8583 lt_save_MAGIC_CMD="$MAGIC_CMD" 8584 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8585 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8586 for ac_dir in $ac_dummy; do 8587 IFS="$lt_save_ifs" 8588 test -z "$ac_dir" && ac_dir=. 8589 if test -f $ac_dir/file; then 8590 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8591 if test -n "$file_magic_test_file"; then 8592 case $deplibs_check_method in 8593 "file_magic "*) 8594 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8595 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8596 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8597 $EGREP "$file_magic_regex" > /dev/null; then 8598 : 8599 else 8600 cat <<_LT_EOF 1>&2 8601 8602*** Warning: the command libtool uses to detect shared libraries, 8603*** $file_magic_cmd, produces output that libtool cannot recognize. 8604*** The result is that libtool may fail to recognize shared libraries 8605*** as such. This will affect the creation of libtool libraries that 8606*** depend on shared libraries, but programs linked with such libtool 8607*** libraries will work regardless of this problem. Nevertheless, you 8608*** may want to report the problem to your system manager and/or to 8609*** bug-libtool@gnu.org 8610 8611_LT_EOF 8612 fi ;; 8613 esac 8614 fi 8615 break 8616 fi 8617 done 8618 IFS="$lt_save_ifs" 8619 MAGIC_CMD="$lt_save_MAGIC_CMD" 8620 ;; 8621esac 8622fi 8623 8624MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8625if test -n "$MAGIC_CMD"; then 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8627$as_echo "$MAGIC_CMD" >&6; } 8628else 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8630$as_echo "no" >&6; } 8631fi 8632 8633 8634 else 8635 MAGIC_CMD=: 8636 fi 8637fi 8638 8639 fi 8640 ;; 8641esac 8642 8643# Use C for the default configuration in the libtool script 8644 8645lt_save_CC="$CC" 8646ac_ext=c 8647ac_cpp='$CPP $CPPFLAGS' 8648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8650ac_compiler_gnu=$ac_cv_c_compiler_gnu 8651 8652 8653# Source file extension for C test sources. 8654ac_ext=c 8655 8656# Object file extension for compiled C test sources. 8657objext=o 8658objext=$objext 8659 8660# Code to be used in simple compile tests 8661lt_simple_compile_test_code="int some_variable = 0;" 8662 8663# Code to be used in simple link tests 8664lt_simple_link_test_code='int main(){return(0);}' 8665 8666 8667 8668 8669 8670 8671 8672# If no C compiler was specified, use CC. 8673LTCC=${LTCC-"$CC"} 8674 8675# If no C compiler flags were specified, use CFLAGS. 8676LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8677 8678# Allow CC to be a program name with arguments. 8679compiler=$CC 8680 8681# Save the default compiler, since it gets overwritten when the other 8682# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8683compiler_DEFAULT=$CC 8684 8685# save warnings/boilerplate of simple test code 8686ac_outfile=conftest.$ac_objext 8687echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8688eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8689_lt_compiler_boilerplate=`cat conftest.err` 8690$RM conftest* 8691 8692ac_outfile=conftest.$ac_objext 8693echo "$lt_simple_link_test_code" >conftest.$ac_ext 8694eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8695_lt_linker_boilerplate=`cat conftest.err` 8696$RM -r conftest* 8697 8698 8699## CAVEAT EMPTOR: 8700## There is no encapsulation within the following macros, do not change 8701## the running order or otherwise move them around unless you know exactly 8702## what you are doing... 8703if test -n "$compiler"; then 8704 8705lt_prog_compiler_no_builtin_flag= 8706 8707if test "$GCC" = yes; then 8708 case $cc_basename in 8709 nvcc*) 8710 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8711 *) 8712 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8713 esac 8714 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8716$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8717if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8718 $as_echo_n "(cached) " >&6 8719else 8720 lt_cv_prog_compiler_rtti_exceptions=no 8721 ac_outfile=conftest.$ac_objext 8722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8723 lt_compiler_flag="-fno-rtti -fno-exceptions" 8724 # Insert the option either (1) after the last *FLAGS variable, or 8725 # (2) before a word containing "conftest.", or (3) at the end. 8726 # Note that $ac_compile itself does not contain backslashes and begins 8727 # with a dollar sign (not a hyphen), so the echo should work correctly. 8728 # The option is referenced via a variable to avoid confusing sed. 8729 lt_compile=`echo "$ac_compile" | $SED \ 8730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8732 -e 's:$: $lt_compiler_flag:'` 8733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8734 (eval "$lt_compile" 2>conftest.err) 8735 ac_status=$? 8736 cat conftest.err >&5 8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8738 if (exit $ac_status) && test -s "$ac_outfile"; then 8739 # The compiler can only warn and ignore the option if not recognized 8740 # So say no if there are warnings other than the usual output. 8741 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8743 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8744 lt_cv_prog_compiler_rtti_exceptions=yes 8745 fi 8746 fi 8747 $RM conftest* 8748 8749fi 8750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8751$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8752 8753if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8754 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8755else 8756 : 8757fi 8758 8759fi 8760 8761 8762 8763 8764 8765 8766 lt_prog_compiler_wl= 8767lt_prog_compiler_pic= 8768lt_prog_compiler_static= 8769 8770 8771 if test "$GCC" = yes; then 8772 lt_prog_compiler_wl='-Wl,' 8773 lt_prog_compiler_static='-static' 8774 8775 case $host_os in 8776 aix*) 8777 # All AIX code is PIC. 8778 if test "$host_cpu" = ia64; then 8779 # AIX 5 now supports IA64 processor 8780 lt_prog_compiler_static='-Bstatic' 8781 fi 8782 ;; 8783 8784 amigaos*) 8785 case $host_cpu in 8786 powerpc) 8787 # see comment about AmigaOS4 .so support 8788 lt_prog_compiler_pic='-fPIC' 8789 ;; 8790 m68k) 8791 # FIXME: we need at least 68020 code to build shared libraries, but 8792 # adding the `-m68020' flag to GCC prevents building anything better, 8793 # like `-m68040'. 8794 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8795 ;; 8796 esac 8797 ;; 8798 8799 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8800 # PIC is the default for these OSes. 8801 ;; 8802 8803 mingw* | cygwin* | pw32* | os2* | cegcc*) 8804 # This hack is so that the source file can tell whether it is being 8805 # built for inclusion in a dll (and should export symbols for example). 8806 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8807 # (--disable-auto-import) libraries 8808 lt_prog_compiler_pic='-DDLL_EXPORT' 8809 ;; 8810 8811 darwin* | rhapsody*) 8812 # PIC is the default on this platform 8813 # Common symbols not allowed in MH_DYLIB files 8814 lt_prog_compiler_pic='-fno-common' 8815 ;; 8816 8817 haiku*) 8818 # PIC is the default for Haiku. 8819 # The "-static" flag exists, but is broken. 8820 lt_prog_compiler_static= 8821 ;; 8822 8823 hpux*) 8824 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8825 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8826 # sets the default TLS model and affects inlining. 8827 case $host_cpu in 8828 hppa*64*) 8829 # +Z the default 8830 ;; 8831 *) 8832 lt_prog_compiler_pic='-fPIC' 8833 ;; 8834 esac 8835 ;; 8836 8837 interix[3-9]*) 8838 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8839 # Instead, we relocate shared libraries at runtime. 8840 ;; 8841 8842 msdosdjgpp*) 8843 # Just because we use GCC doesn't mean we suddenly get shared libraries 8844 # on systems that don't support them. 8845 lt_prog_compiler_can_build_shared=no 8846 enable_shared=no 8847 ;; 8848 8849 *nto* | *qnx*) 8850 # QNX uses GNU C++, but need to define -shared option too, otherwise 8851 # it will coredump. 8852 lt_prog_compiler_pic='-fPIC -shared' 8853 ;; 8854 8855 sysv4*MP*) 8856 if test -d /usr/nec; then 8857 lt_prog_compiler_pic=-Kconform_pic 8858 fi 8859 ;; 8860 8861 *) 8862 lt_prog_compiler_pic='-fPIC' 8863 ;; 8864 esac 8865 8866 case $cc_basename in 8867 nvcc*) # Cuda Compiler Driver 2.2 8868 lt_prog_compiler_wl='-Xlinker ' 8869 if test -n "$lt_prog_compiler_pic"; then 8870 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8871 fi 8872 ;; 8873 esac 8874 else 8875 # PORTME Check for flag to pass linker flags through the system compiler. 8876 case $host_os in 8877 aix*) 8878 lt_prog_compiler_wl='-Wl,' 8879 if test "$host_cpu" = ia64; then 8880 # AIX 5 now supports IA64 processor 8881 lt_prog_compiler_static='-Bstatic' 8882 else 8883 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8884 fi 8885 ;; 8886 8887 mingw* | cygwin* | pw32* | os2* | cegcc*) 8888 # This hack is so that the source file can tell whether it is being 8889 # built for inclusion in a dll (and should export symbols for example). 8890 lt_prog_compiler_pic='-DDLL_EXPORT' 8891 ;; 8892 8893 hpux9* | hpux10* | hpux11*) 8894 lt_prog_compiler_wl='-Wl,' 8895 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8896 # not for PA HP-UX. 8897 case $host_cpu in 8898 hppa*64*|ia64*) 8899 # +Z the default 8900 ;; 8901 *) 8902 lt_prog_compiler_pic='+Z' 8903 ;; 8904 esac 8905 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8906 lt_prog_compiler_static='${wl}-a ${wl}archive' 8907 ;; 8908 8909 irix5* | irix6* | nonstopux*) 8910 lt_prog_compiler_wl='-Wl,' 8911 # PIC (with -KPIC) is the default. 8912 lt_prog_compiler_static='-non_shared' 8913 ;; 8914 8915 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8916 case $cc_basename in 8917 # old Intel for x86_64 which still supported -KPIC. 8918 ecc*) 8919 lt_prog_compiler_wl='-Wl,' 8920 lt_prog_compiler_pic='-KPIC' 8921 lt_prog_compiler_static='-static' 8922 ;; 8923 # icc used to be incompatible with GCC. 8924 # ICC 10 doesn't accept -KPIC any more. 8925 icc* | ifort*) 8926 lt_prog_compiler_wl='-Wl,' 8927 lt_prog_compiler_pic='-fPIC' 8928 lt_prog_compiler_static='-static' 8929 ;; 8930 # Lahey Fortran 8.1. 8931 lf95*) 8932 lt_prog_compiler_wl='-Wl,' 8933 lt_prog_compiler_pic='--shared' 8934 lt_prog_compiler_static='--static' 8935 ;; 8936 nagfor*) 8937 # NAG Fortran compiler 8938 lt_prog_compiler_wl='-Wl,-Wl,,' 8939 lt_prog_compiler_pic='-PIC' 8940 lt_prog_compiler_static='-Bstatic' 8941 ;; 8942 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8943 # Portland Group compilers (*not* the Pentium gcc compiler, 8944 # which looks to be a dead project) 8945 lt_prog_compiler_wl='-Wl,' 8946 lt_prog_compiler_pic='-fpic' 8947 lt_prog_compiler_static='-Bstatic' 8948 ;; 8949 ccc*) 8950 lt_prog_compiler_wl='-Wl,' 8951 # All Alpha code is PIC. 8952 lt_prog_compiler_static='-non_shared' 8953 ;; 8954 xl* | bgxl* | bgf* | mpixl*) 8955 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8956 lt_prog_compiler_wl='-Wl,' 8957 lt_prog_compiler_pic='-qpic' 8958 lt_prog_compiler_static='-qstaticlink' 8959 ;; 8960 *) 8961 case `$CC -V 2>&1 | sed 5q` in 8962 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8963 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8964 lt_prog_compiler_pic='-KPIC' 8965 lt_prog_compiler_static='-Bstatic' 8966 lt_prog_compiler_wl='' 8967 ;; 8968 *Sun\ F* | *Sun*Fortran*) 8969 lt_prog_compiler_pic='-KPIC' 8970 lt_prog_compiler_static='-Bstatic' 8971 lt_prog_compiler_wl='-Qoption ld ' 8972 ;; 8973 *Sun\ C*) 8974 # Sun C 5.9 8975 lt_prog_compiler_pic='-KPIC' 8976 lt_prog_compiler_static='-Bstatic' 8977 lt_prog_compiler_wl='-Wl,' 8978 ;; 8979 *Intel*\ [CF]*Compiler*) 8980 lt_prog_compiler_wl='-Wl,' 8981 lt_prog_compiler_pic='-fPIC' 8982 lt_prog_compiler_static='-static' 8983 ;; 8984 *Portland\ Group*) 8985 lt_prog_compiler_wl='-Wl,' 8986 lt_prog_compiler_pic='-fpic' 8987 lt_prog_compiler_static='-Bstatic' 8988 ;; 8989 esac 8990 ;; 8991 esac 8992 ;; 8993 8994 newsos6) 8995 lt_prog_compiler_pic='-KPIC' 8996 lt_prog_compiler_static='-Bstatic' 8997 ;; 8998 8999 *nto* | *qnx*) 9000 # QNX uses GNU C++, but need to define -shared option too, otherwise 9001 # it will coredump. 9002 lt_prog_compiler_pic='-fPIC -shared' 9003 ;; 9004 9005 osf3* | osf4* | osf5*) 9006 lt_prog_compiler_wl='-Wl,' 9007 # All OSF/1 code is PIC. 9008 lt_prog_compiler_static='-non_shared' 9009 ;; 9010 9011 rdos*) 9012 lt_prog_compiler_static='-non_shared' 9013 ;; 9014 9015 solaris*) 9016 lt_prog_compiler_pic='-KPIC' 9017 lt_prog_compiler_static='-Bstatic' 9018 case $cc_basename in 9019 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9020 lt_prog_compiler_wl='-Qoption ld ';; 9021 *) 9022 lt_prog_compiler_wl='-Wl,';; 9023 esac 9024 ;; 9025 9026 sunos4*) 9027 lt_prog_compiler_wl='-Qoption ld ' 9028 lt_prog_compiler_pic='-PIC' 9029 lt_prog_compiler_static='-Bstatic' 9030 ;; 9031 9032 sysv4 | sysv4.2uw2* | sysv4.3*) 9033 lt_prog_compiler_wl='-Wl,' 9034 lt_prog_compiler_pic='-KPIC' 9035 lt_prog_compiler_static='-Bstatic' 9036 ;; 9037 9038 sysv4*MP*) 9039 if test -d /usr/nec ;then 9040 lt_prog_compiler_pic='-Kconform_pic' 9041 lt_prog_compiler_static='-Bstatic' 9042 fi 9043 ;; 9044 9045 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9046 lt_prog_compiler_wl='-Wl,' 9047 lt_prog_compiler_pic='-KPIC' 9048 lt_prog_compiler_static='-Bstatic' 9049 ;; 9050 9051 unicos*) 9052 lt_prog_compiler_wl='-Wl,' 9053 lt_prog_compiler_can_build_shared=no 9054 ;; 9055 9056 uts4*) 9057 lt_prog_compiler_pic='-pic' 9058 lt_prog_compiler_static='-Bstatic' 9059 ;; 9060 9061 *) 9062 lt_prog_compiler_can_build_shared=no 9063 ;; 9064 esac 9065 fi 9066 9067case $host_os in 9068 # For platforms which do not support PIC, -DPIC is meaningless: 9069 *djgpp*) 9070 lt_prog_compiler_pic= 9071 ;; 9072 *) 9073 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9074 ;; 9075esac 9076 9077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9078$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9079if ${lt_cv_prog_compiler_pic+:} false; then : 9080 $as_echo_n "(cached) " >&6 9081else 9082 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9083fi 9084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9085$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9086lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9087 9088# 9089# Check to make sure the PIC flag actually works. 9090# 9091if test -n "$lt_prog_compiler_pic"; then 9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9093$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9094if ${lt_cv_prog_compiler_pic_works+:} false; then : 9095 $as_echo_n "(cached) " >&6 9096else 9097 lt_cv_prog_compiler_pic_works=no 9098 ac_outfile=conftest.$ac_objext 9099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9100 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9101 # Insert the option either (1) after the last *FLAGS variable, or 9102 # (2) before a word containing "conftest.", or (3) at the end. 9103 # Note that $ac_compile itself does not contain backslashes and begins 9104 # with a dollar sign (not a hyphen), so the echo should work correctly. 9105 # The option is referenced via a variable to avoid confusing sed. 9106 lt_compile=`echo "$ac_compile" | $SED \ 9107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9109 -e 's:$: $lt_compiler_flag:'` 9110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9111 (eval "$lt_compile" 2>conftest.err) 9112 ac_status=$? 9113 cat conftest.err >&5 9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9115 if (exit $ac_status) && test -s "$ac_outfile"; then 9116 # The compiler can only warn and ignore the option if not recognized 9117 # So say no if there are warnings other than the usual output. 9118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9119 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9120 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9121 lt_cv_prog_compiler_pic_works=yes 9122 fi 9123 fi 9124 $RM conftest* 9125 9126fi 9127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9128$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9129 9130if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9131 case $lt_prog_compiler_pic in 9132 "" | " "*) ;; 9133 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9134 esac 9135else 9136 lt_prog_compiler_pic= 9137 lt_prog_compiler_can_build_shared=no 9138fi 9139 9140fi 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152# 9153# Check to make sure the static flag actually works. 9154# 9155wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9157$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9158if ${lt_cv_prog_compiler_static_works+:} false; then : 9159 $as_echo_n "(cached) " >&6 9160else 9161 lt_cv_prog_compiler_static_works=no 9162 save_LDFLAGS="$LDFLAGS" 9163 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9164 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9165 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9166 # The linker can only warn and ignore the option if not recognized 9167 # So say no if there are warnings 9168 if test -s conftest.err; then 9169 # Append any errors to the config.log. 9170 cat conftest.err 1>&5 9171 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9173 if diff conftest.exp conftest.er2 >/dev/null; then 9174 lt_cv_prog_compiler_static_works=yes 9175 fi 9176 else 9177 lt_cv_prog_compiler_static_works=yes 9178 fi 9179 fi 9180 $RM -r conftest* 9181 LDFLAGS="$save_LDFLAGS" 9182 9183fi 9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9185$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9186 9187if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9188 : 9189else 9190 lt_prog_compiler_static= 9191fi 9192 9193 9194 9195 9196 9197 9198 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9200$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9201if ${lt_cv_prog_compiler_c_o+:} false; then : 9202 $as_echo_n "(cached) " >&6 9203else 9204 lt_cv_prog_compiler_c_o=no 9205 $RM -r conftest 2>/dev/null 9206 mkdir conftest 9207 cd conftest 9208 mkdir out 9209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9210 9211 lt_compiler_flag="-o out/conftest2.$ac_objext" 9212 # Insert the option either (1) after the last *FLAGS variable, or 9213 # (2) before a word containing "conftest.", or (3) at the end. 9214 # Note that $ac_compile itself does not contain backslashes and begins 9215 # with a dollar sign (not a hyphen), so the echo should work correctly. 9216 lt_compile=`echo "$ac_compile" | $SED \ 9217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9219 -e 's:$: $lt_compiler_flag:'` 9220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9221 (eval "$lt_compile" 2>out/conftest.err) 9222 ac_status=$? 9223 cat out/conftest.err >&5 9224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9225 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9226 then 9227 # The compiler can only warn and ignore the option if not recognized 9228 # So say no if there are warnings 9229 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9230 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9231 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9232 lt_cv_prog_compiler_c_o=yes 9233 fi 9234 fi 9235 chmod u+w . 2>&5 9236 $RM conftest* 9237 # SGI C++ compiler will create directory out/ii_files/ for 9238 # template instantiation 9239 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9240 $RM out/* && rmdir out 9241 cd .. 9242 $RM -r conftest 9243 $RM conftest* 9244 9245fi 9246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9247$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9248 9249 9250 9251 9252 9253 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9255$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9256if ${lt_cv_prog_compiler_c_o+:} false; then : 9257 $as_echo_n "(cached) " >&6 9258else 9259 lt_cv_prog_compiler_c_o=no 9260 $RM -r conftest 2>/dev/null 9261 mkdir conftest 9262 cd conftest 9263 mkdir out 9264 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9265 9266 lt_compiler_flag="-o out/conftest2.$ac_objext" 9267 # Insert the option either (1) after the last *FLAGS variable, or 9268 # (2) before a word containing "conftest.", or (3) at the end. 9269 # Note that $ac_compile itself does not contain backslashes and begins 9270 # with a dollar sign (not a hyphen), so the echo should work correctly. 9271 lt_compile=`echo "$ac_compile" | $SED \ 9272 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9273 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9274 -e 's:$: $lt_compiler_flag:'` 9275 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9276 (eval "$lt_compile" 2>out/conftest.err) 9277 ac_status=$? 9278 cat out/conftest.err >&5 9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9280 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9281 then 9282 # The compiler can only warn and ignore the option if not recognized 9283 # So say no if there are warnings 9284 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9285 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9286 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9287 lt_cv_prog_compiler_c_o=yes 9288 fi 9289 fi 9290 chmod u+w . 2>&5 9291 $RM conftest* 9292 # SGI C++ compiler will create directory out/ii_files/ for 9293 # template instantiation 9294 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9295 $RM out/* && rmdir out 9296 cd .. 9297 $RM -r conftest 9298 $RM conftest* 9299 9300fi 9301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9302$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9303 9304 9305 9306 9307hard_links="nottested" 9308if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9309 # do not overwrite the value of need_locks provided by the user 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9311$as_echo_n "checking if we can lock with hard links... " >&6; } 9312 hard_links=yes 9313 $RM conftest* 9314 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9315 touch conftest.a 9316 ln conftest.a conftest.b 2>&5 || hard_links=no 9317 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9319$as_echo "$hard_links" >&6; } 9320 if test "$hard_links" = no; then 9321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9322$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9323 need_locks=warn 9324 fi 9325else 9326 need_locks=no 9327fi 9328 9329 9330 9331 9332 9333 9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9335$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9336 9337 runpath_var= 9338 allow_undefined_flag= 9339 always_export_symbols=no 9340 archive_cmds= 9341 archive_expsym_cmds= 9342 compiler_needs_object=no 9343 enable_shared_with_static_runtimes=no 9344 export_dynamic_flag_spec= 9345 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9346 hardcode_automatic=no 9347 hardcode_direct=no 9348 hardcode_direct_absolute=no 9349 hardcode_libdir_flag_spec= 9350 hardcode_libdir_separator= 9351 hardcode_minus_L=no 9352 hardcode_shlibpath_var=unsupported 9353 inherit_rpath=no 9354 link_all_deplibs=unknown 9355 module_cmds= 9356 module_expsym_cmds= 9357 old_archive_from_new_cmds= 9358 old_archive_from_expsyms_cmds= 9359 thread_safe_flag_spec= 9360 whole_archive_flag_spec= 9361 # include_expsyms should be a list of space-separated symbols to be *always* 9362 # included in the symbol list 9363 include_expsyms= 9364 # exclude_expsyms can be an extended regexp of symbols to exclude 9365 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9366 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9367 # as well as any symbol that contains `d'. 9368 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9369 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9370 # platforms (ab)use it in PIC code, but their linkers get confused if 9371 # the symbol is explicitly referenced. Since portable code cannot 9372 # rely on this symbol name, it's probably fine to never include it in 9373 # preloaded symbol tables. 9374 # Exclude shared library initialization/finalization symbols. 9375 extract_expsyms_cmds= 9376 9377 case $host_os in 9378 cygwin* | mingw* | pw32* | cegcc*) 9379 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9380 # When not using gcc, we currently assume that we are using 9381 # Microsoft Visual C++. 9382 if test "$GCC" != yes; then 9383 with_gnu_ld=no 9384 fi 9385 ;; 9386 interix*) 9387 # we just hope/assume this is gcc and not c89 (= MSVC++) 9388 with_gnu_ld=yes 9389 ;; 9390 openbsd*) 9391 with_gnu_ld=no 9392 ;; 9393 linux* | k*bsd*-gnu | gnu*) 9394 link_all_deplibs=no 9395 ;; 9396 esac 9397 9398 ld_shlibs=yes 9399 9400 # On some targets, GNU ld is compatible enough with the native linker 9401 # that we're better off using the native interface for both. 9402 lt_use_gnu_ld_interface=no 9403 if test "$with_gnu_ld" = yes; then 9404 case $host_os in 9405 aix*) 9406 # The AIX port of GNU ld has always aspired to compatibility 9407 # with the native linker. However, as the warning in the GNU ld 9408 # block says, versions before 2.19.5* couldn't really create working 9409 # shared libraries, regardless of the interface used. 9410 case `$LD -v 2>&1` in 9411 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9412 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9413 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9414 *) 9415 lt_use_gnu_ld_interface=yes 9416 ;; 9417 esac 9418 ;; 9419 *) 9420 lt_use_gnu_ld_interface=yes 9421 ;; 9422 esac 9423 fi 9424 9425 if test "$lt_use_gnu_ld_interface" = yes; then 9426 # If archive_cmds runs LD, not CC, wlarc should be empty 9427 wlarc='${wl}' 9428 9429 # Set some defaults for GNU ld with shared library support. These 9430 # are reset later if shared libraries are not supported. Putting them 9431 # here allows them to be overridden if necessary. 9432 runpath_var=LD_RUN_PATH 9433 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9434 export_dynamic_flag_spec='${wl}--export-dynamic' 9435 # ancient GNU ld didn't support --whole-archive et. al. 9436 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9437 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9438 else 9439 whole_archive_flag_spec= 9440 fi 9441 supports_anon_versioning=no 9442 case `$LD -v 2>&1` in 9443 *GNU\ gold*) supports_anon_versioning=yes ;; 9444 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9445 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9446 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9447 *\ 2.11.*) ;; # other 2.11 versions 9448 *) supports_anon_versioning=yes ;; 9449 esac 9450 9451 # See if GNU ld supports shared libraries. 9452 case $host_os in 9453 aix[3-9]*) 9454 # On AIX/PPC, the GNU linker is very broken 9455 if test "$host_cpu" != ia64; then 9456 ld_shlibs=no 9457 cat <<_LT_EOF 1>&2 9458 9459*** Warning: the GNU linker, at least up to release 2.19, is reported 9460*** to be unable to reliably create shared libraries on AIX. 9461*** Therefore, libtool is disabling shared libraries support. If you 9462*** really care for shared libraries, you may want to install binutils 9463*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9464*** You will then need to restart the configuration process. 9465 9466_LT_EOF 9467 fi 9468 ;; 9469 9470 amigaos*) 9471 case $host_cpu in 9472 powerpc) 9473 # see comment about AmigaOS4 .so support 9474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9475 archive_expsym_cmds='' 9476 ;; 9477 m68k) 9478 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)' 9479 hardcode_libdir_flag_spec='-L$libdir' 9480 hardcode_minus_L=yes 9481 ;; 9482 esac 9483 ;; 9484 9485 beos*) 9486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9487 allow_undefined_flag=unsupported 9488 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9489 # support --undefined. This deserves some investigation. FIXME 9490 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9491 else 9492 ld_shlibs=no 9493 fi 9494 ;; 9495 9496 cygwin* | mingw* | pw32* | cegcc*) 9497 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9498 # as there is no search path for DLLs. 9499 hardcode_libdir_flag_spec='-L$libdir' 9500 export_dynamic_flag_spec='${wl}--export-all-symbols' 9501 allow_undefined_flag=unsupported 9502 always_export_symbols=no 9503 enable_shared_with_static_runtimes=yes 9504 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' 9505 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9506 9507 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9509 # If the export-symbols file already is a .def file (1st line 9510 # is EXPORTS), use it as is; otherwise, prepend... 9511 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9512 cp $export_symbols $output_objdir/$soname.def; 9513 else 9514 echo EXPORTS > $output_objdir/$soname.def; 9515 cat $export_symbols >> $output_objdir/$soname.def; 9516 fi~ 9517 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9518 else 9519 ld_shlibs=no 9520 fi 9521 ;; 9522 9523 haiku*) 9524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9525 link_all_deplibs=yes 9526 ;; 9527 9528 interix[3-9]*) 9529 hardcode_direct=no 9530 hardcode_shlibpath_var=no 9531 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9532 export_dynamic_flag_spec='${wl}-E' 9533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9534 # Instead, shared libraries are loaded at an image base (0x10000000 by 9535 # default) and relocated if they conflict, which is a slow very memory 9536 # consuming and fragmenting process. To avoid this, we pick a random, 9537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9538 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9539 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9540 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' 9541 ;; 9542 9543 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9544 tmp_diet=no 9545 if test "$host_os" = linux-dietlibc; then 9546 case $cc_basename in 9547 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9548 esac 9549 fi 9550 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9551 && test "$tmp_diet" = no 9552 then 9553 tmp_addflag=' $pic_flag' 9554 tmp_sharedflag='-shared' 9555 case $cc_basename,$host_cpu in 9556 pgcc*) # Portland Group C compiler 9557 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' 9558 tmp_addflag=' $pic_flag' 9559 ;; 9560 pgf77* | pgf90* | pgf95* | pgfortran*) 9561 # Portland Group f77 and f90 compilers 9562 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' 9563 tmp_addflag=' $pic_flag -Mnomain' ;; 9564 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9565 tmp_addflag=' -i_dynamic' ;; 9566 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9567 tmp_addflag=' -i_dynamic -nofor_main' ;; 9568 ifc* | ifort*) # Intel Fortran compiler 9569 tmp_addflag=' -nofor_main' ;; 9570 lf95*) # Lahey Fortran 8.1 9571 whole_archive_flag_spec= 9572 tmp_sharedflag='--shared' ;; 9573 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9574 tmp_sharedflag='-qmkshrobj' 9575 tmp_addflag= ;; 9576 nvcc*) # Cuda Compiler Driver 2.2 9577 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' 9578 compiler_needs_object=yes 9579 ;; 9580 esac 9581 case `$CC -V 2>&1 | sed 5q` in 9582 *Sun\ C*) # Sun C 5.9 9583 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' 9584 compiler_needs_object=yes 9585 tmp_sharedflag='-G' ;; 9586 *Sun\ F*) # Sun Fortran 8.3 9587 tmp_sharedflag='-G' ;; 9588 esac 9589 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9590 9591 if test "x$supports_anon_versioning" = xyes; then 9592 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9593 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9594 echo "local: *; };" >> $output_objdir/$libname.ver~ 9595 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9596 fi 9597 9598 case $cc_basename in 9599 xlf* | bgf* | bgxlf* | mpixlf*) 9600 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9601 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9603 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9604 if test "x$supports_anon_versioning" = xyes; then 9605 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9606 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9607 echo "local: *; };" >> $output_objdir/$libname.ver~ 9608 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9609 fi 9610 ;; 9611 esac 9612 else 9613 ld_shlibs=no 9614 fi 9615 ;; 9616 9617 netbsd* | netbsdelf*-gnu) 9618 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9619 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9620 wlarc= 9621 else 9622 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9623 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9624 fi 9625 ;; 9626 9627 solaris*) 9628 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9629 ld_shlibs=no 9630 cat <<_LT_EOF 1>&2 9631 9632*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9633*** create shared libraries on Solaris systems. Therefore, libtool 9634*** is disabling shared libraries support. We urge you to upgrade GNU 9635*** binutils to release 2.9.1 or newer. Another option is to modify 9636*** your PATH or compiler configuration so that the native linker is 9637*** used, and then restart. 9638 9639_LT_EOF 9640 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9641 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9642 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9643 else 9644 ld_shlibs=no 9645 fi 9646 ;; 9647 9648 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9649 case `$LD -v 2>&1` in 9650 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9651 ld_shlibs=no 9652 cat <<_LT_EOF 1>&2 9653 9654*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9655*** reliably create shared libraries on SCO systems. Therefore, libtool 9656*** is disabling shared libraries support. We urge you to upgrade GNU 9657*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9658*** your PATH or compiler configuration so that the native linker is 9659*** used, and then restart. 9660 9661_LT_EOF 9662 ;; 9663 *) 9664 # For security reasons, it is highly recommended that you always 9665 # use absolute paths for naming shared libraries, and exclude the 9666 # DT_RUNPATH tag from executables and libraries. But doing so 9667 # requires that you compile everything twice, which is a pain. 9668 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9671 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9672 else 9673 ld_shlibs=no 9674 fi 9675 ;; 9676 esac 9677 ;; 9678 9679 sunos4*) 9680 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9681 wlarc= 9682 hardcode_direct=yes 9683 hardcode_shlibpath_var=no 9684 ;; 9685 9686 *) 9687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9688 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9689 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9690 else 9691 ld_shlibs=no 9692 fi 9693 ;; 9694 esac 9695 9696 if test "$ld_shlibs" = no; then 9697 runpath_var= 9698 hardcode_libdir_flag_spec= 9699 export_dynamic_flag_spec= 9700 whole_archive_flag_spec= 9701 fi 9702 else 9703 # PORTME fill in a description of your system's linker (not GNU ld) 9704 case $host_os in 9705 aix3*) 9706 allow_undefined_flag=unsupported 9707 always_export_symbols=yes 9708 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' 9709 # Note: this linker hardcodes the directories in LIBPATH if there 9710 # are no directories specified by -L. 9711 hardcode_minus_L=yes 9712 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9713 # Neither direct hardcoding nor static linking is supported with a 9714 # broken collect2. 9715 hardcode_direct=unsupported 9716 fi 9717 ;; 9718 9719 aix[4-9]*) 9720 if test "$host_cpu" = ia64; then 9721 # On IA64, the linker does run time linking by default, so we don't 9722 # have to do anything special. 9723 aix_use_runtimelinking=no 9724 exp_sym_flag='-Bexport' 9725 no_entry_flag="" 9726 else 9727 # If we're using GNU nm, then we don't want the "-C" option. 9728 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9729 # Also, AIX nm treats weak defined symbols like other global 9730 # defined symbols, whereas GNU nm marks them as "W". 9731 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9732 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9733 else 9734 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9735 fi 9736 aix_use_runtimelinking=no 9737 9738 # Test if we are trying to use run time linking or normal 9739 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9740 # need to do runtime linking. 9741 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9742 for ld_flag in $LDFLAGS; do 9743 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9744 aix_use_runtimelinking=yes 9745 break 9746 fi 9747 done 9748 ;; 9749 esac 9750 9751 exp_sym_flag='-bexport' 9752 no_entry_flag='-bnoentry' 9753 fi 9754 9755 # When large executables or shared objects are built, AIX ld can 9756 # have problems creating the table of contents. If linking a library 9757 # or program results in "error TOC overflow" add -mminimal-toc to 9758 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9759 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9760 9761 archive_cmds='' 9762 hardcode_direct=yes 9763 hardcode_direct_absolute=yes 9764 hardcode_libdir_separator=':' 9765 link_all_deplibs=yes 9766 file_list_spec='${wl}-f,' 9767 9768 if test "$GCC" = yes; then 9769 case $host_os in aix4.[012]|aix4.[012].*) 9770 # We only want to do this on AIX 4.2 and lower, the check 9771 # below for broken collect2 doesn't work under 4.3+ 9772 collect2name=`${CC} -print-prog-name=collect2` 9773 if test -f "$collect2name" && 9774 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9775 then 9776 # We have reworked collect2 9777 : 9778 else 9779 # We have old collect2 9780 hardcode_direct=unsupported 9781 # It fails to find uninstalled libraries when the uninstalled 9782 # path is not listed in the libpath. Setting hardcode_minus_L 9783 # to unsupported forces relinking 9784 hardcode_minus_L=yes 9785 hardcode_libdir_flag_spec='-L$libdir' 9786 hardcode_libdir_separator= 9787 fi 9788 ;; 9789 esac 9790 shared_flag='-shared' 9791 if test "$aix_use_runtimelinking" = yes; then 9792 shared_flag="$shared_flag "'${wl}-G' 9793 fi 9794 link_all_deplibs=no 9795 else 9796 # not using gcc 9797 if test "$host_cpu" = ia64; then 9798 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9799 # chokes on -Wl,-G. The following line is correct: 9800 shared_flag='-G' 9801 else 9802 if test "$aix_use_runtimelinking" = yes; then 9803 shared_flag='${wl}-G' 9804 else 9805 shared_flag='${wl}-bM:SRE' 9806 fi 9807 fi 9808 fi 9809 9810 export_dynamic_flag_spec='${wl}-bexpall' 9811 # It seems that -bexpall does not export symbols beginning with 9812 # underscore (_), so it is better to generate a list of symbols to export. 9813 always_export_symbols=yes 9814 if test "$aix_use_runtimelinking" = yes; then 9815 # Warning - without using the other runtime loading flags (-brtl), 9816 # -berok will link without error, but may produce a broken library. 9817 allow_undefined_flag='-berok' 9818 # Determine the default libpath from the value encoded in an 9819 # empty executable. 9820 if test "${lt_cv_aix_libpath+set}" = set; then 9821 aix_libpath=$lt_cv_aix_libpath 9822else 9823 if ${lt_cv_aix_libpath_+:} false; then : 9824 $as_echo_n "(cached) " >&6 9825else 9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9827/* end confdefs.h. */ 9828 9829int 9830main () 9831{ 9832 9833 ; 9834 return 0; 9835} 9836_ACEOF 9837if ac_fn_c_try_link "$LINENO"; then : 9838 9839 lt_aix_libpath_sed=' 9840 /Import File Strings/,/^$/ { 9841 /^0/ { 9842 s/^0 *\([^ ]*\) *$/\1/ 9843 p 9844 } 9845 }' 9846 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9847 # Check for a 64-bit object if we didn't find anything. 9848 if test -z "$lt_cv_aix_libpath_"; then 9849 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9850 fi 9851fi 9852rm -f core conftest.err conftest.$ac_objext \ 9853 conftest$ac_exeext conftest.$ac_ext 9854 if test -z "$lt_cv_aix_libpath_"; then 9855 lt_cv_aix_libpath_="/usr/lib:/lib" 9856 fi 9857 9858fi 9859 9860 aix_libpath=$lt_cv_aix_libpath_ 9861fi 9862 9863 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9864 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9865 else 9866 if test "$host_cpu" = ia64; then 9867 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9868 allow_undefined_flag="-z nodefs" 9869 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" 9870 else 9871 # Determine the default libpath from the value encoded in an 9872 # empty executable. 9873 if test "${lt_cv_aix_libpath+set}" = set; then 9874 aix_libpath=$lt_cv_aix_libpath 9875else 9876 if ${lt_cv_aix_libpath_+:} false; then : 9877 $as_echo_n "(cached) " >&6 9878else 9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9880/* end confdefs.h. */ 9881 9882int 9883main () 9884{ 9885 9886 ; 9887 return 0; 9888} 9889_ACEOF 9890if ac_fn_c_try_link "$LINENO"; then : 9891 9892 lt_aix_libpath_sed=' 9893 /Import File Strings/,/^$/ { 9894 /^0/ { 9895 s/^0 *\([^ ]*\) *$/\1/ 9896 p 9897 } 9898 }' 9899 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9900 # Check for a 64-bit object if we didn't find anything. 9901 if test -z "$lt_cv_aix_libpath_"; then 9902 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9903 fi 9904fi 9905rm -f core conftest.err conftest.$ac_objext \ 9906 conftest$ac_exeext conftest.$ac_ext 9907 if test -z "$lt_cv_aix_libpath_"; then 9908 lt_cv_aix_libpath_="/usr/lib:/lib" 9909 fi 9910 9911fi 9912 9913 aix_libpath=$lt_cv_aix_libpath_ 9914fi 9915 9916 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9917 # Warning - without using the other run time loading flags, 9918 # -berok will link without error, but may produce a broken library. 9919 no_undefined_flag=' ${wl}-bernotok' 9920 allow_undefined_flag=' ${wl}-berok' 9921 if test "$with_gnu_ld" = yes; then 9922 # We only use this code for GNU lds that support --whole-archive. 9923 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9924 else 9925 # Exported symbols can be pulled into shared objects from archives 9926 whole_archive_flag_spec='$convenience' 9927 fi 9928 archive_cmds_need_lc=yes 9929 # This is similar to how AIX traditionally builds its shared libraries. 9930 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9931 fi 9932 fi 9933 ;; 9934 9935 amigaos*) 9936 case $host_cpu in 9937 powerpc) 9938 # see comment about AmigaOS4 .so support 9939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9940 archive_expsym_cmds='' 9941 ;; 9942 m68k) 9943 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)' 9944 hardcode_libdir_flag_spec='-L$libdir' 9945 hardcode_minus_L=yes 9946 ;; 9947 esac 9948 ;; 9949 9950 bsdi[45]*) 9951 export_dynamic_flag_spec=-rdynamic 9952 ;; 9953 9954 cygwin* | mingw* | pw32* | cegcc*) 9955 # When not using gcc, we currently assume that we are using 9956 # Microsoft Visual C++. 9957 # hardcode_libdir_flag_spec is actually meaningless, as there is 9958 # no search path for DLLs. 9959 case $cc_basename in 9960 cl*) 9961 # Native MSVC 9962 hardcode_libdir_flag_spec=' ' 9963 allow_undefined_flag=unsupported 9964 always_export_symbols=yes 9965 file_list_spec='@' 9966 # Tell ltmain to make .lib files, not .a files. 9967 libext=lib 9968 # Tell ltmain to make .dll files, not .so files. 9969 shrext_cmds=".dll" 9970 # FIXME: Setting linknames here is a bad hack. 9971 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9972 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9973 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9974 else 9975 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9976 fi~ 9977 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9978 linknames=' 9979 # The linker will not automatically build a static lib if we build a DLL. 9980 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9981 enable_shared_with_static_runtimes=yes 9982 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9983 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9984 # Don't use ranlib 9985 old_postinstall_cmds='chmod 644 $oldlib' 9986 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9987 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9988 case $lt_outputfile in 9989 *.exe|*.EXE) ;; 9990 *) 9991 lt_outputfile="$lt_outputfile.exe" 9992 lt_tool_outputfile="$lt_tool_outputfile.exe" 9993 ;; 9994 esac~ 9995 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9996 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9997 $RM "$lt_outputfile.manifest"; 9998 fi' 9999 ;; 10000 *) 10001 # Assume MSVC wrapper 10002 hardcode_libdir_flag_spec=' ' 10003 allow_undefined_flag=unsupported 10004 # Tell ltmain to make .lib files, not .a files. 10005 libext=lib 10006 # Tell ltmain to make .dll files, not .so files. 10007 shrext_cmds=".dll" 10008 # FIXME: Setting linknames here is a bad hack. 10009 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10010 # The linker will automatically build a .lib file if we build a DLL. 10011 old_archive_from_new_cmds='true' 10012 # FIXME: Should let the user specify the lib program. 10013 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10014 enable_shared_with_static_runtimes=yes 10015 ;; 10016 esac 10017 ;; 10018 10019 darwin* | rhapsody*) 10020 10021 10022 archive_cmds_need_lc=no 10023 hardcode_direct=no 10024 hardcode_automatic=yes 10025 hardcode_shlibpath_var=unsupported 10026 if test "$lt_cv_ld_force_load" = "yes"; then 10027 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\"`' 10028 10029 else 10030 whole_archive_flag_spec='' 10031 fi 10032 link_all_deplibs=yes 10033 allow_undefined_flag="$_lt_dar_allow_undefined" 10034 case $cc_basename in 10035 ifort*) _lt_dar_can_shared=yes ;; 10036 *) _lt_dar_can_shared=$GCC ;; 10037 esac 10038 if test "$_lt_dar_can_shared" = "yes"; then 10039 output_verbose_link_cmd=func_echo_all 10040 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10041 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10042 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}" 10043 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}" 10044 10045 else 10046 ld_shlibs=no 10047 fi 10048 10049 ;; 10050 10051 dgux*) 10052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10053 hardcode_libdir_flag_spec='-L$libdir' 10054 hardcode_shlibpath_var=no 10055 ;; 10056 10057 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10058 # support. Future versions do this automatically, but an explicit c++rt0.o 10059 # does not break anything, and helps significantly (at the cost of a little 10060 # extra space). 10061 freebsd2.2*) 10062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10063 hardcode_libdir_flag_spec='-R$libdir' 10064 hardcode_direct=yes 10065 hardcode_shlibpath_var=no 10066 ;; 10067 10068 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10069 freebsd2.*) 10070 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10071 hardcode_direct=yes 10072 hardcode_minus_L=yes 10073 hardcode_shlibpath_var=no 10074 ;; 10075 10076 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10077 freebsd* | dragonfly*) 10078 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10079 hardcode_libdir_flag_spec='-R$libdir' 10080 hardcode_direct=yes 10081 hardcode_shlibpath_var=no 10082 ;; 10083 10084 hpux9*) 10085 if test "$GCC" = yes; then 10086 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10087 else 10088 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10089 fi 10090 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10091 hardcode_libdir_separator=: 10092 hardcode_direct=yes 10093 10094 # hardcode_minus_L: Not really in the search PATH, 10095 # but as the default location of the library. 10096 hardcode_minus_L=yes 10097 export_dynamic_flag_spec='${wl}-E' 10098 ;; 10099 10100 hpux10*) 10101 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10102 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10103 else 10104 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10105 fi 10106 if test "$with_gnu_ld" = no; then 10107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10108 hardcode_libdir_separator=: 10109 hardcode_direct=yes 10110 hardcode_direct_absolute=yes 10111 export_dynamic_flag_spec='${wl}-E' 10112 # hardcode_minus_L: Not really in the search PATH, 10113 # but as the default location of the library. 10114 hardcode_minus_L=yes 10115 fi 10116 ;; 10117 10118 hpux11*) 10119 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10120 case $host_cpu in 10121 hppa*64*) 10122 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10123 ;; 10124 ia64*) 10125 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10126 ;; 10127 *) 10128 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10129 ;; 10130 esac 10131 else 10132 case $host_cpu in 10133 hppa*64*) 10134 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10135 ;; 10136 ia64*) 10137 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10138 ;; 10139 *) 10140 10141 # Older versions of the 11.00 compiler do not understand -b yet 10142 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10144$as_echo_n "checking if $CC understands -b... " >&6; } 10145if ${lt_cv_prog_compiler__b+:} false; then : 10146 $as_echo_n "(cached) " >&6 10147else 10148 lt_cv_prog_compiler__b=no 10149 save_LDFLAGS="$LDFLAGS" 10150 LDFLAGS="$LDFLAGS -b" 10151 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10152 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10153 # The linker can only warn and ignore the option if not recognized 10154 # So say no if there are warnings 10155 if test -s conftest.err; then 10156 # Append any errors to the config.log. 10157 cat conftest.err 1>&5 10158 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10160 if diff conftest.exp conftest.er2 >/dev/null; then 10161 lt_cv_prog_compiler__b=yes 10162 fi 10163 else 10164 lt_cv_prog_compiler__b=yes 10165 fi 10166 fi 10167 $RM -r conftest* 10168 LDFLAGS="$save_LDFLAGS" 10169 10170fi 10171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10172$as_echo "$lt_cv_prog_compiler__b" >&6; } 10173 10174if test x"$lt_cv_prog_compiler__b" = xyes; then 10175 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10176else 10177 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10178fi 10179 10180 ;; 10181 esac 10182 fi 10183 if test "$with_gnu_ld" = no; then 10184 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10185 hardcode_libdir_separator=: 10186 10187 case $host_cpu in 10188 hppa*64*|ia64*) 10189 hardcode_direct=no 10190 hardcode_shlibpath_var=no 10191 ;; 10192 *) 10193 hardcode_direct=yes 10194 hardcode_direct_absolute=yes 10195 export_dynamic_flag_spec='${wl}-E' 10196 10197 # hardcode_minus_L: Not really in the search PATH, 10198 # but as the default location of the library. 10199 hardcode_minus_L=yes 10200 ;; 10201 esac 10202 fi 10203 ;; 10204 10205 irix5* | irix6* | nonstopux*) 10206 if test "$GCC" = yes; then 10207 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' 10208 # Try to use the -exported_symbol ld option, if it does not 10209 # work, assume that -exports_file does not work either and 10210 # implicitly export all symbols. 10211 # This should be the same for all languages, so no per-tag cache variable. 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10213$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10214if ${lt_cv_irix_exported_symbol+:} false; then : 10215 $as_echo_n "(cached) " >&6 10216else 10217 save_LDFLAGS="$LDFLAGS" 10218 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10220/* end confdefs.h. */ 10221int foo (void) { return 0; } 10222_ACEOF 10223if ac_fn_c_try_link "$LINENO"; then : 10224 lt_cv_irix_exported_symbol=yes 10225else 10226 lt_cv_irix_exported_symbol=no 10227fi 10228rm -f core conftest.err conftest.$ac_objext \ 10229 conftest$ac_exeext conftest.$ac_ext 10230 LDFLAGS="$save_LDFLAGS" 10231fi 10232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10233$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10234 if test "$lt_cv_irix_exported_symbol" = yes; then 10235 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' 10236 fi 10237 else 10238 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' 10239 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' 10240 fi 10241 archive_cmds_need_lc='no' 10242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10243 hardcode_libdir_separator=: 10244 inherit_rpath=yes 10245 link_all_deplibs=yes 10246 ;; 10247 10248 netbsd* | netbsdelf*-gnu) 10249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10250 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10251 else 10252 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10253 fi 10254 hardcode_libdir_flag_spec='-R$libdir' 10255 hardcode_direct=yes 10256 hardcode_shlibpath_var=no 10257 ;; 10258 10259 newsos6) 10260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10261 hardcode_direct=yes 10262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10263 hardcode_libdir_separator=: 10264 hardcode_shlibpath_var=no 10265 ;; 10266 10267 *nto* | *qnx*) 10268 ;; 10269 10270 openbsd*) 10271 if test -f /usr/libexec/ld.so; then 10272 hardcode_direct=yes 10273 hardcode_shlibpath_var=no 10274 hardcode_direct_absolute=yes 10275 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10276 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10277 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10278 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10279 export_dynamic_flag_spec='${wl}-E' 10280 else 10281 case $host_os in 10282 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10284 hardcode_libdir_flag_spec='-R$libdir' 10285 ;; 10286 *) 10287 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10288 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10289 ;; 10290 esac 10291 fi 10292 else 10293 ld_shlibs=no 10294 fi 10295 ;; 10296 10297 os2*) 10298 hardcode_libdir_flag_spec='-L$libdir' 10299 hardcode_minus_L=yes 10300 allow_undefined_flag=unsupported 10301 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10302 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10303 ;; 10304 10305 osf3*) 10306 if test "$GCC" = yes; then 10307 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10308 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' 10309 else 10310 allow_undefined_flag=' -expect_unresolved \*' 10311 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' 10312 fi 10313 archive_cmds_need_lc='no' 10314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10315 hardcode_libdir_separator=: 10316 ;; 10317 10318 osf4* | osf5*) # as osf3* with the addition of -msym flag 10319 if test "$GCC" = yes; then 10320 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10321 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' 10322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10323 else 10324 allow_undefined_flag=' -expect_unresolved \*' 10325 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' 10326 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~ 10327 $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' 10328 10329 # Both c and cxx compiler support -rpath directly 10330 hardcode_libdir_flag_spec='-rpath $libdir' 10331 fi 10332 archive_cmds_need_lc='no' 10333 hardcode_libdir_separator=: 10334 ;; 10335 10336 solaris*) 10337 no_undefined_flag=' -z defs' 10338 if test "$GCC" = yes; then 10339 wlarc='${wl}' 10340 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10341 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10342 $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' 10343 else 10344 case `$CC -V 2>&1` in 10345 *"Compilers 5.0"*) 10346 wlarc='' 10347 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10348 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10349 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10350 ;; 10351 *) 10352 wlarc='${wl}' 10353 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10354 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10355 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10356 ;; 10357 esac 10358 fi 10359 hardcode_libdir_flag_spec='-R$libdir' 10360 hardcode_shlibpath_var=no 10361 case $host_os in 10362 solaris2.[0-5] | solaris2.[0-5].*) ;; 10363 *) 10364 # The compiler driver will combine and reorder linker options, 10365 # but understands `-z linker_flag'. GCC discards it without `$wl', 10366 # but is careful enough not to reorder. 10367 # Supported since Solaris 2.6 (maybe 2.5.1?) 10368 if test "$GCC" = yes; then 10369 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10370 else 10371 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10372 fi 10373 ;; 10374 esac 10375 link_all_deplibs=yes 10376 ;; 10377 10378 sunos4*) 10379 if test "x$host_vendor" = xsequent; then 10380 # Use $CC to link under sequent, because it throws in some extra .o 10381 # files that make .init and .fini sections work. 10382 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10383 else 10384 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10385 fi 10386 hardcode_libdir_flag_spec='-L$libdir' 10387 hardcode_direct=yes 10388 hardcode_minus_L=yes 10389 hardcode_shlibpath_var=no 10390 ;; 10391 10392 sysv4) 10393 case $host_vendor in 10394 sni) 10395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10396 hardcode_direct=yes # is this really true??? 10397 ;; 10398 siemens) 10399 ## LD is ld it makes a PLAMLIB 10400 ## CC just makes a GrossModule. 10401 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10402 reload_cmds='$CC -r -o $output$reload_objs' 10403 hardcode_direct=no 10404 ;; 10405 motorola) 10406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10407 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10408 ;; 10409 esac 10410 runpath_var='LD_RUN_PATH' 10411 hardcode_shlibpath_var=no 10412 ;; 10413 10414 sysv4.3*) 10415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10416 hardcode_shlibpath_var=no 10417 export_dynamic_flag_spec='-Bexport' 10418 ;; 10419 10420 sysv4*MP*) 10421 if test -d /usr/nec; then 10422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10423 hardcode_shlibpath_var=no 10424 runpath_var=LD_RUN_PATH 10425 hardcode_runpath_var=yes 10426 ld_shlibs=yes 10427 fi 10428 ;; 10429 10430 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10431 no_undefined_flag='${wl}-z,text' 10432 archive_cmds_need_lc=no 10433 hardcode_shlibpath_var=no 10434 runpath_var='LD_RUN_PATH' 10435 10436 if test "$GCC" = yes; then 10437 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10438 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10439 else 10440 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10441 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10442 fi 10443 ;; 10444 10445 sysv5* | sco3.2v5* | sco5v6*) 10446 # Note: We can NOT use -z defs as we might desire, because we do not 10447 # link with -lc, and that would cause any symbols used from libc to 10448 # always be unresolved, which means just about no library would 10449 # ever link correctly. If we're not using GNU ld we use -z text 10450 # though, which does catch some bad symbols but isn't as heavy-handed 10451 # as -z defs. 10452 no_undefined_flag='${wl}-z,text' 10453 allow_undefined_flag='${wl}-z,nodefs' 10454 archive_cmds_need_lc=no 10455 hardcode_shlibpath_var=no 10456 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10457 hardcode_libdir_separator=':' 10458 link_all_deplibs=yes 10459 export_dynamic_flag_spec='${wl}-Bexport' 10460 runpath_var='LD_RUN_PATH' 10461 10462 if test "$GCC" = yes; then 10463 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10464 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10465 else 10466 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10467 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10468 fi 10469 ;; 10470 10471 uts4*) 10472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10473 hardcode_libdir_flag_spec='-L$libdir' 10474 hardcode_shlibpath_var=no 10475 ;; 10476 10477 *) 10478 ld_shlibs=no 10479 ;; 10480 esac 10481 10482 if test x$host_vendor = xsni; then 10483 case $host in 10484 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10485 export_dynamic_flag_spec='${wl}-Blargedynsym' 10486 ;; 10487 esac 10488 fi 10489 fi 10490 10491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10492$as_echo "$ld_shlibs" >&6; } 10493test "$ld_shlibs" = no && can_build_shared=no 10494 10495with_gnu_ld=$with_gnu_ld 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511# 10512# Do we need to explicitly link libc? 10513# 10514case "x$archive_cmds_need_lc" in 10515x|xyes) 10516 # Assume -lc should be added 10517 archive_cmds_need_lc=yes 10518 10519 if test "$enable_shared" = yes && test "$GCC" = yes; then 10520 case $archive_cmds in 10521 *'~'*) 10522 # FIXME: we may have to deal with multi-command sequences. 10523 ;; 10524 '$CC '*) 10525 # Test whether the compiler implicitly links with -lc since on some 10526 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10527 # to ld, don't add -lc before -lgcc. 10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10529$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10530if ${lt_cv_archive_cmds_need_lc+:} false; then : 10531 $as_echo_n "(cached) " >&6 10532else 10533 $RM conftest* 10534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10535 10536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10537 (eval $ac_compile) 2>&5 10538 ac_status=$? 10539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10540 test $ac_status = 0; } 2>conftest.err; then 10541 soname=conftest 10542 lib=conftest 10543 libobjs=conftest.$ac_objext 10544 deplibs= 10545 wl=$lt_prog_compiler_wl 10546 pic_flag=$lt_prog_compiler_pic 10547 compiler_flags=-v 10548 linker_flags=-v 10549 verstring= 10550 output_objdir=. 10551 libname=conftest 10552 lt_save_allow_undefined_flag=$allow_undefined_flag 10553 allow_undefined_flag= 10554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10555 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10556 ac_status=$? 10557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10558 test $ac_status = 0; } 10559 then 10560 lt_cv_archive_cmds_need_lc=no 10561 else 10562 lt_cv_archive_cmds_need_lc=yes 10563 fi 10564 allow_undefined_flag=$lt_save_allow_undefined_flag 10565 else 10566 cat conftest.err 1>&5 10567 fi 10568 $RM conftest* 10569 10570fi 10571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10572$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10573 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10574 ;; 10575 esac 10576 fi 10577 ;; 10578esac 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10732$as_echo_n "checking dynamic linker characteristics... " >&6; } 10733 10734if test "$GCC" = yes; then 10735 case $host_os in 10736 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10737 *) lt_awk_arg="/^libraries:/" ;; 10738 esac 10739 case $host_os in 10740 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10741 *) lt_sed_strip_eq="s,=/,/,g" ;; 10742 esac 10743 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10744 case $lt_search_path_spec in 10745 *\;*) 10746 # if the path contains ";" then we assume it to be the separator 10747 # otherwise default to the standard path separator (i.e. ":") - it is 10748 # assumed that no part of a normal pathname contains ";" but that should 10749 # okay in the real world where ";" in dirpaths is itself problematic. 10750 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10751 ;; 10752 *) 10753 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10754 ;; 10755 esac 10756 # Ok, now we have the path, separated by spaces, we can step through it 10757 # and add multilib dir if necessary. 10758 lt_tmp_lt_search_path_spec= 10759 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10760 for lt_sys_path in $lt_search_path_spec; do 10761 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10762 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10763 else 10764 test -d "$lt_sys_path" && \ 10765 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10766 fi 10767 done 10768 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10769BEGIN {RS=" "; FS="/|\n";} { 10770 lt_foo=""; 10771 lt_count=0; 10772 for (lt_i = NF; lt_i > 0; lt_i--) { 10773 if ($lt_i != "" && $lt_i != ".") { 10774 if ($lt_i == "..") { 10775 lt_count++; 10776 } else { 10777 if (lt_count == 0) { 10778 lt_foo="/" $lt_i lt_foo; 10779 } else { 10780 lt_count--; 10781 } 10782 } 10783 } 10784 } 10785 if (lt_foo != "") { lt_freq[lt_foo]++; } 10786 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10787}'` 10788 # AWK program above erroneously prepends '/' to C:/dos/paths 10789 # for these hosts. 10790 case $host_os in 10791 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10792 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10793 esac 10794 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10795else 10796 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10797fi 10798library_names_spec= 10799libname_spec='lib$name' 10800soname_spec= 10801shrext_cmds=".so" 10802postinstall_cmds= 10803postuninstall_cmds= 10804finish_cmds= 10805finish_eval= 10806shlibpath_var= 10807shlibpath_overrides_runpath=unknown 10808version_type=none 10809dynamic_linker="$host_os ld.so" 10810sys_lib_dlsearch_path_spec="/lib /usr/lib" 10811need_lib_prefix=unknown 10812hardcode_into_libs=no 10813 10814# when you set need_version to no, make sure it does not cause -set_version 10815# flags to be left without arguments 10816need_version=unknown 10817 10818case $host_os in 10819aix3*) 10820 version_type=linux # correct to gnu/linux during the next big refactor 10821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10822 shlibpath_var=LIBPATH 10823 10824 # AIX 3 has no versioning support, so we append a major version to the name. 10825 soname_spec='${libname}${release}${shared_ext}$major' 10826 ;; 10827 10828aix[4-9]*) 10829 version_type=linux # correct to gnu/linux during the next big refactor 10830 need_lib_prefix=no 10831 need_version=no 10832 hardcode_into_libs=yes 10833 if test "$host_cpu" = ia64; then 10834 # AIX 5 supports IA64 10835 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10836 shlibpath_var=LD_LIBRARY_PATH 10837 else 10838 # With GCC up to 2.95.x, collect2 would create an import file 10839 # for dependence libraries. The import file would start with 10840 # the line `#! .'. This would cause the generated library to 10841 # depend on `.', always an invalid library. This was fixed in 10842 # development snapshots of GCC prior to 3.0. 10843 case $host_os in 10844 aix4 | aix4.[01] | aix4.[01].*) 10845 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10846 echo ' yes ' 10847 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10848 : 10849 else 10850 can_build_shared=no 10851 fi 10852 ;; 10853 esac 10854 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10855 # soname into executable. Probably we can add versioning support to 10856 # collect2, so additional links can be useful in future. 10857 if test "$aix_use_runtimelinking" = yes; then 10858 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10859 # instead of lib<name>.a to let people know that these are not 10860 # typical AIX shared libraries. 10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10862 else 10863 # We preserve .a as extension for shared libraries through AIX4.2 10864 # and later when we are not doing run time linking. 10865 library_names_spec='${libname}${release}.a $libname.a' 10866 soname_spec='${libname}${release}${shared_ext}$major' 10867 fi 10868 shlibpath_var=LIBPATH 10869 fi 10870 ;; 10871 10872amigaos*) 10873 case $host_cpu in 10874 powerpc) 10875 # Since July 2007 AmigaOS4 officially supports .so libraries. 10876 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10878 ;; 10879 m68k) 10880 library_names_spec='$libname.ixlibrary $libname.a' 10881 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10882 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 10883 ;; 10884 esac 10885 ;; 10886 10887beos*) 10888 library_names_spec='${libname}${shared_ext}' 10889 dynamic_linker="$host_os ld.so" 10890 shlibpath_var=LIBRARY_PATH 10891 ;; 10892 10893bsdi[45]*) 10894 version_type=linux # correct to gnu/linux during the next big refactor 10895 need_version=no 10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10897 soname_spec='${libname}${release}${shared_ext}$major' 10898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10899 shlibpath_var=LD_LIBRARY_PATH 10900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10902 # the default ld.so.conf also contains /usr/contrib/lib and 10903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10904 # libtool to hard-code these into programs 10905 ;; 10906 10907cygwin* | mingw* | pw32* | cegcc*) 10908 version_type=windows 10909 shrext_cmds=".dll" 10910 need_version=no 10911 need_lib_prefix=no 10912 10913 case $GCC,$cc_basename in 10914 yes,*) 10915 # gcc 10916 library_names_spec='$libname.dll.a' 10917 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10918 postinstall_cmds='base_file=`basename \${file}`~ 10919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10920 dldir=$destdir/`dirname \$dlpath`~ 10921 test -d \$dldir || mkdir -p \$dldir~ 10922 $install_prog $dir/$dlname \$dldir/$dlname~ 10923 chmod a+x \$dldir/$dlname~ 10924 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10925 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10926 fi' 10927 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10928 dlpath=$dir/\$dldll~ 10929 $RM \$dlpath' 10930 shlibpath_overrides_runpath=yes 10931 10932 case $host_os in 10933 cygwin*) 10934 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10935 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10936 10937 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10938 ;; 10939 mingw* | cegcc*) 10940 # MinGW DLLs use traditional 'lib' prefix 10941 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10942 ;; 10943 pw32*) 10944 # pw32 DLLs use 'pw' prefix rather than 'lib' 10945 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10946 ;; 10947 esac 10948 dynamic_linker='Win32 ld.exe' 10949 ;; 10950 10951 *,cl*) 10952 # Native MSVC 10953 libname_spec='$name' 10954 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10955 library_names_spec='${libname}.dll.lib' 10956 10957 case $build_os in 10958 mingw*) 10959 sys_lib_search_path_spec= 10960 lt_save_ifs=$IFS 10961 IFS=';' 10962 for lt_path in $LIB 10963 do 10964 IFS=$lt_save_ifs 10965 # Let DOS variable expansion print the short 8.3 style file name. 10966 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10967 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10968 done 10969 IFS=$lt_save_ifs 10970 # Convert to MSYS style. 10971 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10972 ;; 10973 cygwin*) 10974 # Convert to unix form, then to dos form, then back to unix form 10975 # but this time dos style (no spaces!) so that the unix form looks 10976 # like /cygdrive/c/PROGRA~1:/cygdr... 10977 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10978 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10979 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10980 ;; 10981 *) 10982 sys_lib_search_path_spec="$LIB" 10983 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10984 # It is most probably a Windows format PATH. 10985 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10986 else 10987 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10988 fi 10989 # FIXME: find the short name or the path components, as spaces are 10990 # common. (e.g. "Program Files" -> "PROGRA~1") 10991 ;; 10992 esac 10993 10994 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10995 postinstall_cmds='base_file=`basename \${file}`~ 10996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10997 dldir=$destdir/`dirname \$dlpath`~ 10998 test -d \$dldir || mkdir -p \$dldir~ 10999 $install_prog $dir/$dlname \$dldir/$dlname' 11000 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11001 dlpath=$dir/\$dldll~ 11002 $RM \$dlpath' 11003 shlibpath_overrides_runpath=yes 11004 dynamic_linker='Win32 link.exe' 11005 ;; 11006 11007 *) 11008 # Assume MSVC wrapper 11009 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11010 dynamic_linker='Win32 ld.exe' 11011 ;; 11012 esac 11013 # FIXME: first we should search . and the directory the executable is in 11014 shlibpath_var=PATH 11015 ;; 11016 11017darwin* | rhapsody*) 11018 dynamic_linker="$host_os dyld" 11019 version_type=darwin 11020 need_lib_prefix=no 11021 need_version=no 11022 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11023 soname_spec='${libname}${release}${major}$shared_ext' 11024 shlibpath_overrides_runpath=yes 11025 shlibpath_var=DYLD_LIBRARY_PATH 11026 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11027 11028 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11029 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11030 ;; 11031 11032dgux*) 11033 version_type=linux # correct to gnu/linux during the next big refactor 11034 need_lib_prefix=no 11035 need_version=no 11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11037 soname_spec='${libname}${release}${shared_ext}$major' 11038 shlibpath_var=LD_LIBRARY_PATH 11039 ;; 11040 11041freebsd* | dragonfly*) 11042 # DragonFly does not have aout. When/if they implement a new 11043 # versioning mechanism, adjust this. 11044 if test -x /usr/bin/objformat; then 11045 objformat=`/usr/bin/objformat` 11046 else 11047 case $host_os in 11048 freebsd[23].*) objformat=aout ;; 11049 *) objformat=elf ;; 11050 esac 11051 fi 11052 version_type=freebsd-$objformat 11053 case $version_type in 11054 freebsd-elf*) 11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11056 need_version=no 11057 need_lib_prefix=no 11058 ;; 11059 freebsd-*) 11060 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11061 need_version=yes 11062 ;; 11063 esac 11064 shlibpath_var=LD_LIBRARY_PATH 11065 case $host_os in 11066 freebsd2.*) 11067 shlibpath_overrides_runpath=yes 11068 ;; 11069 freebsd3.[01]* | freebsdelf3.[01]*) 11070 shlibpath_overrides_runpath=yes 11071 hardcode_into_libs=yes 11072 ;; 11073 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11074 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11075 shlibpath_overrides_runpath=no 11076 hardcode_into_libs=yes 11077 ;; 11078 *) # from 4.6 on, and DragonFly 11079 shlibpath_overrides_runpath=yes 11080 hardcode_into_libs=yes 11081 ;; 11082 esac 11083 ;; 11084 11085haiku*) 11086 version_type=linux # correct to gnu/linux during the next big refactor 11087 need_lib_prefix=no 11088 need_version=no 11089 dynamic_linker="$host_os runtime_loader" 11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11091 soname_spec='${libname}${release}${shared_ext}$major' 11092 shlibpath_var=LIBRARY_PATH 11093 shlibpath_overrides_runpath=yes 11094 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11095 hardcode_into_libs=yes 11096 ;; 11097 11098hpux9* | hpux10* | hpux11*) 11099 # Give a soname corresponding to the major version so that dld.sl refuses to 11100 # link against other versions. 11101 version_type=sunos 11102 need_lib_prefix=no 11103 need_version=no 11104 case $host_cpu in 11105 ia64*) 11106 shrext_cmds='.so' 11107 hardcode_into_libs=yes 11108 dynamic_linker="$host_os dld.so" 11109 shlibpath_var=LD_LIBRARY_PATH 11110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11112 soname_spec='${libname}${release}${shared_ext}$major' 11113 if test "X$HPUX_IA64_MODE" = X32; then 11114 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11115 else 11116 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11117 fi 11118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11119 ;; 11120 hppa*64*) 11121 shrext_cmds='.sl' 11122 hardcode_into_libs=yes 11123 dynamic_linker="$host_os dld.sl" 11124 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11125 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11127 soname_spec='${libname}${release}${shared_ext}$major' 11128 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11130 ;; 11131 *) 11132 shrext_cmds='.sl' 11133 dynamic_linker="$host_os dld.sl" 11134 shlibpath_var=SHLIB_PATH 11135 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11137 soname_spec='${libname}${release}${shared_ext}$major' 11138 ;; 11139 esac 11140 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11141 postinstall_cmds='chmod 555 $lib' 11142 # or fails outright, so override atomically: 11143 install_override_mode=555 11144 ;; 11145 11146interix[3-9]*) 11147 version_type=linux # correct to gnu/linux during the next big refactor 11148 need_lib_prefix=no 11149 need_version=no 11150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11151 soname_spec='${libname}${release}${shared_ext}$major' 11152 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11153 shlibpath_var=LD_LIBRARY_PATH 11154 shlibpath_overrides_runpath=no 11155 hardcode_into_libs=yes 11156 ;; 11157 11158irix5* | irix6* | nonstopux*) 11159 case $host_os in 11160 nonstopux*) version_type=nonstopux ;; 11161 *) 11162 if test "$lt_cv_prog_gnu_ld" = yes; then 11163 version_type=linux # correct to gnu/linux during the next big refactor 11164 else 11165 version_type=irix 11166 fi ;; 11167 esac 11168 need_lib_prefix=no 11169 need_version=no 11170 soname_spec='${libname}${release}${shared_ext}$major' 11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11172 case $host_os in 11173 irix5* | nonstopux*) 11174 libsuff= shlibsuff= 11175 ;; 11176 *) 11177 case $LD in # libtool.m4 will add one of these switches to LD 11178 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11179 libsuff= shlibsuff= libmagic=32-bit;; 11180 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11181 libsuff=32 shlibsuff=N32 libmagic=N32;; 11182 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11183 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11184 *) libsuff= shlibsuff= libmagic=never-match;; 11185 esac 11186 ;; 11187 esac 11188 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11189 shlibpath_overrides_runpath=no 11190 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11191 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11192 hardcode_into_libs=yes 11193 ;; 11194 11195# No shared lib support for Linux oldld, aout, or coff. 11196linux*oldld* | linux*aout* | linux*coff*) 11197 dynamic_linker=no 11198 ;; 11199 11200# This must be glibc/ELF. 11201linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11202 version_type=linux # correct to gnu/linux during the next big refactor 11203 need_lib_prefix=no 11204 need_version=no 11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11206 soname_spec='${libname}${release}${shared_ext}$major' 11207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11208 shlibpath_var=LD_LIBRARY_PATH 11209 shlibpath_overrides_runpath=no 11210 11211 # Some binutils ld are patched to set DT_RUNPATH 11212 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11213 $as_echo_n "(cached) " >&6 11214else 11215 lt_cv_shlibpath_overrides_runpath=no 11216 save_LDFLAGS=$LDFLAGS 11217 save_libdir=$libdir 11218 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11219 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11221/* end confdefs.h. */ 11222 11223int 11224main () 11225{ 11226 11227 ; 11228 return 0; 11229} 11230_ACEOF 11231if ac_fn_c_try_link "$LINENO"; then : 11232 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11233 lt_cv_shlibpath_overrides_runpath=yes 11234fi 11235fi 11236rm -f core conftest.err conftest.$ac_objext \ 11237 conftest$ac_exeext conftest.$ac_ext 11238 LDFLAGS=$save_LDFLAGS 11239 libdir=$save_libdir 11240 11241fi 11242 11243 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11244 11245 # This implies no fast_install, which is unacceptable. 11246 # Some rework will be needed to allow for fast_install 11247 # before this can be enabled. 11248 hardcode_into_libs=yes 11249 11250 # Append ld.so.conf contents to the search path 11251 if test -f /etc/ld.so.conf; then 11252 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' ' '` 11253 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11254 fi 11255 11256 # We used to test for /lib/ld.so.1 and disable shared libraries on 11257 # powerpc, because MkLinux only supported shared libraries with the 11258 # GNU dynamic linker. Since this was broken with cross compilers, 11259 # most powerpc-linux boxes support dynamic linking these days and 11260 # people can always --disable-shared, the test was removed, and we 11261 # assume the GNU/Linux dynamic linker is in use. 11262 dynamic_linker='GNU/Linux ld.so' 11263 ;; 11264 11265netbsdelf*-gnu) 11266 version_type=linux 11267 need_lib_prefix=no 11268 need_version=no 11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11270 soname_spec='${libname}${release}${shared_ext}$major' 11271 shlibpath_var=LD_LIBRARY_PATH 11272 shlibpath_overrides_runpath=no 11273 hardcode_into_libs=yes 11274 dynamic_linker='NetBSD ld.elf_so' 11275 ;; 11276 11277netbsd*) 11278 version_type=sunos 11279 need_lib_prefix=no 11280 need_version=no 11281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11284 dynamic_linker='NetBSD (a.out) ld.so' 11285 else 11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11287 soname_spec='${libname}${release}${shared_ext}$major' 11288 dynamic_linker='NetBSD ld.elf_so' 11289 fi 11290 shlibpath_var=LD_LIBRARY_PATH 11291 shlibpath_overrides_runpath=yes 11292 hardcode_into_libs=yes 11293 ;; 11294 11295newsos6) 11296 version_type=linux # correct to gnu/linux during the next big refactor 11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11298 shlibpath_var=LD_LIBRARY_PATH 11299 shlibpath_overrides_runpath=yes 11300 ;; 11301 11302*nto* | *qnx*) 11303 version_type=qnx 11304 need_lib_prefix=no 11305 need_version=no 11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11307 soname_spec='${libname}${release}${shared_ext}$major' 11308 shlibpath_var=LD_LIBRARY_PATH 11309 shlibpath_overrides_runpath=no 11310 hardcode_into_libs=yes 11311 dynamic_linker='ldqnx.so' 11312 ;; 11313 11314openbsd*) 11315 version_type=sunos 11316 sys_lib_dlsearch_path_spec="/usr/lib" 11317 need_lib_prefix=no 11318 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11319 case $host_os in 11320 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11321 *) need_version=no ;; 11322 esac 11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11325 shlibpath_var=LD_LIBRARY_PATH 11326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11327 case $host_os in 11328 openbsd2.[89] | openbsd2.[89].*) 11329 shlibpath_overrides_runpath=no 11330 ;; 11331 *) 11332 shlibpath_overrides_runpath=yes 11333 ;; 11334 esac 11335 else 11336 shlibpath_overrides_runpath=yes 11337 fi 11338 ;; 11339 11340os2*) 11341 libname_spec='$name' 11342 shrext_cmds=".dll" 11343 need_lib_prefix=no 11344 library_names_spec='$libname${shared_ext} $libname.a' 11345 dynamic_linker='OS/2 ld.exe' 11346 shlibpath_var=LIBPATH 11347 ;; 11348 11349osf3* | osf4* | osf5*) 11350 version_type=osf 11351 need_lib_prefix=no 11352 need_version=no 11353 soname_spec='${libname}${release}${shared_ext}$major' 11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11355 shlibpath_var=LD_LIBRARY_PATH 11356 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11357 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11358 ;; 11359 11360rdos*) 11361 dynamic_linker=no 11362 ;; 11363 11364solaris*) 11365 version_type=linux # correct to gnu/linux during the next big refactor 11366 need_lib_prefix=no 11367 need_version=no 11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11369 soname_spec='${libname}${release}${shared_ext}$major' 11370 shlibpath_var=LD_LIBRARY_PATH 11371 shlibpath_overrides_runpath=yes 11372 hardcode_into_libs=yes 11373 # ldd complains unless libraries are executable 11374 postinstall_cmds='chmod +x $lib' 11375 ;; 11376 11377sunos4*) 11378 version_type=sunos 11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11380 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11381 shlibpath_var=LD_LIBRARY_PATH 11382 shlibpath_overrides_runpath=yes 11383 if test "$with_gnu_ld" = yes; then 11384 need_lib_prefix=no 11385 fi 11386 need_version=yes 11387 ;; 11388 11389sysv4 | sysv4.3*) 11390 version_type=linux # correct to gnu/linux during the next big refactor 11391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11392 soname_spec='${libname}${release}${shared_ext}$major' 11393 shlibpath_var=LD_LIBRARY_PATH 11394 case $host_vendor in 11395 sni) 11396 shlibpath_overrides_runpath=no 11397 need_lib_prefix=no 11398 runpath_var=LD_RUN_PATH 11399 ;; 11400 siemens) 11401 need_lib_prefix=no 11402 ;; 11403 motorola) 11404 need_lib_prefix=no 11405 need_version=no 11406 shlibpath_overrides_runpath=no 11407 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11408 ;; 11409 esac 11410 ;; 11411 11412sysv4*MP*) 11413 if test -d /usr/nec ;then 11414 version_type=linux # correct to gnu/linux during the next big refactor 11415 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11416 soname_spec='$libname${shared_ext}.$major' 11417 shlibpath_var=LD_LIBRARY_PATH 11418 fi 11419 ;; 11420 11421sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11422 version_type=freebsd-elf 11423 need_lib_prefix=no 11424 need_version=no 11425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11426 soname_spec='${libname}${release}${shared_ext}$major' 11427 shlibpath_var=LD_LIBRARY_PATH 11428 shlibpath_overrides_runpath=yes 11429 hardcode_into_libs=yes 11430 if test "$with_gnu_ld" = yes; then 11431 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11432 else 11433 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11434 case $host_os in 11435 sco3.2v5*) 11436 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11437 ;; 11438 esac 11439 fi 11440 sys_lib_dlsearch_path_spec='/usr/lib' 11441 ;; 11442 11443tpf*) 11444 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11445 version_type=linux # correct to gnu/linux during the next big refactor 11446 need_lib_prefix=no 11447 need_version=no 11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11449 shlibpath_var=LD_LIBRARY_PATH 11450 shlibpath_overrides_runpath=no 11451 hardcode_into_libs=yes 11452 ;; 11453 11454uts4*) 11455 version_type=linux # correct to gnu/linux during the next big refactor 11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11457 soname_spec='${libname}${release}${shared_ext}$major' 11458 shlibpath_var=LD_LIBRARY_PATH 11459 ;; 11460 11461*) 11462 dynamic_linker=no 11463 ;; 11464esac 11465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11466$as_echo "$dynamic_linker" >&6; } 11467test "$dynamic_linker" = no && can_build_shared=no 11468 11469variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11470if test "$GCC" = yes; then 11471 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11472fi 11473 11474if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11475 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11476fi 11477if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11478 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11479fi 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11573$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11574hardcode_action= 11575if test -n "$hardcode_libdir_flag_spec" || 11576 test -n "$runpath_var" || 11577 test "X$hardcode_automatic" = "Xyes" ; then 11578 11579 # We can hardcode non-existent directories. 11580 if test "$hardcode_direct" != no && 11581 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11582 # have to relink, otherwise we might link with an installed library 11583 # when we should be linking with a yet-to-be-installed one 11584 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11585 test "$hardcode_minus_L" != no; then 11586 # Linking always hardcodes the temporary library directory. 11587 hardcode_action=relink 11588 else 11589 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11590 hardcode_action=immediate 11591 fi 11592else 11593 # We cannot hardcode anything, or else we can only hardcode existing 11594 # directories. 11595 hardcode_action=unsupported 11596fi 11597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11598$as_echo "$hardcode_action" >&6; } 11599 11600if test "$hardcode_action" = relink || 11601 test "$inherit_rpath" = yes; then 11602 # Fast installation is not supported 11603 enable_fast_install=no 11604elif test "$shlibpath_overrides_runpath" = yes || 11605 test "$enable_shared" = no; then 11606 # Fast installation is not necessary 11607 enable_fast_install=needless 11608fi 11609 11610 11611 11612 11613 11614 11615 if test "x$enable_dlopen" != xyes; then 11616 enable_dlopen=unknown 11617 enable_dlopen_self=unknown 11618 enable_dlopen_self_static=unknown 11619else 11620 lt_cv_dlopen=no 11621 lt_cv_dlopen_libs= 11622 11623 case $host_os in 11624 beos*) 11625 lt_cv_dlopen="load_add_on" 11626 lt_cv_dlopen_libs= 11627 lt_cv_dlopen_self=yes 11628 ;; 11629 11630 mingw* | pw32* | cegcc*) 11631 lt_cv_dlopen="LoadLibrary" 11632 lt_cv_dlopen_libs= 11633 ;; 11634 11635 cygwin*) 11636 lt_cv_dlopen="dlopen" 11637 lt_cv_dlopen_libs= 11638 ;; 11639 11640 darwin*) 11641 # if libdl is installed we need to link against it 11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11643$as_echo_n "checking for dlopen in -ldl... " >&6; } 11644if ${ac_cv_lib_dl_dlopen+:} false; then : 11645 $as_echo_n "(cached) " >&6 11646else 11647 ac_check_lib_save_LIBS=$LIBS 11648LIBS="-ldl $LIBS" 11649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11650/* end confdefs.h. */ 11651 11652/* Override any GCC internal prototype to avoid an error. 11653 Use char because int might match the return type of a GCC 11654 builtin and then its argument prototype would still apply. */ 11655#ifdef __cplusplus 11656extern "C" 11657#endif 11658char dlopen (); 11659int 11660main () 11661{ 11662return dlopen (); 11663 ; 11664 return 0; 11665} 11666_ACEOF 11667if ac_fn_c_try_link "$LINENO"; then : 11668 ac_cv_lib_dl_dlopen=yes 11669else 11670 ac_cv_lib_dl_dlopen=no 11671fi 11672rm -f core conftest.err conftest.$ac_objext \ 11673 conftest$ac_exeext conftest.$ac_ext 11674LIBS=$ac_check_lib_save_LIBS 11675fi 11676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11677$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11678if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11679 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11680else 11681 11682 lt_cv_dlopen="dyld" 11683 lt_cv_dlopen_libs= 11684 lt_cv_dlopen_self=yes 11685 11686fi 11687 11688 ;; 11689 11690 *) 11691 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11692if test "x$ac_cv_func_shl_load" = xyes; then : 11693 lt_cv_dlopen="shl_load" 11694else 11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11696$as_echo_n "checking for shl_load in -ldld... " >&6; } 11697if ${ac_cv_lib_dld_shl_load+:} false; then : 11698 $as_echo_n "(cached) " >&6 11699else 11700 ac_check_lib_save_LIBS=$LIBS 11701LIBS="-ldld $LIBS" 11702cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11703/* end confdefs.h. */ 11704 11705/* Override any GCC internal prototype to avoid an error. 11706 Use char because int might match the return type of a GCC 11707 builtin and then its argument prototype would still apply. */ 11708#ifdef __cplusplus 11709extern "C" 11710#endif 11711char shl_load (); 11712int 11713main () 11714{ 11715return shl_load (); 11716 ; 11717 return 0; 11718} 11719_ACEOF 11720if ac_fn_c_try_link "$LINENO"; then : 11721 ac_cv_lib_dld_shl_load=yes 11722else 11723 ac_cv_lib_dld_shl_load=no 11724fi 11725rm -f core conftest.err conftest.$ac_objext \ 11726 conftest$ac_exeext conftest.$ac_ext 11727LIBS=$ac_check_lib_save_LIBS 11728fi 11729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11730$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11731if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11732 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11733else 11734 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11735if test "x$ac_cv_func_dlopen" = xyes; then : 11736 lt_cv_dlopen="dlopen" 11737else 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11739$as_echo_n "checking for dlopen in -ldl... " >&6; } 11740if ${ac_cv_lib_dl_dlopen+:} false; then : 11741 $as_echo_n "(cached) " >&6 11742else 11743 ac_check_lib_save_LIBS=$LIBS 11744LIBS="-ldl $LIBS" 11745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11746/* end confdefs.h. */ 11747 11748/* Override any GCC internal prototype to avoid an error. 11749 Use char because int might match the return type of a GCC 11750 builtin and then its argument prototype would still apply. */ 11751#ifdef __cplusplus 11752extern "C" 11753#endif 11754char dlopen (); 11755int 11756main () 11757{ 11758return dlopen (); 11759 ; 11760 return 0; 11761} 11762_ACEOF 11763if ac_fn_c_try_link "$LINENO"; then : 11764 ac_cv_lib_dl_dlopen=yes 11765else 11766 ac_cv_lib_dl_dlopen=no 11767fi 11768rm -f core conftest.err conftest.$ac_objext \ 11769 conftest$ac_exeext conftest.$ac_ext 11770LIBS=$ac_check_lib_save_LIBS 11771fi 11772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11773$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11774if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11775 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11776else 11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11778$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11779if ${ac_cv_lib_svld_dlopen+:} false; then : 11780 $as_echo_n "(cached) " >&6 11781else 11782 ac_check_lib_save_LIBS=$LIBS 11783LIBS="-lsvld $LIBS" 11784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11785/* end confdefs.h. */ 11786 11787/* Override any GCC internal prototype to avoid an error. 11788 Use char because int might match the return type of a GCC 11789 builtin and then its argument prototype would still apply. */ 11790#ifdef __cplusplus 11791extern "C" 11792#endif 11793char dlopen (); 11794int 11795main () 11796{ 11797return dlopen (); 11798 ; 11799 return 0; 11800} 11801_ACEOF 11802if ac_fn_c_try_link "$LINENO"; then : 11803 ac_cv_lib_svld_dlopen=yes 11804else 11805 ac_cv_lib_svld_dlopen=no 11806fi 11807rm -f core conftest.err conftest.$ac_objext \ 11808 conftest$ac_exeext conftest.$ac_ext 11809LIBS=$ac_check_lib_save_LIBS 11810fi 11811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11812$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11813if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11814 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11815else 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11817$as_echo_n "checking for dld_link in -ldld... " >&6; } 11818if ${ac_cv_lib_dld_dld_link+:} false; then : 11819 $as_echo_n "(cached) " >&6 11820else 11821 ac_check_lib_save_LIBS=$LIBS 11822LIBS="-ldld $LIBS" 11823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11824/* end confdefs.h. */ 11825 11826/* Override any GCC internal prototype to avoid an error. 11827 Use char because int might match the return type of a GCC 11828 builtin and then its argument prototype would still apply. */ 11829#ifdef __cplusplus 11830extern "C" 11831#endif 11832char dld_link (); 11833int 11834main () 11835{ 11836return dld_link (); 11837 ; 11838 return 0; 11839} 11840_ACEOF 11841if ac_fn_c_try_link "$LINENO"; then : 11842 ac_cv_lib_dld_dld_link=yes 11843else 11844 ac_cv_lib_dld_dld_link=no 11845fi 11846rm -f core conftest.err conftest.$ac_objext \ 11847 conftest$ac_exeext conftest.$ac_ext 11848LIBS=$ac_check_lib_save_LIBS 11849fi 11850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11851$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11852if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11853 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11854fi 11855 11856 11857fi 11858 11859 11860fi 11861 11862 11863fi 11864 11865 11866fi 11867 11868 11869fi 11870 11871 ;; 11872 esac 11873 11874 if test "x$lt_cv_dlopen" != xno; then 11875 enable_dlopen=yes 11876 else 11877 enable_dlopen=no 11878 fi 11879 11880 case $lt_cv_dlopen in 11881 dlopen) 11882 save_CPPFLAGS="$CPPFLAGS" 11883 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11884 11885 save_LDFLAGS="$LDFLAGS" 11886 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11887 11888 save_LIBS="$LIBS" 11889 LIBS="$lt_cv_dlopen_libs $LIBS" 11890 11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11892$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11893if ${lt_cv_dlopen_self+:} false; then : 11894 $as_echo_n "(cached) " >&6 11895else 11896 if test "$cross_compiling" = yes; then : 11897 lt_cv_dlopen_self=cross 11898else 11899 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11900 lt_status=$lt_dlunknown 11901 cat > conftest.$ac_ext <<_LT_EOF 11902#line $LINENO "configure" 11903#include "confdefs.h" 11904 11905#if HAVE_DLFCN_H 11906#include <dlfcn.h> 11907#endif 11908 11909#include <stdio.h> 11910 11911#ifdef RTLD_GLOBAL 11912# define LT_DLGLOBAL RTLD_GLOBAL 11913#else 11914# ifdef DL_GLOBAL 11915# define LT_DLGLOBAL DL_GLOBAL 11916# else 11917# define LT_DLGLOBAL 0 11918# endif 11919#endif 11920 11921/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11922 find out it does not work in some platform. */ 11923#ifndef LT_DLLAZY_OR_NOW 11924# ifdef RTLD_LAZY 11925# define LT_DLLAZY_OR_NOW RTLD_LAZY 11926# else 11927# ifdef DL_LAZY 11928# define LT_DLLAZY_OR_NOW DL_LAZY 11929# else 11930# ifdef RTLD_NOW 11931# define LT_DLLAZY_OR_NOW RTLD_NOW 11932# else 11933# ifdef DL_NOW 11934# define LT_DLLAZY_OR_NOW DL_NOW 11935# else 11936# define LT_DLLAZY_OR_NOW 0 11937# endif 11938# endif 11939# endif 11940# endif 11941#endif 11942 11943/* When -fvisbility=hidden is used, assume the code has been annotated 11944 correspondingly for the symbols needed. */ 11945#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11946int fnord () __attribute__((visibility("default"))); 11947#endif 11948 11949int fnord () { return 42; } 11950int main () 11951{ 11952 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11953 int status = $lt_dlunknown; 11954 11955 if (self) 11956 { 11957 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11958 else 11959 { 11960 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11961 else puts (dlerror ()); 11962 } 11963 /* dlclose (self); */ 11964 } 11965 else 11966 puts (dlerror ()); 11967 11968 return status; 11969} 11970_LT_EOF 11971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11972 (eval $ac_link) 2>&5 11973 ac_status=$? 11974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11975 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11976 (./conftest; exit; ) >&5 2>/dev/null 11977 lt_status=$? 11978 case x$lt_status in 11979 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11980 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11981 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11982 esac 11983 else : 11984 # compilation failed 11985 lt_cv_dlopen_self=no 11986 fi 11987fi 11988rm -fr conftest* 11989 11990 11991fi 11992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11993$as_echo "$lt_cv_dlopen_self" >&6; } 11994 11995 if test "x$lt_cv_dlopen_self" = xyes; then 11996 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11998$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11999if ${lt_cv_dlopen_self_static+:} false; then : 12000 $as_echo_n "(cached) " >&6 12001else 12002 if test "$cross_compiling" = yes; then : 12003 lt_cv_dlopen_self_static=cross 12004else 12005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12006 lt_status=$lt_dlunknown 12007 cat > conftest.$ac_ext <<_LT_EOF 12008#line $LINENO "configure" 12009#include "confdefs.h" 12010 12011#if HAVE_DLFCN_H 12012#include <dlfcn.h> 12013#endif 12014 12015#include <stdio.h> 12016 12017#ifdef RTLD_GLOBAL 12018# define LT_DLGLOBAL RTLD_GLOBAL 12019#else 12020# ifdef DL_GLOBAL 12021# define LT_DLGLOBAL DL_GLOBAL 12022# else 12023# define LT_DLGLOBAL 0 12024# endif 12025#endif 12026 12027/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12028 find out it does not work in some platform. */ 12029#ifndef LT_DLLAZY_OR_NOW 12030# ifdef RTLD_LAZY 12031# define LT_DLLAZY_OR_NOW RTLD_LAZY 12032# else 12033# ifdef DL_LAZY 12034# define LT_DLLAZY_OR_NOW DL_LAZY 12035# else 12036# ifdef RTLD_NOW 12037# define LT_DLLAZY_OR_NOW RTLD_NOW 12038# else 12039# ifdef DL_NOW 12040# define LT_DLLAZY_OR_NOW DL_NOW 12041# else 12042# define LT_DLLAZY_OR_NOW 0 12043# endif 12044# endif 12045# endif 12046# endif 12047#endif 12048 12049/* When -fvisbility=hidden is used, assume the code has been annotated 12050 correspondingly for the symbols needed. */ 12051#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12052int fnord () __attribute__((visibility("default"))); 12053#endif 12054 12055int fnord () { return 42; } 12056int main () 12057{ 12058 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12059 int status = $lt_dlunknown; 12060 12061 if (self) 12062 { 12063 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12064 else 12065 { 12066 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12067 else puts (dlerror ()); 12068 } 12069 /* dlclose (self); */ 12070 } 12071 else 12072 puts (dlerror ()); 12073 12074 return status; 12075} 12076_LT_EOF 12077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12078 (eval $ac_link) 2>&5 12079 ac_status=$? 12080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12081 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12082 (./conftest; exit; ) >&5 2>/dev/null 12083 lt_status=$? 12084 case x$lt_status in 12085 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12086 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12087 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12088 esac 12089 else : 12090 # compilation failed 12091 lt_cv_dlopen_self_static=no 12092 fi 12093fi 12094rm -fr conftest* 12095 12096 12097fi 12098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12099$as_echo "$lt_cv_dlopen_self_static" >&6; } 12100 fi 12101 12102 CPPFLAGS="$save_CPPFLAGS" 12103 LDFLAGS="$save_LDFLAGS" 12104 LIBS="$save_LIBS" 12105 ;; 12106 esac 12107 12108 case $lt_cv_dlopen_self in 12109 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12110 *) enable_dlopen_self=unknown ;; 12111 esac 12112 12113 case $lt_cv_dlopen_self_static in 12114 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12115 *) enable_dlopen_self_static=unknown ;; 12116 esac 12117fi 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135striplib= 12136old_striplib= 12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12138$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12139if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12140 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12141 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12143$as_echo "yes" >&6; } 12144else 12145# FIXME - insert some real tests, host_os isn't really good enough 12146 case $host_os in 12147 darwin*) 12148 if test -n "$STRIP" ; then 12149 striplib="$STRIP -x" 12150 old_striplib="$STRIP -S" 12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12152$as_echo "yes" >&6; } 12153 else 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12155$as_echo "no" >&6; } 12156 fi 12157 ;; 12158 *) 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12160$as_echo "no" >&6; } 12161 ;; 12162 esac 12163fi 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 # Report which library types will actually be built 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12178$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12180$as_echo "$can_build_shared" >&6; } 12181 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12183$as_echo_n "checking whether to build shared libraries... " >&6; } 12184 test "$can_build_shared" = "no" && enable_shared=no 12185 12186 # On AIX, shared libraries and static libraries use the same namespace, and 12187 # are all built from PIC. 12188 case $host_os in 12189 aix3*) 12190 test "$enable_shared" = yes && enable_static=no 12191 if test -n "$RANLIB"; then 12192 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12193 postinstall_cmds='$RANLIB $lib' 12194 fi 12195 ;; 12196 12197 aix[4-9]*) 12198 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12199 test "$enable_shared" = yes && enable_static=no 12200 fi 12201 ;; 12202 esac 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12204$as_echo "$enable_shared" >&6; } 12205 12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12207$as_echo_n "checking whether to build static libraries... " >&6; } 12208 # Make sure either enable_shared or enable_static is yes. 12209 test "$enable_shared" = yes || enable_static=yes 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12211$as_echo "$enable_static" >&6; } 12212 12213 12214 12215 12216fi 12217ac_ext=cpp 12218ac_cpp='$CXXCPP $CPPFLAGS' 12219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12222 12223CC="$lt_save_CC" 12224 12225 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12226 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12227 (test "X$CXX" != "Xg++"))) ; then 12228 ac_ext=cpp 12229ac_cpp='$CXXCPP $CPPFLAGS' 12230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12234$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12235if test -z "$CXXCPP"; then 12236 if ${ac_cv_prog_CXXCPP+:} false; then : 12237 $as_echo_n "(cached) " >&6 12238else 12239 # Double quotes because CXXCPP needs to be expanded 12240 for CXXCPP in "$CXX -E" "/lib/cpp" 12241 do 12242 ac_preproc_ok=false 12243for ac_cxx_preproc_warn_flag in '' yes 12244do 12245 # Use a header file that comes with gcc, so configuring glibc 12246 # with a fresh cross-compiler works. 12247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12248 # <limits.h> exists even on freestanding compilers. 12249 # On the NeXT, cc -E runs the code through the compiler's parser, 12250 # not just through cpp. "Syntax error" is here to catch this case. 12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12252/* end confdefs.h. */ 12253#ifdef __STDC__ 12254# include <limits.h> 12255#else 12256# include <assert.h> 12257#endif 12258 Syntax error 12259_ACEOF 12260if ac_fn_cxx_try_cpp "$LINENO"; then : 12261 12262else 12263 # Broken: fails on valid input. 12264continue 12265fi 12266rm -f conftest.err conftest.i conftest.$ac_ext 12267 12268 # OK, works on sane cases. Now check whether nonexistent headers 12269 # can be detected and how. 12270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12271/* end confdefs.h. */ 12272#include <ac_nonexistent.h> 12273_ACEOF 12274if ac_fn_cxx_try_cpp "$LINENO"; then : 12275 # Broken: success on invalid input. 12276continue 12277else 12278 # Passes both tests. 12279ac_preproc_ok=: 12280break 12281fi 12282rm -f conftest.err conftest.i conftest.$ac_ext 12283 12284done 12285# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12286rm -f conftest.i conftest.err conftest.$ac_ext 12287if $ac_preproc_ok; then : 12288 break 12289fi 12290 12291 done 12292 ac_cv_prog_CXXCPP=$CXXCPP 12293 12294fi 12295 CXXCPP=$ac_cv_prog_CXXCPP 12296else 12297 ac_cv_prog_CXXCPP=$CXXCPP 12298fi 12299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12300$as_echo "$CXXCPP" >&6; } 12301ac_preproc_ok=false 12302for ac_cxx_preproc_warn_flag in '' yes 12303do 12304 # Use a header file that comes with gcc, so configuring glibc 12305 # with a fresh cross-compiler works. 12306 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12307 # <limits.h> exists even on freestanding compilers. 12308 # On the NeXT, cc -E runs the code through the compiler's parser, 12309 # not just through cpp. "Syntax error" is here to catch this case. 12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12311/* end confdefs.h. */ 12312#ifdef __STDC__ 12313# include <limits.h> 12314#else 12315# include <assert.h> 12316#endif 12317 Syntax error 12318_ACEOF 12319if ac_fn_cxx_try_cpp "$LINENO"; then : 12320 12321else 12322 # Broken: fails on valid input. 12323continue 12324fi 12325rm -f conftest.err conftest.i conftest.$ac_ext 12326 12327 # OK, works on sane cases. Now check whether nonexistent headers 12328 # can be detected and how. 12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12330/* end confdefs.h. */ 12331#include <ac_nonexistent.h> 12332_ACEOF 12333if ac_fn_cxx_try_cpp "$LINENO"; then : 12334 # Broken: success on invalid input. 12335continue 12336else 12337 # Passes both tests. 12338ac_preproc_ok=: 12339break 12340fi 12341rm -f conftest.err conftest.i conftest.$ac_ext 12342 12343done 12344# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12345rm -f conftest.i conftest.err conftest.$ac_ext 12346if $ac_preproc_ok; then : 12347 12348else 12349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12351as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12352See \`config.log' for more details" "$LINENO" 5; } 12353fi 12354 12355ac_ext=cpp 12356ac_cpp='$CXXCPP $CPPFLAGS' 12357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12360 12361else 12362 _lt_caught_CXX_error=yes 12363fi 12364 12365ac_ext=cpp 12366ac_cpp='$CXXCPP $CPPFLAGS' 12367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12370 12371archive_cmds_need_lc_CXX=no 12372allow_undefined_flag_CXX= 12373always_export_symbols_CXX=no 12374archive_expsym_cmds_CXX= 12375compiler_needs_object_CXX=no 12376export_dynamic_flag_spec_CXX= 12377hardcode_direct_CXX=no 12378hardcode_direct_absolute_CXX=no 12379hardcode_libdir_flag_spec_CXX= 12380hardcode_libdir_separator_CXX= 12381hardcode_minus_L_CXX=no 12382hardcode_shlibpath_var_CXX=unsupported 12383hardcode_automatic_CXX=no 12384inherit_rpath_CXX=no 12385module_cmds_CXX= 12386module_expsym_cmds_CXX= 12387link_all_deplibs_CXX=unknown 12388old_archive_cmds_CXX=$old_archive_cmds 12389reload_flag_CXX=$reload_flag 12390reload_cmds_CXX=$reload_cmds 12391no_undefined_flag_CXX= 12392whole_archive_flag_spec_CXX= 12393enable_shared_with_static_runtimes_CXX=no 12394 12395# Source file extension for C++ test sources. 12396ac_ext=cpp 12397 12398# Object file extension for compiled C++ test sources. 12399objext=o 12400objext_CXX=$objext 12401 12402# No sense in running all these tests if we already determined that 12403# the CXX compiler isn't working. Some variables (like enable_shared) 12404# are currently assumed to apply to all compilers on this platform, 12405# and will be corrupted by setting them based on a non-working compiler. 12406if test "$_lt_caught_CXX_error" != yes; then 12407 # Code to be used in simple compile tests 12408 lt_simple_compile_test_code="int some_variable = 0;" 12409 12410 # Code to be used in simple link tests 12411 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12412 12413 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12414 12415 12416 12417 12418 12419 12420# If no C compiler was specified, use CC. 12421LTCC=${LTCC-"$CC"} 12422 12423# If no C compiler flags were specified, use CFLAGS. 12424LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12425 12426# Allow CC to be a program name with arguments. 12427compiler=$CC 12428 12429 12430 # save warnings/boilerplate of simple test code 12431 ac_outfile=conftest.$ac_objext 12432echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12433eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12434_lt_compiler_boilerplate=`cat conftest.err` 12435$RM conftest* 12436 12437 ac_outfile=conftest.$ac_objext 12438echo "$lt_simple_link_test_code" >conftest.$ac_ext 12439eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12440_lt_linker_boilerplate=`cat conftest.err` 12441$RM -r conftest* 12442 12443 12444 # Allow CC to be a program name with arguments. 12445 lt_save_CC=$CC 12446 lt_save_CFLAGS=$CFLAGS 12447 lt_save_LD=$LD 12448 lt_save_GCC=$GCC 12449 GCC=$GXX 12450 lt_save_with_gnu_ld=$with_gnu_ld 12451 lt_save_path_LD=$lt_cv_path_LD 12452 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12453 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12454 else 12455 $as_unset lt_cv_prog_gnu_ld 12456 fi 12457 if test -n "${lt_cv_path_LDCXX+set}"; then 12458 lt_cv_path_LD=$lt_cv_path_LDCXX 12459 else 12460 $as_unset lt_cv_path_LD 12461 fi 12462 test -z "${LDCXX+set}" || LD=$LDCXX 12463 CC=${CXX-"c++"} 12464 CFLAGS=$CXXFLAGS 12465 compiler=$CC 12466 compiler_CXX=$CC 12467 for cc_temp in $compiler""; do 12468 case $cc_temp in 12469 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12470 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12471 \-*) ;; 12472 *) break;; 12473 esac 12474done 12475cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12476 12477 12478 if test -n "$compiler"; then 12479 # We don't want -fno-exception when compiling C++ code, so set the 12480 # no_builtin_flag separately 12481 if test "$GXX" = yes; then 12482 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12483 else 12484 lt_prog_compiler_no_builtin_flag_CXX= 12485 fi 12486 12487 if test "$GXX" = yes; then 12488 # Set up default GNU C++ configuration 12489 12490 12491 12492# Check whether --with-gnu-ld was given. 12493if test "${with_gnu_ld+set}" = set; then : 12494 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12495else 12496 with_gnu_ld=no 12497fi 12498 12499ac_prog=ld 12500if test "$GCC" = yes; then 12501 # Check if gcc -print-prog-name=ld gives a path. 12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12503$as_echo_n "checking for ld used by $CC... " >&6; } 12504 case $host in 12505 *-*-mingw*) 12506 # gcc leaves a trailing carriage return which upsets mingw 12507 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12508 *) 12509 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12510 esac 12511 case $ac_prog in 12512 # Accept absolute paths. 12513 [\\/]* | ?:[\\/]*) 12514 re_direlt='/[^/][^/]*/\.\./' 12515 # Canonicalize the pathname of ld 12516 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12517 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12518 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12519 done 12520 test -z "$LD" && LD="$ac_prog" 12521 ;; 12522 "") 12523 # If it fails, then pretend we aren't using GCC. 12524 ac_prog=ld 12525 ;; 12526 *) 12527 # If it is relative, then search for the first ld in PATH. 12528 with_gnu_ld=unknown 12529 ;; 12530 esac 12531elif test "$with_gnu_ld" = yes; then 12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12533$as_echo_n "checking for GNU ld... " >&6; } 12534else 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12536$as_echo_n "checking for non-GNU ld... " >&6; } 12537fi 12538if ${lt_cv_path_LD+:} false; then : 12539 $as_echo_n "(cached) " >&6 12540else 12541 if test -z "$LD"; then 12542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12543 for ac_dir in $PATH; do 12544 IFS="$lt_save_ifs" 12545 test -z "$ac_dir" && ac_dir=. 12546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12547 lt_cv_path_LD="$ac_dir/$ac_prog" 12548 # Check to see if the program is GNU ld. I'd rather use --version, 12549 # but apparently some variants of GNU ld only accept -v. 12550 # Break only if it was the GNU/non-GNU ld that we prefer. 12551 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12552 *GNU* | *'with BFD'*) 12553 test "$with_gnu_ld" != no && break 12554 ;; 12555 *) 12556 test "$with_gnu_ld" != yes && break 12557 ;; 12558 esac 12559 fi 12560 done 12561 IFS="$lt_save_ifs" 12562else 12563 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12564fi 12565fi 12566 12567LD="$lt_cv_path_LD" 12568if test -n "$LD"; then 12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12570$as_echo "$LD" >&6; } 12571else 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12573$as_echo "no" >&6; } 12574fi 12575test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12577$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12578if ${lt_cv_prog_gnu_ld+:} false; then : 12579 $as_echo_n "(cached) " >&6 12580else 12581 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12582case `$LD -v 2>&1 </dev/null` in 12583*GNU* | *'with BFD'*) 12584 lt_cv_prog_gnu_ld=yes 12585 ;; 12586*) 12587 lt_cv_prog_gnu_ld=no 12588 ;; 12589esac 12590fi 12591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12592$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12593with_gnu_ld=$lt_cv_prog_gnu_ld 12594 12595 12596 12597 12598 12599 12600 12601 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12602 # archiving commands below assume that GNU ld is being used. 12603 if test "$with_gnu_ld" = yes; then 12604 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12605 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' 12606 12607 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12608 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12609 12610 # If archive_cmds runs LD, not CC, wlarc should be empty 12611 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12612 # investigate it a little bit more. (MM) 12613 wlarc='${wl}' 12614 12615 # ancient GNU ld didn't support --whole-archive et. al. 12616 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12617 $GREP 'no-whole-archive' > /dev/null; then 12618 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12619 else 12620 whole_archive_flag_spec_CXX= 12621 fi 12622 else 12623 with_gnu_ld=no 12624 wlarc= 12625 12626 # A generic and very simple default shared library creation 12627 # command for GNU C++ for the case where it uses the native 12628 # linker, instead of GNU ld. If possible, this setting should 12629 # overridden to take advantage of the native linker features on 12630 # the platform it is being used on. 12631 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12632 fi 12633 12634 # Commands to make compiler produce verbose output that lists 12635 # what "hidden" libraries, object files and flags are used when 12636 # linking a shared library. 12637 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12638 12639 else 12640 GXX=no 12641 with_gnu_ld=no 12642 wlarc= 12643 fi 12644 12645 # PORTME: fill in a description of your system's C++ link characteristics 12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12647$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12648 ld_shlibs_CXX=yes 12649 case $host_os in 12650 aix3*) 12651 # FIXME: insert proper C++ library support 12652 ld_shlibs_CXX=no 12653 ;; 12654 aix[4-9]*) 12655 if test "$host_cpu" = ia64; then 12656 # On IA64, the linker does run time linking by default, so we don't 12657 # have to do anything special. 12658 aix_use_runtimelinking=no 12659 exp_sym_flag='-Bexport' 12660 no_entry_flag="" 12661 else 12662 aix_use_runtimelinking=no 12663 12664 # Test if we are trying to use run time linking or normal 12665 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12666 # need to do runtime linking. 12667 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12668 for ld_flag in $LDFLAGS; do 12669 case $ld_flag in 12670 *-brtl*) 12671 aix_use_runtimelinking=yes 12672 break 12673 ;; 12674 esac 12675 done 12676 ;; 12677 esac 12678 12679 exp_sym_flag='-bexport' 12680 no_entry_flag='-bnoentry' 12681 fi 12682 12683 # When large executables or shared objects are built, AIX ld can 12684 # have problems creating the table of contents. If linking a library 12685 # or program results in "error TOC overflow" add -mminimal-toc to 12686 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12687 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12688 12689 archive_cmds_CXX='' 12690 hardcode_direct_CXX=yes 12691 hardcode_direct_absolute_CXX=yes 12692 hardcode_libdir_separator_CXX=':' 12693 link_all_deplibs_CXX=yes 12694 file_list_spec_CXX='${wl}-f,' 12695 12696 if test "$GXX" = yes; then 12697 case $host_os in aix4.[012]|aix4.[012].*) 12698 # We only want to do this on AIX 4.2 and lower, the check 12699 # below for broken collect2 doesn't work under 4.3+ 12700 collect2name=`${CC} -print-prog-name=collect2` 12701 if test -f "$collect2name" && 12702 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12703 then 12704 # We have reworked collect2 12705 : 12706 else 12707 # We have old collect2 12708 hardcode_direct_CXX=unsupported 12709 # It fails to find uninstalled libraries when the uninstalled 12710 # path is not listed in the libpath. Setting hardcode_minus_L 12711 # to unsupported forces relinking 12712 hardcode_minus_L_CXX=yes 12713 hardcode_libdir_flag_spec_CXX='-L$libdir' 12714 hardcode_libdir_separator_CXX= 12715 fi 12716 esac 12717 shared_flag='-shared' 12718 if test "$aix_use_runtimelinking" = yes; then 12719 shared_flag="$shared_flag "'${wl}-G' 12720 fi 12721 else 12722 # not using gcc 12723 if test "$host_cpu" = ia64; then 12724 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12725 # chokes on -Wl,-G. The following line is correct: 12726 shared_flag='-G' 12727 else 12728 if test "$aix_use_runtimelinking" = yes; then 12729 shared_flag='${wl}-G' 12730 else 12731 shared_flag='${wl}-bM:SRE' 12732 fi 12733 fi 12734 fi 12735 12736 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12737 # It seems that -bexpall does not export symbols beginning with 12738 # underscore (_), so it is better to generate a list of symbols to 12739 # export. 12740 always_export_symbols_CXX=yes 12741 if test "$aix_use_runtimelinking" = yes; then 12742 # Warning - without using the other runtime loading flags (-brtl), 12743 # -berok will link without error, but may produce a broken library. 12744 allow_undefined_flag_CXX='-berok' 12745 # Determine the default libpath from the value encoded in an empty 12746 # executable. 12747 if test "${lt_cv_aix_libpath+set}" = set; then 12748 aix_libpath=$lt_cv_aix_libpath 12749else 12750 if ${lt_cv_aix_libpath__CXX+:} false; then : 12751 $as_echo_n "(cached) " >&6 12752else 12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12754/* end confdefs.h. */ 12755 12756int 12757main () 12758{ 12759 12760 ; 12761 return 0; 12762} 12763_ACEOF 12764if ac_fn_cxx_try_link "$LINENO"; then : 12765 12766 lt_aix_libpath_sed=' 12767 /Import File Strings/,/^$/ { 12768 /^0/ { 12769 s/^0 *\([^ ]*\) *$/\1/ 12770 p 12771 } 12772 }' 12773 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12774 # Check for a 64-bit object if we didn't find anything. 12775 if test -z "$lt_cv_aix_libpath__CXX"; then 12776 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12777 fi 12778fi 12779rm -f core conftest.err conftest.$ac_objext \ 12780 conftest$ac_exeext conftest.$ac_ext 12781 if test -z "$lt_cv_aix_libpath__CXX"; then 12782 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12783 fi 12784 12785fi 12786 12787 aix_libpath=$lt_cv_aix_libpath__CXX 12788fi 12789 12790 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12791 12792 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12793 else 12794 if test "$host_cpu" = ia64; then 12795 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12796 allow_undefined_flag_CXX="-z nodefs" 12797 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" 12798 else 12799 # Determine the default libpath from the value encoded in an 12800 # empty executable. 12801 if test "${lt_cv_aix_libpath+set}" = set; then 12802 aix_libpath=$lt_cv_aix_libpath 12803else 12804 if ${lt_cv_aix_libpath__CXX+:} false; then : 12805 $as_echo_n "(cached) " >&6 12806else 12807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12808/* end confdefs.h. */ 12809 12810int 12811main () 12812{ 12813 12814 ; 12815 return 0; 12816} 12817_ACEOF 12818if ac_fn_cxx_try_link "$LINENO"; then : 12819 12820 lt_aix_libpath_sed=' 12821 /Import File Strings/,/^$/ { 12822 /^0/ { 12823 s/^0 *\([^ ]*\) *$/\1/ 12824 p 12825 } 12826 }' 12827 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12828 # Check for a 64-bit object if we didn't find anything. 12829 if test -z "$lt_cv_aix_libpath__CXX"; then 12830 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12831 fi 12832fi 12833rm -f core conftest.err conftest.$ac_objext \ 12834 conftest$ac_exeext conftest.$ac_ext 12835 if test -z "$lt_cv_aix_libpath__CXX"; then 12836 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12837 fi 12838 12839fi 12840 12841 aix_libpath=$lt_cv_aix_libpath__CXX 12842fi 12843 12844 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12845 # Warning - without using the other run time loading flags, 12846 # -berok will link without error, but may produce a broken library. 12847 no_undefined_flag_CXX=' ${wl}-bernotok' 12848 allow_undefined_flag_CXX=' ${wl}-berok' 12849 if test "$with_gnu_ld" = yes; then 12850 # We only use this code for GNU lds that support --whole-archive. 12851 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12852 else 12853 # Exported symbols can be pulled into shared objects from archives 12854 whole_archive_flag_spec_CXX='$convenience' 12855 fi 12856 archive_cmds_need_lc_CXX=yes 12857 # This is similar to how AIX traditionally builds its shared 12858 # libraries. 12859 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12860 fi 12861 fi 12862 ;; 12863 12864 beos*) 12865 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12866 allow_undefined_flag_CXX=unsupported 12867 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12868 # support --undefined. This deserves some investigation. FIXME 12869 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12870 else 12871 ld_shlibs_CXX=no 12872 fi 12873 ;; 12874 12875 chorus*) 12876 case $cc_basename in 12877 *) 12878 # FIXME: insert proper C++ library support 12879 ld_shlibs_CXX=no 12880 ;; 12881 esac 12882 ;; 12883 12884 cygwin* | mingw* | pw32* | cegcc*) 12885 case $GXX,$cc_basename in 12886 ,cl* | no,cl*) 12887 # Native MSVC 12888 # hardcode_libdir_flag_spec is actually meaningless, as there is 12889 # no search path for DLLs. 12890 hardcode_libdir_flag_spec_CXX=' ' 12891 allow_undefined_flag_CXX=unsupported 12892 always_export_symbols_CXX=yes 12893 file_list_spec_CXX='@' 12894 # Tell ltmain to make .lib files, not .a files. 12895 libext=lib 12896 # Tell ltmain to make .dll files, not .so files. 12897 shrext_cmds=".dll" 12898 # FIXME: Setting linknames here is a bad hack. 12899 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12900 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12901 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12902 else 12903 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12904 fi~ 12905 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12906 linknames=' 12907 # The linker will not automatically build a static lib if we build a DLL. 12908 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 12909 enable_shared_with_static_runtimes_CXX=yes 12910 # Don't use ranlib 12911 old_postinstall_cmds_CXX='chmod 644 $oldlib' 12912 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 12913 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12914 case $lt_outputfile in 12915 *.exe|*.EXE) ;; 12916 *) 12917 lt_outputfile="$lt_outputfile.exe" 12918 lt_tool_outputfile="$lt_tool_outputfile.exe" 12919 ;; 12920 esac~ 12921 func_to_tool_file "$lt_outputfile"~ 12922 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12923 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12924 $RM "$lt_outputfile.manifest"; 12925 fi' 12926 ;; 12927 *) 12928 # g++ 12929 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12930 # as there is no search path for DLLs. 12931 hardcode_libdir_flag_spec_CXX='-L$libdir' 12932 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12933 allow_undefined_flag_CXX=unsupported 12934 always_export_symbols_CXX=no 12935 enable_shared_with_static_runtimes_CXX=yes 12936 12937 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12938 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' 12939 # If the export-symbols file already is a .def file (1st line 12940 # is EXPORTS), use it as is; otherwise, prepend... 12941 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12942 cp $export_symbols $output_objdir/$soname.def; 12943 else 12944 echo EXPORTS > $output_objdir/$soname.def; 12945 cat $export_symbols >> $output_objdir/$soname.def; 12946 fi~ 12947 $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' 12948 else 12949 ld_shlibs_CXX=no 12950 fi 12951 ;; 12952 esac 12953 ;; 12954 darwin* | rhapsody*) 12955 12956 12957 archive_cmds_need_lc_CXX=no 12958 hardcode_direct_CXX=no 12959 hardcode_automatic_CXX=yes 12960 hardcode_shlibpath_var_CXX=unsupported 12961 if test "$lt_cv_ld_force_load" = "yes"; then 12962 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\"`' 12963 12964 else 12965 whole_archive_flag_spec_CXX='' 12966 fi 12967 link_all_deplibs_CXX=yes 12968 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12969 case $cc_basename in 12970 ifort*) _lt_dar_can_shared=yes ;; 12971 *) _lt_dar_can_shared=$GCC ;; 12972 esac 12973 if test "$_lt_dar_can_shared" = "yes"; then 12974 output_verbose_link_cmd=func_echo_all 12975 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}" 12976 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12977 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}" 12978 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}" 12979 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12980 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}" 12981 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}" 12982 fi 12983 12984 else 12985 ld_shlibs_CXX=no 12986 fi 12987 12988 ;; 12989 12990 dgux*) 12991 case $cc_basename in 12992 ec++*) 12993 # FIXME: insert proper C++ library support 12994 ld_shlibs_CXX=no 12995 ;; 12996 ghcx*) 12997 # Green Hills C++ Compiler 12998 # FIXME: insert proper C++ library support 12999 ld_shlibs_CXX=no 13000 ;; 13001 *) 13002 # FIXME: insert proper C++ library support 13003 ld_shlibs_CXX=no 13004 ;; 13005 esac 13006 ;; 13007 13008 freebsd2.*) 13009 # C++ shared libraries reported to be fairly broken before 13010 # switch to ELF 13011 ld_shlibs_CXX=no 13012 ;; 13013 13014 freebsd-elf*) 13015 archive_cmds_need_lc_CXX=no 13016 ;; 13017 13018 freebsd* | dragonfly*) 13019 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13020 # conventions 13021 ld_shlibs_CXX=yes 13022 ;; 13023 13024 haiku*) 13025 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13026 link_all_deplibs_CXX=yes 13027 ;; 13028 13029 hpux9*) 13030 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13031 hardcode_libdir_separator_CXX=: 13032 export_dynamic_flag_spec_CXX='${wl}-E' 13033 hardcode_direct_CXX=yes 13034 hardcode_minus_L_CXX=yes # Not in the search PATH, 13035 # but as the default 13036 # location of the library. 13037 13038 case $cc_basename in 13039 CC*) 13040 # FIXME: insert proper C++ library support 13041 ld_shlibs_CXX=no 13042 ;; 13043 aCC*) 13044 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13045 # Commands to make compiler produce verbose output that lists 13046 # what "hidden" libraries, object files and flags are used when 13047 # linking a shared library. 13048 # 13049 # There doesn't appear to be a way to prevent this compiler from 13050 # explicitly linking system object files so we need to strip them 13051 # from the output so that they don't get included in the library 13052 # dependencies. 13053 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"' 13054 ;; 13055 *) 13056 if test "$GXX" = yes; then 13057 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13058 else 13059 # FIXME: insert proper C++ library support 13060 ld_shlibs_CXX=no 13061 fi 13062 ;; 13063 esac 13064 ;; 13065 13066 hpux10*|hpux11*) 13067 if test $with_gnu_ld = no; then 13068 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13069 hardcode_libdir_separator_CXX=: 13070 13071 case $host_cpu in 13072 hppa*64*|ia64*) 13073 ;; 13074 *) 13075 export_dynamic_flag_spec_CXX='${wl}-E' 13076 ;; 13077 esac 13078 fi 13079 case $host_cpu in 13080 hppa*64*|ia64*) 13081 hardcode_direct_CXX=no 13082 hardcode_shlibpath_var_CXX=no 13083 ;; 13084 *) 13085 hardcode_direct_CXX=yes 13086 hardcode_direct_absolute_CXX=yes 13087 hardcode_minus_L_CXX=yes # Not in the search PATH, 13088 # but as the default 13089 # location of the library. 13090 ;; 13091 esac 13092 13093 case $cc_basename in 13094 CC*) 13095 # FIXME: insert proper C++ library support 13096 ld_shlibs_CXX=no 13097 ;; 13098 aCC*) 13099 case $host_cpu in 13100 hppa*64*) 13101 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13102 ;; 13103 ia64*) 13104 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13105 ;; 13106 *) 13107 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13108 ;; 13109 esac 13110 # Commands to make compiler produce verbose output that lists 13111 # what "hidden" libraries, object files and flags are used when 13112 # linking a shared library. 13113 # 13114 # There doesn't appear to be a way to prevent this compiler from 13115 # explicitly linking system object files so we need to strip them 13116 # from the output so that they don't get included in the library 13117 # dependencies. 13118 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"' 13119 ;; 13120 *) 13121 if test "$GXX" = yes; then 13122 if test $with_gnu_ld = no; then 13123 case $host_cpu in 13124 hppa*64*) 13125 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13126 ;; 13127 ia64*) 13128 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13129 ;; 13130 *) 13131 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' 13132 ;; 13133 esac 13134 fi 13135 else 13136 # FIXME: insert proper C++ library support 13137 ld_shlibs_CXX=no 13138 fi 13139 ;; 13140 esac 13141 ;; 13142 13143 interix[3-9]*) 13144 hardcode_direct_CXX=no 13145 hardcode_shlibpath_var_CXX=no 13146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13147 export_dynamic_flag_spec_CXX='${wl}-E' 13148 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13149 # Instead, shared libraries are loaded at an image base (0x10000000 by 13150 # default) and relocated if they conflict, which is a slow very memory 13151 # consuming and fragmenting process. To avoid this, we pick a random, 13152 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13153 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13154 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' 13155 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' 13156 ;; 13157 irix5* | irix6*) 13158 case $cc_basename in 13159 CC*) 13160 # SGI C++ 13161 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' 13162 13163 # Archives containing C++ object files must be created using 13164 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13165 # necessary to make sure instantiated templates are included 13166 # in the archive. 13167 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13168 ;; 13169 *) 13170 if test "$GXX" = yes; then 13171 if test "$with_gnu_ld" = no; then 13172 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' 13173 else 13174 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' 13175 fi 13176 fi 13177 link_all_deplibs_CXX=yes 13178 ;; 13179 esac 13180 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13181 hardcode_libdir_separator_CXX=: 13182 inherit_rpath_CXX=yes 13183 ;; 13184 13185 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13186 case $cc_basename in 13187 KCC*) 13188 # Kuck and Associates, Inc. (KAI) C++ Compiler 13189 13190 # KCC will only create a shared library if the output file 13191 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13192 # to its proper name (with version) after linking. 13193 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' 13194 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' 13195 # Commands to make compiler produce verbose output that lists 13196 # what "hidden" libraries, object files and flags are used when 13197 # linking a shared library. 13198 # 13199 # There doesn't appear to be a way to prevent this compiler from 13200 # explicitly linking system object files so we need to strip them 13201 # from the output so that they don't get included in the library 13202 # dependencies. 13203 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"' 13204 13205 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13206 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13207 13208 # Archives containing C++ object files must be created using 13209 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13210 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13211 ;; 13212 icpc* | ecpc* ) 13213 # Intel C++ 13214 with_gnu_ld=yes 13215 # version 8.0 and above of icpc choke on multiply defined symbols 13216 # if we add $predep_objects and $postdep_objects, however 7.1 and 13217 # earlier do not add the objects themselves. 13218 case `$CC -V 2>&1` in 13219 *"Version 7."*) 13220 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13221 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' 13222 ;; 13223 *) # Version 8.0 or newer 13224 tmp_idyn= 13225 case $host_cpu in 13226 ia64*) tmp_idyn=' -i_dynamic';; 13227 esac 13228 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13229 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' 13230 ;; 13231 esac 13232 archive_cmds_need_lc_CXX=no 13233 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13234 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13235 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13236 ;; 13237 pgCC* | pgcpp*) 13238 # Portland Group C++ compiler 13239 case `$CC -V` in 13240 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13241 prelink_cmds_CXX='tpldir=Template.dir~ 13242 rm -rf $tpldir~ 13243 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13244 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13245 old_archive_cmds_CXX='tpldir=Template.dir~ 13246 rm -rf $tpldir~ 13247 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13248 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13249 $RANLIB $oldlib' 13250 archive_cmds_CXX='tpldir=Template.dir~ 13251 rm -rf $tpldir~ 13252 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13253 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13254 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13255 rm -rf $tpldir~ 13256 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13257 $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' 13258 ;; 13259 *) # Version 6 and above use weak symbols 13260 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13261 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' 13262 ;; 13263 esac 13264 13265 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13266 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13267 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' 13268 ;; 13269 cxx*) 13270 # Compaq C++ 13271 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13272 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' 13273 13274 runpath_var=LD_RUN_PATH 13275 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13276 hardcode_libdir_separator_CXX=: 13277 13278 # Commands to make compiler produce verbose output that lists 13279 # what "hidden" libraries, object files and flags are used when 13280 # linking a shared library. 13281 # 13282 # There doesn't appear to be a way to prevent this compiler from 13283 # explicitly linking system object files so we need to strip them 13284 # from the output so that they don't get included in the library 13285 # dependencies. 13286 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' 13287 ;; 13288 xl* | mpixl* | bgxl*) 13289 # IBM XL 8.0 on PPC, with GNU ld 13290 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13291 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13292 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13293 if test "x$supports_anon_versioning" = xyes; then 13294 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13295 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13296 echo "local: *; };" >> $output_objdir/$libname.ver~ 13297 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13298 fi 13299 ;; 13300 *) 13301 case `$CC -V 2>&1 | sed 5q` in 13302 *Sun\ C*) 13303 # Sun C++ 5.9 13304 no_undefined_flag_CXX=' -zdefs' 13305 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13306 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' 13307 hardcode_libdir_flag_spec_CXX='-R$libdir' 13308 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' 13309 compiler_needs_object_CXX=yes 13310 13311 # Not sure whether something based on 13312 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13313 # would be better. 13314 output_verbose_link_cmd='func_echo_all' 13315 13316 # Archives containing C++ object files must be created using 13317 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13318 # necessary to make sure instantiated templates are included 13319 # in the archive. 13320 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13321 ;; 13322 esac 13323 ;; 13324 esac 13325 ;; 13326 13327 lynxos*) 13328 # FIXME: insert proper C++ library support 13329 ld_shlibs_CXX=no 13330 ;; 13331 13332 m88k*) 13333 # FIXME: insert proper C++ library support 13334 ld_shlibs_CXX=no 13335 ;; 13336 13337 mvs*) 13338 case $cc_basename in 13339 cxx*) 13340 # FIXME: insert proper C++ library support 13341 ld_shlibs_CXX=no 13342 ;; 13343 *) 13344 # FIXME: insert proper C++ library support 13345 ld_shlibs_CXX=no 13346 ;; 13347 esac 13348 ;; 13349 13350 netbsd*) 13351 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13352 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13353 wlarc= 13354 hardcode_libdir_flag_spec_CXX='-R$libdir' 13355 hardcode_direct_CXX=yes 13356 hardcode_shlibpath_var_CXX=no 13357 fi 13358 # Workaround some broken pre-1.5 toolchains 13359 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13360 ;; 13361 13362 *nto* | *qnx*) 13363 ld_shlibs_CXX=yes 13364 ;; 13365 13366 openbsd2*) 13367 # C++ shared libraries are fairly broken 13368 ld_shlibs_CXX=no 13369 ;; 13370 13371 openbsd*) 13372 if test -f /usr/libexec/ld.so; then 13373 hardcode_direct_CXX=yes 13374 hardcode_shlibpath_var_CXX=no 13375 hardcode_direct_absolute_CXX=yes 13376 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13377 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13379 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13380 export_dynamic_flag_spec_CXX='${wl}-E' 13381 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13382 fi 13383 output_verbose_link_cmd=func_echo_all 13384 else 13385 ld_shlibs_CXX=no 13386 fi 13387 ;; 13388 13389 osf3* | osf4* | osf5*) 13390 case $cc_basename in 13391 KCC*) 13392 # Kuck and Associates, Inc. (KAI) C++ Compiler 13393 13394 # KCC will only create a shared library if the output file 13395 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13396 # to its proper name (with version) after linking. 13397 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' 13398 13399 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13400 hardcode_libdir_separator_CXX=: 13401 13402 # Archives containing C++ object files must be created using 13403 # the KAI C++ compiler. 13404 case $host in 13405 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13406 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13407 esac 13408 ;; 13409 RCC*) 13410 # Rational C++ 2.4.1 13411 # FIXME: insert proper C++ library support 13412 ld_shlibs_CXX=no 13413 ;; 13414 cxx*) 13415 case $host in 13416 osf3*) 13417 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13418 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' 13419 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13420 ;; 13421 *) 13422 allow_undefined_flag_CXX=' -expect_unresolved \*' 13423 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' 13424 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13425 echo "-hidden">> $lib.exp~ 13426 $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~ 13427 $RM $lib.exp' 13428 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13429 ;; 13430 esac 13431 13432 hardcode_libdir_separator_CXX=: 13433 13434 # Commands to make compiler produce verbose output that lists 13435 # what "hidden" libraries, object files and flags are used when 13436 # linking a shared library. 13437 # 13438 # There doesn't appear to be a way to prevent this compiler from 13439 # explicitly linking system object files so we need to strip them 13440 # from the output so that they don't get included in the library 13441 # dependencies. 13442 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"' 13443 ;; 13444 *) 13445 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13446 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13447 case $host in 13448 osf3*) 13449 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' 13450 ;; 13451 *) 13452 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' 13453 ;; 13454 esac 13455 13456 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13457 hardcode_libdir_separator_CXX=: 13458 13459 # Commands to make compiler produce verbose output that lists 13460 # what "hidden" libraries, object files and flags are used when 13461 # linking a shared library. 13462 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13463 13464 else 13465 # FIXME: insert proper C++ library support 13466 ld_shlibs_CXX=no 13467 fi 13468 ;; 13469 esac 13470 ;; 13471 13472 psos*) 13473 # FIXME: insert proper C++ library support 13474 ld_shlibs_CXX=no 13475 ;; 13476 13477 sunos4*) 13478 case $cc_basename in 13479 CC*) 13480 # Sun C++ 4.x 13481 # FIXME: insert proper C++ library support 13482 ld_shlibs_CXX=no 13483 ;; 13484 lcc*) 13485 # Lucid 13486 # FIXME: insert proper C++ library support 13487 ld_shlibs_CXX=no 13488 ;; 13489 *) 13490 # FIXME: insert proper C++ library support 13491 ld_shlibs_CXX=no 13492 ;; 13493 esac 13494 ;; 13495 13496 solaris*) 13497 case $cc_basename in 13498 CC* | sunCC*) 13499 # Sun C++ 4.2, 5.x and Centerline C++ 13500 archive_cmds_need_lc_CXX=yes 13501 no_undefined_flag_CXX=' -zdefs' 13502 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13503 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13504 $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' 13505 13506 hardcode_libdir_flag_spec_CXX='-R$libdir' 13507 hardcode_shlibpath_var_CXX=no 13508 case $host_os in 13509 solaris2.[0-5] | solaris2.[0-5].*) ;; 13510 *) 13511 # The compiler driver will combine and reorder linker options, 13512 # but understands `-z linker_flag'. 13513 # Supported since Solaris 2.6 (maybe 2.5.1?) 13514 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13515 ;; 13516 esac 13517 link_all_deplibs_CXX=yes 13518 13519 output_verbose_link_cmd='func_echo_all' 13520 13521 # Archives containing C++ object files must be created using 13522 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13523 # necessary to make sure instantiated templates are included 13524 # in the archive. 13525 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13526 ;; 13527 gcx*) 13528 # Green Hills C++ Compiler 13529 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13530 13531 # The C++ compiler must be used to create the archive. 13532 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13533 ;; 13534 *) 13535 # GNU C++ compiler with Solaris linker 13536 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13537 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13538 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13539 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13540 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13541 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13542 13543 # Commands to make compiler produce verbose output that lists 13544 # what "hidden" libraries, object files and flags are used when 13545 # linking a shared library. 13546 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13547 else 13548 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13549 # platform. 13550 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13551 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13552 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13553 13554 # Commands to make compiler produce verbose output that lists 13555 # what "hidden" libraries, object files and flags are used when 13556 # linking a shared library. 13557 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13558 fi 13559 13560 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13561 case $host_os in 13562 solaris2.[0-5] | solaris2.[0-5].*) ;; 13563 *) 13564 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13565 ;; 13566 esac 13567 fi 13568 ;; 13569 esac 13570 ;; 13571 13572 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13573 no_undefined_flag_CXX='${wl}-z,text' 13574 archive_cmds_need_lc_CXX=no 13575 hardcode_shlibpath_var_CXX=no 13576 runpath_var='LD_RUN_PATH' 13577 13578 case $cc_basename in 13579 CC*) 13580 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13581 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13582 ;; 13583 *) 13584 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13585 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13586 ;; 13587 esac 13588 ;; 13589 13590 sysv5* | sco3.2v5* | sco5v6*) 13591 # Note: We can NOT use -z defs as we might desire, because we do not 13592 # link with -lc, and that would cause any symbols used from libc to 13593 # always be unresolved, which means just about no library would 13594 # ever link correctly. If we're not using GNU ld we use -z text 13595 # though, which does catch some bad symbols but isn't as heavy-handed 13596 # as -z defs. 13597 no_undefined_flag_CXX='${wl}-z,text' 13598 allow_undefined_flag_CXX='${wl}-z,nodefs' 13599 archive_cmds_need_lc_CXX=no 13600 hardcode_shlibpath_var_CXX=no 13601 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13602 hardcode_libdir_separator_CXX=':' 13603 link_all_deplibs_CXX=yes 13604 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13605 runpath_var='LD_RUN_PATH' 13606 13607 case $cc_basename in 13608 CC*) 13609 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13610 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13611 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13612 '"$old_archive_cmds_CXX" 13613 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13614 '"$reload_cmds_CXX" 13615 ;; 13616 *) 13617 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13618 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13619 ;; 13620 esac 13621 ;; 13622 13623 tandem*) 13624 case $cc_basename in 13625 NCC*) 13626 # NonStop-UX NCC 3.20 13627 # FIXME: insert proper C++ library support 13628 ld_shlibs_CXX=no 13629 ;; 13630 *) 13631 # FIXME: insert proper C++ library support 13632 ld_shlibs_CXX=no 13633 ;; 13634 esac 13635 ;; 13636 13637 vxworks*) 13638 # FIXME: insert proper C++ library support 13639 ld_shlibs_CXX=no 13640 ;; 13641 13642 *) 13643 # FIXME: insert proper C++ library support 13644 ld_shlibs_CXX=no 13645 ;; 13646 esac 13647 13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13649$as_echo "$ld_shlibs_CXX" >&6; } 13650 test "$ld_shlibs_CXX" = no && can_build_shared=no 13651 13652 GCC_CXX="$GXX" 13653 LD_CXX="$LD" 13654 13655 ## CAVEAT EMPTOR: 13656 ## There is no encapsulation within the following macros, do not change 13657 ## the running order or otherwise move them around unless you know exactly 13658 ## what you are doing... 13659 # Dependencies to place before and after the object being linked: 13660predep_objects_CXX= 13661postdep_objects_CXX= 13662predeps_CXX= 13663postdeps_CXX= 13664compiler_lib_search_path_CXX= 13665 13666cat > conftest.$ac_ext <<_LT_EOF 13667class Foo 13668{ 13669public: 13670 Foo (void) { a = 0; } 13671private: 13672 int a; 13673}; 13674_LT_EOF 13675 13676 13677_lt_libdeps_save_CFLAGS=$CFLAGS 13678case "$CC $CFLAGS " in #( 13679*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13680*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13681*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13682esac 13683 13684if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13685 (eval $ac_compile) 2>&5 13686 ac_status=$? 13687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13688 test $ac_status = 0; }; then 13689 # Parse the compiler output and extract the necessary 13690 # objects, libraries and library flags. 13691 13692 # Sentinel used to keep track of whether or not we are before 13693 # the conftest object file. 13694 pre_test_object_deps_done=no 13695 13696 for p in `eval "$output_verbose_link_cmd"`; do 13697 case ${prev}${p} in 13698 13699 -L* | -R* | -l*) 13700 # Some compilers place space between "-{L,R}" and the path. 13701 # Remove the space. 13702 if test $p = "-L" || 13703 test $p = "-R"; then 13704 prev=$p 13705 continue 13706 fi 13707 13708 # Expand the sysroot to ease extracting the directories later. 13709 if test -z "$prev"; then 13710 case $p in 13711 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13712 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13713 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13714 esac 13715 fi 13716 case $p in 13717 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13718 esac 13719 if test "$pre_test_object_deps_done" = no; then 13720 case ${prev} in 13721 -L | -R) 13722 # Internal compiler library paths should come after those 13723 # provided the user. The postdeps already come after the 13724 # user supplied libs so there is no need to process them. 13725 if test -z "$compiler_lib_search_path_CXX"; then 13726 compiler_lib_search_path_CXX="${prev}${p}" 13727 else 13728 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13729 fi 13730 ;; 13731 # The "-l" case would never come before the object being 13732 # linked, so don't bother handling this case. 13733 esac 13734 else 13735 if test -z "$postdeps_CXX"; then 13736 postdeps_CXX="${prev}${p}" 13737 else 13738 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13739 fi 13740 fi 13741 prev= 13742 ;; 13743 13744 *.lto.$objext) ;; # Ignore GCC LTO objects 13745 *.$objext) 13746 # This assumes that the test object file only shows up 13747 # once in the compiler output. 13748 if test "$p" = "conftest.$objext"; then 13749 pre_test_object_deps_done=yes 13750 continue 13751 fi 13752 13753 if test "$pre_test_object_deps_done" = no; then 13754 if test -z "$predep_objects_CXX"; then 13755 predep_objects_CXX="$p" 13756 else 13757 predep_objects_CXX="$predep_objects_CXX $p" 13758 fi 13759 else 13760 if test -z "$postdep_objects_CXX"; then 13761 postdep_objects_CXX="$p" 13762 else 13763 postdep_objects_CXX="$postdep_objects_CXX $p" 13764 fi 13765 fi 13766 ;; 13767 13768 *) ;; # Ignore the rest. 13769 13770 esac 13771 done 13772 13773 # Clean up. 13774 rm -f a.out a.exe 13775else 13776 echo "libtool.m4: error: problem compiling CXX test program" 13777fi 13778 13779$RM -f confest.$objext 13780CFLAGS=$_lt_libdeps_save_CFLAGS 13781 13782# PORTME: override above test on systems where it is broken 13783case $host_os in 13784interix[3-9]*) 13785 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13786 # hack all around it, let's just trust "g++" to DTRT. 13787 predep_objects_CXX= 13788 postdep_objects_CXX= 13789 postdeps_CXX= 13790 ;; 13791 13792linux*) 13793 case `$CC -V 2>&1 | sed 5q` in 13794 *Sun\ C*) 13795 # Sun C++ 5.9 13796 13797 # The more standards-conforming stlport4 library is 13798 # incompatible with the Cstd library. Avoid specifying 13799 # it if it's in CXXFLAGS. Ignore libCrun as 13800 # -library=stlport4 depends on it. 13801 case " $CXX $CXXFLAGS " in 13802 *" -library=stlport4 "*) 13803 solaris_use_stlport4=yes 13804 ;; 13805 esac 13806 13807 if test "$solaris_use_stlport4" != yes; then 13808 postdeps_CXX='-library=Cstd -library=Crun' 13809 fi 13810 ;; 13811 esac 13812 ;; 13813 13814solaris*) 13815 case $cc_basename in 13816 CC* | sunCC*) 13817 # The more standards-conforming stlport4 library is 13818 # incompatible with the Cstd library. Avoid specifying 13819 # it if it's in CXXFLAGS. Ignore libCrun as 13820 # -library=stlport4 depends on it. 13821 case " $CXX $CXXFLAGS " in 13822 *" -library=stlport4 "*) 13823 solaris_use_stlport4=yes 13824 ;; 13825 esac 13826 13827 # Adding this requires a known-good setup of shared libraries for 13828 # Sun compiler versions before 5.6, else PIC objects from an old 13829 # archive will be linked into the output, leading to subtle bugs. 13830 if test "$solaris_use_stlport4" != yes; then 13831 postdeps_CXX='-library=Cstd -library=Crun' 13832 fi 13833 ;; 13834 esac 13835 ;; 13836esac 13837 13838 13839case " $postdeps_CXX " in 13840*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13841esac 13842 compiler_lib_search_dirs_CXX= 13843if test -n "${compiler_lib_search_path_CXX}"; then 13844 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13845fi 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 lt_prog_compiler_wl_CXX= 13878lt_prog_compiler_pic_CXX= 13879lt_prog_compiler_static_CXX= 13880 13881 13882 # C++ specific cases for pic, static, wl, etc. 13883 if test "$GXX" = yes; then 13884 lt_prog_compiler_wl_CXX='-Wl,' 13885 lt_prog_compiler_static_CXX='-static' 13886 13887 case $host_os in 13888 aix*) 13889 # All AIX code is PIC. 13890 if test "$host_cpu" = ia64; then 13891 # AIX 5 now supports IA64 processor 13892 lt_prog_compiler_static_CXX='-Bstatic' 13893 fi 13894 ;; 13895 13896 amigaos*) 13897 case $host_cpu in 13898 powerpc) 13899 # see comment about AmigaOS4 .so support 13900 lt_prog_compiler_pic_CXX='-fPIC' 13901 ;; 13902 m68k) 13903 # FIXME: we need at least 68020 code to build shared libraries, but 13904 # adding the `-m68020' flag to GCC prevents building anything better, 13905 # like `-m68040'. 13906 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13907 ;; 13908 esac 13909 ;; 13910 13911 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13912 # PIC is the default for these OSes. 13913 ;; 13914 mingw* | cygwin* | os2* | pw32* | cegcc*) 13915 # This hack is so that the source file can tell whether it is being 13916 # built for inclusion in a dll (and should export symbols for example). 13917 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13918 # (--disable-auto-import) libraries 13919 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13920 ;; 13921 darwin* | rhapsody*) 13922 # PIC is the default on this platform 13923 # Common symbols not allowed in MH_DYLIB files 13924 lt_prog_compiler_pic_CXX='-fno-common' 13925 ;; 13926 *djgpp*) 13927 # DJGPP does not support shared libraries at all 13928 lt_prog_compiler_pic_CXX= 13929 ;; 13930 haiku*) 13931 # PIC is the default for Haiku. 13932 # The "-static" flag exists, but is broken. 13933 lt_prog_compiler_static_CXX= 13934 ;; 13935 interix[3-9]*) 13936 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13937 # Instead, we relocate shared libraries at runtime. 13938 ;; 13939 sysv4*MP*) 13940 if test -d /usr/nec; then 13941 lt_prog_compiler_pic_CXX=-Kconform_pic 13942 fi 13943 ;; 13944 hpux*) 13945 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13946 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13947 # sets the default TLS model and affects inlining. 13948 case $host_cpu in 13949 hppa*64*) 13950 ;; 13951 *) 13952 lt_prog_compiler_pic_CXX='-fPIC' 13953 ;; 13954 esac 13955 ;; 13956 *qnx* | *nto*) 13957 # QNX uses GNU C++, but need to define -shared option too, otherwise 13958 # it will coredump. 13959 lt_prog_compiler_pic_CXX='-fPIC -shared' 13960 ;; 13961 *) 13962 lt_prog_compiler_pic_CXX='-fPIC' 13963 ;; 13964 esac 13965 else 13966 case $host_os in 13967 aix[4-9]*) 13968 # All AIX code is PIC. 13969 if test "$host_cpu" = ia64; then 13970 # AIX 5 now supports IA64 processor 13971 lt_prog_compiler_static_CXX='-Bstatic' 13972 else 13973 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13974 fi 13975 ;; 13976 chorus*) 13977 case $cc_basename in 13978 cxch68*) 13979 # Green Hills C++ Compiler 13980 # _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" 13981 ;; 13982 esac 13983 ;; 13984 mingw* | cygwin* | os2* | pw32* | cegcc*) 13985 # This hack is so that the source file can tell whether it is being 13986 # built for inclusion in a dll (and should export symbols for example). 13987 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13988 ;; 13989 dgux*) 13990 case $cc_basename in 13991 ec++*) 13992 lt_prog_compiler_pic_CXX='-KPIC' 13993 ;; 13994 ghcx*) 13995 # Green Hills C++ Compiler 13996 lt_prog_compiler_pic_CXX='-pic' 13997 ;; 13998 *) 13999 ;; 14000 esac 14001 ;; 14002 freebsd* | dragonfly*) 14003 # FreeBSD uses GNU C++ 14004 ;; 14005 hpux9* | hpux10* | hpux11*) 14006 case $cc_basename in 14007 CC*) 14008 lt_prog_compiler_wl_CXX='-Wl,' 14009 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14010 if test "$host_cpu" != ia64; then 14011 lt_prog_compiler_pic_CXX='+Z' 14012 fi 14013 ;; 14014 aCC*) 14015 lt_prog_compiler_wl_CXX='-Wl,' 14016 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14017 case $host_cpu in 14018 hppa*64*|ia64*) 14019 # +Z the default 14020 ;; 14021 *) 14022 lt_prog_compiler_pic_CXX='+Z' 14023 ;; 14024 esac 14025 ;; 14026 *) 14027 ;; 14028 esac 14029 ;; 14030 interix*) 14031 # This is c89, which is MS Visual C++ (no shared libs) 14032 # Anyone wants to do a port? 14033 ;; 14034 irix5* | irix6* | nonstopux*) 14035 case $cc_basename in 14036 CC*) 14037 lt_prog_compiler_wl_CXX='-Wl,' 14038 lt_prog_compiler_static_CXX='-non_shared' 14039 # CC pic flag -KPIC is the default. 14040 ;; 14041 *) 14042 ;; 14043 esac 14044 ;; 14045 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14046 case $cc_basename in 14047 KCC*) 14048 # KAI C++ Compiler 14049 lt_prog_compiler_wl_CXX='--backend -Wl,' 14050 lt_prog_compiler_pic_CXX='-fPIC' 14051 ;; 14052 ecpc* ) 14053 # old Intel C++ for x86_64 which still supported -KPIC. 14054 lt_prog_compiler_wl_CXX='-Wl,' 14055 lt_prog_compiler_pic_CXX='-KPIC' 14056 lt_prog_compiler_static_CXX='-static' 14057 ;; 14058 icpc* ) 14059 # Intel C++, used to be incompatible with GCC. 14060 # ICC 10 doesn't accept -KPIC any more. 14061 lt_prog_compiler_wl_CXX='-Wl,' 14062 lt_prog_compiler_pic_CXX='-fPIC' 14063 lt_prog_compiler_static_CXX='-static' 14064 ;; 14065 pgCC* | pgcpp*) 14066 # Portland Group C++ compiler 14067 lt_prog_compiler_wl_CXX='-Wl,' 14068 lt_prog_compiler_pic_CXX='-fpic' 14069 lt_prog_compiler_static_CXX='-Bstatic' 14070 ;; 14071 cxx*) 14072 # Compaq C++ 14073 # Make sure the PIC flag is empty. It appears that all Alpha 14074 # Linux and Compaq Tru64 Unix objects are PIC. 14075 lt_prog_compiler_pic_CXX= 14076 lt_prog_compiler_static_CXX='-non_shared' 14077 ;; 14078 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14079 # IBM XL 8.0, 9.0 on PPC and BlueGene 14080 lt_prog_compiler_wl_CXX='-Wl,' 14081 lt_prog_compiler_pic_CXX='-qpic' 14082 lt_prog_compiler_static_CXX='-qstaticlink' 14083 ;; 14084 *) 14085 case `$CC -V 2>&1 | sed 5q` in 14086 *Sun\ C*) 14087 # Sun C++ 5.9 14088 lt_prog_compiler_pic_CXX='-KPIC' 14089 lt_prog_compiler_static_CXX='-Bstatic' 14090 lt_prog_compiler_wl_CXX='-Qoption ld ' 14091 ;; 14092 esac 14093 ;; 14094 esac 14095 ;; 14096 lynxos*) 14097 ;; 14098 m88k*) 14099 ;; 14100 mvs*) 14101 case $cc_basename in 14102 cxx*) 14103 lt_prog_compiler_pic_CXX='-W c,exportall' 14104 ;; 14105 *) 14106 ;; 14107 esac 14108 ;; 14109 netbsd* | netbsdelf*-gnu) 14110 ;; 14111 *qnx* | *nto*) 14112 # QNX uses GNU C++, but need to define -shared option too, otherwise 14113 # it will coredump. 14114 lt_prog_compiler_pic_CXX='-fPIC -shared' 14115 ;; 14116 osf3* | osf4* | osf5*) 14117 case $cc_basename in 14118 KCC*) 14119 lt_prog_compiler_wl_CXX='--backend -Wl,' 14120 ;; 14121 RCC*) 14122 # Rational C++ 2.4.1 14123 lt_prog_compiler_pic_CXX='-pic' 14124 ;; 14125 cxx*) 14126 # Digital/Compaq C++ 14127 lt_prog_compiler_wl_CXX='-Wl,' 14128 # Make sure the PIC flag is empty. It appears that all Alpha 14129 # Linux and Compaq Tru64 Unix objects are PIC. 14130 lt_prog_compiler_pic_CXX= 14131 lt_prog_compiler_static_CXX='-non_shared' 14132 ;; 14133 *) 14134 ;; 14135 esac 14136 ;; 14137 psos*) 14138 ;; 14139 solaris*) 14140 case $cc_basename in 14141 CC* | sunCC*) 14142 # Sun C++ 4.2, 5.x and Centerline C++ 14143 lt_prog_compiler_pic_CXX='-KPIC' 14144 lt_prog_compiler_static_CXX='-Bstatic' 14145 lt_prog_compiler_wl_CXX='-Qoption ld ' 14146 ;; 14147 gcx*) 14148 # Green Hills C++ Compiler 14149 lt_prog_compiler_pic_CXX='-PIC' 14150 ;; 14151 *) 14152 ;; 14153 esac 14154 ;; 14155 sunos4*) 14156 case $cc_basename in 14157 CC*) 14158 # Sun C++ 4.x 14159 lt_prog_compiler_pic_CXX='-pic' 14160 lt_prog_compiler_static_CXX='-Bstatic' 14161 ;; 14162 lcc*) 14163 # Lucid 14164 lt_prog_compiler_pic_CXX='-pic' 14165 ;; 14166 *) 14167 ;; 14168 esac 14169 ;; 14170 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14171 case $cc_basename in 14172 CC*) 14173 lt_prog_compiler_wl_CXX='-Wl,' 14174 lt_prog_compiler_pic_CXX='-KPIC' 14175 lt_prog_compiler_static_CXX='-Bstatic' 14176 ;; 14177 esac 14178 ;; 14179 tandem*) 14180 case $cc_basename in 14181 NCC*) 14182 # NonStop-UX NCC 3.20 14183 lt_prog_compiler_pic_CXX='-KPIC' 14184 ;; 14185 *) 14186 ;; 14187 esac 14188 ;; 14189 vxworks*) 14190 ;; 14191 *) 14192 lt_prog_compiler_can_build_shared_CXX=no 14193 ;; 14194 esac 14195 fi 14196 14197case $host_os in 14198 # For platforms which do not support PIC, -DPIC is meaningless: 14199 *djgpp*) 14200 lt_prog_compiler_pic_CXX= 14201 ;; 14202 *) 14203 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14204 ;; 14205esac 14206 14207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14208$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14209if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14210 $as_echo_n "(cached) " >&6 14211else 14212 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14213fi 14214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14215$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14216lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14217 14218# 14219# Check to make sure the PIC flag actually works. 14220# 14221if test -n "$lt_prog_compiler_pic_CXX"; then 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14223$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14224if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14225 $as_echo_n "(cached) " >&6 14226else 14227 lt_cv_prog_compiler_pic_works_CXX=no 14228 ac_outfile=conftest.$ac_objext 14229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14230 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14231 # Insert the option either (1) after the last *FLAGS variable, or 14232 # (2) before a word containing "conftest.", or (3) at the end. 14233 # Note that $ac_compile itself does not contain backslashes and begins 14234 # with a dollar sign (not a hyphen), so the echo should work correctly. 14235 # The option is referenced via a variable to avoid confusing sed. 14236 lt_compile=`echo "$ac_compile" | $SED \ 14237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14239 -e 's:$: $lt_compiler_flag:'` 14240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14241 (eval "$lt_compile" 2>conftest.err) 14242 ac_status=$? 14243 cat conftest.err >&5 14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14245 if (exit $ac_status) && test -s "$ac_outfile"; then 14246 # The compiler can only warn and ignore the option if not recognized 14247 # So say no if there are warnings other than the usual output. 14248 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14251 lt_cv_prog_compiler_pic_works_CXX=yes 14252 fi 14253 fi 14254 $RM conftest* 14255 14256fi 14257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14258$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14259 14260if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14261 case $lt_prog_compiler_pic_CXX in 14262 "" | " "*) ;; 14263 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14264 esac 14265else 14266 lt_prog_compiler_pic_CXX= 14267 lt_prog_compiler_can_build_shared_CXX=no 14268fi 14269 14270fi 14271 14272 14273 14274 14275 14276# 14277# Check to make sure the static flag actually works. 14278# 14279wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14281$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14282if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14283 $as_echo_n "(cached) " >&6 14284else 14285 lt_cv_prog_compiler_static_works_CXX=no 14286 save_LDFLAGS="$LDFLAGS" 14287 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14288 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14289 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14290 # The linker can only warn and ignore the option if not recognized 14291 # So say no if there are warnings 14292 if test -s conftest.err; then 14293 # Append any errors to the config.log. 14294 cat conftest.err 1>&5 14295 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14297 if diff conftest.exp conftest.er2 >/dev/null; then 14298 lt_cv_prog_compiler_static_works_CXX=yes 14299 fi 14300 else 14301 lt_cv_prog_compiler_static_works_CXX=yes 14302 fi 14303 fi 14304 $RM -r conftest* 14305 LDFLAGS="$save_LDFLAGS" 14306 14307fi 14308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14309$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14310 14311if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14312 : 14313else 14314 lt_prog_compiler_static_CXX= 14315fi 14316 14317 14318 14319 14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14321$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14322if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14323 $as_echo_n "(cached) " >&6 14324else 14325 lt_cv_prog_compiler_c_o_CXX=no 14326 $RM -r conftest 2>/dev/null 14327 mkdir conftest 14328 cd conftest 14329 mkdir out 14330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14331 14332 lt_compiler_flag="-o out/conftest2.$ac_objext" 14333 # Insert the option either (1) after the last *FLAGS variable, or 14334 # (2) before a word containing "conftest.", or (3) at the end. 14335 # Note that $ac_compile itself does not contain backslashes and begins 14336 # with a dollar sign (not a hyphen), so the echo should work correctly. 14337 lt_compile=`echo "$ac_compile" | $SED \ 14338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14340 -e 's:$: $lt_compiler_flag:'` 14341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14342 (eval "$lt_compile" 2>out/conftest.err) 14343 ac_status=$? 14344 cat out/conftest.err >&5 14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14346 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14347 then 14348 # The compiler can only warn and ignore the option if not recognized 14349 # So say no if there are warnings 14350 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14351 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14352 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14353 lt_cv_prog_compiler_c_o_CXX=yes 14354 fi 14355 fi 14356 chmod u+w . 2>&5 14357 $RM conftest* 14358 # SGI C++ compiler will create directory out/ii_files/ for 14359 # template instantiation 14360 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14361 $RM out/* && rmdir out 14362 cd .. 14363 $RM -r conftest 14364 $RM conftest* 14365 14366fi 14367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14368$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14369 14370 14371 14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14373$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14374if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14375 $as_echo_n "(cached) " >&6 14376else 14377 lt_cv_prog_compiler_c_o_CXX=no 14378 $RM -r conftest 2>/dev/null 14379 mkdir conftest 14380 cd conftest 14381 mkdir out 14382 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14383 14384 lt_compiler_flag="-o out/conftest2.$ac_objext" 14385 # Insert the option either (1) after the last *FLAGS variable, or 14386 # (2) before a word containing "conftest.", or (3) at the end. 14387 # Note that $ac_compile itself does not contain backslashes and begins 14388 # with a dollar sign (not a hyphen), so the echo should work correctly. 14389 lt_compile=`echo "$ac_compile" | $SED \ 14390 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14391 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14392 -e 's:$: $lt_compiler_flag:'` 14393 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14394 (eval "$lt_compile" 2>out/conftest.err) 14395 ac_status=$? 14396 cat out/conftest.err >&5 14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14398 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14399 then 14400 # The compiler can only warn and ignore the option if not recognized 14401 # So say no if there are warnings 14402 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14403 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14404 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14405 lt_cv_prog_compiler_c_o_CXX=yes 14406 fi 14407 fi 14408 chmod u+w . 2>&5 14409 $RM conftest* 14410 # SGI C++ compiler will create directory out/ii_files/ for 14411 # template instantiation 14412 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14413 $RM out/* && rmdir out 14414 cd .. 14415 $RM -r conftest 14416 $RM conftest* 14417 14418fi 14419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14420$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14421 14422 14423 14424 14425hard_links="nottested" 14426if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14427 # do not overwrite the value of need_locks provided by the user 14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14429$as_echo_n "checking if we can lock with hard links... " >&6; } 14430 hard_links=yes 14431 $RM conftest* 14432 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14433 touch conftest.a 14434 ln conftest.a conftest.b 2>&5 || hard_links=no 14435 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14437$as_echo "$hard_links" >&6; } 14438 if test "$hard_links" = no; then 14439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14440$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14441 need_locks=warn 14442 fi 14443else 14444 need_locks=no 14445fi 14446 14447 14448 14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14450$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14451 14452 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14453 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14454 case $host_os in 14455 aix[4-9]*) 14456 # If we're using GNU nm, then we don't want the "-C" option. 14457 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14458 # Also, AIX nm treats weak defined symbols like other global defined 14459 # symbols, whereas GNU nm marks them as "W". 14460 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14461 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14462 else 14463 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14464 fi 14465 ;; 14466 pw32*) 14467 export_symbols_cmds_CXX="$ltdll_cmds" 14468 ;; 14469 cygwin* | mingw* | cegcc*) 14470 case $cc_basename in 14471 cl*) 14472 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14473 ;; 14474 *) 14475 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' 14476 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14477 ;; 14478 esac 14479 ;; 14480 linux* | k*bsd*-gnu | gnu*) 14481 link_all_deplibs_CXX=no 14482 ;; 14483 *) 14484 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14485 ;; 14486 esac 14487 14488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14489$as_echo "$ld_shlibs_CXX" >&6; } 14490test "$ld_shlibs_CXX" = no && can_build_shared=no 14491 14492with_gnu_ld_CXX=$with_gnu_ld 14493 14494 14495 14496 14497 14498 14499# 14500# Do we need to explicitly link libc? 14501# 14502case "x$archive_cmds_need_lc_CXX" in 14503x|xyes) 14504 # Assume -lc should be added 14505 archive_cmds_need_lc_CXX=yes 14506 14507 if test "$enable_shared" = yes && test "$GCC" = yes; then 14508 case $archive_cmds_CXX in 14509 *'~'*) 14510 # FIXME: we may have to deal with multi-command sequences. 14511 ;; 14512 '$CC '*) 14513 # Test whether the compiler implicitly links with -lc since on some 14514 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14515 # to ld, don't add -lc before -lgcc. 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14517$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14518if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14519 $as_echo_n "(cached) " >&6 14520else 14521 $RM conftest* 14522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14523 14524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14525 (eval $ac_compile) 2>&5 14526 ac_status=$? 14527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14528 test $ac_status = 0; } 2>conftest.err; then 14529 soname=conftest 14530 lib=conftest 14531 libobjs=conftest.$ac_objext 14532 deplibs= 14533 wl=$lt_prog_compiler_wl_CXX 14534 pic_flag=$lt_prog_compiler_pic_CXX 14535 compiler_flags=-v 14536 linker_flags=-v 14537 verstring= 14538 output_objdir=. 14539 libname=conftest 14540 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14541 allow_undefined_flag_CXX= 14542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14543 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14544 ac_status=$? 14545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14546 test $ac_status = 0; } 14547 then 14548 lt_cv_archive_cmds_need_lc_CXX=no 14549 else 14550 lt_cv_archive_cmds_need_lc_CXX=yes 14551 fi 14552 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14553 else 14554 cat conftest.err 1>&5 14555 fi 14556 $RM conftest* 14557 14558fi 14559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14560$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14561 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14562 ;; 14563 esac 14564 fi 14565 ;; 14566esac 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14630$as_echo_n "checking dynamic linker characteristics... " >&6; } 14631 14632library_names_spec= 14633libname_spec='lib$name' 14634soname_spec= 14635shrext_cmds=".so" 14636postinstall_cmds= 14637postuninstall_cmds= 14638finish_cmds= 14639finish_eval= 14640shlibpath_var= 14641shlibpath_overrides_runpath=unknown 14642version_type=none 14643dynamic_linker="$host_os ld.so" 14644sys_lib_dlsearch_path_spec="/lib /usr/lib" 14645need_lib_prefix=unknown 14646hardcode_into_libs=no 14647 14648# when you set need_version to no, make sure it does not cause -set_version 14649# flags to be left without arguments 14650need_version=unknown 14651 14652case $host_os in 14653aix3*) 14654 version_type=linux # correct to gnu/linux during the next big refactor 14655 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14656 shlibpath_var=LIBPATH 14657 14658 # AIX 3 has no versioning support, so we append a major version to the name. 14659 soname_spec='${libname}${release}${shared_ext}$major' 14660 ;; 14661 14662aix[4-9]*) 14663 version_type=linux # correct to gnu/linux during the next big refactor 14664 need_lib_prefix=no 14665 need_version=no 14666 hardcode_into_libs=yes 14667 if test "$host_cpu" = ia64; then 14668 # AIX 5 supports IA64 14669 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14670 shlibpath_var=LD_LIBRARY_PATH 14671 else 14672 # With GCC up to 2.95.x, collect2 would create an import file 14673 # for dependence libraries. The import file would start with 14674 # the line `#! .'. This would cause the generated library to 14675 # depend on `.', always an invalid library. This was fixed in 14676 # development snapshots of GCC prior to 3.0. 14677 case $host_os in 14678 aix4 | aix4.[01] | aix4.[01].*) 14679 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14680 echo ' yes ' 14681 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14682 : 14683 else 14684 can_build_shared=no 14685 fi 14686 ;; 14687 esac 14688 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14689 # soname into executable. Probably we can add versioning support to 14690 # collect2, so additional links can be useful in future. 14691 if test "$aix_use_runtimelinking" = yes; then 14692 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14693 # instead of lib<name>.a to let people know that these are not 14694 # typical AIX shared libraries. 14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14696 else 14697 # We preserve .a as extension for shared libraries through AIX4.2 14698 # and later when we are not doing run time linking. 14699 library_names_spec='${libname}${release}.a $libname.a' 14700 soname_spec='${libname}${release}${shared_ext}$major' 14701 fi 14702 shlibpath_var=LIBPATH 14703 fi 14704 ;; 14705 14706amigaos*) 14707 case $host_cpu in 14708 powerpc) 14709 # Since July 2007 AmigaOS4 officially supports .so libraries. 14710 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14712 ;; 14713 m68k) 14714 library_names_spec='$libname.ixlibrary $libname.a' 14715 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14716 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 14717 ;; 14718 esac 14719 ;; 14720 14721beos*) 14722 library_names_spec='${libname}${shared_ext}' 14723 dynamic_linker="$host_os ld.so" 14724 shlibpath_var=LIBRARY_PATH 14725 ;; 14726 14727bsdi[45]*) 14728 version_type=linux # correct to gnu/linux during the next big refactor 14729 need_version=no 14730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14731 soname_spec='${libname}${release}${shared_ext}$major' 14732 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14733 shlibpath_var=LD_LIBRARY_PATH 14734 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14735 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14736 # the default ld.so.conf also contains /usr/contrib/lib and 14737 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14738 # libtool to hard-code these into programs 14739 ;; 14740 14741cygwin* | mingw* | pw32* | cegcc*) 14742 version_type=windows 14743 shrext_cmds=".dll" 14744 need_version=no 14745 need_lib_prefix=no 14746 14747 case $GCC,$cc_basename in 14748 yes,*) 14749 # gcc 14750 library_names_spec='$libname.dll.a' 14751 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14752 postinstall_cmds='base_file=`basename \${file}`~ 14753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14754 dldir=$destdir/`dirname \$dlpath`~ 14755 test -d \$dldir || mkdir -p \$dldir~ 14756 $install_prog $dir/$dlname \$dldir/$dlname~ 14757 chmod a+x \$dldir/$dlname~ 14758 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14759 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14760 fi' 14761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14762 dlpath=$dir/\$dldll~ 14763 $RM \$dlpath' 14764 shlibpath_overrides_runpath=yes 14765 14766 case $host_os in 14767 cygwin*) 14768 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14770 14771 ;; 14772 mingw* | cegcc*) 14773 # MinGW DLLs use traditional 'lib' prefix 14774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14775 ;; 14776 pw32*) 14777 # pw32 DLLs use 'pw' prefix rather than 'lib' 14778 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14779 ;; 14780 esac 14781 dynamic_linker='Win32 ld.exe' 14782 ;; 14783 14784 *,cl*) 14785 # Native MSVC 14786 libname_spec='$name' 14787 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14788 library_names_spec='${libname}.dll.lib' 14789 14790 case $build_os in 14791 mingw*) 14792 sys_lib_search_path_spec= 14793 lt_save_ifs=$IFS 14794 IFS=';' 14795 for lt_path in $LIB 14796 do 14797 IFS=$lt_save_ifs 14798 # Let DOS variable expansion print the short 8.3 style file name. 14799 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14800 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14801 done 14802 IFS=$lt_save_ifs 14803 # Convert to MSYS style. 14804 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14805 ;; 14806 cygwin*) 14807 # Convert to unix form, then to dos form, then back to unix form 14808 # but this time dos style (no spaces!) so that the unix form looks 14809 # like /cygdrive/c/PROGRA~1:/cygdr... 14810 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14811 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14812 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14813 ;; 14814 *) 14815 sys_lib_search_path_spec="$LIB" 14816 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14817 # It is most probably a Windows format PATH. 14818 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14819 else 14820 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14821 fi 14822 # FIXME: find the short name or the path components, as spaces are 14823 # common. (e.g. "Program Files" -> "PROGRA~1") 14824 ;; 14825 esac 14826 14827 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14828 postinstall_cmds='base_file=`basename \${file}`~ 14829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14830 dldir=$destdir/`dirname \$dlpath`~ 14831 test -d \$dldir || mkdir -p \$dldir~ 14832 $install_prog $dir/$dlname \$dldir/$dlname' 14833 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14834 dlpath=$dir/\$dldll~ 14835 $RM \$dlpath' 14836 shlibpath_overrides_runpath=yes 14837 dynamic_linker='Win32 link.exe' 14838 ;; 14839 14840 *) 14841 # Assume MSVC wrapper 14842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14843 dynamic_linker='Win32 ld.exe' 14844 ;; 14845 esac 14846 # FIXME: first we should search . and the directory the executable is in 14847 shlibpath_var=PATH 14848 ;; 14849 14850darwin* | rhapsody*) 14851 dynamic_linker="$host_os dyld" 14852 version_type=darwin 14853 need_lib_prefix=no 14854 need_version=no 14855 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14856 soname_spec='${libname}${release}${major}$shared_ext' 14857 shlibpath_overrides_runpath=yes 14858 shlibpath_var=DYLD_LIBRARY_PATH 14859 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14860 14861 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14862 ;; 14863 14864dgux*) 14865 version_type=linux # correct to gnu/linux during the next big refactor 14866 need_lib_prefix=no 14867 need_version=no 14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14869 soname_spec='${libname}${release}${shared_ext}$major' 14870 shlibpath_var=LD_LIBRARY_PATH 14871 ;; 14872 14873freebsd* | dragonfly*) 14874 # DragonFly does not have aout. When/if they implement a new 14875 # versioning mechanism, adjust this. 14876 if test -x /usr/bin/objformat; then 14877 objformat=`/usr/bin/objformat` 14878 else 14879 case $host_os in 14880 freebsd[23].*) objformat=aout ;; 14881 *) objformat=elf ;; 14882 esac 14883 fi 14884 version_type=freebsd-$objformat 14885 case $version_type in 14886 freebsd-elf*) 14887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14888 need_version=no 14889 need_lib_prefix=no 14890 ;; 14891 freebsd-*) 14892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14893 need_version=yes 14894 ;; 14895 esac 14896 shlibpath_var=LD_LIBRARY_PATH 14897 case $host_os in 14898 freebsd2.*) 14899 shlibpath_overrides_runpath=yes 14900 ;; 14901 freebsd3.[01]* | freebsdelf3.[01]*) 14902 shlibpath_overrides_runpath=yes 14903 hardcode_into_libs=yes 14904 ;; 14905 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14906 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14907 shlibpath_overrides_runpath=no 14908 hardcode_into_libs=yes 14909 ;; 14910 *) # from 4.6 on, and DragonFly 14911 shlibpath_overrides_runpath=yes 14912 hardcode_into_libs=yes 14913 ;; 14914 esac 14915 ;; 14916 14917haiku*) 14918 version_type=linux # correct to gnu/linux during the next big refactor 14919 need_lib_prefix=no 14920 need_version=no 14921 dynamic_linker="$host_os runtime_loader" 14922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14923 soname_spec='${libname}${release}${shared_ext}$major' 14924 shlibpath_var=LIBRARY_PATH 14925 shlibpath_overrides_runpath=yes 14926 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14927 hardcode_into_libs=yes 14928 ;; 14929 14930hpux9* | hpux10* | hpux11*) 14931 # Give a soname corresponding to the major version so that dld.sl refuses to 14932 # link against other versions. 14933 version_type=sunos 14934 need_lib_prefix=no 14935 need_version=no 14936 case $host_cpu in 14937 ia64*) 14938 shrext_cmds='.so' 14939 hardcode_into_libs=yes 14940 dynamic_linker="$host_os dld.so" 14941 shlibpath_var=LD_LIBRARY_PATH 14942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14944 soname_spec='${libname}${release}${shared_ext}$major' 14945 if test "X$HPUX_IA64_MODE" = X32; then 14946 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14947 else 14948 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14949 fi 14950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14951 ;; 14952 hppa*64*) 14953 shrext_cmds='.sl' 14954 hardcode_into_libs=yes 14955 dynamic_linker="$host_os dld.sl" 14956 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14959 soname_spec='${libname}${release}${shared_ext}$major' 14960 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14962 ;; 14963 *) 14964 shrext_cmds='.sl' 14965 dynamic_linker="$host_os dld.sl" 14966 shlibpath_var=SHLIB_PATH 14967 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14969 soname_spec='${libname}${release}${shared_ext}$major' 14970 ;; 14971 esac 14972 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14973 postinstall_cmds='chmod 555 $lib' 14974 # or fails outright, so override atomically: 14975 install_override_mode=555 14976 ;; 14977 14978interix[3-9]*) 14979 version_type=linux # correct to gnu/linux during the next big refactor 14980 need_lib_prefix=no 14981 need_version=no 14982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14983 soname_spec='${libname}${release}${shared_ext}$major' 14984 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14985 shlibpath_var=LD_LIBRARY_PATH 14986 shlibpath_overrides_runpath=no 14987 hardcode_into_libs=yes 14988 ;; 14989 14990irix5* | irix6* | nonstopux*) 14991 case $host_os in 14992 nonstopux*) version_type=nonstopux ;; 14993 *) 14994 if test "$lt_cv_prog_gnu_ld" = yes; then 14995 version_type=linux # correct to gnu/linux during the next big refactor 14996 else 14997 version_type=irix 14998 fi ;; 14999 esac 15000 need_lib_prefix=no 15001 need_version=no 15002 soname_spec='${libname}${release}${shared_ext}$major' 15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15004 case $host_os in 15005 irix5* | nonstopux*) 15006 libsuff= shlibsuff= 15007 ;; 15008 *) 15009 case $LD in # libtool.m4 will add one of these switches to LD 15010 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15011 libsuff= shlibsuff= libmagic=32-bit;; 15012 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15013 libsuff=32 shlibsuff=N32 libmagic=N32;; 15014 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15015 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15016 *) libsuff= shlibsuff= libmagic=never-match;; 15017 esac 15018 ;; 15019 esac 15020 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15021 shlibpath_overrides_runpath=no 15022 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15023 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15024 hardcode_into_libs=yes 15025 ;; 15026 15027# No shared lib support for Linux oldld, aout, or coff. 15028linux*oldld* | linux*aout* | linux*coff*) 15029 dynamic_linker=no 15030 ;; 15031 15032# This must be glibc/ELF. 15033linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15034 version_type=linux # correct to gnu/linux during the next big refactor 15035 need_lib_prefix=no 15036 need_version=no 15037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15038 soname_spec='${libname}${release}${shared_ext}$major' 15039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15040 shlibpath_var=LD_LIBRARY_PATH 15041 shlibpath_overrides_runpath=no 15042 15043 # Some binutils ld are patched to set DT_RUNPATH 15044 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15045 $as_echo_n "(cached) " >&6 15046else 15047 lt_cv_shlibpath_overrides_runpath=no 15048 save_LDFLAGS=$LDFLAGS 15049 save_libdir=$libdir 15050 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15051 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15053/* end confdefs.h. */ 15054 15055int 15056main () 15057{ 15058 15059 ; 15060 return 0; 15061} 15062_ACEOF 15063if ac_fn_cxx_try_link "$LINENO"; then : 15064 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15065 lt_cv_shlibpath_overrides_runpath=yes 15066fi 15067fi 15068rm -f core conftest.err conftest.$ac_objext \ 15069 conftest$ac_exeext conftest.$ac_ext 15070 LDFLAGS=$save_LDFLAGS 15071 libdir=$save_libdir 15072 15073fi 15074 15075 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15076 15077 # This implies no fast_install, which is unacceptable. 15078 # Some rework will be needed to allow for fast_install 15079 # before this can be enabled. 15080 hardcode_into_libs=yes 15081 15082 # Append ld.so.conf contents to the search path 15083 if test -f /etc/ld.so.conf; then 15084 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' ' '` 15085 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15086 fi 15087 15088 # We used to test for /lib/ld.so.1 and disable shared libraries on 15089 # powerpc, because MkLinux only supported shared libraries with the 15090 # GNU dynamic linker. Since this was broken with cross compilers, 15091 # most powerpc-linux boxes support dynamic linking these days and 15092 # people can always --disable-shared, the test was removed, and we 15093 # assume the GNU/Linux dynamic linker is in use. 15094 dynamic_linker='GNU/Linux ld.so' 15095 ;; 15096 15097netbsdelf*-gnu) 15098 version_type=linux 15099 need_lib_prefix=no 15100 need_version=no 15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15102 soname_spec='${libname}${release}${shared_ext}$major' 15103 shlibpath_var=LD_LIBRARY_PATH 15104 shlibpath_overrides_runpath=no 15105 hardcode_into_libs=yes 15106 dynamic_linker='NetBSD ld.elf_so' 15107 ;; 15108 15109netbsd*) 15110 version_type=sunos 15111 need_lib_prefix=no 15112 need_version=no 15113 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15116 dynamic_linker='NetBSD (a.out) ld.so' 15117 else 15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15119 soname_spec='${libname}${release}${shared_ext}$major' 15120 dynamic_linker='NetBSD ld.elf_so' 15121 fi 15122 shlibpath_var=LD_LIBRARY_PATH 15123 shlibpath_overrides_runpath=yes 15124 hardcode_into_libs=yes 15125 ;; 15126 15127newsos6) 15128 version_type=linux # correct to gnu/linux during the next big refactor 15129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15130 shlibpath_var=LD_LIBRARY_PATH 15131 shlibpath_overrides_runpath=yes 15132 ;; 15133 15134*nto* | *qnx*) 15135 version_type=qnx 15136 need_lib_prefix=no 15137 need_version=no 15138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15139 soname_spec='${libname}${release}${shared_ext}$major' 15140 shlibpath_var=LD_LIBRARY_PATH 15141 shlibpath_overrides_runpath=no 15142 hardcode_into_libs=yes 15143 dynamic_linker='ldqnx.so' 15144 ;; 15145 15146openbsd*) 15147 version_type=sunos 15148 sys_lib_dlsearch_path_spec="/usr/lib" 15149 need_lib_prefix=no 15150 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15151 case $host_os in 15152 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15153 *) need_version=no ;; 15154 esac 15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15157 shlibpath_var=LD_LIBRARY_PATH 15158 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15159 case $host_os in 15160 openbsd2.[89] | openbsd2.[89].*) 15161 shlibpath_overrides_runpath=no 15162 ;; 15163 *) 15164 shlibpath_overrides_runpath=yes 15165 ;; 15166 esac 15167 else 15168 shlibpath_overrides_runpath=yes 15169 fi 15170 ;; 15171 15172os2*) 15173 libname_spec='$name' 15174 shrext_cmds=".dll" 15175 need_lib_prefix=no 15176 library_names_spec='$libname${shared_ext} $libname.a' 15177 dynamic_linker='OS/2 ld.exe' 15178 shlibpath_var=LIBPATH 15179 ;; 15180 15181osf3* | osf4* | osf5*) 15182 version_type=osf 15183 need_lib_prefix=no 15184 need_version=no 15185 soname_spec='${libname}${release}${shared_ext}$major' 15186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15187 shlibpath_var=LD_LIBRARY_PATH 15188 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15189 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15190 ;; 15191 15192rdos*) 15193 dynamic_linker=no 15194 ;; 15195 15196solaris*) 15197 version_type=linux # correct to gnu/linux during the next big refactor 15198 need_lib_prefix=no 15199 need_version=no 15200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15201 soname_spec='${libname}${release}${shared_ext}$major' 15202 shlibpath_var=LD_LIBRARY_PATH 15203 shlibpath_overrides_runpath=yes 15204 hardcode_into_libs=yes 15205 # ldd complains unless libraries are executable 15206 postinstall_cmds='chmod +x $lib' 15207 ;; 15208 15209sunos4*) 15210 version_type=sunos 15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15212 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15213 shlibpath_var=LD_LIBRARY_PATH 15214 shlibpath_overrides_runpath=yes 15215 if test "$with_gnu_ld" = yes; then 15216 need_lib_prefix=no 15217 fi 15218 need_version=yes 15219 ;; 15220 15221sysv4 | sysv4.3*) 15222 version_type=linux # correct to gnu/linux during the next big refactor 15223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15224 soname_spec='${libname}${release}${shared_ext}$major' 15225 shlibpath_var=LD_LIBRARY_PATH 15226 case $host_vendor in 15227 sni) 15228 shlibpath_overrides_runpath=no 15229 need_lib_prefix=no 15230 runpath_var=LD_RUN_PATH 15231 ;; 15232 siemens) 15233 need_lib_prefix=no 15234 ;; 15235 motorola) 15236 need_lib_prefix=no 15237 need_version=no 15238 shlibpath_overrides_runpath=no 15239 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15240 ;; 15241 esac 15242 ;; 15243 15244sysv4*MP*) 15245 if test -d /usr/nec ;then 15246 version_type=linux # correct to gnu/linux during the next big refactor 15247 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15248 soname_spec='$libname${shared_ext}.$major' 15249 shlibpath_var=LD_LIBRARY_PATH 15250 fi 15251 ;; 15252 15253sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15254 version_type=freebsd-elf 15255 need_lib_prefix=no 15256 need_version=no 15257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15258 soname_spec='${libname}${release}${shared_ext}$major' 15259 shlibpath_var=LD_LIBRARY_PATH 15260 shlibpath_overrides_runpath=yes 15261 hardcode_into_libs=yes 15262 if test "$with_gnu_ld" = yes; then 15263 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15264 else 15265 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15266 case $host_os in 15267 sco3.2v5*) 15268 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15269 ;; 15270 esac 15271 fi 15272 sys_lib_dlsearch_path_spec='/usr/lib' 15273 ;; 15274 15275tpf*) 15276 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15277 version_type=linux # correct to gnu/linux during the next big refactor 15278 need_lib_prefix=no 15279 need_version=no 15280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15281 shlibpath_var=LD_LIBRARY_PATH 15282 shlibpath_overrides_runpath=no 15283 hardcode_into_libs=yes 15284 ;; 15285 15286uts4*) 15287 version_type=linux # correct to gnu/linux during the next big refactor 15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15289 soname_spec='${libname}${release}${shared_ext}$major' 15290 shlibpath_var=LD_LIBRARY_PATH 15291 ;; 15292 15293*) 15294 dynamic_linker=no 15295 ;; 15296esac 15297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15298$as_echo "$dynamic_linker" >&6; } 15299test "$dynamic_linker" = no && can_build_shared=no 15300 15301variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15302if test "$GCC" = yes; then 15303 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15304fi 15305 15306if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15307 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15308fi 15309if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15310 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15311fi 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15351$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15352hardcode_action_CXX= 15353if test -n "$hardcode_libdir_flag_spec_CXX" || 15354 test -n "$runpath_var_CXX" || 15355 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15356 15357 # We can hardcode non-existent directories. 15358 if test "$hardcode_direct_CXX" != no && 15359 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15360 # have to relink, otherwise we might link with an installed library 15361 # when we should be linking with a yet-to-be-installed one 15362 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15363 test "$hardcode_minus_L_CXX" != no; then 15364 # Linking always hardcodes the temporary library directory. 15365 hardcode_action_CXX=relink 15366 else 15367 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15368 hardcode_action_CXX=immediate 15369 fi 15370else 15371 # We cannot hardcode anything, or else we can only hardcode existing 15372 # directories. 15373 hardcode_action_CXX=unsupported 15374fi 15375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15376$as_echo "$hardcode_action_CXX" >&6; } 15377 15378if test "$hardcode_action_CXX" = relink || 15379 test "$inherit_rpath_CXX" = yes; then 15380 # Fast installation is not supported 15381 enable_fast_install=no 15382elif test "$shlibpath_overrides_runpath" = yes || 15383 test "$enable_shared" = no; then 15384 # Fast installation is not necessary 15385 enable_fast_install=needless 15386fi 15387 15388 15389 15390 15391 15392 15393 15394 fi # test -n "$compiler" 15395 15396 CC=$lt_save_CC 15397 CFLAGS=$lt_save_CFLAGS 15398 LDCXX=$LD 15399 LD=$lt_save_LD 15400 GCC=$lt_save_GCC 15401 with_gnu_ld=$lt_save_with_gnu_ld 15402 lt_cv_path_LDCXX=$lt_cv_path_LD 15403 lt_cv_path_LD=$lt_save_path_LD 15404 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15405 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15406fi # test "$_lt_caught_CXX_error" != yes 15407 15408ac_ext=cpp 15409ac_cpp='$CXXCPP $CPPFLAGS' 15410ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15411ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15412ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 ac_config_commands="$ac_config_commands libtool" 15429 15430 15431 15432 15433# Only expand once: 15434 15435 15436 15437 15438 15439 15440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 15441$as_echo_n "checking for ANSI C header files... " >&6; } 15442if ${ac_cv_header_stdc+:} false; then : 15443 $as_echo_n "(cached) " >&6 15444else 15445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15446/* end confdefs.h. */ 15447#include <stdlib.h> 15448#include <stdarg.h> 15449#include <string.h> 15450#include <float.h> 15451 15452int 15453main () 15454{ 15455 15456 ; 15457 return 0; 15458} 15459_ACEOF 15460if ac_fn_cxx_try_compile "$LINENO"; then : 15461 ac_cv_header_stdc=yes 15462else 15463 ac_cv_header_stdc=no 15464fi 15465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15466 15467if test $ac_cv_header_stdc = yes; then 15468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15470/* end confdefs.h. */ 15471#include <string.h> 15472 15473_ACEOF 15474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15475 $EGREP "memchr" >/dev/null 2>&1; then : 15476 15477else 15478 ac_cv_header_stdc=no 15479fi 15480rm -f conftest* 15481 15482fi 15483 15484if test $ac_cv_header_stdc = yes; then 15485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15487/* end confdefs.h. */ 15488#include <stdlib.h> 15489 15490_ACEOF 15491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15492 $EGREP "free" >/dev/null 2>&1; then : 15493 15494else 15495 ac_cv_header_stdc=no 15496fi 15497rm -f conftest* 15498 15499fi 15500 15501if test $ac_cv_header_stdc = yes; then 15502 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15503 if test "$cross_compiling" = yes; then : 15504 : 15505else 15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15507/* end confdefs.h. */ 15508#include <ctype.h> 15509#include <stdlib.h> 15510#if ((' ' & 0x0FF) == 0x020) 15511# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15512# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15513#else 15514# define ISLOWER(c) \ 15515 (('a' <= (c) && (c) <= 'i') \ 15516 || ('j' <= (c) && (c) <= 'r') \ 15517 || ('s' <= (c) && (c) <= 'z')) 15518# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15519#endif 15520 15521#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15522int 15523main () 15524{ 15525 int i; 15526 for (i = 0; i < 256; i++) 15527 if (XOR (islower (i), ISLOWER (i)) 15528 || toupper (i) != TOUPPER (i)) 15529 return 2; 15530 return 0; 15531} 15532_ACEOF 15533if ac_fn_cxx_try_run "$LINENO"; then : 15534 15535else 15536 ac_cv_header_stdc=no 15537fi 15538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15539 conftest.$ac_objext conftest.beam conftest.$ac_ext 15540fi 15541 15542fi 15543fi 15544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 15545$as_echo "$ac_cv_header_stdc" >&6; } 15546if test $ac_cv_header_stdc = yes; then 15547 15548$as_echo "#define STDC_HEADERS 1" >>confdefs.h 15549 15550fi 15551 15552#AC_HEADER_SYS_WAIT 15553# add any others you want to check for here 15554for ac_header in cpuid.h 15555do : 15556 ac_fn_cxx_check_header_mongrel "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default" 15557if test "x$ac_cv_header_cpuid_h" = xyes; then : 15558 cat >>confdefs.h <<_ACEOF 15559#define HAVE_CPUID_H 1 15560_ACEOF 15561 15562fi 15563 15564done 15565 15566 15567if test "x$ac_cv_header_cpuid_h" = "xno"; then 15568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The cpuid.h file was not found therefore the x86 optimizations will be disabled." >&5 15569$as_echo "$as_me: WARNING: The cpuid.h file was not found therefore the x86 optimizations will be disabled." >&2;} 15570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If using a x86 architecture and optimizations are desired then please install gcc (>= 4.3)." >&5 15571$as_echo "$as_me: WARNING: If using a x86 architecture and optimizations are desired then please install gcc (>= 4.3)." >&2;} 15572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If using a non-x86 architecture then this is expected and can be ignored." >&5 15573$as_echo "$as_me: WARNING: If using a non-x86 architecture then this is expected and can be ignored." >&2;} 15574fi 15575 15576 15577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 15578$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 15579if ${ac_cv_c_const+:} false; then : 15580 $as_echo_n "(cached) " >&6 15581else 15582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15583/* end confdefs.h. */ 15584 15585int 15586main () 15587{ 15588 15589#ifndef __cplusplus 15590 /* Ultrix mips cc rejects this sort of thing. */ 15591 typedef int charset[2]; 15592 const charset cs = { 0, 0 }; 15593 /* SunOS 4.1.1 cc rejects this. */ 15594 char const *const *pcpcc; 15595 char **ppc; 15596 /* NEC SVR4.0.2 mips cc rejects this. */ 15597 struct point {int x, y;}; 15598 static struct point const zero = {0,0}; 15599 /* AIX XL C 1.02.0.0 rejects this. 15600 It does not let you subtract one const X* pointer from another in 15601 an arm of an if-expression whose if-part is not a constant 15602 expression */ 15603 const char *g = "string"; 15604 pcpcc = &g + (g ? g-g : 0); 15605 /* HPUX 7.0 cc rejects these. */ 15606 ++pcpcc; 15607 ppc = (char**) pcpcc; 15608 pcpcc = (char const *const *) ppc; 15609 { /* SCO 3.2v4 cc rejects this sort of thing. */ 15610 char tx; 15611 char *t = &tx; 15612 char const *s = 0 ? (char *) 0 : (char const *) 0; 15613 15614 *t++ = 0; 15615 if (s) return 0; 15616 } 15617 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 15618 int x[] = {25, 17}; 15619 const int *foo = &x[0]; 15620 ++foo; 15621 } 15622 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 15623 typedef const int *iptr; 15624 iptr p = 0; 15625 ++p; 15626 } 15627 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 15628 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 15629 struct s { int j; const int *ap[3]; } bx; 15630 struct s *b = &bx; b->j = 5; 15631 } 15632 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 15633 const int foo = 10; 15634 if (!foo) return 0; 15635 } 15636 return !cs[0] && !zero.x; 15637#endif 15638 15639 ; 15640 return 0; 15641} 15642_ACEOF 15643if ac_fn_cxx_try_compile "$LINENO"; then : 15644 ac_cv_c_const=yes 15645else 15646 ac_cv_c_const=no 15647fi 15648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15649fi 15650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 15651$as_echo "$ac_cv_c_const" >&6; } 15652if test $ac_cv_c_const = no; then 15653 15654$as_echo "#define const /**/" >>confdefs.h 15655 15656fi 15657 15658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 15659$as_echo_n "checking for inline... " >&6; } 15660if ${ac_cv_c_inline+:} false; then : 15661 $as_echo_n "(cached) " >&6 15662else 15663 ac_cv_c_inline=no 15664for ac_kw in inline __inline__ __inline; do 15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15666/* end confdefs.h. */ 15667#ifndef __cplusplus 15668typedef int foo_t; 15669static $ac_kw foo_t static_foo () {return 0; } 15670$ac_kw foo_t foo () {return 0; } 15671#endif 15672 15673_ACEOF 15674if ac_fn_cxx_try_compile "$LINENO"; then : 15675 ac_cv_c_inline=$ac_kw 15676fi 15677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15678 test "$ac_cv_c_inline" != no && break 15679done 15680 15681fi 15682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 15683$as_echo "$ac_cv_c_inline" >&6; } 15684 15685case $ac_cv_c_inline in 15686 inline | yes) ;; 15687 *) 15688 case $ac_cv_c_inline in 15689 no) ac_val=;; 15690 *) ac_val=$ac_cv_c_inline;; 15691 esac 15692 cat >>confdefs.h <<_ACEOF 15693#ifndef __cplusplus 15694#define inline $ac_val 15695#endif 15696_ACEOF 15697 ;; 15698esac 15699 15700#AC_TYPE_OFF_T 15701#AC_TYPE_SIZE_T 15702 15703 15704# Check whether --enable-integer-samples was given. 15705if test "${enable_integer_samples+set}" = set; then : 15706 enableval=$enable_integer_samples; 15707else 15708 enable_integer_samples=no 15709fi 15710 15711 15712 15713# Let the user enable/disable the x86 optimizations. 15714# Useful when compiling on non-x86 architectures. 15715# Check whether --enable-x86-optimizations was given. 15716if test "${enable_x86_optimizations+set}" = set; then : 15717 enableval=$enable_x86_optimizations; enable_x86_optimizations="${enableval}" 15718else 15719 enable_x86_optimizations=yes 15720fi 15721 15722 15723# Tell the Makefile.am if the user wants to disable optimizations. 15724# Makefile.am will enable them by default if support is available. 15725# Note: We check if optimizations are supported a few lines down. 15726 if test "x$enable_x86_optimizations" = "xyes"; then 15727 X86_OPTIMIZATIONS_TRUE= 15728 X86_OPTIMIZATIONS_FALSE='#' 15729else 15730 X86_OPTIMIZATIONS_TRUE='#' 15731 X86_OPTIMIZATIONS_FALSE= 15732fi 15733 15734 15735 15736if test "x$enable_integer_samples" = "xyes"; then 15737 echo "****** Integer sample type enabled ******" 15738 15739$as_echo "#define SOUNDTOUCH_INTEGER_SAMPLES 1" >>confdefs.h 15740 15741else 15742 echo "****** Float sample type enabled ******" 15743 15744$as_echo "#define SOUNDTOUCH_FLOAT_SAMPLES 1" >>confdefs.h 15745 15746fi 15747 15748 15749# Check if optimizations are supported in the system at build time. 15750if test "x$enable_x86_optimizations" = "xyes" -a "x$ac_cv_header_cpuid_h" = "xyes"; then 15751 echo "****** x86 optimizations enabled ******" 15752 15753 original_saved_CXXFLAGS=$CXXFLAGS 15754 have_mmx_intrinsics=no 15755 OPT_CXXFLAGS="-mmmx -Winline" 15756 CXXFLAGS="$OPT_CXXFLAGS $CXXFLAGS" 15757 15758 # Check if the user can compile MMX code using intrinsics. 15759 # GCC supports MMX intrinsics since version 3.3 15760 # A more recent GCC (>= 4.3) is recommended. 15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15762/* end confdefs.h. */ 15763 15764 #if defined(__GNUC__) && (__GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 3)) 15765 #error "Need GCC >= 3.3 for MMX intrinsics" 15766 #endif 15767 #include <mmintrin.h> 15768 int main () { 15769 __m64 loop = _mm_cvtsi32_si64 (1); 15770 return _mm_cvtsi64_si32 (loop); 15771 } 15772_ACEOF 15773if ac_fn_cxx_try_compile "$LINENO"; then : 15774 have_mmx_intrinsics=yes 15775fi 15776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15777 CXXFLAGS=$original_saved_CXXFLAGS 15778 15779 # Inform the user if we did or did not find MMX support. 15780 # 15781 # If we enable optimization and integer samples we only require MMX. 15782 # Disable optimizations in the SSTypes.h file if this is not the case. 15783 if test "x$have_mmx_intrinsics" = "xyes" ; then 15784 echo "****** MMX support found ******" 15785 else 15786 echo "****** No MMX support found ******" 15787 if test "x$enable_integer_samples" = "xyes"; then 15788 echo "****** Disabling optimizations. Using integer samples with no MMX support ******" 15789 15790$as_echo "#define SOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS 1" >>confdefs.h 15791 15792 fi 15793 fi 15794 15795 15796 have_sse_intrinsics=no 15797 OPT_CXXFLAGS="-msse -Winline" 15798 CXXFLAGS="$OPT_CXXFLAGS $CXXFLAGS" 15799 15800 # Check if the user can compile SSE code using intrinsics. 15801 # GCC supports SSE intrinsics since version 3.3 15802 # A more recent GCC (>= 4.3) is recommended. 15803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15804/* end confdefs.h. */ 15805 15806 #if defined(__GNUC__) && (__GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 3)) 15807 #error "Need GCC >= 3.3 for SSE intrinsics" 15808 #endif 15809 #include <xmmintrin.h> 15810 int main () { 15811 _mm_setzero_ps(); 15812 return 0; 15813 } 15814_ACEOF 15815if ac_fn_cxx_try_compile "$LINENO"; then : 15816 have_sse_intrinsics=yes 15817fi 15818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15819 CXXFLAGS=$original_saved_CXXFLAGS 15820 15821 # Inform the user if we did or did not find SSE support. 15822 # 15823 # If we enable optimization and float samples we only require SSE. 15824 # Disable optimizations in the SSTypes.h file if this is not the case. 15825 if test "x$have_sse_intrinsics" = "xyes" ; then 15826 echo "****** SSE support found ******" 15827 else 15828 echo "****** No SSE support found ******" 15829 if test "x$enable_integer_samples" != "xyes"; then 15830 echo "****** Disabling optimizations. Using float samples with no SSE support ******" 15831 15832$as_echo "#define SOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS 1" >>confdefs.h 15833 15834 fi 15835 fi 15836 15837else 15838 # Disable optimizations in SSTypes.h since the user requested it. 15839 echo "****** x86 optimizations disabled ******" 15840 15841$as_echo "#define SOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS 1" >>confdefs.h 15842 15843fi 15844 15845# SSTypes.h by default enables optimizations. Those already got disabled if 15846# the user requested for it or if the system does not support them. 15847# 15848# Now tell the Makefile.am the optimizations that are supported. 15849# Note: 15850# Makefile.am already knows if the user asked for optimizations. We apply 15851# optimizations by default (if support is available) and then disable all of 15852# them if the user requested it. 15853 if test "x$have_mmx_intrinsics" = "xyes"; then 15854 HAVE_MMX_TRUE= 15855 HAVE_MMX_FALSE='#' 15856else 15857 HAVE_MMX_TRUE='#' 15858 HAVE_MMX_FALSE= 15859fi 15860 15861 if test "x$have_sse_intrinsics" = "xyes"; then 15862 HAVE_SSE_TRUE= 15863 HAVE_SSE_FALSE='#' 15864else 15865 HAVE_SSE_TRUE='#' 15866 HAVE_SSE_FALSE= 15867fi 15868 15869 15870 15871for ac_header in stdlib.h 15872do : 15873 ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 15874if test "x$ac_cv_header_stdlib_h" = xyes; then : 15875 cat >>confdefs.h <<_ACEOF 15876#define HAVE_STDLIB_H 1 15877_ACEOF 15878 15879fi 15880 15881done 15882 15883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 15884$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 15885if ${ac_cv_func_malloc_0_nonnull+:} false; then : 15886 $as_echo_n "(cached) " >&6 15887else 15888 if test "$cross_compiling" = yes; then : 15889 ac_cv_func_malloc_0_nonnull=no 15890else 15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15892/* end confdefs.h. */ 15893#if defined STDC_HEADERS || defined HAVE_STDLIB_H 15894# include <stdlib.h> 15895#else 15896char *malloc (); 15897#endif 15898 15899int 15900main () 15901{ 15902return ! malloc (0); 15903 ; 15904 return 0; 15905} 15906_ACEOF 15907if ac_fn_cxx_try_run "$LINENO"; then : 15908 ac_cv_func_malloc_0_nonnull=yes 15909else 15910 ac_cv_func_malloc_0_nonnull=no 15911fi 15912rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15913 conftest.$ac_objext conftest.beam conftest.$ac_ext 15914fi 15915 15916fi 15917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 15918$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 15919if test $ac_cv_func_malloc_0_nonnull = yes; then : 15920 15921$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 15922 15923else 15924 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 15925 15926 case " $LIBOBJS " in 15927 *" malloc.$ac_objext "* ) ;; 15928 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 15929 ;; 15930esac 15931 15932 15933$as_echo "#define malloc rpl_malloc" >>confdefs.h 15934 15935fi 15936 15937 15938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 15939$as_echo_n "checking return type of signal handlers... " >&6; } 15940if ${ac_cv_type_signal+:} false; then : 15941 $as_echo_n "(cached) " >&6 15942else 15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15944/* end confdefs.h. */ 15945#include <sys/types.h> 15946#include <signal.h> 15947 15948int 15949main () 15950{ 15951return *(signal (0, 0)) (0) == 1; 15952 ; 15953 return 0; 15954} 15955_ACEOF 15956if ac_fn_cxx_try_compile "$LINENO"; then : 15957 ac_cv_type_signal=int 15958else 15959 ac_cv_type_signal=void 15960fi 15961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15962fi 15963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 15964$as_echo "$ac_cv_type_signal" >&6; } 15965 15966cat >>confdefs.h <<_ACEOF 15967#define RETSIGTYPE $ac_cv_type_signal 15968_ACEOF 15969 15970 15971 15972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 15973$as_echo_n "checking for sqrt in -lm... " >&6; } 15974if ${ac_cv_lib_m_sqrt+:} false; then : 15975 $as_echo_n "(cached) " >&6 15976else 15977 ac_check_lib_save_LIBS=$LIBS 15978LIBS="-lm $LIBS" 15979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15980/* end confdefs.h. */ 15981 15982/* Override any GCC internal prototype to avoid an error. 15983 Use char because int might match the return type of a GCC 15984 builtin and then its argument prototype would still apply. */ 15985#ifdef __cplusplus 15986extern "C" 15987#endif 15988char sqrt (); 15989int 15990main () 15991{ 15992return sqrt (); 15993 ; 15994 return 0; 15995} 15996_ACEOF 15997if ac_fn_cxx_try_link "$LINENO"; then : 15998 ac_cv_lib_m_sqrt=yes 15999else 16000 ac_cv_lib_m_sqrt=no 16001fi 16002rm -f core conftest.err conftest.$ac_objext \ 16003 conftest$ac_exeext conftest.$ac_ext 16004LIBS=$ac_check_lib_save_LIBS 16005fi 16006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 16007$as_echo "$ac_cv_lib_m_sqrt" >&6; } 16008if test "x$ac_cv_lib_m_sqrt" = xyes; then : 16009 cat >>confdefs.h <<_ACEOF 16010#define HAVE_LIBM 1 16011_ACEOF 16012 16013 LIBS="-lm $LIBS" 16014 16015else 16016 as_fn_error $? "compatible libc math library not found" "$LINENO" 5 16017fi 16018 16019 16020#AC_CHECK_FUNCS([floor ftruncate memmove memset mkdir modf pow realpath sqrt strchr strdup strerror strrchr strstr strtol]) 16021 16022 16023 16024 16025 16026 16027 16028#AM_GNU_GETTEXT_VERSION([0.11.5]) 16029#AM_GNU_GETTEXT([external]) 16030 16031 16032 16033 16034 16035 16036ac_config_files="$ac_config_files Makefile source/Makefile source/SoundTouch/Makefile source/SoundStretch/Makefile include/Makefile" 16037 16038 16039ac_config_files="$ac_config_files soundtouch.pc" 16040 16041cat >confcache <<\_ACEOF 16042# This file is a shell script that caches the results of configure 16043# tests run on this system so they can be shared between configure 16044# scripts and configure runs, see configure's option --config-cache. 16045# It is not useful on other systems. If it contains results you don't 16046# want to keep, you may remove or edit it. 16047# 16048# config.status only pays attention to the cache file if you give it 16049# the --recheck option to rerun configure. 16050# 16051# `ac_cv_env_foo' variables (set or unset) will be overridden when 16052# loading this file, other *unset* `ac_cv_foo' will be assigned the 16053# following values. 16054 16055_ACEOF 16056 16057# The following way of writing the cache mishandles newlines in values, 16058# but we know of no workaround that is simple, portable, and efficient. 16059# So, we kill variables containing newlines. 16060# Ultrix sh set writes to stderr and can't be redirected directly, 16061# and sets the high bit in the cache file unless we assign to the vars. 16062( 16063 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16064 eval ac_val=\$$ac_var 16065 case $ac_val in #( 16066 *${as_nl}*) 16067 case $ac_var in #( 16068 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16069$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16070 esac 16071 case $ac_var in #( 16072 _ | IFS | as_nl) ;; #( 16073 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16074 *) { eval $ac_var=; unset $ac_var;} ;; 16075 esac ;; 16076 esac 16077 done 16078 16079 (set) 2>&1 | 16080 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16081 *${as_nl}ac_space=\ *) 16082 # `set' does not quote correctly, so add quotes: double-quote 16083 # substitution turns \\\\ into \\, and sed turns \\ into \. 16084 sed -n \ 16085 "s/'/'\\\\''/g; 16086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16087 ;; #( 16088 *) 16089 # `set' quotes correctly as required by POSIX, so do not add quotes. 16090 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16091 ;; 16092 esac | 16093 sort 16094) | 16095 sed ' 16096 /^ac_cv_env_/b end 16097 t clear 16098 :clear 16099 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16100 t end 16101 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16102 :end' >>confcache 16103if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16104 if test -w "$cache_file"; then 16105 if test "x$cache_file" != "x/dev/null"; then 16106 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16107$as_echo "$as_me: updating cache $cache_file" >&6;} 16108 if test ! -f "$cache_file" || test -h "$cache_file"; then 16109 cat confcache >"$cache_file" 16110 else 16111 case $cache_file in #( 16112 */* | ?:*) 16113 mv -f confcache "$cache_file"$$ && 16114 mv -f "$cache_file"$$ "$cache_file" ;; #( 16115 *) 16116 mv -f confcache "$cache_file" ;; 16117 esac 16118 fi 16119 fi 16120 else 16121 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16122$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16123 fi 16124fi 16125rm -f confcache 16126 16127test "x$prefix" = xNONE && prefix=$ac_default_prefix 16128# Let make expand exec_prefix. 16129test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16130 16131DEFS=-DHAVE_CONFIG_H 16132 16133ac_libobjs= 16134ac_ltlibobjs= 16135for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16136 # 1. Remove the extension, and $U if already installed. 16137 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16138 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16139 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16140 # will be set to the directory where LIBOBJS objects are built. 16141 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16142 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16143done 16144LIBOBJS=$ac_libobjs 16145 16146LTLIBOBJS=$ac_ltlibobjs 16147 16148 16149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16150$as_echo_n "checking that generated files are newer than configure... " >&6; } 16151 if test -n "$am_sleep_pid"; then 16152 # Hide warnings about reused PIDs. 16153 wait $am_sleep_pid 2>/dev/null 16154 fi 16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16156$as_echo "done" >&6; } 16157 if test -n "$EXEEXT"; then 16158 am__EXEEXT_TRUE= 16159 am__EXEEXT_FALSE='#' 16160else 16161 am__EXEEXT_TRUE='#' 16162 am__EXEEXT_FALSE= 16163fi 16164 16165if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 16166 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 16167Usually this means the macro was only invoked conditionally." "$LINENO" 5 16168fi 16169if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16170 as_fn_error $? "conditional \"AMDEP\" was never defined. 16171Usually this means the macro was only invoked conditionally." "$LINENO" 5 16172fi 16173if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16174 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16175Usually this means the macro was only invoked conditionally." "$LINENO" 5 16176fi 16177if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16178 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16179Usually this means the macro was only invoked conditionally." "$LINENO" 5 16180fi 16181if test -z "${X86_OPTIMIZATIONS_TRUE}" && test -z "${X86_OPTIMIZATIONS_FALSE}"; then 16182 as_fn_error $? "conditional \"X86_OPTIMIZATIONS\" was never defined. 16183Usually this means the macro was only invoked conditionally." "$LINENO" 5 16184fi 16185if test -z "${HAVE_MMX_TRUE}" && test -z "${HAVE_MMX_FALSE}"; then 16186 as_fn_error $? "conditional \"HAVE_MMX\" was never defined. 16187Usually this means the macro was only invoked conditionally." "$LINENO" 5 16188fi 16189if test -z "${HAVE_SSE_TRUE}" && test -z "${HAVE_SSE_FALSE}"; then 16190 as_fn_error $? "conditional \"HAVE_SSE\" was never defined. 16191Usually this means the macro was only invoked conditionally." "$LINENO" 5 16192fi 16193 16194: "${CONFIG_STATUS=./config.status}" 16195ac_write_fail=0 16196ac_clean_files_save=$ac_clean_files 16197ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16198{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16199$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16200as_write_fail=0 16201cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16202#! $SHELL 16203# Generated by $as_me. 16204# Run this file to recreate the current configuration. 16205# Compiler output produced by configure, useful for debugging 16206# configure, is in config.log if it exists. 16207 16208debug=false 16209ac_cs_recheck=false 16210ac_cs_silent=false 16211 16212SHELL=\${CONFIG_SHELL-$SHELL} 16213export SHELL 16214_ASEOF 16215cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16216## -------------------- ## 16217## M4sh Initialization. ## 16218## -------------------- ## 16219 16220# Be more Bourne compatible 16221DUALCASE=1; export DUALCASE # for MKS sh 16222if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16223 emulate sh 16224 NULLCMD=: 16225 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16226 # is contrary to our usage. Disable this feature. 16227 alias -g '${1+"$@"}'='"$@"' 16228 setopt NO_GLOB_SUBST 16229else 16230 case `(set -o) 2>/dev/null` in #( 16231 *posix*) : 16232 set -o posix ;; #( 16233 *) : 16234 ;; 16235esac 16236fi 16237 16238 16239as_nl=' 16240' 16241export as_nl 16242# Printing a long string crashes Solaris 7 /usr/bin/printf. 16243as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16244as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16245as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16246# Prefer a ksh shell builtin over an external printf program on Solaris, 16247# but without wasting forks for bash or zsh. 16248if test -z "$BASH_VERSION$ZSH_VERSION" \ 16249 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16250 as_echo='print -r --' 16251 as_echo_n='print -rn --' 16252elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16253 as_echo='printf %s\n' 16254 as_echo_n='printf %s' 16255else 16256 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16257 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16258 as_echo_n='/usr/ucb/echo -n' 16259 else 16260 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16261 as_echo_n_body='eval 16262 arg=$1; 16263 case $arg in #( 16264 *"$as_nl"*) 16265 expr "X$arg" : "X\\(.*\\)$as_nl"; 16266 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16267 esac; 16268 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16269 ' 16270 export as_echo_n_body 16271 as_echo_n='sh -c $as_echo_n_body as_echo' 16272 fi 16273 export as_echo_body 16274 as_echo='sh -c $as_echo_body as_echo' 16275fi 16276 16277# The user is always right. 16278if test "${PATH_SEPARATOR+set}" != set; then 16279 PATH_SEPARATOR=: 16280 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16281 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16282 PATH_SEPARATOR=';' 16283 } 16284fi 16285 16286 16287# IFS 16288# We need space, tab and new line, in precisely that order. Quoting is 16289# there to prevent editors from complaining about space-tab. 16290# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16291# splitting by setting IFS to empty value.) 16292IFS=" "" $as_nl" 16293 16294# Find who we are. Look in the path if we contain no directory separator. 16295as_myself= 16296case $0 in #(( 16297 *[\\/]* ) as_myself=$0 ;; 16298 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16299for as_dir in $PATH 16300do 16301 IFS=$as_save_IFS 16302 test -z "$as_dir" && as_dir=. 16303 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16304 done 16305IFS=$as_save_IFS 16306 16307 ;; 16308esac 16309# We did not find ourselves, most probably we were run as `sh COMMAND' 16310# in which case we are not to be found in the path. 16311if test "x$as_myself" = x; then 16312 as_myself=$0 16313fi 16314if test ! -f "$as_myself"; then 16315 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16316 exit 1 16317fi 16318 16319# Unset variables that we do not need and which cause bugs (e.g. in 16320# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16321# suppresses any "Segmentation fault" message there. '((' could 16322# trigger a bug in pdksh 5.2.14. 16323for as_var in BASH_ENV ENV MAIL MAILPATH 16324do eval test x\${$as_var+set} = xset \ 16325 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16326done 16327PS1='$ ' 16328PS2='> ' 16329PS4='+ ' 16330 16331# NLS nuisances. 16332LC_ALL=C 16333export LC_ALL 16334LANGUAGE=C 16335export LANGUAGE 16336 16337# CDPATH. 16338(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16339 16340 16341# as_fn_error STATUS ERROR [LINENO LOG_FD] 16342# ---------------------------------------- 16343# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16344# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16345# script with STATUS, using 1 if that was 0. 16346as_fn_error () 16347{ 16348 as_status=$1; test $as_status -eq 0 && as_status=1 16349 if test "$4"; then 16350 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16351 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16352 fi 16353 $as_echo "$as_me: error: $2" >&2 16354 as_fn_exit $as_status 16355} # as_fn_error 16356 16357 16358# as_fn_set_status STATUS 16359# ----------------------- 16360# Set $? to STATUS, without forking. 16361as_fn_set_status () 16362{ 16363 return $1 16364} # as_fn_set_status 16365 16366# as_fn_exit STATUS 16367# ----------------- 16368# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16369as_fn_exit () 16370{ 16371 set +e 16372 as_fn_set_status $1 16373 exit $1 16374} # as_fn_exit 16375 16376# as_fn_unset VAR 16377# --------------- 16378# Portably unset VAR. 16379as_fn_unset () 16380{ 16381 { eval $1=; unset $1;} 16382} 16383as_unset=as_fn_unset 16384# as_fn_append VAR VALUE 16385# ---------------------- 16386# Append the text in VALUE to the end of the definition contained in VAR. Take 16387# advantage of any shell optimizations that allow amortized linear growth over 16388# repeated appends, instead of the typical quadratic growth present in naive 16389# implementations. 16390if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16391 eval 'as_fn_append () 16392 { 16393 eval $1+=\$2 16394 }' 16395else 16396 as_fn_append () 16397 { 16398 eval $1=\$$1\$2 16399 } 16400fi # as_fn_append 16401 16402# as_fn_arith ARG... 16403# ------------------ 16404# Perform arithmetic evaluation on the ARGs, and store the result in the 16405# global $as_val. Take advantage of shells that can avoid forks. The arguments 16406# must be portable across $(()) and expr. 16407if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16408 eval 'as_fn_arith () 16409 { 16410 as_val=$(( $* )) 16411 }' 16412else 16413 as_fn_arith () 16414 { 16415 as_val=`expr "$@" || test $? -eq 1` 16416 } 16417fi # as_fn_arith 16418 16419 16420if expr a : '\(a\)' >/dev/null 2>&1 && 16421 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16422 as_expr=expr 16423else 16424 as_expr=false 16425fi 16426 16427if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16428 as_basename=basename 16429else 16430 as_basename=false 16431fi 16432 16433if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16434 as_dirname=dirname 16435else 16436 as_dirname=false 16437fi 16438 16439as_me=`$as_basename -- "$0" || 16440$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16441 X"$0" : 'X\(//\)$' \| \ 16442 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16443$as_echo X/"$0" | 16444 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16445 s//\1/ 16446 q 16447 } 16448 /^X\/\(\/\/\)$/{ 16449 s//\1/ 16450 q 16451 } 16452 /^X\/\(\/\).*/{ 16453 s//\1/ 16454 q 16455 } 16456 s/.*/./; q'` 16457 16458# Avoid depending upon Character Ranges. 16459as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16460as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16461as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16462as_cr_digits='0123456789' 16463as_cr_alnum=$as_cr_Letters$as_cr_digits 16464 16465ECHO_C= ECHO_N= ECHO_T= 16466case `echo -n x` in #((((( 16467-n*) 16468 case `echo 'xy\c'` in 16469 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16470 xy) ECHO_C='\c';; 16471 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16472 ECHO_T=' ';; 16473 esac;; 16474*) 16475 ECHO_N='-n';; 16476esac 16477 16478rm -f conf$$ conf$$.exe conf$$.file 16479if test -d conf$$.dir; then 16480 rm -f conf$$.dir/conf$$.file 16481else 16482 rm -f conf$$.dir 16483 mkdir conf$$.dir 2>/dev/null 16484fi 16485if (echo >conf$$.file) 2>/dev/null; then 16486 if ln -s conf$$.file conf$$ 2>/dev/null; then 16487 as_ln_s='ln -s' 16488 # ... but there are two gotchas: 16489 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16490 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16491 # In both cases, we have to default to `cp -pR'. 16492 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16493 as_ln_s='cp -pR' 16494 elif ln conf$$.file conf$$ 2>/dev/null; then 16495 as_ln_s=ln 16496 else 16497 as_ln_s='cp -pR' 16498 fi 16499else 16500 as_ln_s='cp -pR' 16501fi 16502rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16503rmdir conf$$.dir 2>/dev/null 16504 16505 16506# as_fn_mkdir_p 16507# ------------- 16508# Create "$as_dir" as a directory, including parents if necessary. 16509as_fn_mkdir_p () 16510{ 16511 16512 case $as_dir in #( 16513 -*) as_dir=./$as_dir;; 16514 esac 16515 test -d "$as_dir" || eval $as_mkdir_p || { 16516 as_dirs= 16517 while :; do 16518 case $as_dir in #( 16519 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16520 *) as_qdir=$as_dir;; 16521 esac 16522 as_dirs="'$as_qdir' $as_dirs" 16523 as_dir=`$as_dirname -- "$as_dir" || 16524$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16525 X"$as_dir" : 'X\(//\)[^/]' \| \ 16526 X"$as_dir" : 'X\(//\)$' \| \ 16527 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16528$as_echo X"$as_dir" | 16529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16530 s//\1/ 16531 q 16532 } 16533 /^X\(\/\/\)[^/].*/{ 16534 s//\1/ 16535 q 16536 } 16537 /^X\(\/\/\)$/{ 16538 s//\1/ 16539 q 16540 } 16541 /^X\(\/\).*/{ 16542 s//\1/ 16543 q 16544 } 16545 s/.*/./; q'` 16546 test -d "$as_dir" && break 16547 done 16548 test -z "$as_dirs" || eval "mkdir $as_dirs" 16549 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16550 16551 16552} # as_fn_mkdir_p 16553if mkdir -p . 2>/dev/null; then 16554 as_mkdir_p='mkdir -p "$as_dir"' 16555else 16556 test -d ./-p && rmdir ./-p 16557 as_mkdir_p=false 16558fi 16559 16560 16561# as_fn_executable_p FILE 16562# ----------------------- 16563# Test if FILE is an executable regular file. 16564as_fn_executable_p () 16565{ 16566 test -f "$1" && test -x "$1" 16567} # as_fn_executable_p 16568as_test_x='test -x' 16569as_executable_p=as_fn_executable_p 16570 16571# Sed expression to map a string onto a valid CPP name. 16572as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16573 16574# Sed expression to map a string onto a valid variable name. 16575as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16576 16577 16578exec 6>&1 16579## ----------------------------------- ## 16580## Main body of $CONFIG_STATUS script. ## 16581## ----------------------------------- ## 16582_ASEOF 16583test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16584 16585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16586# Save the log message, to keep $0 and so on meaningful, and to 16587# report actual input values of CONFIG_FILES etc. instead of their 16588# values after options handling. 16589ac_log=" 16590This file was extended by SoundTouch $as_me 1.7.0, which was 16591generated by GNU Autoconf 2.69. Invocation command line was 16592 16593 CONFIG_FILES = $CONFIG_FILES 16594 CONFIG_HEADERS = $CONFIG_HEADERS 16595 CONFIG_LINKS = $CONFIG_LINKS 16596 CONFIG_COMMANDS = $CONFIG_COMMANDS 16597 $ $0 $@ 16598 16599on `(hostname || uname -n) 2>/dev/null | sed 1q` 16600" 16601 16602_ACEOF 16603 16604case $ac_config_files in *" 16605"*) set x $ac_config_files; shift; ac_config_files=$*;; 16606esac 16607 16608case $ac_config_headers in *" 16609"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16610esac 16611 16612 16613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16614# Files that config.status was made for. 16615config_files="$ac_config_files" 16616config_headers="$ac_config_headers" 16617config_commands="$ac_config_commands" 16618 16619_ACEOF 16620 16621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16622ac_cs_usage="\ 16623\`$as_me' instantiates files and other configuration actions 16624from templates according to the current configuration. Unless the files 16625and actions are specified as TAGs, all are instantiated by default. 16626 16627Usage: $0 [OPTION]... [TAG]... 16628 16629 -h, --help print this help, then exit 16630 -V, --version print version number and configuration settings, then exit 16631 --config print configuration, then exit 16632 -q, --quiet, --silent 16633 do not print progress messages 16634 -d, --debug don't remove temporary files 16635 --recheck update $as_me by reconfiguring in the same conditions 16636 --file=FILE[:TEMPLATE] 16637 instantiate the configuration file FILE 16638 --header=FILE[:TEMPLATE] 16639 instantiate the configuration header FILE 16640 16641Configuration files: 16642$config_files 16643 16644Configuration headers: 16645$config_headers 16646 16647Configuration commands: 16648$config_commands 16649 16650Report bugs to <http://www.surina.net/soundtouch>." 16651 16652_ACEOF 16653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16654ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16655ac_cs_version="\\ 16656SoundTouch config.status 1.7.0 16657configured by $0, generated by GNU Autoconf 2.69, 16658 with options \\"\$ac_cs_config\\" 16659 16660Copyright (C) 2012 Free Software Foundation, Inc. 16661This config.status script is free software; the Free Software Foundation 16662gives unlimited permission to copy, distribute and modify it." 16663 16664ac_pwd='$ac_pwd' 16665srcdir='$srcdir' 16666INSTALL='$INSTALL' 16667MKDIR_P='$MKDIR_P' 16668AWK='$AWK' 16669test -n "\$AWK" || AWK=awk 16670_ACEOF 16671 16672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16673# The default lists apply if the user does not specify any file. 16674ac_need_defaults=: 16675while test $# != 0 16676do 16677 case $1 in 16678 --*=?*) 16679 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16680 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16681 ac_shift=: 16682 ;; 16683 --*=) 16684 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16685 ac_optarg= 16686 ac_shift=: 16687 ;; 16688 *) 16689 ac_option=$1 16690 ac_optarg=$2 16691 ac_shift=shift 16692 ;; 16693 esac 16694 16695 case $ac_option in 16696 # Handling of the options. 16697 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16698 ac_cs_recheck=: ;; 16699 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16700 $as_echo "$ac_cs_version"; exit ;; 16701 --config | --confi | --conf | --con | --co | --c ) 16702 $as_echo "$ac_cs_config"; exit ;; 16703 --debug | --debu | --deb | --de | --d | -d ) 16704 debug=: ;; 16705 --file | --fil | --fi | --f ) 16706 $ac_shift 16707 case $ac_optarg in 16708 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16709 '') as_fn_error $? "missing file argument" ;; 16710 esac 16711 as_fn_append CONFIG_FILES " '$ac_optarg'" 16712 ac_need_defaults=false;; 16713 --header | --heade | --head | --hea ) 16714 $ac_shift 16715 case $ac_optarg in 16716 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16717 esac 16718 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16719 ac_need_defaults=false;; 16720 --he | --h) 16721 # Conflict between --help and --header 16722 as_fn_error $? "ambiguous option: \`$1' 16723Try \`$0 --help' for more information.";; 16724 --help | --hel | -h ) 16725 $as_echo "$ac_cs_usage"; exit ;; 16726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16727 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16728 ac_cs_silent=: ;; 16729 16730 # This is an error. 16731 -*) as_fn_error $? "unrecognized option: \`$1' 16732Try \`$0 --help' for more information." ;; 16733 16734 *) as_fn_append ac_config_targets " $1" 16735 ac_need_defaults=false ;; 16736 16737 esac 16738 shift 16739done 16740 16741ac_configure_extra_args= 16742 16743if $ac_cs_silent; then 16744 exec 6>/dev/null 16745 ac_configure_extra_args="$ac_configure_extra_args --silent" 16746fi 16747 16748_ACEOF 16749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16750if \$ac_cs_recheck; then 16751 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16752 shift 16753 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16754 CONFIG_SHELL='$SHELL' 16755 export CONFIG_SHELL 16756 exec "\$@" 16757fi 16758 16759_ACEOF 16760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16761exec 5>>config.log 16762{ 16763 echo 16764 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16765## Running $as_me. ## 16766_ASBOX 16767 $as_echo "$ac_log" 16768} >&5 16769 16770_ACEOF 16771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16772# 16773# INIT-COMMANDS 16774# 16775AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16776 16777 16778# The HP-UX ksh and POSIX shell print the target directory to stdout 16779# if CDPATH is set. 16780(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16781 16782sed_quote_subst='$sed_quote_subst' 16783double_quote_subst='$double_quote_subst' 16784delay_variable_subst='$delay_variable_subst' 16785enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16786macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16787macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16788enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16789pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16790enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16791SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16792ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16793PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16794host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16795host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16796host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16797build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16798build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16799build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16800SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16801Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16802GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16803EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16804FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16805LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16806NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16807LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16808max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16809ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16810exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16811lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16812lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16813lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16814lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16815lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16816reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16817reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16818OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16819deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16820file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16821file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16822want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16823DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16824sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16825AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16826AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16827archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16828STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16829RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16830old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16831old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16832old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16833lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16834CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16835CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16836compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16837GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16838lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16839lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16840lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16841lt_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"`' 16842nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16843lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16844objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16845MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16846lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16847lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16848lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16849lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16850lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16851need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16852MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16853DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16854NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16855LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16856OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16857OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16858libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16859shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16860extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16861archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16862enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16863export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16864whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16865compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16866old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16867old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16868archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16869archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16870module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16871module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16872with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16873allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16874no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16875hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16876hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16877hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16878hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16879hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16880hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16881hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16882inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16883link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16884always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16885export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16886exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16887include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16888prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16889postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16890file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16891variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16892need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16893need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16894version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16895runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16896shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16897shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16898libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16899library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16900soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16901install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16902postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16903postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16904finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16905finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16906hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16907sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16908sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16909hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16910enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16911enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16912enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16913old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16914striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16915compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 16916predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 16917postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 16918predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 16919postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 16920compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 16921LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 16922reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 16923reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16924old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16925compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 16926GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 16927lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 16928lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 16929lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 16930lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 16931lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 16932archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 16933enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 16934export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16935whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16936compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 16937old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16938old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16939archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16940archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16941module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16942module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16943with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 16944allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16945no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16946hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16947hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 16948hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 16949hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 16950hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 16951hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 16952hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 16953inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 16954link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 16955always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 16956export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16957exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16958include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16959prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16960postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16961file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 16962hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 16963compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 16964predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16965postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16966predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 16967postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 16968compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 16969 16970LTCC='$LTCC' 16971LTCFLAGS='$LTCFLAGS' 16972compiler='$compiler_DEFAULT' 16973 16974# A function that is used when there is no print builtin or printf. 16975func_fallback_echo () 16976{ 16977 eval 'cat <<_LTECHO_EOF 16978\$1 16979_LTECHO_EOF' 16980} 16981 16982# Quote evaled strings. 16983for var in SHELL \ 16984ECHO \ 16985PATH_SEPARATOR \ 16986SED \ 16987GREP \ 16988EGREP \ 16989FGREP \ 16990LD \ 16991NM \ 16992LN_S \ 16993lt_SP2NL \ 16994lt_NL2SP \ 16995reload_flag \ 16996OBJDUMP \ 16997deplibs_check_method \ 16998file_magic_cmd \ 16999file_magic_glob \ 17000want_nocaseglob \ 17001DLLTOOL \ 17002sharedlib_from_linklib_cmd \ 17003AR \ 17004AR_FLAGS \ 17005archiver_list_spec \ 17006STRIP \ 17007RANLIB \ 17008CC \ 17009CFLAGS \ 17010compiler \ 17011lt_cv_sys_global_symbol_pipe \ 17012lt_cv_sys_global_symbol_to_cdecl \ 17013lt_cv_sys_global_symbol_to_c_name_address \ 17014lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17015nm_file_list_spec \ 17016lt_prog_compiler_no_builtin_flag \ 17017lt_prog_compiler_pic \ 17018lt_prog_compiler_wl \ 17019lt_prog_compiler_static \ 17020lt_cv_prog_compiler_c_o \ 17021need_locks \ 17022MANIFEST_TOOL \ 17023DSYMUTIL \ 17024NMEDIT \ 17025LIPO \ 17026OTOOL \ 17027OTOOL64 \ 17028shrext_cmds \ 17029export_dynamic_flag_spec \ 17030whole_archive_flag_spec \ 17031compiler_needs_object \ 17032with_gnu_ld \ 17033allow_undefined_flag \ 17034no_undefined_flag \ 17035hardcode_libdir_flag_spec \ 17036hardcode_libdir_separator \ 17037exclude_expsyms \ 17038include_expsyms \ 17039file_list_spec \ 17040variables_saved_for_relink \ 17041libname_spec \ 17042library_names_spec \ 17043soname_spec \ 17044install_override_mode \ 17045finish_eval \ 17046old_striplib \ 17047striplib \ 17048compiler_lib_search_dirs \ 17049predep_objects \ 17050postdep_objects \ 17051predeps \ 17052postdeps \ 17053compiler_lib_search_path \ 17054LD_CXX \ 17055reload_flag_CXX \ 17056compiler_CXX \ 17057lt_prog_compiler_no_builtin_flag_CXX \ 17058lt_prog_compiler_pic_CXX \ 17059lt_prog_compiler_wl_CXX \ 17060lt_prog_compiler_static_CXX \ 17061lt_cv_prog_compiler_c_o_CXX \ 17062export_dynamic_flag_spec_CXX \ 17063whole_archive_flag_spec_CXX \ 17064compiler_needs_object_CXX \ 17065with_gnu_ld_CXX \ 17066allow_undefined_flag_CXX \ 17067no_undefined_flag_CXX \ 17068hardcode_libdir_flag_spec_CXX \ 17069hardcode_libdir_separator_CXX \ 17070exclude_expsyms_CXX \ 17071include_expsyms_CXX \ 17072file_list_spec_CXX \ 17073compiler_lib_search_dirs_CXX \ 17074predep_objects_CXX \ 17075postdep_objects_CXX \ 17076predeps_CXX \ 17077postdeps_CXX \ 17078compiler_lib_search_path_CXX; do 17079 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17080 *[\\\\\\\`\\"\\\$]*) 17081 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17082 ;; 17083 *) 17084 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17085 ;; 17086 esac 17087done 17088 17089# Double-quote double-evaled strings. 17090for var in reload_cmds \ 17091old_postinstall_cmds \ 17092old_postuninstall_cmds \ 17093old_archive_cmds \ 17094extract_expsyms_cmds \ 17095old_archive_from_new_cmds \ 17096old_archive_from_expsyms_cmds \ 17097archive_cmds \ 17098archive_expsym_cmds \ 17099module_cmds \ 17100module_expsym_cmds \ 17101export_symbols_cmds \ 17102prelink_cmds \ 17103postlink_cmds \ 17104postinstall_cmds \ 17105postuninstall_cmds \ 17106finish_cmds \ 17107sys_lib_search_path_spec \ 17108sys_lib_dlsearch_path_spec \ 17109reload_cmds_CXX \ 17110old_archive_cmds_CXX \ 17111old_archive_from_new_cmds_CXX \ 17112old_archive_from_expsyms_cmds_CXX \ 17113archive_cmds_CXX \ 17114archive_expsym_cmds_CXX \ 17115module_cmds_CXX \ 17116module_expsym_cmds_CXX \ 17117export_symbols_cmds_CXX \ 17118prelink_cmds_CXX \ 17119postlink_cmds_CXX; do 17120 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17121 *[\\\\\\\`\\"\\\$]*) 17122 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17123 ;; 17124 *) 17125 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17126 ;; 17127 esac 17128done 17129 17130ac_aux_dir='$ac_aux_dir' 17131xsi_shell='$xsi_shell' 17132lt_shell_append='$lt_shell_append' 17133 17134# See if we are running on zsh, and set the options which allow our 17135# commands through without removal of \ escapes INIT. 17136if test -n "\${ZSH_VERSION+set}" ; then 17137 setopt NO_GLOB_SUBST 17138fi 17139 17140 17141 PACKAGE='$PACKAGE' 17142 VERSION='$VERSION' 17143 TIMESTAMP='$TIMESTAMP' 17144 RM='$RM' 17145 ofile='$ofile' 17146 17147 17148 17149 17150 17151 17152_ACEOF 17153 17154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17155 17156# Handling of arguments. 17157for ac_config_target in $ac_config_targets 17158do 17159 case $ac_config_target in 17160 "include/soundtouch_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/soundtouch_config.h" ;; 17161 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17162 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17163 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17164 "source/Makefile") CONFIG_FILES="$CONFIG_FILES source/Makefile" ;; 17165 "source/SoundTouch/Makefile") CONFIG_FILES="$CONFIG_FILES source/SoundTouch/Makefile" ;; 17166 "source/SoundStretch/Makefile") CONFIG_FILES="$CONFIG_FILES source/SoundStretch/Makefile" ;; 17167 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 17168 "soundtouch.pc") CONFIG_FILES="$CONFIG_FILES soundtouch.pc" ;; 17169 17170 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17171 esac 17172done 17173 17174 17175# If the user did not use the arguments to specify the items to instantiate, 17176# then the envvar interface is used. Set only those that are not. 17177# We use the long form for the default assignment because of an extremely 17178# bizarre bug on SunOS 4.1.3. 17179if $ac_need_defaults; then 17180 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17181 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17182 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17183fi 17184 17185# Have a temporary directory for convenience. Make it in the build tree 17186# simply because there is no reason against having it here, and in addition, 17187# creating and moving files from /tmp can sometimes cause problems. 17188# Hook for its removal unless debugging. 17189# Note that there is a small window in which the directory will not be cleaned: 17190# after its creation but before its name has been assigned to `$tmp'. 17191$debug || 17192{ 17193 tmp= ac_tmp= 17194 trap 'exit_status=$? 17195 : "${ac_tmp:=$tmp}" 17196 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17197' 0 17198 trap 'as_fn_exit 1' 1 2 13 15 17199} 17200# Create a (secure) tmp directory for tmp files. 17201 17202{ 17203 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17204 test -d "$tmp" 17205} || 17206{ 17207 tmp=./conf$$-$RANDOM 17208 (umask 077 && mkdir "$tmp") 17209} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17210ac_tmp=$tmp 17211 17212# Set up the scripts for CONFIG_FILES section. 17213# No need to generate them if there are no CONFIG_FILES. 17214# This happens for instance with `./config.status config.h'. 17215if test -n "$CONFIG_FILES"; then 17216 17217 17218ac_cr=`echo X | tr X '\015'` 17219# On cygwin, bash can eat \r inside `` if the user requested igncr. 17220# But we know of no other shell where ac_cr would be empty at this 17221# point, so we can use a bashism as a fallback. 17222if test "x$ac_cr" = x; then 17223 eval ac_cr=\$\'\\r\' 17224fi 17225ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17226if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17227 ac_cs_awk_cr='\\r' 17228else 17229 ac_cs_awk_cr=$ac_cr 17230fi 17231 17232echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17233_ACEOF 17234 17235 17236{ 17237 echo "cat >conf$$subs.awk <<_ACEOF" && 17238 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17239 echo "_ACEOF" 17240} >conf$$subs.sh || 17241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17242ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17243ac_delim='%!_!# ' 17244for ac_last_try in false false false false false :; do 17245 . ./conf$$subs.sh || 17246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17247 17248 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17249 if test $ac_delim_n = $ac_delim_num; then 17250 break 17251 elif $ac_last_try; then 17252 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17253 else 17254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17255 fi 17256done 17257rm -f conf$$subs.sh 17258 17259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17260cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17261_ACEOF 17262sed -n ' 17263h 17264s/^/S["/; s/!.*/"]=/ 17265p 17266g 17267s/^[^!]*!// 17268:repl 17269t repl 17270s/'"$ac_delim"'$// 17271t delim 17272:nl 17273h 17274s/\(.\{148\}\)..*/\1/ 17275t more1 17276s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17277p 17278n 17279b repl 17280:more1 17281s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17282p 17283g 17284s/.\{148\}// 17285t nl 17286:delim 17287h 17288s/\(.\{148\}\)..*/\1/ 17289t more2 17290s/["\\]/\\&/g; s/^/"/; s/$/"/ 17291p 17292b 17293:more2 17294s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17295p 17296g 17297s/.\{148\}// 17298t delim 17299' <conf$$subs.awk | sed ' 17300/^[^""]/{ 17301 N 17302 s/\n// 17303} 17304' >>$CONFIG_STATUS || ac_write_fail=1 17305rm -f conf$$subs.awk 17306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17307_ACAWK 17308cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17309 for (key in S) S_is_set[key] = 1 17310 FS = "" 17311 17312} 17313{ 17314 line = $ 0 17315 nfields = split(line, field, "@") 17316 substed = 0 17317 len = length(field[1]) 17318 for (i = 2; i < nfields; i++) { 17319 key = field[i] 17320 keylen = length(key) 17321 if (S_is_set[key]) { 17322 value = S[key] 17323 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17324 len += length(value) + length(field[++i]) 17325 substed = 1 17326 } else 17327 len += 1 + keylen 17328 } 17329 17330 print line 17331} 17332 17333_ACAWK 17334_ACEOF 17335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17336if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17337 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17338else 17339 cat 17340fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17341 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17342_ACEOF 17343 17344# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17345# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17346# trailing colons and then remove the whole line if VPATH becomes empty 17347# (actually we leave an empty line to preserve line numbers). 17348if test "x$srcdir" = x.; then 17349 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17350h 17351s/// 17352s/^/:/ 17353s/[ ]*$/:/ 17354s/:\$(srcdir):/:/g 17355s/:\${srcdir}:/:/g 17356s/:@srcdir@:/:/g 17357s/^:*// 17358s/:*$// 17359x 17360s/\(=[ ]*\).*/\1/ 17361G 17362s/\n// 17363s/^[^=]*=[ ]*$// 17364}' 17365fi 17366 17367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17368fi # test -n "$CONFIG_FILES" 17369 17370# Set up the scripts for CONFIG_HEADERS section. 17371# No need to generate them if there are no CONFIG_HEADERS. 17372# This happens for instance with `./config.status Makefile'. 17373if test -n "$CONFIG_HEADERS"; then 17374cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17375BEGIN { 17376_ACEOF 17377 17378# Transform confdefs.h into an awk script `defines.awk', embedded as 17379# here-document in config.status, that substitutes the proper values into 17380# config.h.in to produce config.h. 17381 17382# Create a delimiter string that does not exist in confdefs.h, to ease 17383# handling of long lines. 17384ac_delim='%!_!# ' 17385for ac_last_try in false false :; do 17386 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17387 if test -z "$ac_tt"; then 17388 break 17389 elif $ac_last_try; then 17390 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17391 else 17392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17393 fi 17394done 17395 17396# For the awk script, D is an array of macro values keyed by name, 17397# likewise P contains macro parameters if any. Preserve backslash 17398# newline sequences. 17399 17400ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17401sed -n ' 17402s/.\{148\}/&'"$ac_delim"'/g 17403t rset 17404:rset 17405s/^[ ]*#[ ]*define[ ][ ]*/ / 17406t def 17407d 17408:def 17409s/\\$// 17410t bsnl 17411s/["\\]/\\&/g 17412s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17413D["\1"]=" \3"/p 17414s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17415d 17416:bsnl 17417s/["\\]/\\&/g 17418s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17419D["\1"]=" \3\\\\\\n"\\/p 17420t cont 17421s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17422t cont 17423d 17424:cont 17425n 17426s/.\{148\}/&'"$ac_delim"'/g 17427t clear 17428:clear 17429s/\\$// 17430t bsnlc 17431s/["\\]/\\&/g; s/^/"/; s/$/"/p 17432d 17433:bsnlc 17434s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17435b cont 17436' <confdefs.h | sed ' 17437s/'"$ac_delim"'/"\\\ 17438"/g' >>$CONFIG_STATUS || ac_write_fail=1 17439 17440cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17441 for (key in D) D_is_set[key] = 1 17442 FS = "" 17443} 17444/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17445 line = \$ 0 17446 split(line, arg, " ") 17447 if (arg[1] == "#") { 17448 defundef = arg[2] 17449 mac1 = arg[3] 17450 } else { 17451 defundef = substr(arg[1], 2) 17452 mac1 = arg[2] 17453 } 17454 split(mac1, mac2, "(") #) 17455 macro = mac2[1] 17456 prefix = substr(line, 1, index(line, defundef) - 1) 17457 if (D_is_set[macro]) { 17458 # Preserve the white space surrounding the "#". 17459 print prefix "define", macro P[macro] D[macro] 17460 next 17461 } else { 17462 # Replace #undef with comments. This is necessary, for example, 17463 # in the case of _POSIX_SOURCE, which is predefined and required 17464 # on some systems where configure will not decide to define it. 17465 if (defundef == "undef") { 17466 print "/*", prefix defundef, macro, "*/" 17467 next 17468 } 17469 } 17470} 17471{ print } 17472_ACAWK 17473_ACEOF 17474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17475 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17476fi # test -n "$CONFIG_HEADERS" 17477 17478 17479eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17480shift 17481for ac_tag 17482do 17483 case $ac_tag in 17484 :[FHLC]) ac_mode=$ac_tag; continue;; 17485 esac 17486 case $ac_mode$ac_tag in 17487 :[FHL]*:*);; 17488 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17489 :[FH]-) ac_tag=-:-;; 17490 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17491 esac 17492 ac_save_IFS=$IFS 17493 IFS=: 17494 set x $ac_tag 17495 IFS=$ac_save_IFS 17496 shift 17497 ac_file=$1 17498 shift 17499 17500 case $ac_mode in 17501 :L) ac_source=$1;; 17502 :[FH]) 17503 ac_file_inputs= 17504 for ac_f 17505 do 17506 case $ac_f in 17507 -) ac_f="$ac_tmp/stdin";; 17508 *) # Look for the file first in the build tree, then in the source tree 17509 # (if the path is not absolute). The absolute path cannot be DOS-style, 17510 # because $ac_f cannot contain `:'. 17511 test -f "$ac_f" || 17512 case $ac_f in 17513 [\\/$]*) false;; 17514 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17515 esac || 17516 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17517 esac 17518 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17519 as_fn_append ac_file_inputs " '$ac_f'" 17520 done 17521 17522 # Let's still pretend it is `configure' which instantiates (i.e., don't 17523 # use $as_me), people would be surprised to read: 17524 # /* config.h. Generated by config.status. */ 17525 configure_input='Generated from '` 17526 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17527 `' by configure.' 17528 if test x"$ac_file" != x-; then 17529 configure_input="$ac_file. $configure_input" 17530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17531$as_echo "$as_me: creating $ac_file" >&6;} 17532 fi 17533 # Neutralize special characters interpreted by sed in replacement strings. 17534 case $configure_input in #( 17535 *\&* | *\|* | *\\* ) 17536 ac_sed_conf_input=`$as_echo "$configure_input" | 17537 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17538 *) ac_sed_conf_input=$configure_input;; 17539 esac 17540 17541 case $ac_tag in 17542 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17543 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17544 esac 17545 ;; 17546 esac 17547 17548 ac_dir=`$as_dirname -- "$ac_file" || 17549$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17550 X"$ac_file" : 'X\(//\)[^/]' \| \ 17551 X"$ac_file" : 'X\(//\)$' \| \ 17552 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17553$as_echo X"$ac_file" | 17554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17555 s//\1/ 17556 q 17557 } 17558 /^X\(\/\/\)[^/].*/{ 17559 s//\1/ 17560 q 17561 } 17562 /^X\(\/\/\)$/{ 17563 s//\1/ 17564 q 17565 } 17566 /^X\(\/\).*/{ 17567 s//\1/ 17568 q 17569 } 17570 s/.*/./; q'` 17571 as_dir="$ac_dir"; as_fn_mkdir_p 17572 ac_builddir=. 17573 17574case "$ac_dir" in 17575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17576*) 17577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17578 # A ".." for each directory in $ac_dir_suffix. 17579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17580 case $ac_top_builddir_sub in 17581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17583 esac ;; 17584esac 17585ac_abs_top_builddir=$ac_pwd 17586ac_abs_builddir=$ac_pwd$ac_dir_suffix 17587# for backward compatibility: 17588ac_top_builddir=$ac_top_build_prefix 17589 17590case $srcdir in 17591 .) # We are building in place. 17592 ac_srcdir=. 17593 ac_top_srcdir=$ac_top_builddir_sub 17594 ac_abs_top_srcdir=$ac_pwd ;; 17595 [\\/]* | ?:[\\/]* ) # Absolute name. 17596 ac_srcdir=$srcdir$ac_dir_suffix; 17597 ac_top_srcdir=$srcdir 17598 ac_abs_top_srcdir=$srcdir ;; 17599 *) # Relative name. 17600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17601 ac_top_srcdir=$ac_top_build_prefix$srcdir 17602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17603esac 17604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17605 17606 17607 case $ac_mode in 17608 :F) 17609 # 17610 # CONFIG_FILE 17611 # 17612 17613 case $INSTALL in 17614 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17615 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17616 esac 17617 ac_MKDIR_P=$MKDIR_P 17618 case $MKDIR_P in 17619 [\\/$]* | ?:[\\/]* ) ;; 17620 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17621 esac 17622_ACEOF 17623 17624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17625# If the template does not know about datarootdir, expand it. 17626# FIXME: This hack should be removed a few years after 2.60. 17627ac_datarootdir_hack=; ac_datarootdir_seen= 17628ac_sed_dataroot=' 17629/datarootdir/ { 17630 p 17631 q 17632} 17633/@datadir@/p 17634/@docdir@/p 17635/@infodir@/p 17636/@localedir@/p 17637/@mandir@/p' 17638case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17639*datarootdir*) ac_datarootdir_seen=yes;; 17640*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17642$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17643_ACEOF 17644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17645 ac_datarootdir_hack=' 17646 s&@datadir@&$datadir&g 17647 s&@docdir@&$docdir&g 17648 s&@infodir@&$infodir&g 17649 s&@localedir@&$localedir&g 17650 s&@mandir@&$mandir&g 17651 s&\\\${datarootdir}&$datarootdir&g' ;; 17652esac 17653_ACEOF 17654 17655# Neutralize VPATH when `$srcdir' = `.'. 17656# Shell code in configure.ac might set extrasub. 17657# FIXME: do we really want to maintain this feature? 17658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17659ac_sed_extra="$ac_vpsub 17660$extrasub 17661_ACEOF 17662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17663:t 17664/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17665s|@configure_input@|$ac_sed_conf_input|;t t 17666s&@top_builddir@&$ac_top_builddir_sub&;t t 17667s&@top_build_prefix@&$ac_top_build_prefix&;t t 17668s&@srcdir@&$ac_srcdir&;t t 17669s&@abs_srcdir@&$ac_abs_srcdir&;t t 17670s&@top_srcdir@&$ac_top_srcdir&;t t 17671s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17672s&@builddir@&$ac_builddir&;t t 17673s&@abs_builddir@&$ac_abs_builddir&;t t 17674s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17675s&@INSTALL@&$ac_INSTALL&;t t 17676s&@MKDIR_P@&$ac_MKDIR_P&;t t 17677$ac_datarootdir_hack 17678" 17679eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17680 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17681 17682test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17683 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17684 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17685 "$ac_tmp/out"`; test -z "$ac_out"; } && 17686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17687which seems to be undefined. Please make sure it is defined" >&5 17688$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17689which seems to be undefined. Please make sure it is defined" >&2;} 17690 17691 rm -f "$ac_tmp/stdin" 17692 case $ac_file in 17693 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17694 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17695 esac \ 17696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17697 ;; 17698 :H) 17699 # 17700 # CONFIG_HEADER 17701 # 17702 if test x"$ac_file" != x-; then 17703 { 17704 $as_echo "/* $configure_input */" \ 17705 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17706 } >"$ac_tmp/config.h" \ 17707 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17708 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17709 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17710$as_echo "$as_me: $ac_file is unchanged" >&6;} 17711 else 17712 rm -f "$ac_file" 17713 mv "$ac_tmp/config.h" "$ac_file" \ 17714 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17715 fi 17716 else 17717 $as_echo "/* $configure_input */" \ 17718 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17719 || as_fn_error $? "could not create -" "$LINENO" 5 17720 fi 17721# Compute "$ac_file"'s index in $config_headers. 17722_am_arg="$ac_file" 17723_am_stamp_count=1 17724for _am_header in $config_headers :; do 17725 case $_am_header in 17726 $_am_arg | $_am_arg:* ) 17727 break ;; 17728 * ) 17729 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17730 esac 17731done 17732echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17733$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17734 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17735 X"$_am_arg" : 'X\(//\)$' \| \ 17736 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17737$as_echo X"$_am_arg" | 17738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17739 s//\1/ 17740 q 17741 } 17742 /^X\(\/\/\)[^/].*/{ 17743 s//\1/ 17744 q 17745 } 17746 /^X\(\/\/\)$/{ 17747 s//\1/ 17748 q 17749 } 17750 /^X\(\/\).*/{ 17751 s//\1/ 17752 q 17753 } 17754 s/.*/./; q'`/stamp-h$_am_stamp_count 17755 ;; 17756 17757 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17758$as_echo "$as_me: executing $ac_file commands" >&6;} 17759 ;; 17760 esac 17761 17762 17763 case $ac_file$ac_mode in 17764 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17765 # Older Autoconf quotes --file arguments for eval, but not when files 17766 # are listed without --file. Let's play safe and only enable the eval 17767 # if we detect the quoting. 17768 case $CONFIG_FILES in 17769 *\'*) eval set x "$CONFIG_FILES" ;; 17770 *) set x $CONFIG_FILES ;; 17771 esac 17772 shift 17773 for mf 17774 do 17775 # Strip MF so we end up with the name of the file. 17776 mf=`echo "$mf" | sed -e 's/:.*$//'` 17777 # Check whether this is an Automake generated Makefile or not. 17778 # We used to match only the files named 'Makefile.in', but 17779 # some people rename them; so instead we look at the file content. 17780 # Grep'ing the first line is not enough: some people post-process 17781 # each Makefile.in and add a new line on top of each file to say so. 17782 # Grep'ing the whole file is not good either: AIX grep has a line 17783 # limit of 2048, but all sed's we know have understand at least 4000. 17784 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17785 dirpart=`$as_dirname -- "$mf" || 17786$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17787 X"$mf" : 'X\(//\)[^/]' \| \ 17788 X"$mf" : 'X\(//\)$' \| \ 17789 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17790$as_echo X"$mf" | 17791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17792 s//\1/ 17793 q 17794 } 17795 /^X\(\/\/\)[^/].*/{ 17796 s//\1/ 17797 q 17798 } 17799 /^X\(\/\/\)$/{ 17800 s//\1/ 17801 q 17802 } 17803 /^X\(\/\).*/{ 17804 s//\1/ 17805 q 17806 } 17807 s/.*/./; q'` 17808 else 17809 continue 17810 fi 17811 # Extract the definition of DEPDIR, am__include, and am__quote 17812 # from the Makefile without running 'make'. 17813 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17814 test -z "$DEPDIR" && continue 17815 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17816 test -z "$am__include" && continue 17817 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17818 # Find all dependency output files, they are included files with 17819 # $(DEPDIR) in their names. We invoke sed twice because it is the 17820 # simplest approach to changing $(DEPDIR) to its actual value in the 17821 # expansion. 17822 for file in `sed -n " 17823 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17824 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 17825 # Make sure the directory exists. 17826 test -f "$dirpart/$file" && continue 17827 fdir=`$as_dirname -- "$file" || 17828$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17829 X"$file" : 'X\(//\)[^/]' \| \ 17830 X"$file" : 'X\(//\)$' \| \ 17831 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17832$as_echo X"$file" | 17833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17834 s//\1/ 17835 q 17836 } 17837 /^X\(\/\/\)[^/].*/{ 17838 s//\1/ 17839 q 17840 } 17841 /^X\(\/\/\)$/{ 17842 s//\1/ 17843 q 17844 } 17845 /^X\(\/\).*/{ 17846 s//\1/ 17847 q 17848 } 17849 s/.*/./; q'` 17850 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17851 # echo "creating $dirpart/$file" 17852 echo '# dummy' > "$dirpart/$file" 17853 done 17854 done 17855} 17856 ;; 17857 "libtool":C) 17858 17859 # See if we are running on zsh, and set the options which allow our 17860 # commands through without removal of \ escapes. 17861 if test -n "${ZSH_VERSION+set}" ; then 17862 setopt NO_GLOB_SUBST 17863 fi 17864 17865 cfgfile="${ofile}T" 17866 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17867 $RM "$cfgfile" 17868 17869 cat <<_LT_EOF >> "$cfgfile" 17870#! $SHELL 17871 17872# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17873# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17874# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17875# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17876# 17877# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17878# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 17879# Foundation, Inc. 17880# Written by Gordon Matzigkeit, 1996 17881# 17882# This file is part of GNU Libtool. 17883# 17884# GNU Libtool is free software; you can redistribute it and/or 17885# modify it under the terms of the GNU General Public License as 17886# published by the Free Software Foundation; either version 2 of 17887# the License, or (at your option) any later version. 17888# 17889# As a special exception to the GNU General Public License, 17890# if you distribute this file as part of a program or library that 17891# is built using GNU Libtool, you may include this file under the 17892# same distribution terms that you use for the rest of that program. 17893# 17894# GNU Libtool is distributed in the hope that it will be useful, 17895# but WITHOUT ANY WARRANTY; without even the implied warranty of 17896# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17897# GNU General Public License for more details. 17898# 17899# You should have received a copy of the GNU General Public License 17900# along with GNU Libtool; see the file COPYING. If not, a copy 17901# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17902# obtained by writing to the Free Software Foundation, Inc., 17903# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17904 17905 17906# The names of the tagged configurations supported by this script. 17907available_tags="CXX " 17908 17909# ### BEGIN LIBTOOL CONFIG 17910 17911# Whether or not to build static libraries. 17912build_old_libs=$enable_static 17913 17914# Which release of libtool.m4 was used? 17915macro_version=$macro_version 17916macro_revision=$macro_revision 17917 17918# Whether or not to build shared libraries. 17919build_libtool_libs=$enable_shared 17920 17921# What type of objects to build. 17922pic_mode=$pic_mode 17923 17924# Whether or not to optimize for fast installation. 17925fast_install=$enable_fast_install 17926 17927# Shell to use when invoking shell scripts. 17928SHELL=$lt_SHELL 17929 17930# An echo program that protects backslashes. 17931ECHO=$lt_ECHO 17932 17933# The PATH separator for the build system. 17934PATH_SEPARATOR=$lt_PATH_SEPARATOR 17935 17936# The host system. 17937host_alias=$host_alias 17938host=$host 17939host_os=$host_os 17940 17941# The build system. 17942build_alias=$build_alias 17943build=$build 17944build_os=$build_os 17945 17946# A sed program that does not truncate output. 17947SED=$lt_SED 17948 17949# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17950Xsed="\$SED -e 1s/^X//" 17951 17952# A grep program that handles long lines. 17953GREP=$lt_GREP 17954 17955# An ERE matcher. 17956EGREP=$lt_EGREP 17957 17958# A literal string matcher. 17959FGREP=$lt_FGREP 17960 17961# A BSD- or MS-compatible name lister. 17962NM=$lt_NM 17963 17964# Whether we need soft or hard links. 17965LN_S=$lt_LN_S 17966 17967# What is the maximum length of a command? 17968max_cmd_len=$max_cmd_len 17969 17970# Object file suffix (normally "o"). 17971objext=$ac_objext 17972 17973# Executable file suffix (normally ""). 17974exeext=$exeext 17975 17976# whether the shell understands "unset". 17977lt_unset=$lt_unset 17978 17979# turn spaces into newlines. 17980SP2NL=$lt_lt_SP2NL 17981 17982# turn newlines into spaces. 17983NL2SP=$lt_lt_NL2SP 17984 17985# convert \$build file names to \$host format. 17986to_host_file_cmd=$lt_cv_to_host_file_cmd 17987 17988# convert \$build files to toolchain format. 17989to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17990 17991# An object symbol dumper. 17992OBJDUMP=$lt_OBJDUMP 17993 17994# Method to check whether dependent libraries are shared objects. 17995deplibs_check_method=$lt_deplibs_check_method 17996 17997# Command to use when deplibs_check_method = "file_magic". 17998file_magic_cmd=$lt_file_magic_cmd 17999 18000# How to find potential files when deplibs_check_method = "file_magic". 18001file_magic_glob=$lt_file_magic_glob 18002 18003# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18004want_nocaseglob=$lt_want_nocaseglob 18005 18006# DLL creation program. 18007DLLTOOL=$lt_DLLTOOL 18008 18009# Command to associate shared and link libraries. 18010sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18011 18012# The archiver. 18013AR=$lt_AR 18014 18015# Flags to create an archive. 18016AR_FLAGS=$lt_AR_FLAGS 18017 18018# How to feed a file listing to the archiver. 18019archiver_list_spec=$lt_archiver_list_spec 18020 18021# A symbol stripping program. 18022STRIP=$lt_STRIP 18023 18024# Commands used to install an old-style archive. 18025RANLIB=$lt_RANLIB 18026old_postinstall_cmds=$lt_old_postinstall_cmds 18027old_postuninstall_cmds=$lt_old_postuninstall_cmds 18028 18029# Whether to use a lock for old archive extraction. 18030lock_old_archive_extraction=$lock_old_archive_extraction 18031 18032# A C compiler. 18033LTCC=$lt_CC 18034 18035# LTCC compiler flags. 18036LTCFLAGS=$lt_CFLAGS 18037 18038# Take the output of nm and produce a listing of raw symbols and C names. 18039global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18040 18041# Transform the output of nm in a proper C declaration. 18042global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18043 18044# Transform the output of nm in a C name address pair. 18045global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18046 18047# Transform the output of nm in a C name address pair when lib prefix is needed. 18048global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18049 18050# Specify filename containing input files for \$NM. 18051nm_file_list_spec=$lt_nm_file_list_spec 18052 18053# The root where to search for dependent libraries,and in which our libraries should be installed. 18054lt_sysroot=$lt_sysroot 18055 18056# The name of the directory that contains temporary libtool files. 18057objdir=$objdir 18058 18059# Used to examine libraries when file_magic_cmd begins with "file". 18060MAGIC_CMD=$MAGIC_CMD 18061 18062# Must we lock files when doing compilation? 18063need_locks=$lt_need_locks 18064 18065# Manifest tool. 18066MANIFEST_TOOL=$lt_MANIFEST_TOOL 18067 18068# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18069DSYMUTIL=$lt_DSYMUTIL 18070 18071# Tool to change global to local symbols on Mac OS X. 18072NMEDIT=$lt_NMEDIT 18073 18074# Tool to manipulate fat objects and archives on Mac OS X. 18075LIPO=$lt_LIPO 18076 18077# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18078OTOOL=$lt_OTOOL 18079 18080# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18081OTOOL64=$lt_OTOOL64 18082 18083# Old archive suffix (normally "a"). 18084libext=$libext 18085 18086# Shared library suffix (normally ".so"). 18087shrext_cmds=$lt_shrext_cmds 18088 18089# The commands to extract the exported symbol list from a shared archive. 18090extract_expsyms_cmds=$lt_extract_expsyms_cmds 18091 18092# Variables whose values should be saved in libtool wrapper scripts and 18093# restored at link time. 18094variables_saved_for_relink=$lt_variables_saved_for_relink 18095 18096# Do we need the "lib" prefix for modules? 18097need_lib_prefix=$need_lib_prefix 18098 18099# Do we need a version for libraries? 18100need_version=$need_version 18101 18102# Library versioning type. 18103version_type=$version_type 18104 18105# Shared library runtime path variable. 18106runpath_var=$runpath_var 18107 18108# Shared library path variable. 18109shlibpath_var=$shlibpath_var 18110 18111# Is shlibpath searched before the hard-coded library search path? 18112shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18113 18114# Format of library name prefix. 18115libname_spec=$lt_libname_spec 18116 18117# List of archive names. First name is the real one, the rest are links. 18118# The last name is the one that the linker finds with -lNAME 18119library_names_spec=$lt_library_names_spec 18120 18121# The coded name of the library, if different from the real name. 18122soname_spec=$lt_soname_spec 18123 18124# Permission mode override for installation of shared libraries. 18125install_override_mode=$lt_install_override_mode 18126 18127# Command to use after installation of a shared archive. 18128postinstall_cmds=$lt_postinstall_cmds 18129 18130# Command to use after uninstallation of a shared archive. 18131postuninstall_cmds=$lt_postuninstall_cmds 18132 18133# Commands used to finish a libtool library installation in a directory. 18134finish_cmds=$lt_finish_cmds 18135 18136# As "finish_cmds", except a single script fragment to be evaled but 18137# not shown. 18138finish_eval=$lt_finish_eval 18139 18140# Whether we should hardcode library paths into libraries. 18141hardcode_into_libs=$hardcode_into_libs 18142 18143# Compile-time system search path for libraries. 18144sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18145 18146# Run-time system search path for libraries. 18147sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18148 18149# Whether dlopen is supported. 18150dlopen_support=$enable_dlopen 18151 18152# Whether dlopen of programs is supported. 18153dlopen_self=$enable_dlopen_self 18154 18155# Whether dlopen of statically linked programs is supported. 18156dlopen_self_static=$enable_dlopen_self_static 18157 18158# Commands to strip libraries. 18159old_striplib=$lt_old_striplib 18160striplib=$lt_striplib 18161 18162 18163# The linker used to build libraries. 18164LD=$lt_LD 18165 18166# How to create reloadable object files. 18167reload_flag=$lt_reload_flag 18168reload_cmds=$lt_reload_cmds 18169 18170# Commands used to build an old-style archive. 18171old_archive_cmds=$lt_old_archive_cmds 18172 18173# A language specific compiler. 18174CC=$lt_compiler 18175 18176# Is the compiler the GNU compiler? 18177with_gcc=$GCC 18178 18179# Compiler flag to turn off builtin functions. 18180no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18181 18182# Additional compiler flags for building library objects. 18183pic_flag=$lt_lt_prog_compiler_pic 18184 18185# How to pass a linker flag through the compiler. 18186wl=$lt_lt_prog_compiler_wl 18187 18188# Compiler flag to prevent dynamic linking. 18189link_static_flag=$lt_lt_prog_compiler_static 18190 18191# Does compiler simultaneously support -c and -o options? 18192compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18193 18194# Whether or not to add -lc for building shared libraries. 18195build_libtool_need_lc=$archive_cmds_need_lc 18196 18197# Whether or not to disallow shared libs when runtime libs are static. 18198allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18199 18200# Compiler flag to allow reflexive dlopens. 18201export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18202 18203# Compiler flag to generate shared objects directly from archives. 18204whole_archive_flag_spec=$lt_whole_archive_flag_spec 18205 18206# Whether the compiler copes with passing no objects directly. 18207compiler_needs_object=$lt_compiler_needs_object 18208 18209# Create an old-style archive from a shared archive. 18210old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18211 18212# Create a temporary old-style archive to link instead of a shared archive. 18213old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18214 18215# Commands used to build a shared archive. 18216archive_cmds=$lt_archive_cmds 18217archive_expsym_cmds=$lt_archive_expsym_cmds 18218 18219# Commands used to build a loadable module if different from building 18220# a shared archive. 18221module_cmds=$lt_module_cmds 18222module_expsym_cmds=$lt_module_expsym_cmds 18223 18224# Whether we are building with GNU ld or not. 18225with_gnu_ld=$lt_with_gnu_ld 18226 18227# Flag that allows shared libraries with undefined symbols to be built. 18228allow_undefined_flag=$lt_allow_undefined_flag 18229 18230# Flag that enforces no undefined symbols. 18231no_undefined_flag=$lt_no_undefined_flag 18232 18233# Flag to hardcode \$libdir into a binary during linking. 18234# This must work even if \$libdir does not exist 18235hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18236 18237# Whether we need a single "-rpath" flag with a separated argument. 18238hardcode_libdir_separator=$lt_hardcode_libdir_separator 18239 18240# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18241# DIR into the resulting binary. 18242hardcode_direct=$hardcode_direct 18243 18244# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18245# DIR into the resulting binary and the resulting library dependency is 18246# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18247# library is relocated. 18248hardcode_direct_absolute=$hardcode_direct_absolute 18249 18250# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18251# into the resulting binary. 18252hardcode_minus_L=$hardcode_minus_L 18253 18254# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18255# into the resulting binary. 18256hardcode_shlibpath_var=$hardcode_shlibpath_var 18257 18258# Set to "yes" if building a shared library automatically hardcodes DIR 18259# into the library and all subsequent libraries and executables linked 18260# against it. 18261hardcode_automatic=$hardcode_automatic 18262 18263# Set to yes if linker adds runtime paths of dependent libraries 18264# to runtime path list. 18265inherit_rpath=$inherit_rpath 18266 18267# Whether libtool must link a program against all its dependency libraries. 18268link_all_deplibs=$link_all_deplibs 18269 18270# Set to "yes" if exported symbols are required. 18271always_export_symbols=$always_export_symbols 18272 18273# The commands to list exported symbols. 18274export_symbols_cmds=$lt_export_symbols_cmds 18275 18276# Symbols that should not be listed in the preloaded symbols. 18277exclude_expsyms=$lt_exclude_expsyms 18278 18279# Symbols that must always be exported. 18280include_expsyms=$lt_include_expsyms 18281 18282# Commands necessary for linking programs (against libraries) with templates. 18283prelink_cmds=$lt_prelink_cmds 18284 18285# Commands necessary for finishing linking programs. 18286postlink_cmds=$lt_postlink_cmds 18287 18288# Specify filename containing input files. 18289file_list_spec=$lt_file_list_spec 18290 18291# How to hardcode a shared library path into an executable. 18292hardcode_action=$hardcode_action 18293 18294# The directories searched by this compiler when creating a shared library. 18295compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18296 18297# Dependencies to place before and after the objects being linked to 18298# create a shared library. 18299predep_objects=$lt_predep_objects 18300postdep_objects=$lt_postdep_objects 18301predeps=$lt_predeps 18302postdeps=$lt_postdeps 18303 18304# The library search path used internally by the compiler when linking 18305# a shared library. 18306compiler_lib_search_path=$lt_compiler_lib_search_path 18307 18308# ### END LIBTOOL CONFIG 18309 18310_LT_EOF 18311 18312 case $host_os in 18313 aix3*) 18314 cat <<\_LT_EOF >> "$cfgfile" 18315# AIX sometimes has problems with the GCC collect2 program. For some 18316# reason, if we set the COLLECT_NAMES environment variable, the problems 18317# vanish in a puff of smoke. 18318if test "X${COLLECT_NAMES+set}" != Xset; then 18319 COLLECT_NAMES= 18320 export COLLECT_NAMES 18321fi 18322_LT_EOF 18323 ;; 18324 esac 18325 18326 18327ltmain="$ac_aux_dir/ltmain.sh" 18328 18329 18330 # We use sed instead of cat because bash on DJGPP gets confused if 18331 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18332 # text mode, it properly converts lines to CR/LF. This bash problem 18333 # is reportedly fixed, but why not run on old versions too? 18334 sed '$q' "$ltmain" >> "$cfgfile" \ 18335 || (rm -f "$cfgfile"; exit 1) 18336 18337 if test x"$xsi_shell" = xyes; then 18338 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 18339func_dirname ()\ 18340{\ 18341\ case ${1} in\ 18342\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18343\ * ) func_dirname_result="${3}" ;;\ 18344\ esac\ 18345} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 18346 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18347 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18348test 0 -eq $? || _lt_function_replace_fail=: 18349 18350 18351 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 18352func_basename ()\ 18353{\ 18354\ func_basename_result="${1##*/}"\ 18355} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18356 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18358test 0 -eq $? || _lt_function_replace_fail=: 18359 18360 18361 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 18362func_dirname_and_basename ()\ 18363{\ 18364\ case ${1} in\ 18365\ */*) func_dirname_result="${1%/*}${2}" ;;\ 18366\ * ) func_dirname_result="${3}" ;;\ 18367\ esac\ 18368\ func_basename_result="${1##*/}"\ 18369} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 18370 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18371 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18372test 0 -eq $? || _lt_function_replace_fail=: 18373 18374 18375 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 18376func_stripname ()\ 18377{\ 18378\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 18379\ # positional parameters, so assign one to ordinary parameter first.\ 18380\ func_stripname_result=${3}\ 18381\ func_stripname_result=${func_stripname_result#"${1}"}\ 18382\ func_stripname_result=${func_stripname_result%"${2}"}\ 18383} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 18384 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18385 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18386test 0 -eq $? || _lt_function_replace_fail=: 18387 18388 18389 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 18390func_split_long_opt ()\ 18391{\ 18392\ func_split_long_opt_name=${1%%=*}\ 18393\ func_split_long_opt_arg=${1#*=}\ 18394} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18395 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18396 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18397test 0 -eq $? || _lt_function_replace_fail=: 18398 18399 18400 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 18401func_split_short_opt ()\ 18402{\ 18403\ func_split_short_opt_arg=${1#??}\ 18404\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 18405} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 18406 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18407 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18408test 0 -eq $? || _lt_function_replace_fail=: 18409 18410 18411 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 18412func_lo2o ()\ 18413{\ 18414\ case ${1} in\ 18415\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 18416\ *) func_lo2o_result=${1} ;;\ 18417\ esac\ 18418} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 18419 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18420 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18421test 0 -eq $? || _lt_function_replace_fail=: 18422 18423 18424 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 18425func_xform ()\ 18426{\ 18427 func_xform_result=${1%.*}.lo\ 18428} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 18429 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18430 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18431test 0 -eq $? || _lt_function_replace_fail=: 18432 18433 18434 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 18435func_arith ()\ 18436{\ 18437 func_arith_result=$(( $* ))\ 18438} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 18439 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18440 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18441test 0 -eq $? || _lt_function_replace_fail=: 18442 18443 18444 sed -e '/^func_len ()$/,/^} # func_len /c\ 18445func_len ()\ 18446{\ 18447 func_len_result=${#1}\ 18448} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 18449 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18450 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18451test 0 -eq $? || _lt_function_replace_fail=: 18452 18453fi 18454 18455if test x"$lt_shell_append" = xyes; then 18456 sed -e '/^func_append ()$/,/^} # func_append /c\ 18457func_append ()\ 18458{\ 18459 eval "${1}+=\\${2}"\ 18460} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 18461 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18462 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18463test 0 -eq $? || _lt_function_replace_fail=: 18464 18465 18466 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 18467func_append_quoted ()\ 18468{\ 18469\ func_quote_for_eval "${2}"\ 18470\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 18471} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 18472 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18473 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18474test 0 -eq $? || _lt_function_replace_fail=: 18475 18476 18477 # Save a `func_append' function call where possible by direct use of '+=' 18478 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 18479 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18480 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18481 test 0 -eq $? || _lt_function_replace_fail=: 18482else 18483 # Save a `func_append' function call even when '+=' is not available 18484 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 18485 && mv -f "$cfgfile.tmp" "$cfgfile" \ 18486 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 18487 test 0 -eq $? || _lt_function_replace_fail=: 18488fi 18489 18490if test x"$_lt_function_replace_fail" = x":"; then 18491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 18492$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 18493fi 18494 18495 18496 mv -f "$cfgfile" "$ofile" || 18497 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18498 chmod +x "$ofile" 18499 18500 18501 cat <<_LT_EOF >> "$ofile" 18502 18503# ### BEGIN LIBTOOL TAG CONFIG: CXX 18504 18505# The linker used to build libraries. 18506LD=$lt_LD_CXX 18507 18508# How to create reloadable object files. 18509reload_flag=$lt_reload_flag_CXX 18510reload_cmds=$lt_reload_cmds_CXX 18511 18512# Commands used to build an old-style archive. 18513old_archive_cmds=$lt_old_archive_cmds_CXX 18514 18515# A language specific compiler. 18516CC=$lt_compiler_CXX 18517 18518# Is the compiler the GNU compiler? 18519with_gcc=$GCC_CXX 18520 18521# Compiler flag to turn off builtin functions. 18522no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18523 18524# Additional compiler flags for building library objects. 18525pic_flag=$lt_lt_prog_compiler_pic_CXX 18526 18527# How to pass a linker flag through the compiler. 18528wl=$lt_lt_prog_compiler_wl_CXX 18529 18530# Compiler flag to prevent dynamic linking. 18531link_static_flag=$lt_lt_prog_compiler_static_CXX 18532 18533# Does compiler simultaneously support -c and -o options? 18534compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18535 18536# Whether or not to add -lc for building shared libraries. 18537build_libtool_need_lc=$archive_cmds_need_lc_CXX 18538 18539# Whether or not to disallow shared libs when runtime libs are static. 18540allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18541 18542# Compiler flag to allow reflexive dlopens. 18543export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18544 18545# Compiler flag to generate shared objects directly from archives. 18546whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18547 18548# Whether the compiler copes with passing no objects directly. 18549compiler_needs_object=$lt_compiler_needs_object_CXX 18550 18551# Create an old-style archive from a shared archive. 18552old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18553 18554# Create a temporary old-style archive to link instead of a shared archive. 18555old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18556 18557# Commands used to build a shared archive. 18558archive_cmds=$lt_archive_cmds_CXX 18559archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18560 18561# Commands used to build a loadable module if different from building 18562# a shared archive. 18563module_cmds=$lt_module_cmds_CXX 18564module_expsym_cmds=$lt_module_expsym_cmds_CXX 18565 18566# Whether we are building with GNU ld or not. 18567with_gnu_ld=$lt_with_gnu_ld_CXX 18568 18569# Flag that allows shared libraries with undefined symbols to be built. 18570allow_undefined_flag=$lt_allow_undefined_flag_CXX 18571 18572# Flag that enforces no undefined symbols. 18573no_undefined_flag=$lt_no_undefined_flag_CXX 18574 18575# Flag to hardcode \$libdir into a binary during linking. 18576# This must work even if \$libdir does not exist 18577hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18578 18579# Whether we need a single "-rpath" flag with a separated argument. 18580hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18581 18582# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18583# DIR into the resulting binary. 18584hardcode_direct=$hardcode_direct_CXX 18585 18586# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18587# DIR into the resulting binary and the resulting library dependency is 18588# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18589# library is relocated. 18590hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18591 18592# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18593# into the resulting binary. 18594hardcode_minus_L=$hardcode_minus_L_CXX 18595 18596# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18597# into the resulting binary. 18598hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18599 18600# Set to "yes" if building a shared library automatically hardcodes DIR 18601# into the library and all subsequent libraries and executables linked 18602# against it. 18603hardcode_automatic=$hardcode_automatic_CXX 18604 18605# Set to yes if linker adds runtime paths of dependent libraries 18606# to runtime path list. 18607inherit_rpath=$inherit_rpath_CXX 18608 18609# Whether libtool must link a program against all its dependency libraries. 18610link_all_deplibs=$link_all_deplibs_CXX 18611 18612# Set to "yes" if exported symbols are required. 18613always_export_symbols=$always_export_symbols_CXX 18614 18615# The commands to list exported symbols. 18616export_symbols_cmds=$lt_export_symbols_cmds_CXX 18617 18618# Symbols that should not be listed in the preloaded symbols. 18619exclude_expsyms=$lt_exclude_expsyms_CXX 18620 18621# Symbols that must always be exported. 18622include_expsyms=$lt_include_expsyms_CXX 18623 18624# Commands necessary for linking programs (against libraries) with templates. 18625prelink_cmds=$lt_prelink_cmds_CXX 18626 18627# Commands necessary for finishing linking programs. 18628postlink_cmds=$lt_postlink_cmds_CXX 18629 18630# Specify filename containing input files. 18631file_list_spec=$lt_file_list_spec_CXX 18632 18633# How to hardcode a shared library path into an executable. 18634hardcode_action=$hardcode_action_CXX 18635 18636# The directories searched by this compiler when creating a shared library. 18637compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18638 18639# Dependencies to place before and after the objects being linked to 18640# create a shared library. 18641predep_objects=$lt_predep_objects_CXX 18642postdep_objects=$lt_postdep_objects_CXX 18643predeps=$lt_predeps_CXX 18644postdeps=$lt_postdeps_CXX 18645 18646# The library search path used internally by the compiler when linking 18647# a shared library. 18648compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18649 18650# ### END LIBTOOL TAG CONFIG: CXX 18651_LT_EOF 18652 18653 ;; 18654 18655 esac 18656done # for ac_tag 18657 18658 18659as_fn_exit 0 18660_ACEOF 18661ac_clean_files=$ac_clean_files_save 18662 18663test $ac_write_fail = 0 || 18664 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18665 18666 18667# configure is writing to config.log, and then calls config.status. 18668# config.status does its own redirection, appending to config.log. 18669# Unfortunately, on DOS this fails, as config.log is still kept open 18670# by configure, so config.status won't be able to write to it; its 18671# output is simply discarded. So we exec the FD to /dev/null, 18672# effectively closing config.log, so it can be properly (re)opened and 18673# appended to by config.status. When coming back to configure, we 18674# need to make the FD available again. 18675if test "$no_create" != yes; then 18676 ac_cs_success=: 18677 ac_config_status_args= 18678 test "$silent" = yes && 18679 ac_config_status_args="$ac_config_status_args --quiet" 18680 exec 5>/dev/null 18681 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18682 exec 5>>config.log 18683 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18684 # would make configure fail if this is the last instruction. 18685 $ac_cs_success || as_fn_exit 1 18686fi 18687if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18689$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18690fi 18691 18692 18693