1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for opencore-amr 0.1.5. 4# 5# Report bugs to <http://sourceforge.net/projects/opencore-amr/>. 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://sourceforge.net/projects/opencore-amr/ about 279$0: your system, including any error possibly output before 280$0: this message. Then install a modern shell, or manually 281$0: run 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='opencore-amr' 592PACKAGE_TARNAME='opencore-amr' 593PACKAGE_VERSION='0.1.5' 594PACKAGE_STRING='opencore-amr 0.1.5' 595PACKAGE_BUGREPORT='http://sourceforge.net/projects/opencore-amr/' 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 638OPENCORE_AMRWB_VERSION 639OPENCORE_AMRNB_VERSION 640CXXCPP 641CPP 642LT_SYS_LIBRARY_PATH 643OTOOL64 644OTOOL 645LIPO 646NMEDIT 647DSYMUTIL 648MANIFEST_TOOL 649RANLIB 650ac_ct_AR 651AR 652DLLTOOL 653OBJDUMP 654NM 655ac_ct_DUMPBIN 656DUMPBIN 657LD 658FGREP 659EGREP 660GREP 661SED 662host_os 663host_vendor 664host_cpu 665host 666build_os 667build_vendor 668build_cpu 669build 670LIBTOOL 671LN_S 672am__fastdepCC_FALSE 673am__fastdepCC_TRUE 674CCDEPMODE 675ac_ct_CC 676CFLAGS 677CC 678am__fastdepCXX_FALSE 679am__fastdepCXX_TRUE 680CXXDEPMODE 681am__nodep 682AMDEPBACKSLASH 683AMDEP_FALSE 684AMDEP_TRUE 685am__quote 686am__include 687DEPDIR 688OBJEXT 689EXEEXT 690ac_ct_CXX 691CPPFLAGS 692LDFLAGS 693CXXFLAGS 694CXX 695EXAMPLES_FALSE 696EXAMPLES_TRUE 697AMRNB_DECODER_FALSE 698AMRNB_DECODER_TRUE 699AMRNB_ENCODER_FALSE 700AMRNB_ENCODER_TRUE 701GCC_ARMV5_FALSE 702GCC_ARMV5_TRUE 703COMPILE_AS_C_FALSE 704COMPILE_AS_C_TRUE 705MAINT 706MAINTAINER_MODE_FALSE 707MAINTAINER_MODE_TRUE 708AM_BACKSLASH 709AM_DEFAULT_VERBOSITY 710AM_DEFAULT_V 711AM_V 712am__untar 713am__tar 714AMTAR 715am__leading_dot 716SET_MAKE 717AWK 718mkdir_p 719MKDIR_P 720INSTALL_STRIP_PROGRAM 721STRIP 722install_sh 723MAKEINFO 724AUTOHEADER 725AUTOMAKE 726AUTOCONF 727ACLOCAL 728VERSION 729PACKAGE 730CYGPATH_W 731am__isrc 732INSTALL_DATA 733INSTALL_SCRIPT 734INSTALL_PROGRAM 735target_alias 736host_alias 737build_alias 738LIBS 739ECHO_T 740ECHO_N 741ECHO_C 742DEFS 743mandir 744localedir 745libdir 746psdir 747pdfdir 748dvidir 749htmldir 750infodir 751docdir 752oldincludedir 753includedir 754runstatedir 755localstatedir 756sharedstatedir 757sysconfdir 758datadir 759datarootdir 760libexecdir 761sbindir 762bindir 763program_transform_name 764prefix 765exec_prefix 766PACKAGE_URL 767PACKAGE_BUGREPORT 768PACKAGE_STRING 769PACKAGE_VERSION 770PACKAGE_TARNAME 771PACKAGE_NAME 772PATH_SEPARATOR 773SHELL' 774ac_subst_files='' 775ac_user_opts=' 776enable_option_checking 777enable_silent_rules 778enable_maintainer_mode 779enable_compile_c 780enable_gcc_armv5 781enable_amrnb_encoder 782enable_amrnb_decoder 783enable_examples 784enable_dependency_tracking 785enable_shared 786enable_static 787with_pic 788enable_fast_install 789with_aix_soname 790with_gnu_ld 791with_sysroot 792enable_libtool_lock 793' 794 ac_precious_vars='build_alias 795host_alias 796target_alias 797CXX 798CXXFLAGS 799LDFLAGS 800LIBS 801CPPFLAGS 802CCC 803CC 804CFLAGS 805LT_SYS_LIBRARY_PATH 806CPP 807CXXCPP' 808 809 810# Initialize some variables set by options. 811ac_init_help= 812ac_init_version=false 813ac_unrecognized_opts= 814ac_unrecognized_sep= 815# The variables have the same names as the options, with 816# dashes changed to underlines. 817cache_file=/dev/null 818exec_prefix=NONE 819no_create= 820no_recursion= 821prefix=NONE 822program_prefix=NONE 823program_suffix=NONE 824program_transform_name=s,x,x, 825silent= 826site= 827srcdir= 828verbose= 829x_includes=NONE 830x_libraries=NONE 831 832# Installation directory options. 833# These are left unexpanded so users can "make install exec_prefix=/foo" 834# and all the variables that are supposed to be based on exec_prefix 835# by default will actually change. 836# Use braces instead of parens because sh, perl, etc. also accept them. 837# (The list follows the same order as the GNU Coding Standards.) 838bindir='${exec_prefix}/bin' 839sbindir='${exec_prefix}/sbin' 840libexecdir='${exec_prefix}/libexec' 841datarootdir='${prefix}/share' 842datadir='${datarootdir}' 843sysconfdir='${prefix}/etc' 844sharedstatedir='${prefix}/com' 845localstatedir='${prefix}/var' 846runstatedir='${localstatedir}/run' 847includedir='${prefix}/include' 848oldincludedir='/usr/include' 849docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 850infodir='${datarootdir}/info' 851htmldir='${docdir}' 852dvidir='${docdir}' 853pdfdir='${docdir}' 854psdir='${docdir}' 855libdir='${exec_prefix}/lib' 856localedir='${datarootdir}/locale' 857mandir='${datarootdir}/man' 858 859ac_prev= 860ac_dashdash= 861for ac_option 862do 863 # If the previous option needs an argument, assign it. 864 if test -n "$ac_prev"; then 865 eval $ac_prev=\$ac_option 866 ac_prev= 867 continue 868 fi 869 870 case $ac_option in 871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 872 *=) ac_optarg= ;; 873 *) ac_optarg=yes ;; 874 esac 875 876 # Accept the important Cygnus configure options, so we can diagnose typos. 877 878 case $ac_dashdash$ac_option in 879 --) 880 ac_dashdash=yes ;; 881 882 -bindir | --bindir | --bindi | --bind | --bin | --bi) 883 ac_prev=bindir ;; 884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 885 bindir=$ac_optarg ;; 886 887 -build | --build | --buil | --bui | --bu) 888 ac_prev=build_alias ;; 889 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 890 build_alias=$ac_optarg ;; 891 892 -cache-file | --cache-file | --cache-fil | --cache-fi \ 893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 894 ac_prev=cache_file ;; 895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 897 cache_file=$ac_optarg ;; 898 899 --config-cache | -C) 900 cache_file=config.cache ;; 901 902 -datadir | --datadir | --datadi | --datad) 903 ac_prev=datadir ;; 904 -datadir=* | --datadir=* | --datadi=* | --datad=*) 905 datadir=$ac_optarg ;; 906 907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 908 | --dataroo | --dataro | --datar) 909 ac_prev=datarootdir ;; 910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 912 datarootdir=$ac_optarg ;; 913 914 -disable-* | --disable-*) 915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 916 # Reject names that are not valid shell variable names. 917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 918 as_fn_error $? "invalid feature name: $ac_useropt" 919 ac_useropt_orig=$ac_useropt 920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 921 case $ac_user_opts in 922 *" 923"enable_$ac_useropt" 924"*) ;; 925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 926 ac_unrecognized_sep=', ';; 927 esac 928 eval enable_$ac_useropt=no ;; 929 930 -docdir | --docdir | --docdi | --doc | --do) 931 ac_prev=docdir ;; 932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 933 docdir=$ac_optarg ;; 934 935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 936 ac_prev=dvidir ;; 937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 938 dvidir=$ac_optarg ;; 939 940 -enable-* | --enable-*) 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 942 # Reject names that are not valid shell variable names. 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944 as_fn_error $? "invalid feature name: $ac_useropt" 945 ac_useropt_orig=$ac_useropt 946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 947 case $ac_user_opts in 948 *" 949"enable_$ac_useropt" 950"*) ;; 951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 952 ac_unrecognized_sep=', ';; 953 esac 954 eval enable_$ac_useropt=\$ac_optarg ;; 955 956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 958 | --exec | --exe | --ex) 959 ac_prev=exec_prefix ;; 960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 962 | --exec=* | --exe=* | --ex=*) 963 exec_prefix=$ac_optarg ;; 964 965 -gas | --gas | --ga | --g) 966 # Obsolete; use --with-gas. 967 with_gas=yes ;; 968 969 -help | --help | --hel | --he | -h) 970 ac_init_help=long ;; 971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 972 ac_init_help=recursive ;; 973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 974 ac_init_help=short ;; 975 976 -host | --host | --hos | --ho) 977 ac_prev=host_alias ;; 978 -host=* | --host=* | --hos=* | --ho=*) 979 host_alias=$ac_optarg ;; 980 981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 982 ac_prev=htmldir ;; 983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 984 | --ht=*) 985 htmldir=$ac_optarg ;; 986 987 -includedir | --includedir | --includedi | --included | --include \ 988 | --includ | --inclu | --incl | --inc) 989 ac_prev=includedir ;; 990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 991 | --includ=* | --inclu=* | --incl=* | --inc=*) 992 includedir=$ac_optarg ;; 993 994 -infodir | --infodir | --infodi | --infod | --info | --inf) 995 ac_prev=infodir ;; 996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 997 infodir=$ac_optarg ;; 998 999 -libdir | --libdir | --libdi | --libd) 1000 ac_prev=libdir ;; 1001 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1002 libdir=$ac_optarg ;; 1003 1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1005 | --libexe | --libex | --libe) 1006 ac_prev=libexecdir ;; 1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1008 | --libexe=* | --libex=* | --libe=*) 1009 libexecdir=$ac_optarg ;; 1010 1011 -localedir | --localedir | --localedi | --localed | --locale) 1012 ac_prev=localedir ;; 1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1014 localedir=$ac_optarg ;; 1015 1016 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1017 | --localstate | --localstat | --localsta | --localst | --locals) 1018 ac_prev=localstatedir ;; 1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1021 localstatedir=$ac_optarg ;; 1022 1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1024 ac_prev=mandir ;; 1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1026 mandir=$ac_optarg ;; 1027 1028 -nfp | --nfp | --nf) 1029 # Obsolete; use --without-fp. 1030 with_fp=no ;; 1031 1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1033 | --no-cr | --no-c | -n) 1034 no_create=yes ;; 1035 1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1038 no_recursion=yes ;; 1039 1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1042 | --oldin | --oldi | --old | --ol | --o) 1043 ac_prev=oldincludedir ;; 1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1047 oldincludedir=$ac_optarg ;; 1048 1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1050 ac_prev=prefix ;; 1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1052 prefix=$ac_optarg ;; 1053 1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1055 | --program-pre | --program-pr | --program-p) 1056 ac_prev=program_prefix ;; 1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1059 program_prefix=$ac_optarg ;; 1060 1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1062 | --program-suf | --program-su | --program-s) 1063 ac_prev=program_suffix ;; 1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1066 program_suffix=$ac_optarg ;; 1067 1068 -program-transform-name | --program-transform-name \ 1069 | --program-transform-nam | --program-transform-na \ 1070 | --program-transform-n | --program-transform- \ 1071 | --program-transform | --program-transfor \ 1072 | --program-transfo | --program-transf \ 1073 | --program-trans | --program-tran \ 1074 | --progr-tra | --program-tr | --program-t) 1075 ac_prev=program_transform_name ;; 1076 -program-transform-name=* | --program-transform-name=* \ 1077 | --program-transform-nam=* | --program-transform-na=* \ 1078 | --program-transform-n=* | --program-transform-=* \ 1079 | --program-transform=* | --program-transfor=* \ 1080 | --program-transfo=* | --program-transf=* \ 1081 | --program-trans=* | --program-tran=* \ 1082 | --progr-tra=* | --program-tr=* | --program-t=*) 1083 program_transform_name=$ac_optarg ;; 1084 1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1086 ac_prev=pdfdir ;; 1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1088 pdfdir=$ac_optarg ;; 1089 1090 -psdir | --psdir | --psdi | --psd | --ps) 1091 ac_prev=psdir ;; 1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1093 psdir=$ac_optarg ;; 1094 1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1096 | -silent | --silent | --silen | --sile | --sil) 1097 silent=yes ;; 1098 1099 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1100 | --runstate | --runstat | --runsta | --runst | --runs \ 1101 | --run | --ru | --r) 1102 ac_prev=runstatedir ;; 1103 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1104 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1105 | --run=* | --ru=* | --r=*) 1106 runstatedir=$ac_optarg ;; 1107 1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1109 ac_prev=sbindir ;; 1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1111 | --sbi=* | --sb=*) 1112 sbindir=$ac_optarg ;; 1113 1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1116 | --sharedst | --shareds | --shared | --share | --shar \ 1117 | --sha | --sh) 1118 ac_prev=sharedstatedir ;; 1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1122 | --sha=* | --sh=*) 1123 sharedstatedir=$ac_optarg ;; 1124 1125 -site | --site | --sit) 1126 ac_prev=site ;; 1127 -site=* | --site=* | --sit=*) 1128 site=$ac_optarg ;; 1129 1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1131 ac_prev=srcdir ;; 1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1133 srcdir=$ac_optarg ;; 1134 1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1136 | --syscon | --sysco | --sysc | --sys | --sy) 1137 ac_prev=sysconfdir ;; 1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1140 sysconfdir=$ac_optarg ;; 1141 1142 -target | --target | --targe | --targ | --tar | --ta | --t) 1143 ac_prev=target_alias ;; 1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1145 target_alias=$ac_optarg ;; 1146 1147 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1148 verbose=yes ;; 1149 1150 -version | --version | --versio | --versi | --vers | -V) 1151 ac_init_version=: ;; 1152 1153 -with-* | --with-*) 1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 as_fn_error $? "invalid package name: $ac_useropt" 1158 ac_useropt_orig=$ac_useropt 1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 case $ac_user_opts in 1161 *" 1162"with_$ac_useropt" 1163"*) ;; 1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1165 ac_unrecognized_sep=', ';; 1166 esac 1167 eval with_$ac_useropt=\$ac_optarg ;; 1168 1169 -without-* | --without-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=no ;; 1184 1185 --x) 1186 # Obsolete; use --with-x. 1187 with_x=yes ;; 1188 1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1190 | --x-incl | --x-inc | --x-in | --x-i) 1191 ac_prev=x_includes ;; 1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1194 x_includes=$ac_optarg ;; 1195 1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1198 ac_prev=x_libraries ;; 1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1201 x_libraries=$ac_optarg ;; 1202 1203 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1204Try \`$0 --help' for more information" 1205 ;; 1206 1207 *=*) 1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1209 # Reject names that are not valid shell variable names. 1210 case $ac_envvar in #( 1211 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1213 esac 1214 eval $ac_envvar=\$ac_optarg 1215 export $ac_envvar ;; 1216 1217 *) 1218 # FIXME: should be removed in autoconf 3.0. 1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1223 ;; 1224 1225 esac 1226done 1227 1228if test -n "$ac_prev"; then 1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1230 as_fn_error $? "missing argument to $ac_option" 1231fi 1232 1233if test -n "$ac_unrecognized_opts"; then 1234 case $enable_option_checking in 1235 no) ;; 1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1238 esac 1239fi 1240 1241# Check all directory arguments for consistency. 1242for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1243 datadir sysconfdir sharedstatedir localstatedir includedir \ 1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1245 libdir localedir mandir runstatedir 1246do 1247 eval ac_val=\$$ac_var 1248 # Remove trailing slashes. 1249 case $ac_val in 1250 */ ) 1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1252 eval $ac_var=\$ac_val;; 1253 esac 1254 # Be sure to have absolute directory names. 1255 case $ac_val in 1256 [\\/$]* | ?:[\\/]* ) continue;; 1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1258 esac 1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1260done 1261 1262# There might be people who depend on the old broken behavior: `$host' 1263# used to hold the argument of --host etc. 1264# FIXME: To remove some day. 1265build=$build_alias 1266host=$host_alias 1267target=$target_alias 1268 1269# FIXME: To remove some day. 1270if test "x$host_alias" != x; then 1271 if test "x$build_alias" = x; then 1272 cross_compiling=maybe 1273 elif test "x$build_alias" != "x$host_alias"; then 1274 cross_compiling=yes 1275 fi 1276fi 1277 1278ac_tool_prefix= 1279test -n "$host_alias" && ac_tool_prefix=$host_alias- 1280 1281test "$silent" = yes && exec 6>/dev/null 1282 1283 1284ac_pwd=`pwd` && test -n "$ac_pwd" && 1285ac_ls_di=`ls -di .` && 1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1287 as_fn_error $? "working directory cannot be determined" 1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1289 as_fn_error $? "pwd does not report name of working directory" 1290 1291 1292# Find the source files, if location was not specified. 1293if test -z "$srcdir"; then 1294 ac_srcdir_defaulted=yes 1295 # Try the directory containing this script, then the parent directory. 1296 ac_confdir=`$as_dirname -- "$as_myself" || 1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1298 X"$as_myself" : 'X\(//\)[^/]' \| \ 1299 X"$as_myself" : 'X\(//\)$' \| \ 1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1301$as_echo X"$as_myself" | 1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)[^/].*/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\/\)$/{ 1311 s//\1/ 1312 q 1313 } 1314 /^X\(\/\).*/{ 1315 s//\1/ 1316 q 1317 } 1318 s/.*/./; q'` 1319 srcdir=$ac_confdir 1320 if test ! -r "$srcdir/$ac_unique_file"; then 1321 srcdir=.. 1322 fi 1323else 1324 ac_srcdir_defaulted=no 1325fi 1326if test ! -r "$srcdir/$ac_unique_file"; then 1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1329fi 1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1331ac_abs_confdir=`( 1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1333 pwd)` 1334# When building in place, set srcdir=. 1335if test "$ac_abs_confdir" = "$ac_pwd"; then 1336 srcdir=. 1337fi 1338# Remove unnecessary trailing slashes from srcdir. 1339# Double slashes in file names in object file debugging info 1340# mess up M-x gdb in Emacs. 1341case $srcdir in 1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1343esac 1344for ac_var in $ac_precious_vars; do 1345 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1346 eval ac_env_${ac_var}_value=\$${ac_var} 1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1349done 1350 1351# 1352# Report the --help message. 1353# 1354if test "$ac_init_help" = "long"; then 1355 # Omit some internal or obsolete options to make the list less imposing. 1356 # This message is too long to be a string in the A/UX 3.1 sh. 1357 cat <<_ACEOF 1358\`configure' configures opencore-amr 0.1.5 to adapt to many kinds of systems. 1359 1360Usage: $0 [OPTION]... [VAR=VALUE]... 1361 1362To assign environment variables (e.g., CC, CFLAGS...), specify them as 1363VAR=VALUE. See below for descriptions of some of the useful variables. 1364 1365Defaults for the options are specified in brackets. 1366 1367Configuration: 1368 -h, --help display this help and exit 1369 --help=short display options specific to this package 1370 --help=recursive display the short help of all the included packages 1371 -V, --version display version information and exit 1372 -q, --quiet, --silent do not print \`checking ...' messages 1373 --cache-file=FILE cache test results in FILE [disabled] 1374 -C, --config-cache alias for \`--cache-file=config.cache' 1375 -n, --no-create do not create output files 1376 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1377 1378Installation directories: 1379 --prefix=PREFIX install architecture-independent files in PREFIX 1380 [$ac_default_prefix] 1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1382 [PREFIX] 1383 1384By default, \`make install' will install all the files in 1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1386an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1387for instance \`--prefix=\$HOME'. 1388 1389For better control, use the options below. 1390 1391Fine tuning of the installation directories: 1392 --bindir=DIR user executables [EPREFIX/bin] 1393 --sbindir=DIR system admin executables [EPREFIX/sbin] 1394 --libexecdir=DIR program executables [EPREFIX/libexec] 1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1398 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1399 --libdir=DIR object code libraries [EPREFIX/lib] 1400 --includedir=DIR C header files [PREFIX/include] 1401 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1404 --infodir=DIR info documentation [DATAROOTDIR/info] 1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1406 --mandir=DIR man documentation [DATAROOTDIR/man] 1407 --docdir=DIR documentation root [DATAROOTDIR/doc/opencore-amr] 1408 --htmldir=DIR html documentation [DOCDIR] 1409 --dvidir=DIR dvi documentation [DOCDIR] 1410 --pdfdir=DIR pdf documentation [DOCDIR] 1411 --psdir=DIR ps documentation [DOCDIR] 1412_ACEOF 1413 1414 cat <<\_ACEOF 1415 1416Program names: 1417 --program-prefix=PREFIX prepend PREFIX to installed program names 1418 --program-suffix=SUFFIX append SUFFIX to installed program names 1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1420 1421System types: 1422 --build=BUILD configure for building on BUILD [guessed] 1423 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1424_ACEOF 1425fi 1426 1427if test -n "$ac_init_help"; then 1428 case $ac_init_help in 1429 short | recursive ) echo "Configuration of opencore-amr 0.1.5:";; 1430 esac 1431 cat <<\_ACEOF 1432 1433Optional Features: 1434 --disable-option-checking ignore unrecognized --enable/--with options 1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1437 --enable-silent-rules less verbose build output (undo: "make V=1") 1438 --disable-silent-rules verbose build output (undo: "make V=0") 1439 --enable-maintainer-mode 1440 enable make rules and dependencies not useful (and 1441 sometimes confusing) to the casual installer 1442 --enable-compile-c enable compiling as C program (default is yes) 1443 --enable-gcc-armv5 enable GCC specific ARMv5 assembler (default is no) 1444 --enable-amrnb-encoder enable AMR-NB encoder (default is yes) 1445 --enable-amrnb-decoder enable AMR-NB decoder (default is yes) 1446 --enable-examples enable example encoding/decoding programs (default 1447 is no) 1448 --enable-dependency-tracking 1449 do not reject slow dependency extractors 1450 --disable-dependency-tracking 1451 speeds up one-time build 1452 --enable-shared[=PKGS] build shared libraries [default=yes] 1453 --enable-static[=PKGS] build static libraries [default=yes] 1454 --enable-fast-install[=PKGS] 1455 optimize for fast installation [default=yes] 1456 --disable-libtool-lock avoid locking (might break parallel builds) 1457 1458Optional Packages: 1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1461 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1462 both] 1463 --with-aix-soname=aix|svr4|both 1464 shared library versioning (aka "SONAME") variant to 1465 provide on AIX, [default=aix]. 1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1467 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1468 compiler's sysroot if not specified). 1469 1470Some influential environment variables: 1471 CXX C++ compiler command 1472 CXXFLAGS C++ compiler flags 1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1474 nonstandard directory <lib dir> 1475 LIBS libraries to pass to the linker, e.g. -l<library> 1476 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1477 you have headers in a nonstandard directory <include dir> 1478 CC C compiler command 1479 CFLAGS C compiler flags 1480 LT_SYS_LIBRARY_PATH 1481 User-defined run-time library search path. 1482 CPP C preprocessor 1483 CXXCPP C++ preprocessor 1484 1485Use these variables to override the choices made by `configure' or to help 1486it to find libraries and programs with nonstandard names/locations. 1487 1488Report bugs to <http://sourceforge.net/projects/opencore-amr/>. 1489_ACEOF 1490ac_status=$? 1491fi 1492 1493if test "$ac_init_help" = "recursive"; then 1494 # If there are subdirs, report their specific --help. 1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1496 test -d "$ac_dir" || 1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1498 continue 1499 ac_builddir=. 1500 1501case "$ac_dir" in 1502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1503*) 1504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1505 # A ".." for each directory in $ac_dir_suffix. 1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1507 case $ac_top_builddir_sub in 1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1510 esac ;; 1511esac 1512ac_abs_top_builddir=$ac_pwd 1513ac_abs_builddir=$ac_pwd$ac_dir_suffix 1514# for backward compatibility: 1515ac_top_builddir=$ac_top_build_prefix 1516 1517case $srcdir in 1518 .) # We are building in place. 1519 ac_srcdir=. 1520 ac_top_srcdir=$ac_top_builddir_sub 1521 ac_abs_top_srcdir=$ac_pwd ;; 1522 [\\/]* | ?:[\\/]* ) # Absolute name. 1523 ac_srcdir=$srcdir$ac_dir_suffix; 1524 ac_top_srcdir=$srcdir 1525 ac_abs_top_srcdir=$srcdir ;; 1526 *) # Relative name. 1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1528 ac_top_srcdir=$ac_top_build_prefix$srcdir 1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1530esac 1531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1532 1533 cd "$ac_dir" || { ac_status=$?; continue; } 1534 # Check for guested configure. 1535 if test -f "$ac_srcdir/configure.gnu"; then 1536 echo && 1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1538 elif test -f "$ac_srcdir/configure"; then 1539 echo && 1540 $SHELL "$ac_srcdir/configure" --help=recursive 1541 else 1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1543 fi || ac_status=$? 1544 cd "$ac_pwd" || { ac_status=$?; break; } 1545 done 1546fi 1547 1548test -n "$ac_init_help" && exit $ac_status 1549if $ac_init_version; then 1550 cat <<\_ACEOF 1551opencore-amr configure 0.1.5 1552generated by GNU Autoconf 2.69 1553 1554Copyright (C) 2012 Free Software Foundation, Inc. 1555This configure script is free software; the Free Software Foundation 1556gives unlimited permission to copy, distribute and modify it. 1557_ACEOF 1558 exit 1559fi 1560 1561## ------------------------ ## 1562## Autoconf initialization. ## 1563## ------------------------ ## 1564 1565# ac_fn_cxx_try_compile LINENO 1566# ---------------------------- 1567# Try to compile conftest.$ac_ext, and return whether this succeeded. 1568ac_fn_cxx_try_compile () 1569{ 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1571 rm -f conftest.$ac_objext 1572 if { { ac_try="$ac_compile" 1573case "(($ac_try" in 1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1575 *) ac_try_echo=$ac_try;; 1576esac 1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1578$as_echo "$ac_try_echo"; } >&5 1579 (eval "$ac_compile") 2>conftest.err 1580 ac_status=$? 1581 if test -s conftest.err; then 1582 grep -v '^ *+' conftest.err >conftest.er1 1583 cat conftest.er1 >&5 1584 mv -f conftest.er1 conftest.err 1585 fi 1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1587 test $ac_status = 0; } && { 1588 test -z "$ac_cxx_werror_flag" || 1589 test ! -s conftest.err 1590 } && test -s conftest.$ac_objext; then : 1591 ac_retval=0 1592else 1593 $as_echo "$as_me: failed program was:" >&5 1594sed 's/^/| /' conftest.$ac_ext >&5 1595 1596 ac_retval=1 1597fi 1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1599 as_fn_set_status $ac_retval 1600 1601} # ac_fn_cxx_try_compile 1602 1603# ac_fn_c_try_compile LINENO 1604# -------------------------- 1605# Try to compile conftest.$ac_ext, and return whether this succeeded. 1606ac_fn_c_try_compile () 1607{ 1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1609 rm -f conftest.$ac_objext 1610 if { { ac_try="$ac_compile" 1611case "(($ac_try" in 1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1613 *) ac_try_echo=$ac_try;; 1614esac 1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1616$as_echo "$ac_try_echo"; } >&5 1617 (eval "$ac_compile") 2>conftest.err 1618 ac_status=$? 1619 if test -s conftest.err; then 1620 grep -v '^ *+' conftest.err >conftest.er1 1621 cat conftest.er1 >&5 1622 mv -f conftest.er1 conftest.err 1623 fi 1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1625 test $ac_status = 0; } && { 1626 test -z "$ac_c_werror_flag" || 1627 test ! -s conftest.err 1628 } && test -s conftest.$ac_objext; then : 1629 ac_retval=0 1630else 1631 $as_echo "$as_me: failed program was:" >&5 1632sed 's/^/| /' conftest.$ac_ext >&5 1633 1634 ac_retval=1 1635fi 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 as_fn_set_status $ac_retval 1638 1639} # ac_fn_c_try_compile 1640 1641# ac_fn_c_try_link LINENO 1642# ----------------------- 1643# Try to link conftest.$ac_ext, and return whether this succeeded. 1644ac_fn_c_try_link () 1645{ 1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1647 rm -f conftest.$ac_objext conftest$ac_exeext 1648 if { { ac_try="$ac_link" 1649case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652esac 1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654$as_echo "$ac_try_echo"; } >&5 1655 (eval "$ac_link") 2>conftest.err 1656 ac_status=$? 1657 if test -s conftest.err; then 1658 grep -v '^ *+' conftest.err >conftest.er1 1659 cat conftest.er1 >&5 1660 mv -f conftest.er1 conftest.err 1661 fi 1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1663 test $ac_status = 0; } && { 1664 test -z "$ac_c_werror_flag" || 1665 test ! -s conftest.err 1666 } && test -s conftest$ac_exeext && { 1667 test "$cross_compiling" = yes || 1668 test -x conftest$ac_exeext 1669 }; then : 1670 ac_retval=0 1671else 1672 $as_echo "$as_me: failed program was:" >&5 1673sed 's/^/| /' conftest.$ac_ext >&5 1674 1675 ac_retval=1 1676fi 1677 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1678 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1679 # interfere with the next link command; also delete a directory that is 1680 # left behind by Apple's compiler. We do this before executing the actions. 1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1683 as_fn_set_status $ac_retval 1684 1685} # ac_fn_c_try_link 1686 1687# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1688# ------------------------------------------------------- 1689# Tests whether HEADER exists and can be compiled using the include files in 1690# INCLUDES, setting the cache variable VAR accordingly. 1691ac_fn_c_check_header_compile () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1695$as_echo_n "checking for $2... " >&6; } 1696if eval \${$3+:} false; then : 1697 $as_echo_n "(cached) " >&6 1698else 1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1700/* end confdefs.h. */ 1701$4 1702#include <$2> 1703_ACEOF 1704if ac_fn_c_try_compile "$LINENO"; then : 1705 eval "$3=yes" 1706else 1707 eval "$3=no" 1708fi 1709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1710fi 1711eval ac_res=\$$3 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1713$as_echo "$ac_res" >&6; } 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 1716} # ac_fn_c_check_header_compile 1717 1718# ac_fn_c_try_cpp LINENO 1719# ---------------------- 1720# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1721ac_fn_c_try_cpp () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 if { { ac_try="$ac_cpp conftest.$ac_ext" 1725case "(($ac_try" in 1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727 *) ac_try_echo=$ac_try;; 1728esac 1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730$as_echo "$ac_try_echo"; } >&5 1731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1732 ac_status=$? 1733 if test -s conftest.err; then 1734 grep -v '^ *+' conftest.err >conftest.er1 1735 cat conftest.er1 >&5 1736 mv -f conftest.er1 conftest.err 1737 fi 1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; } > conftest.i && { 1740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1741 test ! -s conftest.err 1742 }; then : 1743 ac_retval=0 1744else 1745 $as_echo "$as_me: failed program was:" >&5 1746sed 's/^/| /' conftest.$ac_ext >&5 1747 1748 ac_retval=1 1749fi 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 as_fn_set_status $ac_retval 1752 1753} # ac_fn_c_try_cpp 1754 1755# ac_fn_c_try_run LINENO 1756# ---------------------- 1757# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1758# that executables *can* be run. 1759ac_fn_c_try_run () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 if { { ac_try="$ac_link" 1763case "(($ac_try" in 1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1765 *) ac_try_echo=$ac_try;; 1766esac 1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1768$as_echo "$ac_try_echo"; } >&5 1769 (eval "$ac_link") 2>&5 1770 ac_status=$? 1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1773 { { case "(($ac_try" in 1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1775 *) ac_try_echo=$ac_try;; 1776esac 1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1778$as_echo "$ac_try_echo"; } >&5 1779 (eval "$ac_try") 2>&5 1780 ac_status=$? 1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1782 test $ac_status = 0; }; }; then : 1783 ac_retval=0 1784else 1785 $as_echo "$as_me: program exited with status $ac_status" >&5 1786 $as_echo "$as_me: failed program was:" >&5 1787sed 's/^/| /' conftest.$ac_ext >&5 1788 1789 ac_retval=$ac_status 1790fi 1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1793 as_fn_set_status $ac_retval 1794 1795} # ac_fn_c_try_run 1796 1797# ac_fn_c_check_func LINENO FUNC VAR 1798# ---------------------------------- 1799# Tests whether FUNC exists, setting the cache variable VAR accordingly 1800ac_fn_c_check_func () 1801{ 1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1804$as_echo_n "checking for $2... " >&6; } 1805if eval \${$3+:} false; then : 1806 $as_echo_n "(cached) " >&6 1807else 1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1809/* end confdefs.h. */ 1810/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1811 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1812#define $2 innocuous_$2 1813 1814/* System header to define __stub macros and hopefully few prototypes, 1815 which can conflict with char $2 (); below. 1816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1817 <limits.h> exists even on freestanding compilers. */ 1818 1819#ifdef __STDC__ 1820# include <limits.h> 1821#else 1822# include <assert.h> 1823#endif 1824 1825#undef $2 1826 1827/* Override any GCC internal prototype to avoid an error. 1828 Use char because int might match the return type of a GCC 1829 builtin and then its argument prototype would still apply. */ 1830#ifdef __cplusplus 1831extern "C" 1832#endif 1833char $2 (); 1834/* The GNU C library defines this for functions which it implements 1835 to always fail with ENOSYS. Some functions are actually named 1836 something starting with __ and the normal name is an alias. */ 1837#if defined __stub_$2 || defined __stub___$2 1838choke me 1839#endif 1840 1841int 1842main () 1843{ 1844return $2 (); 1845 ; 1846 return 0; 1847} 1848_ACEOF 1849if ac_fn_c_try_link "$LINENO"; then : 1850 eval "$3=yes" 1851else 1852 eval "$3=no" 1853fi 1854rm -f core conftest.err conftest.$ac_objext \ 1855 conftest$ac_exeext conftest.$ac_ext 1856fi 1857eval ac_res=\$$3 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1859$as_echo "$ac_res" >&6; } 1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1861 1862} # ac_fn_c_check_func 1863 1864# ac_fn_cxx_try_cpp LINENO 1865# ------------------------ 1866# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1867ac_fn_cxx_try_cpp () 1868{ 1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1870 if { { ac_try="$ac_cpp conftest.$ac_ext" 1871case "(($ac_try" in 1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1873 *) ac_try_echo=$ac_try;; 1874esac 1875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1876$as_echo "$ac_try_echo"; } >&5 1877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1878 ac_status=$? 1879 if test -s conftest.err; then 1880 grep -v '^ *+' conftest.err >conftest.er1 1881 cat conftest.er1 >&5 1882 mv -f conftest.er1 conftest.err 1883 fi 1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1885 test $ac_status = 0; } > conftest.i && { 1886 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1887 test ! -s conftest.err 1888 }; then : 1889 ac_retval=0 1890else 1891 $as_echo "$as_me: failed program was:" >&5 1892sed 's/^/| /' conftest.$ac_ext >&5 1893 1894 ac_retval=1 1895fi 1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1897 as_fn_set_status $ac_retval 1898 1899} # ac_fn_cxx_try_cpp 1900 1901# ac_fn_cxx_try_link LINENO 1902# ------------------------- 1903# Try to link conftest.$ac_ext, and return whether this succeeded. 1904ac_fn_cxx_try_link () 1905{ 1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1907 rm -f conftest.$ac_objext conftest$ac_exeext 1908 if { { ac_try="$ac_link" 1909case "(($ac_try" in 1910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1911 *) ac_try_echo=$ac_try;; 1912esac 1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1914$as_echo "$ac_try_echo"; } >&5 1915 (eval "$ac_link") 2>conftest.err 1916 ac_status=$? 1917 if test -s conftest.err; then 1918 grep -v '^ *+' conftest.err >conftest.er1 1919 cat conftest.er1 >&5 1920 mv -f conftest.er1 conftest.err 1921 fi 1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1923 test $ac_status = 0; } && { 1924 test -z "$ac_cxx_werror_flag" || 1925 test ! -s conftest.err 1926 } && test -s conftest$ac_exeext && { 1927 test "$cross_compiling" = yes || 1928 test -x conftest$ac_exeext 1929 }; then : 1930 ac_retval=0 1931else 1932 $as_echo "$as_me: failed program was:" >&5 1933sed 's/^/| /' conftest.$ac_ext >&5 1934 1935 ac_retval=1 1936fi 1937 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1938 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1939 # interfere with the next link command; also delete a directory that is 1940 # left behind by Apple's compiler. We do this before executing the actions. 1941 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1943 as_fn_set_status $ac_retval 1944 1945} # ac_fn_cxx_try_link 1946 1947# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1948# ------------------------------------------------------- 1949# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1950# the include files in INCLUDES and setting the cache variable VAR 1951# accordingly. 1952ac_fn_c_check_header_mongrel () 1953{ 1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1955 if eval \${$3+:} false; then : 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1957$as_echo_n "checking for $2... " >&6; } 1958if eval \${$3+:} false; then : 1959 $as_echo_n "(cached) " >&6 1960fi 1961eval ac_res=\$$3 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1963$as_echo "$ac_res" >&6; } 1964else 1965 # Is the header compilable? 1966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1967$as_echo_n "checking $2 usability... " >&6; } 1968cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1969/* end confdefs.h. */ 1970$4 1971#include <$2> 1972_ACEOF 1973if ac_fn_c_try_compile "$LINENO"; then : 1974 ac_header_compiler=yes 1975else 1976 ac_header_compiler=no 1977fi 1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1980$as_echo "$ac_header_compiler" >&6; } 1981 1982# Is the header present? 1983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1984$as_echo_n "checking $2 presence... " >&6; } 1985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1986/* end confdefs.h. */ 1987#include <$2> 1988_ACEOF 1989if ac_fn_c_try_cpp "$LINENO"; then : 1990 ac_header_preproc=yes 1991else 1992 ac_header_preproc=no 1993fi 1994rm -f conftest.err conftest.i conftest.$ac_ext 1995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1996$as_echo "$ac_header_preproc" >&6; } 1997 1998# So? What about this header? 1999case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2000 yes:no: ) 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2002$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2004$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2005 ;; 2006 no:yes:* ) 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2008$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2010$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2012$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2014$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2016$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2017( $as_echo "## ------------------------------------------------------------ ## 2018## Report this to http://sourceforge.net/projects/opencore-amr/ ## 2019## ------------------------------------------------------------ ##" 2020 ) | sed "s/^/$as_me: WARNING: /" >&2 2021 ;; 2022esac 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2024$as_echo_n "checking for $2... " >&6; } 2025if eval \${$3+:} false; then : 2026 $as_echo_n "(cached) " >&6 2027else 2028 eval "$3=\$ac_header_compiler" 2029fi 2030eval ac_res=\$$3 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2032$as_echo "$ac_res" >&6; } 2033fi 2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2035 2036} # ac_fn_c_check_header_mongrel 2037 2038# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2039# ------------------------------------------- 2040# Tests whether TYPE exists after having included INCLUDES, setting cache 2041# variable VAR accordingly. 2042ac_fn_c_check_type () 2043{ 2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2046$as_echo_n "checking for $2... " >&6; } 2047if eval \${$3+:} false; then : 2048 $as_echo_n "(cached) " >&6 2049else 2050 eval "$3=no" 2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2052/* end confdefs.h. */ 2053$4 2054int 2055main () 2056{ 2057if (sizeof ($2)) 2058 return 0; 2059 ; 2060 return 0; 2061} 2062_ACEOF 2063if ac_fn_c_try_compile "$LINENO"; then : 2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2065/* end confdefs.h. */ 2066$4 2067int 2068main () 2069{ 2070if (sizeof (($2))) 2071 return 0; 2072 ; 2073 return 0; 2074} 2075_ACEOF 2076if ac_fn_c_try_compile "$LINENO"; then : 2077 2078else 2079 eval "$3=yes" 2080fi 2081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2082fi 2083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2084fi 2085eval ac_res=\$$3 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2087$as_echo "$ac_res" >&6; } 2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2089 2090} # ac_fn_c_check_type 2091 2092# ac_fn_c_find_intX_t LINENO BITS VAR 2093# ----------------------------------- 2094# Finds a signed integer type with width BITS, setting cache variable VAR 2095# accordingly. 2096ac_fn_c_find_intX_t () 2097{ 2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2100$as_echo_n "checking for int$2_t... " >&6; } 2101if eval \${$3+:} false; then : 2102 $as_echo_n "(cached) " >&6 2103else 2104 eval "$3=no" 2105 # Order is important - never check a type that is potentially smaller 2106 # than half of the expected target width. 2107 for ac_type in int$2_t 'int' 'long int' \ 2108 'long long int' 'short int' 'signed char'; do 2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110/* end confdefs.h. */ 2111$ac_includes_default 2112 enum { N = $2 / 2 - 1 }; 2113int 2114main () 2115{ 2116static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2117test_array [0] = 0; 2118return test_array [0]; 2119 2120 ; 2121 return 0; 2122} 2123_ACEOF 2124if ac_fn_c_try_compile "$LINENO"; then : 2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2126/* end confdefs.h. */ 2127$ac_includes_default 2128 enum { N = $2 / 2 - 1 }; 2129int 2130main () 2131{ 2132static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2133 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2134test_array [0] = 0; 2135return test_array [0]; 2136 2137 ; 2138 return 0; 2139} 2140_ACEOF 2141if ac_fn_c_try_compile "$LINENO"; then : 2142 2143else 2144 case $ac_type in #( 2145 int$2_t) : 2146 eval "$3=yes" ;; #( 2147 *) : 2148 eval "$3=\$ac_type" ;; 2149esac 2150fi 2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2152fi 2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2154 if eval test \"x\$"$3"\" = x"no"; then : 2155 2156else 2157 break 2158fi 2159 done 2160fi 2161eval ac_res=\$$3 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2163$as_echo "$ac_res" >&6; } 2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2165 2166} # ac_fn_c_find_intX_t 2167 2168# ac_fn_c_find_uintX_t LINENO BITS VAR 2169# ------------------------------------ 2170# Finds an unsigned integer type with width BITS, setting cache variable VAR 2171# accordingly. 2172ac_fn_c_find_uintX_t () 2173{ 2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2176$as_echo_n "checking for uint$2_t... " >&6; } 2177if eval \${$3+:} false; then : 2178 $as_echo_n "(cached) " >&6 2179else 2180 eval "$3=no" 2181 # Order is important - never check a type that is potentially smaller 2182 # than half of the expected target width. 2183 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2184 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2186/* end confdefs.h. */ 2187$ac_includes_default 2188int 2189main () 2190{ 2191static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2192test_array [0] = 0; 2193return test_array [0]; 2194 2195 ; 2196 return 0; 2197} 2198_ACEOF 2199if ac_fn_c_try_compile "$LINENO"; then : 2200 case $ac_type in #( 2201 uint$2_t) : 2202 eval "$3=yes" ;; #( 2203 *) : 2204 eval "$3=\$ac_type" ;; 2205esac 2206fi 2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2208 if eval test \"x\$"$3"\" = x"no"; then : 2209 2210else 2211 break 2212fi 2213 done 2214fi 2215eval ac_res=\$$3 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2217$as_echo "$ac_res" >&6; } 2218 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2219 2220} # ac_fn_c_find_uintX_t 2221cat >config.log <<_ACEOF 2222This file contains any messages produced by compilers while 2223running configure, to aid debugging if configure makes a mistake. 2224 2225It was created by opencore-amr $as_me 0.1.5, which was 2226generated by GNU Autoconf 2.69. Invocation command line was 2227 2228 $ $0 $@ 2229 2230_ACEOF 2231exec 5>>config.log 2232{ 2233cat <<_ASUNAME 2234## --------- ## 2235## Platform. ## 2236## --------- ## 2237 2238hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2239uname -m = `(uname -m) 2>/dev/null || echo unknown` 2240uname -r = `(uname -r) 2>/dev/null || echo unknown` 2241uname -s = `(uname -s) 2>/dev/null || echo unknown` 2242uname -v = `(uname -v) 2>/dev/null || echo unknown` 2243 2244/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2245/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2246 2247/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2248/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2249/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2250/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2251/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2252/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2253/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2254 2255_ASUNAME 2256 2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2258for as_dir in $PATH 2259do 2260 IFS=$as_save_IFS 2261 test -z "$as_dir" && as_dir=. 2262 $as_echo "PATH: $as_dir" 2263 done 2264IFS=$as_save_IFS 2265 2266} >&5 2267 2268cat >&5 <<_ACEOF 2269 2270 2271## ----------- ## 2272## Core tests. ## 2273## ----------- ## 2274 2275_ACEOF 2276 2277 2278# Keep a trace of the command line. 2279# Strip out --no-create and --no-recursion so they do not pile up. 2280# Strip out --silent because we don't want to record it for future runs. 2281# Also quote any args containing shell meta-characters. 2282# Make two passes to allow for proper duplicate-argument suppression. 2283ac_configure_args= 2284ac_configure_args0= 2285ac_configure_args1= 2286ac_must_keep_next=false 2287for ac_pass in 1 2 2288do 2289 for ac_arg 2290 do 2291 case $ac_arg in 2292 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2294 | -silent | --silent | --silen | --sile | --sil) 2295 continue ;; 2296 *\'*) 2297 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2298 esac 2299 case $ac_pass in 2300 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2301 2) 2302 as_fn_append ac_configure_args1 " '$ac_arg'" 2303 if test $ac_must_keep_next = true; then 2304 ac_must_keep_next=false # Got value, back to normal. 2305 else 2306 case $ac_arg in 2307 *=* | --config-cache | -C | -disable-* | --disable-* \ 2308 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2309 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2310 | -with-* | --with-* | -without-* | --without-* | --x) 2311 case "$ac_configure_args0 " in 2312 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2313 esac 2314 ;; 2315 -* ) ac_must_keep_next=true ;; 2316 esac 2317 fi 2318 as_fn_append ac_configure_args " '$ac_arg'" 2319 ;; 2320 esac 2321 done 2322done 2323{ ac_configure_args0=; unset ac_configure_args0;} 2324{ ac_configure_args1=; unset ac_configure_args1;} 2325 2326# When interrupted or exit'd, cleanup temporary files, and complete 2327# config.log. We remove comments because anyway the quotes in there 2328# would cause problems or look ugly. 2329# WARNING: Use '\'' to represent an apostrophe within the trap. 2330# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2331trap 'exit_status=$? 2332 # Save into config.log some information that might help in debugging. 2333 { 2334 echo 2335 2336 $as_echo "## ---------------- ## 2337## Cache variables. ## 2338## ---------------- ##" 2339 echo 2340 # The following way of writing the cache mishandles newlines in values, 2341( 2342 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2343 eval ac_val=\$$ac_var 2344 case $ac_val in #( 2345 *${as_nl}*) 2346 case $ac_var in #( 2347 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2348$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2349 esac 2350 case $ac_var in #( 2351 _ | IFS | as_nl) ;; #( 2352 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2353 *) { eval $ac_var=; unset $ac_var;} ;; 2354 esac ;; 2355 esac 2356 done 2357 (set) 2>&1 | 2358 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2359 *${as_nl}ac_space=\ *) 2360 sed -n \ 2361 "s/'\''/'\''\\\\'\'''\''/g; 2362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2363 ;; #( 2364 *) 2365 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2366 ;; 2367 esac | 2368 sort 2369) 2370 echo 2371 2372 $as_echo "## ----------------- ## 2373## Output variables. ## 2374## ----------------- ##" 2375 echo 2376 for ac_var in $ac_subst_vars 2377 do 2378 eval ac_val=\$$ac_var 2379 case $ac_val in 2380 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2381 esac 2382 $as_echo "$ac_var='\''$ac_val'\''" 2383 done | sort 2384 echo 2385 2386 if test -n "$ac_subst_files"; then 2387 $as_echo "## ------------------- ## 2388## File substitutions. ## 2389## ------------------- ##" 2390 echo 2391 for ac_var in $ac_subst_files 2392 do 2393 eval ac_val=\$$ac_var 2394 case $ac_val in 2395 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2396 esac 2397 $as_echo "$ac_var='\''$ac_val'\''" 2398 done | sort 2399 echo 2400 fi 2401 2402 if test -s confdefs.h; then 2403 $as_echo "## ----------- ## 2404## confdefs.h. ## 2405## ----------- ##" 2406 echo 2407 cat confdefs.h 2408 echo 2409 fi 2410 test "$ac_signal" != 0 && 2411 $as_echo "$as_me: caught signal $ac_signal" 2412 $as_echo "$as_me: exit $exit_status" 2413 } >&5 2414 rm -f core *.core core.conftest.* && 2415 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2416 exit $exit_status 2417' 0 2418for ac_signal in 1 2 13 15; do 2419 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2420done 2421ac_signal=0 2422 2423# confdefs.h avoids OS command line length limits that DEFS can exceed. 2424rm -f -r conftest* confdefs.h 2425 2426$as_echo "/* confdefs.h */" > confdefs.h 2427 2428# Predefined preprocessor variables. 2429 2430cat >>confdefs.h <<_ACEOF 2431#define PACKAGE_NAME "$PACKAGE_NAME" 2432_ACEOF 2433 2434cat >>confdefs.h <<_ACEOF 2435#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2436_ACEOF 2437 2438cat >>confdefs.h <<_ACEOF 2439#define PACKAGE_VERSION "$PACKAGE_VERSION" 2440_ACEOF 2441 2442cat >>confdefs.h <<_ACEOF 2443#define PACKAGE_STRING "$PACKAGE_STRING" 2444_ACEOF 2445 2446cat >>confdefs.h <<_ACEOF 2447#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2448_ACEOF 2449 2450cat >>confdefs.h <<_ACEOF 2451#define PACKAGE_URL "$PACKAGE_URL" 2452_ACEOF 2453 2454 2455# Let the site file select an alternate cache file if it wants to. 2456# Prefer an explicitly selected file to automatically selected ones. 2457ac_site_file1=NONE 2458ac_site_file2=NONE 2459if test -n "$CONFIG_SITE"; then 2460 # We do not want a PATH search for config.site. 2461 case $CONFIG_SITE in #(( 2462 -*) ac_site_file1=./$CONFIG_SITE;; 2463 */*) ac_site_file1=$CONFIG_SITE;; 2464 *) ac_site_file1=./$CONFIG_SITE;; 2465 esac 2466elif test "x$prefix" != xNONE; then 2467 ac_site_file1=$prefix/share/config.site 2468 ac_site_file2=$prefix/etc/config.site 2469else 2470 ac_site_file1=$ac_default_prefix/share/config.site 2471 ac_site_file2=$ac_default_prefix/etc/config.site 2472fi 2473for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2474do 2475 test "x$ac_site_file" = xNONE && continue 2476 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2478$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2479 sed 's/^/| /' "$ac_site_file" >&5 2480 . "$ac_site_file" \ 2481 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2483as_fn_error $? "failed to load site script $ac_site_file 2484See \`config.log' for more details" "$LINENO" 5; } 2485 fi 2486done 2487 2488if test -r "$cache_file"; then 2489 # Some versions of bash will fail to source /dev/null (special files 2490 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2491 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2493$as_echo "$as_me: loading cache $cache_file" >&6;} 2494 case $cache_file in 2495 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2496 *) . "./$cache_file";; 2497 esac 2498 fi 2499else 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2501$as_echo "$as_me: creating cache $cache_file" >&6;} 2502 >$cache_file 2503fi 2504 2505# Check that the precious variables saved in the cache have kept the same 2506# value. 2507ac_cache_corrupted=false 2508for ac_var in $ac_precious_vars; do 2509 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2510 eval ac_new_set=\$ac_env_${ac_var}_set 2511 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2512 eval ac_new_val=\$ac_env_${ac_var}_value 2513 case $ac_old_set,$ac_new_set in 2514 set,) 2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2516$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2517 ac_cache_corrupted=: ;; 2518 ,set) 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2520$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2521 ac_cache_corrupted=: ;; 2522 ,);; 2523 *) 2524 if test "x$ac_old_val" != "x$ac_new_val"; then 2525 # differences in whitespace do not lead to failure. 2526 ac_old_val_w=`echo x $ac_old_val` 2527 ac_new_val_w=`echo x $ac_new_val` 2528 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2530$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2531 ac_cache_corrupted=: 2532 else 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2534$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2535 eval $ac_var=\$ac_old_val 2536 fi 2537 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2538$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2540$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2541 fi;; 2542 esac 2543 # Pass precious variables to config.status. 2544 if test "$ac_new_set" = set; then 2545 case $ac_new_val in 2546 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2547 *) ac_arg=$ac_var=$ac_new_val ;; 2548 esac 2549 case " $ac_configure_args " in 2550 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2551 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2552 esac 2553 fi 2554done 2555if $ac_cache_corrupted; then 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2559$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2560 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2561fi 2562## -------------------- ## 2563## Main body of script. ## 2564## -------------------- ## 2565 2566ac_ext=c 2567ac_cpp='$CPP $CPPFLAGS' 2568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2570ac_compiler_gnu=$ac_cv_c_compiler_gnu 2571 2572 2573ac_aux_dir= 2574for ac_dir in . "$srcdir"/.; do 2575 if test -f "$ac_dir/install-sh"; then 2576 ac_aux_dir=$ac_dir 2577 ac_install_sh="$ac_aux_dir/install-sh -c" 2578 break 2579 elif test -f "$ac_dir/install.sh"; then 2580 ac_aux_dir=$ac_dir 2581 ac_install_sh="$ac_aux_dir/install.sh -c" 2582 break 2583 elif test -f "$ac_dir/shtool"; then 2584 ac_aux_dir=$ac_dir 2585 ac_install_sh="$ac_aux_dir/shtool install -c" 2586 break 2587 fi 2588done 2589if test -z "$ac_aux_dir"; then 2590 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2591fi 2592 2593# These three variables are undocumented and unsupported, 2594# and are intended to be withdrawn in a future Autoconf release. 2595# They can cause serious problems if a builder's source tree is in a directory 2596# whose full name contains unusual characters. 2597ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2598ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2599ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2600 2601 2602 2603am__api_version='1.15' 2604 2605# Find a good install program. We prefer a C program (faster), 2606# so one script is as good as another. But avoid the broken or 2607# incompatible versions: 2608# SysV /etc/install, /usr/sbin/install 2609# SunOS /usr/etc/install 2610# IRIX /sbin/install 2611# AIX /bin/install 2612# AmigaOS /C/install, which installs bootblocks on floppy discs 2613# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2614# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2615# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2616# OS/2's system install, which has a completely different semantic 2617# ./install, which can be erroneously created by make from ./install.sh. 2618# Reject install programs that cannot install multiple files. 2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2620$as_echo_n "checking for a BSD-compatible install... " >&6; } 2621if test -z "$INSTALL"; then 2622if ${ac_cv_path_install+:} false; then : 2623 $as_echo_n "(cached) " >&6 2624else 2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2626for as_dir in $PATH 2627do 2628 IFS=$as_save_IFS 2629 test -z "$as_dir" && as_dir=. 2630 # Account for people who put trailing slashes in PATH elements. 2631case $as_dir/ in #(( 2632 ./ | .// | /[cC]/* | \ 2633 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2634 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2635 /usr/ucb/* ) ;; 2636 *) 2637 # OSF1 and SCO ODT 3.0 have their own names for install. 2638 # Don't use installbsd from OSF since it installs stuff as root 2639 # by default. 2640 for ac_prog in ginstall scoinst install; do 2641 for ac_exec_ext in '' $ac_executable_extensions; do 2642 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2643 if test $ac_prog = install && 2644 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2645 # AIX install. It has an incompatible calling convention. 2646 : 2647 elif test $ac_prog = install && 2648 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2649 # program-specific install script used by HP pwplus--don't use. 2650 : 2651 else 2652 rm -rf conftest.one conftest.two conftest.dir 2653 echo one > conftest.one 2654 echo two > conftest.two 2655 mkdir conftest.dir 2656 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2657 test -s conftest.one && test -s conftest.two && 2658 test -s conftest.dir/conftest.one && 2659 test -s conftest.dir/conftest.two 2660 then 2661 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2662 break 3 2663 fi 2664 fi 2665 fi 2666 done 2667 done 2668 ;; 2669esac 2670 2671 done 2672IFS=$as_save_IFS 2673 2674rm -rf conftest.one conftest.two conftest.dir 2675 2676fi 2677 if test "${ac_cv_path_install+set}" = set; then 2678 INSTALL=$ac_cv_path_install 2679 else 2680 # As a last resort, use the slow shell script. Don't cache a 2681 # value for INSTALL within a source directory, because that will 2682 # break other packages using the cache if that directory is 2683 # removed, or if the value is a relative name. 2684 INSTALL=$ac_install_sh 2685 fi 2686fi 2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2688$as_echo "$INSTALL" >&6; } 2689 2690# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2691# It thinks the first close brace ends the variable substitution. 2692test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2693 2694test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2695 2696test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2697 2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2699$as_echo_n "checking whether build environment is sane... " >&6; } 2700# Reject unsafe characters in $srcdir or the absolute working directory 2701# name. Accept space and tab only in the latter. 2702am_lf=' 2703' 2704case `pwd` in 2705 *[\\\"\#\$\&\'\`$am_lf]*) 2706 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2707esac 2708case $srcdir in 2709 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2710 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2711esac 2712 2713# Do 'set' in a subshell so we don't clobber the current shell's 2714# arguments. Must try -L first in case configure is actually a 2715# symlink; some systems play weird games with the mod time of symlinks 2716# (eg FreeBSD returns the mod time of the symlink's containing 2717# directory). 2718if ( 2719 am_has_slept=no 2720 for am_try in 1 2; do 2721 echo "timestamp, slept: $am_has_slept" > conftest.file 2722 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2723 if test "$*" = "X"; then 2724 # -L didn't work. 2725 set X `ls -t "$srcdir/configure" conftest.file` 2726 fi 2727 if test "$*" != "X $srcdir/configure conftest.file" \ 2728 && test "$*" != "X conftest.file $srcdir/configure"; then 2729 2730 # If neither matched, then we have a broken ls. This can happen 2731 # if, for instance, CONFIG_SHELL is bash and it inherits a 2732 # broken ls alias from the environment. This has actually 2733 # happened. Such a system could not be considered "sane". 2734 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2735 alias in your environment" "$LINENO" 5 2736 fi 2737 if test "$2" = conftest.file || test $am_try -eq 2; then 2738 break 2739 fi 2740 # Just in case. 2741 sleep 1 2742 am_has_slept=yes 2743 done 2744 test "$2" = conftest.file 2745 ) 2746then 2747 # Ok. 2748 : 2749else 2750 as_fn_error $? "newly created file is older than distributed files! 2751Check your system clock" "$LINENO" 5 2752fi 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2754$as_echo "yes" >&6; } 2755# If we didn't sleep, we still need to ensure time stamps of config.status and 2756# generated files are strictly newer. 2757am_sleep_pid= 2758if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2759 ( sleep 1 ) & 2760 am_sleep_pid=$! 2761fi 2762 2763rm -f conftest.file 2764 2765test "$program_prefix" != NONE && 2766 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2767# Use a double $ so make ignores it. 2768test "$program_suffix" != NONE && 2769 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2770# Double any \ or $. 2771# By default was `s,x,x', remove it if useless. 2772ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2773program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2774 2775# Expand $ac_aux_dir to an absolute path. 2776am_aux_dir=`cd "$ac_aux_dir" && pwd` 2777 2778if test x"${MISSING+set}" != xset; then 2779 case $am_aux_dir in 2780 *\ * | *\ *) 2781 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2782 *) 2783 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2784 esac 2785fi 2786# Use eval to expand $SHELL 2787if eval "$MISSING --is-lightweight"; then 2788 am_missing_run="$MISSING " 2789else 2790 am_missing_run= 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2792$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2793fi 2794 2795if test x"${install_sh+set}" != xset; then 2796 case $am_aux_dir in 2797 *\ * | *\ *) 2798 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2799 *) 2800 install_sh="\${SHELL} $am_aux_dir/install-sh" 2801 esac 2802fi 2803 2804# Installed binaries are usually stripped using 'strip' when the user 2805# run "make install-strip". However 'strip' might not be the right 2806# tool to use in cross-compilation environments, therefore Automake 2807# will honor the 'STRIP' environment variable to overrule this program. 2808if test "$cross_compiling" != no; then 2809 if test -n "$ac_tool_prefix"; then 2810 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2811set dummy ${ac_tool_prefix}strip; ac_word=$2 2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2813$as_echo_n "checking for $ac_word... " >&6; } 2814if ${ac_cv_prog_STRIP+:} false; then : 2815 $as_echo_n "(cached) " >&6 2816else 2817 if test -n "$STRIP"; then 2818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2819else 2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2821for as_dir in $PATH 2822do 2823 IFS=$as_save_IFS 2824 test -z "$as_dir" && as_dir=. 2825 for ac_exec_ext in '' $ac_executable_extensions; do 2826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2827 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2829 break 2 2830 fi 2831done 2832 done 2833IFS=$as_save_IFS 2834 2835fi 2836fi 2837STRIP=$ac_cv_prog_STRIP 2838if test -n "$STRIP"; then 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2840$as_echo "$STRIP" >&6; } 2841else 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2843$as_echo "no" >&6; } 2844fi 2845 2846 2847fi 2848if test -z "$ac_cv_prog_STRIP"; then 2849 ac_ct_STRIP=$STRIP 2850 # Extract the first word of "strip", so it can be a program name with args. 2851set dummy strip; ac_word=$2 2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2853$as_echo_n "checking for $ac_word... " >&6; } 2854if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2855 $as_echo_n "(cached) " >&6 2856else 2857 if test -n "$ac_ct_STRIP"; then 2858 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2859else 2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2861for as_dir in $PATH 2862do 2863 IFS=$as_save_IFS 2864 test -z "$as_dir" && as_dir=. 2865 for ac_exec_ext in '' $ac_executable_extensions; do 2866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2867 ac_cv_prog_ac_ct_STRIP="strip" 2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2869 break 2 2870 fi 2871done 2872 done 2873IFS=$as_save_IFS 2874 2875fi 2876fi 2877ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2878if test -n "$ac_ct_STRIP"; then 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2880$as_echo "$ac_ct_STRIP" >&6; } 2881else 2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2883$as_echo "no" >&6; } 2884fi 2885 2886 if test "x$ac_ct_STRIP" = x; then 2887 STRIP=":" 2888 else 2889 case $cross_compiling:$ac_tool_warned in 2890yes:) 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2893ac_tool_warned=yes ;; 2894esac 2895 STRIP=$ac_ct_STRIP 2896 fi 2897else 2898 STRIP="$ac_cv_prog_STRIP" 2899fi 2900 2901fi 2902INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2903 2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2905$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2906if test -z "$MKDIR_P"; then 2907 if ${ac_cv_path_mkdir+:} false; then : 2908 $as_echo_n "(cached) " >&6 2909else 2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2911for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2912do 2913 IFS=$as_save_IFS 2914 test -z "$as_dir" && as_dir=. 2915 for ac_prog in mkdir gmkdir; do 2916 for ac_exec_ext in '' $ac_executable_extensions; do 2917 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2918 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2919 'mkdir (GNU coreutils) '* | \ 2920 'mkdir (coreutils) '* | \ 2921 'mkdir (fileutils) '4.1*) 2922 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2923 break 3;; 2924 esac 2925 done 2926 done 2927 done 2928IFS=$as_save_IFS 2929 2930fi 2931 2932 test -d ./--version && rmdir ./--version 2933 if test "${ac_cv_path_mkdir+set}" = set; then 2934 MKDIR_P="$ac_cv_path_mkdir -p" 2935 else 2936 # As a last resort, use the slow shell script. Don't cache a 2937 # value for MKDIR_P within a source directory, because that will 2938 # break other packages using the cache if that directory is 2939 # removed, or if the value is a relative name. 2940 MKDIR_P="$ac_install_sh -d" 2941 fi 2942fi 2943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2944$as_echo "$MKDIR_P" >&6; } 2945 2946for ac_prog in gawk mawk nawk awk 2947do 2948 # Extract the first word of "$ac_prog", so it can be a program name with args. 2949set dummy $ac_prog; ac_word=$2 2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2951$as_echo_n "checking for $ac_word... " >&6; } 2952if ${ac_cv_prog_AWK+:} false; then : 2953 $as_echo_n "(cached) " >&6 2954else 2955 if test -n "$AWK"; then 2956 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2957else 2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2959for as_dir in $PATH 2960do 2961 IFS=$as_save_IFS 2962 test -z "$as_dir" && as_dir=. 2963 for ac_exec_ext in '' $ac_executable_extensions; do 2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2965 ac_cv_prog_AWK="$ac_prog" 2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2967 break 2 2968 fi 2969done 2970 done 2971IFS=$as_save_IFS 2972 2973fi 2974fi 2975AWK=$ac_cv_prog_AWK 2976if test -n "$AWK"; then 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2978$as_echo "$AWK" >&6; } 2979else 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2981$as_echo "no" >&6; } 2982fi 2983 2984 2985 test -n "$AWK" && break 2986done 2987 2988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2989$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2990set x ${MAKE-make} 2991ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2992if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2993 $as_echo_n "(cached) " >&6 2994else 2995 cat >conftest.make <<\_ACEOF 2996SHELL = /bin/sh 2997all: 2998 @echo '@@@%%%=$(MAKE)=@@@%%%' 2999_ACEOF 3000# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3001case `${MAKE-make} -f conftest.make 2>/dev/null` in 3002 *@@@%%%=?*=@@@%%%*) 3003 eval ac_cv_prog_make_${ac_make}_set=yes;; 3004 *) 3005 eval ac_cv_prog_make_${ac_make}_set=no;; 3006esac 3007rm -f conftest.make 3008fi 3009if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3011$as_echo "yes" >&6; } 3012 SET_MAKE= 3013else 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3015$as_echo "no" >&6; } 3016 SET_MAKE="MAKE=${MAKE-make}" 3017fi 3018 3019rm -rf .tst 2>/dev/null 3020mkdir .tst 2>/dev/null 3021if test -d .tst; then 3022 am__leading_dot=. 3023else 3024 am__leading_dot=_ 3025fi 3026rmdir .tst 2>/dev/null 3027 3028# Check whether --enable-silent-rules was given. 3029if test "${enable_silent_rules+set}" = set; then : 3030 enableval=$enable_silent_rules; 3031fi 3032 3033case $enable_silent_rules in # ((( 3034 yes) AM_DEFAULT_VERBOSITY=0;; 3035 no) AM_DEFAULT_VERBOSITY=1;; 3036 *) AM_DEFAULT_VERBOSITY=1;; 3037esac 3038am_make=${MAKE-make} 3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3040$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3041if ${am_cv_make_support_nested_variables+:} false; then : 3042 $as_echo_n "(cached) " >&6 3043else 3044 if $as_echo 'TRUE=$(BAR$(V)) 3045BAR0=false 3046BAR1=true 3047V=1 3048am__doit: 3049 @$(TRUE) 3050.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3051 am_cv_make_support_nested_variables=yes 3052else 3053 am_cv_make_support_nested_variables=no 3054fi 3055fi 3056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3057$as_echo "$am_cv_make_support_nested_variables" >&6; } 3058if test $am_cv_make_support_nested_variables = yes; then 3059 AM_V='$(V)' 3060 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3061else 3062 AM_V=$AM_DEFAULT_VERBOSITY 3063 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3064fi 3065AM_BACKSLASH='\' 3066 3067if test "`cd $srcdir && pwd`" != "`pwd`"; then 3068 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3069 # is not polluted with repeated "-I." 3070 am__isrc=' -I$(srcdir)' 3071 # test to see if srcdir already configured 3072 if test -f $srcdir/config.status; then 3073 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3074 fi 3075fi 3076 3077# test whether we have cygpath 3078if test -z "$CYGPATH_W"; then 3079 if (cygpath --version) >/dev/null 2>/dev/null; then 3080 CYGPATH_W='cygpath -w' 3081 else 3082 CYGPATH_W=echo 3083 fi 3084fi 3085 3086 3087# Define the identity of the package. 3088 PACKAGE='opencore-amr' 3089 VERSION='0.1.5' 3090 3091 3092cat >>confdefs.h <<_ACEOF 3093#define PACKAGE "$PACKAGE" 3094_ACEOF 3095 3096 3097cat >>confdefs.h <<_ACEOF 3098#define VERSION "$VERSION" 3099_ACEOF 3100 3101# Some tools Automake needs. 3102 3103ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3104 3105 3106AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3107 3108 3109AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3110 3111 3112AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3113 3114 3115MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3116 3117# For better backward compatibility. To be removed once Automake 1.9.x 3118# dies out for good. For more background, see: 3119# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3120# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3121mkdir_p='$(MKDIR_P)' 3122 3123# We need awk for the "check" target (and possibly the TAP driver). The 3124# system "awk" is bad on some platforms. 3125# Always define AMTAR for backward compatibility. Yes, it's still used 3126# in the wild :-( We should find a proper way to deprecate it ... 3127AMTAR='$${TAR-tar}' 3128 3129 3130# We'll loop over all known methods to create a tar archive until one works. 3131_am_tools='gnutar plaintar pax cpio none' 3132 3133# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3134 # There is notably a 21 bits limit for the UID and the GID. In fact, 3135 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3136 # and bug#13588). 3137 am_max_uid=2097151 # 2^21 - 1 3138 am_max_gid=$am_max_uid 3139 # The $UID and $GID variables are not portable, so we need to resort 3140 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3141 # below are definitely unexpected, so allow the users to see them 3142 # (that is, avoid stderr redirection). 3143 am_uid=`id -u || echo unknown` 3144 am_gid=`id -g || echo unknown` 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3146$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3147 if test $am_uid -le $am_max_uid; then 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3149$as_echo "yes" >&6; } 3150 else 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3152$as_echo "no" >&6; } 3153 _am_tools=none 3154 fi 3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3156$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3157 if test $am_gid -le $am_max_gid; then 3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3159$as_echo "yes" >&6; } 3160 else 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3162$as_echo "no" >&6; } 3163 _am_tools=none 3164 fi 3165 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3167$as_echo_n "checking how to create a ustar tar archive... " >&6; } 3168 3169 # Go ahead even if we have the value already cached. We do so because we 3170 # need to set the values for the 'am__tar' and 'am__untar' variables. 3171 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3172 3173 for _am_tool in $_am_tools; do 3174 case $_am_tool in 3175 gnutar) 3176 for _am_tar in tar gnutar gtar; do 3177 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3178 ($_am_tar --version) >&5 2>&5 3179 ac_status=$? 3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3181 (exit $ac_status); } && break 3182 done 3183 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3184 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3185 am__untar="$_am_tar -xf -" 3186 ;; 3187 plaintar) 3188 # Must skip GNU tar: if it does not support --format= it doesn't create 3189 # ustar tarball either. 3190 (tar --version) >/dev/null 2>&1 && continue 3191 am__tar='tar chf - "$$tardir"' 3192 am__tar_='tar chf - "$tardir"' 3193 am__untar='tar xf -' 3194 ;; 3195 pax) 3196 am__tar='pax -L -x ustar -w "$$tardir"' 3197 am__tar_='pax -L -x ustar -w "$tardir"' 3198 am__untar='pax -r' 3199 ;; 3200 cpio) 3201 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3202 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3203 am__untar='cpio -i -H ustar -d' 3204 ;; 3205 none) 3206 am__tar=false 3207 am__tar_=false 3208 am__untar=false 3209 ;; 3210 esac 3211 3212 # If the value was cached, stop now. We just wanted to have am__tar 3213 # and am__untar set. 3214 test -n "${am_cv_prog_tar_ustar}" && break 3215 3216 # tar/untar a dummy directory, and stop if the command works. 3217 rm -rf conftest.dir 3218 mkdir conftest.dir 3219 echo GrepMe > conftest.dir/file 3220 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3221 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3222 ac_status=$? 3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3224 (exit $ac_status); } 3225 rm -rf conftest.dir 3226 if test -s conftest.tar; then 3227 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3228 ($am__untar <conftest.tar) >&5 2>&5 3229 ac_status=$? 3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3231 (exit $ac_status); } 3232 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3233 (cat conftest.dir/file) >&5 2>&5 3234 ac_status=$? 3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3236 (exit $ac_status); } 3237 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3238 fi 3239 done 3240 rm -rf conftest.dir 3241 3242 if ${am_cv_prog_tar_ustar+:} false; then : 3243 $as_echo_n "(cached) " >&6 3244else 3245 am_cv_prog_tar_ustar=$_am_tool 3246fi 3247 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3249$as_echo "$am_cv_prog_tar_ustar" >&6; } 3250 3251 3252 3253 3254 3255 3256# POSIX will say in a future version that running "rm -f" with no argument 3257# is OK; and we want to be able to make that assumption in our Makefile 3258# recipes. So use an aggressive probe to check that the usage we want is 3259# actually supported "in the wild" to an acceptable degree. 3260# See automake bug#10828. 3261# To make any issue more visible, cause the running configure to be aborted 3262# by default if the 'rm' program in use doesn't match our expectations; the 3263# user can still override this though. 3264if rm -f && rm -fr && rm -rf; then : OK; else 3265 cat >&2 <<'END' 3266Oops! 3267 3268Your 'rm' program seems unable to run without file operands specified 3269on the command line, even when the '-f' option is present. This is contrary 3270to the behaviour of most rm programs out there, and not conforming with 3271the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3272 3273Please tell bug-automake@gnu.org about your system, including the value 3274of your $PATH and any error possibly output before this message. This 3275can help us improve future automake versions. 3276 3277END 3278 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3279 echo 'Configuration will proceed anyway, since you have set the' >&2 3280 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3281 echo >&2 3282 else 3283 cat >&2 <<'END' 3284Aborting the configuration process, to ensure you take notice of the issue. 3285 3286You can download and install GNU coreutils to get an 'rm' implementation 3287that behaves properly: <http://www.gnu.org/software/coreutils/>. 3288 3289If you want to complete the configuration process using your problematic 3290'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3291to "yes", and re-run configure. 3292 3293END 3294 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3295 fi 3296fi 3297 3298# Check whether --enable-silent-rules was given. 3299if test "${enable_silent_rules+set}" = set; then : 3300 enableval=$enable_silent_rules; 3301fi 3302 3303case $enable_silent_rules in # ((( 3304 yes) AM_DEFAULT_VERBOSITY=0;; 3305 no) AM_DEFAULT_VERBOSITY=1;; 3306 *) AM_DEFAULT_VERBOSITY=0;; 3307esac 3308am_make=${MAKE-make} 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3310$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3311if ${am_cv_make_support_nested_variables+:} false; then : 3312 $as_echo_n "(cached) " >&6 3313else 3314 if $as_echo 'TRUE=$(BAR$(V)) 3315BAR0=false 3316BAR1=true 3317V=1 3318am__doit: 3319 @$(TRUE) 3320.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3321 am_cv_make_support_nested_variables=yes 3322else 3323 am_cv_make_support_nested_variables=no 3324fi 3325fi 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3327$as_echo "$am_cv_make_support_nested_variables" >&6; } 3328if test $am_cv_make_support_nested_variables = yes; then 3329 AM_V='$(V)' 3330 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3331else 3332 AM_V=$AM_DEFAULT_VERBOSITY 3333 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3334fi 3335AM_BACKSLASH='\' 3336 3337 3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3339$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3340 # Check whether --enable-maintainer-mode was given. 3341if test "${enable_maintainer_mode+set}" = set; then : 3342 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3343else 3344 USE_MAINTAINER_MODE=no 3345fi 3346 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3348$as_echo "$USE_MAINTAINER_MODE" >&6; } 3349 if test $USE_MAINTAINER_MODE = yes; then 3350 MAINTAINER_MODE_TRUE= 3351 MAINTAINER_MODE_FALSE='#' 3352else 3353 MAINTAINER_MODE_TRUE='#' 3354 MAINTAINER_MODE_FALSE= 3355fi 3356 3357 MAINT=$MAINTAINER_MODE_TRUE 3358 3359 3360 3361# Check whether --enable-compile-c was given. 3362if test "${enable_compile_c+set}" = set; then : 3363 enableval=$enable_compile_c; compile_as_c=$enableval 3364else 3365 compile_as_c=yes 3366fi 3367 3368# Check whether --enable-gcc-armv5 was given. 3369if test "${enable_gcc_armv5+set}" = set; then : 3370 enableval=$enable_gcc_armv5; gcc_armv5=$enableval 3371else 3372 gcc_armv5=no 3373fi 3374 3375# Check whether --enable-amrnb-encoder was given. 3376if test "${enable_amrnb_encoder+set}" = set; then : 3377 enableval=$enable_amrnb_encoder; amrnb_encoder=$enableval 3378else 3379 amrnb_encoder=yes 3380fi 3381 3382# Check whether --enable-amrnb-decoder was given. 3383if test "${enable_amrnb_decoder+set}" = set; then : 3384 enableval=$enable_amrnb_decoder; amrnb_decoder=$enableval 3385else 3386 amrnb_decoder=yes 3387fi 3388 3389# Check whether --enable-examples was given. 3390if test "${enable_examples+set}" = set; then : 3391 enableval=$enable_examples; examples=$enableval 3392else 3393 examples=no 3394fi 3395 3396 3397 if test x$compile_as_c = xyes; then 3398 COMPILE_AS_C_TRUE= 3399 COMPILE_AS_C_FALSE='#' 3400else 3401 COMPILE_AS_C_TRUE='#' 3402 COMPILE_AS_C_FALSE= 3403fi 3404 3405 if test x$gcc_armv5 = xyes; then 3406 GCC_ARMV5_TRUE= 3407 GCC_ARMV5_FALSE='#' 3408else 3409 GCC_ARMV5_TRUE='#' 3410 GCC_ARMV5_FALSE= 3411fi 3412 3413 if test x$amrnb_encoder = xyes; then 3414 AMRNB_ENCODER_TRUE= 3415 AMRNB_ENCODER_FALSE='#' 3416else 3417 AMRNB_ENCODER_TRUE='#' 3418 AMRNB_ENCODER_FALSE= 3419fi 3420 3421 if test x$amrnb_decoder = xyes; then 3422 AMRNB_DECODER_TRUE= 3423 AMRNB_DECODER_FALSE='#' 3424else 3425 AMRNB_DECODER_TRUE='#' 3426 AMRNB_DECODER_FALSE= 3427fi 3428 3429 if test x$examples = xyes; then 3430 EXAMPLES_TRUE= 3431 EXAMPLES_FALSE='#' 3432else 3433 EXAMPLES_TRUE='#' 3434 EXAMPLES_FALSE= 3435fi 3436 3437 3438ac_ext=cpp 3439ac_cpp='$CXXCPP $CPPFLAGS' 3440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3443if test -z "$CXX"; then 3444 if test -n "$CCC"; then 3445 CXX=$CCC 3446 else 3447 if test -n "$ac_tool_prefix"; then 3448 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3449 do 3450 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3451set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3453$as_echo_n "checking for $ac_word... " >&6; } 3454if ${ac_cv_prog_CXX+:} false; then : 3455 $as_echo_n "(cached) " >&6 3456else 3457 if test -n "$CXX"; then 3458 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3459else 3460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3461for as_dir in $PATH 3462do 3463 IFS=$as_save_IFS 3464 test -z "$as_dir" && as_dir=. 3465 for ac_exec_ext in '' $ac_executable_extensions; do 3466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3467 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3469 break 2 3470 fi 3471done 3472 done 3473IFS=$as_save_IFS 3474 3475fi 3476fi 3477CXX=$ac_cv_prog_CXX 3478if test -n "$CXX"; then 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3480$as_echo "$CXX" >&6; } 3481else 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3483$as_echo "no" >&6; } 3484fi 3485 3486 3487 test -n "$CXX" && break 3488 done 3489fi 3490if test -z "$CXX"; then 3491 ac_ct_CXX=$CXX 3492 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3493do 3494 # Extract the first word of "$ac_prog", so it can be a program name with args. 3495set dummy $ac_prog; ac_word=$2 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3497$as_echo_n "checking for $ac_word... " >&6; } 3498if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3499 $as_echo_n "(cached) " >&6 3500else 3501 if test -n "$ac_ct_CXX"; then 3502 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3503else 3504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3505for as_dir in $PATH 3506do 3507 IFS=$as_save_IFS 3508 test -z "$as_dir" && as_dir=. 3509 for ac_exec_ext in '' $ac_executable_extensions; do 3510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3511 ac_cv_prog_ac_ct_CXX="$ac_prog" 3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3513 break 2 3514 fi 3515done 3516 done 3517IFS=$as_save_IFS 3518 3519fi 3520fi 3521ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3522if test -n "$ac_ct_CXX"; then 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3524$as_echo "$ac_ct_CXX" >&6; } 3525else 3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3527$as_echo "no" >&6; } 3528fi 3529 3530 3531 test -n "$ac_ct_CXX" && break 3532done 3533 3534 if test "x$ac_ct_CXX" = x; then 3535 CXX="g++" 3536 else 3537 case $cross_compiling:$ac_tool_warned in 3538yes:) 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3541ac_tool_warned=yes ;; 3542esac 3543 CXX=$ac_ct_CXX 3544 fi 3545fi 3546 3547 fi 3548fi 3549# Provide some information about the compiler. 3550$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3551set X $ac_compile 3552ac_compiler=$2 3553for ac_option in --version -v -V -qversion; do 3554 { { ac_try="$ac_compiler $ac_option >&5" 3555case "(($ac_try" in 3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3557 *) ac_try_echo=$ac_try;; 3558esac 3559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3560$as_echo "$ac_try_echo"; } >&5 3561 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3562 ac_status=$? 3563 if test -s conftest.err; then 3564 sed '10a\ 3565... rest of stderr output deleted ... 3566 10q' conftest.err >conftest.er1 3567 cat conftest.er1 >&5 3568 fi 3569 rm -f conftest.er1 conftest.err 3570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3571 test $ac_status = 0; } 3572done 3573 3574cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3575/* end confdefs.h. */ 3576 3577int 3578main () 3579{ 3580 3581 ; 3582 return 0; 3583} 3584_ACEOF 3585ac_clean_files_save=$ac_clean_files 3586ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3587# Try to create an executable without -o first, disregard a.out. 3588# It will help us diagnose broken compilers, and finding out an intuition 3589# of exeext. 3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 3591$as_echo_n "checking whether the C++ compiler works... " >&6; } 3592ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3593 3594# The possible output files: 3595ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3596 3597ac_rmfiles= 3598for ac_file in $ac_files 3599do 3600 case $ac_file in 3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3602 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3603 esac 3604done 3605rm -f $ac_rmfiles 3606 3607if { { ac_try="$ac_link_default" 3608case "(($ac_try" in 3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3610 *) ac_try_echo=$ac_try;; 3611esac 3612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3613$as_echo "$ac_try_echo"; } >&5 3614 (eval "$ac_link_default") 2>&5 3615 ac_status=$? 3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3617 test $ac_status = 0; }; then : 3618 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3619# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3620# in a Makefile. We should not override ac_cv_exeext if it was cached, 3621# so that the user can short-circuit this test for compilers unknown to 3622# Autoconf. 3623for ac_file in $ac_files '' 3624do 3625 test -f "$ac_file" || continue 3626 case $ac_file in 3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3628 ;; 3629 [ab].out ) 3630 # We found the default executable, but exeext='' is most 3631 # certainly right. 3632 break;; 3633 *.* ) 3634 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3635 then :; else 3636 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3637 fi 3638 # We set ac_cv_exeext here because the later test for it is not 3639 # safe: cross compilers may not add the suffix if given an `-o' 3640 # argument, so we may need to know it at that point already. 3641 # Even if this section looks crufty: it has the advantage of 3642 # actually working. 3643 break;; 3644 * ) 3645 break;; 3646 esac 3647done 3648test "$ac_cv_exeext" = no && ac_cv_exeext= 3649 3650else 3651 ac_file='' 3652fi 3653if test -z "$ac_file"; then : 3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3655$as_echo "no" >&6; } 3656$as_echo "$as_me: failed program was:" >&5 3657sed 's/^/| /' conftest.$ac_ext >&5 3658 3659{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3661as_fn_error 77 "C++ compiler cannot create executables 3662See \`config.log' for more details" "$LINENO" 5; } 3663else 3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3665$as_echo "yes" >&6; } 3666fi 3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 3668$as_echo_n "checking for C++ compiler default output file name... " >&6; } 3669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3670$as_echo "$ac_file" >&6; } 3671ac_exeext=$ac_cv_exeext 3672 3673rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3674ac_clean_files=$ac_clean_files_save 3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3676$as_echo_n "checking for suffix of executables... " >&6; } 3677if { { ac_try="$ac_link" 3678case "(($ac_try" in 3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3680 *) ac_try_echo=$ac_try;; 3681esac 3682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3683$as_echo "$ac_try_echo"; } >&5 3684 (eval "$ac_link") 2>&5 3685 ac_status=$? 3686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3687 test $ac_status = 0; }; then : 3688 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3689# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3690# work properly (i.e., refer to `conftest.exe'), while it won't with 3691# `rm'. 3692for ac_file in conftest.exe conftest conftest.*; do 3693 test -f "$ac_file" || continue 3694 case $ac_file in 3695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3696 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3697 break;; 3698 * ) break;; 3699 esac 3700done 3701else 3702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3704as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3705See \`config.log' for more details" "$LINENO" 5; } 3706fi 3707rm -f conftest conftest$ac_cv_exeext 3708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3709$as_echo "$ac_cv_exeext" >&6; } 3710 3711rm -f conftest.$ac_ext 3712EXEEXT=$ac_cv_exeext 3713ac_exeext=$EXEEXT 3714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3715/* end confdefs.h. */ 3716#include <stdio.h> 3717int 3718main () 3719{ 3720FILE *f = fopen ("conftest.out", "w"); 3721 return ferror (f) || fclose (f) != 0; 3722 3723 ; 3724 return 0; 3725} 3726_ACEOF 3727ac_clean_files="$ac_clean_files conftest.out" 3728# Check that the compiler produces executables we can run. If not, either 3729# the compiler is broken, or we cross compile. 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3731$as_echo_n "checking whether we are cross compiling... " >&6; } 3732if test "$cross_compiling" != yes; then 3733 { { ac_try="$ac_link" 3734case "(($ac_try" in 3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3736 *) ac_try_echo=$ac_try;; 3737esac 3738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3739$as_echo "$ac_try_echo"; } >&5 3740 (eval "$ac_link") 2>&5 3741 ac_status=$? 3742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3743 test $ac_status = 0; } 3744 if { ac_try='./conftest$ac_cv_exeext' 3745 { { case "(($ac_try" in 3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3747 *) ac_try_echo=$ac_try;; 3748esac 3749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3750$as_echo "$ac_try_echo"; } >&5 3751 (eval "$ac_try") 2>&5 3752 ac_status=$? 3753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3754 test $ac_status = 0; }; }; then 3755 cross_compiling=no 3756 else 3757 if test "$cross_compiling" = maybe; then 3758 cross_compiling=yes 3759 else 3760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3762as_fn_error $? "cannot run C++ compiled programs. 3763If you meant to cross compile, use \`--host'. 3764See \`config.log' for more details" "$LINENO" 5; } 3765 fi 3766 fi 3767fi 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3769$as_echo "$cross_compiling" >&6; } 3770 3771rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3772ac_clean_files=$ac_clean_files_save 3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3774$as_echo_n "checking for suffix of object files... " >&6; } 3775if ${ac_cv_objext+:} false; then : 3776 $as_echo_n "(cached) " >&6 3777else 3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3779/* end confdefs.h. */ 3780 3781int 3782main () 3783{ 3784 3785 ; 3786 return 0; 3787} 3788_ACEOF 3789rm -f conftest.o conftest.obj 3790if { { ac_try="$ac_compile" 3791case "(($ac_try" in 3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3793 *) ac_try_echo=$ac_try;; 3794esac 3795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3796$as_echo "$ac_try_echo"; } >&5 3797 (eval "$ac_compile") 2>&5 3798 ac_status=$? 3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3800 test $ac_status = 0; }; then : 3801 for ac_file in conftest.o conftest.obj conftest.*; do 3802 test -f "$ac_file" || continue; 3803 case $ac_file in 3804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3805 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3806 break;; 3807 esac 3808done 3809else 3810 $as_echo "$as_me: failed program was:" >&5 3811sed 's/^/| /' conftest.$ac_ext >&5 3812 3813{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3815as_fn_error $? "cannot compute suffix of object files: cannot compile 3816See \`config.log' for more details" "$LINENO" 5; } 3817fi 3818rm -f conftest.$ac_cv_objext conftest.$ac_ext 3819fi 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3821$as_echo "$ac_cv_objext" >&6; } 3822OBJEXT=$ac_cv_objext 3823ac_objext=$OBJEXT 3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3825$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3826if ${ac_cv_cxx_compiler_gnu+:} false; then : 3827 $as_echo_n "(cached) " >&6 3828else 3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3830/* end confdefs.h. */ 3831 3832int 3833main () 3834{ 3835#ifndef __GNUC__ 3836 choke me 3837#endif 3838 3839 ; 3840 return 0; 3841} 3842_ACEOF 3843if ac_fn_cxx_try_compile "$LINENO"; then : 3844 ac_compiler_gnu=yes 3845else 3846 ac_compiler_gnu=no 3847fi 3848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3849ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3850 3851fi 3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3853$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3854if test $ac_compiler_gnu = yes; then 3855 GXX=yes 3856else 3857 GXX= 3858fi 3859ac_test_CXXFLAGS=${CXXFLAGS+set} 3860ac_save_CXXFLAGS=$CXXFLAGS 3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3862$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3863if ${ac_cv_prog_cxx_g+:} false; then : 3864 $as_echo_n "(cached) " >&6 3865else 3866 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3867 ac_cxx_werror_flag=yes 3868 ac_cv_prog_cxx_g=no 3869 CXXFLAGS="-g" 3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3871/* end confdefs.h. */ 3872 3873int 3874main () 3875{ 3876 3877 ; 3878 return 0; 3879} 3880_ACEOF 3881if ac_fn_cxx_try_compile "$LINENO"; then : 3882 ac_cv_prog_cxx_g=yes 3883else 3884 CXXFLAGS="" 3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3886/* end confdefs.h. */ 3887 3888int 3889main () 3890{ 3891 3892 ; 3893 return 0; 3894} 3895_ACEOF 3896if ac_fn_cxx_try_compile "$LINENO"; then : 3897 3898else 3899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3900 CXXFLAGS="-g" 3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3902/* end confdefs.h. */ 3903 3904int 3905main () 3906{ 3907 3908 ; 3909 return 0; 3910} 3911_ACEOF 3912if ac_fn_cxx_try_compile "$LINENO"; then : 3913 ac_cv_prog_cxx_g=yes 3914fi 3915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3916fi 3917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3918fi 3919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3920 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3921fi 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3923$as_echo "$ac_cv_prog_cxx_g" >&6; } 3924if test "$ac_test_CXXFLAGS" = set; then 3925 CXXFLAGS=$ac_save_CXXFLAGS 3926elif test $ac_cv_prog_cxx_g = yes; then 3927 if test "$GXX" = yes; then 3928 CXXFLAGS="-g -O2" 3929 else 3930 CXXFLAGS="-g" 3931 fi 3932else 3933 if test "$GXX" = yes; then 3934 CXXFLAGS="-O2" 3935 else 3936 CXXFLAGS= 3937 fi 3938fi 3939ac_ext=c 3940ac_cpp='$CPP $CPPFLAGS' 3941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3943ac_compiler_gnu=$ac_cv_c_compiler_gnu 3944DEPDIR="${am__leading_dot}deps" 3945 3946ac_config_commands="$ac_config_commands depfiles" 3947 3948 3949am_make=${MAKE-make} 3950cat > confinc << 'END' 3951am__doit: 3952 @echo this is the am__doit target 3953.PHONY: am__doit 3954END 3955# If we don't find an include directive, just comment out the code. 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3957$as_echo_n "checking for style of include used by $am_make... " >&6; } 3958am__include="#" 3959am__quote= 3960_am_result=none 3961# First try GNU make style include. 3962echo "include confinc" > confmf 3963# Ignore all kinds of additional output from 'make'. 3964case `$am_make -s -f confmf 2> /dev/null` in #( 3965*the\ am__doit\ target*) 3966 am__include=include 3967 am__quote= 3968 _am_result=GNU 3969 ;; 3970esac 3971# Now try BSD make style include. 3972if test "$am__include" = "#"; then 3973 echo '.include "confinc"' > confmf 3974 case `$am_make -s -f confmf 2> /dev/null` in #( 3975 *the\ am__doit\ target*) 3976 am__include=.include 3977 am__quote="\"" 3978 _am_result=BSD 3979 ;; 3980 esac 3981fi 3982 3983 3984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3985$as_echo "$_am_result" >&6; } 3986rm -f confinc confmf 3987 3988# Check whether --enable-dependency-tracking was given. 3989if test "${enable_dependency_tracking+set}" = set; then : 3990 enableval=$enable_dependency_tracking; 3991fi 3992 3993if test "x$enable_dependency_tracking" != xno; then 3994 am_depcomp="$ac_aux_dir/depcomp" 3995 AMDEPBACKSLASH='\' 3996 am__nodep='_no' 3997fi 3998 if test "x$enable_dependency_tracking" != xno; then 3999 AMDEP_TRUE= 4000 AMDEP_FALSE='#' 4001else 4002 AMDEP_TRUE='#' 4003 AMDEP_FALSE= 4004fi 4005 4006 4007 4008depcc="$CXX" am_compiler_list= 4009 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4011$as_echo_n "checking dependency style of $depcc... " >&6; } 4012if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4013 $as_echo_n "(cached) " >&6 4014else 4015 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4016 # We make a subdir and do the tests there. Otherwise we can end up 4017 # making bogus files that we don't know about and never remove. For 4018 # instance it was reported that on HP-UX the gcc test will end up 4019 # making a dummy file named 'D' -- because '-MD' means "put the output 4020 # in D". 4021 rm -rf conftest.dir 4022 mkdir conftest.dir 4023 # Copy depcomp to subdir because otherwise we won't find it if we're 4024 # using a relative directory. 4025 cp "$am_depcomp" conftest.dir 4026 cd conftest.dir 4027 # We will build objects and dependencies in a subdirectory because 4028 # it helps to detect inapplicable dependency modes. For instance 4029 # both Tru64's cc and ICC support -MD to output dependencies as a 4030 # side effect of compilation, but ICC will put the dependencies in 4031 # the current directory while Tru64 will put them in the object 4032 # directory. 4033 mkdir sub 4034 4035 am_cv_CXX_dependencies_compiler_type=none 4036 if test "$am_compiler_list" = ""; then 4037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4038 fi 4039 am__universal=false 4040 case " $depcc " in #( 4041 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4042 esac 4043 4044 for depmode in $am_compiler_list; do 4045 # Setup a source with many dependencies, because some compilers 4046 # like to wrap large dependency lists on column 80 (with \), and 4047 # we should not choose a depcomp mode which is confused by this. 4048 # 4049 # We need to recreate these files for each test, as the compiler may 4050 # overwrite some of them when testing with obscure command lines. 4051 # This happens at least with the AIX C compiler. 4052 : > sub/conftest.c 4053 for i in 1 2 3 4 5 6; do 4054 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4055 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4056 # Solaris 10 /bin/sh. 4057 echo '/* dummy */' > sub/conftst$i.h 4058 done 4059 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4060 4061 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4062 # mode. It turns out that the SunPro C++ compiler does not properly 4063 # handle '-M -o', and we need to detect this. Also, some Intel 4064 # versions had trouble with output in subdirs. 4065 am__obj=sub/conftest.${OBJEXT-o} 4066 am__minus_obj="-o $am__obj" 4067 case $depmode in 4068 gcc) 4069 # This depmode causes a compiler race in universal mode. 4070 test "$am__universal" = false || continue 4071 ;; 4072 nosideeffect) 4073 # After this tag, mechanisms are not by side-effect, so they'll 4074 # only be used when explicitly requested. 4075 if test "x$enable_dependency_tracking" = xyes; then 4076 continue 4077 else 4078 break 4079 fi 4080 ;; 4081 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4082 # This compiler won't grok '-c -o', but also, the minuso test has 4083 # not run yet. These depmodes are late enough in the game, and 4084 # so weak that their functioning should not be impacted. 4085 am__obj=conftest.${OBJEXT-o} 4086 am__minus_obj= 4087 ;; 4088 none) break ;; 4089 esac 4090 if depmode=$depmode \ 4091 source=sub/conftest.c object=$am__obj \ 4092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4093 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4094 >/dev/null 2>conftest.err && 4095 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4096 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4097 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4098 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4099 # icc doesn't choke on unknown options, it will just issue warnings 4100 # or remarks (even with -Werror). So we grep stderr for any message 4101 # that says an option was ignored or not supported. 4102 # When given -MP, icc 7.0 and 7.1 complain thusly: 4103 # icc: Command line warning: ignoring option '-M'; no argument required 4104 # The diagnosis changed in icc 8.0: 4105 # icc: Command line remark: option '-MP' not supported 4106 if (grep 'ignoring option' conftest.err || 4107 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4108 am_cv_CXX_dependencies_compiler_type=$depmode 4109 break 4110 fi 4111 fi 4112 done 4113 4114 cd .. 4115 rm -rf conftest.dir 4116else 4117 am_cv_CXX_dependencies_compiler_type=none 4118fi 4119 4120fi 4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4122$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4123CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4124 4125 if 4126 test "x$enable_dependency_tracking" != xno \ 4127 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4128 am__fastdepCXX_TRUE= 4129 am__fastdepCXX_FALSE='#' 4130else 4131 am__fastdepCXX_TRUE='#' 4132 am__fastdepCXX_FALSE= 4133fi 4134 4135 4136ac_ext=c 4137ac_cpp='$CPP $CPPFLAGS' 4138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4140ac_compiler_gnu=$ac_cv_c_compiler_gnu 4141if test -n "$ac_tool_prefix"; then 4142 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4143set dummy ${ac_tool_prefix}gcc; ac_word=$2 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4145$as_echo_n "checking for $ac_word... " >&6; } 4146if ${ac_cv_prog_CC+:} false; then : 4147 $as_echo_n "(cached) " >&6 4148else 4149 if test -n "$CC"; then 4150 ac_cv_prog_CC="$CC" # Let the user override the test. 4151else 4152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4153for as_dir in $PATH 4154do 4155 IFS=$as_save_IFS 4156 test -z "$as_dir" && as_dir=. 4157 for ac_exec_ext in '' $ac_executable_extensions; do 4158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4159 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4161 break 2 4162 fi 4163done 4164 done 4165IFS=$as_save_IFS 4166 4167fi 4168fi 4169CC=$ac_cv_prog_CC 4170if test -n "$CC"; then 4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4172$as_echo "$CC" >&6; } 4173else 4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4175$as_echo "no" >&6; } 4176fi 4177 4178 4179fi 4180if test -z "$ac_cv_prog_CC"; then 4181 ac_ct_CC=$CC 4182 # Extract the first word of "gcc", so it can be a program name with args. 4183set dummy gcc; ac_word=$2 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4185$as_echo_n "checking for $ac_word... " >&6; } 4186if ${ac_cv_prog_ac_ct_CC+:} false; then : 4187 $as_echo_n "(cached) " >&6 4188else 4189 if test -n "$ac_ct_CC"; then 4190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4191else 4192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4193for as_dir in $PATH 4194do 4195 IFS=$as_save_IFS 4196 test -z "$as_dir" && as_dir=. 4197 for ac_exec_ext in '' $ac_executable_extensions; do 4198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4199 ac_cv_prog_ac_ct_CC="gcc" 4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4201 break 2 4202 fi 4203done 4204 done 4205IFS=$as_save_IFS 4206 4207fi 4208fi 4209ac_ct_CC=$ac_cv_prog_ac_ct_CC 4210if test -n "$ac_ct_CC"; then 4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4212$as_echo "$ac_ct_CC" >&6; } 4213else 4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4215$as_echo "no" >&6; } 4216fi 4217 4218 if test "x$ac_ct_CC" = x; then 4219 CC="" 4220 else 4221 case $cross_compiling:$ac_tool_warned in 4222yes:) 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4225ac_tool_warned=yes ;; 4226esac 4227 CC=$ac_ct_CC 4228 fi 4229else 4230 CC="$ac_cv_prog_CC" 4231fi 4232 4233if test -z "$CC"; then 4234 if test -n "$ac_tool_prefix"; then 4235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4236set dummy ${ac_tool_prefix}cc; ac_word=$2 4237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4238$as_echo_n "checking for $ac_word... " >&6; } 4239if ${ac_cv_prog_CC+:} false; then : 4240 $as_echo_n "(cached) " >&6 4241else 4242 if test -n "$CC"; then 4243 ac_cv_prog_CC="$CC" # Let the user override the test. 4244else 4245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4246for as_dir in $PATH 4247do 4248 IFS=$as_save_IFS 4249 test -z "$as_dir" && as_dir=. 4250 for ac_exec_ext in '' $ac_executable_extensions; do 4251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4252 ac_cv_prog_CC="${ac_tool_prefix}cc" 4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4254 break 2 4255 fi 4256done 4257 done 4258IFS=$as_save_IFS 4259 4260fi 4261fi 4262CC=$ac_cv_prog_CC 4263if test -n "$CC"; then 4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4265$as_echo "$CC" >&6; } 4266else 4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4268$as_echo "no" >&6; } 4269fi 4270 4271 4272 fi 4273fi 4274if test -z "$CC"; then 4275 # Extract the first word of "cc", so it can be a program name with args. 4276set dummy cc; ac_word=$2 4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4278$as_echo_n "checking for $ac_word... " >&6; } 4279if ${ac_cv_prog_CC+:} false; then : 4280 $as_echo_n "(cached) " >&6 4281else 4282 if test -n "$CC"; then 4283 ac_cv_prog_CC="$CC" # Let the user override the test. 4284else 4285 ac_prog_rejected=no 4286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4287for as_dir in $PATH 4288do 4289 IFS=$as_save_IFS 4290 test -z "$as_dir" && as_dir=. 4291 for ac_exec_ext in '' $ac_executable_extensions; do 4292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4293 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4294 ac_prog_rejected=yes 4295 continue 4296 fi 4297 ac_cv_prog_CC="cc" 4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4299 break 2 4300 fi 4301done 4302 done 4303IFS=$as_save_IFS 4304 4305if test $ac_prog_rejected = yes; then 4306 # We found a bogon in the path, so make sure we never use it. 4307 set dummy $ac_cv_prog_CC 4308 shift 4309 if test $# != 0; then 4310 # We chose a different compiler from the bogus one. 4311 # However, it has the same basename, so the bogon will be chosen 4312 # first if we set CC to just the basename; use the full file name. 4313 shift 4314 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4315 fi 4316fi 4317fi 4318fi 4319CC=$ac_cv_prog_CC 4320if test -n "$CC"; then 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4322$as_echo "$CC" >&6; } 4323else 4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4325$as_echo "no" >&6; } 4326fi 4327 4328 4329fi 4330if test -z "$CC"; then 4331 if test -n "$ac_tool_prefix"; then 4332 for ac_prog in cl.exe 4333 do 4334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4335set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4337$as_echo_n "checking for $ac_word... " >&6; } 4338if ${ac_cv_prog_CC+:} false; then : 4339 $as_echo_n "(cached) " >&6 4340else 4341 if test -n "$CC"; then 4342 ac_cv_prog_CC="$CC" # Let the user override the test. 4343else 4344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4345for as_dir in $PATH 4346do 4347 IFS=$as_save_IFS 4348 test -z "$as_dir" && as_dir=. 4349 for ac_exec_ext in '' $ac_executable_extensions; do 4350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4351 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4353 break 2 4354 fi 4355done 4356 done 4357IFS=$as_save_IFS 4358 4359fi 4360fi 4361CC=$ac_cv_prog_CC 4362if test -n "$CC"; then 4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4364$as_echo "$CC" >&6; } 4365else 4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4367$as_echo "no" >&6; } 4368fi 4369 4370 4371 test -n "$CC" && break 4372 done 4373fi 4374if test -z "$CC"; then 4375 ac_ct_CC=$CC 4376 for ac_prog in cl.exe 4377do 4378 # Extract the first word of "$ac_prog", so it can be a program name with args. 4379set dummy $ac_prog; ac_word=$2 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4381$as_echo_n "checking for $ac_word... " >&6; } 4382if ${ac_cv_prog_ac_ct_CC+:} false; then : 4383 $as_echo_n "(cached) " >&6 4384else 4385 if test -n "$ac_ct_CC"; then 4386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4387else 4388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4389for as_dir in $PATH 4390do 4391 IFS=$as_save_IFS 4392 test -z "$as_dir" && as_dir=. 4393 for ac_exec_ext in '' $ac_executable_extensions; do 4394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4395 ac_cv_prog_ac_ct_CC="$ac_prog" 4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4397 break 2 4398 fi 4399done 4400 done 4401IFS=$as_save_IFS 4402 4403fi 4404fi 4405ac_ct_CC=$ac_cv_prog_ac_ct_CC 4406if test -n "$ac_ct_CC"; then 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4408$as_echo "$ac_ct_CC" >&6; } 4409else 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4411$as_echo "no" >&6; } 4412fi 4413 4414 4415 test -n "$ac_ct_CC" && break 4416done 4417 4418 if test "x$ac_ct_CC" = x; then 4419 CC="" 4420 else 4421 case $cross_compiling:$ac_tool_warned in 4422yes:) 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4425ac_tool_warned=yes ;; 4426esac 4427 CC=$ac_ct_CC 4428 fi 4429fi 4430 4431fi 4432 4433 4434test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4436as_fn_error $? "no acceptable C compiler found in \$PATH 4437See \`config.log' for more details" "$LINENO" 5; } 4438 4439# Provide some information about the compiler. 4440$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4441set X $ac_compile 4442ac_compiler=$2 4443for ac_option in --version -v -V -qversion; do 4444 { { ac_try="$ac_compiler $ac_option >&5" 4445case "(($ac_try" in 4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4447 *) ac_try_echo=$ac_try;; 4448esac 4449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4450$as_echo "$ac_try_echo"; } >&5 4451 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4452 ac_status=$? 4453 if test -s conftest.err; then 4454 sed '10a\ 4455... rest of stderr output deleted ... 4456 10q' conftest.err >conftest.er1 4457 cat conftest.er1 >&5 4458 fi 4459 rm -f conftest.er1 conftest.err 4460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4461 test $ac_status = 0; } 4462done 4463 4464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4465$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4466if ${ac_cv_c_compiler_gnu+:} false; then : 4467 $as_echo_n "(cached) " >&6 4468else 4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4470/* end confdefs.h. */ 4471 4472int 4473main () 4474{ 4475#ifndef __GNUC__ 4476 choke me 4477#endif 4478 4479 ; 4480 return 0; 4481} 4482_ACEOF 4483if ac_fn_c_try_compile "$LINENO"; then : 4484 ac_compiler_gnu=yes 4485else 4486 ac_compiler_gnu=no 4487fi 4488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4489ac_cv_c_compiler_gnu=$ac_compiler_gnu 4490 4491fi 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4493$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4494if test $ac_compiler_gnu = yes; then 4495 GCC=yes 4496else 4497 GCC= 4498fi 4499ac_test_CFLAGS=${CFLAGS+set} 4500ac_save_CFLAGS=$CFLAGS 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4502$as_echo_n "checking whether $CC accepts -g... " >&6; } 4503if ${ac_cv_prog_cc_g+:} false; then : 4504 $as_echo_n "(cached) " >&6 4505else 4506 ac_save_c_werror_flag=$ac_c_werror_flag 4507 ac_c_werror_flag=yes 4508 ac_cv_prog_cc_g=no 4509 CFLAGS="-g" 4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4511/* end confdefs.h. */ 4512 4513int 4514main () 4515{ 4516 4517 ; 4518 return 0; 4519} 4520_ACEOF 4521if ac_fn_c_try_compile "$LINENO"; then : 4522 ac_cv_prog_cc_g=yes 4523else 4524 CFLAGS="" 4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4526/* end confdefs.h. */ 4527 4528int 4529main () 4530{ 4531 4532 ; 4533 return 0; 4534} 4535_ACEOF 4536if ac_fn_c_try_compile "$LINENO"; then : 4537 4538else 4539 ac_c_werror_flag=$ac_save_c_werror_flag 4540 CFLAGS="-g" 4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4542/* end confdefs.h. */ 4543 4544int 4545main () 4546{ 4547 4548 ; 4549 return 0; 4550} 4551_ACEOF 4552if ac_fn_c_try_compile "$LINENO"; then : 4553 ac_cv_prog_cc_g=yes 4554fi 4555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4556fi 4557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4558fi 4559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4560 ac_c_werror_flag=$ac_save_c_werror_flag 4561fi 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4563$as_echo "$ac_cv_prog_cc_g" >&6; } 4564if test "$ac_test_CFLAGS" = set; then 4565 CFLAGS=$ac_save_CFLAGS 4566elif test $ac_cv_prog_cc_g = yes; then 4567 if test "$GCC" = yes; then 4568 CFLAGS="-g -O2" 4569 else 4570 CFLAGS="-g" 4571 fi 4572else 4573 if test "$GCC" = yes; then 4574 CFLAGS="-O2" 4575 else 4576 CFLAGS= 4577 fi 4578fi 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4580$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4581if ${ac_cv_prog_cc_c89+:} false; then : 4582 $as_echo_n "(cached) " >&6 4583else 4584 ac_cv_prog_cc_c89=no 4585ac_save_CC=$CC 4586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4587/* end confdefs.h. */ 4588#include <stdarg.h> 4589#include <stdio.h> 4590struct stat; 4591/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4592struct buf { int x; }; 4593FILE * (*rcsopen) (struct buf *, struct stat *, int); 4594static char *e (p, i) 4595 char **p; 4596 int i; 4597{ 4598 return p[i]; 4599} 4600static char *f (char * (*g) (char **, int), char **p, ...) 4601{ 4602 char *s; 4603 va_list v; 4604 va_start (v,p); 4605 s = g (p, va_arg (v,int)); 4606 va_end (v); 4607 return s; 4608} 4609 4610/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4611 function prototypes and stuff, but not '\xHH' hex character constants. 4612 These don't provoke an error unfortunately, instead are silently treated 4613 as 'x'. The following induces an error, until -std is added to get 4614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4615 array size at least. It's necessary to write '\x00'==0 to get something 4616 that's true only with -std. */ 4617int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4618 4619/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4620 inside strings and character constants. */ 4621#define FOO(x) 'x' 4622int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4623 4624int test (int i, double x); 4625struct s1 {int (*f) (int a);}; 4626struct s2 {int (*f) (double a);}; 4627int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4628int argc; 4629char **argv; 4630int 4631main () 4632{ 4633return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4634 ; 4635 return 0; 4636} 4637_ACEOF 4638for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4640do 4641 CC="$ac_save_CC $ac_arg" 4642 if ac_fn_c_try_compile "$LINENO"; then : 4643 ac_cv_prog_cc_c89=$ac_arg 4644fi 4645rm -f core conftest.err conftest.$ac_objext 4646 test "x$ac_cv_prog_cc_c89" != "xno" && break 4647done 4648rm -f conftest.$ac_ext 4649CC=$ac_save_CC 4650 4651fi 4652# AC_CACHE_VAL 4653case "x$ac_cv_prog_cc_c89" in 4654 x) 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4656$as_echo "none needed" >&6; } ;; 4657 xno) 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4659$as_echo "unsupported" >&6; } ;; 4660 *) 4661 CC="$CC $ac_cv_prog_cc_c89" 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4663$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4664esac 4665if test "x$ac_cv_prog_cc_c89" != xno; then : 4666 4667fi 4668 4669ac_ext=c 4670ac_cpp='$CPP $CPPFLAGS' 4671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4673ac_compiler_gnu=$ac_cv_c_compiler_gnu 4674 4675ac_ext=c 4676ac_cpp='$CPP $CPPFLAGS' 4677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4679ac_compiler_gnu=$ac_cv_c_compiler_gnu 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4681$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4682if ${am_cv_prog_cc_c_o+:} false; then : 4683 $as_echo_n "(cached) " >&6 4684else 4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4686/* end confdefs.h. */ 4687 4688int 4689main () 4690{ 4691 4692 ; 4693 return 0; 4694} 4695_ACEOF 4696 # Make sure it works both with $CC and with simple cc. 4697 # Following AC_PROG_CC_C_O, we do the test twice because some 4698 # compilers refuse to overwrite an existing .o file with -o, 4699 # though they will create one. 4700 am_cv_prog_cc_c_o=yes 4701 for am_i in 1 2; do 4702 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4703 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4704 ac_status=$? 4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4706 (exit $ac_status); } \ 4707 && test -f conftest2.$ac_objext; then 4708 : OK 4709 else 4710 am_cv_prog_cc_c_o=no 4711 break 4712 fi 4713 done 4714 rm -f core conftest* 4715 unset am_i 4716fi 4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4718$as_echo "$am_cv_prog_cc_c_o" >&6; } 4719if test "$am_cv_prog_cc_c_o" != yes; then 4720 # Losing compiler, so override with the script. 4721 # FIXME: It is wrong to rewrite CC. 4722 # But if we don't then we get into trouble of one sort or another. 4723 # A longer-term fix would be to have automake use am__CC in this case, 4724 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4725 CC="$am_aux_dir/compile $CC" 4726fi 4727ac_ext=c 4728ac_cpp='$CPP $CPPFLAGS' 4729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4731ac_compiler_gnu=$ac_cv_c_compiler_gnu 4732 4733 4734depcc="$CC" am_compiler_list= 4735 4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4737$as_echo_n "checking dependency style of $depcc... " >&6; } 4738if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4739 $as_echo_n "(cached) " >&6 4740else 4741 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4742 # We make a subdir and do the tests there. Otherwise we can end up 4743 # making bogus files that we don't know about and never remove. For 4744 # instance it was reported that on HP-UX the gcc test will end up 4745 # making a dummy file named 'D' -- because '-MD' means "put the output 4746 # in D". 4747 rm -rf conftest.dir 4748 mkdir conftest.dir 4749 # Copy depcomp to subdir because otherwise we won't find it if we're 4750 # using a relative directory. 4751 cp "$am_depcomp" conftest.dir 4752 cd conftest.dir 4753 # We will build objects and dependencies in a subdirectory because 4754 # it helps to detect inapplicable dependency modes. For instance 4755 # both Tru64's cc and ICC support -MD to output dependencies as a 4756 # side effect of compilation, but ICC will put the dependencies in 4757 # the current directory while Tru64 will put them in the object 4758 # directory. 4759 mkdir sub 4760 4761 am_cv_CC_dependencies_compiler_type=none 4762 if test "$am_compiler_list" = ""; then 4763 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4764 fi 4765 am__universal=false 4766 case " $depcc " in #( 4767 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4768 esac 4769 4770 for depmode in $am_compiler_list; do 4771 # Setup a source with many dependencies, because some compilers 4772 # like to wrap large dependency lists on column 80 (with \), and 4773 # we should not choose a depcomp mode which is confused by this. 4774 # 4775 # We need to recreate these files for each test, as the compiler may 4776 # overwrite some of them when testing with obscure command lines. 4777 # This happens at least with the AIX C compiler. 4778 : > sub/conftest.c 4779 for i in 1 2 3 4 5 6; do 4780 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4781 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4782 # Solaris 10 /bin/sh. 4783 echo '/* dummy */' > sub/conftst$i.h 4784 done 4785 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4786 4787 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4788 # mode. It turns out that the SunPro C++ compiler does not properly 4789 # handle '-M -o', and we need to detect this. Also, some Intel 4790 # versions had trouble with output in subdirs. 4791 am__obj=sub/conftest.${OBJEXT-o} 4792 am__minus_obj="-o $am__obj" 4793 case $depmode in 4794 gcc) 4795 # This depmode causes a compiler race in universal mode. 4796 test "$am__universal" = false || continue 4797 ;; 4798 nosideeffect) 4799 # After this tag, mechanisms are not by side-effect, so they'll 4800 # only be used when explicitly requested. 4801 if test "x$enable_dependency_tracking" = xyes; then 4802 continue 4803 else 4804 break 4805 fi 4806 ;; 4807 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4808 # This compiler won't grok '-c -o', but also, the minuso test has 4809 # not run yet. These depmodes are late enough in the game, and 4810 # so weak that their functioning should not be impacted. 4811 am__obj=conftest.${OBJEXT-o} 4812 am__minus_obj= 4813 ;; 4814 none) break ;; 4815 esac 4816 if depmode=$depmode \ 4817 source=sub/conftest.c object=$am__obj \ 4818 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4819 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4820 >/dev/null 2>conftest.err && 4821 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4822 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4823 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4824 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4825 # icc doesn't choke on unknown options, it will just issue warnings 4826 # or remarks (even with -Werror). So we grep stderr for any message 4827 # that says an option was ignored or not supported. 4828 # When given -MP, icc 7.0 and 7.1 complain thusly: 4829 # icc: Command line warning: ignoring option '-M'; no argument required 4830 # The diagnosis changed in icc 8.0: 4831 # icc: Command line remark: option '-MP' not supported 4832 if (grep 'ignoring option' conftest.err || 4833 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4834 am_cv_CC_dependencies_compiler_type=$depmode 4835 break 4836 fi 4837 fi 4838 done 4839 4840 cd .. 4841 rm -rf conftest.dir 4842else 4843 am_cv_CC_dependencies_compiler_type=none 4844fi 4845 4846fi 4847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4848$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4849CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4850 4851 if 4852 test "x$enable_dependency_tracking" != xno \ 4853 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4854 am__fastdepCC_TRUE= 4855 am__fastdepCC_FALSE='#' 4856else 4857 am__fastdepCC_TRUE='#' 4858 am__fastdepCC_FALSE= 4859fi 4860 4861 4862 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4864$as_echo_n "checking whether ln -s works... " >&6; } 4865LN_S=$as_ln_s 4866if test "$LN_S" = "ln -s"; then 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4868$as_echo "yes" >&6; } 4869else 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4871$as_echo "no, using $LN_S" >&6; } 4872fi 4873 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4875$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4876set x ${MAKE-make} 4877ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4878if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4879 $as_echo_n "(cached) " >&6 4880else 4881 cat >conftest.make <<\_ACEOF 4882SHELL = /bin/sh 4883all: 4884 @echo '@@@%%%=$(MAKE)=@@@%%%' 4885_ACEOF 4886# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4887case `${MAKE-make} -f conftest.make 2>/dev/null` in 4888 *@@@%%%=?*=@@@%%%*) 4889 eval ac_cv_prog_make_${ac_make}_set=yes;; 4890 *) 4891 eval ac_cv_prog_make_${ac_make}_set=no;; 4892esac 4893rm -f conftest.make 4894fi 4895if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4897$as_echo "yes" >&6; } 4898 SET_MAKE= 4899else 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4901$as_echo "no" >&6; } 4902 SET_MAKE="MAKE=${MAKE-make}" 4903fi 4904 4905 4906case `pwd` in 4907 *\ * | *\ *) 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4909$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4910esac 4911 4912 4913 4914macro_version='2.4.6' 4915macro_revision='2.4.6' 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929ltmain=$ac_aux_dir/ltmain.sh 4930 4931# Make sure we can run config.sub. 4932$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4933 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4934 4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4936$as_echo_n "checking build system type... " >&6; } 4937if ${ac_cv_build+:} false; then : 4938 $as_echo_n "(cached) " >&6 4939else 4940 ac_build_alias=$build_alias 4941test "x$ac_build_alias" = x && 4942 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4943test "x$ac_build_alias" = x && 4944 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4945ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4946 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4947 4948fi 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4950$as_echo "$ac_cv_build" >&6; } 4951case $ac_cv_build in 4952*-*-*) ;; 4953*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4954esac 4955build=$ac_cv_build 4956ac_save_IFS=$IFS; IFS='-' 4957set x $ac_cv_build 4958shift 4959build_cpu=$1 4960build_vendor=$2 4961shift; shift 4962# Remember, the first character of IFS is used to create $*, 4963# except with old shells: 4964build_os=$* 4965IFS=$ac_save_IFS 4966case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4967 4968 4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4970$as_echo_n "checking host system type... " >&6; } 4971if ${ac_cv_host+:} false; then : 4972 $as_echo_n "(cached) " >&6 4973else 4974 if test "x$host_alias" = x; then 4975 ac_cv_host=$ac_cv_build 4976else 4977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4978 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4979fi 4980 4981fi 4982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4983$as_echo "$ac_cv_host" >&6; } 4984case $ac_cv_host in 4985*-*-*) ;; 4986*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4987esac 4988host=$ac_cv_host 4989ac_save_IFS=$IFS; IFS='-' 4990set x $ac_cv_host 4991shift 4992host_cpu=$1 4993host_vendor=$2 4994shift; shift 4995# Remember, the first character of IFS is used to create $*, 4996# except with old shells: 4997host_os=$* 4998IFS=$ac_save_IFS 4999case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5000 5001 5002# Backslashify metacharacters that are still active within 5003# double-quoted strings. 5004sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5005 5006# Same as above, but do not quote variable references. 5007double_quote_subst='s/\(["`\\]\)/\\\1/g' 5008 5009# Sed substitution to delay expansion of an escaped shell variable in a 5010# double_quote_subst'ed string. 5011delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5012 5013# Sed substitution to delay expansion of an escaped single quote. 5014delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5015 5016# Sed substitution to avoid accidental globbing in evaled expressions 5017no_glob_subst='s/\*/\\\*/g' 5018 5019ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5020ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5021ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5022 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5024$as_echo_n "checking how to print strings... " >&6; } 5025# Test print first, because it will be a builtin if present. 5026if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5027 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5028 ECHO='print -r --' 5029elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5030 ECHO='printf %s\n' 5031else 5032 # Use this function as a fallback that always works. 5033 func_fallback_echo () 5034 { 5035 eval 'cat <<_LTECHO_EOF 5036$1 5037_LTECHO_EOF' 5038 } 5039 ECHO='func_fallback_echo' 5040fi 5041 5042# func_echo_all arg... 5043# Invoke $ECHO with all args, space-separated. 5044func_echo_all () 5045{ 5046 $ECHO "" 5047} 5048 5049case $ECHO in 5050 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5051$as_echo "printf" >&6; } ;; 5052 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5053$as_echo "print -r" >&6; } ;; 5054 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5055$as_echo "cat" >&6; } ;; 5056esac 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5072$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5073if ${ac_cv_path_SED+:} false; then : 5074 $as_echo_n "(cached) " >&6 5075else 5076 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5077 for ac_i in 1 2 3 4 5 6 7; do 5078 ac_script="$ac_script$as_nl$ac_script" 5079 done 5080 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5081 { ac_script=; unset ac_script;} 5082 if test -z "$SED"; then 5083 ac_path_SED_found=false 5084 # Loop through the user's path and test for each of PROGNAME-LIST 5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5086for as_dir in $PATH 5087do 5088 IFS=$as_save_IFS 5089 test -z "$as_dir" && as_dir=. 5090 for ac_prog in sed gsed; do 5091 for ac_exec_ext in '' $ac_executable_extensions; do 5092 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5093 as_fn_executable_p "$ac_path_SED" || continue 5094# Check for GNU ac_path_SED and select it if it is found. 5095 # Check for GNU $ac_path_SED 5096case `"$ac_path_SED" --version 2>&1` in 5097*GNU*) 5098 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5099*) 5100 ac_count=0 5101 $as_echo_n 0123456789 >"conftest.in" 5102 while : 5103 do 5104 cat "conftest.in" "conftest.in" >"conftest.tmp" 5105 mv "conftest.tmp" "conftest.in" 5106 cp "conftest.in" "conftest.nl" 5107 $as_echo '' >> "conftest.nl" 5108 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5110 as_fn_arith $ac_count + 1 && ac_count=$as_val 5111 if test $ac_count -gt ${ac_path_SED_max-0}; then 5112 # Best one so far, save it but keep looking for a better one 5113 ac_cv_path_SED="$ac_path_SED" 5114 ac_path_SED_max=$ac_count 5115 fi 5116 # 10*(2^10) chars as input seems more than enough 5117 test $ac_count -gt 10 && break 5118 done 5119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5120esac 5121 5122 $ac_path_SED_found && break 3 5123 done 5124 done 5125 done 5126IFS=$as_save_IFS 5127 if test -z "$ac_cv_path_SED"; then 5128 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5129 fi 5130else 5131 ac_cv_path_SED=$SED 5132fi 5133 5134fi 5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5136$as_echo "$ac_cv_path_SED" >&6; } 5137 SED="$ac_cv_path_SED" 5138 rm -f conftest.sed 5139 5140test -z "$SED" && SED=sed 5141Xsed="$SED -e 1s/^X//" 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5154$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5155if ${ac_cv_path_GREP+:} false; then : 5156 $as_echo_n "(cached) " >&6 5157else 5158 if test -z "$GREP"; then 5159 ac_path_GREP_found=false 5160 # Loop through the user's path and test for each of PROGNAME-LIST 5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5162for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5163do 5164 IFS=$as_save_IFS 5165 test -z "$as_dir" && as_dir=. 5166 for ac_prog in grep ggrep; do 5167 for ac_exec_ext in '' $ac_executable_extensions; do 5168 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5169 as_fn_executable_p "$ac_path_GREP" || continue 5170# Check for GNU ac_path_GREP and select it if it is found. 5171 # Check for GNU $ac_path_GREP 5172case `"$ac_path_GREP" --version 2>&1` in 5173*GNU*) 5174 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5175*) 5176 ac_count=0 5177 $as_echo_n 0123456789 >"conftest.in" 5178 while : 5179 do 5180 cat "conftest.in" "conftest.in" >"conftest.tmp" 5181 mv "conftest.tmp" "conftest.in" 5182 cp "conftest.in" "conftest.nl" 5183 $as_echo 'GREP' >> "conftest.nl" 5184 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5186 as_fn_arith $ac_count + 1 && ac_count=$as_val 5187 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5188 # Best one so far, save it but keep looking for a better one 5189 ac_cv_path_GREP="$ac_path_GREP" 5190 ac_path_GREP_max=$ac_count 5191 fi 5192 # 10*(2^10) chars as input seems more than enough 5193 test $ac_count -gt 10 && break 5194 done 5195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5196esac 5197 5198 $ac_path_GREP_found && break 3 5199 done 5200 done 5201 done 5202IFS=$as_save_IFS 5203 if test -z "$ac_cv_path_GREP"; then 5204 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5205 fi 5206else 5207 ac_cv_path_GREP=$GREP 5208fi 5209 5210fi 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5212$as_echo "$ac_cv_path_GREP" >&6; } 5213 GREP="$ac_cv_path_GREP" 5214 5215 5216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5217$as_echo_n "checking for egrep... " >&6; } 5218if ${ac_cv_path_EGREP+:} false; then : 5219 $as_echo_n "(cached) " >&6 5220else 5221 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5222 then ac_cv_path_EGREP="$GREP -E" 5223 else 5224 if test -z "$EGREP"; then 5225 ac_path_EGREP_found=false 5226 # Loop through the user's path and test for each of PROGNAME-LIST 5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5228for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5229do 5230 IFS=$as_save_IFS 5231 test -z "$as_dir" && as_dir=. 5232 for ac_prog in egrep; do 5233 for ac_exec_ext in '' $ac_executable_extensions; do 5234 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5235 as_fn_executable_p "$ac_path_EGREP" || continue 5236# Check for GNU ac_path_EGREP and select it if it is found. 5237 # Check for GNU $ac_path_EGREP 5238case `"$ac_path_EGREP" --version 2>&1` in 5239*GNU*) 5240 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5241*) 5242 ac_count=0 5243 $as_echo_n 0123456789 >"conftest.in" 5244 while : 5245 do 5246 cat "conftest.in" "conftest.in" >"conftest.tmp" 5247 mv "conftest.tmp" "conftest.in" 5248 cp "conftest.in" "conftest.nl" 5249 $as_echo 'EGREP' >> "conftest.nl" 5250 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5251 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5252 as_fn_arith $ac_count + 1 && ac_count=$as_val 5253 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5254 # Best one so far, save it but keep looking for a better one 5255 ac_cv_path_EGREP="$ac_path_EGREP" 5256 ac_path_EGREP_max=$ac_count 5257 fi 5258 # 10*(2^10) chars as input seems more than enough 5259 test $ac_count -gt 10 && break 5260 done 5261 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5262esac 5263 5264 $ac_path_EGREP_found && break 3 5265 done 5266 done 5267 done 5268IFS=$as_save_IFS 5269 if test -z "$ac_cv_path_EGREP"; then 5270 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5271 fi 5272else 5273 ac_cv_path_EGREP=$EGREP 5274fi 5275 5276 fi 5277fi 5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5279$as_echo "$ac_cv_path_EGREP" >&6; } 5280 EGREP="$ac_cv_path_EGREP" 5281 5282 5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5284$as_echo_n "checking for fgrep... " >&6; } 5285if ${ac_cv_path_FGREP+:} false; then : 5286 $as_echo_n "(cached) " >&6 5287else 5288 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5289 then ac_cv_path_FGREP="$GREP -F" 5290 else 5291 if test -z "$FGREP"; then 5292 ac_path_FGREP_found=false 5293 # Loop through the user's path and test for each of PROGNAME-LIST 5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5296do 5297 IFS=$as_save_IFS 5298 test -z "$as_dir" && as_dir=. 5299 for ac_prog in fgrep; do 5300 for ac_exec_ext in '' $ac_executable_extensions; do 5301 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5302 as_fn_executable_p "$ac_path_FGREP" || continue 5303# Check for GNU ac_path_FGREP and select it if it is found. 5304 # Check for GNU $ac_path_FGREP 5305case `"$ac_path_FGREP" --version 2>&1` in 5306*GNU*) 5307 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5308*) 5309 ac_count=0 5310 $as_echo_n 0123456789 >"conftest.in" 5311 while : 5312 do 5313 cat "conftest.in" "conftest.in" >"conftest.tmp" 5314 mv "conftest.tmp" "conftest.in" 5315 cp "conftest.in" "conftest.nl" 5316 $as_echo 'FGREP' >> "conftest.nl" 5317 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5319 as_fn_arith $ac_count + 1 && ac_count=$as_val 5320 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5321 # Best one so far, save it but keep looking for a better one 5322 ac_cv_path_FGREP="$ac_path_FGREP" 5323 ac_path_FGREP_max=$ac_count 5324 fi 5325 # 10*(2^10) chars as input seems more than enough 5326 test $ac_count -gt 10 && break 5327 done 5328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5329esac 5330 5331 $ac_path_FGREP_found && break 3 5332 done 5333 done 5334 done 5335IFS=$as_save_IFS 5336 if test -z "$ac_cv_path_FGREP"; then 5337 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5338 fi 5339else 5340 ac_cv_path_FGREP=$FGREP 5341fi 5342 5343 fi 5344fi 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5346$as_echo "$ac_cv_path_FGREP" >&6; } 5347 FGREP="$ac_cv_path_FGREP" 5348 5349 5350test -z "$GREP" && GREP=grep 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370# Check whether --with-gnu-ld was given. 5371if test "${with_gnu_ld+set}" = set; then : 5372 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5373else 5374 with_gnu_ld=no 5375fi 5376 5377ac_prog=ld 5378if test yes = "$GCC"; then 5379 # Check if gcc -print-prog-name=ld gives a path. 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5381$as_echo_n "checking for ld used by $CC... " >&6; } 5382 case $host in 5383 *-*-mingw*) 5384 # gcc leaves a trailing carriage return, which upsets mingw 5385 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5386 *) 5387 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5388 esac 5389 case $ac_prog in 5390 # Accept absolute paths. 5391 [\\/]* | ?:[\\/]*) 5392 re_direlt='/[^/][^/]*/\.\./' 5393 # Canonicalize the pathname of ld 5394 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5395 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5396 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5397 done 5398 test -z "$LD" && LD=$ac_prog 5399 ;; 5400 "") 5401 # If it fails, then pretend we aren't using GCC. 5402 ac_prog=ld 5403 ;; 5404 *) 5405 # If it is relative, then search for the first ld in PATH. 5406 with_gnu_ld=unknown 5407 ;; 5408 esac 5409elif test yes = "$with_gnu_ld"; then 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5411$as_echo_n "checking for GNU ld... " >&6; } 5412else 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5414$as_echo_n "checking for non-GNU ld... " >&6; } 5415fi 5416if ${lt_cv_path_LD+:} false; then : 5417 $as_echo_n "(cached) " >&6 5418else 5419 if test -z "$LD"; then 5420 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5421 for ac_dir in $PATH; do 5422 IFS=$lt_save_ifs 5423 test -z "$ac_dir" && ac_dir=. 5424 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5425 lt_cv_path_LD=$ac_dir/$ac_prog 5426 # Check to see if the program is GNU ld. I'd rather use --version, 5427 # but apparently some variants of GNU ld only accept -v. 5428 # Break only if it was the GNU/non-GNU ld that we prefer. 5429 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5430 *GNU* | *'with BFD'*) 5431 test no != "$with_gnu_ld" && break 5432 ;; 5433 *) 5434 test yes != "$with_gnu_ld" && break 5435 ;; 5436 esac 5437 fi 5438 done 5439 IFS=$lt_save_ifs 5440else 5441 lt_cv_path_LD=$LD # Let the user override the test with a path. 5442fi 5443fi 5444 5445LD=$lt_cv_path_LD 5446if test -n "$LD"; then 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5448$as_echo "$LD" >&6; } 5449else 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5451$as_echo "no" >&6; } 5452fi 5453test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5455$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5456if ${lt_cv_prog_gnu_ld+:} false; then : 5457 $as_echo_n "(cached) " >&6 5458else 5459 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5460case `$LD -v 2>&1 </dev/null` in 5461*GNU* | *'with BFD'*) 5462 lt_cv_prog_gnu_ld=yes 5463 ;; 5464*) 5465 lt_cv_prog_gnu_ld=no 5466 ;; 5467esac 5468fi 5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5470$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5471with_gnu_ld=$lt_cv_prog_gnu_ld 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5482$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5483if ${lt_cv_path_NM+:} false; then : 5484 $as_echo_n "(cached) " >&6 5485else 5486 if test -n "$NM"; then 5487 # Let the user override the test. 5488 lt_cv_path_NM=$NM 5489else 5490 lt_nm_to_check=${ac_tool_prefix}nm 5491 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5492 lt_nm_to_check="$lt_nm_to_check nm" 5493 fi 5494 for lt_tmp_nm in $lt_nm_to_check; do 5495 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5496 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5497 IFS=$lt_save_ifs 5498 test -z "$ac_dir" && ac_dir=. 5499 tmp_nm=$ac_dir/$lt_tmp_nm 5500 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5501 # Check to see if the nm accepts a BSD-compat flag. 5502 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5503 # nm: unknown option "B" ignored 5504 # Tru64's nm complains that /dev/null is an invalid object file 5505 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5506 case $build_os in 5507 mingw*) lt_bad_file=conftest.nm/nofile ;; 5508 *) lt_bad_file=/dev/null ;; 5509 esac 5510 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5511 *$lt_bad_file* | *'Invalid file or object type'*) 5512 lt_cv_path_NM="$tmp_nm -B" 5513 break 2 5514 ;; 5515 *) 5516 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5517 */dev/null*) 5518 lt_cv_path_NM="$tmp_nm -p" 5519 break 2 5520 ;; 5521 *) 5522 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5523 continue # so that we can try to find one that supports BSD flags 5524 ;; 5525 esac 5526 ;; 5527 esac 5528 fi 5529 done 5530 IFS=$lt_save_ifs 5531 done 5532 : ${lt_cv_path_NM=no} 5533fi 5534fi 5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5536$as_echo "$lt_cv_path_NM" >&6; } 5537if test no != "$lt_cv_path_NM"; then 5538 NM=$lt_cv_path_NM 5539else 5540 # Didn't find any BSD compatible name lister, look for dumpbin. 5541 if test -n "$DUMPBIN"; then : 5542 # Let the user override the test. 5543 else 5544 if test -n "$ac_tool_prefix"; then 5545 for ac_prog in dumpbin "link -dump" 5546 do 5547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5548set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5550$as_echo_n "checking for $ac_word... " >&6; } 5551if ${ac_cv_prog_DUMPBIN+:} false; then : 5552 $as_echo_n "(cached) " >&6 5553else 5554 if test -n "$DUMPBIN"; then 5555 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5556else 5557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5558for as_dir in $PATH 5559do 5560 IFS=$as_save_IFS 5561 test -z "$as_dir" && as_dir=. 5562 for ac_exec_ext in '' $ac_executable_extensions; do 5563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5564 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5566 break 2 5567 fi 5568done 5569 done 5570IFS=$as_save_IFS 5571 5572fi 5573fi 5574DUMPBIN=$ac_cv_prog_DUMPBIN 5575if test -n "$DUMPBIN"; then 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5577$as_echo "$DUMPBIN" >&6; } 5578else 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5580$as_echo "no" >&6; } 5581fi 5582 5583 5584 test -n "$DUMPBIN" && break 5585 done 5586fi 5587if test -z "$DUMPBIN"; then 5588 ac_ct_DUMPBIN=$DUMPBIN 5589 for ac_prog in dumpbin "link -dump" 5590do 5591 # Extract the first word of "$ac_prog", so it can be a program name with args. 5592set dummy $ac_prog; ac_word=$2 5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5594$as_echo_n "checking for $ac_word... " >&6; } 5595if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5596 $as_echo_n "(cached) " >&6 5597else 5598 if test -n "$ac_ct_DUMPBIN"; then 5599 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5600else 5601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5602for as_dir in $PATH 5603do 5604 IFS=$as_save_IFS 5605 test -z "$as_dir" && as_dir=. 5606 for ac_exec_ext in '' $ac_executable_extensions; do 5607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5608 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5610 break 2 5611 fi 5612done 5613 done 5614IFS=$as_save_IFS 5615 5616fi 5617fi 5618ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5619if test -n "$ac_ct_DUMPBIN"; then 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5621$as_echo "$ac_ct_DUMPBIN" >&6; } 5622else 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5624$as_echo "no" >&6; } 5625fi 5626 5627 5628 test -n "$ac_ct_DUMPBIN" && break 5629done 5630 5631 if test "x$ac_ct_DUMPBIN" = x; then 5632 DUMPBIN=":" 5633 else 5634 case $cross_compiling:$ac_tool_warned in 5635yes:) 5636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5638ac_tool_warned=yes ;; 5639esac 5640 DUMPBIN=$ac_ct_DUMPBIN 5641 fi 5642fi 5643 5644 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5645 *COFF*) 5646 DUMPBIN="$DUMPBIN -symbols -headers" 5647 ;; 5648 *) 5649 DUMPBIN=: 5650 ;; 5651 esac 5652 fi 5653 5654 if test : != "$DUMPBIN"; then 5655 NM=$DUMPBIN 5656 fi 5657fi 5658test -z "$NM" && NM=nm 5659 5660 5661 5662 5663 5664 5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5666$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5667if ${lt_cv_nm_interface+:} false; then : 5668 $as_echo_n "(cached) " >&6 5669else 5670 lt_cv_nm_interface="BSD nm" 5671 echo "int some_variable = 0;" > conftest.$ac_ext 5672 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5673 (eval "$ac_compile" 2>conftest.err) 5674 cat conftest.err >&5 5675 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5676 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5677 cat conftest.err >&5 5678 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5679 cat conftest.out >&5 5680 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5681 lt_cv_nm_interface="MS dumpbin" 5682 fi 5683 rm -f conftest* 5684fi 5685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5686$as_echo "$lt_cv_nm_interface" >&6; } 5687 5688# find the maximum length of command line arguments 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5690$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5691if ${lt_cv_sys_max_cmd_len+:} false; then : 5692 $as_echo_n "(cached) " >&6 5693else 5694 i=0 5695 teststring=ABCD 5696 5697 case $build_os in 5698 msdosdjgpp*) 5699 # On DJGPP, this test can blow up pretty badly due to problems in libc 5700 # (any single argument exceeding 2000 bytes causes a buffer overrun 5701 # during glob expansion). Even if it were fixed, the result of this 5702 # check would be larger than it should be. 5703 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5704 ;; 5705 5706 gnu*) 5707 # Under GNU Hurd, this test is not required because there is 5708 # no limit to the length of command line arguments. 5709 # Libtool will interpret -1 as no limit whatsoever 5710 lt_cv_sys_max_cmd_len=-1; 5711 ;; 5712 5713 cygwin* | mingw* | cegcc*) 5714 # On Win9x/ME, this test blows up -- it succeeds, but takes 5715 # about 5 minutes as the teststring grows exponentially. 5716 # Worse, since 9x/ME are not pre-emptively multitasking, 5717 # you end up with a "frozen" computer, even though with patience 5718 # the test eventually succeeds (with a max line length of 256k). 5719 # Instead, let's just punt: use the minimum linelength reported by 5720 # all of the supported platforms: 8192 (on NT/2K/XP). 5721 lt_cv_sys_max_cmd_len=8192; 5722 ;; 5723 5724 mint*) 5725 # On MiNT this can take a long time and run out of memory. 5726 lt_cv_sys_max_cmd_len=8192; 5727 ;; 5728 5729 amigaos*) 5730 # On AmigaOS with pdksh, this test takes hours, literally. 5731 # So we just punt and use a minimum line length of 8192. 5732 lt_cv_sys_max_cmd_len=8192; 5733 ;; 5734 5735 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5736 # This has been around since 386BSD, at least. Likely further. 5737 if test -x /sbin/sysctl; then 5738 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5739 elif test -x /usr/sbin/sysctl; then 5740 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5741 else 5742 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5743 fi 5744 # And add a safety zone 5745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5747 ;; 5748 5749 interix*) 5750 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5751 lt_cv_sys_max_cmd_len=196608 5752 ;; 5753 5754 os2*) 5755 # The test takes a long time on OS/2. 5756 lt_cv_sys_max_cmd_len=8192 5757 ;; 5758 5759 osf*) 5760 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5761 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5762 # nice to cause kernel panics so lets avoid the loop below. 5763 # First set a reasonable default. 5764 lt_cv_sys_max_cmd_len=16384 5765 # 5766 if test -x /sbin/sysconfig; then 5767 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5768 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5769 esac 5770 fi 5771 ;; 5772 sco3.2v5*) 5773 lt_cv_sys_max_cmd_len=102400 5774 ;; 5775 sysv5* | sco5v6* | sysv4.2uw2*) 5776 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5777 if test -n "$kargmax"; then 5778 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5779 else 5780 lt_cv_sys_max_cmd_len=32768 5781 fi 5782 ;; 5783 *) 5784 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5785 if test -n "$lt_cv_sys_max_cmd_len" && \ 5786 test undefined != "$lt_cv_sys_max_cmd_len"; then 5787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5788 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5789 else 5790 # Make teststring a little bigger before we do anything with it. 5791 # a 1K string should be a reasonable start. 5792 for i in 1 2 3 4 5 6 7 8; do 5793 teststring=$teststring$teststring 5794 done 5795 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5796 # If test is not a shell built-in, we'll probably end up computing a 5797 # maximum length that is only half of the actual maximum length, but 5798 # we can't tell. 5799 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5800 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5801 test 17 != "$i" # 1/2 MB should be enough 5802 do 5803 i=`expr $i + 1` 5804 teststring=$teststring$teststring 5805 done 5806 # Only check the string length outside the loop. 5807 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5808 teststring= 5809 # Add a significant safety factor because C++ compilers can tack on 5810 # massive amounts of additional arguments before passing them to the 5811 # linker. It appears as though 1/2 is a usable value. 5812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5813 fi 5814 ;; 5815 esac 5816 5817fi 5818 5819if test -n "$lt_cv_sys_max_cmd_len"; then 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5821$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5822else 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5824$as_echo "none" >&6; } 5825fi 5826max_cmd_len=$lt_cv_sys_max_cmd_len 5827 5828 5829 5830 5831 5832 5833: ${CP="cp -f"} 5834: ${MV="mv -f"} 5835: ${RM="rm -f"} 5836 5837if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5838 lt_unset=unset 5839else 5840 lt_unset=false 5841fi 5842 5843 5844 5845 5846 5847# test EBCDIC or ASCII 5848case `echo X|tr X '\101'` in 5849 A) # ASCII based system 5850 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5851 lt_SP2NL='tr \040 \012' 5852 lt_NL2SP='tr \015\012 \040\040' 5853 ;; 5854 *) # EBCDIC based system 5855 lt_SP2NL='tr \100 \n' 5856 lt_NL2SP='tr \r\n \100\100' 5857 ;; 5858esac 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5869$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5870if ${lt_cv_to_host_file_cmd+:} false; then : 5871 $as_echo_n "(cached) " >&6 5872else 5873 case $host in 5874 *-*-mingw* ) 5875 case $build in 5876 *-*-mingw* ) # actually msys 5877 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5878 ;; 5879 *-*-cygwin* ) 5880 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5881 ;; 5882 * ) # otherwise, assume *nix 5883 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5884 ;; 5885 esac 5886 ;; 5887 *-*-cygwin* ) 5888 case $build in 5889 *-*-mingw* ) # actually msys 5890 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5891 ;; 5892 *-*-cygwin* ) 5893 lt_cv_to_host_file_cmd=func_convert_file_noop 5894 ;; 5895 * ) # otherwise, assume *nix 5896 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5897 ;; 5898 esac 5899 ;; 5900 * ) # unhandled hosts (and "normal" native builds) 5901 lt_cv_to_host_file_cmd=func_convert_file_noop 5902 ;; 5903esac 5904 5905fi 5906 5907to_host_file_cmd=$lt_cv_to_host_file_cmd 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5909$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5910 5911 5912 5913 5914 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5916$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5917if ${lt_cv_to_tool_file_cmd+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919else 5920 #assume ordinary cross tools, or native build. 5921lt_cv_to_tool_file_cmd=func_convert_file_noop 5922case $host in 5923 *-*-mingw* ) 5924 case $build in 5925 *-*-mingw* ) # actually msys 5926 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5927 ;; 5928 esac 5929 ;; 5930esac 5931 5932fi 5933 5934to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5936$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5937 5938 5939 5940 5941 5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5943$as_echo_n "checking for $LD option to reload object files... " >&6; } 5944if ${lt_cv_ld_reload_flag+:} false; then : 5945 $as_echo_n "(cached) " >&6 5946else 5947 lt_cv_ld_reload_flag='-r' 5948fi 5949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5950$as_echo "$lt_cv_ld_reload_flag" >&6; } 5951reload_flag=$lt_cv_ld_reload_flag 5952case $reload_flag in 5953"" | " "*) ;; 5954*) reload_flag=" $reload_flag" ;; 5955esac 5956reload_cmds='$LD$reload_flag -o $output$reload_objs' 5957case $host_os in 5958 cygwin* | mingw* | pw32* | cegcc*) 5959 if test yes != "$GCC"; then 5960 reload_cmds=false 5961 fi 5962 ;; 5963 darwin*) 5964 if test yes = "$GCC"; then 5965 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5966 else 5967 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5968 fi 5969 ;; 5970esac 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980if test -n "$ac_tool_prefix"; then 5981 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5982set dummy ${ac_tool_prefix}objdump; ac_word=$2 5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5984$as_echo_n "checking for $ac_word... " >&6; } 5985if ${ac_cv_prog_OBJDUMP+:} false; then : 5986 $as_echo_n "(cached) " >&6 5987else 5988 if test -n "$OBJDUMP"; then 5989 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5990else 5991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5992for as_dir in $PATH 5993do 5994 IFS=$as_save_IFS 5995 test -z "$as_dir" && as_dir=. 5996 for ac_exec_ext in '' $ac_executable_extensions; do 5997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5998 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6000 break 2 6001 fi 6002done 6003 done 6004IFS=$as_save_IFS 6005 6006fi 6007fi 6008OBJDUMP=$ac_cv_prog_OBJDUMP 6009if test -n "$OBJDUMP"; then 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6011$as_echo "$OBJDUMP" >&6; } 6012else 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6014$as_echo "no" >&6; } 6015fi 6016 6017 6018fi 6019if test -z "$ac_cv_prog_OBJDUMP"; then 6020 ac_ct_OBJDUMP=$OBJDUMP 6021 # Extract the first word of "objdump", so it can be a program name with args. 6022set dummy objdump; ac_word=$2 6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6024$as_echo_n "checking for $ac_word... " >&6; } 6025if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6026 $as_echo_n "(cached) " >&6 6027else 6028 if test -n "$ac_ct_OBJDUMP"; then 6029 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6030else 6031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6032for as_dir in $PATH 6033do 6034 IFS=$as_save_IFS 6035 test -z "$as_dir" && as_dir=. 6036 for ac_exec_ext in '' $ac_executable_extensions; do 6037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6038 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6040 break 2 6041 fi 6042done 6043 done 6044IFS=$as_save_IFS 6045 6046fi 6047fi 6048ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6049if test -n "$ac_ct_OBJDUMP"; then 6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6051$as_echo "$ac_ct_OBJDUMP" >&6; } 6052else 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6054$as_echo "no" >&6; } 6055fi 6056 6057 if test "x$ac_ct_OBJDUMP" = x; then 6058 OBJDUMP="false" 6059 else 6060 case $cross_compiling:$ac_tool_warned in 6061yes:) 6062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6064ac_tool_warned=yes ;; 6065esac 6066 OBJDUMP=$ac_ct_OBJDUMP 6067 fi 6068else 6069 OBJDUMP="$ac_cv_prog_OBJDUMP" 6070fi 6071 6072test -z "$OBJDUMP" && OBJDUMP=objdump 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6083$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6084if ${lt_cv_deplibs_check_method+:} false; then : 6085 $as_echo_n "(cached) " >&6 6086else 6087 lt_cv_file_magic_cmd='$MAGIC_CMD' 6088lt_cv_file_magic_test_file= 6089lt_cv_deplibs_check_method='unknown' 6090# Need to set the preceding variable on all platforms that support 6091# interlibrary dependencies. 6092# 'none' -- dependencies not supported. 6093# 'unknown' -- same as none, but documents that we really don't know. 6094# 'pass_all' -- all dependencies passed with no checks. 6095# 'test_compile' -- check by making test program. 6096# 'file_magic [[regex]]' -- check by looking for files in library path 6097# that responds to the $file_magic_cmd with a given extended regex. 6098# If you have 'file' or equivalent on your system and you're not sure 6099# whether 'pass_all' will *always* work, you probably want this one. 6100 6101case $host_os in 6102aix[4-9]*) 6103 lt_cv_deplibs_check_method=pass_all 6104 ;; 6105 6106beos*) 6107 lt_cv_deplibs_check_method=pass_all 6108 ;; 6109 6110bsdi[45]*) 6111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6112 lt_cv_file_magic_cmd='/usr/bin/file -L' 6113 lt_cv_file_magic_test_file=/shlib/libc.so 6114 ;; 6115 6116cygwin*) 6117 # func_win32_libid is a shell function defined in ltmain.sh 6118 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6119 lt_cv_file_magic_cmd='func_win32_libid' 6120 ;; 6121 6122mingw* | pw32*) 6123 # Base MSYS/MinGW do not provide the 'file' command needed by 6124 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6125 # unless we find 'file', for example because we are cross-compiling. 6126 if ( file / ) >/dev/null 2>&1; then 6127 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6128 lt_cv_file_magic_cmd='func_win32_libid' 6129 else 6130 # Keep this pattern in sync with the one in func_win32_libid. 6131 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6132 lt_cv_file_magic_cmd='$OBJDUMP -f' 6133 fi 6134 ;; 6135 6136cegcc*) 6137 # use the weaker test based on 'objdump'. See mingw*. 6138 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6139 lt_cv_file_magic_cmd='$OBJDUMP -f' 6140 ;; 6141 6142darwin* | rhapsody*) 6143 lt_cv_deplibs_check_method=pass_all 6144 ;; 6145 6146freebsd* | dragonfly*) 6147 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6148 case $host_cpu in 6149 i*86 ) 6150 # Not sure whether the presence of OpenBSD here was a mistake. 6151 # Let's accept both of them until this is cleared up. 6152 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6153 lt_cv_file_magic_cmd=/usr/bin/file 6154 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6155 ;; 6156 esac 6157 else 6158 lt_cv_deplibs_check_method=pass_all 6159 fi 6160 ;; 6161 6162haiku*) 6163 lt_cv_deplibs_check_method=pass_all 6164 ;; 6165 6166hpux10.20* | hpux11*) 6167 lt_cv_file_magic_cmd=/usr/bin/file 6168 case $host_cpu in 6169 ia64*) 6170 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6171 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6172 ;; 6173 hppa*64*) 6174 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]' 6175 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6176 ;; 6177 *) 6178 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6179 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6180 ;; 6181 esac 6182 ;; 6183 6184interix[3-9]*) 6185 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6186 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6187 ;; 6188 6189irix5* | irix6* | nonstopux*) 6190 case $LD in 6191 *-32|*"-32 ") libmagic=32-bit;; 6192 *-n32|*"-n32 ") libmagic=N32;; 6193 *-64|*"-64 ") libmagic=64-bit;; 6194 *) libmagic=never-match;; 6195 esac 6196 lt_cv_deplibs_check_method=pass_all 6197 ;; 6198 6199# This must be glibc/ELF. 6200linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6201 lt_cv_deplibs_check_method=pass_all 6202 ;; 6203 6204netbsd* | netbsdelf*-gnu) 6205 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6207 else 6208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6209 fi 6210 ;; 6211 6212newos6*) 6213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6214 lt_cv_file_magic_cmd=/usr/bin/file 6215 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6216 ;; 6217 6218*nto* | *qnx*) 6219 lt_cv_deplibs_check_method=pass_all 6220 ;; 6221 6222openbsd* | bitrig*) 6223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6224 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6225 else 6226 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6227 fi 6228 ;; 6229 6230osf3* | osf4* | osf5*) 6231 lt_cv_deplibs_check_method=pass_all 6232 ;; 6233 6234rdos*) 6235 lt_cv_deplibs_check_method=pass_all 6236 ;; 6237 6238solaris*) 6239 lt_cv_deplibs_check_method=pass_all 6240 ;; 6241 6242sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6243 lt_cv_deplibs_check_method=pass_all 6244 ;; 6245 6246sysv4 | sysv4.3*) 6247 case $host_vendor in 6248 motorola) 6249 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]' 6250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6251 ;; 6252 ncr) 6253 lt_cv_deplibs_check_method=pass_all 6254 ;; 6255 sequent) 6256 lt_cv_file_magic_cmd='/bin/file' 6257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6258 ;; 6259 sni) 6260 lt_cv_file_magic_cmd='/bin/file' 6261 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6262 lt_cv_file_magic_test_file=/lib/libc.so 6263 ;; 6264 siemens) 6265 lt_cv_deplibs_check_method=pass_all 6266 ;; 6267 pc) 6268 lt_cv_deplibs_check_method=pass_all 6269 ;; 6270 esac 6271 ;; 6272 6273tpf*) 6274 lt_cv_deplibs_check_method=pass_all 6275 ;; 6276os2*) 6277 lt_cv_deplibs_check_method=pass_all 6278 ;; 6279esac 6280 6281fi 6282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6283$as_echo "$lt_cv_deplibs_check_method" >&6; } 6284 6285file_magic_glob= 6286want_nocaseglob=no 6287if test "$build" = "$host"; then 6288 case $host_os in 6289 mingw* | pw32*) 6290 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6291 want_nocaseglob=yes 6292 else 6293 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6294 fi 6295 ;; 6296 esac 6297fi 6298 6299file_magic_cmd=$lt_cv_file_magic_cmd 6300deplibs_check_method=$lt_cv_deplibs_check_method 6301test -z "$deplibs_check_method" && deplibs_check_method=unknown 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324if test -n "$ac_tool_prefix"; then 6325 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6326set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6328$as_echo_n "checking for $ac_word... " >&6; } 6329if ${ac_cv_prog_DLLTOOL+:} false; then : 6330 $as_echo_n "(cached) " >&6 6331else 6332 if test -n "$DLLTOOL"; then 6333 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6334else 6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6336for as_dir in $PATH 6337do 6338 IFS=$as_save_IFS 6339 test -z "$as_dir" && as_dir=. 6340 for ac_exec_ext in '' $ac_executable_extensions; do 6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6342 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6344 break 2 6345 fi 6346done 6347 done 6348IFS=$as_save_IFS 6349 6350fi 6351fi 6352DLLTOOL=$ac_cv_prog_DLLTOOL 6353if test -n "$DLLTOOL"; then 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6355$as_echo "$DLLTOOL" >&6; } 6356else 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6358$as_echo "no" >&6; } 6359fi 6360 6361 6362fi 6363if test -z "$ac_cv_prog_DLLTOOL"; then 6364 ac_ct_DLLTOOL=$DLLTOOL 6365 # Extract the first word of "dlltool", so it can be a program name with args. 6366set dummy dlltool; ac_word=$2 6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6368$as_echo_n "checking for $ac_word... " >&6; } 6369if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6370 $as_echo_n "(cached) " >&6 6371else 6372 if test -n "$ac_ct_DLLTOOL"; then 6373 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6374else 6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6376for as_dir in $PATH 6377do 6378 IFS=$as_save_IFS 6379 test -z "$as_dir" && as_dir=. 6380 for ac_exec_ext in '' $ac_executable_extensions; do 6381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6382 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6384 break 2 6385 fi 6386done 6387 done 6388IFS=$as_save_IFS 6389 6390fi 6391fi 6392ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6393if test -n "$ac_ct_DLLTOOL"; then 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6395$as_echo "$ac_ct_DLLTOOL" >&6; } 6396else 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6398$as_echo "no" >&6; } 6399fi 6400 6401 if test "x$ac_ct_DLLTOOL" = x; then 6402 DLLTOOL="false" 6403 else 6404 case $cross_compiling:$ac_tool_warned in 6405yes:) 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6408ac_tool_warned=yes ;; 6409esac 6410 DLLTOOL=$ac_ct_DLLTOOL 6411 fi 6412else 6413 DLLTOOL="$ac_cv_prog_DLLTOOL" 6414fi 6415 6416test -z "$DLLTOOL" && DLLTOOL=dlltool 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6428$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6429if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6430 $as_echo_n "(cached) " >&6 6431else 6432 lt_cv_sharedlib_from_linklib_cmd='unknown' 6433 6434case $host_os in 6435cygwin* | mingw* | pw32* | cegcc*) 6436 # two different shell functions defined in ltmain.sh; 6437 # decide which one to use based on capabilities of $DLLTOOL 6438 case `$DLLTOOL --help 2>&1` in 6439 *--identify-strict*) 6440 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6441 ;; 6442 *) 6443 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6444 ;; 6445 esac 6446 ;; 6447*) 6448 # fallback: assume linklib IS sharedlib 6449 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6450 ;; 6451esac 6452 6453fi 6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6455$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6456sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6457test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6458 6459 6460 6461 6462 6463 6464 6465 6466if test -n "$ac_tool_prefix"; then 6467 for ac_prog in ar 6468 do 6469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6470set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6472$as_echo_n "checking for $ac_word... " >&6; } 6473if ${ac_cv_prog_AR+:} false; then : 6474 $as_echo_n "(cached) " >&6 6475else 6476 if test -n "$AR"; then 6477 ac_cv_prog_AR="$AR" # Let the user override the test. 6478else 6479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480for as_dir in $PATH 6481do 6482 IFS=$as_save_IFS 6483 test -z "$as_dir" && as_dir=. 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6486 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490done 6491 done 6492IFS=$as_save_IFS 6493 6494fi 6495fi 6496AR=$ac_cv_prog_AR 6497if test -n "$AR"; then 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6499$as_echo "$AR" >&6; } 6500else 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6502$as_echo "no" >&6; } 6503fi 6504 6505 6506 test -n "$AR" && break 6507 done 6508fi 6509if test -z "$AR"; then 6510 ac_ct_AR=$AR 6511 for ac_prog in ar 6512do 6513 # Extract the first word of "$ac_prog", so it can be a program name with args. 6514set dummy $ac_prog; ac_word=$2 6515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6516$as_echo_n "checking for $ac_word... " >&6; } 6517if ${ac_cv_prog_ac_ct_AR+:} false; then : 6518 $as_echo_n "(cached) " >&6 6519else 6520 if test -n "$ac_ct_AR"; then 6521 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6522else 6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6524for as_dir in $PATH 6525do 6526 IFS=$as_save_IFS 6527 test -z "$as_dir" && as_dir=. 6528 for ac_exec_ext in '' $ac_executable_extensions; do 6529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6530 ac_cv_prog_ac_ct_AR="$ac_prog" 6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6532 break 2 6533 fi 6534done 6535 done 6536IFS=$as_save_IFS 6537 6538fi 6539fi 6540ac_ct_AR=$ac_cv_prog_ac_ct_AR 6541if test -n "$ac_ct_AR"; then 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6543$as_echo "$ac_ct_AR" >&6; } 6544else 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6546$as_echo "no" >&6; } 6547fi 6548 6549 6550 test -n "$ac_ct_AR" && break 6551done 6552 6553 if test "x$ac_ct_AR" = x; then 6554 AR="false" 6555 else 6556 case $cross_compiling:$ac_tool_warned in 6557yes:) 6558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6560ac_tool_warned=yes ;; 6561esac 6562 AR=$ac_ct_AR 6563 fi 6564fi 6565 6566: ${AR=ar} 6567: ${AR_FLAGS=cru} 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6580$as_echo_n "checking for archiver @FILE support... " >&6; } 6581if ${lt_cv_ar_at_file+:} false; then : 6582 $as_echo_n "(cached) " >&6 6583else 6584 lt_cv_ar_at_file=no 6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6586/* end confdefs.h. */ 6587 6588int 6589main () 6590{ 6591 6592 ; 6593 return 0; 6594} 6595_ACEOF 6596if ac_fn_c_try_compile "$LINENO"; then : 6597 echo conftest.$ac_objext > conftest.lst 6598 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6600 (eval $lt_ar_try) 2>&5 6601 ac_status=$? 6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6603 test $ac_status = 0; } 6604 if test 0 -eq "$ac_status"; then 6605 # Ensure the archiver fails upon bogus file names. 6606 rm -f conftest.$ac_objext libconftest.a 6607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6608 (eval $lt_ar_try) 2>&5 6609 ac_status=$? 6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6611 test $ac_status = 0; } 6612 if test 0 -ne "$ac_status"; then 6613 lt_cv_ar_at_file=@ 6614 fi 6615 fi 6616 rm -f conftest.* libconftest.a 6617 6618fi 6619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6620 6621fi 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6623$as_echo "$lt_cv_ar_at_file" >&6; } 6624 6625if test no = "$lt_cv_ar_at_file"; then 6626 archiver_list_spec= 6627else 6628 archiver_list_spec=$lt_cv_ar_at_file 6629fi 6630 6631 6632 6633 6634 6635 6636 6637if test -n "$ac_tool_prefix"; then 6638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6639set dummy ${ac_tool_prefix}strip; ac_word=$2 6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6641$as_echo_n "checking for $ac_word... " >&6; } 6642if ${ac_cv_prog_STRIP+:} false; then : 6643 $as_echo_n "(cached) " >&6 6644else 6645 if test -n "$STRIP"; then 6646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6647else 6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6649for as_dir in $PATH 6650do 6651 IFS=$as_save_IFS 6652 test -z "$as_dir" && as_dir=. 6653 for ac_exec_ext in '' $ac_executable_extensions; do 6654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6655 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6657 break 2 6658 fi 6659done 6660 done 6661IFS=$as_save_IFS 6662 6663fi 6664fi 6665STRIP=$ac_cv_prog_STRIP 6666if test -n "$STRIP"; then 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6668$as_echo "$STRIP" >&6; } 6669else 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6671$as_echo "no" >&6; } 6672fi 6673 6674 6675fi 6676if test -z "$ac_cv_prog_STRIP"; then 6677 ac_ct_STRIP=$STRIP 6678 # Extract the first word of "strip", so it can be a program name with args. 6679set dummy strip; ac_word=$2 6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6681$as_echo_n "checking for $ac_word... " >&6; } 6682if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6683 $as_echo_n "(cached) " >&6 6684else 6685 if test -n "$ac_ct_STRIP"; then 6686 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6687else 6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6689for as_dir in $PATH 6690do 6691 IFS=$as_save_IFS 6692 test -z "$as_dir" && as_dir=. 6693 for ac_exec_ext in '' $ac_executable_extensions; do 6694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6695 ac_cv_prog_ac_ct_STRIP="strip" 6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6697 break 2 6698 fi 6699done 6700 done 6701IFS=$as_save_IFS 6702 6703fi 6704fi 6705ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6706if test -n "$ac_ct_STRIP"; then 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6708$as_echo "$ac_ct_STRIP" >&6; } 6709else 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6711$as_echo "no" >&6; } 6712fi 6713 6714 if test "x$ac_ct_STRIP" = x; then 6715 STRIP=":" 6716 else 6717 case $cross_compiling:$ac_tool_warned in 6718yes:) 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6721ac_tool_warned=yes ;; 6722esac 6723 STRIP=$ac_ct_STRIP 6724 fi 6725else 6726 STRIP="$ac_cv_prog_STRIP" 6727fi 6728 6729test -z "$STRIP" && STRIP=: 6730 6731 6732 6733 6734 6735 6736if test -n "$ac_tool_prefix"; then 6737 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6738set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6740$as_echo_n "checking for $ac_word... " >&6; } 6741if ${ac_cv_prog_RANLIB+:} false; then : 6742 $as_echo_n "(cached) " >&6 6743else 6744 if test -n "$RANLIB"; then 6745 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6746else 6747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6748for as_dir in $PATH 6749do 6750 IFS=$as_save_IFS 6751 test -z "$as_dir" && as_dir=. 6752 for ac_exec_ext in '' $ac_executable_extensions; do 6753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6754 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6756 break 2 6757 fi 6758done 6759 done 6760IFS=$as_save_IFS 6761 6762fi 6763fi 6764RANLIB=$ac_cv_prog_RANLIB 6765if test -n "$RANLIB"; then 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6767$as_echo "$RANLIB" >&6; } 6768else 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6770$as_echo "no" >&6; } 6771fi 6772 6773 6774fi 6775if test -z "$ac_cv_prog_RANLIB"; then 6776 ac_ct_RANLIB=$RANLIB 6777 # Extract the first word of "ranlib", so it can be a program name with args. 6778set dummy ranlib; ac_word=$2 6779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6780$as_echo_n "checking for $ac_word... " >&6; } 6781if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6782 $as_echo_n "(cached) " >&6 6783else 6784 if test -n "$ac_ct_RANLIB"; then 6785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6786else 6787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6788for as_dir in $PATH 6789do 6790 IFS=$as_save_IFS 6791 test -z "$as_dir" && as_dir=. 6792 for ac_exec_ext in '' $ac_executable_extensions; do 6793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6794 ac_cv_prog_ac_ct_RANLIB="ranlib" 6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6796 break 2 6797 fi 6798done 6799 done 6800IFS=$as_save_IFS 6801 6802fi 6803fi 6804ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6805if test -n "$ac_ct_RANLIB"; then 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6807$as_echo "$ac_ct_RANLIB" >&6; } 6808else 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6810$as_echo "no" >&6; } 6811fi 6812 6813 if test "x$ac_ct_RANLIB" = x; then 6814 RANLIB=":" 6815 else 6816 case $cross_compiling:$ac_tool_warned in 6817yes:) 6818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6820ac_tool_warned=yes ;; 6821esac 6822 RANLIB=$ac_ct_RANLIB 6823 fi 6824else 6825 RANLIB="$ac_cv_prog_RANLIB" 6826fi 6827 6828test -z "$RANLIB" && RANLIB=: 6829 6830 6831 6832 6833 6834 6835# Determine commands to create old-style static archives. 6836old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6837old_postinstall_cmds='chmod 644 $oldlib' 6838old_postuninstall_cmds= 6839 6840if test -n "$RANLIB"; then 6841 case $host_os in 6842 bitrig* | openbsd*) 6843 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6844 ;; 6845 *) 6846 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6847 ;; 6848 esac 6849 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6850fi 6851 6852case $host_os in 6853 darwin*) 6854 lock_old_archive_extraction=yes ;; 6855 *) 6856 lock_old_archive_extraction=no ;; 6857esac 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897# If no C compiler was specified, use CC. 6898LTCC=${LTCC-"$CC"} 6899 6900# If no C compiler flags were specified, use CFLAGS. 6901LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6902 6903# Allow CC to be a program name with arguments. 6904compiler=$CC 6905 6906 6907# Check for command to grab the raw symbol name followed by C symbol from nm. 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6909$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6910if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6911 $as_echo_n "(cached) " >&6 6912else 6913 6914# These are sane defaults that work on at least a few old systems. 6915# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6916 6917# Character class describing NM global symbol codes. 6918symcode='[BCDEGRST]' 6919 6920# Regexp to match symbols that can be accessed directly from C. 6921sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6922 6923# Define system-specific variables. 6924case $host_os in 6925aix*) 6926 symcode='[BCDT]' 6927 ;; 6928cygwin* | mingw* | pw32* | cegcc*) 6929 symcode='[ABCDGISTW]' 6930 ;; 6931hpux*) 6932 if test ia64 = "$host_cpu"; then 6933 symcode='[ABCDEGRST]' 6934 fi 6935 ;; 6936irix* | nonstopux*) 6937 symcode='[BCDEGRST]' 6938 ;; 6939osf*) 6940 symcode='[BCDEGQRST]' 6941 ;; 6942solaris*) 6943 symcode='[BDRT]' 6944 ;; 6945sco3.2v5*) 6946 symcode='[DT]' 6947 ;; 6948sysv4.2uw2*) 6949 symcode='[DT]' 6950 ;; 6951sysv5* | sco5v6* | unixware* | OpenUNIX*) 6952 symcode='[ABDT]' 6953 ;; 6954sysv4) 6955 symcode='[DFNSTU]' 6956 ;; 6957esac 6958 6959# If we're using GNU nm, then use its standard symbol codes. 6960case `$NM -V 2>&1` in 6961*GNU* | *'with BFD'*) 6962 symcode='[ABCDGIRSTW]' ;; 6963esac 6964 6965if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6966 # Gets list of data symbols to import. 6967 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6968 # Adjust the below global symbol transforms to fixup imported variables. 6969 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6970 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6971 lt_c_name_lib_hook="\ 6972 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6973 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6974else 6975 # Disable hooks by default. 6976 lt_cv_sys_global_symbol_to_import= 6977 lt_cdecl_hook= 6978 lt_c_name_hook= 6979 lt_c_name_lib_hook= 6980fi 6981 6982# Transform an extracted symbol line into a proper C declaration. 6983# Some systems (esp. on ia64) link data and code symbols differently, 6984# so use this general approach. 6985lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6986$lt_cdecl_hook\ 6987" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6988" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6989 6990# Transform an extracted symbol line into symbol name and symbol address 6991lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6992$lt_c_name_hook\ 6993" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6994" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6995 6996# Transform an extracted symbol line into symbol name with lib prefix and 6997# symbol address. 6998lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6999$lt_c_name_lib_hook\ 7000" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7001" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7002" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7003 7004# Handle CRLF in mingw tool chain 7005opt_cr= 7006case $build_os in 7007mingw*) 7008 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7009 ;; 7010esac 7011 7012# Try without a prefix underscore, then with it. 7013for ac_symprfx in "" "_"; do 7014 7015 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7016 symxfrm="\\1 $ac_symprfx\\2 \\2" 7017 7018 # Write the raw and C identifiers. 7019 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7020 # Fake it for dumpbin and say T for any non-static function, 7021 # D for any global variable and I for any imported variable. 7022 # Also find C++ and __fastcall symbols from MSVC++, 7023 # which start with @ or ?. 7024 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7025" {last_section=section; section=\$ 3};"\ 7026" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7027" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7028" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7029" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7030" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7031" \$ 0!~/External *\|/{next};"\ 7032" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7033" {if(hide[section]) next};"\ 7034" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7035" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7036" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7037" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7038" ' prfx=^$ac_symprfx" 7039 else 7040 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7041 fi 7042 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7043 7044 # Check to see that the pipe works correctly. 7045 pipe_works=no 7046 7047 rm -f conftest* 7048 cat > conftest.$ac_ext <<_LT_EOF 7049#ifdef __cplusplus 7050extern "C" { 7051#endif 7052char nm_test_var; 7053void nm_test_func(void); 7054void nm_test_func(void){} 7055#ifdef __cplusplus 7056} 7057#endif 7058int main(){nm_test_var='a';nm_test_func();return(0);} 7059_LT_EOF 7060 7061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7062 (eval $ac_compile) 2>&5 7063 ac_status=$? 7064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7065 test $ac_status = 0; }; then 7066 # Now try to grab the symbols. 7067 nlist=conftest.nm 7068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7069 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7070 ac_status=$? 7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7072 test $ac_status = 0; } && test -s "$nlist"; then 7073 # Try sorting and uniquifying the output. 7074 if sort "$nlist" | uniq > "$nlist"T; then 7075 mv -f "$nlist"T "$nlist" 7076 else 7077 rm -f "$nlist"T 7078 fi 7079 7080 # Make sure that we snagged all the symbols we need. 7081 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7082 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7083 cat <<_LT_EOF > conftest.$ac_ext 7084/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7085#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7086/* DATA imports from DLLs on WIN32 can't be const, because runtime 7087 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7088# define LT_DLSYM_CONST 7089#elif defined __osf__ 7090/* This system does not cope well with relocations in const data. */ 7091# define LT_DLSYM_CONST 7092#else 7093# define LT_DLSYM_CONST const 7094#endif 7095 7096#ifdef __cplusplus 7097extern "C" { 7098#endif 7099 7100_LT_EOF 7101 # Now generate the symbol file. 7102 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7103 7104 cat <<_LT_EOF >> conftest.$ac_ext 7105 7106/* The mapping between symbol names and symbols. */ 7107LT_DLSYM_CONST struct { 7108 const char *name; 7109 void *address; 7110} 7111lt__PROGRAM__LTX_preloaded_symbols[] = 7112{ 7113 { "@PROGRAM@", (void *) 0 }, 7114_LT_EOF 7115 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7116 cat <<\_LT_EOF >> conftest.$ac_ext 7117 {0, (void *) 0} 7118}; 7119 7120/* This works around a problem in FreeBSD linker */ 7121#ifdef FREEBSD_WORKAROUND 7122static const void *lt_preloaded_setup() { 7123 return lt__PROGRAM__LTX_preloaded_symbols; 7124} 7125#endif 7126 7127#ifdef __cplusplus 7128} 7129#endif 7130_LT_EOF 7131 # Now try linking the two files. 7132 mv conftest.$ac_objext conftstm.$ac_objext 7133 lt_globsym_save_LIBS=$LIBS 7134 lt_globsym_save_CFLAGS=$CFLAGS 7135 LIBS=conftstm.$ac_objext 7136 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7138 (eval $ac_link) 2>&5 7139 ac_status=$? 7140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7141 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7142 pipe_works=yes 7143 fi 7144 LIBS=$lt_globsym_save_LIBS 7145 CFLAGS=$lt_globsym_save_CFLAGS 7146 else 7147 echo "cannot find nm_test_func in $nlist" >&5 7148 fi 7149 else 7150 echo "cannot find nm_test_var in $nlist" >&5 7151 fi 7152 else 7153 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7154 fi 7155 else 7156 echo "$progname: failed program was:" >&5 7157 cat conftest.$ac_ext >&5 7158 fi 7159 rm -rf conftest* conftst* 7160 7161 # Do not use the global_symbol_pipe unless it works. 7162 if test yes = "$pipe_works"; then 7163 break 7164 else 7165 lt_cv_sys_global_symbol_pipe= 7166 fi 7167done 7168 7169fi 7170 7171if test -z "$lt_cv_sys_global_symbol_pipe"; then 7172 lt_cv_sys_global_symbol_to_cdecl= 7173fi 7174if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7176$as_echo "failed" >&6; } 7177else 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7179$as_echo "ok" >&6; } 7180fi 7181 7182# Response file support. 7183if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7184 nm_file_list_spec='@' 7185elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7186 nm_file_list_spec='@' 7187fi 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7226$as_echo_n "checking for sysroot... " >&6; } 7227 7228# Check whether --with-sysroot was given. 7229if test "${with_sysroot+set}" = set; then : 7230 withval=$with_sysroot; 7231else 7232 with_sysroot=no 7233fi 7234 7235 7236lt_sysroot= 7237case $with_sysroot in #( 7238 yes) 7239 if test yes = "$GCC"; then 7240 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7241 fi 7242 ;; #( 7243 /*) 7244 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7245 ;; #( 7246 no|'') 7247 ;; #( 7248 *) 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7250$as_echo "$with_sysroot" >&6; } 7251 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7252 ;; 7253esac 7254 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7256$as_echo "${lt_sysroot:-no}" >&6; } 7257 7258 7259 7260 7261 7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7263$as_echo_n "checking for a working dd... " >&6; } 7264if ${ac_cv_path_lt_DD+:} false; then : 7265 $as_echo_n "(cached) " >&6 7266else 7267 printf 0123456789abcdef0123456789abcdef >conftest.i 7268cat conftest.i conftest.i >conftest2.i 7269: ${lt_DD:=$DD} 7270if test -z "$lt_DD"; then 7271 ac_path_lt_DD_found=false 7272 # Loop through the user's path and test for each of PROGNAME-LIST 7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7274for as_dir in $PATH 7275do 7276 IFS=$as_save_IFS 7277 test -z "$as_dir" && as_dir=. 7278 for ac_prog in dd; do 7279 for ac_exec_ext in '' $ac_executable_extensions; do 7280 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7281 as_fn_executable_p "$ac_path_lt_DD" || continue 7282if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7283 cmp -s conftest.i conftest.out \ 7284 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7285fi 7286 $ac_path_lt_DD_found && break 3 7287 done 7288 done 7289 done 7290IFS=$as_save_IFS 7291 if test -z "$ac_cv_path_lt_DD"; then 7292 : 7293 fi 7294else 7295 ac_cv_path_lt_DD=$lt_DD 7296fi 7297 7298rm -f conftest.i conftest2.i conftest.out 7299fi 7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7301$as_echo "$ac_cv_path_lt_DD" >&6; } 7302 7303 7304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7305$as_echo_n "checking how to truncate binary pipes... " >&6; } 7306if ${lt_cv_truncate_bin+:} false; then : 7307 $as_echo_n "(cached) " >&6 7308else 7309 printf 0123456789abcdef0123456789abcdef >conftest.i 7310cat conftest.i conftest.i >conftest2.i 7311lt_cv_truncate_bin= 7312if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7313 cmp -s conftest.i conftest.out \ 7314 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7315fi 7316rm -f conftest.i conftest2.i conftest.out 7317test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7318fi 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7320$as_echo "$lt_cv_truncate_bin" >&6; } 7321 7322 7323 7324 7325 7326 7327 7328# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7329func_cc_basename () 7330{ 7331 for cc_temp in $*""; do 7332 case $cc_temp in 7333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7335 \-*) ;; 7336 *) break;; 7337 esac 7338 done 7339 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7340} 7341 7342# Check whether --enable-libtool-lock was given. 7343if test "${enable_libtool_lock+set}" = set; then : 7344 enableval=$enable_libtool_lock; 7345fi 7346 7347test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7348 7349# Some flags need to be propagated to the compiler or linker for good 7350# libtool support. 7351case $host in 7352ia64-*-hpux*) 7353 # Find out what ABI is being produced by ac_compile, and set mode 7354 # options accordingly. 7355 echo 'int i;' > conftest.$ac_ext 7356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7357 (eval $ac_compile) 2>&5 7358 ac_status=$? 7359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7360 test $ac_status = 0; }; then 7361 case `/usr/bin/file conftest.$ac_objext` in 7362 *ELF-32*) 7363 HPUX_IA64_MODE=32 7364 ;; 7365 *ELF-64*) 7366 HPUX_IA64_MODE=64 7367 ;; 7368 esac 7369 fi 7370 rm -rf conftest* 7371 ;; 7372*-*-irix6*) 7373 # Find out what ABI is being produced by ac_compile, and set linker 7374 # options accordingly. 7375 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7377 (eval $ac_compile) 2>&5 7378 ac_status=$? 7379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7380 test $ac_status = 0; }; then 7381 if test yes = "$lt_cv_prog_gnu_ld"; then 7382 case `/usr/bin/file conftest.$ac_objext` in 7383 *32-bit*) 7384 LD="${LD-ld} -melf32bsmip" 7385 ;; 7386 *N32*) 7387 LD="${LD-ld} -melf32bmipn32" 7388 ;; 7389 *64-bit*) 7390 LD="${LD-ld} -melf64bmip" 7391 ;; 7392 esac 7393 else 7394 case `/usr/bin/file conftest.$ac_objext` in 7395 *32-bit*) 7396 LD="${LD-ld} -32" 7397 ;; 7398 *N32*) 7399 LD="${LD-ld} -n32" 7400 ;; 7401 *64-bit*) 7402 LD="${LD-ld} -64" 7403 ;; 7404 esac 7405 fi 7406 fi 7407 rm -rf conftest* 7408 ;; 7409 7410mips64*-*linux*) 7411 # Find out what ABI is being produced by ac_compile, and set linker 7412 # options accordingly. 7413 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7415 (eval $ac_compile) 2>&5 7416 ac_status=$? 7417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7418 test $ac_status = 0; }; then 7419 emul=elf 7420 case `/usr/bin/file conftest.$ac_objext` in 7421 *32-bit*) 7422 emul="${emul}32" 7423 ;; 7424 *64-bit*) 7425 emul="${emul}64" 7426 ;; 7427 esac 7428 case `/usr/bin/file conftest.$ac_objext` in 7429 *MSB*) 7430 emul="${emul}btsmip" 7431 ;; 7432 *LSB*) 7433 emul="${emul}ltsmip" 7434 ;; 7435 esac 7436 case `/usr/bin/file conftest.$ac_objext` in 7437 *N32*) 7438 emul="${emul}n32" 7439 ;; 7440 esac 7441 LD="${LD-ld} -m $emul" 7442 fi 7443 rm -rf conftest* 7444 ;; 7445 7446x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7447s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7448 # Find out what ABI is being produced by ac_compile, and set linker 7449 # options accordingly. Note that the listed cases only cover the 7450 # situations where additional linker options are needed (such as when 7451 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7452 # vice versa); the common cases where no linker options are needed do 7453 # not appear in the list. 7454 echo 'int i;' > conftest.$ac_ext 7455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7456 (eval $ac_compile) 2>&5 7457 ac_status=$? 7458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7459 test $ac_status = 0; }; then 7460 case `/usr/bin/file conftest.o` in 7461 *32-bit*) 7462 case $host in 7463 x86_64-*kfreebsd*-gnu) 7464 LD="${LD-ld} -m elf_i386_fbsd" 7465 ;; 7466 x86_64-*linux*) 7467 case `/usr/bin/file conftest.o` in 7468 *x86-64*) 7469 LD="${LD-ld} -m elf32_x86_64" 7470 ;; 7471 *) 7472 LD="${LD-ld} -m elf_i386" 7473 ;; 7474 esac 7475 ;; 7476 powerpc64le-*linux*) 7477 LD="${LD-ld} -m elf32lppclinux" 7478 ;; 7479 powerpc64-*linux*) 7480 LD="${LD-ld} -m elf32ppclinux" 7481 ;; 7482 s390x-*linux*) 7483 LD="${LD-ld} -m elf_s390" 7484 ;; 7485 sparc64-*linux*) 7486 LD="${LD-ld} -m elf32_sparc" 7487 ;; 7488 esac 7489 ;; 7490 *64-bit*) 7491 case $host in 7492 x86_64-*kfreebsd*-gnu) 7493 LD="${LD-ld} -m elf_x86_64_fbsd" 7494 ;; 7495 x86_64-*linux*) 7496 LD="${LD-ld} -m elf_x86_64" 7497 ;; 7498 powerpcle-*linux*) 7499 LD="${LD-ld} -m elf64lppc" 7500 ;; 7501 powerpc-*linux*) 7502 LD="${LD-ld} -m elf64ppc" 7503 ;; 7504 s390*-*linux*|s390*-*tpf*) 7505 LD="${LD-ld} -m elf64_s390" 7506 ;; 7507 sparc*-*linux*) 7508 LD="${LD-ld} -m elf64_sparc" 7509 ;; 7510 esac 7511 ;; 7512 esac 7513 fi 7514 rm -rf conftest* 7515 ;; 7516 7517*-*-sco3.2v5*) 7518 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7519 SAVE_CFLAGS=$CFLAGS 7520 CFLAGS="$CFLAGS -belf" 7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7522$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7523if ${lt_cv_cc_needs_belf+:} false; then : 7524 $as_echo_n "(cached) " >&6 7525else 7526 ac_ext=c 7527ac_cpp='$CPP $CPPFLAGS' 7528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7530ac_compiler_gnu=$ac_cv_c_compiler_gnu 7531 7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7533/* end confdefs.h. */ 7534 7535int 7536main () 7537{ 7538 7539 ; 7540 return 0; 7541} 7542_ACEOF 7543if ac_fn_c_try_link "$LINENO"; then : 7544 lt_cv_cc_needs_belf=yes 7545else 7546 lt_cv_cc_needs_belf=no 7547fi 7548rm -f core conftest.err conftest.$ac_objext \ 7549 conftest$ac_exeext conftest.$ac_ext 7550 ac_ext=c 7551ac_cpp='$CPP $CPPFLAGS' 7552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7554ac_compiler_gnu=$ac_cv_c_compiler_gnu 7555 7556fi 7557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7558$as_echo "$lt_cv_cc_needs_belf" >&6; } 7559 if test yes != "$lt_cv_cc_needs_belf"; then 7560 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7561 CFLAGS=$SAVE_CFLAGS 7562 fi 7563 ;; 7564*-*solaris*) 7565 # Find out what ABI is being produced by ac_compile, and set linker 7566 # options accordingly. 7567 echo 'int i;' > conftest.$ac_ext 7568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7569 (eval $ac_compile) 2>&5 7570 ac_status=$? 7571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7572 test $ac_status = 0; }; then 7573 case `/usr/bin/file conftest.o` in 7574 *64-bit*) 7575 case $lt_cv_prog_gnu_ld in 7576 yes*) 7577 case $host in 7578 i?86-*-solaris*|x86_64-*-solaris*) 7579 LD="${LD-ld} -m elf_x86_64" 7580 ;; 7581 sparc*-*-solaris*) 7582 LD="${LD-ld} -m elf64_sparc" 7583 ;; 7584 esac 7585 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7586 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7587 LD=${LD-ld}_sol2 7588 fi 7589 ;; 7590 *) 7591 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7592 LD="${LD-ld} -64" 7593 fi 7594 ;; 7595 esac 7596 ;; 7597 esac 7598 fi 7599 rm -rf conftest* 7600 ;; 7601esac 7602 7603need_locks=$enable_libtool_lock 7604 7605if test -n "$ac_tool_prefix"; then 7606 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7607set dummy ${ac_tool_prefix}mt; ac_word=$2 7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7609$as_echo_n "checking for $ac_word... " >&6; } 7610if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7611 $as_echo_n "(cached) " >&6 7612else 7613 if test -n "$MANIFEST_TOOL"; then 7614 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7615else 7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7617for as_dir in $PATH 7618do 7619 IFS=$as_save_IFS 7620 test -z "$as_dir" && as_dir=. 7621 for ac_exec_ext in '' $ac_executable_extensions; do 7622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7623 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7625 break 2 7626 fi 7627done 7628 done 7629IFS=$as_save_IFS 7630 7631fi 7632fi 7633MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7634if test -n "$MANIFEST_TOOL"; then 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7636$as_echo "$MANIFEST_TOOL" >&6; } 7637else 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7639$as_echo "no" >&6; } 7640fi 7641 7642 7643fi 7644if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7645 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7646 # Extract the first word of "mt", so it can be a program name with args. 7647set dummy mt; ac_word=$2 7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7649$as_echo_n "checking for $ac_word... " >&6; } 7650if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7651 $as_echo_n "(cached) " >&6 7652else 7653 if test -n "$ac_ct_MANIFEST_TOOL"; then 7654 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7655else 7656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7657for as_dir in $PATH 7658do 7659 IFS=$as_save_IFS 7660 test -z "$as_dir" && as_dir=. 7661 for ac_exec_ext in '' $ac_executable_extensions; do 7662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7663 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7665 break 2 7666 fi 7667done 7668 done 7669IFS=$as_save_IFS 7670 7671fi 7672fi 7673ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7674if test -n "$ac_ct_MANIFEST_TOOL"; then 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7676$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7677else 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7679$as_echo "no" >&6; } 7680fi 7681 7682 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7683 MANIFEST_TOOL=":" 7684 else 7685 case $cross_compiling:$ac_tool_warned in 7686yes:) 7687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7689ac_tool_warned=yes ;; 7690esac 7691 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7692 fi 7693else 7694 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7695fi 7696 7697test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7699$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7700if ${lt_cv_path_mainfest_tool+:} false; then : 7701 $as_echo_n "(cached) " >&6 7702else 7703 lt_cv_path_mainfest_tool=no 7704 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7705 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7706 cat conftest.err >&5 7707 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7708 lt_cv_path_mainfest_tool=yes 7709 fi 7710 rm -f conftest* 7711fi 7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7713$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7714if test yes != "$lt_cv_path_mainfest_tool"; then 7715 MANIFEST_TOOL=: 7716fi 7717 7718 7719 7720 7721 7722 7723 case $host_os in 7724 rhapsody* | darwin*) 7725 if test -n "$ac_tool_prefix"; then 7726 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7727set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7729$as_echo_n "checking for $ac_word... " >&6; } 7730if ${ac_cv_prog_DSYMUTIL+:} false; then : 7731 $as_echo_n "(cached) " >&6 7732else 7733 if test -n "$DSYMUTIL"; then 7734 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7735else 7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7737for as_dir in $PATH 7738do 7739 IFS=$as_save_IFS 7740 test -z "$as_dir" && as_dir=. 7741 for ac_exec_ext in '' $ac_executable_extensions; do 7742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7743 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7745 break 2 7746 fi 7747done 7748 done 7749IFS=$as_save_IFS 7750 7751fi 7752fi 7753DSYMUTIL=$ac_cv_prog_DSYMUTIL 7754if test -n "$DSYMUTIL"; then 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7756$as_echo "$DSYMUTIL" >&6; } 7757else 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7759$as_echo "no" >&6; } 7760fi 7761 7762 7763fi 7764if test -z "$ac_cv_prog_DSYMUTIL"; then 7765 ac_ct_DSYMUTIL=$DSYMUTIL 7766 # Extract the first word of "dsymutil", so it can be a program name with args. 7767set dummy dsymutil; ac_word=$2 7768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7769$as_echo_n "checking for $ac_word... " >&6; } 7770if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7771 $as_echo_n "(cached) " >&6 7772else 7773 if test -n "$ac_ct_DSYMUTIL"; then 7774 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7775else 7776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7777for as_dir in $PATH 7778do 7779 IFS=$as_save_IFS 7780 test -z "$as_dir" && as_dir=. 7781 for ac_exec_ext in '' $ac_executable_extensions; do 7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7783 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7785 break 2 7786 fi 7787done 7788 done 7789IFS=$as_save_IFS 7790 7791fi 7792fi 7793ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7794if test -n "$ac_ct_DSYMUTIL"; then 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7796$as_echo "$ac_ct_DSYMUTIL" >&6; } 7797else 7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7799$as_echo "no" >&6; } 7800fi 7801 7802 if test "x$ac_ct_DSYMUTIL" = x; then 7803 DSYMUTIL=":" 7804 else 7805 case $cross_compiling:$ac_tool_warned in 7806yes:) 7807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7809ac_tool_warned=yes ;; 7810esac 7811 DSYMUTIL=$ac_ct_DSYMUTIL 7812 fi 7813else 7814 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7815fi 7816 7817 if test -n "$ac_tool_prefix"; then 7818 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7819set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7821$as_echo_n "checking for $ac_word... " >&6; } 7822if ${ac_cv_prog_NMEDIT+:} false; then : 7823 $as_echo_n "(cached) " >&6 7824else 7825 if test -n "$NMEDIT"; then 7826 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7827else 7828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7829for as_dir in $PATH 7830do 7831 IFS=$as_save_IFS 7832 test -z "$as_dir" && as_dir=. 7833 for ac_exec_ext in '' $ac_executable_extensions; do 7834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7835 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7837 break 2 7838 fi 7839done 7840 done 7841IFS=$as_save_IFS 7842 7843fi 7844fi 7845NMEDIT=$ac_cv_prog_NMEDIT 7846if test -n "$NMEDIT"; then 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7848$as_echo "$NMEDIT" >&6; } 7849else 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7851$as_echo "no" >&6; } 7852fi 7853 7854 7855fi 7856if test -z "$ac_cv_prog_NMEDIT"; then 7857 ac_ct_NMEDIT=$NMEDIT 7858 # Extract the first word of "nmedit", so it can be a program name with args. 7859set dummy nmedit; ac_word=$2 7860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7861$as_echo_n "checking for $ac_word... " >&6; } 7862if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7863 $as_echo_n "(cached) " >&6 7864else 7865 if test -n "$ac_ct_NMEDIT"; then 7866 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7867else 7868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7869for as_dir in $PATH 7870do 7871 IFS=$as_save_IFS 7872 test -z "$as_dir" && as_dir=. 7873 for ac_exec_ext in '' $ac_executable_extensions; do 7874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7875 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7877 break 2 7878 fi 7879done 7880 done 7881IFS=$as_save_IFS 7882 7883fi 7884fi 7885ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7886if test -n "$ac_ct_NMEDIT"; then 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7888$as_echo "$ac_ct_NMEDIT" >&6; } 7889else 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7891$as_echo "no" >&6; } 7892fi 7893 7894 if test "x$ac_ct_NMEDIT" = x; then 7895 NMEDIT=":" 7896 else 7897 case $cross_compiling:$ac_tool_warned in 7898yes:) 7899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7901ac_tool_warned=yes ;; 7902esac 7903 NMEDIT=$ac_ct_NMEDIT 7904 fi 7905else 7906 NMEDIT="$ac_cv_prog_NMEDIT" 7907fi 7908 7909 if test -n "$ac_tool_prefix"; then 7910 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7911set dummy ${ac_tool_prefix}lipo; ac_word=$2 7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7913$as_echo_n "checking for $ac_word... " >&6; } 7914if ${ac_cv_prog_LIPO+:} false; then : 7915 $as_echo_n "(cached) " >&6 7916else 7917 if test -n "$LIPO"; then 7918 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7919else 7920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7921for as_dir in $PATH 7922do 7923 IFS=$as_save_IFS 7924 test -z "$as_dir" && as_dir=. 7925 for ac_exec_ext in '' $ac_executable_extensions; do 7926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7927 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7929 break 2 7930 fi 7931done 7932 done 7933IFS=$as_save_IFS 7934 7935fi 7936fi 7937LIPO=$ac_cv_prog_LIPO 7938if test -n "$LIPO"; then 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7940$as_echo "$LIPO" >&6; } 7941else 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7943$as_echo "no" >&6; } 7944fi 7945 7946 7947fi 7948if test -z "$ac_cv_prog_LIPO"; then 7949 ac_ct_LIPO=$LIPO 7950 # Extract the first word of "lipo", so it can be a program name with args. 7951set dummy lipo; ac_word=$2 7952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7953$as_echo_n "checking for $ac_word... " >&6; } 7954if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7955 $as_echo_n "(cached) " >&6 7956else 7957 if test -n "$ac_ct_LIPO"; then 7958 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7959else 7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7961for as_dir in $PATH 7962do 7963 IFS=$as_save_IFS 7964 test -z "$as_dir" && as_dir=. 7965 for ac_exec_ext in '' $ac_executable_extensions; do 7966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7967 ac_cv_prog_ac_ct_LIPO="lipo" 7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7969 break 2 7970 fi 7971done 7972 done 7973IFS=$as_save_IFS 7974 7975fi 7976fi 7977ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7978if test -n "$ac_ct_LIPO"; then 7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7980$as_echo "$ac_ct_LIPO" >&6; } 7981else 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7983$as_echo "no" >&6; } 7984fi 7985 7986 if test "x$ac_ct_LIPO" = x; then 7987 LIPO=":" 7988 else 7989 case $cross_compiling:$ac_tool_warned in 7990yes:) 7991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7993ac_tool_warned=yes ;; 7994esac 7995 LIPO=$ac_ct_LIPO 7996 fi 7997else 7998 LIPO="$ac_cv_prog_LIPO" 7999fi 8000 8001 if test -n "$ac_tool_prefix"; then 8002 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8003set dummy ${ac_tool_prefix}otool; ac_word=$2 8004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8005$as_echo_n "checking for $ac_word... " >&6; } 8006if ${ac_cv_prog_OTOOL+:} false; then : 8007 $as_echo_n "(cached) " >&6 8008else 8009 if test -n "$OTOOL"; then 8010 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8011else 8012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8013for as_dir in $PATH 8014do 8015 IFS=$as_save_IFS 8016 test -z "$as_dir" && as_dir=. 8017 for ac_exec_ext in '' $ac_executable_extensions; do 8018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8019 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8021 break 2 8022 fi 8023done 8024 done 8025IFS=$as_save_IFS 8026 8027fi 8028fi 8029OTOOL=$ac_cv_prog_OTOOL 8030if test -n "$OTOOL"; then 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8032$as_echo "$OTOOL" >&6; } 8033else 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8035$as_echo "no" >&6; } 8036fi 8037 8038 8039fi 8040if test -z "$ac_cv_prog_OTOOL"; then 8041 ac_ct_OTOOL=$OTOOL 8042 # Extract the first word of "otool", so it can be a program name with args. 8043set dummy otool; ac_word=$2 8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8045$as_echo_n "checking for $ac_word... " >&6; } 8046if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8047 $as_echo_n "(cached) " >&6 8048else 8049 if test -n "$ac_ct_OTOOL"; then 8050 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8051else 8052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8053for as_dir in $PATH 8054do 8055 IFS=$as_save_IFS 8056 test -z "$as_dir" && as_dir=. 8057 for ac_exec_ext in '' $ac_executable_extensions; do 8058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8059 ac_cv_prog_ac_ct_OTOOL="otool" 8060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8061 break 2 8062 fi 8063done 8064 done 8065IFS=$as_save_IFS 8066 8067fi 8068fi 8069ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8070if test -n "$ac_ct_OTOOL"; then 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8072$as_echo "$ac_ct_OTOOL" >&6; } 8073else 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8075$as_echo "no" >&6; } 8076fi 8077 8078 if test "x$ac_ct_OTOOL" = x; then 8079 OTOOL=":" 8080 else 8081 case $cross_compiling:$ac_tool_warned in 8082yes:) 8083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8085ac_tool_warned=yes ;; 8086esac 8087 OTOOL=$ac_ct_OTOOL 8088 fi 8089else 8090 OTOOL="$ac_cv_prog_OTOOL" 8091fi 8092 8093 if test -n "$ac_tool_prefix"; then 8094 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8095set dummy ${ac_tool_prefix}otool64; ac_word=$2 8096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8097$as_echo_n "checking for $ac_word... " >&6; } 8098if ${ac_cv_prog_OTOOL64+:} false; then : 8099 $as_echo_n "(cached) " >&6 8100else 8101 if test -n "$OTOOL64"; then 8102 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8103else 8104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8105for as_dir in $PATH 8106do 8107 IFS=$as_save_IFS 8108 test -z "$as_dir" && as_dir=. 8109 for ac_exec_ext in '' $ac_executable_extensions; do 8110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8111 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8113 break 2 8114 fi 8115done 8116 done 8117IFS=$as_save_IFS 8118 8119fi 8120fi 8121OTOOL64=$ac_cv_prog_OTOOL64 8122if test -n "$OTOOL64"; then 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8124$as_echo "$OTOOL64" >&6; } 8125else 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8127$as_echo "no" >&6; } 8128fi 8129 8130 8131fi 8132if test -z "$ac_cv_prog_OTOOL64"; then 8133 ac_ct_OTOOL64=$OTOOL64 8134 # Extract the first word of "otool64", so it can be a program name with args. 8135set dummy otool64; ac_word=$2 8136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8137$as_echo_n "checking for $ac_word... " >&6; } 8138if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8139 $as_echo_n "(cached) " >&6 8140else 8141 if test -n "$ac_ct_OTOOL64"; then 8142 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8143else 8144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8145for as_dir in $PATH 8146do 8147 IFS=$as_save_IFS 8148 test -z "$as_dir" && as_dir=. 8149 for ac_exec_ext in '' $ac_executable_extensions; do 8150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8151 ac_cv_prog_ac_ct_OTOOL64="otool64" 8152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8153 break 2 8154 fi 8155done 8156 done 8157IFS=$as_save_IFS 8158 8159fi 8160fi 8161ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8162if test -n "$ac_ct_OTOOL64"; then 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8164$as_echo "$ac_ct_OTOOL64" >&6; } 8165else 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8167$as_echo "no" >&6; } 8168fi 8169 8170 if test "x$ac_ct_OTOOL64" = x; then 8171 OTOOL64=":" 8172 else 8173 case $cross_compiling:$ac_tool_warned in 8174yes:) 8175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8177ac_tool_warned=yes ;; 8178esac 8179 OTOOL64=$ac_ct_OTOOL64 8180 fi 8181else 8182 OTOOL64="$ac_cv_prog_OTOOL64" 8183fi 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8212$as_echo_n "checking for -single_module linker flag... " >&6; } 8213if ${lt_cv_apple_cc_single_mod+:} false; then : 8214 $as_echo_n "(cached) " >&6 8215else 8216 lt_cv_apple_cc_single_mod=no 8217 if test -z "$LT_MULTI_MODULE"; then 8218 # By default we will add the -single_module flag. You can override 8219 # by either setting the environment variable LT_MULTI_MODULE 8220 # non-empty at configure time, or by adding -multi_module to the 8221 # link flags. 8222 rm -rf libconftest.dylib* 8223 echo "int foo(void){return 1;}" > conftest.c 8224 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8225-dynamiclib -Wl,-single_module conftest.c" >&5 8226 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8227 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8228 _lt_result=$? 8229 # If there is a non-empty error log, and "single_module" 8230 # appears in it, assume the flag caused a linker warning 8231 if test -s conftest.err && $GREP single_module conftest.err; then 8232 cat conftest.err >&5 8233 # Otherwise, if the output was created with a 0 exit code from 8234 # the compiler, it worked. 8235 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8236 lt_cv_apple_cc_single_mod=yes 8237 else 8238 cat conftest.err >&5 8239 fi 8240 rm -rf libconftest.dylib* 8241 rm -f conftest.* 8242 fi 8243fi 8244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8245$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8246 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8248$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8249if ${lt_cv_ld_exported_symbols_list+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 lt_cv_ld_exported_symbols_list=no 8253 save_LDFLAGS=$LDFLAGS 8254 echo "_main" > conftest.sym 8255 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8257/* end confdefs.h. */ 8258 8259int 8260main () 8261{ 8262 8263 ; 8264 return 0; 8265} 8266_ACEOF 8267if ac_fn_c_try_link "$LINENO"; then : 8268 lt_cv_ld_exported_symbols_list=yes 8269else 8270 lt_cv_ld_exported_symbols_list=no 8271fi 8272rm -f core conftest.err conftest.$ac_objext \ 8273 conftest$ac_exeext conftest.$ac_ext 8274 LDFLAGS=$save_LDFLAGS 8275 8276fi 8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8278$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8279 8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8281$as_echo_n "checking for -force_load linker flag... " >&6; } 8282if ${lt_cv_ld_force_load+:} false; then : 8283 $as_echo_n "(cached) " >&6 8284else 8285 lt_cv_ld_force_load=no 8286 cat > conftest.c << _LT_EOF 8287int forced_loaded() { return 2;} 8288_LT_EOF 8289 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8290 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8291 echo "$AR cru libconftest.a conftest.o" >&5 8292 $AR cru libconftest.a conftest.o 2>&5 8293 echo "$RANLIB libconftest.a" >&5 8294 $RANLIB libconftest.a 2>&5 8295 cat > conftest.c << _LT_EOF 8296int main() { return 0;} 8297_LT_EOF 8298 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8299 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8300 _lt_result=$? 8301 if test -s conftest.err && $GREP force_load conftest.err; then 8302 cat conftest.err >&5 8303 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8304 lt_cv_ld_force_load=yes 8305 else 8306 cat conftest.err >&5 8307 fi 8308 rm -f conftest.err libconftest.a conftest conftest.c 8309 rm -rf conftest.dSYM 8310 8311fi 8312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8313$as_echo "$lt_cv_ld_force_load" >&6; } 8314 case $host_os in 8315 rhapsody* | darwin1.[012]) 8316 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8317 darwin1.*) 8318 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8319 darwin*) # darwin 5.x on 8320 # if running on 10.5 or later, the deployment target defaults 8321 # to the OS version, if on x86, and 10.4, the deployment 8322 # target defaults to 10.4. Don't you love it? 8323 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8324 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8325 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8326 10.[012][,.]*) 8327 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8328 10.*) 8329 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8330 esac 8331 ;; 8332 esac 8333 if test yes = "$lt_cv_apple_cc_single_mod"; then 8334 _lt_dar_single_mod='$single_module' 8335 fi 8336 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8337 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8338 else 8339 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8340 fi 8341 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8342 _lt_dsymutil='~$DSYMUTIL $lib || :' 8343 else 8344 _lt_dsymutil= 8345 fi 8346 ;; 8347 esac 8348 8349# func_munge_path_list VARIABLE PATH 8350# ----------------------------------- 8351# VARIABLE is name of variable containing _space_ separated list of 8352# directories to be munged by the contents of PATH, which is string 8353# having a format: 8354# "DIR[:DIR]:" 8355# string "DIR[ DIR]" will be prepended to VARIABLE 8356# ":DIR[:DIR]" 8357# string "DIR[ DIR]" will be appended to VARIABLE 8358# "DIRP[:DIRP]::[DIRA:]DIRA" 8359# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8360# "DIRA[ DIRA]" will be appended to VARIABLE 8361# "DIR[:DIR]" 8362# VARIABLE will be replaced by "DIR[ DIR]" 8363func_munge_path_list () 8364{ 8365 case x$2 in 8366 x) 8367 ;; 8368 *:) 8369 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8370 ;; 8371 x:*) 8372 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8373 ;; 8374 *::*) 8375 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8376 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8377 ;; 8378 *) 8379 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8380 ;; 8381 esac 8382} 8383 8384ac_ext=c 8385ac_cpp='$CPP $CPPFLAGS' 8386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8388ac_compiler_gnu=$ac_cv_c_compiler_gnu 8389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8390$as_echo_n "checking how to run the C preprocessor... " >&6; } 8391# On Suns, sometimes $CPP names a directory. 8392if test -n "$CPP" && test -d "$CPP"; then 8393 CPP= 8394fi 8395if test -z "$CPP"; then 8396 if ${ac_cv_prog_CPP+:} false; then : 8397 $as_echo_n "(cached) " >&6 8398else 8399 # Double quotes because CPP needs to be expanded 8400 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8401 do 8402 ac_preproc_ok=false 8403for ac_c_preproc_warn_flag in '' yes 8404do 8405 # Use a header file that comes with gcc, so configuring glibc 8406 # with a fresh cross-compiler works. 8407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8408 # <limits.h> exists even on freestanding compilers. 8409 # On the NeXT, cc -E runs the code through the compiler's parser, 8410 # not just through cpp. "Syntax error" is here to catch this case. 8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8412/* end confdefs.h. */ 8413#ifdef __STDC__ 8414# include <limits.h> 8415#else 8416# include <assert.h> 8417#endif 8418 Syntax error 8419_ACEOF 8420if ac_fn_c_try_cpp "$LINENO"; then : 8421 8422else 8423 # Broken: fails on valid input. 8424continue 8425fi 8426rm -f conftest.err conftest.i conftest.$ac_ext 8427 8428 # OK, works on sane cases. Now check whether nonexistent headers 8429 # can be detected and how. 8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8431/* end confdefs.h. */ 8432#include <ac_nonexistent.h> 8433_ACEOF 8434if ac_fn_c_try_cpp "$LINENO"; then : 8435 # Broken: success on invalid input. 8436continue 8437else 8438 # Passes both tests. 8439ac_preproc_ok=: 8440break 8441fi 8442rm -f conftest.err conftest.i conftest.$ac_ext 8443 8444done 8445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8446rm -f conftest.i conftest.err conftest.$ac_ext 8447if $ac_preproc_ok; then : 8448 break 8449fi 8450 8451 done 8452 ac_cv_prog_CPP=$CPP 8453 8454fi 8455 CPP=$ac_cv_prog_CPP 8456else 8457 ac_cv_prog_CPP=$CPP 8458fi 8459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8460$as_echo "$CPP" >&6; } 8461ac_preproc_ok=false 8462for ac_c_preproc_warn_flag in '' yes 8463do 8464 # Use a header file that comes with gcc, so configuring glibc 8465 # with a fresh cross-compiler works. 8466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8467 # <limits.h> exists even on freestanding compilers. 8468 # On the NeXT, cc -E runs the code through the compiler's parser, 8469 # not just through cpp. "Syntax error" is here to catch this case. 8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8471/* end confdefs.h. */ 8472#ifdef __STDC__ 8473# include <limits.h> 8474#else 8475# include <assert.h> 8476#endif 8477 Syntax error 8478_ACEOF 8479if ac_fn_c_try_cpp "$LINENO"; then : 8480 8481else 8482 # Broken: fails on valid input. 8483continue 8484fi 8485rm -f conftest.err conftest.i conftest.$ac_ext 8486 8487 # OK, works on sane cases. Now check whether nonexistent headers 8488 # can be detected and how. 8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8490/* end confdefs.h. */ 8491#include <ac_nonexistent.h> 8492_ACEOF 8493if ac_fn_c_try_cpp "$LINENO"; then : 8494 # Broken: success on invalid input. 8495continue 8496else 8497 # Passes both tests. 8498ac_preproc_ok=: 8499break 8500fi 8501rm -f conftest.err conftest.i conftest.$ac_ext 8502 8503done 8504# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8505rm -f conftest.i conftest.err conftest.$ac_ext 8506if $ac_preproc_ok; then : 8507 8508else 8509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8511as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8512See \`config.log' for more details" "$LINENO" 5; } 8513fi 8514 8515ac_ext=c 8516ac_cpp='$CPP $CPPFLAGS' 8517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8519ac_compiler_gnu=$ac_cv_c_compiler_gnu 8520 8521 8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8523$as_echo_n "checking for ANSI C header files... " >&6; } 8524if ${ac_cv_header_stdc+:} false; then : 8525 $as_echo_n "(cached) " >&6 8526else 8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8528/* end confdefs.h. */ 8529#include <stdlib.h> 8530#include <stdarg.h> 8531#include <string.h> 8532#include <float.h> 8533 8534int 8535main () 8536{ 8537 8538 ; 8539 return 0; 8540} 8541_ACEOF 8542if ac_fn_c_try_compile "$LINENO"; then : 8543 ac_cv_header_stdc=yes 8544else 8545 ac_cv_header_stdc=no 8546fi 8547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8548 8549if test $ac_cv_header_stdc = yes; then 8550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8552/* end confdefs.h. */ 8553#include <string.h> 8554 8555_ACEOF 8556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8557 $EGREP "memchr" >/dev/null 2>&1; then : 8558 8559else 8560 ac_cv_header_stdc=no 8561fi 8562rm -f conftest* 8563 8564fi 8565 8566if test $ac_cv_header_stdc = yes; then 8567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8569/* end confdefs.h. */ 8570#include <stdlib.h> 8571 8572_ACEOF 8573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8574 $EGREP "free" >/dev/null 2>&1; then : 8575 8576else 8577 ac_cv_header_stdc=no 8578fi 8579rm -f conftest* 8580 8581fi 8582 8583if test $ac_cv_header_stdc = yes; then 8584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8585 if test "$cross_compiling" = yes; then : 8586 : 8587else 8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8589/* end confdefs.h. */ 8590#include <ctype.h> 8591#include <stdlib.h> 8592#if ((' ' & 0x0FF) == 0x020) 8593# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8594# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8595#else 8596# define ISLOWER(c) \ 8597 (('a' <= (c) && (c) <= 'i') \ 8598 || ('j' <= (c) && (c) <= 'r') \ 8599 || ('s' <= (c) && (c) <= 'z')) 8600# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8601#endif 8602 8603#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8604int 8605main () 8606{ 8607 int i; 8608 for (i = 0; i < 256; i++) 8609 if (XOR (islower (i), ISLOWER (i)) 8610 || toupper (i) != TOUPPER (i)) 8611 return 2; 8612 return 0; 8613} 8614_ACEOF 8615if ac_fn_c_try_run "$LINENO"; then : 8616 8617else 8618 ac_cv_header_stdc=no 8619fi 8620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8621 conftest.$ac_objext conftest.beam conftest.$ac_ext 8622fi 8623 8624fi 8625fi 8626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8627$as_echo "$ac_cv_header_stdc" >&6; } 8628if test $ac_cv_header_stdc = yes; then 8629 8630$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8631 8632fi 8633 8634# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8635for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8636 inttypes.h stdint.h unistd.h 8637do : 8638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8639ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8640" 8641if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8642 cat >>confdefs.h <<_ACEOF 8643#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8644_ACEOF 8645 8646fi 8647 8648done 8649 8650 8651for ac_header in dlfcn.h 8652do : 8653 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8654" 8655if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8656 cat >>confdefs.h <<_ACEOF 8657#define HAVE_DLFCN_H 1 8658_ACEOF 8659 8660fi 8661 8662done 8663 8664 8665 8666 8667func_stripname_cnf () 8668{ 8669 case $2 in 8670 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 8671 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 8672 esac 8673} # func_stripname_cnf 8674 8675 8676 8677 8678 8679# Set options 8680 8681 8682 8683 enable_dlopen=no 8684 8685 8686 enable_win32_dll=no 8687 8688 8689 # Check whether --enable-shared was given. 8690if test "${enable_shared+set}" = set; then : 8691 enableval=$enable_shared; p=${PACKAGE-default} 8692 case $enableval in 8693 yes) enable_shared=yes ;; 8694 no) enable_shared=no ;; 8695 *) 8696 enable_shared=no 8697 # Look at the argument we got. We use all the common list separators. 8698 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8699 for pkg in $enableval; do 8700 IFS=$lt_save_ifs 8701 if test "X$pkg" = "X$p"; then 8702 enable_shared=yes 8703 fi 8704 done 8705 IFS=$lt_save_ifs 8706 ;; 8707 esac 8708else 8709 enable_shared=yes 8710fi 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 # Check whether --enable-static was given. 8721if test "${enable_static+set}" = set; then : 8722 enableval=$enable_static; p=${PACKAGE-default} 8723 case $enableval in 8724 yes) enable_static=yes ;; 8725 no) enable_static=no ;; 8726 *) 8727 enable_static=no 8728 # Look at the argument we got. We use all the common list separators. 8729 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8730 for pkg in $enableval; do 8731 IFS=$lt_save_ifs 8732 if test "X$pkg" = "X$p"; then 8733 enable_static=yes 8734 fi 8735 done 8736 IFS=$lt_save_ifs 8737 ;; 8738 esac 8739else 8740 enable_static=yes 8741fi 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752# Check whether --with-pic was given. 8753if test "${with_pic+set}" = set; then : 8754 withval=$with_pic; lt_p=${PACKAGE-default} 8755 case $withval in 8756 yes|no) pic_mode=$withval ;; 8757 *) 8758 pic_mode=default 8759 # Look at the argument we got. We use all the common list separators. 8760 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8761 for lt_pkg in $withval; do 8762 IFS=$lt_save_ifs 8763 if test "X$lt_pkg" = "X$lt_p"; then 8764 pic_mode=yes 8765 fi 8766 done 8767 IFS=$lt_save_ifs 8768 ;; 8769 esac 8770else 8771 pic_mode=default 8772fi 8773 8774 8775 8776 8777 8778 8779 8780 8781 # Check whether --enable-fast-install was given. 8782if test "${enable_fast_install+set}" = set; then : 8783 enableval=$enable_fast_install; p=${PACKAGE-default} 8784 case $enableval in 8785 yes) enable_fast_install=yes ;; 8786 no) enable_fast_install=no ;; 8787 *) 8788 enable_fast_install=no 8789 # Look at the argument we got. We use all the common list separators. 8790 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8791 for pkg in $enableval; do 8792 IFS=$lt_save_ifs 8793 if test "X$pkg" = "X$p"; then 8794 enable_fast_install=yes 8795 fi 8796 done 8797 IFS=$lt_save_ifs 8798 ;; 8799 esac 8800else 8801 enable_fast_install=yes 8802fi 8803 8804 8805 8806 8807 8808 8809 8810 8811 shared_archive_member_spec= 8812case $host,$enable_shared in 8813power*-*-aix[5-9]*,yes) 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8815$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8816 8817# Check whether --with-aix-soname was given. 8818if test "${with_aix_soname+set}" = set; then : 8819 withval=$with_aix_soname; case $withval in 8820 aix|svr4|both) 8821 ;; 8822 *) 8823 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8824 ;; 8825 esac 8826 lt_cv_with_aix_soname=$with_aix_soname 8827else 8828 if ${lt_cv_with_aix_soname+:} false; then : 8829 $as_echo_n "(cached) " >&6 8830else 8831 lt_cv_with_aix_soname=aix 8832fi 8833 8834 with_aix_soname=$lt_cv_with_aix_soname 8835fi 8836 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8838$as_echo "$with_aix_soname" >&6; } 8839 if test aix != "$with_aix_soname"; then 8840 # For the AIX way of multilib, we name the shared archive member 8841 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8842 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8843 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8844 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8845 if test 64 = "${OBJECT_MODE-32}"; then 8846 shared_archive_member_spec=shr_64 8847 else 8848 shared_archive_member_spec=shr 8849 fi 8850 fi 8851 ;; 8852*) 8853 with_aix_soname=aix 8854 ;; 8855esac 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866# This can be used to rebuild libtool when needed 8867LIBTOOL_DEPS=$ltmain 8868 8869# Always use our own libtool. 8870LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901test -z "$LN_S" && LN_S="ln -s" 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916if test -n "${ZSH_VERSION+set}"; then 8917 setopt NO_GLOB_SUBST 8918fi 8919 8920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8921$as_echo_n "checking for objdir... " >&6; } 8922if ${lt_cv_objdir+:} false; then : 8923 $as_echo_n "(cached) " >&6 8924else 8925 rm -f .libs 2>/dev/null 8926mkdir .libs 2>/dev/null 8927if test -d .libs; then 8928 lt_cv_objdir=.libs 8929else 8930 # MS-DOS does not allow filenames that begin with a dot. 8931 lt_cv_objdir=_libs 8932fi 8933rmdir .libs 2>/dev/null 8934fi 8935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8936$as_echo "$lt_cv_objdir" >&6; } 8937objdir=$lt_cv_objdir 8938 8939 8940 8941 8942 8943cat >>confdefs.h <<_ACEOF 8944#define LT_OBJDIR "$lt_cv_objdir/" 8945_ACEOF 8946 8947 8948 8949 8950case $host_os in 8951aix3*) 8952 # AIX sometimes has problems with the GCC collect2 program. For some 8953 # reason, if we set the COLLECT_NAMES environment variable, the problems 8954 # vanish in a puff of smoke. 8955 if test set != "${COLLECT_NAMES+set}"; then 8956 COLLECT_NAMES= 8957 export COLLECT_NAMES 8958 fi 8959 ;; 8960esac 8961 8962# Global variables: 8963ofile=libtool 8964can_build_shared=yes 8965 8966# All known linkers require a '.a' archive for static linking (except MSVC, 8967# which needs '.lib'). 8968libext=a 8969 8970with_gnu_ld=$lt_cv_prog_gnu_ld 8971 8972old_CC=$CC 8973old_CFLAGS=$CFLAGS 8974 8975# Set sane defaults for various variables 8976test -z "$CC" && CC=cc 8977test -z "$LTCC" && LTCC=$CC 8978test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8979test -z "$LD" && LD=ld 8980test -z "$ac_objext" && ac_objext=o 8981 8982func_cc_basename $compiler 8983cc_basename=$func_cc_basename_result 8984 8985 8986# Only perform the check for file, if the check method requires it 8987test -z "$MAGIC_CMD" && MAGIC_CMD=file 8988case $deplibs_check_method in 8989file_magic*) 8990 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8992$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8993if ${lt_cv_path_MAGIC_CMD+:} false; then : 8994 $as_echo_n "(cached) " >&6 8995else 8996 case $MAGIC_CMD in 8997[\\/*] | ?:[\\/]*) 8998 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8999 ;; 9000*) 9001 lt_save_MAGIC_CMD=$MAGIC_CMD 9002 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9003 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9004 for ac_dir in $ac_dummy; do 9005 IFS=$lt_save_ifs 9006 test -z "$ac_dir" && ac_dir=. 9007 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9008 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9009 if test -n "$file_magic_test_file"; then 9010 case $deplibs_check_method in 9011 "file_magic "*) 9012 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9013 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9014 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9015 $EGREP "$file_magic_regex" > /dev/null; then 9016 : 9017 else 9018 cat <<_LT_EOF 1>&2 9019 9020*** Warning: the command libtool uses to detect shared libraries, 9021*** $file_magic_cmd, produces output that libtool cannot recognize. 9022*** The result is that libtool may fail to recognize shared libraries 9023*** as such. This will affect the creation of libtool libraries that 9024*** depend on shared libraries, but programs linked with such libtool 9025*** libraries will work regardless of this problem. Nevertheless, you 9026*** may want to report the problem to your system manager and/or to 9027*** bug-libtool@gnu.org 9028 9029_LT_EOF 9030 fi ;; 9031 esac 9032 fi 9033 break 9034 fi 9035 done 9036 IFS=$lt_save_ifs 9037 MAGIC_CMD=$lt_save_MAGIC_CMD 9038 ;; 9039esac 9040fi 9041 9042MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9043if test -n "$MAGIC_CMD"; then 9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9045$as_echo "$MAGIC_CMD" >&6; } 9046else 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9048$as_echo "no" >&6; } 9049fi 9050 9051 9052 9053 9054 9055if test -z "$lt_cv_path_MAGIC_CMD"; then 9056 if test -n "$ac_tool_prefix"; then 9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9058$as_echo_n "checking for file... " >&6; } 9059if ${lt_cv_path_MAGIC_CMD+:} false; then : 9060 $as_echo_n "(cached) " >&6 9061else 9062 case $MAGIC_CMD in 9063[\\/*] | ?:[\\/]*) 9064 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9065 ;; 9066*) 9067 lt_save_MAGIC_CMD=$MAGIC_CMD 9068 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9069 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9070 for ac_dir in $ac_dummy; do 9071 IFS=$lt_save_ifs 9072 test -z "$ac_dir" && ac_dir=. 9073 if test -f "$ac_dir/file"; then 9074 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9075 if test -n "$file_magic_test_file"; then 9076 case $deplibs_check_method in 9077 "file_magic "*) 9078 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9079 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9080 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9081 $EGREP "$file_magic_regex" > /dev/null; then 9082 : 9083 else 9084 cat <<_LT_EOF 1>&2 9085 9086*** Warning: the command libtool uses to detect shared libraries, 9087*** $file_magic_cmd, produces output that libtool cannot recognize. 9088*** The result is that libtool may fail to recognize shared libraries 9089*** as such. This will affect the creation of libtool libraries that 9090*** depend on shared libraries, but programs linked with such libtool 9091*** libraries will work regardless of this problem. Nevertheless, you 9092*** may want to report the problem to your system manager and/or to 9093*** bug-libtool@gnu.org 9094 9095_LT_EOF 9096 fi ;; 9097 esac 9098 fi 9099 break 9100 fi 9101 done 9102 IFS=$lt_save_ifs 9103 MAGIC_CMD=$lt_save_MAGIC_CMD 9104 ;; 9105esac 9106fi 9107 9108MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9109if test -n "$MAGIC_CMD"; then 9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9111$as_echo "$MAGIC_CMD" >&6; } 9112else 9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9114$as_echo "no" >&6; } 9115fi 9116 9117 9118 else 9119 MAGIC_CMD=: 9120 fi 9121fi 9122 9123 fi 9124 ;; 9125esac 9126 9127# Use C for the default configuration in the libtool script 9128 9129lt_save_CC=$CC 9130ac_ext=c 9131ac_cpp='$CPP $CPPFLAGS' 9132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9134ac_compiler_gnu=$ac_cv_c_compiler_gnu 9135 9136 9137# Source file extension for C test sources. 9138ac_ext=c 9139 9140# Object file extension for compiled C test sources. 9141objext=o 9142objext=$objext 9143 9144# Code to be used in simple compile tests 9145lt_simple_compile_test_code="int some_variable = 0;" 9146 9147# Code to be used in simple link tests 9148lt_simple_link_test_code='int main(){return(0);}' 9149 9150 9151 9152 9153 9154 9155 9156# If no C compiler was specified, use CC. 9157LTCC=${LTCC-"$CC"} 9158 9159# If no C compiler flags were specified, use CFLAGS. 9160LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9161 9162# Allow CC to be a program name with arguments. 9163compiler=$CC 9164 9165# Save the default compiler, since it gets overwritten when the other 9166# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9167compiler_DEFAULT=$CC 9168 9169# save warnings/boilerplate of simple test code 9170ac_outfile=conftest.$ac_objext 9171echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9172eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9173_lt_compiler_boilerplate=`cat conftest.err` 9174$RM conftest* 9175 9176ac_outfile=conftest.$ac_objext 9177echo "$lt_simple_link_test_code" >conftest.$ac_ext 9178eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9179_lt_linker_boilerplate=`cat conftest.err` 9180$RM -r conftest* 9181 9182 9183## CAVEAT EMPTOR: 9184## There is no encapsulation within the following macros, do not change 9185## the running order or otherwise move them around unless you know exactly 9186## what you are doing... 9187if test -n "$compiler"; then 9188 9189lt_prog_compiler_no_builtin_flag= 9190 9191if test yes = "$GCC"; then 9192 case $cc_basename in 9193 nvcc*) 9194 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9195 *) 9196 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9197 esac 9198 9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9200$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9201if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9202 $as_echo_n "(cached) " >&6 9203else 9204 lt_cv_prog_compiler_rtti_exceptions=no 9205 ac_outfile=conftest.$ac_objext 9206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9207 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9208 # Insert the option either (1) after the last *FLAGS variable, or 9209 # (2) before a word containing "conftest.", or (3) at the end. 9210 # Note that $ac_compile itself does not contain backslashes and begins 9211 # with a dollar sign (not a hyphen), so the echo should work correctly. 9212 # The option is referenced via a variable to avoid confusing sed. 9213 lt_compile=`echo "$ac_compile" | $SED \ 9214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9216 -e 's:$: $lt_compiler_flag:'` 9217 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9218 (eval "$lt_compile" 2>conftest.err) 9219 ac_status=$? 9220 cat conftest.err >&5 9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9222 if (exit $ac_status) && test -s "$ac_outfile"; then 9223 # The compiler can only warn and ignore the option if not recognized 9224 # So say no if there are warnings other than the usual output. 9225 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9227 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9228 lt_cv_prog_compiler_rtti_exceptions=yes 9229 fi 9230 fi 9231 $RM conftest* 9232 9233fi 9234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9235$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9236 9237if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9238 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9239else 9240 : 9241fi 9242 9243fi 9244 9245 9246 9247 9248 9249 9250 lt_prog_compiler_wl= 9251lt_prog_compiler_pic= 9252lt_prog_compiler_static= 9253 9254 9255 if test yes = "$GCC"; then 9256 lt_prog_compiler_wl='-Wl,' 9257 lt_prog_compiler_static='-static' 9258 9259 case $host_os in 9260 aix*) 9261 # All AIX code is PIC. 9262 if test ia64 = "$host_cpu"; then 9263 # AIX 5 now supports IA64 processor 9264 lt_prog_compiler_static='-Bstatic' 9265 fi 9266 lt_prog_compiler_pic='-fPIC' 9267 ;; 9268 9269 amigaos*) 9270 case $host_cpu in 9271 powerpc) 9272 # see comment about AmigaOS4 .so support 9273 lt_prog_compiler_pic='-fPIC' 9274 ;; 9275 m68k) 9276 # FIXME: we need at least 68020 code to build shared libraries, but 9277 # adding the '-m68020' flag to GCC prevents building anything better, 9278 # like '-m68040'. 9279 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9280 ;; 9281 esac 9282 ;; 9283 9284 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9285 # PIC is the default for these OSes. 9286 ;; 9287 9288 mingw* | cygwin* | pw32* | os2* | cegcc*) 9289 # This hack is so that the source file can tell whether it is being 9290 # built for inclusion in a dll (and should export symbols for example). 9291 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9292 # (--disable-auto-import) libraries 9293 lt_prog_compiler_pic='-DDLL_EXPORT' 9294 case $host_os in 9295 os2*) 9296 lt_prog_compiler_static='$wl-static' 9297 ;; 9298 esac 9299 ;; 9300 9301 darwin* | rhapsody*) 9302 # PIC is the default on this platform 9303 # Common symbols not allowed in MH_DYLIB files 9304 lt_prog_compiler_pic='-fno-common' 9305 ;; 9306 9307 haiku*) 9308 # PIC is the default for Haiku. 9309 # The "-static" flag exists, but is broken. 9310 lt_prog_compiler_static= 9311 ;; 9312 9313 hpux*) 9314 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9315 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9316 # sets the default TLS model and affects inlining. 9317 case $host_cpu in 9318 hppa*64*) 9319 # +Z the default 9320 ;; 9321 *) 9322 lt_prog_compiler_pic='-fPIC' 9323 ;; 9324 esac 9325 ;; 9326 9327 interix[3-9]*) 9328 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9329 # Instead, we relocate shared libraries at runtime. 9330 ;; 9331 9332 msdosdjgpp*) 9333 # Just because we use GCC doesn't mean we suddenly get shared libraries 9334 # on systems that don't support them. 9335 lt_prog_compiler_can_build_shared=no 9336 enable_shared=no 9337 ;; 9338 9339 *nto* | *qnx*) 9340 # QNX uses GNU C++, but need to define -shared option too, otherwise 9341 # it will coredump. 9342 lt_prog_compiler_pic='-fPIC -shared' 9343 ;; 9344 9345 sysv4*MP*) 9346 if test -d /usr/nec; then 9347 lt_prog_compiler_pic=-Kconform_pic 9348 fi 9349 ;; 9350 9351 *) 9352 lt_prog_compiler_pic='-fPIC' 9353 ;; 9354 esac 9355 9356 case $cc_basename in 9357 nvcc*) # Cuda Compiler Driver 2.2 9358 lt_prog_compiler_wl='-Xlinker ' 9359 if test -n "$lt_prog_compiler_pic"; then 9360 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9361 fi 9362 ;; 9363 esac 9364 else 9365 # PORTME Check for flag to pass linker flags through the system compiler. 9366 case $host_os in 9367 aix*) 9368 lt_prog_compiler_wl='-Wl,' 9369 if test ia64 = "$host_cpu"; then 9370 # AIX 5 now supports IA64 processor 9371 lt_prog_compiler_static='-Bstatic' 9372 else 9373 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9374 fi 9375 ;; 9376 9377 darwin* | rhapsody*) 9378 # PIC is the default on this platform 9379 # Common symbols not allowed in MH_DYLIB files 9380 lt_prog_compiler_pic='-fno-common' 9381 case $cc_basename in 9382 nagfor*) 9383 # NAG Fortran compiler 9384 lt_prog_compiler_wl='-Wl,-Wl,,' 9385 lt_prog_compiler_pic='-PIC' 9386 lt_prog_compiler_static='-Bstatic' 9387 ;; 9388 esac 9389 ;; 9390 9391 mingw* | cygwin* | pw32* | os2* | cegcc*) 9392 # This hack is so that the source file can tell whether it is being 9393 # built for inclusion in a dll (and should export symbols for example). 9394 lt_prog_compiler_pic='-DDLL_EXPORT' 9395 case $host_os in 9396 os2*) 9397 lt_prog_compiler_static='$wl-static' 9398 ;; 9399 esac 9400 ;; 9401 9402 hpux9* | hpux10* | hpux11*) 9403 lt_prog_compiler_wl='-Wl,' 9404 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9405 # not for PA HP-UX. 9406 case $host_cpu in 9407 hppa*64*|ia64*) 9408 # +Z the default 9409 ;; 9410 *) 9411 lt_prog_compiler_pic='+Z' 9412 ;; 9413 esac 9414 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9415 lt_prog_compiler_static='$wl-a ${wl}archive' 9416 ;; 9417 9418 irix5* | irix6* | nonstopux*) 9419 lt_prog_compiler_wl='-Wl,' 9420 # PIC (with -KPIC) is the default. 9421 lt_prog_compiler_static='-non_shared' 9422 ;; 9423 9424 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9425 case $cc_basename in 9426 # old Intel for x86_64, which still supported -KPIC. 9427 ecc*) 9428 lt_prog_compiler_wl='-Wl,' 9429 lt_prog_compiler_pic='-KPIC' 9430 lt_prog_compiler_static='-static' 9431 ;; 9432 # icc used to be incompatible with GCC. 9433 # ICC 10 doesn't accept -KPIC any more. 9434 icc* | ifort*) 9435 lt_prog_compiler_wl='-Wl,' 9436 lt_prog_compiler_pic='-fPIC' 9437 lt_prog_compiler_static='-static' 9438 ;; 9439 # Lahey Fortran 8.1. 9440 lf95*) 9441 lt_prog_compiler_wl='-Wl,' 9442 lt_prog_compiler_pic='--shared' 9443 lt_prog_compiler_static='--static' 9444 ;; 9445 nagfor*) 9446 # NAG Fortran compiler 9447 lt_prog_compiler_wl='-Wl,-Wl,,' 9448 lt_prog_compiler_pic='-PIC' 9449 lt_prog_compiler_static='-Bstatic' 9450 ;; 9451 tcc*) 9452 # Fabrice Bellard et al's Tiny C Compiler 9453 lt_prog_compiler_wl='-Wl,' 9454 lt_prog_compiler_pic='-fPIC' 9455 lt_prog_compiler_static='-static' 9456 ;; 9457 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9458 # Portland Group compilers (*not* the Pentium gcc compiler, 9459 # which looks to be a dead project) 9460 lt_prog_compiler_wl='-Wl,' 9461 lt_prog_compiler_pic='-fpic' 9462 lt_prog_compiler_static='-Bstatic' 9463 ;; 9464 ccc*) 9465 lt_prog_compiler_wl='-Wl,' 9466 # All Alpha code is PIC. 9467 lt_prog_compiler_static='-non_shared' 9468 ;; 9469 xl* | bgxl* | bgf* | mpixl*) 9470 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9471 lt_prog_compiler_wl='-Wl,' 9472 lt_prog_compiler_pic='-qpic' 9473 lt_prog_compiler_static='-qstaticlink' 9474 ;; 9475 *) 9476 case `$CC -V 2>&1 | sed 5q` in 9477 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9478 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9479 lt_prog_compiler_pic='-KPIC' 9480 lt_prog_compiler_static='-Bstatic' 9481 lt_prog_compiler_wl='' 9482 ;; 9483 *Sun\ F* | *Sun*Fortran*) 9484 lt_prog_compiler_pic='-KPIC' 9485 lt_prog_compiler_static='-Bstatic' 9486 lt_prog_compiler_wl='-Qoption ld ' 9487 ;; 9488 *Sun\ C*) 9489 # Sun C 5.9 9490 lt_prog_compiler_pic='-KPIC' 9491 lt_prog_compiler_static='-Bstatic' 9492 lt_prog_compiler_wl='-Wl,' 9493 ;; 9494 *Intel*\ [CF]*Compiler*) 9495 lt_prog_compiler_wl='-Wl,' 9496 lt_prog_compiler_pic='-fPIC' 9497 lt_prog_compiler_static='-static' 9498 ;; 9499 *Portland\ Group*) 9500 lt_prog_compiler_wl='-Wl,' 9501 lt_prog_compiler_pic='-fpic' 9502 lt_prog_compiler_static='-Bstatic' 9503 ;; 9504 esac 9505 ;; 9506 esac 9507 ;; 9508 9509 newsos6) 9510 lt_prog_compiler_pic='-KPIC' 9511 lt_prog_compiler_static='-Bstatic' 9512 ;; 9513 9514 *nto* | *qnx*) 9515 # QNX uses GNU C++, but need to define -shared option too, otherwise 9516 # it will coredump. 9517 lt_prog_compiler_pic='-fPIC -shared' 9518 ;; 9519 9520 osf3* | osf4* | osf5*) 9521 lt_prog_compiler_wl='-Wl,' 9522 # All OSF/1 code is PIC. 9523 lt_prog_compiler_static='-non_shared' 9524 ;; 9525 9526 rdos*) 9527 lt_prog_compiler_static='-non_shared' 9528 ;; 9529 9530 solaris*) 9531 lt_prog_compiler_pic='-KPIC' 9532 lt_prog_compiler_static='-Bstatic' 9533 case $cc_basename in 9534 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9535 lt_prog_compiler_wl='-Qoption ld ';; 9536 *) 9537 lt_prog_compiler_wl='-Wl,';; 9538 esac 9539 ;; 9540 9541 sunos4*) 9542 lt_prog_compiler_wl='-Qoption ld ' 9543 lt_prog_compiler_pic='-PIC' 9544 lt_prog_compiler_static='-Bstatic' 9545 ;; 9546 9547 sysv4 | sysv4.2uw2* | sysv4.3*) 9548 lt_prog_compiler_wl='-Wl,' 9549 lt_prog_compiler_pic='-KPIC' 9550 lt_prog_compiler_static='-Bstatic' 9551 ;; 9552 9553 sysv4*MP*) 9554 if test -d /usr/nec; then 9555 lt_prog_compiler_pic='-Kconform_pic' 9556 lt_prog_compiler_static='-Bstatic' 9557 fi 9558 ;; 9559 9560 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9561 lt_prog_compiler_wl='-Wl,' 9562 lt_prog_compiler_pic='-KPIC' 9563 lt_prog_compiler_static='-Bstatic' 9564 ;; 9565 9566 unicos*) 9567 lt_prog_compiler_wl='-Wl,' 9568 lt_prog_compiler_can_build_shared=no 9569 ;; 9570 9571 uts4*) 9572 lt_prog_compiler_pic='-pic' 9573 lt_prog_compiler_static='-Bstatic' 9574 ;; 9575 9576 *) 9577 lt_prog_compiler_can_build_shared=no 9578 ;; 9579 esac 9580 fi 9581 9582case $host_os in 9583 # For platforms that do not support PIC, -DPIC is meaningless: 9584 *djgpp*) 9585 lt_prog_compiler_pic= 9586 ;; 9587 *) 9588 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9589 ;; 9590esac 9591 9592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9593$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9594if ${lt_cv_prog_compiler_pic+:} false; then : 9595 $as_echo_n "(cached) " >&6 9596else 9597 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9598fi 9599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9600$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9601lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9602 9603# 9604# Check to make sure the PIC flag actually works. 9605# 9606if test -n "$lt_prog_compiler_pic"; then 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9608$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9609if ${lt_cv_prog_compiler_pic_works+:} false; then : 9610 $as_echo_n "(cached) " >&6 9611else 9612 lt_cv_prog_compiler_pic_works=no 9613 ac_outfile=conftest.$ac_objext 9614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9615 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9616 # Insert the option either (1) after the last *FLAGS variable, or 9617 # (2) before a word containing "conftest.", or (3) at the end. 9618 # Note that $ac_compile itself does not contain backslashes and begins 9619 # with a dollar sign (not a hyphen), so the echo should work correctly. 9620 # The option is referenced via a variable to avoid confusing sed. 9621 lt_compile=`echo "$ac_compile" | $SED \ 9622 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9623 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9624 -e 's:$: $lt_compiler_flag:'` 9625 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9626 (eval "$lt_compile" 2>conftest.err) 9627 ac_status=$? 9628 cat conftest.err >&5 9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9630 if (exit $ac_status) && test -s "$ac_outfile"; then 9631 # The compiler can only warn and ignore the option if not recognized 9632 # So say no if there are warnings other than the usual output. 9633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9634 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9635 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9636 lt_cv_prog_compiler_pic_works=yes 9637 fi 9638 fi 9639 $RM conftest* 9640 9641fi 9642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9643$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9644 9645if test yes = "$lt_cv_prog_compiler_pic_works"; then 9646 case $lt_prog_compiler_pic in 9647 "" | " "*) ;; 9648 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9649 esac 9650else 9651 lt_prog_compiler_pic= 9652 lt_prog_compiler_can_build_shared=no 9653fi 9654 9655fi 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667# 9668# Check to make sure the static flag actually works. 9669# 9670wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9672$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9673if ${lt_cv_prog_compiler_static_works+:} false; then : 9674 $as_echo_n "(cached) " >&6 9675else 9676 lt_cv_prog_compiler_static_works=no 9677 save_LDFLAGS=$LDFLAGS 9678 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9679 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9680 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9681 # The linker can only warn and ignore the option if not recognized 9682 # So say no if there are warnings 9683 if test -s conftest.err; then 9684 # Append any errors to the config.log. 9685 cat conftest.err 1>&5 9686 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9688 if diff conftest.exp conftest.er2 >/dev/null; then 9689 lt_cv_prog_compiler_static_works=yes 9690 fi 9691 else 9692 lt_cv_prog_compiler_static_works=yes 9693 fi 9694 fi 9695 $RM -r conftest* 9696 LDFLAGS=$save_LDFLAGS 9697 9698fi 9699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9700$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9701 9702if test yes = "$lt_cv_prog_compiler_static_works"; then 9703 : 9704else 9705 lt_prog_compiler_static= 9706fi 9707 9708 9709 9710 9711 9712 9713 9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9715$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9716if ${lt_cv_prog_compiler_c_o+:} false; then : 9717 $as_echo_n "(cached) " >&6 9718else 9719 lt_cv_prog_compiler_c_o=no 9720 $RM -r conftest 2>/dev/null 9721 mkdir conftest 9722 cd conftest 9723 mkdir out 9724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9725 9726 lt_compiler_flag="-o out/conftest2.$ac_objext" 9727 # Insert the option either (1) after the last *FLAGS variable, or 9728 # (2) before a word containing "conftest.", or (3) at the end. 9729 # Note that $ac_compile itself does not contain backslashes and begins 9730 # with a dollar sign (not a hyphen), so the echo should work correctly. 9731 lt_compile=`echo "$ac_compile" | $SED \ 9732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9734 -e 's:$: $lt_compiler_flag:'` 9735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9736 (eval "$lt_compile" 2>out/conftest.err) 9737 ac_status=$? 9738 cat out/conftest.err >&5 9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9740 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9741 then 9742 # The compiler can only warn and ignore the option if not recognized 9743 # So say no if there are warnings 9744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9747 lt_cv_prog_compiler_c_o=yes 9748 fi 9749 fi 9750 chmod u+w . 2>&5 9751 $RM conftest* 9752 # SGI C++ compiler will create directory out/ii_files/ for 9753 # template instantiation 9754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9755 $RM out/* && rmdir out 9756 cd .. 9757 $RM -r conftest 9758 $RM conftest* 9759 9760fi 9761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9762$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9763 9764 9765 9766 9767 9768 9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9770$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9771if ${lt_cv_prog_compiler_c_o+:} false; then : 9772 $as_echo_n "(cached) " >&6 9773else 9774 lt_cv_prog_compiler_c_o=no 9775 $RM -r conftest 2>/dev/null 9776 mkdir conftest 9777 cd conftest 9778 mkdir out 9779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9780 9781 lt_compiler_flag="-o out/conftest2.$ac_objext" 9782 # Insert the option either (1) after the last *FLAGS variable, or 9783 # (2) before a word containing "conftest.", or (3) at the end. 9784 # Note that $ac_compile itself does not contain backslashes and begins 9785 # with a dollar sign (not a hyphen), so the echo should work correctly. 9786 lt_compile=`echo "$ac_compile" | $SED \ 9787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9789 -e 's:$: $lt_compiler_flag:'` 9790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9791 (eval "$lt_compile" 2>out/conftest.err) 9792 ac_status=$? 9793 cat out/conftest.err >&5 9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9795 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9796 then 9797 # The compiler can only warn and ignore the option if not recognized 9798 # So say no if there are warnings 9799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9802 lt_cv_prog_compiler_c_o=yes 9803 fi 9804 fi 9805 chmod u+w . 2>&5 9806 $RM conftest* 9807 # SGI C++ compiler will create directory out/ii_files/ for 9808 # template instantiation 9809 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9810 $RM out/* && rmdir out 9811 cd .. 9812 $RM -r conftest 9813 $RM conftest* 9814 9815fi 9816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9817$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9818 9819 9820 9821 9822hard_links=nottested 9823if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9824 # do not overwrite the value of need_locks provided by the user 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9826$as_echo_n "checking if we can lock with hard links... " >&6; } 9827 hard_links=yes 9828 $RM conftest* 9829 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9830 touch conftest.a 9831 ln conftest.a conftest.b 2>&5 || hard_links=no 9832 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9834$as_echo "$hard_links" >&6; } 9835 if test no = "$hard_links"; then 9836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9837$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9838 need_locks=warn 9839 fi 9840else 9841 need_locks=no 9842fi 9843 9844 9845 9846 9847 9848 9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9850$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9851 9852 runpath_var= 9853 allow_undefined_flag= 9854 always_export_symbols=no 9855 archive_cmds= 9856 archive_expsym_cmds= 9857 compiler_needs_object=no 9858 enable_shared_with_static_runtimes=no 9859 export_dynamic_flag_spec= 9860 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9861 hardcode_automatic=no 9862 hardcode_direct=no 9863 hardcode_direct_absolute=no 9864 hardcode_libdir_flag_spec= 9865 hardcode_libdir_separator= 9866 hardcode_minus_L=no 9867 hardcode_shlibpath_var=unsupported 9868 inherit_rpath=no 9869 link_all_deplibs=unknown 9870 module_cmds= 9871 module_expsym_cmds= 9872 old_archive_from_new_cmds= 9873 old_archive_from_expsyms_cmds= 9874 thread_safe_flag_spec= 9875 whole_archive_flag_spec= 9876 # include_expsyms should be a list of space-separated symbols to be *always* 9877 # included in the symbol list 9878 include_expsyms= 9879 # exclude_expsyms can be an extended regexp of symbols to exclude 9880 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9881 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9882 # as well as any symbol that contains 'd'. 9883 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9884 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9885 # platforms (ab)use it in PIC code, but their linkers get confused if 9886 # the symbol is explicitly referenced. Since portable code cannot 9887 # rely on this symbol name, it's probably fine to never include it in 9888 # preloaded symbol tables. 9889 # Exclude shared library initialization/finalization symbols. 9890 extract_expsyms_cmds= 9891 9892 case $host_os in 9893 cygwin* | mingw* | pw32* | cegcc*) 9894 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9895 # When not using gcc, we currently assume that we are using 9896 # Microsoft Visual C++. 9897 if test yes != "$GCC"; then 9898 with_gnu_ld=no 9899 fi 9900 ;; 9901 interix*) 9902 # we just hope/assume this is gcc and not c89 (= MSVC++) 9903 with_gnu_ld=yes 9904 ;; 9905 openbsd* | bitrig*) 9906 with_gnu_ld=no 9907 ;; 9908 linux* | k*bsd*-gnu | gnu*) 9909 link_all_deplibs=no 9910 ;; 9911 esac 9912 9913 ld_shlibs=yes 9914 9915 # On some targets, GNU ld is compatible enough with the native linker 9916 # that we're better off using the native interface for both. 9917 lt_use_gnu_ld_interface=no 9918 if test yes = "$with_gnu_ld"; then 9919 case $host_os in 9920 aix*) 9921 # The AIX port of GNU ld has always aspired to compatibility 9922 # with the native linker. However, as the warning in the GNU ld 9923 # block says, versions before 2.19.5* couldn't really create working 9924 # shared libraries, regardless of the interface used. 9925 case `$LD -v 2>&1` in 9926 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9927 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9928 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9929 *) 9930 lt_use_gnu_ld_interface=yes 9931 ;; 9932 esac 9933 ;; 9934 *) 9935 lt_use_gnu_ld_interface=yes 9936 ;; 9937 esac 9938 fi 9939 9940 if test yes = "$lt_use_gnu_ld_interface"; then 9941 # If archive_cmds runs LD, not CC, wlarc should be empty 9942 wlarc='$wl' 9943 9944 # Set some defaults for GNU ld with shared library support. These 9945 # are reset later if shared libraries are not supported. Putting them 9946 # here allows them to be overridden if necessary. 9947 runpath_var=LD_RUN_PATH 9948 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9949 export_dynamic_flag_spec='$wl--export-dynamic' 9950 # ancient GNU ld didn't support --whole-archive et. al. 9951 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9952 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9953 else 9954 whole_archive_flag_spec= 9955 fi 9956 supports_anon_versioning=no 9957 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9958 *GNU\ gold*) supports_anon_versioning=yes ;; 9959 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9960 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9961 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9962 *\ 2.11.*) ;; # other 2.11 versions 9963 *) supports_anon_versioning=yes ;; 9964 esac 9965 9966 # See if GNU ld supports shared libraries. 9967 case $host_os in 9968 aix[3-9]*) 9969 # On AIX/PPC, the GNU linker is very broken 9970 if test ia64 != "$host_cpu"; then 9971 ld_shlibs=no 9972 cat <<_LT_EOF 1>&2 9973 9974*** Warning: the GNU linker, at least up to release 2.19, is reported 9975*** to be unable to reliably create shared libraries on AIX. 9976*** Therefore, libtool is disabling shared libraries support. If you 9977*** really care for shared libraries, you may want to install binutils 9978*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9979*** You will then need to restart the configuration process. 9980 9981_LT_EOF 9982 fi 9983 ;; 9984 9985 amigaos*) 9986 case $host_cpu in 9987 powerpc) 9988 # see comment about AmigaOS4 .so support 9989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9990 archive_expsym_cmds='' 9991 ;; 9992 m68k) 9993 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)' 9994 hardcode_libdir_flag_spec='-L$libdir' 9995 hardcode_minus_L=yes 9996 ;; 9997 esac 9998 ;; 9999 10000 beos*) 10001 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10002 allow_undefined_flag=unsupported 10003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10004 # support --undefined. This deserves some investigation. FIXME 10005 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10006 else 10007 ld_shlibs=no 10008 fi 10009 ;; 10010 10011 cygwin* | mingw* | pw32* | cegcc*) 10012 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10013 # as there is no search path for DLLs. 10014 hardcode_libdir_flag_spec='-L$libdir' 10015 export_dynamic_flag_spec='$wl--export-all-symbols' 10016 allow_undefined_flag=unsupported 10017 always_export_symbols=no 10018 enable_shared_with_static_runtimes=yes 10019 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' 10020 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10021 10022 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10023 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10024 # If the export-symbols file already is a .def file, use it as 10025 # is; otherwise, prepend EXPORTS... 10026 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10027 cp $export_symbols $output_objdir/$soname.def; 10028 else 10029 echo EXPORTS > $output_objdir/$soname.def; 10030 cat $export_symbols >> $output_objdir/$soname.def; 10031 fi~ 10032 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10033 else 10034 ld_shlibs=no 10035 fi 10036 ;; 10037 10038 haiku*) 10039 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10040 link_all_deplibs=yes 10041 ;; 10042 10043 os2*) 10044 hardcode_libdir_flag_spec='-L$libdir' 10045 hardcode_minus_L=yes 10046 allow_undefined_flag=unsupported 10047 shrext_cmds=.dll 10048 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10049 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10050 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10051 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10052 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10053 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10054 emximp -o $lib $output_objdir/$libname.def' 10055 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10056 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10057 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10058 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10059 prefix_cmds="$SED"~ 10060 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10061 prefix_cmds="$prefix_cmds -e 1d"; 10062 fi~ 10063 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10064 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10065 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10066 emximp -o $lib $output_objdir/$libname.def' 10067 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10068 enable_shared_with_static_runtimes=yes 10069 ;; 10070 10071 interix[3-9]*) 10072 hardcode_direct=no 10073 hardcode_shlibpath_var=no 10074 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10075 export_dynamic_flag_spec='$wl-E' 10076 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10077 # Instead, shared libraries are loaded at an image base (0x10000000 by 10078 # default) and relocated if they conflict, which is a slow very memory 10079 # consuming and fragmenting process. To avoid this, we pick a random, 10080 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10081 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10082 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10083 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' 10084 ;; 10085 10086 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10087 tmp_diet=no 10088 if test linux-dietlibc = "$host_os"; then 10089 case $cc_basename in 10090 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10091 esac 10092 fi 10093 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10094 && test no = "$tmp_diet" 10095 then 10096 tmp_addflag=' $pic_flag' 10097 tmp_sharedflag='-shared' 10098 case $cc_basename,$host_cpu in 10099 pgcc*) # Portland Group C compiler 10100 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' 10101 tmp_addflag=' $pic_flag' 10102 ;; 10103 pgf77* | pgf90* | pgf95* | pgfortran*) 10104 # Portland Group f77 and f90 compilers 10105 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' 10106 tmp_addflag=' $pic_flag -Mnomain' ;; 10107 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10108 tmp_addflag=' -i_dynamic' ;; 10109 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10110 tmp_addflag=' -i_dynamic -nofor_main' ;; 10111 ifc* | ifort*) # Intel Fortran compiler 10112 tmp_addflag=' -nofor_main' ;; 10113 lf95*) # Lahey Fortran 8.1 10114 whole_archive_flag_spec= 10115 tmp_sharedflag='--shared' ;; 10116 nagfor*) # NAGFOR 5.3 10117 tmp_sharedflag='-Wl,-shared' ;; 10118 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10119 tmp_sharedflag='-qmkshrobj' 10120 tmp_addflag= ;; 10121 nvcc*) # Cuda Compiler Driver 2.2 10122 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' 10123 compiler_needs_object=yes 10124 ;; 10125 esac 10126 case `$CC -V 2>&1 | sed 5q` in 10127 *Sun\ C*) # Sun C 5.9 10128 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' 10129 compiler_needs_object=yes 10130 tmp_sharedflag='-G' ;; 10131 *Sun\ F*) # Sun Fortran 8.3 10132 tmp_sharedflag='-G' ;; 10133 esac 10134 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10135 10136 if test yes = "$supports_anon_versioning"; then 10137 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10139 echo "local: *; };" >> $output_objdir/$libname.ver~ 10140 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10141 fi 10142 10143 case $cc_basename in 10144 tcc*) 10145 export_dynamic_flag_spec='-rdynamic' 10146 ;; 10147 xlf* | bgf* | bgxlf* | mpixlf*) 10148 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10149 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10150 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10151 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10152 if test yes = "$supports_anon_versioning"; then 10153 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10154 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10155 echo "local: *; };" >> $output_objdir/$libname.ver~ 10156 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10157 fi 10158 ;; 10159 esac 10160 else 10161 ld_shlibs=no 10162 fi 10163 ;; 10164 10165 netbsd* | netbsdelf*-gnu) 10166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10167 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10168 wlarc= 10169 else 10170 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10171 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10172 fi 10173 ;; 10174 10175 solaris*) 10176 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10177 ld_shlibs=no 10178 cat <<_LT_EOF 1>&2 10179 10180*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10181*** create shared libraries on Solaris systems. Therefore, libtool 10182*** is disabling shared libraries support. We urge you to upgrade GNU 10183*** binutils to release 2.9.1 or newer. Another option is to modify 10184*** your PATH or compiler configuration so that the native linker is 10185*** used, and then restart. 10186 10187_LT_EOF 10188 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10189 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10190 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10191 else 10192 ld_shlibs=no 10193 fi 10194 ;; 10195 10196 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10197 case `$LD -v 2>&1` in 10198 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10199 ld_shlibs=no 10200 cat <<_LT_EOF 1>&2 10201 10202*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10203*** reliably create shared libraries on SCO systems. Therefore, libtool 10204*** is disabling shared libraries support. We urge you to upgrade GNU 10205*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10206*** your PATH or compiler configuration so that the native linker is 10207*** used, and then restart. 10208 10209_LT_EOF 10210 ;; 10211 *) 10212 # For security reasons, it is highly recommended that you always 10213 # use absolute paths for naming shared libraries, and exclude the 10214 # DT_RUNPATH tag from executables and libraries. But doing so 10215 # requires that you compile everything twice, which is a pain. 10216 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10217 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10219 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10220 else 10221 ld_shlibs=no 10222 fi 10223 ;; 10224 esac 10225 ;; 10226 10227 sunos4*) 10228 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10229 wlarc= 10230 hardcode_direct=yes 10231 hardcode_shlibpath_var=no 10232 ;; 10233 10234 *) 10235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10236 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10237 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10238 else 10239 ld_shlibs=no 10240 fi 10241 ;; 10242 esac 10243 10244 if test no = "$ld_shlibs"; then 10245 runpath_var= 10246 hardcode_libdir_flag_spec= 10247 export_dynamic_flag_spec= 10248 whole_archive_flag_spec= 10249 fi 10250 else 10251 # PORTME fill in a description of your system's linker (not GNU ld) 10252 case $host_os in 10253 aix3*) 10254 allow_undefined_flag=unsupported 10255 always_export_symbols=yes 10256 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' 10257 # Note: this linker hardcodes the directories in LIBPATH if there 10258 # are no directories specified by -L. 10259 hardcode_minus_L=yes 10260 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10261 # Neither direct hardcoding nor static linking is supported with a 10262 # broken collect2. 10263 hardcode_direct=unsupported 10264 fi 10265 ;; 10266 10267 aix[4-9]*) 10268 if test ia64 = "$host_cpu"; then 10269 # On IA64, the linker does run time linking by default, so we don't 10270 # have to do anything special. 10271 aix_use_runtimelinking=no 10272 exp_sym_flag='-Bexport' 10273 no_entry_flag= 10274 else 10275 # If we're using GNU nm, then we don't want the "-C" option. 10276 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10277 # Without the "-l" option, or with the "-B" option, AIX nm treats 10278 # weak defined symbols like other global defined symbols, whereas 10279 # GNU nm marks them as "W". 10280 # While the 'weak' keyword is ignored in the Export File, we need 10281 # it in the Import File for the 'aix-soname' feature, so we have 10282 # to replace the "-B" option with "-P" for AIX nm. 10283 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10284 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10285 else 10286 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10287 fi 10288 aix_use_runtimelinking=no 10289 10290 # Test if we are trying to use run time linking or normal 10291 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10292 # have runtime linking enabled, and use it for executables. 10293 # For shared libraries, we enable/disable runtime linking 10294 # depending on the kind of the shared library created - 10295 # when "with_aix_soname,aix_use_runtimelinking" is: 10296 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10297 # "aix,yes" lib.so shared, rtl:yes, for executables 10298 # lib.a static archive 10299 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10300 # lib.a(lib.so.V) shared, rtl:no, for executables 10301 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10302 # lib.a(lib.so.V) shared, rtl:no 10303 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10304 # lib.a static archive 10305 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10306 for ld_flag in $LDFLAGS; do 10307 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10308 aix_use_runtimelinking=yes 10309 break 10310 fi 10311 done 10312 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10313 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10314 # so we don't have lib.a shared libs to link our executables. 10315 # We have to force runtime linking in this case. 10316 aix_use_runtimelinking=yes 10317 LDFLAGS="$LDFLAGS -Wl,-brtl" 10318 fi 10319 ;; 10320 esac 10321 10322 exp_sym_flag='-bexport' 10323 no_entry_flag='-bnoentry' 10324 fi 10325 10326 # When large executables or shared objects are built, AIX ld can 10327 # have problems creating the table of contents. If linking a library 10328 # or program results in "error TOC overflow" add -mminimal-toc to 10329 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10330 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10331 10332 archive_cmds='' 10333 hardcode_direct=yes 10334 hardcode_direct_absolute=yes 10335 hardcode_libdir_separator=':' 10336 link_all_deplibs=yes 10337 file_list_spec='$wl-f,' 10338 case $with_aix_soname,$aix_use_runtimelinking in 10339 aix,*) ;; # traditional, no import file 10340 svr4,* | *,yes) # use import file 10341 # The Import File defines what to hardcode. 10342 hardcode_direct=no 10343 hardcode_direct_absolute=no 10344 ;; 10345 esac 10346 10347 if test yes = "$GCC"; then 10348 case $host_os in aix4.[012]|aix4.[012].*) 10349 # We only want to do this on AIX 4.2 and lower, the check 10350 # below for broken collect2 doesn't work under 4.3+ 10351 collect2name=`$CC -print-prog-name=collect2` 10352 if test -f "$collect2name" && 10353 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10354 then 10355 # We have reworked collect2 10356 : 10357 else 10358 # We have old collect2 10359 hardcode_direct=unsupported 10360 # It fails to find uninstalled libraries when the uninstalled 10361 # path is not listed in the libpath. Setting hardcode_minus_L 10362 # to unsupported forces relinking 10363 hardcode_minus_L=yes 10364 hardcode_libdir_flag_spec='-L$libdir' 10365 hardcode_libdir_separator= 10366 fi 10367 ;; 10368 esac 10369 shared_flag='-shared' 10370 if test yes = "$aix_use_runtimelinking"; then 10371 shared_flag="$shared_flag "'$wl-G' 10372 fi 10373 # Need to ensure runtime linking is disabled for the traditional 10374 # shared library, or the linker may eventually find shared libraries 10375 # /with/ Import File - we do not want to mix them. 10376 shared_flag_aix='-shared' 10377 shared_flag_svr4='-shared $wl-G' 10378 else 10379 # not using gcc 10380 if test ia64 = "$host_cpu"; then 10381 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10382 # chokes on -Wl,-G. The following line is correct: 10383 shared_flag='-G' 10384 else 10385 if test yes = "$aix_use_runtimelinking"; then 10386 shared_flag='$wl-G' 10387 else 10388 shared_flag='$wl-bM:SRE' 10389 fi 10390 shared_flag_aix='$wl-bM:SRE' 10391 shared_flag_svr4='$wl-G' 10392 fi 10393 fi 10394 10395 export_dynamic_flag_spec='$wl-bexpall' 10396 # It seems that -bexpall does not export symbols beginning with 10397 # underscore (_), so it is better to generate a list of symbols to export. 10398 always_export_symbols=yes 10399 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10400 # Warning - without using the other runtime loading flags (-brtl), 10401 # -berok will link without error, but may produce a broken library. 10402 allow_undefined_flag='-berok' 10403 # Determine the default libpath from the value encoded in an 10404 # empty executable. 10405 if test set = "${lt_cv_aix_libpath+set}"; then 10406 aix_libpath=$lt_cv_aix_libpath 10407else 10408 if ${lt_cv_aix_libpath_+:} false; then : 10409 $as_echo_n "(cached) " >&6 10410else 10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10412/* end confdefs.h. */ 10413 10414int 10415main () 10416{ 10417 10418 ; 10419 return 0; 10420} 10421_ACEOF 10422if ac_fn_c_try_link "$LINENO"; then : 10423 10424 lt_aix_libpath_sed=' 10425 /Import File Strings/,/^$/ { 10426 /^0/ { 10427 s/^0 *\([^ ]*\) *$/\1/ 10428 p 10429 } 10430 }' 10431 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10432 # Check for a 64-bit object if we didn't find anything. 10433 if test -z "$lt_cv_aix_libpath_"; then 10434 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10435 fi 10436fi 10437rm -f core conftest.err conftest.$ac_objext \ 10438 conftest$ac_exeext conftest.$ac_ext 10439 if test -z "$lt_cv_aix_libpath_"; then 10440 lt_cv_aix_libpath_=/usr/lib:/lib 10441 fi 10442 10443fi 10444 10445 aix_libpath=$lt_cv_aix_libpath_ 10446fi 10447 10448 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10449 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10450 else 10451 if test ia64 = "$host_cpu"; then 10452 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10453 allow_undefined_flag="-z nodefs" 10454 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" 10455 else 10456 # Determine the default libpath from the value encoded in an 10457 # empty executable. 10458 if test set = "${lt_cv_aix_libpath+set}"; then 10459 aix_libpath=$lt_cv_aix_libpath 10460else 10461 if ${lt_cv_aix_libpath_+:} false; then : 10462 $as_echo_n "(cached) " >&6 10463else 10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10465/* end confdefs.h. */ 10466 10467int 10468main () 10469{ 10470 10471 ; 10472 return 0; 10473} 10474_ACEOF 10475if ac_fn_c_try_link "$LINENO"; then : 10476 10477 lt_aix_libpath_sed=' 10478 /Import File Strings/,/^$/ { 10479 /^0/ { 10480 s/^0 *\([^ ]*\) *$/\1/ 10481 p 10482 } 10483 }' 10484 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10485 # Check for a 64-bit object if we didn't find anything. 10486 if test -z "$lt_cv_aix_libpath_"; then 10487 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10488 fi 10489fi 10490rm -f core conftest.err conftest.$ac_objext \ 10491 conftest$ac_exeext conftest.$ac_ext 10492 if test -z "$lt_cv_aix_libpath_"; then 10493 lt_cv_aix_libpath_=/usr/lib:/lib 10494 fi 10495 10496fi 10497 10498 aix_libpath=$lt_cv_aix_libpath_ 10499fi 10500 10501 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10502 # Warning - without using the other run time loading flags, 10503 # -berok will link without error, but may produce a broken library. 10504 no_undefined_flag=' $wl-bernotok' 10505 allow_undefined_flag=' $wl-berok' 10506 if test yes = "$with_gnu_ld"; then 10507 # We only use this code for GNU lds that support --whole-archive. 10508 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10509 else 10510 # Exported symbols can be pulled into shared objects from archives 10511 whole_archive_flag_spec='$convenience' 10512 fi 10513 archive_cmds_need_lc=yes 10514 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10515 # -brtl affects multiple linker settings, -berok does not and is overridden later 10516 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10517 if test svr4 != "$with_aix_soname"; then 10518 # This is similar to how AIX traditionally builds its shared libraries. 10519 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10520 fi 10521 if test aix != "$with_aix_soname"; then 10522 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10523 else 10524 # used by -dlpreopen to get the symbols 10525 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10526 fi 10527 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10528 fi 10529 fi 10530 ;; 10531 10532 amigaos*) 10533 case $host_cpu in 10534 powerpc) 10535 # see comment about AmigaOS4 .so support 10536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10537 archive_expsym_cmds='' 10538 ;; 10539 m68k) 10540 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)' 10541 hardcode_libdir_flag_spec='-L$libdir' 10542 hardcode_minus_L=yes 10543 ;; 10544 esac 10545 ;; 10546 10547 bsdi[45]*) 10548 export_dynamic_flag_spec=-rdynamic 10549 ;; 10550 10551 cygwin* | mingw* | pw32* | cegcc*) 10552 # When not using gcc, we currently assume that we are using 10553 # Microsoft Visual C++. 10554 # hardcode_libdir_flag_spec is actually meaningless, as there is 10555 # no search path for DLLs. 10556 case $cc_basename in 10557 cl*) 10558 # Native MSVC 10559 hardcode_libdir_flag_spec=' ' 10560 allow_undefined_flag=unsupported 10561 always_export_symbols=yes 10562 file_list_spec='@' 10563 # Tell ltmain to make .lib files, not .a files. 10564 libext=lib 10565 # Tell ltmain to make .dll files, not .so files. 10566 shrext_cmds=.dll 10567 # FIXME: Setting linknames here is a bad hack. 10568 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10569 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10570 cp "$export_symbols" "$output_objdir/$soname.def"; 10571 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10572 else 10573 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10574 fi~ 10575 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10576 linknames=' 10577 # The linker will not automatically build a static lib if we build a DLL. 10578 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10579 enable_shared_with_static_runtimes=yes 10580 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10581 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10582 # Don't use ranlib 10583 old_postinstall_cmds='chmod 644 $oldlib' 10584 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10585 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10586 case $lt_outputfile in 10587 *.exe|*.EXE) ;; 10588 *) 10589 lt_outputfile=$lt_outputfile.exe 10590 lt_tool_outputfile=$lt_tool_outputfile.exe 10591 ;; 10592 esac~ 10593 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10594 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10595 $RM "$lt_outputfile.manifest"; 10596 fi' 10597 ;; 10598 *) 10599 # Assume MSVC wrapper 10600 hardcode_libdir_flag_spec=' ' 10601 allow_undefined_flag=unsupported 10602 # Tell ltmain to make .lib files, not .a files. 10603 libext=lib 10604 # Tell ltmain to make .dll files, not .so files. 10605 shrext_cmds=.dll 10606 # FIXME: Setting linknames here is a bad hack. 10607 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10608 # The linker will automatically build a .lib file if we build a DLL. 10609 old_archive_from_new_cmds='true' 10610 # FIXME: Should let the user specify the lib program. 10611 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10612 enable_shared_with_static_runtimes=yes 10613 ;; 10614 esac 10615 ;; 10616 10617 darwin* | rhapsody*) 10618 10619 10620 archive_cmds_need_lc=no 10621 hardcode_direct=no 10622 hardcode_automatic=yes 10623 hardcode_shlibpath_var=unsupported 10624 if test yes = "$lt_cv_ld_force_load"; then 10625 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\"`' 10626 10627 else 10628 whole_archive_flag_spec='' 10629 fi 10630 link_all_deplibs=yes 10631 allow_undefined_flag=$_lt_dar_allow_undefined 10632 case $cc_basename in 10633 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10634 *) _lt_dar_can_shared=$GCC ;; 10635 esac 10636 if test yes = "$_lt_dar_can_shared"; then 10637 output_verbose_link_cmd=func_echo_all 10638 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10639 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10640 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" 10641 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" 10642 10643 else 10644 ld_shlibs=no 10645 fi 10646 10647 ;; 10648 10649 dgux*) 10650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10651 hardcode_libdir_flag_spec='-L$libdir' 10652 hardcode_shlibpath_var=no 10653 ;; 10654 10655 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10656 # support. Future versions do this automatically, but an explicit c++rt0.o 10657 # does not break anything, and helps significantly (at the cost of a little 10658 # extra space). 10659 freebsd2.2*) 10660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10661 hardcode_libdir_flag_spec='-R$libdir' 10662 hardcode_direct=yes 10663 hardcode_shlibpath_var=no 10664 ;; 10665 10666 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10667 freebsd2.*) 10668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10669 hardcode_direct=yes 10670 hardcode_minus_L=yes 10671 hardcode_shlibpath_var=no 10672 ;; 10673 10674 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10675 freebsd* | dragonfly*) 10676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10677 hardcode_libdir_flag_spec='-R$libdir' 10678 hardcode_direct=yes 10679 hardcode_shlibpath_var=no 10680 ;; 10681 10682 hpux9*) 10683 if test yes = "$GCC"; then 10684 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10685 else 10686 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10687 fi 10688 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10689 hardcode_libdir_separator=: 10690 hardcode_direct=yes 10691 10692 # hardcode_minus_L: Not really in the search PATH, 10693 # but as the default location of the library. 10694 hardcode_minus_L=yes 10695 export_dynamic_flag_spec='$wl-E' 10696 ;; 10697 10698 hpux10*) 10699 if test yes,no = "$GCC,$with_gnu_ld"; then 10700 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10701 else 10702 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10703 fi 10704 if test no = "$with_gnu_ld"; then 10705 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10706 hardcode_libdir_separator=: 10707 hardcode_direct=yes 10708 hardcode_direct_absolute=yes 10709 export_dynamic_flag_spec='$wl-E' 10710 # hardcode_minus_L: Not really in the search PATH, 10711 # but as the default location of the library. 10712 hardcode_minus_L=yes 10713 fi 10714 ;; 10715 10716 hpux11*) 10717 if test yes,no = "$GCC,$with_gnu_ld"; then 10718 case $host_cpu in 10719 hppa*64*) 10720 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10721 ;; 10722 ia64*) 10723 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10724 ;; 10725 *) 10726 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10727 ;; 10728 esac 10729 else 10730 case $host_cpu in 10731 hppa*64*) 10732 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10733 ;; 10734 ia64*) 10735 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10736 ;; 10737 *) 10738 10739 # Older versions of the 11.00 compiler do not understand -b yet 10740 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10742$as_echo_n "checking if $CC understands -b... " >&6; } 10743if ${lt_cv_prog_compiler__b+:} false; then : 10744 $as_echo_n "(cached) " >&6 10745else 10746 lt_cv_prog_compiler__b=no 10747 save_LDFLAGS=$LDFLAGS 10748 LDFLAGS="$LDFLAGS -b" 10749 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10750 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10751 # The linker can only warn and ignore the option if not recognized 10752 # So say no if there are warnings 10753 if test -s conftest.err; then 10754 # Append any errors to the config.log. 10755 cat conftest.err 1>&5 10756 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10758 if diff conftest.exp conftest.er2 >/dev/null; then 10759 lt_cv_prog_compiler__b=yes 10760 fi 10761 else 10762 lt_cv_prog_compiler__b=yes 10763 fi 10764 fi 10765 $RM -r conftest* 10766 LDFLAGS=$save_LDFLAGS 10767 10768fi 10769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10770$as_echo "$lt_cv_prog_compiler__b" >&6; } 10771 10772if test yes = "$lt_cv_prog_compiler__b"; then 10773 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10774else 10775 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10776fi 10777 10778 ;; 10779 esac 10780 fi 10781 if test no = "$with_gnu_ld"; then 10782 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10783 hardcode_libdir_separator=: 10784 10785 case $host_cpu in 10786 hppa*64*|ia64*) 10787 hardcode_direct=no 10788 hardcode_shlibpath_var=no 10789 ;; 10790 *) 10791 hardcode_direct=yes 10792 hardcode_direct_absolute=yes 10793 export_dynamic_flag_spec='$wl-E' 10794 10795 # hardcode_minus_L: Not really in the search PATH, 10796 # but as the default location of the library. 10797 hardcode_minus_L=yes 10798 ;; 10799 esac 10800 fi 10801 ;; 10802 10803 irix5* | irix6* | nonstopux*) 10804 if test yes = "$GCC"; then 10805 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' 10806 # Try to use the -exported_symbol ld option, if it does not 10807 # work, assume that -exports_file does not work either and 10808 # implicitly export all symbols. 10809 # This should be the same for all languages, so no per-tag cache variable. 10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10811$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10812if ${lt_cv_irix_exported_symbol+:} false; then : 10813 $as_echo_n "(cached) " >&6 10814else 10815 save_LDFLAGS=$LDFLAGS 10816 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10818/* end confdefs.h. */ 10819int foo (void) { return 0; } 10820_ACEOF 10821if ac_fn_c_try_link "$LINENO"; then : 10822 lt_cv_irix_exported_symbol=yes 10823else 10824 lt_cv_irix_exported_symbol=no 10825fi 10826rm -f core conftest.err conftest.$ac_objext \ 10827 conftest$ac_exeext conftest.$ac_ext 10828 LDFLAGS=$save_LDFLAGS 10829fi 10830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10831$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10832 if test yes = "$lt_cv_irix_exported_symbol"; then 10833 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' 10834 fi 10835 link_all_deplibs=no 10836 else 10837 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' 10838 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' 10839 fi 10840 archive_cmds_need_lc='no' 10841 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10842 hardcode_libdir_separator=: 10843 inherit_rpath=yes 10844 link_all_deplibs=yes 10845 ;; 10846 10847 linux*) 10848 case $cc_basename in 10849 tcc*) 10850 # Fabrice Bellard et al's Tiny C Compiler 10851 ld_shlibs=yes 10852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10853 ;; 10854 esac 10855 ;; 10856 10857 netbsd* | netbsdelf*-gnu) 10858 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10860 else 10861 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10862 fi 10863 hardcode_libdir_flag_spec='-R$libdir' 10864 hardcode_direct=yes 10865 hardcode_shlibpath_var=no 10866 ;; 10867 10868 newsos6) 10869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10870 hardcode_direct=yes 10871 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10872 hardcode_libdir_separator=: 10873 hardcode_shlibpath_var=no 10874 ;; 10875 10876 *nto* | *qnx*) 10877 ;; 10878 10879 openbsd* | bitrig*) 10880 if test -f /usr/libexec/ld.so; then 10881 hardcode_direct=yes 10882 hardcode_shlibpath_var=no 10883 hardcode_direct_absolute=yes 10884 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10885 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10886 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10887 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10888 export_dynamic_flag_spec='$wl-E' 10889 else 10890 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10891 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10892 fi 10893 else 10894 ld_shlibs=no 10895 fi 10896 ;; 10897 10898 os2*) 10899 hardcode_libdir_flag_spec='-L$libdir' 10900 hardcode_minus_L=yes 10901 allow_undefined_flag=unsupported 10902 shrext_cmds=.dll 10903 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10904 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10905 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10906 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10907 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10908 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10909 emximp -o $lib $output_objdir/$libname.def' 10910 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10911 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10912 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10913 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10914 prefix_cmds="$SED"~ 10915 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10916 prefix_cmds="$prefix_cmds -e 1d"; 10917 fi~ 10918 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10919 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10920 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10921 emximp -o $lib $output_objdir/$libname.def' 10922 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10923 enable_shared_with_static_runtimes=yes 10924 ;; 10925 10926 osf3*) 10927 if test yes = "$GCC"; then 10928 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10929 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' 10930 else 10931 allow_undefined_flag=' -expect_unresolved \*' 10932 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' 10933 fi 10934 archive_cmds_need_lc='no' 10935 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10936 hardcode_libdir_separator=: 10937 ;; 10938 10939 osf4* | osf5*) # as osf3* with the addition of -msym flag 10940 if test yes = "$GCC"; then 10941 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10942 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' 10943 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10944 else 10945 allow_undefined_flag=' -expect_unresolved \*' 10946 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' 10947 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~ 10948 $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' 10949 10950 # Both c and cxx compiler support -rpath directly 10951 hardcode_libdir_flag_spec='-rpath $libdir' 10952 fi 10953 archive_cmds_need_lc='no' 10954 hardcode_libdir_separator=: 10955 ;; 10956 10957 solaris*) 10958 no_undefined_flag=' -z defs' 10959 if test yes = "$GCC"; then 10960 wlarc='$wl' 10961 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10962 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10963 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10964 else 10965 case `$CC -V 2>&1` in 10966 *"Compilers 5.0"*) 10967 wlarc='' 10968 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10969 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10970 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10971 ;; 10972 *) 10973 wlarc='$wl' 10974 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10975 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10976 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10977 ;; 10978 esac 10979 fi 10980 hardcode_libdir_flag_spec='-R$libdir' 10981 hardcode_shlibpath_var=no 10982 case $host_os in 10983 solaris2.[0-5] | solaris2.[0-5].*) ;; 10984 *) 10985 # The compiler driver will combine and reorder linker options, 10986 # but understands '-z linker_flag'. GCC discards it without '$wl', 10987 # but is careful enough not to reorder. 10988 # Supported since Solaris 2.6 (maybe 2.5.1?) 10989 if test yes = "$GCC"; then 10990 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10991 else 10992 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10993 fi 10994 ;; 10995 esac 10996 link_all_deplibs=yes 10997 ;; 10998 10999 sunos4*) 11000 if test sequent = "$host_vendor"; then 11001 # Use $CC to link under sequent, because it throws in some extra .o 11002 # files that make .init and .fini sections work. 11003 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11004 else 11005 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11006 fi 11007 hardcode_libdir_flag_spec='-L$libdir' 11008 hardcode_direct=yes 11009 hardcode_minus_L=yes 11010 hardcode_shlibpath_var=no 11011 ;; 11012 11013 sysv4) 11014 case $host_vendor in 11015 sni) 11016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11017 hardcode_direct=yes # is this really true??? 11018 ;; 11019 siemens) 11020 ## LD is ld it makes a PLAMLIB 11021 ## CC just makes a GrossModule. 11022 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11023 reload_cmds='$CC -r -o $output$reload_objs' 11024 hardcode_direct=no 11025 ;; 11026 motorola) 11027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11028 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11029 ;; 11030 esac 11031 runpath_var='LD_RUN_PATH' 11032 hardcode_shlibpath_var=no 11033 ;; 11034 11035 sysv4.3*) 11036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11037 hardcode_shlibpath_var=no 11038 export_dynamic_flag_spec='-Bexport' 11039 ;; 11040 11041 sysv4*MP*) 11042 if test -d /usr/nec; then 11043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11044 hardcode_shlibpath_var=no 11045 runpath_var=LD_RUN_PATH 11046 hardcode_runpath_var=yes 11047 ld_shlibs=yes 11048 fi 11049 ;; 11050 11051 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11052 no_undefined_flag='$wl-z,text' 11053 archive_cmds_need_lc=no 11054 hardcode_shlibpath_var=no 11055 runpath_var='LD_RUN_PATH' 11056 11057 if test yes = "$GCC"; then 11058 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11059 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11060 else 11061 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11062 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11063 fi 11064 ;; 11065 11066 sysv5* | sco3.2v5* | sco5v6*) 11067 # Note: We CANNOT use -z defs as we might desire, because we do not 11068 # link with -lc, and that would cause any symbols used from libc to 11069 # always be unresolved, which means just about no library would 11070 # ever link correctly. If we're not using GNU ld we use -z text 11071 # though, which does catch some bad symbols but isn't as heavy-handed 11072 # as -z defs. 11073 no_undefined_flag='$wl-z,text' 11074 allow_undefined_flag='$wl-z,nodefs' 11075 archive_cmds_need_lc=no 11076 hardcode_shlibpath_var=no 11077 hardcode_libdir_flag_spec='$wl-R,$libdir' 11078 hardcode_libdir_separator=':' 11079 link_all_deplibs=yes 11080 export_dynamic_flag_spec='$wl-Bexport' 11081 runpath_var='LD_RUN_PATH' 11082 11083 if test yes = "$GCC"; then 11084 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11085 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11086 else 11087 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11088 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11089 fi 11090 ;; 11091 11092 uts4*) 11093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11094 hardcode_libdir_flag_spec='-L$libdir' 11095 hardcode_shlibpath_var=no 11096 ;; 11097 11098 *) 11099 ld_shlibs=no 11100 ;; 11101 esac 11102 11103 if test sni = "$host_vendor"; then 11104 case $host in 11105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11106 export_dynamic_flag_spec='$wl-Blargedynsym' 11107 ;; 11108 esac 11109 fi 11110 fi 11111 11112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11113$as_echo "$ld_shlibs" >&6; } 11114test no = "$ld_shlibs" && can_build_shared=no 11115 11116with_gnu_ld=$with_gnu_ld 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132# 11133# Do we need to explicitly link libc? 11134# 11135case "x$archive_cmds_need_lc" in 11136x|xyes) 11137 # Assume -lc should be added 11138 archive_cmds_need_lc=yes 11139 11140 if test yes,yes = "$GCC,$enable_shared"; then 11141 case $archive_cmds in 11142 *'~'*) 11143 # FIXME: we may have to deal with multi-command sequences. 11144 ;; 11145 '$CC '*) 11146 # Test whether the compiler implicitly links with -lc since on some 11147 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11148 # to ld, don't add -lc before -lgcc. 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11150$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11151if ${lt_cv_archive_cmds_need_lc+:} false; then : 11152 $as_echo_n "(cached) " >&6 11153else 11154 $RM conftest* 11155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11156 11157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11158 (eval $ac_compile) 2>&5 11159 ac_status=$? 11160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11161 test $ac_status = 0; } 2>conftest.err; then 11162 soname=conftest 11163 lib=conftest 11164 libobjs=conftest.$ac_objext 11165 deplibs= 11166 wl=$lt_prog_compiler_wl 11167 pic_flag=$lt_prog_compiler_pic 11168 compiler_flags=-v 11169 linker_flags=-v 11170 verstring= 11171 output_objdir=. 11172 libname=conftest 11173 lt_save_allow_undefined_flag=$allow_undefined_flag 11174 allow_undefined_flag= 11175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11176 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11177 ac_status=$? 11178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11179 test $ac_status = 0; } 11180 then 11181 lt_cv_archive_cmds_need_lc=no 11182 else 11183 lt_cv_archive_cmds_need_lc=yes 11184 fi 11185 allow_undefined_flag=$lt_save_allow_undefined_flag 11186 else 11187 cat conftest.err 1>&5 11188 fi 11189 $RM conftest* 11190 11191fi 11192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11193$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11194 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11195 ;; 11196 esac 11197 fi 11198 ;; 11199esac 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11353$as_echo_n "checking dynamic linker characteristics... " >&6; } 11354 11355if test yes = "$GCC"; then 11356 case $host_os in 11357 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11358 *) lt_awk_arg='/^libraries:/' ;; 11359 esac 11360 case $host_os in 11361 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11362 *) lt_sed_strip_eq='s|=/|/|g' ;; 11363 esac 11364 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11365 case $lt_search_path_spec in 11366 *\;*) 11367 # if the path contains ";" then we assume it to be the separator 11368 # otherwise default to the standard path separator (i.e. ":") - it is 11369 # assumed that no part of a normal pathname contains ";" but that should 11370 # okay in the real world where ";" in dirpaths is itself problematic. 11371 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11372 ;; 11373 *) 11374 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11375 ;; 11376 esac 11377 # Ok, now we have the path, separated by spaces, we can step through it 11378 # and add multilib dir if necessary... 11379 lt_tmp_lt_search_path_spec= 11380 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11381 # ...but if some path component already ends with the multilib dir we assume 11382 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11383 case "$lt_multi_os_dir; $lt_search_path_spec " in 11384 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11385 lt_multi_os_dir= 11386 ;; 11387 esac 11388 for lt_sys_path in $lt_search_path_spec; do 11389 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11390 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11391 elif test -n "$lt_multi_os_dir"; then 11392 test -d "$lt_sys_path" && \ 11393 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11394 fi 11395 done 11396 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11397BEGIN {RS = " "; FS = "/|\n";} { 11398 lt_foo = ""; 11399 lt_count = 0; 11400 for (lt_i = NF; lt_i > 0; lt_i--) { 11401 if ($lt_i != "" && $lt_i != ".") { 11402 if ($lt_i == "..") { 11403 lt_count++; 11404 } else { 11405 if (lt_count == 0) { 11406 lt_foo = "/" $lt_i lt_foo; 11407 } else { 11408 lt_count--; 11409 } 11410 } 11411 } 11412 } 11413 if (lt_foo != "") { lt_freq[lt_foo]++; } 11414 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11415}'` 11416 # AWK program above erroneously prepends '/' to C:/dos/paths 11417 # for these hosts. 11418 case $host_os in 11419 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11420 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11421 esac 11422 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11423else 11424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11425fi 11426library_names_spec= 11427libname_spec='lib$name' 11428soname_spec= 11429shrext_cmds=.so 11430postinstall_cmds= 11431postuninstall_cmds= 11432finish_cmds= 11433finish_eval= 11434shlibpath_var= 11435shlibpath_overrides_runpath=unknown 11436version_type=none 11437dynamic_linker="$host_os ld.so" 11438sys_lib_dlsearch_path_spec="/lib /usr/lib" 11439need_lib_prefix=unknown 11440hardcode_into_libs=no 11441 11442# when you set need_version to no, make sure it does not cause -set_version 11443# flags to be left without arguments 11444need_version=unknown 11445 11446 11447 11448case $host_os in 11449aix3*) 11450 version_type=linux # correct to gnu/linux during the next big refactor 11451 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11452 shlibpath_var=LIBPATH 11453 11454 # AIX 3 has no versioning support, so we append a major version to the name. 11455 soname_spec='$libname$release$shared_ext$major' 11456 ;; 11457 11458aix[4-9]*) 11459 version_type=linux # correct to gnu/linux during the next big refactor 11460 need_lib_prefix=no 11461 need_version=no 11462 hardcode_into_libs=yes 11463 if test ia64 = "$host_cpu"; then 11464 # AIX 5 supports IA64 11465 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11466 shlibpath_var=LD_LIBRARY_PATH 11467 else 11468 # With GCC up to 2.95.x, collect2 would create an import file 11469 # for dependence libraries. The import file would start with 11470 # the line '#! .'. This would cause the generated library to 11471 # depend on '.', always an invalid library. This was fixed in 11472 # development snapshots of GCC prior to 3.0. 11473 case $host_os in 11474 aix4 | aix4.[01] | aix4.[01].*) 11475 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11476 echo ' yes ' 11477 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11478 : 11479 else 11480 can_build_shared=no 11481 fi 11482 ;; 11483 esac 11484 # Using Import Files as archive members, it is possible to support 11485 # filename-based versioning of shared library archives on AIX. While 11486 # this would work for both with and without runtime linking, it will 11487 # prevent static linking of such archives. So we do filename-based 11488 # shared library versioning with .so extension only, which is used 11489 # when both runtime linking and shared linking is enabled. 11490 # Unfortunately, runtime linking may impact performance, so we do 11491 # not want this to be the default eventually. Also, we use the 11492 # versioned .so libs for executables only if there is the -brtl 11493 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11494 # To allow for filename-based versioning support, we need to create 11495 # libNAME.so.V as an archive file, containing: 11496 # *) an Import File, referring to the versioned filename of the 11497 # archive as well as the shared archive member, telling the 11498 # bitwidth (32 or 64) of that shared object, and providing the 11499 # list of exported symbols of that shared object, eventually 11500 # decorated with the 'weak' keyword 11501 # *) the shared object with the F_LOADONLY flag set, to really avoid 11502 # it being seen by the linker. 11503 # At run time we better use the real file rather than another symlink, 11504 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11505 11506 case $with_aix_soname,$aix_use_runtimelinking in 11507 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11508 # soname into executable. Probably we can add versioning support to 11509 # collect2, so additional links can be useful in future. 11510 aix,yes) # traditional libtool 11511 dynamic_linker='AIX unversionable lib.so' 11512 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11513 # instead of lib<name>.a to let people know that these are not 11514 # typical AIX shared libraries. 11515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11516 ;; 11517 aix,no) # traditional AIX only 11518 dynamic_linker='AIX lib.a(lib.so.V)' 11519 # We preserve .a as extension for shared libraries through AIX4.2 11520 # and later when we are not doing run time linking. 11521 library_names_spec='$libname$release.a $libname.a' 11522 soname_spec='$libname$release$shared_ext$major' 11523 ;; 11524 svr4,*) # full svr4 only 11525 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11526 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11527 # We do not specify a path in Import Files, so LIBPATH fires. 11528 shlibpath_overrides_runpath=yes 11529 ;; 11530 *,yes) # both, prefer svr4 11531 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11532 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11533 # unpreferred sharedlib libNAME.a needs extra handling 11534 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11535 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11536 # We do not specify a path in Import Files, so LIBPATH fires. 11537 shlibpath_overrides_runpath=yes 11538 ;; 11539 *,no) # both, prefer aix 11540 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11541 library_names_spec='$libname$release.a $libname.a' 11542 soname_spec='$libname$release$shared_ext$major' 11543 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11544 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11545 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11546 ;; 11547 esac 11548 shlibpath_var=LIBPATH 11549 fi 11550 ;; 11551 11552amigaos*) 11553 case $host_cpu in 11554 powerpc) 11555 # Since July 2007 AmigaOS4 officially supports .so libraries. 11556 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11558 ;; 11559 m68k) 11560 library_names_spec='$libname.ixlibrary $libname.a' 11561 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11562 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11563 ;; 11564 esac 11565 ;; 11566 11567beos*) 11568 library_names_spec='$libname$shared_ext' 11569 dynamic_linker="$host_os ld.so" 11570 shlibpath_var=LIBRARY_PATH 11571 ;; 11572 11573bsdi[45]*) 11574 version_type=linux # correct to gnu/linux during the next big refactor 11575 need_version=no 11576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11577 soname_spec='$libname$release$shared_ext$major' 11578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11579 shlibpath_var=LD_LIBRARY_PATH 11580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11582 # the default ld.so.conf also contains /usr/contrib/lib and 11583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11584 # libtool to hard-code these into programs 11585 ;; 11586 11587cygwin* | mingw* | pw32* | cegcc*) 11588 version_type=windows 11589 shrext_cmds=.dll 11590 need_version=no 11591 need_lib_prefix=no 11592 11593 case $GCC,$cc_basename in 11594 yes,*) 11595 # gcc 11596 library_names_spec='$libname.dll.a' 11597 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11598 postinstall_cmds='base_file=`basename \$file`~ 11599 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11600 dldir=$destdir/`dirname \$dlpath`~ 11601 test -d \$dldir || mkdir -p \$dldir~ 11602 $install_prog $dir/$dlname \$dldir/$dlname~ 11603 chmod a+x \$dldir/$dlname~ 11604 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11605 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11606 fi' 11607 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11608 dlpath=$dir/\$dldll~ 11609 $RM \$dlpath' 11610 shlibpath_overrides_runpath=yes 11611 11612 case $host_os in 11613 cygwin*) 11614 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11615 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11616 11617 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11618 ;; 11619 mingw* | cegcc*) 11620 # MinGW DLLs use traditional 'lib' prefix 11621 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11622 ;; 11623 pw32*) 11624 # pw32 DLLs use 'pw' prefix rather than 'lib' 11625 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11626 ;; 11627 esac 11628 dynamic_linker='Win32 ld.exe' 11629 ;; 11630 11631 *,cl*) 11632 # Native MSVC 11633 libname_spec='$name' 11634 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11635 library_names_spec='$libname.dll.lib' 11636 11637 case $build_os in 11638 mingw*) 11639 sys_lib_search_path_spec= 11640 lt_save_ifs=$IFS 11641 IFS=';' 11642 for lt_path in $LIB 11643 do 11644 IFS=$lt_save_ifs 11645 # Let DOS variable expansion print the short 8.3 style file name. 11646 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11647 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11648 done 11649 IFS=$lt_save_ifs 11650 # Convert to MSYS style. 11651 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11652 ;; 11653 cygwin*) 11654 # Convert to unix form, then to dos form, then back to unix form 11655 # but this time dos style (no spaces!) so that the unix form looks 11656 # like /cygdrive/c/PROGRA~1:/cygdr... 11657 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11658 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11659 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11660 ;; 11661 *) 11662 sys_lib_search_path_spec=$LIB 11663 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11664 # It is most probably a Windows format PATH. 11665 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11666 else 11667 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11668 fi 11669 # FIXME: find the short name or the path components, as spaces are 11670 # common. (e.g. "Program Files" -> "PROGRA~1") 11671 ;; 11672 esac 11673 11674 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11675 postinstall_cmds='base_file=`basename \$file`~ 11676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11677 dldir=$destdir/`dirname \$dlpath`~ 11678 test -d \$dldir || mkdir -p \$dldir~ 11679 $install_prog $dir/$dlname \$dldir/$dlname' 11680 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11681 dlpath=$dir/\$dldll~ 11682 $RM \$dlpath' 11683 shlibpath_overrides_runpath=yes 11684 dynamic_linker='Win32 link.exe' 11685 ;; 11686 11687 *) 11688 # Assume MSVC wrapper 11689 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11690 dynamic_linker='Win32 ld.exe' 11691 ;; 11692 esac 11693 # FIXME: first we should search . and the directory the executable is in 11694 shlibpath_var=PATH 11695 ;; 11696 11697darwin* | rhapsody*) 11698 dynamic_linker="$host_os dyld" 11699 version_type=darwin 11700 need_lib_prefix=no 11701 need_version=no 11702 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11703 soname_spec='$libname$release$major$shared_ext' 11704 shlibpath_overrides_runpath=yes 11705 shlibpath_var=DYLD_LIBRARY_PATH 11706 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11707 11708 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11709 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11710 ;; 11711 11712dgux*) 11713 version_type=linux # correct to gnu/linux during the next big refactor 11714 need_lib_prefix=no 11715 need_version=no 11716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11717 soname_spec='$libname$release$shared_ext$major' 11718 shlibpath_var=LD_LIBRARY_PATH 11719 ;; 11720 11721freebsd* | dragonfly*) 11722 # DragonFly does not have aout. When/if they implement a new 11723 # versioning mechanism, adjust this. 11724 if test -x /usr/bin/objformat; then 11725 objformat=`/usr/bin/objformat` 11726 else 11727 case $host_os in 11728 freebsd[23].*) objformat=aout ;; 11729 *) objformat=elf ;; 11730 esac 11731 fi 11732 version_type=freebsd-$objformat 11733 case $version_type in 11734 freebsd-elf*) 11735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11736 soname_spec='$libname$release$shared_ext$major' 11737 need_version=no 11738 need_lib_prefix=no 11739 ;; 11740 freebsd-*) 11741 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11742 need_version=yes 11743 ;; 11744 esac 11745 shlibpath_var=LD_LIBRARY_PATH 11746 case $host_os in 11747 freebsd2.*) 11748 shlibpath_overrides_runpath=yes 11749 ;; 11750 freebsd3.[01]* | freebsdelf3.[01]*) 11751 shlibpath_overrides_runpath=yes 11752 hardcode_into_libs=yes 11753 ;; 11754 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11755 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11756 shlibpath_overrides_runpath=no 11757 hardcode_into_libs=yes 11758 ;; 11759 *) # from 4.6 on, and DragonFly 11760 shlibpath_overrides_runpath=yes 11761 hardcode_into_libs=yes 11762 ;; 11763 esac 11764 ;; 11765 11766haiku*) 11767 version_type=linux # correct to gnu/linux during the next big refactor 11768 need_lib_prefix=no 11769 need_version=no 11770 dynamic_linker="$host_os runtime_loader" 11771 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11772 soname_spec='$libname$release$shared_ext$major' 11773 shlibpath_var=LIBRARY_PATH 11774 shlibpath_overrides_runpath=no 11775 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11776 hardcode_into_libs=yes 11777 ;; 11778 11779hpux9* | hpux10* | hpux11*) 11780 # Give a soname corresponding to the major version so that dld.sl refuses to 11781 # link against other versions. 11782 version_type=sunos 11783 need_lib_prefix=no 11784 need_version=no 11785 case $host_cpu in 11786 ia64*) 11787 shrext_cmds='.so' 11788 hardcode_into_libs=yes 11789 dynamic_linker="$host_os dld.so" 11790 shlibpath_var=LD_LIBRARY_PATH 11791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11793 soname_spec='$libname$release$shared_ext$major' 11794 if test 32 = "$HPUX_IA64_MODE"; then 11795 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11796 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11797 else 11798 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11799 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11800 fi 11801 ;; 11802 hppa*64*) 11803 shrext_cmds='.sl' 11804 hardcode_into_libs=yes 11805 dynamic_linker="$host_os dld.sl" 11806 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11809 soname_spec='$libname$release$shared_ext$major' 11810 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11812 ;; 11813 *) 11814 shrext_cmds='.sl' 11815 dynamic_linker="$host_os dld.sl" 11816 shlibpath_var=SHLIB_PATH 11817 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11819 soname_spec='$libname$release$shared_ext$major' 11820 ;; 11821 esac 11822 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11823 postinstall_cmds='chmod 555 $lib' 11824 # or fails outright, so override atomically: 11825 install_override_mode=555 11826 ;; 11827 11828interix[3-9]*) 11829 version_type=linux # correct to gnu/linux during the next big refactor 11830 need_lib_prefix=no 11831 need_version=no 11832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11833 soname_spec='$libname$release$shared_ext$major' 11834 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11835 shlibpath_var=LD_LIBRARY_PATH 11836 shlibpath_overrides_runpath=no 11837 hardcode_into_libs=yes 11838 ;; 11839 11840irix5* | irix6* | nonstopux*) 11841 case $host_os in 11842 nonstopux*) version_type=nonstopux ;; 11843 *) 11844 if test yes = "$lt_cv_prog_gnu_ld"; then 11845 version_type=linux # correct to gnu/linux during the next big refactor 11846 else 11847 version_type=irix 11848 fi ;; 11849 esac 11850 need_lib_prefix=no 11851 need_version=no 11852 soname_spec='$libname$release$shared_ext$major' 11853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11854 case $host_os in 11855 irix5* | nonstopux*) 11856 libsuff= shlibsuff= 11857 ;; 11858 *) 11859 case $LD in # libtool.m4 will add one of these switches to LD 11860 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11861 libsuff= shlibsuff= libmagic=32-bit;; 11862 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11863 libsuff=32 shlibsuff=N32 libmagic=N32;; 11864 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11865 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11866 *) libsuff= shlibsuff= libmagic=never-match;; 11867 esac 11868 ;; 11869 esac 11870 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11871 shlibpath_overrides_runpath=no 11872 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11873 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11874 hardcode_into_libs=yes 11875 ;; 11876 11877# No shared lib support for Linux oldld, aout, or coff. 11878linux*oldld* | linux*aout* | linux*coff*) 11879 dynamic_linker=no 11880 ;; 11881 11882linux*android*) 11883 version_type=none # Android doesn't support versioned libraries. 11884 need_lib_prefix=no 11885 need_version=no 11886 library_names_spec='$libname$release$shared_ext' 11887 soname_spec='$libname$release$shared_ext' 11888 finish_cmds= 11889 shlibpath_var=LD_LIBRARY_PATH 11890 shlibpath_overrides_runpath=yes 11891 11892 # This implies no fast_install, which is unacceptable. 11893 # Some rework will be needed to allow for fast_install 11894 # before this can be enabled. 11895 hardcode_into_libs=yes 11896 11897 dynamic_linker='Android linker' 11898 # Don't embed -rpath directories since the linker doesn't support them. 11899 hardcode_libdir_flag_spec='-L$libdir' 11900 ;; 11901 11902# This must be glibc/ELF. 11903linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11904 version_type=linux # correct to gnu/linux during the next big refactor 11905 need_lib_prefix=no 11906 need_version=no 11907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11908 soname_spec='$libname$release$shared_ext$major' 11909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11910 shlibpath_var=LD_LIBRARY_PATH 11911 shlibpath_overrides_runpath=no 11912 11913 # Some binutils ld are patched to set DT_RUNPATH 11914 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11915 $as_echo_n "(cached) " >&6 11916else 11917 lt_cv_shlibpath_overrides_runpath=no 11918 save_LDFLAGS=$LDFLAGS 11919 save_libdir=$libdir 11920 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11921 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11923/* end confdefs.h. */ 11924 11925int 11926main () 11927{ 11928 11929 ; 11930 return 0; 11931} 11932_ACEOF 11933if ac_fn_c_try_link "$LINENO"; then : 11934 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11935 lt_cv_shlibpath_overrides_runpath=yes 11936fi 11937fi 11938rm -f core conftest.err conftest.$ac_objext \ 11939 conftest$ac_exeext conftest.$ac_ext 11940 LDFLAGS=$save_LDFLAGS 11941 libdir=$save_libdir 11942 11943fi 11944 11945 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11946 11947 # This implies no fast_install, which is unacceptable. 11948 # Some rework will be needed to allow for fast_install 11949 # before this can be enabled. 11950 hardcode_into_libs=yes 11951 11952 # Ideally, we could use ldconfig to report *all* directores which are 11953 # searched for libraries, however this is still not possible. Aside from not 11954 # being certain /sbin/ldconfig is available, command 11955 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11956 # even though it is searched at run-time. Try to do the best guess by 11957 # appending ld.so.conf contents (and includes) to the search path. 11958 if test -f /etc/ld.so.conf; then 11959 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' ' '` 11960 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11961 fi 11962 11963 # We used to test for /lib/ld.so.1 and disable shared libraries on 11964 # powerpc, because MkLinux only supported shared libraries with the 11965 # GNU dynamic linker. Since this was broken with cross compilers, 11966 # most powerpc-linux boxes support dynamic linking these days and 11967 # people can always --disable-shared, the test was removed, and we 11968 # assume the GNU/Linux dynamic linker is in use. 11969 dynamic_linker='GNU/Linux ld.so' 11970 ;; 11971 11972netbsdelf*-gnu) 11973 version_type=linux 11974 need_lib_prefix=no 11975 need_version=no 11976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11977 soname_spec='${libname}${release}${shared_ext}$major' 11978 shlibpath_var=LD_LIBRARY_PATH 11979 shlibpath_overrides_runpath=no 11980 hardcode_into_libs=yes 11981 dynamic_linker='NetBSD ld.elf_so' 11982 ;; 11983 11984netbsd*) 11985 version_type=sunos 11986 need_lib_prefix=no 11987 need_version=no 11988 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11989 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11991 dynamic_linker='NetBSD (a.out) ld.so' 11992 else 11993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11994 soname_spec='$libname$release$shared_ext$major' 11995 dynamic_linker='NetBSD ld.elf_so' 11996 fi 11997 shlibpath_var=LD_LIBRARY_PATH 11998 shlibpath_overrides_runpath=yes 11999 hardcode_into_libs=yes 12000 ;; 12001 12002newsos6) 12003 version_type=linux # correct to gnu/linux during the next big refactor 12004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12005 shlibpath_var=LD_LIBRARY_PATH 12006 shlibpath_overrides_runpath=yes 12007 ;; 12008 12009*nto* | *qnx*) 12010 version_type=qnx 12011 need_lib_prefix=no 12012 need_version=no 12013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12014 soname_spec='$libname$release$shared_ext$major' 12015 shlibpath_var=LD_LIBRARY_PATH 12016 shlibpath_overrides_runpath=no 12017 hardcode_into_libs=yes 12018 dynamic_linker='ldqnx.so' 12019 ;; 12020 12021openbsd* | bitrig*) 12022 version_type=sunos 12023 sys_lib_dlsearch_path_spec=/usr/lib 12024 need_lib_prefix=no 12025 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12026 need_version=no 12027 else 12028 need_version=yes 12029 fi 12030 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12031 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12032 shlibpath_var=LD_LIBRARY_PATH 12033 shlibpath_overrides_runpath=yes 12034 ;; 12035 12036os2*) 12037 libname_spec='$name' 12038 version_type=windows 12039 shrext_cmds=.dll 12040 need_version=no 12041 need_lib_prefix=no 12042 # OS/2 can only load a DLL with a base name of 8 characters or less. 12043 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12044 v=$($ECHO $release$versuffix | tr -d .-); 12045 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12046 $ECHO $n$v`$shared_ext' 12047 library_names_spec='${libname}_dll.$libext' 12048 dynamic_linker='OS/2 ld.exe' 12049 shlibpath_var=BEGINLIBPATH 12050 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12052 postinstall_cmds='base_file=`basename \$file`~ 12053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12054 dldir=$destdir/`dirname \$dlpath`~ 12055 test -d \$dldir || mkdir -p \$dldir~ 12056 $install_prog $dir/$dlname \$dldir/$dlname~ 12057 chmod a+x \$dldir/$dlname~ 12058 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12059 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12060 fi' 12061 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12062 dlpath=$dir/\$dldll~ 12063 $RM \$dlpath' 12064 ;; 12065 12066osf3* | osf4* | osf5*) 12067 version_type=osf 12068 need_lib_prefix=no 12069 need_version=no 12070 soname_spec='$libname$release$shared_ext$major' 12071 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12072 shlibpath_var=LD_LIBRARY_PATH 12073 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12074 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12075 ;; 12076 12077rdos*) 12078 dynamic_linker=no 12079 ;; 12080 12081solaris*) 12082 version_type=linux # correct to gnu/linux during the next big refactor 12083 need_lib_prefix=no 12084 need_version=no 12085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12086 soname_spec='$libname$release$shared_ext$major' 12087 shlibpath_var=LD_LIBRARY_PATH 12088 shlibpath_overrides_runpath=yes 12089 hardcode_into_libs=yes 12090 # ldd complains unless libraries are executable 12091 postinstall_cmds='chmod +x $lib' 12092 ;; 12093 12094sunos4*) 12095 version_type=sunos 12096 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12097 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12098 shlibpath_var=LD_LIBRARY_PATH 12099 shlibpath_overrides_runpath=yes 12100 if test yes = "$with_gnu_ld"; then 12101 need_lib_prefix=no 12102 fi 12103 need_version=yes 12104 ;; 12105 12106sysv4 | sysv4.3*) 12107 version_type=linux # correct to gnu/linux during the next big refactor 12108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12109 soname_spec='$libname$release$shared_ext$major' 12110 shlibpath_var=LD_LIBRARY_PATH 12111 case $host_vendor in 12112 sni) 12113 shlibpath_overrides_runpath=no 12114 need_lib_prefix=no 12115 runpath_var=LD_RUN_PATH 12116 ;; 12117 siemens) 12118 need_lib_prefix=no 12119 ;; 12120 motorola) 12121 need_lib_prefix=no 12122 need_version=no 12123 shlibpath_overrides_runpath=no 12124 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12125 ;; 12126 esac 12127 ;; 12128 12129sysv4*MP*) 12130 if test -d /usr/nec; then 12131 version_type=linux # correct to gnu/linux during the next big refactor 12132 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12133 soname_spec='$libname$shared_ext.$major' 12134 shlibpath_var=LD_LIBRARY_PATH 12135 fi 12136 ;; 12137 12138sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12139 version_type=sco 12140 need_lib_prefix=no 12141 need_version=no 12142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12143 soname_spec='$libname$release$shared_ext$major' 12144 shlibpath_var=LD_LIBRARY_PATH 12145 shlibpath_overrides_runpath=yes 12146 hardcode_into_libs=yes 12147 if test yes = "$with_gnu_ld"; then 12148 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12149 else 12150 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12151 case $host_os in 12152 sco3.2v5*) 12153 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12154 ;; 12155 esac 12156 fi 12157 sys_lib_dlsearch_path_spec='/usr/lib' 12158 ;; 12159 12160tpf*) 12161 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12162 version_type=linux # correct to gnu/linux during the next big refactor 12163 need_lib_prefix=no 12164 need_version=no 12165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12166 shlibpath_var=LD_LIBRARY_PATH 12167 shlibpath_overrides_runpath=no 12168 hardcode_into_libs=yes 12169 ;; 12170 12171uts4*) 12172 version_type=linux # correct to gnu/linux during the next big refactor 12173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12174 soname_spec='$libname$release$shared_ext$major' 12175 shlibpath_var=LD_LIBRARY_PATH 12176 ;; 12177 12178*) 12179 dynamic_linker=no 12180 ;; 12181esac 12182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12183$as_echo "$dynamic_linker" >&6; } 12184test no = "$dynamic_linker" && can_build_shared=no 12185 12186variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12187if test yes = "$GCC"; then 12188 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12189fi 12190 12191if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12192 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12193fi 12194 12195if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12196 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12197fi 12198 12199# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12200configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12201 12202# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12203func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12204 12205# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12206configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12305$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12306hardcode_action= 12307if test -n "$hardcode_libdir_flag_spec" || 12308 test -n "$runpath_var" || 12309 test yes = "$hardcode_automatic"; then 12310 12311 # We can hardcode non-existent directories. 12312 if test no != "$hardcode_direct" && 12313 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12314 # have to relink, otherwise we might link with an installed library 12315 # when we should be linking with a yet-to-be-installed one 12316 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12317 test no != "$hardcode_minus_L"; then 12318 # Linking always hardcodes the temporary library directory. 12319 hardcode_action=relink 12320 else 12321 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12322 hardcode_action=immediate 12323 fi 12324else 12325 # We cannot hardcode anything, or else we can only hardcode existing 12326 # directories. 12327 hardcode_action=unsupported 12328fi 12329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12330$as_echo "$hardcode_action" >&6; } 12331 12332if test relink = "$hardcode_action" || 12333 test yes = "$inherit_rpath"; then 12334 # Fast installation is not supported 12335 enable_fast_install=no 12336elif test yes = "$shlibpath_overrides_runpath" || 12337 test no = "$enable_shared"; then 12338 # Fast installation is not necessary 12339 enable_fast_install=needless 12340fi 12341 12342 12343 12344 12345 12346 12347 if test yes != "$enable_dlopen"; then 12348 enable_dlopen=unknown 12349 enable_dlopen_self=unknown 12350 enable_dlopen_self_static=unknown 12351else 12352 lt_cv_dlopen=no 12353 lt_cv_dlopen_libs= 12354 12355 case $host_os in 12356 beos*) 12357 lt_cv_dlopen=load_add_on 12358 lt_cv_dlopen_libs= 12359 lt_cv_dlopen_self=yes 12360 ;; 12361 12362 mingw* | pw32* | cegcc*) 12363 lt_cv_dlopen=LoadLibrary 12364 lt_cv_dlopen_libs= 12365 ;; 12366 12367 cygwin*) 12368 lt_cv_dlopen=dlopen 12369 lt_cv_dlopen_libs= 12370 ;; 12371 12372 darwin*) 12373 # if libdl is installed we need to link against it 12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12375$as_echo_n "checking for dlopen in -ldl... " >&6; } 12376if ${ac_cv_lib_dl_dlopen+:} false; then : 12377 $as_echo_n "(cached) " >&6 12378else 12379 ac_check_lib_save_LIBS=$LIBS 12380LIBS="-ldl $LIBS" 12381cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12382/* end confdefs.h. */ 12383 12384/* Override any GCC internal prototype to avoid an error. 12385 Use char because int might match the return type of a GCC 12386 builtin and then its argument prototype would still apply. */ 12387#ifdef __cplusplus 12388extern "C" 12389#endif 12390char dlopen (); 12391int 12392main () 12393{ 12394return dlopen (); 12395 ; 12396 return 0; 12397} 12398_ACEOF 12399if ac_fn_c_try_link "$LINENO"; then : 12400 ac_cv_lib_dl_dlopen=yes 12401else 12402 ac_cv_lib_dl_dlopen=no 12403fi 12404rm -f core conftest.err conftest.$ac_objext \ 12405 conftest$ac_exeext conftest.$ac_ext 12406LIBS=$ac_check_lib_save_LIBS 12407fi 12408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12409$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12410if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12411 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12412else 12413 12414 lt_cv_dlopen=dyld 12415 lt_cv_dlopen_libs= 12416 lt_cv_dlopen_self=yes 12417 12418fi 12419 12420 ;; 12421 12422 tpf*) 12423 # Don't try to run any link tests for TPF. We know it's impossible 12424 # because TPF is a cross-compiler, and we know how we open DSOs. 12425 lt_cv_dlopen=dlopen 12426 lt_cv_dlopen_libs= 12427 lt_cv_dlopen_self=no 12428 ;; 12429 12430 *) 12431 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12432if test "x$ac_cv_func_shl_load" = xyes; then : 12433 lt_cv_dlopen=shl_load 12434else 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12436$as_echo_n "checking for shl_load in -ldld... " >&6; } 12437if ${ac_cv_lib_dld_shl_load+:} false; then : 12438 $as_echo_n "(cached) " >&6 12439else 12440 ac_check_lib_save_LIBS=$LIBS 12441LIBS="-ldld $LIBS" 12442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12443/* end confdefs.h. */ 12444 12445/* Override any GCC internal prototype to avoid an error. 12446 Use char because int might match the return type of a GCC 12447 builtin and then its argument prototype would still apply. */ 12448#ifdef __cplusplus 12449extern "C" 12450#endif 12451char shl_load (); 12452int 12453main () 12454{ 12455return shl_load (); 12456 ; 12457 return 0; 12458} 12459_ACEOF 12460if ac_fn_c_try_link "$LINENO"; then : 12461 ac_cv_lib_dld_shl_load=yes 12462else 12463 ac_cv_lib_dld_shl_load=no 12464fi 12465rm -f core conftest.err conftest.$ac_objext \ 12466 conftest$ac_exeext conftest.$ac_ext 12467LIBS=$ac_check_lib_save_LIBS 12468fi 12469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12470$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12471if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12472 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12473else 12474 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12475if test "x$ac_cv_func_dlopen" = xyes; then : 12476 lt_cv_dlopen=dlopen 12477else 12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12479$as_echo_n "checking for dlopen in -ldl... " >&6; } 12480if ${ac_cv_lib_dl_dlopen+:} false; then : 12481 $as_echo_n "(cached) " >&6 12482else 12483 ac_check_lib_save_LIBS=$LIBS 12484LIBS="-ldl $LIBS" 12485cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12486/* end confdefs.h. */ 12487 12488/* Override any GCC internal prototype to avoid an error. 12489 Use char because int might match the return type of a GCC 12490 builtin and then its argument prototype would still apply. */ 12491#ifdef __cplusplus 12492extern "C" 12493#endif 12494char dlopen (); 12495int 12496main () 12497{ 12498return dlopen (); 12499 ; 12500 return 0; 12501} 12502_ACEOF 12503if ac_fn_c_try_link "$LINENO"; then : 12504 ac_cv_lib_dl_dlopen=yes 12505else 12506 ac_cv_lib_dl_dlopen=no 12507fi 12508rm -f core conftest.err conftest.$ac_objext \ 12509 conftest$ac_exeext conftest.$ac_ext 12510LIBS=$ac_check_lib_save_LIBS 12511fi 12512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12513$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12514if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12515 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12516else 12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12518$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12519if ${ac_cv_lib_svld_dlopen+:} false; then : 12520 $as_echo_n "(cached) " >&6 12521else 12522 ac_check_lib_save_LIBS=$LIBS 12523LIBS="-lsvld $LIBS" 12524cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12525/* end confdefs.h. */ 12526 12527/* Override any GCC internal prototype to avoid an error. 12528 Use char because int might match the return type of a GCC 12529 builtin and then its argument prototype would still apply. */ 12530#ifdef __cplusplus 12531extern "C" 12532#endif 12533char dlopen (); 12534int 12535main () 12536{ 12537return dlopen (); 12538 ; 12539 return 0; 12540} 12541_ACEOF 12542if ac_fn_c_try_link "$LINENO"; then : 12543 ac_cv_lib_svld_dlopen=yes 12544else 12545 ac_cv_lib_svld_dlopen=no 12546fi 12547rm -f core conftest.err conftest.$ac_objext \ 12548 conftest$ac_exeext conftest.$ac_ext 12549LIBS=$ac_check_lib_save_LIBS 12550fi 12551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12552$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12553if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12554 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12555else 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12557$as_echo_n "checking for dld_link in -ldld... " >&6; } 12558if ${ac_cv_lib_dld_dld_link+:} false; then : 12559 $as_echo_n "(cached) " >&6 12560else 12561 ac_check_lib_save_LIBS=$LIBS 12562LIBS="-ldld $LIBS" 12563cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12564/* end confdefs.h. */ 12565 12566/* Override any GCC internal prototype to avoid an error. 12567 Use char because int might match the return type of a GCC 12568 builtin and then its argument prototype would still apply. */ 12569#ifdef __cplusplus 12570extern "C" 12571#endif 12572char dld_link (); 12573int 12574main () 12575{ 12576return dld_link (); 12577 ; 12578 return 0; 12579} 12580_ACEOF 12581if ac_fn_c_try_link "$LINENO"; then : 12582 ac_cv_lib_dld_dld_link=yes 12583else 12584 ac_cv_lib_dld_dld_link=no 12585fi 12586rm -f core conftest.err conftest.$ac_objext \ 12587 conftest$ac_exeext conftest.$ac_ext 12588LIBS=$ac_check_lib_save_LIBS 12589fi 12590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12591$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12592if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12593 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12594fi 12595 12596 12597fi 12598 12599 12600fi 12601 12602 12603fi 12604 12605 12606fi 12607 12608 12609fi 12610 12611 ;; 12612 esac 12613 12614 if test no = "$lt_cv_dlopen"; then 12615 enable_dlopen=no 12616 else 12617 enable_dlopen=yes 12618 fi 12619 12620 case $lt_cv_dlopen in 12621 dlopen) 12622 save_CPPFLAGS=$CPPFLAGS 12623 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12624 12625 save_LDFLAGS=$LDFLAGS 12626 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12627 12628 save_LIBS=$LIBS 12629 LIBS="$lt_cv_dlopen_libs $LIBS" 12630 12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12632$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12633if ${lt_cv_dlopen_self+:} false; then : 12634 $as_echo_n "(cached) " >&6 12635else 12636 if test yes = "$cross_compiling"; then : 12637 lt_cv_dlopen_self=cross 12638else 12639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12640 lt_status=$lt_dlunknown 12641 cat > conftest.$ac_ext <<_LT_EOF 12642#line $LINENO "configure" 12643#include "confdefs.h" 12644 12645#if HAVE_DLFCN_H 12646#include <dlfcn.h> 12647#endif 12648 12649#include <stdio.h> 12650 12651#ifdef RTLD_GLOBAL 12652# define LT_DLGLOBAL RTLD_GLOBAL 12653#else 12654# ifdef DL_GLOBAL 12655# define LT_DLGLOBAL DL_GLOBAL 12656# else 12657# define LT_DLGLOBAL 0 12658# endif 12659#endif 12660 12661/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12662 find out it does not work in some platform. */ 12663#ifndef LT_DLLAZY_OR_NOW 12664# ifdef RTLD_LAZY 12665# define LT_DLLAZY_OR_NOW RTLD_LAZY 12666# else 12667# ifdef DL_LAZY 12668# define LT_DLLAZY_OR_NOW DL_LAZY 12669# else 12670# ifdef RTLD_NOW 12671# define LT_DLLAZY_OR_NOW RTLD_NOW 12672# else 12673# ifdef DL_NOW 12674# define LT_DLLAZY_OR_NOW DL_NOW 12675# else 12676# define LT_DLLAZY_OR_NOW 0 12677# endif 12678# endif 12679# endif 12680# endif 12681#endif 12682 12683/* When -fvisibility=hidden is used, assume the code has been annotated 12684 correspondingly for the symbols needed. */ 12685#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12686int fnord () __attribute__((visibility("default"))); 12687#endif 12688 12689int fnord () { return 42; } 12690int main () 12691{ 12692 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12693 int status = $lt_dlunknown; 12694 12695 if (self) 12696 { 12697 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12698 else 12699 { 12700 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12701 else puts (dlerror ()); 12702 } 12703 /* dlclose (self); */ 12704 } 12705 else 12706 puts (dlerror ()); 12707 12708 return status; 12709} 12710_LT_EOF 12711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12712 (eval $ac_link) 2>&5 12713 ac_status=$? 12714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12715 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12716 (./conftest; exit; ) >&5 2>/dev/null 12717 lt_status=$? 12718 case x$lt_status in 12719 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12720 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12721 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12722 esac 12723 else : 12724 # compilation failed 12725 lt_cv_dlopen_self=no 12726 fi 12727fi 12728rm -fr conftest* 12729 12730 12731fi 12732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12733$as_echo "$lt_cv_dlopen_self" >&6; } 12734 12735 if test yes = "$lt_cv_dlopen_self"; then 12736 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12738$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12739if ${lt_cv_dlopen_self_static+:} false; then : 12740 $as_echo_n "(cached) " >&6 12741else 12742 if test yes = "$cross_compiling"; then : 12743 lt_cv_dlopen_self_static=cross 12744else 12745 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12746 lt_status=$lt_dlunknown 12747 cat > conftest.$ac_ext <<_LT_EOF 12748#line $LINENO "configure" 12749#include "confdefs.h" 12750 12751#if HAVE_DLFCN_H 12752#include <dlfcn.h> 12753#endif 12754 12755#include <stdio.h> 12756 12757#ifdef RTLD_GLOBAL 12758# define LT_DLGLOBAL RTLD_GLOBAL 12759#else 12760# ifdef DL_GLOBAL 12761# define LT_DLGLOBAL DL_GLOBAL 12762# else 12763# define LT_DLGLOBAL 0 12764# endif 12765#endif 12766 12767/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12768 find out it does not work in some platform. */ 12769#ifndef LT_DLLAZY_OR_NOW 12770# ifdef RTLD_LAZY 12771# define LT_DLLAZY_OR_NOW RTLD_LAZY 12772# else 12773# ifdef DL_LAZY 12774# define LT_DLLAZY_OR_NOW DL_LAZY 12775# else 12776# ifdef RTLD_NOW 12777# define LT_DLLAZY_OR_NOW RTLD_NOW 12778# else 12779# ifdef DL_NOW 12780# define LT_DLLAZY_OR_NOW DL_NOW 12781# else 12782# define LT_DLLAZY_OR_NOW 0 12783# endif 12784# endif 12785# endif 12786# endif 12787#endif 12788 12789/* When -fvisibility=hidden is used, assume the code has been annotated 12790 correspondingly for the symbols needed. */ 12791#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12792int fnord () __attribute__((visibility("default"))); 12793#endif 12794 12795int fnord () { return 42; } 12796int main () 12797{ 12798 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12799 int status = $lt_dlunknown; 12800 12801 if (self) 12802 { 12803 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12804 else 12805 { 12806 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12807 else puts (dlerror ()); 12808 } 12809 /* dlclose (self); */ 12810 } 12811 else 12812 puts (dlerror ()); 12813 12814 return status; 12815} 12816_LT_EOF 12817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12818 (eval $ac_link) 2>&5 12819 ac_status=$? 12820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12821 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12822 (./conftest; exit; ) >&5 2>/dev/null 12823 lt_status=$? 12824 case x$lt_status in 12825 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12826 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12827 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12828 esac 12829 else : 12830 # compilation failed 12831 lt_cv_dlopen_self_static=no 12832 fi 12833fi 12834rm -fr conftest* 12835 12836 12837fi 12838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12839$as_echo "$lt_cv_dlopen_self_static" >&6; } 12840 fi 12841 12842 CPPFLAGS=$save_CPPFLAGS 12843 LDFLAGS=$save_LDFLAGS 12844 LIBS=$save_LIBS 12845 ;; 12846 esac 12847 12848 case $lt_cv_dlopen_self in 12849 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12850 *) enable_dlopen_self=unknown ;; 12851 esac 12852 12853 case $lt_cv_dlopen_self_static in 12854 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12855 *) enable_dlopen_self_static=unknown ;; 12856 esac 12857fi 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875striplib= 12876old_striplib= 12877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12878$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12879if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12880 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12881 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12883$as_echo "yes" >&6; } 12884else 12885# FIXME - insert some real tests, host_os isn't really good enough 12886 case $host_os in 12887 darwin*) 12888 if test -n "$STRIP"; then 12889 striplib="$STRIP -x" 12890 old_striplib="$STRIP -S" 12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12892$as_echo "yes" >&6; } 12893 else 12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12895$as_echo "no" >&6; } 12896 fi 12897 ;; 12898 *) 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12900$as_echo "no" >&6; } 12901 ;; 12902 esac 12903fi 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 # Report what library types will actually be built 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12918$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12920$as_echo "$can_build_shared" >&6; } 12921 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12923$as_echo_n "checking whether to build shared libraries... " >&6; } 12924 test no = "$can_build_shared" && enable_shared=no 12925 12926 # On AIX, shared libraries and static libraries use the same namespace, and 12927 # are all built from PIC. 12928 case $host_os in 12929 aix3*) 12930 test yes = "$enable_shared" && enable_static=no 12931 if test -n "$RANLIB"; then 12932 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12933 postinstall_cmds='$RANLIB $lib' 12934 fi 12935 ;; 12936 12937 aix[4-9]*) 12938 if test ia64 != "$host_cpu"; then 12939 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12940 yes,aix,yes) ;; # shared object as lib.so file only 12941 yes,svr4,*) ;; # shared object as lib.so archive member only 12942 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12943 esac 12944 fi 12945 ;; 12946 esac 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12948$as_echo "$enable_shared" >&6; } 12949 12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12951$as_echo_n "checking whether to build static libraries... " >&6; } 12952 # Make sure either enable_shared or enable_static is yes. 12953 test yes = "$enable_shared" || enable_static=yes 12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12955$as_echo "$enable_static" >&6; } 12956 12957 12958 12959 12960fi 12961ac_ext=c 12962ac_cpp='$CPP $CPPFLAGS' 12963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12965ac_compiler_gnu=$ac_cv_c_compiler_gnu 12966 12967CC=$lt_save_CC 12968 12969 if test -n "$CXX" && ( test no != "$CXX" && 12970 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12971 (test g++ != "$CXX"))); then 12972 ac_ext=cpp 12973ac_cpp='$CXXCPP $CPPFLAGS' 12974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12978$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12979if test -z "$CXXCPP"; then 12980 if ${ac_cv_prog_CXXCPP+:} false; then : 12981 $as_echo_n "(cached) " >&6 12982else 12983 # Double quotes because CXXCPP needs to be expanded 12984 for CXXCPP in "$CXX -E" "/lib/cpp" 12985 do 12986 ac_preproc_ok=false 12987for ac_cxx_preproc_warn_flag in '' yes 12988do 12989 # Use a header file that comes with gcc, so configuring glibc 12990 # with a fresh cross-compiler works. 12991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12992 # <limits.h> exists even on freestanding compilers. 12993 # On the NeXT, cc -E runs the code through the compiler's parser, 12994 # not just through cpp. "Syntax error" is here to catch this case. 12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12996/* end confdefs.h. */ 12997#ifdef __STDC__ 12998# include <limits.h> 12999#else 13000# include <assert.h> 13001#endif 13002 Syntax error 13003_ACEOF 13004if ac_fn_cxx_try_cpp "$LINENO"; then : 13005 13006else 13007 # Broken: fails on valid input. 13008continue 13009fi 13010rm -f conftest.err conftest.i conftest.$ac_ext 13011 13012 # OK, works on sane cases. Now check whether nonexistent headers 13013 # can be detected and how. 13014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13015/* end confdefs.h. */ 13016#include <ac_nonexistent.h> 13017_ACEOF 13018if ac_fn_cxx_try_cpp "$LINENO"; then : 13019 # Broken: success on invalid input. 13020continue 13021else 13022 # Passes both tests. 13023ac_preproc_ok=: 13024break 13025fi 13026rm -f conftest.err conftest.i conftest.$ac_ext 13027 13028done 13029# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13030rm -f conftest.i conftest.err conftest.$ac_ext 13031if $ac_preproc_ok; then : 13032 break 13033fi 13034 13035 done 13036 ac_cv_prog_CXXCPP=$CXXCPP 13037 13038fi 13039 CXXCPP=$ac_cv_prog_CXXCPP 13040else 13041 ac_cv_prog_CXXCPP=$CXXCPP 13042fi 13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13044$as_echo "$CXXCPP" >&6; } 13045ac_preproc_ok=false 13046for ac_cxx_preproc_warn_flag in '' yes 13047do 13048 # Use a header file that comes with gcc, so configuring glibc 13049 # with a fresh cross-compiler works. 13050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13051 # <limits.h> exists even on freestanding compilers. 13052 # On the NeXT, cc -E runs the code through the compiler's parser, 13053 # not just through cpp. "Syntax error" is here to catch this case. 13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13055/* end confdefs.h. */ 13056#ifdef __STDC__ 13057# include <limits.h> 13058#else 13059# include <assert.h> 13060#endif 13061 Syntax error 13062_ACEOF 13063if ac_fn_cxx_try_cpp "$LINENO"; then : 13064 13065else 13066 # Broken: fails on valid input. 13067continue 13068fi 13069rm -f conftest.err conftest.i conftest.$ac_ext 13070 13071 # OK, works on sane cases. Now check whether nonexistent headers 13072 # can be detected and how. 13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13074/* end confdefs.h. */ 13075#include <ac_nonexistent.h> 13076_ACEOF 13077if ac_fn_cxx_try_cpp "$LINENO"; then : 13078 # Broken: success on invalid input. 13079continue 13080else 13081 # Passes both tests. 13082ac_preproc_ok=: 13083break 13084fi 13085rm -f conftest.err conftest.i conftest.$ac_ext 13086 13087done 13088# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13089rm -f conftest.i conftest.err conftest.$ac_ext 13090if $ac_preproc_ok; then : 13091 13092else 13093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13095as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13096See \`config.log' for more details" "$LINENO" 5; } 13097fi 13098 13099ac_ext=c 13100ac_cpp='$CPP $CPPFLAGS' 13101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13103ac_compiler_gnu=$ac_cv_c_compiler_gnu 13104 13105else 13106 _lt_caught_CXX_error=yes 13107fi 13108 13109ac_ext=cpp 13110ac_cpp='$CXXCPP $CPPFLAGS' 13111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13114 13115archive_cmds_need_lc_CXX=no 13116allow_undefined_flag_CXX= 13117always_export_symbols_CXX=no 13118archive_expsym_cmds_CXX= 13119compiler_needs_object_CXX=no 13120export_dynamic_flag_spec_CXX= 13121hardcode_direct_CXX=no 13122hardcode_direct_absolute_CXX=no 13123hardcode_libdir_flag_spec_CXX= 13124hardcode_libdir_separator_CXX= 13125hardcode_minus_L_CXX=no 13126hardcode_shlibpath_var_CXX=unsupported 13127hardcode_automatic_CXX=no 13128inherit_rpath_CXX=no 13129module_cmds_CXX= 13130module_expsym_cmds_CXX= 13131link_all_deplibs_CXX=unknown 13132old_archive_cmds_CXX=$old_archive_cmds 13133reload_flag_CXX=$reload_flag 13134reload_cmds_CXX=$reload_cmds 13135no_undefined_flag_CXX= 13136whole_archive_flag_spec_CXX= 13137enable_shared_with_static_runtimes_CXX=no 13138 13139# Source file extension for C++ test sources. 13140ac_ext=cpp 13141 13142# Object file extension for compiled C++ test sources. 13143objext=o 13144objext_CXX=$objext 13145 13146# No sense in running all these tests if we already determined that 13147# the CXX compiler isn't working. Some variables (like enable_shared) 13148# are currently assumed to apply to all compilers on this platform, 13149# and will be corrupted by setting them based on a non-working compiler. 13150if test yes != "$_lt_caught_CXX_error"; then 13151 # Code to be used in simple compile tests 13152 lt_simple_compile_test_code="int some_variable = 0;" 13153 13154 # Code to be used in simple link tests 13155 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13156 13157 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13158 13159 13160 13161 13162 13163 13164# If no C compiler was specified, use CC. 13165LTCC=${LTCC-"$CC"} 13166 13167# If no C compiler flags were specified, use CFLAGS. 13168LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13169 13170# Allow CC to be a program name with arguments. 13171compiler=$CC 13172 13173 13174 # save warnings/boilerplate of simple test code 13175 ac_outfile=conftest.$ac_objext 13176echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13177eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13178_lt_compiler_boilerplate=`cat conftest.err` 13179$RM conftest* 13180 13181 ac_outfile=conftest.$ac_objext 13182echo "$lt_simple_link_test_code" >conftest.$ac_ext 13183eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13184_lt_linker_boilerplate=`cat conftest.err` 13185$RM -r conftest* 13186 13187 13188 # Allow CC to be a program name with arguments. 13189 lt_save_CC=$CC 13190 lt_save_CFLAGS=$CFLAGS 13191 lt_save_LD=$LD 13192 lt_save_GCC=$GCC 13193 GCC=$GXX 13194 lt_save_with_gnu_ld=$with_gnu_ld 13195 lt_save_path_LD=$lt_cv_path_LD 13196 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13197 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13198 else 13199 $as_unset lt_cv_prog_gnu_ld 13200 fi 13201 if test -n "${lt_cv_path_LDCXX+set}"; then 13202 lt_cv_path_LD=$lt_cv_path_LDCXX 13203 else 13204 $as_unset lt_cv_path_LD 13205 fi 13206 test -z "${LDCXX+set}" || LD=$LDCXX 13207 CC=${CXX-"c++"} 13208 CFLAGS=$CXXFLAGS 13209 compiler=$CC 13210 compiler_CXX=$CC 13211 func_cc_basename $compiler 13212cc_basename=$func_cc_basename_result 13213 13214 13215 if test -n "$compiler"; then 13216 # We don't want -fno-exception when compiling C++ code, so set the 13217 # no_builtin_flag separately 13218 if test yes = "$GXX"; then 13219 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13220 else 13221 lt_prog_compiler_no_builtin_flag_CXX= 13222 fi 13223 13224 if test yes = "$GXX"; then 13225 # Set up default GNU C++ configuration 13226 13227 13228 13229# Check whether --with-gnu-ld was given. 13230if test "${with_gnu_ld+set}" = set; then : 13231 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13232else 13233 with_gnu_ld=no 13234fi 13235 13236ac_prog=ld 13237if test yes = "$GCC"; then 13238 # Check if gcc -print-prog-name=ld gives a path. 13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13240$as_echo_n "checking for ld used by $CC... " >&6; } 13241 case $host in 13242 *-*-mingw*) 13243 # gcc leaves a trailing carriage return, which upsets mingw 13244 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13245 *) 13246 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13247 esac 13248 case $ac_prog in 13249 # Accept absolute paths. 13250 [\\/]* | ?:[\\/]*) 13251 re_direlt='/[^/][^/]*/\.\./' 13252 # Canonicalize the pathname of ld 13253 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13254 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13255 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13256 done 13257 test -z "$LD" && LD=$ac_prog 13258 ;; 13259 "") 13260 # If it fails, then pretend we aren't using GCC. 13261 ac_prog=ld 13262 ;; 13263 *) 13264 # If it is relative, then search for the first ld in PATH. 13265 with_gnu_ld=unknown 13266 ;; 13267 esac 13268elif test yes = "$with_gnu_ld"; then 13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13270$as_echo_n "checking for GNU ld... " >&6; } 13271else 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13273$as_echo_n "checking for non-GNU ld... " >&6; } 13274fi 13275if ${lt_cv_path_LD+:} false; then : 13276 $as_echo_n "(cached) " >&6 13277else 13278 if test -z "$LD"; then 13279 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13280 for ac_dir in $PATH; do 13281 IFS=$lt_save_ifs 13282 test -z "$ac_dir" && ac_dir=. 13283 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13284 lt_cv_path_LD=$ac_dir/$ac_prog 13285 # Check to see if the program is GNU ld. I'd rather use --version, 13286 # but apparently some variants of GNU ld only accept -v. 13287 # Break only if it was the GNU/non-GNU ld that we prefer. 13288 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13289 *GNU* | *'with BFD'*) 13290 test no != "$with_gnu_ld" && break 13291 ;; 13292 *) 13293 test yes != "$with_gnu_ld" && break 13294 ;; 13295 esac 13296 fi 13297 done 13298 IFS=$lt_save_ifs 13299else 13300 lt_cv_path_LD=$LD # Let the user override the test with a path. 13301fi 13302fi 13303 13304LD=$lt_cv_path_LD 13305if test -n "$LD"; then 13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13307$as_echo "$LD" >&6; } 13308else 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13310$as_echo "no" >&6; } 13311fi 13312test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13314$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13315if ${lt_cv_prog_gnu_ld+:} false; then : 13316 $as_echo_n "(cached) " >&6 13317else 13318 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13319case `$LD -v 2>&1 </dev/null` in 13320*GNU* | *'with BFD'*) 13321 lt_cv_prog_gnu_ld=yes 13322 ;; 13323*) 13324 lt_cv_prog_gnu_ld=no 13325 ;; 13326esac 13327fi 13328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13329$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13330with_gnu_ld=$lt_cv_prog_gnu_ld 13331 13332 13333 13334 13335 13336 13337 13338 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13339 # archiving commands below assume that GNU ld is being used. 13340 if test yes = "$with_gnu_ld"; then 13341 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13342 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' 13343 13344 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13345 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13346 13347 # If archive_cmds runs LD, not CC, wlarc should be empty 13348 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13349 # investigate it a little bit more. (MM) 13350 wlarc='$wl' 13351 13352 # ancient GNU ld didn't support --whole-archive et. al. 13353 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13354 $GREP 'no-whole-archive' > /dev/null; then 13355 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13356 else 13357 whole_archive_flag_spec_CXX= 13358 fi 13359 else 13360 with_gnu_ld=no 13361 wlarc= 13362 13363 # A generic and very simple default shared library creation 13364 # command for GNU C++ for the case where it uses the native 13365 # linker, instead of GNU ld. If possible, this setting should 13366 # overridden to take advantage of the native linker features on 13367 # the platform it is being used on. 13368 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13369 fi 13370 13371 # Commands to make compiler produce verbose output that lists 13372 # what "hidden" libraries, object files and flags are used when 13373 # linking a shared library. 13374 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13375 13376 else 13377 GXX=no 13378 with_gnu_ld=no 13379 wlarc= 13380 fi 13381 13382 # PORTME: fill in a description of your system's C++ link characteristics 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13384$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13385 ld_shlibs_CXX=yes 13386 case $host_os in 13387 aix3*) 13388 # FIXME: insert proper C++ library support 13389 ld_shlibs_CXX=no 13390 ;; 13391 aix[4-9]*) 13392 if test ia64 = "$host_cpu"; then 13393 # On IA64, the linker does run time linking by default, so we don't 13394 # have to do anything special. 13395 aix_use_runtimelinking=no 13396 exp_sym_flag='-Bexport' 13397 no_entry_flag= 13398 else 13399 aix_use_runtimelinking=no 13400 13401 # Test if we are trying to use run time linking or normal 13402 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13403 # have runtime linking enabled, and use it for executables. 13404 # For shared libraries, we enable/disable runtime linking 13405 # depending on the kind of the shared library created - 13406 # when "with_aix_soname,aix_use_runtimelinking" is: 13407 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13408 # "aix,yes" lib.so shared, rtl:yes, for executables 13409 # lib.a static archive 13410 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13411 # lib.a(lib.so.V) shared, rtl:no, for executables 13412 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13413 # lib.a(lib.so.V) shared, rtl:no 13414 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13415 # lib.a static archive 13416 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13417 for ld_flag in $LDFLAGS; do 13418 case $ld_flag in 13419 *-brtl*) 13420 aix_use_runtimelinking=yes 13421 break 13422 ;; 13423 esac 13424 done 13425 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13426 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13427 # so we don't have lib.a shared libs to link our executables. 13428 # We have to force runtime linking in this case. 13429 aix_use_runtimelinking=yes 13430 LDFLAGS="$LDFLAGS -Wl,-brtl" 13431 fi 13432 ;; 13433 esac 13434 13435 exp_sym_flag='-bexport' 13436 no_entry_flag='-bnoentry' 13437 fi 13438 13439 # When large executables or shared objects are built, AIX ld can 13440 # have problems creating the table of contents. If linking a library 13441 # or program results in "error TOC overflow" add -mminimal-toc to 13442 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13443 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13444 13445 archive_cmds_CXX='' 13446 hardcode_direct_CXX=yes 13447 hardcode_direct_absolute_CXX=yes 13448 hardcode_libdir_separator_CXX=':' 13449 link_all_deplibs_CXX=yes 13450 file_list_spec_CXX='$wl-f,' 13451 case $with_aix_soname,$aix_use_runtimelinking in 13452 aix,*) ;; # no import file 13453 svr4,* | *,yes) # use import file 13454 # The Import File defines what to hardcode. 13455 hardcode_direct_CXX=no 13456 hardcode_direct_absolute_CXX=no 13457 ;; 13458 esac 13459 13460 if test yes = "$GXX"; then 13461 case $host_os in aix4.[012]|aix4.[012].*) 13462 # We only want to do this on AIX 4.2 and lower, the check 13463 # below for broken collect2 doesn't work under 4.3+ 13464 collect2name=`$CC -print-prog-name=collect2` 13465 if test -f "$collect2name" && 13466 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13467 then 13468 # We have reworked collect2 13469 : 13470 else 13471 # We have old collect2 13472 hardcode_direct_CXX=unsupported 13473 # It fails to find uninstalled libraries when the uninstalled 13474 # path is not listed in the libpath. Setting hardcode_minus_L 13475 # to unsupported forces relinking 13476 hardcode_minus_L_CXX=yes 13477 hardcode_libdir_flag_spec_CXX='-L$libdir' 13478 hardcode_libdir_separator_CXX= 13479 fi 13480 esac 13481 shared_flag='-shared' 13482 if test yes = "$aix_use_runtimelinking"; then 13483 shared_flag=$shared_flag' $wl-G' 13484 fi 13485 # Need to ensure runtime linking is disabled for the traditional 13486 # shared library, or the linker may eventually find shared libraries 13487 # /with/ Import File - we do not want to mix them. 13488 shared_flag_aix='-shared' 13489 shared_flag_svr4='-shared $wl-G' 13490 else 13491 # not using gcc 13492 if test ia64 = "$host_cpu"; then 13493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13494 # chokes on -Wl,-G. The following line is correct: 13495 shared_flag='-G' 13496 else 13497 if test yes = "$aix_use_runtimelinking"; then 13498 shared_flag='$wl-G' 13499 else 13500 shared_flag='$wl-bM:SRE' 13501 fi 13502 shared_flag_aix='$wl-bM:SRE' 13503 shared_flag_svr4='$wl-G' 13504 fi 13505 fi 13506 13507 export_dynamic_flag_spec_CXX='$wl-bexpall' 13508 # It seems that -bexpall does not export symbols beginning with 13509 # underscore (_), so it is better to generate a list of symbols to 13510 # export. 13511 always_export_symbols_CXX=yes 13512 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13513 # Warning - without using the other runtime loading flags (-brtl), 13514 # -berok will link without error, but may produce a broken library. 13515 # The "-G" linker flag allows undefined symbols. 13516 no_undefined_flag_CXX='-bernotok' 13517 # Determine the default libpath from the value encoded in an empty 13518 # executable. 13519 if test set = "${lt_cv_aix_libpath+set}"; then 13520 aix_libpath=$lt_cv_aix_libpath 13521else 13522 if ${lt_cv_aix_libpath__CXX+:} false; then : 13523 $as_echo_n "(cached) " >&6 13524else 13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13526/* end confdefs.h. */ 13527 13528int 13529main () 13530{ 13531 13532 ; 13533 return 0; 13534} 13535_ACEOF 13536if ac_fn_cxx_try_link "$LINENO"; then : 13537 13538 lt_aix_libpath_sed=' 13539 /Import File Strings/,/^$/ { 13540 /^0/ { 13541 s/^0 *\([^ ]*\) *$/\1/ 13542 p 13543 } 13544 }' 13545 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13546 # Check for a 64-bit object if we didn't find anything. 13547 if test -z "$lt_cv_aix_libpath__CXX"; then 13548 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13549 fi 13550fi 13551rm -f core conftest.err conftest.$ac_objext \ 13552 conftest$ac_exeext conftest.$ac_ext 13553 if test -z "$lt_cv_aix_libpath__CXX"; then 13554 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13555 fi 13556 13557fi 13558 13559 aix_libpath=$lt_cv_aix_libpath__CXX 13560fi 13561 13562 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13563 13564 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13565 else 13566 if test ia64 = "$host_cpu"; then 13567 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13568 allow_undefined_flag_CXX="-z nodefs" 13569 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" 13570 else 13571 # Determine the default libpath from the value encoded in an 13572 # empty executable. 13573 if test set = "${lt_cv_aix_libpath+set}"; then 13574 aix_libpath=$lt_cv_aix_libpath 13575else 13576 if ${lt_cv_aix_libpath__CXX+:} false; then : 13577 $as_echo_n "(cached) " >&6 13578else 13579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13580/* end confdefs.h. */ 13581 13582int 13583main () 13584{ 13585 13586 ; 13587 return 0; 13588} 13589_ACEOF 13590if ac_fn_cxx_try_link "$LINENO"; then : 13591 13592 lt_aix_libpath_sed=' 13593 /Import File Strings/,/^$/ { 13594 /^0/ { 13595 s/^0 *\([^ ]*\) *$/\1/ 13596 p 13597 } 13598 }' 13599 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13600 # Check for a 64-bit object if we didn't find anything. 13601 if test -z "$lt_cv_aix_libpath__CXX"; then 13602 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13603 fi 13604fi 13605rm -f core conftest.err conftest.$ac_objext \ 13606 conftest$ac_exeext conftest.$ac_ext 13607 if test -z "$lt_cv_aix_libpath__CXX"; then 13608 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13609 fi 13610 13611fi 13612 13613 aix_libpath=$lt_cv_aix_libpath__CXX 13614fi 13615 13616 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13617 # Warning - without using the other run time loading flags, 13618 # -berok will link without error, but may produce a broken library. 13619 no_undefined_flag_CXX=' $wl-bernotok' 13620 allow_undefined_flag_CXX=' $wl-berok' 13621 if test yes = "$with_gnu_ld"; then 13622 # We only use this code for GNU lds that support --whole-archive. 13623 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13624 else 13625 # Exported symbols can be pulled into shared objects from archives 13626 whole_archive_flag_spec_CXX='$convenience' 13627 fi 13628 archive_cmds_need_lc_CXX=yes 13629 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13630 # -brtl affects multiple linker settings, -berok does not and is overridden later 13631 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13632 if test svr4 != "$with_aix_soname"; then 13633 # This is similar to how AIX traditionally builds its shared 13634 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13635 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13636 fi 13637 if test aix != "$with_aix_soname"; then 13638 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13639 else 13640 # used by -dlpreopen to get the symbols 13641 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13642 fi 13643 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13644 fi 13645 fi 13646 ;; 13647 13648 beos*) 13649 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13650 allow_undefined_flag_CXX=unsupported 13651 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13652 # support --undefined. This deserves some investigation. FIXME 13653 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13654 else 13655 ld_shlibs_CXX=no 13656 fi 13657 ;; 13658 13659 chorus*) 13660 case $cc_basename in 13661 *) 13662 # FIXME: insert proper C++ library support 13663 ld_shlibs_CXX=no 13664 ;; 13665 esac 13666 ;; 13667 13668 cygwin* | mingw* | pw32* | cegcc*) 13669 case $GXX,$cc_basename in 13670 ,cl* | no,cl*) 13671 # Native MSVC 13672 # hardcode_libdir_flag_spec is actually meaningless, as there is 13673 # no search path for DLLs. 13674 hardcode_libdir_flag_spec_CXX=' ' 13675 allow_undefined_flag_CXX=unsupported 13676 always_export_symbols_CXX=yes 13677 file_list_spec_CXX='@' 13678 # Tell ltmain to make .lib files, not .a files. 13679 libext=lib 13680 # Tell ltmain to make .dll files, not .so files. 13681 shrext_cmds=.dll 13682 # FIXME: Setting linknames here is a bad hack. 13683 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13684 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13685 cp "$export_symbols" "$output_objdir/$soname.def"; 13686 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13687 else 13688 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13689 fi~ 13690 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13691 linknames=' 13692 # The linker will not automatically build a static lib if we build a DLL. 13693 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13694 enable_shared_with_static_runtimes_CXX=yes 13695 # Don't use ranlib 13696 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13697 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13698 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13699 case $lt_outputfile in 13700 *.exe|*.EXE) ;; 13701 *) 13702 lt_outputfile=$lt_outputfile.exe 13703 lt_tool_outputfile=$lt_tool_outputfile.exe 13704 ;; 13705 esac~ 13706 func_to_tool_file "$lt_outputfile"~ 13707 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13708 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13709 $RM "$lt_outputfile.manifest"; 13710 fi' 13711 ;; 13712 *) 13713 # g++ 13714 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13715 # as there is no search path for DLLs. 13716 hardcode_libdir_flag_spec_CXX='-L$libdir' 13717 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13718 allow_undefined_flag_CXX=unsupported 13719 always_export_symbols_CXX=no 13720 enable_shared_with_static_runtimes_CXX=yes 13721 13722 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13723 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' 13724 # If the export-symbols file already is a .def file, use it as 13725 # is; otherwise, prepend EXPORTS... 13726 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13727 cp $export_symbols $output_objdir/$soname.def; 13728 else 13729 echo EXPORTS > $output_objdir/$soname.def; 13730 cat $export_symbols >> $output_objdir/$soname.def; 13731 fi~ 13732 $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' 13733 else 13734 ld_shlibs_CXX=no 13735 fi 13736 ;; 13737 esac 13738 ;; 13739 darwin* | rhapsody*) 13740 13741 13742 archive_cmds_need_lc_CXX=no 13743 hardcode_direct_CXX=no 13744 hardcode_automatic_CXX=yes 13745 hardcode_shlibpath_var_CXX=unsupported 13746 if test yes = "$lt_cv_ld_force_load"; then 13747 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\"`' 13748 13749 else 13750 whole_archive_flag_spec_CXX='' 13751 fi 13752 link_all_deplibs_CXX=yes 13753 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13754 case $cc_basename in 13755 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13756 *) _lt_dar_can_shared=$GCC ;; 13757 esac 13758 if test yes = "$_lt_dar_can_shared"; then 13759 output_verbose_link_cmd=func_echo_all 13760 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" 13761 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13762 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" 13763 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" 13764 if test yes != "$lt_cv_apple_cc_single_mod"; then 13765 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" 13766 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" 13767 fi 13768 13769 else 13770 ld_shlibs_CXX=no 13771 fi 13772 13773 ;; 13774 13775 os2*) 13776 hardcode_libdir_flag_spec_CXX='-L$libdir' 13777 hardcode_minus_L_CXX=yes 13778 allow_undefined_flag_CXX=unsupported 13779 shrext_cmds=.dll 13780 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13781 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13782 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13783 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13784 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13785 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13786 emximp -o $lib $output_objdir/$libname.def' 13787 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13788 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13789 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13790 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13791 prefix_cmds="$SED"~ 13792 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13793 prefix_cmds="$prefix_cmds -e 1d"; 13794 fi~ 13795 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13796 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13797 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13798 emximp -o $lib $output_objdir/$libname.def' 13799 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13800 enable_shared_with_static_runtimes_CXX=yes 13801 ;; 13802 13803 dgux*) 13804 case $cc_basename in 13805 ec++*) 13806 # FIXME: insert proper C++ library support 13807 ld_shlibs_CXX=no 13808 ;; 13809 ghcx*) 13810 # Green Hills C++ Compiler 13811 # FIXME: insert proper C++ library support 13812 ld_shlibs_CXX=no 13813 ;; 13814 *) 13815 # FIXME: insert proper C++ library support 13816 ld_shlibs_CXX=no 13817 ;; 13818 esac 13819 ;; 13820 13821 freebsd2.*) 13822 # C++ shared libraries reported to be fairly broken before 13823 # switch to ELF 13824 ld_shlibs_CXX=no 13825 ;; 13826 13827 freebsd-elf*) 13828 archive_cmds_need_lc_CXX=no 13829 ;; 13830 13831 freebsd* | dragonfly*) 13832 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13833 # conventions 13834 ld_shlibs_CXX=yes 13835 ;; 13836 13837 haiku*) 13838 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13839 link_all_deplibs_CXX=yes 13840 ;; 13841 13842 hpux9*) 13843 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13844 hardcode_libdir_separator_CXX=: 13845 export_dynamic_flag_spec_CXX='$wl-E' 13846 hardcode_direct_CXX=yes 13847 hardcode_minus_L_CXX=yes # Not in the search PATH, 13848 # but as the default 13849 # location of the library. 13850 13851 case $cc_basename in 13852 CC*) 13853 # FIXME: insert proper C++ library support 13854 ld_shlibs_CXX=no 13855 ;; 13856 aCC*) 13857 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13858 # Commands to make compiler produce verbose output that lists 13859 # what "hidden" libraries, object files and flags are used when 13860 # linking a shared library. 13861 # 13862 # There doesn't appear to be a way to prevent this compiler from 13863 # explicitly linking system object files so we need to strip them 13864 # from the output so that they don't get included in the library 13865 # dependencies. 13866 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"' 13867 ;; 13868 *) 13869 if test yes = "$GXX"; then 13870 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13871 else 13872 # FIXME: insert proper C++ library support 13873 ld_shlibs_CXX=no 13874 fi 13875 ;; 13876 esac 13877 ;; 13878 13879 hpux10*|hpux11*) 13880 if test no = "$with_gnu_ld"; then 13881 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13882 hardcode_libdir_separator_CXX=: 13883 13884 case $host_cpu in 13885 hppa*64*|ia64*) 13886 ;; 13887 *) 13888 export_dynamic_flag_spec_CXX='$wl-E' 13889 ;; 13890 esac 13891 fi 13892 case $host_cpu in 13893 hppa*64*|ia64*) 13894 hardcode_direct_CXX=no 13895 hardcode_shlibpath_var_CXX=no 13896 ;; 13897 *) 13898 hardcode_direct_CXX=yes 13899 hardcode_direct_absolute_CXX=yes 13900 hardcode_minus_L_CXX=yes # Not in the search PATH, 13901 # but as the default 13902 # location of the library. 13903 ;; 13904 esac 13905 13906 case $cc_basename in 13907 CC*) 13908 # FIXME: insert proper C++ library support 13909 ld_shlibs_CXX=no 13910 ;; 13911 aCC*) 13912 case $host_cpu in 13913 hppa*64*) 13914 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13915 ;; 13916 ia64*) 13917 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13918 ;; 13919 *) 13920 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13921 ;; 13922 esac 13923 # Commands to make compiler produce verbose output that lists 13924 # what "hidden" libraries, object files and flags are used when 13925 # linking a shared library. 13926 # 13927 # There doesn't appear to be a way to prevent this compiler from 13928 # explicitly linking system object files so we need to strip them 13929 # from the output so that they don't get included in the library 13930 # dependencies. 13931 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"' 13932 ;; 13933 *) 13934 if test yes = "$GXX"; then 13935 if test no = "$with_gnu_ld"; then 13936 case $host_cpu in 13937 hppa*64*) 13938 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13939 ;; 13940 ia64*) 13941 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13942 ;; 13943 *) 13944 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' 13945 ;; 13946 esac 13947 fi 13948 else 13949 # FIXME: insert proper C++ library support 13950 ld_shlibs_CXX=no 13951 fi 13952 ;; 13953 esac 13954 ;; 13955 13956 interix[3-9]*) 13957 hardcode_direct_CXX=no 13958 hardcode_shlibpath_var_CXX=no 13959 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13960 export_dynamic_flag_spec_CXX='$wl-E' 13961 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13962 # Instead, shared libraries are loaded at an image base (0x10000000 by 13963 # default) and relocated if they conflict, which is a slow very memory 13964 # consuming and fragmenting process. To avoid this, we pick a random, 13965 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13966 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13967 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' 13968 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' 13969 ;; 13970 irix5* | irix6*) 13971 case $cc_basename in 13972 CC*) 13973 # SGI C++ 13974 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' 13975 13976 # Archives containing C++ object files must be created using 13977 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13978 # necessary to make sure instantiated templates are included 13979 # in the archive. 13980 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13981 ;; 13982 *) 13983 if test yes = "$GXX"; then 13984 if test no = "$with_gnu_ld"; then 13985 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' 13986 else 13987 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' 13988 fi 13989 fi 13990 link_all_deplibs_CXX=yes 13991 ;; 13992 esac 13993 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13994 hardcode_libdir_separator_CXX=: 13995 inherit_rpath_CXX=yes 13996 ;; 13997 13998 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13999 case $cc_basename in 14000 KCC*) 14001 # Kuck and Associates, Inc. (KAI) C++ Compiler 14002 14003 # KCC will only create a shared library if the output file 14004 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14005 # to its proper name (with version) after linking. 14006 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' 14007 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' 14008 # Commands to make compiler produce verbose output that lists 14009 # what "hidden" libraries, object files and flags are used when 14010 # linking a shared library. 14011 # 14012 # There doesn't appear to be a way to prevent this compiler from 14013 # explicitly linking system object files so we need to strip them 14014 # from the output so that they don't get included in the library 14015 # dependencies. 14016 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"' 14017 14018 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14019 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14020 14021 # Archives containing C++ object files must be created using 14022 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14023 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14024 ;; 14025 icpc* | ecpc* ) 14026 # Intel C++ 14027 with_gnu_ld=yes 14028 # version 8.0 and above of icpc choke on multiply defined symbols 14029 # if we add $predep_objects and $postdep_objects, however 7.1 and 14030 # earlier do not add the objects themselves. 14031 case `$CC -V 2>&1` in 14032 *"Version 7."*) 14033 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14034 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' 14035 ;; 14036 *) # Version 8.0 or newer 14037 tmp_idyn= 14038 case $host_cpu in 14039 ia64*) tmp_idyn=' -i_dynamic';; 14040 esac 14041 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14042 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' 14043 ;; 14044 esac 14045 archive_cmds_need_lc_CXX=no 14046 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14047 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14048 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14049 ;; 14050 pgCC* | pgcpp*) 14051 # Portland Group C++ compiler 14052 case `$CC -V` in 14053 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14054 prelink_cmds_CXX='tpldir=Template.dir~ 14055 rm -rf $tpldir~ 14056 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14057 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14058 old_archive_cmds_CXX='tpldir=Template.dir~ 14059 rm -rf $tpldir~ 14060 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14061 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14062 $RANLIB $oldlib' 14063 archive_cmds_CXX='tpldir=Template.dir~ 14064 rm -rf $tpldir~ 14065 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14066 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14067 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14068 rm -rf $tpldir~ 14069 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14070 $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' 14071 ;; 14072 *) # Version 6 and above use weak symbols 14073 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14074 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' 14075 ;; 14076 esac 14077 14078 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14079 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14080 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' 14081 ;; 14082 cxx*) 14083 # Compaq C++ 14084 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14085 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' 14086 14087 runpath_var=LD_RUN_PATH 14088 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14089 hardcode_libdir_separator_CXX=: 14090 14091 # Commands to make compiler produce verbose output that lists 14092 # what "hidden" libraries, object files and flags are used when 14093 # linking a shared library. 14094 # 14095 # There doesn't appear to be a way to prevent this compiler from 14096 # explicitly linking system object files so we need to strip them 14097 # from the output so that they don't get included in the library 14098 # dependencies. 14099 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' 14100 ;; 14101 xl* | mpixl* | bgxl*) 14102 # IBM XL 8.0 on PPC, with GNU ld 14103 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14104 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14105 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14106 if test yes = "$supports_anon_versioning"; then 14107 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14108 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14109 echo "local: *; };" >> $output_objdir/$libname.ver~ 14110 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14111 fi 14112 ;; 14113 *) 14114 case `$CC -V 2>&1 | sed 5q` in 14115 *Sun\ C*) 14116 # Sun C++ 5.9 14117 no_undefined_flag_CXX=' -zdefs' 14118 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14119 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' 14120 hardcode_libdir_flag_spec_CXX='-R$libdir' 14121 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' 14122 compiler_needs_object_CXX=yes 14123 14124 # Not sure whether something based on 14125 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14126 # would be better. 14127 output_verbose_link_cmd='func_echo_all' 14128 14129 # Archives containing C++ object files must be created using 14130 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14131 # necessary to make sure instantiated templates are included 14132 # in the archive. 14133 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14134 ;; 14135 esac 14136 ;; 14137 esac 14138 ;; 14139 14140 lynxos*) 14141 # FIXME: insert proper C++ library support 14142 ld_shlibs_CXX=no 14143 ;; 14144 14145 m88k*) 14146 # FIXME: insert proper C++ library support 14147 ld_shlibs_CXX=no 14148 ;; 14149 14150 mvs*) 14151 case $cc_basename in 14152 cxx*) 14153 # FIXME: insert proper C++ library support 14154 ld_shlibs_CXX=no 14155 ;; 14156 *) 14157 # FIXME: insert proper C++ library support 14158 ld_shlibs_CXX=no 14159 ;; 14160 esac 14161 ;; 14162 14163 netbsd*) 14164 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14165 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14166 wlarc= 14167 hardcode_libdir_flag_spec_CXX='-R$libdir' 14168 hardcode_direct_CXX=yes 14169 hardcode_shlibpath_var_CXX=no 14170 fi 14171 # Workaround some broken pre-1.5 toolchains 14172 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14173 ;; 14174 14175 *nto* | *qnx*) 14176 ld_shlibs_CXX=yes 14177 ;; 14178 14179 openbsd* | bitrig*) 14180 if test -f /usr/libexec/ld.so; then 14181 hardcode_direct_CXX=yes 14182 hardcode_shlibpath_var_CXX=no 14183 hardcode_direct_absolute_CXX=yes 14184 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14185 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14186 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14187 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14188 export_dynamic_flag_spec_CXX='$wl-E' 14189 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14190 fi 14191 output_verbose_link_cmd=func_echo_all 14192 else 14193 ld_shlibs_CXX=no 14194 fi 14195 ;; 14196 14197 osf3* | osf4* | osf5*) 14198 case $cc_basename in 14199 KCC*) 14200 # Kuck and Associates, Inc. (KAI) C++ Compiler 14201 14202 # KCC will only create a shared library if the output file 14203 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14204 # to its proper name (with version) after linking. 14205 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' 14206 14207 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14208 hardcode_libdir_separator_CXX=: 14209 14210 # Archives containing C++ object files must be created using 14211 # the KAI C++ compiler. 14212 case $host in 14213 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14214 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14215 esac 14216 ;; 14217 RCC*) 14218 # Rational C++ 2.4.1 14219 # FIXME: insert proper C++ library support 14220 ld_shlibs_CXX=no 14221 ;; 14222 cxx*) 14223 case $host in 14224 osf3*) 14225 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14226 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' 14227 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14228 ;; 14229 *) 14230 allow_undefined_flag_CXX=' -expect_unresolved \*' 14231 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' 14232 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14233 echo "-hidden">> $lib.exp~ 14234 $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~ 14235 $RM $lib.exp' 14236 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14237 ;; 14238 esac 14239 14240 hardcode_libdir_separator_CXX=: 14241 14242 # Commands to make compiler produce verbose output that lists 14243 # what "hidden" libraries, object files and flags are used when 14244 # linking a shared library. 14245 # 14246 # There doesn't appear to be a way to prevent this compiler from 14247 # explicitly linking system object files so we need to strip them 14248 # from the output so that they don't get included in the library 14249 # dependencies. 14250 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"' 14251 ;; 14252 *) 14253 if test yes,no = "$GXX,$with_gnu_ld"; then 14254 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14255 case $host in 14256 osf3*) 14257 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' 14258 ;; 14259 *) 14260 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' 14261 ;; 14262 esac 14263 14264 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14265 hardcode_libdir_separator_CXX=: 14266 14267 # Commands to make compiler produce verbose output that lists 14268 # what "hidden" libraries, object files and flags are used when 14269 # linking a shared library. 14270 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14271 14272 else 14273 # FIXME: insert proper C++ library support 14274 ld_shlibs_CXX=no 14275 fi 14276 ;; 14277 esac 14278 ;; 14279 14280 psos*) 14281 # FIXME: insert proper C++ library support 14282 ld_shlibs_CXX=no 14283 ;; 14284 14285 sunos4*) 14286 case $cc_basename in 14287 CC*) 14288 # Sun C++ 4.x 14289 # FIXME: insert proper C++ library support 14290 ld_shlibs_CXX=no 14291 ;; 14292 lcc*) 14293 # Lucid 14294 # FIXME: insert proper C++ library support 14295 ld_shlibs_CXX=no 14296 ;; 14297 *) 14298 # FIXME: insert proper C++ library support 14299 ld_shlibs_CXX=no 14300 ;; 14301 esac 14302 ;; 14303 14304 solaris*) 14305 case $cc_basename in 14306 CC* | sunCC*) 14307 # Sun C++ 4.2, 5.x and Centerline C++ 14308 archive_cmds_need_lc_CXX=yes 14309 no_undefined_flag_CXX=' -zdefs' 14310 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14311 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14312 $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' 14313 14314 hardcode_libdir_flag_spec_CXX='-R$libdir' 14315 hardcode_shlibpath_var_CXX=no 14316 case $host_os in 14317 solaris2.[0-5] | solaris2.[0-5].*) ;; 14318 *) 14319 # The compiler driver will combine and reorder linker options, 14320 # but understands '-z linker_flag'. 14321 # Supported since Solaris 2.6 (maybe 2.5.1?) 14322 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14323 ;; 14324 esac 14325 link_all_deplibs_CXX=yes 14326 14327 output_verbose_link_cmd='func_echo_all' 14328 14329 # Archives containing C++ object files must be created using 14330 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14331 # necessary to make sure instantiated templates are included 14332 # in the archive. 14333 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14334 ;; 14335 gcx*) 14336 # Green Hills C++ Compiler 14337 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14338 14339 # The C++ compiler must be used to create the archive. 14340 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14341 ;; 14342 *) 14343 # GNU C++ compiler with Solaris linker 14344 if test yes,no = "$GXX,$with_gnu_ld"; then 14345 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14346 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14347 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14348 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14349 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14350 14351 # Commands to make compiler produce verbose output that lists 14352 # what "hidden" libraries, object files and flags are used when 14353 # linking a shared library. 14354 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14355 else 14356 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14357 # platform. 14358 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14359 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14360 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14361 14362 # Commands to make compiler produce verbose output that lists 14363 # what "hidden" libraries, object files and flags are used when 14364 # linking a shared library. 14365 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14366 fi 14367 14368 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14369 case $host_os in 14370 solaris2.[0-5] | solaris2.[0-5].*) ;; 14371 *) 14372 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14373 ;; 14374 esac 14375 fi 14376 ;; 14377 esac 14378 ;; 14379 14380 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14381 no_undefined_flag_CXX='$wl-z,text' 14382 archive_cmds_need_lc_CXX=no 14383 hardcode_shlibpath_var_CXX=no 14384 runpath_var='LD_RUN_PATH' 14385 14386 case $cc_basename in 14387 CC*) 14388 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14389 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14390 ;; 14391 *) 14392 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14393 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14394 ;; 14395 esac 14396 ;; 14397 14398 sysv5* | sco3.2v5* | sco5v6*) 14399 # Note: We CANNOT use -z defs as we might desire, because we do not 14400 # link with -lc, and that would cause any symbols used from libc to 14401 # always be unresolved, which means just about no library would 14402 # ever link correctly. If we're not using GNU ld we use -z text 14403 # though, which does catch some bad symbols but isn't as heavy-handed 14404 # as -z defs. 14405 no_undefined_flag_CXX='$wl-z,text' 14406 allow_undefined_flag_CXX='$wl-z,nodefs' 14407 archive_cmds_need_lc_CXX=no 14408 hardcode_shlibpath_var_CXX=no 14409 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14410 hardcode_libdir_separator_CXX=':' 14411 link_all_deplibs_CXX=yes 14412 export_dynamic_flag_spec_CXX='$wl-Bexport' 14413 runpath_var='LD_RUN_PATH' 14414 14415 case $cc_basename in 14416 CC*) 14417 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14418 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14419 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14420 '"$old_archive_cmds_CXX" 14421 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14422 '"$reload_cmds_CXX" 14423 ;; 14424 *) 14425 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14426 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14427 ;; 14428 esac 14429 ;; 14430 14431 tandem*) 14432 case $cc_basename in 14433 NCC*) 14434 # NonStop-UX NCC 3.20 14435 # FIXME: insert proper C++ library support 14436 ld_shlibs_CXX=no 14437 ;; 14438 *) 14439 # FIXME: insert proper C++ library support 14440 ld_shlibs_CXX=no 14441 ;; 14442 esac 14443 ;; 14444 14445 vxworks*) 14446 # FIXME: insert proper C++ library support 14447 ld_shlibs_CXX=no 14448 ;; 14449 14450 *) 14451 # FIXME: insert proper C++ library support 14452 ld_shlibs_CXX=no 14453 ;; 14454 esac 14455 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14457$as_echo "$ld_shlibs_CXX" >&6; } 14458 test no = "$ld_shlibs_CXX" && can_build_shared=no 14459 14460 GCC_CXX=$GXX 14461 LD_CXX=$LD 14462 14463 ## CAVEAT EMPTOR: 14464 ## There is no encapsulation within the following macros, do not change 14465 ## the running order or otherwise move them around unless you know exactly 14466 ## what you are doing... 14467 # Dependencies to place before and after the object being linked: 14468predep_objects_CXX= 14469postdep_objects_CXX= 14470predeps_CXX= 14471postdeps_CXX= 14472compiler_lib_search_path_CXX= 14473 14474cat > conftest.$ac_ext <<_LT_EOF 14475class Foo 14476{ 14477public: 14478 Foo (void) { a = 0; } 14479private: 14480 int a; 14481}; 14482_LT_EOF 14483 14484 14485_lt_libdeps_save_CFLAGS=$CFLAGS 14486case "$CC $CFLAGS " in #( 14487*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14488*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14489*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14490esac 14491 14492if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14493 (eval $ac_compile) 2>&5 14494 ac_status=$? 14495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14496 test $ac_status = 0; }; then 14497 # Parse the compiler output and extract the necessary 14498 # objects, libraries and library flags. 14499 14500 # Sentinel used to keep track of whether or not we are before 14501 # the conftest object file. 14502 pre_test_object_deps_done=no 14503 14504 for p in `eval "$output_verbose_link_cmd"`; do 14505 case $prev$p in 14506 14507 -L* | -R* | -l*) 14508 # Some compilers place space between "-{L,R}" and the path. 14509 # Remove the space. 14510 if test x-L = "$p" || 14511 test x-R = "$p"; then 14512 prev=$p 14513 continue 14514 fi 14515 14516 # Expand the sysroot to ease extracting the directories later. 14517 if test -z "$prev"; then 14518 case $p in 14519 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14520 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14521 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14522 esac 14523 fi 14524 case $p in 14525 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14526 esac 14527 if test no = "$pre_test_object_deps_done"; then 14528 case $prev in 14529 -L | -R) 14530 # Internal compiler library paths should come after those 14531 # provided the user. The postdeps already come after the 14532 # user supplied libs so there is no need to process them. 14533 if test -z "$compiler_lib_search_path_CXX"; then 14534 compiler_lib_search_path_CXX=$prev$p 14535 else 14536 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14537 fi 14538 ;; 14539 # The "-l" case would never come before the object being 14540 # linked, so don't bother handling this case. 14541 esac 14542 else 14543 if test -z "$postdeps_CXX"; then 14544 postdeps_CXX=$prev$p 14545 else 14546 postdeps_CXX="${postdeps_CXX} $prev$p" 14547 fi 14548 fi 14549 prev= 14550 ;; 14551 14552 *.lto.$objext) ;; # Ignore GCC LTO objects 14553 *.$objext) 14554 # This assumes that the test object file only shows up 14555 # once in the compiler output. 14556 if test "$p" = "conftest.$objext"; then 14557 pre_test_object_deps_done=yes 14558 continue 14559 fi 14560 14561 if test no = "$pre_test_object_deps_done"; then 14562 if test -z "$predep_objects_CXX"; then 14563 predep_objects_CXX=$p 14564 else 14565 predep_objects_CXX="$predep_objects_CXX $p" 14566 fi 14567 else 14568 if test -z "$postdep_objects_CXX"; then 14569 postdep_objects_CXX=$p 14570 else 14571 postdep_objects_CXX="$postdep_objects_CXX $p" 14572 fi 14573 fi 14574 ;; 14575 14576 *) ;; # Ignore the rest. 14577 14578 esac 14579 done 14580 14581 # Clean up. 14582 rm -f a.out a.exe 14583else 14584 echo "libtool.m4: error: problem compiling CXX test program" 14585fi 14586 14587$RM -f confest.$objext 14588CFLAGS=$_lt_libdeps_save_CFLAGS 14589 14590# PORTME: override above test on systems where it is broken 14591case $host_os in 14592interix[3-9]*) 14593 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14594 # hack all around it, let's just trust "g++" to DTRT. 14595 predep_objects_CXX= 14596 postdep_objects_CXX= 14597 postdeps_CXX= 14598 ;; 14599esac 14600 14601 14602case " $postdeps_CXX " in 14603*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14604esac 14605 compiler_lib_search_dirs_CXX= 14606if test -n "${compiler_lib_search_path_CXX}"; then 14607 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14608fi 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 lt_prog_compiler_wl_CXX= 14641lt_prog_compiler_pic_CXX= 14642lt_prog_compiler_static_CXX= 14643 14644 14645 # C++ specific cases for pic, static, wl, etc. 14646 if test yes = "$GXX"; then 14647 lt_prog_compiler_wl_CXX='-Wl,' 14648 lt_prog_compiler_static_CXX='-static' 14649 14650 case $host_os in 14651 aix*) 14652 # All AIX code is PIC. 14653 if test ia64 = "$host_cpu"; then 14654 # AIX 5 now supports IA64 processor 14655 lt_prog_compiler_static_CXX='-Bstatic' 14656 fi 14657 lt_prog_compiler_pic_CXX='-fPIC' 14658 ;; 14659 14660 amigaos*) 14661 case $host_cpu in 14662 powerpc) 14663 # see comment about AmigaOS4 .so support 14664 lt_prog_compiler_pic_CXX='-fPIC' 14665 ;; 14666 m68k) 14667 # FIXME: we need at least 68020 code to build shared libraries, but 14668 # adding the '-m68020' flag to GCC prevents building anything better, 14669 # like '-m68040'. 14670 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14671 ;; 14672 esac 14673 ;; 14674 14675 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14676 # PIC is the default for these OSes. 14677 ;; 14678 mingw* | cygwin* | os2* | pw32* | cegcc*) 14679 # This hack is so that the source file can tell whether it is being 14680 # built for inclusion in a dll (and should export symbols for example). 14681 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14682 # (--disable-auto-import) libraries 14683 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14684 case $host_os in 14685 os2*) 14686 lt_prog_compiler_static_CXX='$wl-static' 14687 ;; 14688 esac 14689 ;; 14690 darwin* | rhapsody*) 14691 # PIC is the default on this platform 14692 # Common symbols not allowed in MH_DYLIB files 14693 lt_prog_compiler_pic_CXX='-fno-common' 14694 ;; 14695 *djgpp*) 14696 # DJGPP does not support shared libraries at all 14697 lt_prog_compiler_pic_CXX= 14698 ;; 14699 haiku*) 14700 # PIC is the default for Haiku. 14701 # The "-static" flag exists, but is broken. 14702 lt_prog_compiler_static_CXX= 14703 ;; 14704 interix[3-9]*) 14705 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14706 # Instead, we relocate shared libraries at runtime. 14707 ;; 14708 sysv4*MP*) 14709 if test -d /usr/nec; then 14710 lt_prog_compiler_pic_CXX=-Kconform_pic 14711 fi 14712 ;; 14713 hpux*) 14714 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14715 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14716 # sets the default TLS model and affects inlining. 14717 case $host_cpu in 14718 hppa*64*) 14719 ;; 14720 *) 14721 lt_prog_compiler_pic_CXX='-fPIC' 14722 ;; 14723 esac 14724 ;; 14725 *qnx* | *nto*) 14726 # QNX uses GNU C++, but need to define -shared option too, otherwise 14727 # it will coredump. 14728 lt_prog_compiler_pic_CXX='-fPIC -shared' 14729 ;; 14730 *) 14731 lt_prog_compiler_pic_CXX='-fPIC' 14732 ;; 14733 esac 14734 else 14735 case $host_os in 14736 aix[4-9]*) 14737 # All AIX code is PIC. 14738 if test ia64 = "$host_cpu"; then 14739 # AIX 5 now supports IA64 processor 14740 lt_prog_compiler_static_CXX='-Bstatic' 14741 else 14742 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14743 fi 14744 ;; 14745 chorus*) 14746 case $cc_basename in 14747 cxch68*) 14748 # Green Hills C++ Compiler 14749 # _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" 14750 ;; 14751 esac 14752 ;; 14753 mingw* | cygwin* | os2* | pw32* | cegcc*) 14754 # This hack is so that the source file can tell whether it is being 14755 # built for inclusion in a dll (and should export symbols for example). 14756 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14757 ;; 14758 dgux*) 14759 case $cc_basename in 14760 ec++*) 14761 lt_prog_compiler_pic_CXX='-KPIC' 14762 ;; 14763 ghcx*) 14764 # Green Hills C++ Compiler 14765 lt_prog_compiler_pic_CXX='-pic' 14766 ;; 14767 *) 14768 ;; 14769 esac 14770 ;; 14771 freebsd* | dragonfly*) 14772 # FreeBSD uses GNU C++ 14773 ;; 14774 hpux9* | hpux10* | hpux11*) 14775 case $cc_basename in 14776 CC*) 14777 lt_prog_compiler_wl_CXX='-Wl,' 14778 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14779 if test ia64 != "$host_cpu"; then 14780 lt_prog_compiler_pic_CXX='+Z' 14781 fi 14782 ;; 14783 aCC*) 14784 lt_prog_compiler_wl_CXX='-Wl,' 14785 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14786 case $host_cpu in 14787 hppa*64*|ia64*) 14788 # +Z the default 14789 ;; 14790 *) 14791 lt_prog_compiler_pic_CXX='+Z' 14792 ;; 14793 esac 14794 ;; 14795 *) 14796 ;; 14797 esac 14798 ;; 14799 interix*) 14800 # This is c89, which is MS Visual C++ (no shared libs) 14801 # Anyone wants to do a port? 14802 ;; 14803 irix5* | irix6* | nonstopux*) 14804 case $cc_basename in 14805 CC*) 14806 lt_prog_compiler_wl_CXX='-Wl,' 14807 lt_prog_compiler_static_CXX='-non_shared' 14808 # CC pic flag -KPIC is the default. 14809 ;; 14810 *) 14811 ;; 14812 esac 14813 ;; 14814 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14815 case $cc_basename in 14816 KCC*) 14817 # KAI C++ Compiler 14818 lt_prog_compiler_wl_CXX='--backend -Wl,' 14819 lt_prog_compiler_pic_CXX='-fPIC' 14820 ;; 14821 ecpc* ) 14822 # old Intel C++ for x86_64, which still supported -KPIC. 14823 lt_prog_compiler_wl_CXX='-Wl,' 14824 lt_prog_compiler_pic_CXX='-KPIC' 14825 lt_prog_compiler_static_CXX='-static' 14826 ;; 14827 icpc* ) 14828 # Intel C++, used to be incompatible with GCC. 14829 # ICC 10 doesn't accept -KPIC any more. 14830 lt_prog_compiler_wl_CXX='-Wl,' 14831 lt_prog_compiler_pic_CXX='-fPIC' 14832 lt_prog_compiler_static_CXX='-static' 14833 ;; 14834 pgCC* | pgcpp*) 14835 # Portland Group C++ compiler 14836 lt_prog_compiler_wl_CXX='-Wl,' 14837 lt_prog_compiler_pic_CXX='-fpic' 14838 lt_prog_compiler_static_CXX='-Bstatic' 14839 ;; 14840 cxx*) 14841 # Compaq C++ 14842 # Make sure the PIC flag is empty. It appears that all Alpha 14843 # Linux and Compaq Tru64 Unix objects are PIC. 14844 lt_prog_compiler_pic_CXX= 14845 lt_prog_compiler_static_CXX='-non_shared' 14846 ;; 14847 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14848 # IBM XL 8.0, 9.0 on PPC and BlueGene 14849 lt_prog_compiler_wl_CXX='-Wl,' 14850 lt_prog_compiler_pic_CXX='-qpic' 14851 lt_prog_compiler_static_CXX='-qstaticlink' 14852 ;; 14853 *) 14854 case `$CC -V 2>&1 | sed 5q` in 14855 *Sun\ C*) 14856 # Sun C++ 5.9 14857 lt_prog_compiler_pic_CXX='-KPIC' 14858 lt_prog_compiler_static_CXX='-Bstatic' 14859 lt_prog_compiler_wl_CXX='-Qoption ld ' 14860 ;; 14861 esac 14862 ;; 14863 esac 14864 ;; 14865 lynxos*) 14866 ;; 14867 m88k*) 14868 ;; 14869 mvs*) 14870 case $cc_basename in 14871 cxx*) 14872 lt_prog_compiler_pic_CXX='-W c,exportall' 14873 ;; 14874 *) 14875 ;; 14876 esac 14877 ;; 14878 netbsd* | netbsdelf*-gnu) 14879 ;; 14880 *qnx* | *nto*) 14881 # QNX uses GNU C++, but need to define -shared option too, otherwise 14882 # it will coredump. 14883 lt_prog_compiler_pic_CXX='-fPIC -shared' 14884 ;; 14885 osf3* | osf4* | osf5*) 14886 case $cc_basename in 14887 KCC*) 14888 lt_prog_compiler_wl_CXX='--backend -Wl,' 14889 ;; 14890 RCC*) 14891 # Rational C++ 2.4.1 14892 lt_prog_compiler_pic_CXX='-pic' 14893 ;; 14894 cxx*) 14895 # Digital/Compaq C++ 14896 lt_prog_compiler_wl_CXX='-Wl,' 14897 # Make sure the PIC flag is empty. It appears that all Alpha 14898 # Linux and Compaq Tru64 Unix objects are PIC. 14899 lt_prog_compiler_pic_CXX= 14900 lt_prog_compiler_static_CXX='-non_shared' 14901 ;; 14902 *) 14903 ;; 14904 esac 14905 ;; 14906 psos*) 14907 ;; 14908 solaris*) 14909 case $cc_basename in 14910 CC* | sunCC*) 14911 # Sun C++ 4.2, 5.x and Centerline C++ 14912 lt_prog_compiler_pic_CXX='-KPIC' 14913 lt_prog_compiler_static_CXX='-Bstatic' 14914 lt_prog_compiler_wl_CXX='-Qoption ld ' 14915 ;; 14916 gcx*) 14917 # Green Hills C++ Compiler 14918 lt_prog_compiler_pic_CXX='-PIC' 14919 ;; 14920 *) 14921 ;; 14922 esac 14923 ;; 14924 sunos4*) 14925 case $cc_basename in 14926 CC*) 14927 # Sun C++ 4.x 14928 lt_prog_compiler_pic_CXX='-pic' 14929 lt_prog_compiler_static_CXX='-Bstatic' 14930 ;; 14931 lcc*) 14932 # Lucid 14933 lt_prog_compiler_pic_CXX='-pic' 14934 ;; 14935 *) 14936 ;; 14937 esac 14938 ;; 14939 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14940 case $cc_basename in 14941 CC*) 14942 lt_prog_compiler_wl_CXX='-Wl,' 14943 lt_prog_compiler_pic_CXX='-KPIC' 14944 lt_prog_compiler_static_CXX='-Bstatic' 14945 ;; 14946 esac 14947 ;; 14948 tandem*) 14949 case $cc_basename in 14950 NCC*) 14951 # NonStop-UX NCC 3.20 14952 lt_prog_compiler_pic_CXX='-KPIC' 14953 ;; 14954 *) 14955 ;; 14956 esac 14957 ;; 14958 vxworks*) 14959 ;; 14960 *) 14961 lt_prog_compiler_can_build_shared_CXX=no 14962 ;; 14963 esac 14964 fi 14965 14966case $host_os in 14967 # For platforms that do not support PIC, -DPIC is meaningless: 14968 *djgpp*) 14969 lt_prog_compiler_pic_CXX= 14970 ;; 14971 *) 14972 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14973 ;; 14974esac 14975 14976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14977$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14978if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14979 $as_echo_n "(cached) " >&6 14980else 14981 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14982fi 14983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14984$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14985lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14986 14987# 14988# Check to make sure the PIC flag actually works. 14989# 14990if test -n "$lt_prog_compiler_pic_CXX"; then 14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14992$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14993if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14994 $as_echo_n "(cached) " >&6 14995else 14996 lt_cv_prog_compiler_pic_works_CXX=no 14997 ac_outfile=conftest.$ac_objext 14998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14999 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15000 # Insert the option either (1) after the last *FLAGS variable, or 15001 # (2) before a word containing "conftest.", or (3) at the end. 15002 # Note that $ac_compile itself does not contain backslashes and begins 15003 # with a dollar sign (not a hyphen), so the echo should work correctly. 15004 # The option is referenced via a variable to avoid confusing sed. 15005 lt_compile=`echo "$ac_compile" | $SED \ 15006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15008 -e 's:$: $lt_compiler_flag:'` 15009 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15010 (eval "$lt_compile" 2>conftest.err) 15011 ac_status=$? 15012 cat conftest.err >&5 15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15014 if (exit $ac_status) && test -s "$ac_outfile"; then 15015 # The compiler can only warn and ignore the option if not recognized 15016 # So say no if there are warnings other than the usual output. 15017 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15019 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15020 lt_cv_prog_compiler_pic_works_CXX=yes 15021 fi 15022 fi 15023 $RM conftest* 15024 15025fi 15026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15027$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15028 15029if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15030 case $lt_prog_compiler_pic_CXX in 15031 "" | " "*) ;; 15032 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15033 esac 15034else 15035 lt_prog_compiler_pic_CXX= 15036 lt_prog_compiler_can_build_shared_CXX=no 15037fi 15038 15039fi 15040 15041 15042 15043 15044 15045# 15046# Check to make sure the static flag actually works. 15047# 15048wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15050$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15051if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15052 $as_echo_n "(cached) " >&6 15053else 15054 lt_cv_prog_compiler_static_works_CXX=no 15055 save_LDFLAGS=$LDFLAGS 15056 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15057 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15058 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15059 # The linker can only warn and ignore the option if not recognized 15060 # So say no if there are warnings 15061 if test -s conftest.err; then 15062 # Append any errors to the config.log. 15063 cat conftest.err 1>&5 15064 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15066 if diff conftest.exp conftest.er2 >/dev/null; then 15067 lt_cv_prog_compiler_static_works_CXX=yes 15068 fi 15069 else 15070 lt_cv_prog_compiler_static_works_CXX=yes 15071 fi 15072 fi 15073 $RM -r conftest* 15074 LDFLAGS=$save_LDFLAGS 15075 15076fi 15077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15078$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15079 15080if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15081 : 15082else 15083 lt_prog_compiler_static_CXX= 15084fi 15085 15086 15087 15088 15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15090$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15091if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15092 $as_echo_n "(cached) " >&6 15093else 15094 lt_cv_prog_compiler_c_o_CXX=no 15095 $RM -r conftest 2>/dev/null 15096 mkdir conftest 15097 cd conftest 15098 mkdir out 15099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15100 15101 lt_compiler_flag="-o out/conftest2.$ac_objext" 15102 # Insert the option either (1) after the last *FLAGS variable, or 15103 # (2) before a word containing "conftest.", or (3) at the end. 15104 # Note that $ac_compile itself does not contain backslashes and begins 15105 # with a dollar sign (not a hyphen), so the echo should work correctly. 15106 lt_compile=`echo "$ac_compile" | $SED \ 15107 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15109 -e 's:$: $lt_compiler_flag:'` 15110 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15111 (eval "$lt_compile" 2>out/conftest.err) 15112 ac_status=$? 15113 cat out/conftest.err >&5 15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15115 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15116 then 15117 # The compiler can only warn and ignore the option if not recognized 15118 # So say no if there are warnings 15119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15120 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15121 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15122 lt_cv_prog_compiler_c_o_CXX=yes 15123 fi 15124 fi 15125 chmod u+w . 2>&5 15126 $RM conftest* 15127 # SGI C++ compiler will create directory out/ii_files/ for 15128 # template instantiation 15129 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15130 $RM out/* && rmdir out 15131 cd .. 15132 $RM -r conftest 15133 $RM conftest* 15134 15135fi 15136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15137$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15138 15139 15140 15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15142$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15143if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15144 $as_echo_n "(cached) " >&6 15145else 15146 lt_cv_prog_compiler_c_o_CXX=no 15147 $RM -r conftest 2>/dev/null 15148 mkdir conftest 15149 cd conftest 15150 mkdir out 15151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15152 15153 lt_compiler_flag="-o out/conftest2.$ac_objext" 15154 # Insert the option either (1) after the last *FLAGS variable, or 15155 # (2) before a word containing "conftest.", or (3) at the end. 15156 # Note that $ac_compile itself does not contain backslashes and begins 15157 # with a dollar sign (not a hyphen), so the echo should work correctly. 15158 lt_compile=`echo "$ac_compile" | $SED \ 15159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15161 -e 's:$: $lt_compiler_flag:'` 15162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15163 (eval "$lt_compile" 2>out/conftest.err) 15164 ac_status=$? 15165 cat out/conftest.err >&5 15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15167 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15168 then 15169 # The compiler can only warn and ignore the option if not recognized 15170 # So say no if there are warnings 15171 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15172 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15173 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15174 lt_cv_prog_compiler_c_o_CXX=yes 15175 fi 15176 fi 15177 chmod u+w . 2>&5 15178 $RM conftest* 15179 # SGI C++ compiler will create directory out/ii_files/ for 15180 # template instantiation 15181 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15182 $RM out/* && rmdir out 15183 cd .. 15184 $RM -r conftest 15185 $RM conftest* 15186 15187fi 15188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15189$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15190 15191 15192 15193 15194hard_links=nottested 15195if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15196 # do not overwrite the value of need_locks provided by the user 15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15198$as_echo_n "checking if we can lock with hard links... " >&6; } 15199 hard_links=yes 15200 $RM conftest* 15201 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15202 touch conftest.a 15203 ln conftest.a conftest.b 2>&5 || hard_links=no 15204 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15206$as_echo "$hard_links" >&6; } 15207 if test no = "$hard_links"; then 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15209$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15210 need_locks=warn 15211 fi 15212else 15213 need_locks=no 15214fi 15215 15216 15217 15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15219$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15220 15221 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15222 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15223 case $host_os in 15224 aix[4-9]*) 15225 # If we're using GNU nm, then we don't want the "-C" option. 15226 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15227 # Without the "-l" option, or with the "-B" option, AIX nm treats 15228 # weak defined symbols like other global defined symbols, whereas 15229 # GNU nm marks them as "W". 15230 # While the 'weak' keyword is ignored in the Export File, we need 15231 # it in the Import File for the 'aix-soname' feature, so we have 15232 # to replace the "-B" option with "-P" for AIX nm. 15233 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15234 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15235 else 15236 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15237 fi 15238 ;; 15239 pw32*) 15240 export_symbols_cmds_CXX=$ltdll_cmds 15241 ;; 15242 cygwin* | mingw* | cegcc*) 15243 case $cc_basename in 15244 cl*) 15245 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15246 ;; 15247 *) 15248 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' 15249 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15250 ;; 15251 esac 15252 ;; 15253 linux* | k*bsd*-gnu | gnu*) 15254 link_all_deplibs_CXX=no 15255 ;; 15256 *) 15257 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15258 ;; 15259 esac 15260 15261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15262$as_echo "$ld_shlibs_CXX" >&6; } 15263test no = "$ld_shlibs_CXX" && can_build_shared=no 15264 15265with_gnu_ld_CXX=$with_gnu_ld 15266 15267 15268 15269 15270 15271 15272# 15273# Do we need to explicitly link libc? 15274# 15275case "x$archive_cmds_need_lc_CXX" in 15276x|xyes) 15277 # Assume -lc should be added 15278 archive_cmds_need_lc_CXX=yes 15279 15280 if test yes,yes = "$GCC,$enable_shared"; then 15281 case $archive_cmds_CXX in 15282 *'~'*) 15283 # FIXME: we may have to deal with multi-command sequences. 15284 ;; 15285 '$CC '*) 15286 # Test whether the compiler implicitly links with -lc since on some 15287 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15288 # to ld, don't add -lc before -lgcc. 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15290$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15291if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15292 $as_echo_n "(cached) " >&6 15293else 15294 $RM conftest* 15295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15296 15297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15298 (eval $ac_compile) 2>&5 15299 ac_status=$? 15300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15301 test $ac_status = 0; } 2>conftest.err; then 15302 soname=conftest 15303 lib=conftest 15304 libobjs=conftest.$ac_objext 15305 deplibs= 15306 wl=$lt_prog_compiler_wl_CXX 15307 pic_flag=$lt_prog_compiler_pic_CXX 15308 compiler_flags=-v 15309 linker_flags=-v 15310 verstring= 15311 output_objdir=. 15312 libname=conftest 15313 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15314 allow_undefined_flag_CXX= 15315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15316 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15317 ac_status=$? 15318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15319 test $ac_status = 0; } 15320 then 15321 lt_cv_archive_cmds_need_lc_CXX=no 15322 else 15323 lt_cv_archive_cmds_need_lc_CXX=yes 15324 fi 15325 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15326 else 15327 cat conftest.err 1>&5 15328 fi 15329 $RM conftest* 15330 15331fi 15332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15333$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15334 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15335 ;; 15336 esac 15337 fi 15338 ;; 15339esac 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15403$as_echo_n "checking dynamic linker characteristics... " >&6; } 15404 15405library_names_spec= 15406libname_spec='lib$name' 15407soname_spec= 15408shrext_cmds=.so 15409postinstall_cmds= 15410postuninstall_cmds= 15411finish_cmds= 15412finish_eval= 15413shlibpath_var= 15414shlibpath_overrides_runpath=unknown 15415version_type=none 15416dynamic_linker="$host_os ld.so" 15417sys_lib_dlsearch_path_spec="/lib /usr/lib" 15418need_lib_prefix=unknown 15419hardcode_into_libs=no 15420 15421# when you set need_version to no, make sure it does not cause -set_version 15422# flags to be left without arguments 15423need_version=unknown 15424 15425 15426 15427case $host_os in 15428aix3*) 15429 version_type=linux # correct to gnu/linux during the next big refactor 15430 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15431 shlibpath_var=LIBPATH 15432 15433 # AIX 3 has no versioning support, so we append a major version to the name. 15434 soname_spec='$libname$release$shared_ext$major' 15435 ;; 15436 15437aix[4-9]*) 15438 version_type=linux # correct to gnu/linux during the next big refactor 15439 need_lib_prefix=no 15440 need_version=no 15441 hardcode_into_libs=yes 15442 if test ia64 = "$host_cpu"; then 15443 # AIX 5 supports IA64 15444 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15445 shlibpath_var=LD_LIBRARY_PATH 15446 else 15447 # With GCC up to 2.95.x, collect2 would create an import file 15448 # for dependence libraries. The import file would start with 15449 # the line '#! .'. This would cause the generated library to 15450 # depend on '.', always an invalid library. This was fixed in 15451 # development snapshots of GCC prior to 3.0. 15452 case $host_os in 15453 aix4 | aix4.[01] | aix4.[01].*) 15454 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15455 echo ' yes ' 15456 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15457 : 15458 else 15459 can_build_shared=no 15460 fi 15461 ;; 15462 esac 15463 # Using Import Files as archive members, it is possible to support 15464 # filename-based versioning of shared library archives on AIX. While 15465 # this would work for both with and without runtime linking, it will 15466 # prevent static linking of such archives. So we do filename-based 15467 # shared library versioning with .so extension only, which is used 15468 # when both runtime linking and shared linking is enabled. 15469 # Unfortunately, runtime linking may impact performance, so we do 15470 # not want this to be the default eventually. Also, we use the 15471 # versioned .so libs for executables only if there is the -brtl 15472 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15473 # To allow for filename-based versioning support, we need to create 15474 # libNAME.so.V as an archive file, containing: 15475 # *) an Import File, referring to the versioned filename of the 15476 # archive as well as the shared archive member, telling the 15477 # bitwidth (32 or 64) of that shared object, and providing the 15478 # list of exported symbols of that shared object, eventually 15479 # decorated with the 'weak' keyword 15480 # *) the shared object with the F_LOADONLY flag set, to really avoid 15481 # it being seen by the linker. 15482 # At run time we better use the real file rather than another symlink, 15483 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15484 15485 case $with_aix_soname,$aix_use_runtimelinking in 15486 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15487 # soname into executable. Probably we can add versioning support to 15488 # collect2, so additional links can be useful in future. 15489 aix,yes) # traditional libtool 15490 dynamic_linker='AIX unversionable lib.so' 15491 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15492 # instead of lib<name>.a to let people know that these are not 15493 # typical AIX shared libraries. 15494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15495 ;; 15496 aix,no) # traditional AIX only 15497 dynamic_linker='AIX lib.a(lib.so.V)' 15498 # We preserve .a as extension for shared libraries through AIX4.2 15499 # and later when we are not doing run time linking. 15500 library_names_spec='$libname$release.a $libname.a' 15501 soname_spec='$libname$release$shared_ext$major' 15502 ;; 15503 svr4,*) # full svr4 only 15504 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15505 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15506 # We do not specify a path in Import Files, so LIBPATH fires. 15507 shlibpath_overrides_runpath=yes 15508 ;; 15509 *,yes) # both, prefer svr4 15510 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15511 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15512 # unpreferred sharedlib libNAME.a needs extra handling 15513 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 15514 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 15515 # We do not specify a path in Import Files, so LIBPATH fires. 15516 shlibpath_overrides_runpath=yes 15517 ;; 15518 *,no) # both, prefer aix 15519 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15520 library_names_spec='$libname$release.a $libname.a' 15521 soname_spec='$libname$release$shared_ext$major' 15522 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15523 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 15524 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 15525 ;; 15526 esac 15527 shlibpath_var=LIBPATH 15528 fi 15529 ;; 15530 15531amigaos*) 15532 case $host_cpu in 15533 powerpc) 15534 # Since July 2007 AmigaOS4 officially supports .so libraries. 15535 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15537 ;; 15538 m68k) 15539 library_names_spec='$libname.ixlibrary $libname.a' 15540 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15541 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 15542 ;; 15543 esac 15544 ;; 15545 15546beos*) 15547 library_names_spec='$libname$shared_ext' 15548 dynamic_linker="$host_os ld.so" 15549 shlibpath_var=LIBRARY_PATH 15550 ;; 15551 15552bsdi[45]*) 15553 version_type=linux # correct to gnu/linux during the next big refactor 15554 need_version=no 15555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15556 soname_spec='$libname$release$shared_ext$major' 15557 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15558 shlibpath_var=LD_LIBRARY_PATH 15559 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15560 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15561 # the default ld.so.conf also contains /usr/contrib/lib and 15562 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15563 # libtool to hard-code these into programs 15564 ;; 15565 15566cygwin* | mingw* | pw32* | cegcc*) 15567 version_type=windows 15568 shrext_cmds=.dll 15569 need_version=no 15570 need_lib_prefix=no 15571 15572 case $GCC,$cc_basename in 15573 yes,*) 15574 # gcc 15575 library_names_spec='$libname.dll.a' 15576 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15577 postinstall_cmds='base_file=`basename \$file`~ 15578 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15579 dldir=$destdir/`dirname \$dlpath`~ 15580 test -d \$dldir || mkdir -p \$dldir~ 15581 $install_prog $dir/$dlname \$dldir/$dlname~ 15582 chmod a+x \$dldir/$dlname~ 15583 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15584 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15585 fi' 15586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15587 dlpath=$dir/\$dldll~ 15588 $RM \$dlpath' 15589 shlibpath_overrides_runpath=yes 15590 15591 case $host_os in 15592 cygwin*) 15593 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15594 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15595 15596 ;; 15597 mingw* | cegcc*) 15598 # MinGW DLLs use traditional 'lib' prefix 15599 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15600 ;; 15601 pw32*) 15602 # pw32 DLLs use 'pw' prefix rather than 'lib' 15603 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15604 ;; 15605 esac 15606 dynamic_linker='Win32 ld.exe' 15607 ;; 15608 15609 *,cl*) 15610 # Native MSVC 15611 libname_spec='$name' 15612 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15613 library_names_spec='$libname.dll.lib' 15614 15615 case $build_os in 15616 mingw*) 15617 sys_lib_search_path_spec= 15618 lt_save_ifs=$IFS 15619 IFS=';' 15620 for lt_path in $LIB 15621 do 15622 IFS=$lt_save_ifs 15623 # Let DOS variable expansion print the short 8.3 style file name. 15624 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15625 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15626 done 15627 IFS=$lt_save_ifs 15628 # Convert to MSYS style. 15629 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15630 ;; 15631 cygwin*) 15632 # Convert to unix form, then to dos form, then back to unix form 15633 # but this time dos style (no spaces!) so that the unix form looks 15634 # like /cygdrive/c/PROGRA~1:/cygdr... 15635 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15636 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15637 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15638 ;; 15639 *) 15640 sys_lib_search_path_spec=$LIB 15641 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15642 # It is most probably a Windows format PATH. 15643 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15644 else 15645 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15646 fi 15647 # FIXME: find the short name or the path components, as spaces are 15648 # common. (e.g. "Program Files" -> "PROGRA~1") 15649 ;; 15650 esac 15651 15652 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15653 postinstall_cmds='base_file=`basename \$file`~ 15654 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15655 dldir=$destdir/`dirname \$dlpath`~ 15656 test -d \$dldir || mkdir -p \$dldir~ 15657 $install_prog $dir/$dlname \$dldir/$dlname' 15658 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15659 dlpath=$dir/\$dldll~ 15660 $RM \$dlpath' 15661 shlibpath_overrides_runpath=yes 15662 dynamic_linker='Win32 link.exe' 15663 ;; 15664 15665 *) 15666 # Assume MSVC wrapper 15667 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15668 dynamic_linker='Win32 ld.exe' 15669 ;; 15670 esac 15671 # FIXME: first we should search . and the directory the executable is in 15672 shlibpath_var=PATH 15673 ;; 15674 15675darwin* | rhapsody*) 15676 dynamic_linker="$host_os dyld" 15677 version_type=darwin 15678 need_lib_prefix=no 15679 need_version=no 15680 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15681 soname_spec='$libname$release$major$shared_ext' 15682 shlibpath_overrides_runpath=yes 15683 shlibpath_var=DYLD_LIBRARY_PATH 15684 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15685 15686 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15687 ;; 15688 15689dgux*) 15690 version_type=linux # correct to gnu/linux during the next big refactor 15691 need_lib_prefix=no 15692 need_version=no 15693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15694 soname_spec='$libname$release$shared_ext$major' 15695 shlibpath_var=LD_LIBRARY_PATH 15696 ;; 15697 15698freebsd* | dragonfly*) 15699 # DragonFly does not have aout. When/if they implement a new 15700 # versioning mechanism, adjust this. 15701 if test -x /usr/bin/objformat; then 15702 objformat=`/usr/bin/objformat` 15703 else 15704 case $host_os in 15705 freebsd[23].*) objformat=aout ;; 15706 *) objformat=elf ;; 15707 esac 15708 fi 15709 version_type=freebsd-$objformat 15710 case $version_type in 15711 freebsd-elf*) 15712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15713 soname_spec='$libname$release$shared_ext$major' 15714 need_version=no 15715 need_lib_prefix=no 15716 ;; 15717 freebsd-*) 15718 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15719 need_version=yes 15720 ;; 15721 esac 15722 shlibpath_var=LD_LIBRARY_PATH 15723 case $host_os in 15724 freebsd2.*) 15725 shlibpath_overrides_runpath=yes 15726 ;; 15727 freebsd3.[01]* | freebsdelf3.[01]*) 15728 shlibpath_overrides_runpath=yes 15729 hardcode_into_libs=yes 15730 ;; 15731 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15732 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15733 shlibpath_overrides_runpath=no 15734 hardcode_into_libs=yes 15735 ;; 15736 *) # from 4.6 on, and DragonFly 15737 shlibpath_overrides_runpath=yes 15738 hardcode_into_libs=yes 15739 ;; 15740 esac 15741 ;; 15742 15743haiku*) 15744 version_type=linux # correct to gnu/linux during the next big refactor 15745 need_lib_prefix=no 15746 need_version=no 15747 dynamic_linker="$host_os runtime_loader" 15748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15749 soname_spec='$libname$release$shared_ext$major' 15750 shlibpath_var=LIBRARY_PATH 15751 shlibpath_overrides_runpath=no 15752 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15753 hardcode_into_libs=yes 15754 ;; 15755 15756hpux9* | hpux10* | hpux11*) 15757 # Give a soname corresponding to the major version so that dld.sl refuses to 15758 # link against other versions. 15759 version_type=sunos 15760 need_lib_prefix=no 15761 need_version=no 15762 case $host_cpu in 15763 ia64*) 15764 shrext_cmds='.so' 15765 hardcode_into_libs=yes 15766 dynamic_linker="$host_os dld.so" 15767 shlibpath_var=LD_LIBRARY_PATH 15768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15770 soname_spec='$libname$release$shared_ext$major' 15771 if test 32 = "$HPUX_IA64_MODE"; then 15772 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15773 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15774 else 15775 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15776 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15777 fi 15778 ;; 15779 hppa*64*) 15780 shrext_cmds='.sl' 15781 hardcode_into_libs=yes 15782 dynamic_linker="$host_os dld.sl" 15783 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15786 soname_spec='$libname$release$shared_ext$major' 15787 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15789 ;; 15790 *) 15791 shrext_cmds='.sl' 15792 dynamic_linker="$host_os dld.sl" 15793 shlibpath_var=SHLIB_PATH 15794 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15795 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15796 soname_spec='$libname$release$shared_ext$major' 15797 ;; 15798 esac 15799 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15800 postinstall_cmds='chmod 555 $lib' 15801 # or fails outright, so override atomically: 15802 install_override_mode=555 15803 ;; 15804 15805interix[3-9]*) 15806 version_type=linux # correct to gnu/linux during the next big refactor 15807 need_lib_prefix=no 15808 need_version=no 15809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15810 soname_spec='$libname$release$shared_ext$major' 15811 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15812 shlibpath_var=LD_LIBRARY_PATH 15813 shlibpath_overrides_runpath=no 15814 hardcode_into_libs=yes 15815 ;; 15816 15817irix5* | irix6* | nonstopux*) 15818 case $host_os in 15819 nonstopux*) version_type=nonstopux ;; 15820 *) 15821 if test yes = "$lt_cv_prog_gnu_ld"; then 15822 version_type=linux # correct to gnu/linux during the next big refactor 15823 else 15824 version_type=irix 15825 fi ;; 15826 esac 15827 need_lib_prefix=no 15828 need_version=no 15829 soname_spec='$libname$release$shared_ext$major' 15830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15831 case $host_os in 15832 irix5* | nonstopux*) 15833 libsuff= shlibsuff= 15834 ;; 15835 *) 15836 case $LD in # libtool.m4 will add one of these switches to LD 15837 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15838 libsuff= shlibsuff= libmagic=32-bit;; 15839 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15840 libsuff=32 shlibsuff=N32 libmagic=N32;; 15841 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15842 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15843 *) libsuff= shlibsuff= libmagic=never-match;; 15844 esac 15845 ;; 15846 esac 15847 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15848 shlibpath_overrides_runpath=no 15849 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15850 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15851 hardcode_into_libs=yes 15852 ;; 15853 15854# No shared lib support for Linux oldld, aout, or coff. 15855linux*oldld* | linux*aout* | linux*coff*) 15856 dynamic_linker=no 15857 ;; 15858 15859linux*android*) 15860 version_type=none # Android doesn't support versioned libraries. 15861 need_lib_prefix=no 15862 need_version=no 15863 library_names_spec='$libname$release$shared_ext' 15864 soname_spec='$libname$release$shared_ext' 15865 finish_cmds= 15866 shlibpath_var=LD_LIBRARY_PATH 15867 shlibpath_overrides_runpath=yes 15868 15869 # This implies no fast_install, which is unacceptable. 15870 # Some rework will be needed to allow for fast_install 15871 # before this can be enabled. 15872 hardcode_into_libs=yes 15873 15874 dynamic_linker='Android linker' 15875 # Don't embed -rpath directories since the linker doesn't support them. 15876 hardcode_libdir_flag_spec_CXX='-L$libdir' 15877 ;; 15878 15879# This must be glibc/ELF. 15880linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15881 version_type=linux # correct to gnu/linux during the next big refactor 15882 need_lib_prefix=no 15883 need_version=no 15884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15885 soname_spec='$libname$release$shared_ext$major' 15886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15887 shlibpath_var=LD_LIBRARY_PATH 15888 shlibpath_overrides_runpath=no 15889 15890 # Some binutils ld are patched to set DT_RUNPATH 15891 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15892 $as_echo_n "(cached) " >&6 15893else 15894 lt_cv_shlibpath_overrides_runpath=no 15895 save_LDFLAGS=$LDFLAGS 15896 save_libdir=$libdir 15897 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15898 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15900/* end confdefs.h. */ 15901 15902int 15903main () 15904{ 15905 15906 ; 15907 return 0; 15908} 15909_ACEOF 15910if ac_fn_cxx_try_link "$LINENO"; then : 15911 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15912 lt_cv_shlibpath_overrides_runpath=yes 15913fi 15914fi 15915rm -f core conftest.err conftest.$ac_objext \ 15916 conftest$ac_exeext conftest.$ac_ext 15917 LDFLAGS=$save_LDFLAGS 15918 libdir=$save_libdir 15919 15920fi 15921 15922 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15923 15924 # This implies no fast_install, which is unacceptable. 15925 # Some rework will be needed to allow for fast_install 15926 # before this can be enabled. 15927 hardcode_into_libs=yes 15928 15929 # Ideally, we could use ldconfig to report *all* directores which are 15930 # searched for libraries, however this is still not possible. Aside from not 15931 # being certain /sbin/ldconfig is available, command 15932 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15933 # even though it is searched at run-time. Try to do the best guess by 15934 # appending ld.so.conf contents (and includes) to the search path. 15935 if test -f /etc/ld.so.conf; then 15936 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' ' '` 15937 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15938 fi 15939 15940 # We used to test for /lib/ld.so.1 and disable shared libraries on 15941 # powerpc, because MkLinux only supported shared libraries with the 15942 # GNU dynamic linker. Since this was broken with cross compilers, 15943 # most powerpc-linux boxes support dynamic linking these days and 15944 # people can always --disable-shared, the test was removed, and we 15945 # assume the GNU/Linux dynamic linker is in use. 15946 dynamic_linker='GNU/Linux ld.so' 15947 ;; 15948 15949netbsdelf*-gnu) 15950 version_type=linux 15951 need_lib_prefix=no 15952 need_version=no 15953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15954 soname_spec='${libname}${release}${shared_ext}$major' 15955 shlibpath_var=LD_LIBRARY_PATH 15956 shlibpath_overrides_runpath=no 15957 hardcode_into_libs=yes 15958 dynamic_linker='NetBSD ld.elf_so' 15959 ;; 15960 15961netbsd*) 15962 version_type=sunos 15963 need_lib_prefix=no 15964 need_version=no 15965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15966 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15968 dynamic_linker='NetBSD (a.out) ld.so' 15969 else 15970 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15971 soname_spec='$libname$release$shared_ext$major' 15972 dynamic_linker='NetBSD ld.elf_so' 15973 fi 15974 shlibpath_var=LD_LIBRARY_PATH 15975 shlibpath_overrides_runpath=yes 15976 hardcode_into_libs=yes 15977 ;; 15978 15979newsos6) 15980 version_type=linux # correct to gnu/linux during the next big refactor 15981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15982 shlibpath_var=LD_LIBRARY_PATH 15983 shlibpath_overrides_runpath=yes 15984 ;; 15985 15986*nto* | *qnx*) 15987 version_type=qnx 15988 need_lib_prefix=no 15989 need_version=no 15990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15991 soname_spec='$libname$release$shared_ext$major' 15992 shlibpath_var=LD_LIBRARY_PATH 15993 shlibpath_overrides_runpath=no 15994 hardcode_into_libs=yes 15995 dynamic_linker='ldqnx.so' 15996 ;; 15997 15998openbsd* | bitrig*) 15999 version_type=sunos 16000 sys_lib_dlsearch_path_spec=/usr/lib 16001 need_lib_prefix=no 16002 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16003 need_version=no 16004 else 16005 need_version=yes 16006 fi 16007 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16008 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16009 shlibpath_var=LD_LIBRARY_PATH 16010 shlibpath_overrides_runpath=yes 16011 ;; 16012 16013os2*) 16014 libname_spec='$name' 16015 version_type=windows 16016 shrext_cmds=.dll 16017 need_version=no 16018 need_lib_prefix=no 16019 # OS/2 can only load a DLL with a base name of 8 characters or less. 16020 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16021 v=$($ECHO $release$versuffix | tr -d .-); 16022 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16023 $ECHO $n$v`$shared_ext' 16024 library_names_spec='${libname}_dll.$libext' 16025 dynamic_linker='OS/2 ld.exe' 16026 shlibpath_var=BEGINLIBPATH 16027 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16029 postinstall_cmds='base_file=`basename \$file`~ 16030 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16031 dldir=$destdir/`dirname \$dlpath`~ 16032 test -d \$dldir || mkdir -p \$dldir~ 16033 $install_prog $dir/$dlname \$dldir/$dlname~ 16034 chmod a+x \$dldir/$dlname~ 16035 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16036 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16037 fi' 16038 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16039 dlpath=$dir/\$dldll~ 16040 $RM \$dlpath' 16041 ;; 16042 16043osf3* | osf4* | osf5*) 16044 version_type=osf 16045 need_lib_prefix=no 16046 need_version=no 16047 soname_spec='$libname$release$shared_ext$major' 16048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16049 shlibpath_var=LD_LIBRARY_PATH 16050 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16052 ;; 16053 16054rdos*) 16055 dynamic_linker=no 16056 ;; 16057 16058solaris*) 16059 version_type=linux # correct to gnu/linux during the next big refactor 16060 need_lib_prefix=no 16061 need_version=no 16062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16063 soname_spec='$libname$release$shared_ext$major' 16064 shlibpath_var=LD_LIBRARY_PATH 16065 shlibpath_overrides_runpath=yes 16066 hardcode_into_libs=yes 16067 # ldd complains unless libraries are executable 16068 postinstall_cmds='chmod +x $lib' 16069 ;; 16070 16071sunos4*) 16072 version_type=sunos 16073 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16074 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16075 shlibpath_var=LD_LIBRARY_PATH 16076 shlibpath_overrides_runpath=yes 16077 if test yes = "$with_gnu_ld"; then 16078 need_lib_prefix=no 16079 fi 16080 need_version=yes 16081 ;; 16082 16083sysv4 | sysv4.3*) 16084 version_type=linux # correct to gnu/linux during the next big refactor 16085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16086 soname_spec='$libname$release$shared_ext$major' 16087 shlibpath_var=LD_LIBRARY_PATH 16088 case $host_vendor in 16089 sni) 16090 shlibpath_overrides_runpath=no 16091 need_lib_prefix=no 16092 runpath_var=LD_RUN_PATH 16093 ;; 16094 siemens) 16095 need_lib_prefix=no 16096 ;; 16097 motorola) 16098 need_lib_prefix=no 16099 need_version=no 16100 shlibpath_overrides_runpath=no 16101 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16102 ;; 16103 esac 16104 ;; 16105 16106sysv4*MP*) 16107 if test -d /usr/nec; then 16108 version_type=linux # correct to gnu/linux during the next big refactor 16109 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16110 soname_spec='$libname$shared_ext.$major' 16111 shlibpath_var=LD_LIBRARY_PATH 16112 fi 16113 ;; 16114 16115sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16116 version_type=sco 16117 need_lib_prefix=no 16118 need_version=no 16119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16120 soname_spec='$libname$release$shared_ext$major' 16121 shlibpath_var=LD_LIBRARY_PATH 16122 shlibpath_overrides_runpath=yes 16123 hardcode_into_libs=yes 16124 if test yes = "$with_gnu_ld"; then 16125 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16126 else 16127 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16128 case $host_os in 16129 sco3.2v5*) 16130 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16131 ;; 16132 esac 16133 fi 16134 sys_lib_dlsearch_path_spec='/usr/lib' 16135 ;; 16136 16137tpf*) 16138 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16139 version_type=linux # correct to gnu/linux during the next big refactor 16140 need_lib_prefix=no 16141 need_version=no 16142 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16143 shlibpath_var=LD_LIBRARY_PATH 16144 shlibpath_overrides_runpath=no 16145 hardcode_into_libs=yes 16146 ;; 16147 16148uts4*) 16149 version_type=linux # correct to gnu/linux during the next big refactor 16150 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16151 soname_spec='$libname$release$shared_ext$major' 16152 shlibpath_var=LD_LIBRARY_PATH 16153 ;; 16154 16155*) 16156 dynamic_linker=no 16157 ;; 16158esac 16159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16160$as_echo "$dynamic_linker" >&6; } 16161test no = "$dynamic_linker" && can_build_shared=no 16162 16163variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16164if test yes = "$GCC"; then 16165 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16166fi 16167 16168if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16169 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16170fi 16171 16172if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16173 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16174fi 16175 16176# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16177configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16178 16179# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16180func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16181 16182# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16183configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16225$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16226hardcode_action_CXX= 16227if test -n "$hardcode_libdir_flag_spec_CXX" || 16228 test -n "$runpath_var_CXX" || 16229 test yes = "$hardcode_automatic_CXX"; then 16230 16231 # We can hardcode non-existent directories. 16232 if test no != "$hardcode_direct_CXX" && 16233 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16234 # have to relink, otherwise we might link with an installed library 16235 # when we should be linking with a yet-to-be-installed one 16236 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16237 test no != "$hardcode_minus_L_CXX"; then 16238 # Linking always hardcodes the temporary library directory. 16239 hardcode_action_CXX=relink 16240 else 16241 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16242 hardcode_action_CXX=immediate 16243 fi 16244else 16245 # We cannot hardcode anything, or else we can only hardcode existing 16246 # directories. 16247 hardcode_action_CXX=unsupported 16248fi 16249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16250$as_echo "$hardcode_action_CXX" >&6; } 16251 16252if test relink = "$hardcode_action_CXX" || 16253 test yes = "$inherit_rpath_CXX"; then 16254 # Fast installation is not supported 16255 enable_fast_install=no 16256elif test yes = "$shlibpath_overrides_runpath" || 16257 test no = "$enable_shared"; then 16258 # Fast installation is not necessary 16259 enable_fast_install=needless 16260fi 16261 16262 16263 16264 16265 16266 16267 16268 fi # test -n "$compiler" 16269 16270 CC=$lt_save_CC 16271 CFLAGS=$lt_save_CFLAGS 16272 LDCXX=$LD 16273 LD=$lt_save_LD 16274 GCC=$lt_save_GCC 16275 with_gnu_ld=$lt_save_with_gnu_ld 16276 lt_cv_path_LDCXX=$lt_cv_path_LD 16277 lt_cv_path_LD=$lt_save_path_LD 16278 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16279 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16280fi # test yes != "$_lt_caught_CXX_error" 16281 16282ac_ext=c 16283ac_cpp='$CPP $CPPFLAGS' 16284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16286ac_compiler_gnu=$ac_cv_c_compiler_gnu 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 ac_config_commands="$ac_config_commands libtool" 16303 16304 16305 16306 16307# Only expand once: 16308 16309 16310 16311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 16312$as_echo_n "checking for main in -lm... " >&6; } 16313if ${ac_cv_lib_m_main+:} false; then : 16314 $as_echo_n "(cached) " >&6 16315else 16316 ac_check_lib_save_LIBS=$LIBS 16317LIBS="-lm $LIBS" 16318cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16319/* end confdefs.h. */ 16320 16321 16322int 16323main () 16324{ 16325return main (); 16326 ; 16327 return 0; 16328} 16329_ACEOF 16330if ac_fn_c_try_link "$LINENO"; then : 16331 ac_cv_lib_m_main=yes 16332else 16333 ac_cv_lib_m_main=no 16334fi 16335rm -f core conftest.err conftest.$ac_objext \ 16336 conftest$ac_exeext conftest.$ac_ext 16337LIBS=$ac_check_lib_save_LIBS 16338fi 16339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 16340$as_echo "$ac_cv_lib_m_main" >&6; } 16341if test "x$ac_cv_lib_m_main" = xyes; then : 16342 cat >>confdefs.h <<_ACEOF 16343#define HAVE_LIBM 1 16344_ACEOF 16345 16346 LIBS="-lm $LIBS" 16347 16348fi 16349 16350 16351for ac_header in stdint.h stdlib.h string.h 16352do : 16353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16354ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16355if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16356 cat >>confdefs.h <<_ACEOF 16357#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16358_ACEOF 16359 16360fi 16361 16362done 16363 16364 16365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 16366$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 16367if ${ac_cv_header_stdbool_h+:} false; then : 16368 $as_echo_n "(cached) " >&6 16369else 16370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16371/* end confdefs.h. */ 16372 16373 #include <stdbool.h> 16374 #ifndef bool 16375 "error: bool is not defined" 16376 #endif 16377 #ifndef false 16378 "error: false is not defined" 16379 #endif 16380 #if false 16381 "error: false is not 0" 16382 #endif 16383 #ifndef true 16384 "error: true is not defined" 16385 #endif 16386 #if true != 1 16387 "error: true is not 1" 16388 #endif 16389 #ifndef __bool_true_false_are_defined 16390 "error: __bool_true_false_are_defined is not defined" 16391 #endif 16392 16393 struct s { _Bool s: 1; _Bool t; } s; 16394 16395 char a[true == 1 ? 1 : -1]; 16396 char b[false == 0 ? 1 : -1]; 16397 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 16398 char d[(bool) 0.5 == true ? 1 : -1]; 16399 /* See body of main program for 'e'. */ 16400 char f[(_Bool) 0.0 == false ? 1 : -1]; 16401 char g[true]; 16402 char h[sizeof (_Bool)]; 16403 char i[sizeof s.t]; 16404 enum { j = false, k = true, l = false * true, m = true * 256 }; 16405 /* The following fails for 16406 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 16407 _Bool n[m]; 16408 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 16409 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 16410 /* Catch a bug in an HP-UX C compiler. See 16411 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 16412 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 16413 */ 16414 _Bool q = true; 16415 _Bool *pq = &q; 16416 16417int 16418main () 16419{ 16420 16421 bool e = &s; 16422 *pq |= q; 16423 *pq |= ! q; 16424 /* Refer to every declared value, to avoid compiler optimizations. */ 16425 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 16426 + !m + !n + !o + !p + !q + !pq); 16427 16428 ; 16429 return 0; 16430} 16431_ACEOF 16432if ac_fn_c_try_compile "$LINENO"; then : 16433 ac_cv_header_stdbool_h=yes 16434else 16435 ac_cv_header_stdbool_h=no 16436fi 16437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16438fi 16439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 16440$as_echo "$ac_cv_header_stdbool_h" >&6; } 16441 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 16442if test "x$ac_cv_type__Bool" = xyes; then : 16443 16444cat >>confdefs.h <<_ACEOF 16445#define HAVE__BOOL 1 16446_ACEOF 16447 16448 16449fi 16450 16451 16452if test $ac_cv_header_stdbool_h = yes; then 16453 16454$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 16455 16456fi 16457 16458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 16459$as_echo_n "checking for inline... " >&6; } 16460if ${ac_cv_c_inline+:} false; then : 16461 $as_echo_n "(cached) " >&6 16462else 16463 ac_cv_c_inline=no 16464for ac_kw in inline __inline__ __inline; do 16465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16466/* end confdefs.h. */ 16467#ifndef __cplusplus 16468typedef int foo_t; 16469static $ac_kw foo_t static_foo () {return 0; } 16470$ac_kw foo_t foo () {return 0; } 16471#endif 16472 16473_ACEOF 16474if ac_fn_c_try_compile "$LINENO"; then : 16475 ac_cv_c_inline=$ac_kw 16476fi 16477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16478 test "$ac_cv_c_inline" != no && break 16479done 16480 16481fi 16482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 16483$as_echo "$ac_cv_c_inline" >&6; } 16484 16485case $ac_cv_c_inline in 16486 inline | yes) ;; 16487 *) 16488 case $ac_cv_c_inline in 16489 no) ac_val=;; 16490 *) ac_val=$ac_cv_c_inline;; 16491 esac 16492 cat >>confdefs.h <<_ACEOF 16493#ifndef __cplusplus 16494#define inline $ac_val 16495#endif 16496_ACEOF 16497 ;; 16498esac 16499 16500ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 16501case $ac_cv_c_int16_t in #( 16502 no|yes) ;; #( 16503 *) 16504 16505cat >>confdefs.h <<_ACEOF 16506#define int16_t $ac_cv_c_int16_t 16507_ACEOF 16508;; 16509esac 16510 16511ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 16512case $ac_cv_c_int32_t in #( 16513 no|yes) ;; #( 16514 *) 16515 16516cat >>confdefs.h <<_ACEOF 16517#define int32_t $ac_cv_c_int32_t 16518_ACEOF 16519;; 16520esac 16521 16522ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 16523case $ac_cv_c_int64_t in #( 16524 no|yes) ;; #( 16525 *) 16526 16527cat >>confdefs.h <<_ACEOF 16528#define int64_t $ac_cv_c_int64_t 16529_ACEOF 16530;; 16531esac 16532 16533ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" 16534case $ac_cv_c_int8_t in #( 16535 no|yes) ;; #( 16536 *) 16537 16538cat >>confdefs.h <<_ACEOF 16539#define int8_t $ac_cv_c_int8_t 16540_ACEOF 16541;; 16542esac 16543 16544ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 16545case $ac_cv_c_uint16_t in #( 16546 no|yes) ;; #( 16547 *) 16548 16549 16550cat >>confdefs.h <<_ACEOF 16551#define uint16_t $ac_cv_c_uint16_t 16552_ACEOF 16553;; 16554 esac 16555 16556ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 16557case $ac_cv_c_uint32_t in #( 16558 no|yes) ;; #( 16559 *) 16560 16561$as_echo "#define _UINT32_T 1" >>confdefs.h 16562 16563 16564cat >>confdefs.h <<_ACEOF 16565#define uint32_t $ac_cv_c_uint32_t 16566_ACEOF 16567;; 16568 esac 16569 16570ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 16571case $ac_cv_c_uint64_t in #( 16572 no|yes) ;; #( 16573 *) 16574 16575$as_echo "#define _UINT64_T 1" >>confdefs.h 16576 16577 16578cat >>confdefs.h <<_ACEOF 16579#define uint64_t $ac_cv_c_uint64_t 16580_ACEOF 16581;; 16582 esac 16583 16584ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 16585case $ac_cv_c_uint8_t in #( 16586 no|yes) ;; #( 16587 *) 16588 16589$as_echo "#define _UINT8_T 1" >>confdefs.h 16590 16591 16592cat >>confdefs.h <<_ACEOF 16593#define uint8_t $ac_cv_c_uint8_t 16594_ACEOF 16595;; 16596 esac 16597 16598 16599for ac_func in memset 16600do : 16601 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" 16602if test "x$ac_cv_func_memset" = xyes; then : 16603 cat >>confdefs.h <<_ACEOF 16604#define HAVE_MEMSET 1 16605_ACEOF 16606 16607fi 16608done 16609 16610 16611OPENCORE_AMRNB_VERSION=0:3:0 16612OPENCORE_AMRWB_VERSION=0:3:0 16613 16614 16615 16616ac_config_files="$ac_config_files Makefile amrnb/Makefile amrwb/Makefile test/Makefile amrnb/opencore-amrnb.pc amrwb/opencore-amrwb.pc" 16617 16618cat >confcache <<\_ACEOF 16619# This file is a shell script that caches the results of configure 16620# tests run on this system so they can be shared between configure 16621# scripts and configure runs, see configure's option --config-cache. 16622# It is not useful on other systems. If it contains results you don't 16623# want to keep, you may remove or edit it. 16624# 16625# config.status only pays attention to the cache file if you give it 16626# the --recheck option to rerun configure. 16627# 16628# `ac_cv_env_foo' variables (set or unset) will be overridden when 16629# loading this file, other *unset* `ac_cv_foo' will be assigned the 16630# following values. 16631 16632_ACEOF 16633 16634# The following way of writing the cache mishandles newlines in values, 16635# but we know of no workaround that is simple, portable, and efficient. 16636# So, we kill variables containing newlines. 16637# Ultrix sh set writes to stderr and can't be redirected directly, 16638# and sets the high bit in the cache file unless we assign to the vars. 16639( 16640 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16641 eval ac_val=\$$ac_var 16642 case $ac_val in #( 16643 *${as_nl}*) 16644 case $ac_var in #( 16645 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16646$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16647 esac 16648 case $ac_var in #( 16649 _ | IFS | as_nl) ;; #( 16650 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16651 *) { eval $ac_var=; unset $ac_var;} ;; 16652 esac ;; 16653 esac 16654 done 16655 16656 (set) 2>&1 | 16657 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16658 *${as_nl}ac_space=\ *) 16659 # `set' does not quote correctly, so add quotes: double-quote 16660 # substitution turns \\\\ into \\, and sed turns \\ into \. 16661 sed -n \ 16662 "s/'/'\\\\''/g; 16663 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16664 ;; #( 16665 *) 16666 # `set' quotes correctly as required by POSIX, so do not add quotes. 16667 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16668 ;; 16669 esac | 16670 sort 16671) | 16672 sed ' 16673 /^ac_cv_env_/b end 16674 t clear 16675 :clear 16676 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16677 t end 16678 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16679 :end' >>confcache 16680if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16681 if test -w "$cache_file"; then 16682 if test "x$cache_file" != "x/dev/null"; then 16683 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16684$as_echo "$as_me: updating cache $cache_file" >&6;} 16685 if test ! -f "$cache_file" || test -h "$cache_file"; then 16686 cat confcache >"$cache_file" 16687 else 16688 case $cache_file in #( 16689 */* | ?:*) 16690 mv -f confcache "$cache_file"$$ && 16691 mv -f "$cache_file"$$ "$cache_file" ;; #( 16692 *) 16693 mv -f confcache "$cache_file" ;; 16694 esac 16695 fi 16696 fi 16697 else 16698 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16699$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16700 fi 16701fi 16702rm -f confcache 16703 16704test "x$prefix" = xNONE && prefix=$ac_default_prefix 16705# Let make expand exec_prefix. 16706test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16707 16708# Transform confdefs.h into DEFS. 16709# Protect against shell expansion while executing Makefile rules. 16710# Protect against Makefile macro expansion. 16711# 16712# If the first sed substitution is executed (which looks for macros that 16713# take arguments), then branch to the quote section. Otherwise, 16714# look for a macro that doesn't take arguments. 16715ac_script=' 16716:mline 16717/\\$/{ 16718 N 16719 s,\\\n,, 16720 b mline 16721} 16722t clear 16723:clear 16724s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 16725t quote 16726s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 16727t quote 16728b any 16729:quote 16730s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 16731s/\[/\\&/g 16732s/\]/\\&/g 16733s/\$/$$/g 16734H 16735:any 16736${ 16737 g 16738 s/^\n// 16739 s/\n/ /g 16740 p 16741} 16742' 16743DEFS=`sed -n "$ac_script" confdefs.h` 16744 16745 16746ac_libobjs= 16747ac_ltlibobjs= 16748U= 16749for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16750 # 1. Remove the extension, and $U if already installed. 16751 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16752 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16753 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16754 # will be set to the directory where LIBOBJS objects are built. 16755 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16756 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16757done 16758LIBOBJS=$ac_libobjs 16759 16760LTLIBOBJS=$ac_ltlibobjs 16761 16762 16763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16764$as_echo_n "checking that generated files are newer than configure... " >&6; } 16765 if test -n "$am_sleep_pid"; then 16766 # Hide warnings about reused PIDs. 16767 wait $am_sleep_pid 2>/dev/null 16768 fi 16769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16770$as_echo "done" >&6; } 16771 if test -n "$EXEEXT"; then 16772 am__EXEEXT_TRUE= 16773 am__EXEEXT_FALSE='#' 16774else 16775 am__EXEEXT_TRUE='#' 16776 am__EXEEXT_FALSE= 16777fi 16778 16779if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 16780 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 16781Usually this means the macro was only invoked conditionally." "$LINENO" 5 16782fi 16783if test -z "${COMPILE_AS_C_TRUE}" && test -z "${COMPILE_AS_C_FALSE}"; then 16784 as_fn_error $? "conditional \"COMPILE_AS_C\" was never defined. 16785Usually this means the macro was only invoked conditionally." "$LINENO" 5 16786fi 16787if test -z "${GCC_ARMV5_TRUE}" && test -z "${GCC_ARMV5_FALSE}"; then 16788 as_fn_error $? "conditional \"GCC_ARMV5\" was never defined. 16789Usually this means the macro was only invoked conditionally." "$LINENO" 5 16790fi 16791if test -z "${AMRNB_ENCODER_TRUE}" && test -z "${AMRNB_ENCODER_FALSE}"; then 16792 as_fn_error $? "conditional \"AMRNB_ENCODER\" was never defined. 16793Usually this means the macro was only invoked conditionally." "$LINENO" 5 16794fi 16795if test -z "${AMRNB_DECODER_TRUE}" && test -z "${AMRNB_DECODER_FALSE}"; then 16796 as_fn_error $? "conditional \"AMRNB_DECODER\" was never defined. 16797Usually this means the macro was only invoked conditionally." "$LINENO" 5 16798fi 16799if test -z "${EXAMPLES_TRUE}" && test -z "${EXAMPLES_FALSE}"; then 16800 as_fn_error $? "conditional \"EXAMPLES\" was never defined. 16801Usually this means the macro was only invoked conditionally." "$LINENO" 5 16802fi 16803if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16804 as_fn_error $? "conditional \"AMDEP\" was never defined. 16805Usually this means the macro was only invoked conditionally." "$LINENO" 5 16806fi 16807if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16808 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16809Usually this means the macro was only invoked conditionally." "$LINENO" 5 16810fi 16811if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16812 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16813Usually this means the macro was only invoked conditionally." "$LINENO" 5 16814fi 16815 16816: "${CONFIG_STATUS=./config.status}" 16817ac_write_fail=0 16818ac_clean_files_save=$ac_clean_files 16819ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16820{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16821$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16822as_write_fail=0 16823cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16824#! $SHELL 16825# Generated by $as_me. 16826# Run this file to recreate the current configuration. 16827# Compiler output produced by configure, useful for debugging 16828# configure, is in config.log if it exists. 16829 16830debug=false 16831ac_cs_recheck=false 16832ac_cs_silent=false 16833 16834SHELL=\${CONFIG_SHELL-$SHELL} 16835export SHELL 16836_ASEOF 16837cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16838## -------------------- ## 16839## M4sh Initialization. ## 16840## -------------------- ## 16841 16842# Be more Bourne compatible 16843DUALCASE=1; export DUALCASE # for MKS sh 16844if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16845 emulate sh 16846 NULLCMD=: 16847 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16848 # is contrary to our usage. Disable this feature. 16849 alias -g '${1+"$@"}'='"$@"' 16850 setopt NO_GLOB_SUBST 16851else 16852 case `(set -o) 2>/dev/null` in #( 16853 *posix*) : 16854 set -o posix ;; #( 16855 *) : 16856 ;; 16857esac 16858fi 16859 16860 16861as_nl=' 16862' 16863export as_nl 16864# Printing a long string crashes Solaris 7 /usr/bin/printf. 16865as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16866as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16867as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16868# Prefer a ksh shell builtin over an external printf program on Solaris, 16869# but without wasting forks for bash or zsh. 16870if test -z "$BASH_VERSION$ZSH_VERSION" \ 16871 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16872 as_echo='print -r --' 16873 as_echo_n='print -rn --' 16874elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16875 as_echo='printf %s\n' 16876 as_echo_n='printf %s' 16877else 16878 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16879 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16880 as_echo_n='/usr/ucb/echo -n' 16881 else 16882 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16883 as_echo_n_body='eval 16884 arg=$1; 16885 case $arg in #( 16886 *"$as_nl"*) 16887 expr "X$arg" : "X\\(.*\\)$as_nl"; 16888 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16889 esac; 16890 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16891 ' 16892 export as_echo_n_body 16893 as_echo_n='sh -c $as_echo_n_body as_echo' 16894 fi 16895 export as_echo_body 16896 as_echo='sh -c $as_echo_body as_echo' 16897fi 16898 16899# The user is always right. 16900if test "${PATH_SEPARATOR+set}" != set; then 16901 PATH_SEPARATOR=: 16902 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16903 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16904 PATH_SEPARATOR=';' 16905 } 16906fi 16907 16908 16909# IFS 16910# We need space, tab and new line, in precisely that order. Quoting is 16911# there to prevent editors from complaining about space-tab. 16912# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16913# splitting by setting IFS to empty value.) 16914IFS=" "" $as_nl" 16915 16916# Find who we are. Look in the path if we contain no directory separator. 16917as_myself= 16918case $0 in #(( 16919 *[\\/]* ) as_myself=$0 ;; 16920 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16921for as_dir in $PATH 16922do 16923 IFS=$as_save_IFS 16924 test -z "$as_dir" && as_dir=. 16925 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16926 done 16927IFS=$as_save_IFS 16928 16929 ;; 16930esac 16931# We did not find ourselves, most probably we were run as `sh COMMAND' 16932# in which case we are not to be found in the path. 16933if test "x$as_myself" = x; then 16934 as_myself=$0 16935fi 16936if test ! -f "$as_myself"; then 16937 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16938 exit 1 16939fi 16940 16941# Unset variables that we do not need and which cause bugs (e.g. in 16942# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16943# suppresses any "Segmentation fault" message there. '((' could 16944# trigger a bug in pdksh 5.2.14. 16945for as_var in BASH_ENV ENV MAIL MAILPATH 16946do eval test x\${$as_var+set} = xset \ 16947 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16948done 16949PS1='$ ' 16950PS2='> ' 16951PS4='+ ' 16952 16953# NLS nuisances. 16954LC_ALL=C 16955export LC_ALL 16956LANGUAGE=C 16957export LANGUAGE 16958 16959# CDPATH. 16960(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16961 16962 16963# as_fn_error STATUS ERROR [LINENO LOG_FD] 16964# ---------------------------------------- 16965# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16966# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16967# script with STATUS, using 1 if that was 0. 16968as_fn_error () 16969{ 16970 as_status=$1; test $as_status -eq 0 && as_status=1 16971 if test "$4"; then 16972 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16973 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16974 fi 16975 $as_echo "$as_me: error: $2" >&2 16976 as_fn_exit $as_status 16977} # as_fn_error 16978 16979 16980# as_fn_set_status STATUS 16981# ----------------------- 16982# Set $? to STATUS, without forking. 16983as_fn_set_status () 16984{ 16985 return $1 16986} # as_fn_set_status 16987 16988# as_fn_exit STATUS 16989# ----------------- 16990# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16991as_fn_exit () 16992{ 16993 set +e 16994 as_fn_set_status $1 16995 exit $1 16996} # as_fn_exit 16997 16998# as_fn_unset VAR 16999# --------------- 17000# Portably unset VAR. 17001as_fn_unset () 17002{ 17003 { eval $1=; unset $1;} 17004} 17005as_unset=as_fn_unset 17006# as_fn_append VAR VALUE 17007# ---------------------- 17008# Append the text in VALUE to the end of the definition contained in VAR. Take 17009# advantage of any shell optimizations that allow amortized linear growth over 17010# repeated appends, instead of the typical quadratic growth present in naive 17011# implementations. 17012if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17013 eval 'as_fn_append () 17014 { 17015 eval $1+=\$2 17016 }' 17017else 17018 as_fn_append () 17019 { 17020 eval $1=\$$1\$2 17021 } 17022fi # as_fn_append 17023 17024# as_fn_arith ARG... 17025# ------------------ 17026# Perform arithmetic evaluation on the ARGs, and store the result in the 17027# global $as_val. Take advantage of shells that can avoid forks. The arguments 17028# must be portable across $(()) and expr. 17029if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17030 eval 'as_fn_arith () 17031 { 17032 as_val=$(( $* )) 17033 }' 17034else 17035 as_fn_arith () 17036 { 17037 as_val=`expr "$@" || test $? -eq 1` 17038 } 17039fi # as_fn_arith 17040 17041 17042if expr a : '\(a\)' >/dev/null 2>&1 && 17043 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17044 as_expr=expr 17045else 17046 as_expr=false 17047fi 17048 17049if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17050 as_basename=basename 17051else 17052 as_basename=false 17053fi 17054 17055if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17056 as_dirname=dirname 17057else 17058 as_dirname=false 17059fi 17060 17061as_me=`$as_basename -- "$0" || 17062$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17063 X"$0" : 'X\(//\)$' \| \ 17064 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17065$as_echo X/"$0" | 17066 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17067 s//\1/ 17068 q 17069 } 17070 /^X\/\(\/\/\)$/{ 17071 s//\1/ 17072 q 17073 } 17074 /^X\/\(\/\).*/{ 17075 s//\1/ 17076 q 17077 } 17078 s/.*/./; q'` 17079 17080# Avoid depending upon Character Ranges. 17081as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17082as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17083as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17084as_cr_digits='0123456789' 17085as_cr_alnum=$as_cr_Letters$as_cr_digits 17086 17087ECHO_C= ECHO_N= ECHO_T= 17088case `echo -n x` in #((((( 17089-n*) 17090 case `echo 'xy\c'` in 17091 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17092 xy) ECHO_C='\c';; 17093 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17094 ECHO_T=' ';; 17095 esac;; 17096*) 17097 ECHO_N='-n';; 17098esac 17099 17100rm -f conf$$ conf$$.exe conf$$.file 17101if test -d conf$$.dir; then 17102 rm -f conf$$.dir/conf$$.file 17103else 17104 rm -f conf$$.dir 17105 mkdir conf$$.dir 2>/dev/null 17106fi 17107if (echo >conf$$.file) 2>/dev/null; then 17108 if ln -s conf$$.file conf$$ 2>/dev/null; then 17109 as_ln_s='ln -s' 17110 # ... but there are two gotchas: 17111 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17112 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17113 # In both cases, we have to default to `cp -pR'. 17114 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17115 as_ln_s='cp -pR' 17116 elif ln conf$$.file conf$$ 2>/dev/null; then 17117 as_ln_s=ln 17118 else 17119 as_ln_s='cp -pR' 17120 fi 17121else 17122 as_ln_s='cp -pR' 17123fi 17124rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17125rmdir conf$$.dir 2>/dev/null 17126 17127 17128# as_fn_mkdir_p 17129# ------------- 17130# Create "$as_dir" as a directory, including parents if necessary. 17131as_fn_mkdir_p () 17132{ 17133 17134 case $as_dir in #( 17135 -*) as_dir=./$as_dir;; 17136 esac 17137 test -d "$as_dir" || eval $as_mkdir_p || { 17138 as_dirs= 17139 while :; do 17140 case $as_dir in #( 17141 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17142 *) as_qdir=$as_dir;; 17143 esac 17144 as_dirs="'$as_qdir' $as_dirs" 17145 as_dir=`$as_dirname -- "$as_dir" || 17146$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17147 X"$as_dir" : 'X\(//\)[^/]' \| \ 17148 X"$as_dir" : 'X\(//\)$' \| \ 17149 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17150$as_echo X"$as_dir" | 17151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17152 s//\1/ 17153 q 17154 } 17155 /^X\(\/\/\)[^/].*/{ 17156 s//\1/ 17157 q 17158 } 17159 /^X\(\/\/\)$/{ 17160 s//\1/ 17161 q 17162 } 17163 /^X\(\/\).*/{ 17164 s//\1/ 17165 q 17166 } 17167 s/.*/./; q'` 17168 test -d "$as_dir" && break 17169 done 17170 test -z "$as_dirs" || eval "mkdir $as_dirs" 17171 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17172 17173 17174} # as_fn_mkdir_p 17175if mkdir -p . 2>/dev/null; then 17176 as_mkdir_p='mkdir -p "$as_dir"' 17177else 17178 test -d ./-p && rmdir ./-p 17179 as_mkdir_p=false 17180fi 17181 17182 17183# as_fn_executable_p FILE 17184# ----------------------- 17185# Test if FILE is an executable regular file. 17186as_fn_executable_p () 17187{ 17188 test -f "$1" && test -x "$1" 17189} # as_fn_executable_p 17190as_test_x='test -x' 17191as_executable_p=as_fn_executable_p 17192 17193# Sed expression to map a string onto a valid CPP name. 17194as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17195 17196# Sed expression to map a string onto a valid variable name. 17197as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17198 17199 17200exec 6>&1 17201## ----------------------------------- ## 17202## Main body of $CONFIG_STATUS script. ## 17203## ----------------------------------- ## 17204_ASEOF 17205test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17206 17207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17208# Save the log message, to keep $0 and so on meaningful, and to 17209# report actual input values of CONFIG_FILES etc. instead of their 17210# values after options handling. 17211ac_log=" 17212This file was extended by opencore-amr $as_me 0.1.5, which was 17213generated by GNU Autoconf 2.69. Invocation command line was 17214 17215 CONFIG_FILES = $CONFIG_FILES 17216 CONFIG_HEADERS = $CONFIG_HEADERS 17217 CONFIG_LINKS = $CONFIG_LINKS 17218 CONFIG_COMMANDS = $CONFIG_COMMANDS 17219 $ $0 $@ 17220 17221on `(hostname || uname -n) 2>/dev/null | sed 1q` 17222" 17223 17224_ACEOF 17225 17226case $ac_config_files in *" 17227"*) set x $ac_config_files; shift; ac_config_files=$*;; 17228esac 17229 17230 17231 17232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17233# Files that config.status was made for. 17234config_files="$ac_config_files" 17235config_commands="$ac_config_commands" 17236 17237_ACEOF 17238 17239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17240ac_cs_usage="\ 17241\`$as_me' instantiates files and other configuration actions 17242from templates according to the current configuration. Unless the files 17243and actions are specified as TAGs, all are instantiated by default. 17244 17245Usage: $0 [OPTION]... [TAG]... 17246 17247 -h, --help print this help, then exit 17248 -V, --version print version number and configuration settings, then exit 17249 --config print configuration, then exit 17250 -q, --quiet, --silent 17251 do not print progress messages 17252 -d, --debug don't remove temporary files 17253 --recheck update $as_me by reconfiguring in the same conditions 17254 --file=FILE[:TEMPLATE] 17255 instantiate the configuration file FILE 17256 17257Configuration files: 17258$config_files 17259 17260Configuration commands: 17261$config_commands 17262 17263Report bugs to <http://sourceforge.net/projects/opencore-amr/>." 17264 17265_ACEOF 17266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17267ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17268ac_cs_version="\\ 17269opencore-amr config.status 0.1.5 17270configured by $0, generated by GNU Autoconf 2.69, 17271 with options \\"\$ac_cs_config\\" 17272 17273Copyright (C) 2012 Free Software Foundation, Inc. 17274This config.status script is free software; the Free Software Foundation 17275gives unlimited permission to copy, distribute and modify it." 17276 17277ac_pwd='$ac_pwd' 17278srcdir='$srcdir' 17279INSTALL='$INSTALL' 17280MKDIR_P='$MKDIR_P' 17281AWK='$AWK' 17282test -n "\$AWK" || AWK=awk 17283_ACEOF 17284 17285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17286# The default lists apply if the user does not specify any file. 17287ac_need_defaults=: 17288while test $# != 0 17289do 17290 case $1 in 17291 --*=?*) 17292 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17293 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17294 ac_shift=: 17295 ;; 17296 --*=) 17297 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17298 ac_optarg= 17299 ac_shift=: 17300 ;; 17301 *) 17302 ac_option=$1 17303 ac_optarg=$2 17304 ac_shift=shift 17305 ;; 17306 esac 17307 17308 case $ac_option in 17309 # Handling of the options. 17310 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17311 ac_cs_recheck=: ;; 17312 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17313 $as_echo "$ac_cs_version"; exit ;; 17314 --config | --confi | --conf | --con | --co | --c ) 17315 $as_echo "$ac_cs_config"; exit ;; 17316 --debug | --debu | --deb | --de | --d | -d ) 17317 debug=: ;; 17318 --file | --fil | --fi | --f ) 17319 $ac_shift 17320 case $ac_optarg in 17321 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17322 '') as_fn_error $? "missing file argument" ;; 17323 esac 17324 as_fn_append CONFIG_FILES " '$ac_optarg'" 17325 ac_need_defaults=false;; 17326 --he | --h | --help | --hel | -h ) 17327 $as_echo "$ac_cs_usage"; exit ;; 17328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17329 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17330 ac_cs_silent=: ;; 17331 17332 # This is an error. 17333 -*) as_fn_error $? "unrecognized option: \`$1' 17334Try \`$0 --help' for more information." ;; 17335 17336 *) as_fn_append ac_config_targets " $1" 17337 ac_need_defaults=false ;; 17338 17339 esac 17340 shift 17341done 17342 17343ac_configure_extra_args= 17344 17345if $ac_cs_silent; then 17346 exec 6>/dev/null 17347 ac_configure_extra_args="$ac_configure_extra_args --silent" 17348fi 17349 17350_ACEOF 17351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17352if \$ac_cs_recheck; then 17353 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17354 shift 17355 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17356 CONFIG_SHELL='$SHELL' 17357 export CONFIG_SHELL 17358 exec "\$@" 17359fi 17360 17361_ACEOF 17362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17363exec 5>>config.log 17364{ 17365 echo 17366 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17367## Running $as_me. ## 17368_ASBOX 17369 $as_echo "$ac_log" 17370} >&5 17371 17372_ACEOF 17373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17374# 17375# INIT-COMMANDS 17376# 17377AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17378 17379 17380# The HP-UX ksh and POSIX shell print the target directory to stdout 17381# if CDPATH is set. 17382(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17383 17384sed_quote_subst='$sed_quote_subst' 17385double_quote_subst='$double_quote_subst' 17386delay_variable_subst='$delay_variable_subst' 17387macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17388macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17389enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17390enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17391pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17392enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17393shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17394SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17395ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17396PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17397host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17398host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17399host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17400build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17401build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17402build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17403SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17404Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17405GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17406EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17407FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17408LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17409NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17410LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17411max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17412ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17413exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17414lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17415lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17416lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17417lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17418lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17419reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17420reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17421OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17422deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17423file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17424file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17425want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17426DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17427sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17428AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17429AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17430archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17431STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17432RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17433old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17434old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17435old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17436lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17437CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17438CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17439compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17440GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17441lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17442lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17443lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17444lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17445lt_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"`' 17446lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17447nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17448lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17449lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17450objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17451MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17452lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17453lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17454lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17455lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17456lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17457need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17458MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17459DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17460NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17461LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17462OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17463OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17464libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17465shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17466extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17467archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17468enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17469export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17470whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17471compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17472old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17473old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17474archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17475archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17476module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17477module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17478with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17479allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17480no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17481hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17482hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17483hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17484hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17485hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17486hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17487hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17488inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17489link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17490always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17491export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17492exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17493include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17494prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17495postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17496file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17497variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17498need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17499need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17500version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17501runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17502shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17503shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17504libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17505library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17506soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17507install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17508postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17509postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17510finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17511finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17512hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17513sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17514configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17515configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17516hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17517enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17518enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17519enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17520old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17521striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17522compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17523predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17524postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17525predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17526postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17527compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17528LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17529reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17530reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17531old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17532compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17533GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17534lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17535lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17536lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17537lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17538lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17539archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17540enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17541export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17542whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17543compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17544old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17545old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17546archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17547archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17548module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17549module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17550with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17551allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17552no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17553hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17554hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17555hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17556hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17557hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17558hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17559hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17560inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17561link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17562always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17563export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17564exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17565include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17566prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17567postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17568file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17569hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17570compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17571predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17572postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17573predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17574postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17575compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17576 17577LTCC='$LTCC' 17578LTCFLAGS='$LTCFLAGS' 17579compiler='$compiler_DEFAULT' 17580 17581# A function that is used when there is no print builtin or printf. 17582func_fallback_echo () 17583{ 17584 eval 'cat <<_LTECHO_EOF 17585\$1 17586_LTECHO_EOF' 17587} 17588 17589# Quote evaled strings. 17590for var in SHELL \ 17591ECHO \ 17592PATH_SEPARATOR \ 17593SED \ 17594GREP \ 17595EGREP \ 17596FGREP \ 17597LD \ 17598NM \ 17599LN_S \ 17600lt_SP2NL \ 17601lt_NL2SP \ 17602reload_flag \ 17603OBJDUMP \ 17604deplibs_check_method \ 17605file_magic_cmd \ 17606file_magic_glob \ 17607want_nocaseglob \ 17608DLLTOOL \ 17609sharedlib_from_linklib_cmd \ 17610AR \ 17611AR_FLAGS \ 17612archiver_list_spec \ 17613STRIP \ 17614RANLIB \ 17615CC \ 17616CFLAGS \ 17617compiler \ 17618lt_cv_sys_global_symbol_pipe \ 17619lt_cv_sys_global_symbol_to_cdecl \ 17620lt_cv_sys_global_symbol_to_import \ 17621lt_cv_sys_global_symbol_to_c_name_address \ 17622lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17623lt_cv_nm_interface \ 17624nm_file_list_spec \ 17625lt_cv_truncate_bin \ 17626lt_prog_compiler_no_builtin_flag \ 17627lt_prog_compiler_pic \ 17628lt_prog_compiler_wl \ 17629lt_prog_compiler_static \ 17630lt_cv_prog_compiler_c_o \ 17631need_locks \ 17632MANIFEST_TOOL \ 17633DSYMUTIL \ 17634NMEDIT \ 17635LIPO \ 17636OTOOL \ 17637OTOOL64 \ 17638shrext_cmds \ 17639export_dynamic_flag_spec \ 17640whole_archive_flag_spec \ 17641compiler_needs_object \ 17642with_gnu_ld \ 17643allow_undefined_flag \ 17644no_undefined_flag \ 17645hardcode_libdir_flag_spec \ 17646hardcode_libdir_separator \ 17647exclude_expsyms \ 17648include_expsyms \ 17649file_list_spec \ 17650variables_saved_for_relink \ 17651libname_spec \ 17652library_names_spec \ 17653soname_spec \ 17654install_override_mode \ 17655finish_eval \ 17656old_striplib \ 17657striplib \ 17658compiler_lib_search_dirs \ 17659predep_objects \ 17660postdep_objects \ 17661predeps \ 17662postdeps \ 17663compiler_lib_search_path \ 17664LD_CXX \ 17665reload_flag_CXX \ 17666compiler_CXX \ 17667lt_prog_compiler_no_builtin_flag_CXX \ 17668lt_prog_compiler_pic_CXX \ 17669lt_prog_compiler_wl_CXX \ 17670lt_prog_compiler_static_CXX \ 17671lt_cv_prog_compiler_c_o_CXX \ 17672export_dynamic_flag_spec_CXX \ 17673whole_archive_flag_spec_CXX \ 17674compiler_needs_object_CXX \ 17675with_gnu_ld_CXX \ 17676allow_undefined_flag_CXX \ 17677no_undefined_flag_CXX \ 17678hardcode_libdir_flag_spec_CXX \ 17679hardcode_libdir_separator_CXX \ 17680exclude_expsyms_CXX \ 17681include_expsyms_CXX \ 17682file_list_spec_CXX \ 17683compiler_lib_search_dirs_CXX \ 17684predep_objects_CXX \ 17685postdep_objects_CXX \ 17686predeps_CXX \ 17687postdeps_CXX \ 17688compiler_lib_search_path_CXX; do 17689 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17690 *[\\\\\\\`\\"\\\$]*) 17691 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17692 ;; 17693 *) 17694 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17695 ;; 17696 esac 17697done 17698 17699# Double-quote double-evaled strings. 17700for var in reload_cmds \ 17701old_postinstall_cmds \ 17702old_postuninstall_cmds \ 17703old_archive_cmds \ 17704extract_expsyms_cmds \ 17705old_archive_from_new_cmds \ 17706old_archive_from_expsyms_cmds \ 17707archive_cmds \ 17708archive_expsym_cmds \ 17709module_cmds \ 17710module_expsym_cmds \ 17711export_symbols_cmds \ 17712prelink_cmds \ 17713postlink_cmds \ 17714postinstall_cmds \ 17715postuninstall_cmds \ 17716finish_cmds \ 17717sys_lib_search_path_spec \ 17718configure_time_dlsearch_path \ 17719configure_time_lt_sys_library_path \ 17720reload_cmds_CXX \ 17721old_archive_cmds_CXX \ 17722old_archive_from_new_cmds_CXX \ 17723old_archive_from_expsyms_cmds_CXX \ 17724archive_cmds_CXX \ 17725archive_expsym_cmds_CXX \ 17726module_cmds_CXX \ 17727module_expsym_cmds_CXX \ 17728export_symbols_cmds_CXX \ 17729prelink_cmds_CXX \ 17730postlink_cmds_CXX; do 17731 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17732 *[\\\\\\\`\\"\\\$]*) 17733 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17734 ;; 17735 *) 17736 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17737 ;; 17738 esac 17739done 17740 17741ac_aux_dir='$ac_aux_dir' 17742 17743# See if we are running on zsh, and set the options that allow our 17744# commands through without removal of \ escapes INIT. 17745if test -n "\${ZSH_VERSION+set}"; then 17746 setopt NO_GLOB_SUBST 17747fi 17748 17749 17750 PACKAGE='$PACKAGE' 17751 VERSION='$VERSION' 17752 RM='$RM' 17753 ofile='$ofile' 17754 17755 17756 17757 17758 17759 17760_ACEOF 17761 17762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17763 17764# Handling of arguments. 17765for ac_config_target in $ac_config_targets 17766do 17767 case $ac_config_target in 17768 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17769 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17770 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17771 "amrnb/Makefile") CONFIG_FILES="$CONFIG_FILES amrnb/Makefile" ;; 17772 "amrwb/Makefile") CONFIG_FILES="$CONFIG_FILES amrwb/Makefile" ;; 17773 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 17774 "amrnb/opencore-amrnb.pc") CONFIG_FILES="$CONFIG_FILES amrnb/opencore-amrnb.pc" ;; 17775 "amrwb/opencore-amrwb.pc") CONFIG_FILES="$CONFIG_FILES amrwb/opencore-amrwb.pc" ;; 17776 17777 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17778 esac 17779done 17780 17781 17782# If the user did not use the arguments to specify the items to instantiate, 17783# then the envvar interface is used. Set only those that are not. 17784# We use the long form for the default assignment because of an extremely 17785# bizarre bug on SunOS 4.1.3. 17786if $ac_need_defaults; then 17787 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17788 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17789fi 17790 17791# Have a temporary directory for convenience. Make it in the build tree 17792# simply because there is no reason against having it here, and in addition, 17793# creating and moving files from /tmp can sometimes cause problems. 17794# Hook for its removal unless debugging. 17795# Note that there is a small window in which the directory will not be cleaned: 17796# after its creation but before its name has been assigned to `$tmp'. 17797$debug || 17798{ 17799 tmp= ac_tmp= 17800 trap 'exit_status=$? 17801 : "${ac_tmp:=$tmp}" 17802 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17803' 0 17804 trap 'as_fn_exit 1' 1 2 13 15 17805} 17806# Create a (secure) tmp directory for tmp files. 17807 17808{ 17809 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17810 test -d "$tmp" 17811} || 17812{ 17813 tmp=./conf$$-$RANDOM 17814 (umask 077 && mkdir "$tmp") 17815} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17816ac_tmp=$tmp 17817 17818# Set up the scripts for CONFIG_FILES section. 17819# No need to generate them if there are no CONFIG_FILES. 17820# This happens for instance with `./config.status config.h'. 17821if test -n "$CONFIG_FILES"; then 17822 17823 17824ac_cr=`echo X | tr X '\015'` 17825# On cygwin, bash can eat \r inside `` if the user requested igncr. 17826# But we know of no other shell where ac_cr would be empty at this 17827# point, so we can use a bashism as a fallback. 17828if test "x$ac_cr" = x; then 17829 eval ac_cr=\$\'\\r\' 17830fi 17831ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17832if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17833 ac_cs_awk_cr='\\r' 17834else 17835 ac_cs_awk_cr=$ac_cr 17836fi 17837 17838echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17839_ACEOF 17840 17841 17842{ 17843 echo "cat >conf$$subs.awk <<_ACEOF" && 17844 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17845 echo "_ACEOF" 17846} >conf$$subs.sh || 17847 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17848ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17849ac_delim='%!_!# ' 17850for ac_last_try in false false false false false :; do 17851 . ./conf$$subs.sh || 17852 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17853 17854 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17855 if test $ac_delim_n = $ac_delim_num; then 17856 break 17857 elif $ac_last_try; then 17858 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17859 else 17860 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17861 fi 17862done 17863rm -f conf$$subs.sh 17864 17865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17866cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17867_ACEOF 17868sed -n ' 17869h 17870s/^/S["/; s/!.*/"]=/ 17871p 17872g 17873s/^[^!]*!// 17874:repl 17875t repl 17876s/'"$ac_delim"'$// 17877t delim 17878:nl 17879h 17880s/\(.\{148\}\)..*/\1/ 17881t more1 17882s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17883p 17884n 17885b repl 17886:more1 17887s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17888p 17889g 17890s/.\{148\}// 17891t nl 17892:delim 17893h 17894s/\(.\{148\}\)..*/\1/ 17895t more2 17896s/["\\]/\\&/g; s/^/"/; s/$/"/ 17897p 17898b 17899:more2 17900s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17901p 17902g 17903s/.\{148\}// 17904t delim 17905' <conf$$subs.awk | sed ' 17906/^[^""]/{ 17907 N 17908 s/\n// 17909} 17910' >>$CONFIG_STATUS || ac_write_fail=1 17911rm -f conf$$subs.awk 17912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17913_ACAWK 17914cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17915 for (key in S) S_is_set[key] = 1 17916 FS = "" 17917 17918} 17919{ 17920 line = $ 0 17921 nfields = split(line, field, "@") 17922 substed = 0 17923 len = length(field[1]) 17924 for (i = 2; i < nfields; i++) { 17925 key = field[i] 17926 keylen = length(key) 17927 if (S_is_set[key]) { 17928 value = S[key] 17929 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17930 len += length(value) + length(field[++i]) 17931 substed = 1 17932 } else 17933 len += 1 + keylen 17934 } 17935 17936 print line 17937} 17938 17939_ACAWK 17940_ACEOF 17941cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17942if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17943 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17944else 17945 cat 17946fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17947 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17948_ACEOF 17949 17950# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17951# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17952# trailing colons and then remove the whole line if VPATH becomes empty 17953# (actually we leave an empty line to preserve line numbers). 17954if test "x$srcdir" = x.; then 17955 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17956h 17957s/// 17958s/^/:/ 17959s/[ ]*$/:/ 17960s/:\$(srcdir):/:/g 17961s/:\${srcdir}:/:/g 17962s/:@srcdir@:/:/g 17963s/^:*// 17964s/:*$// 17965x 17966s/\(=[ ]*\).*/\1/ 17967G 17968s/\n// 17969s/^[^=]*=[ ]*$// 17970}' 17971fi 17972 17973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17974fi # test -n "$CONFIG_FILES" 17975 17976 17977eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 17978shift 17979for ac_tag 17980do 17981 case $ac_tag in 17982 :[FHLC]) ac_mode=$ac_tag; continue;; 17983 esac 17984 case $ac_mode$ac_tag in 17985 :[FHL]*:*);; 17986 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17987 :[FH]-) ac_tag=-:-;; 17988 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17989 esac 17990 ac_save_IFS=$IFS 17991 IFS=: 17992 set x $ac_tag 17993 IFS=$ac_save_IFS 17994 shift 17995 ac_file=$1 17996 shift 17997 17998 case $ac_mode in 17999 :L) ac_source=$1;; 18000 :[FH]) 18001 ac_file_inputs= 18002 for ac_f 18003 do 18004 case $ac_f in 18005 -) ac_f="$ac_tmp/stdin";; 18006 *) # Look for the file first in the build tree, then in the source tree 18007 # (if the path is not absolute). The absolute path cannot be DOS-style, 18008 # because $ac_f cannot contain `:'. 18009 test -f "$ac_f" || 18010 case $ac_f in 18011 [\\/$]*) false;; 18012 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18013 esac || 18014 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18015 esac 18016 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18017 as_fn_append ac_file_inputs " '$ac_f'" 18018 done 18019 18020 # Let's still pretend it is `configure' which instantiates (i.e., don't 18021 # use $as_me), people would be surprised to read: 18022 # /* config.h. Generated by config.status. */ 18023 configure_input='Generated from '` 18024 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18025 `' by configure.' 18026 if test x"$ac_file" != x-; then 18027 configure_input="$ac_file. $configure_input" 18028 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18029$as_echo "$as_me: creating $ac_file" >&6;} 18030 fi 18031 # Neutralize special characters interpreted by sed in replacement strings. 18032 case $configure_input in #( 18033 *\&* | *\|* | *\\* ) 18034 ac_sed_conf_input=`$as_echo "$configure_input" | 18035 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18036 *) ac_sed_conf_input=$configure_input;; 18037 esac 18038 18039 case $ac_tag in 18040 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18042 esac 18043 ;; 18044 esac 18045 18046 ac_dir=`$as_dirname -- "$ac_file" || 18047$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18048 X"$ac_file" : 'X\(//\)[^/]' \| \ 18049 X"$ac_file" : 'X\(//\)$' \| \ 18050 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18051$as_echo X"$ac_file" | 18052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18053 s//\1/ 18054 q 18055 } 18056 /^X\(\/\/\)[^/].*/{ 18057 s//\1/ 18058 q 18059 } 18060 /^X\(\/\/\)$/{ 18061 s//\1/ 18062 q 18063 } 18064 /^X\(\/\).*/{ 18065 s//\1/ 18066 q 18067 } 18068 s/.*/./; q'` 18069 as_dir="$ac_dir"; as_fn_mkdir_p 18070 ac_builddir=. 18071 18072case "$ac_dir" in 18073.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18074*) 18075 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18076 # A ".." for each directory in $ac_dir_suffix. 18077 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18078 case $ac_top_builddir_sub in 18079 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18080 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18081 esac ;; 18082esac 18083ac_abs_top_builddir=$ac_pwd 18084ac_abs_builddir=$ac_pwd$ac_dir_suffix 18085# for backward compatibility: 18086ac_top_builddir=$ac_top_build_prefix 18087 18088case $srcdir in 18089 .) # We are building in place. 18090 ac_srcdir=. 18091 ac_top_srcdir=$ac_top_builddir_sub 18092 ac_abs_top_srcdir=$ac_pwd ;; 18093 [\\/]* | ?:[\\/]* ) # Absolute name. 18094 ac_srcdir=$srcdir$ac_dir_suffix; 18095 ac_top_srcdir=$srcdir 18096 ac_abs_top_srcdir=$srcdir ;; 18097 *) # Relative name. 18098 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18099 ac_top_srcdir=$ac_top_build_prefix$srcdir 18100 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18101esac 18102ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18103 18104 18105 case $ac_mode in 18106 :F) 18107 # 18108 # CONFIG_FILE 18109 # 18110 18111 case $INSTALL in 18112 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18113 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18114 esac 18115 ac_MKDIR_P=$MKDIR_P 18116 case $MKDIR_P in 18117 [\\/$]* | ?:[\\/]* ) ;; 18118 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18119 esac 18120_ACEOF 18121 18122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18123# If the template does not know about datarootdir, expand it. 18124# FIXME: This hack should be removed a few years after 2.60. 18125ac_datarootdir_hack=; ac_datarootdir_seen= 18126ac_sed_dataroot=' 18127/datarootdir/ { 18128 p 18129 q 18130} 18131/@datadir@/p 18132/@docdir@/p 18133/@infodir@/p 18134/@localedir@/p 18135/@mandir@/p' 18136case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18137*datarootdir*) ac_datarootdir_seen=yes;; 18138*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18140$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18141_ACEOF 18142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18143 ac_datarootdir_hack=' 18144 s&@datadir@&$datadir&g 18145 s&@docdir@&$docdir&g 18146 s&@infodir@&$infodir&g 18147 s&@localedir@&$localedir&g 18148 s&@mandir@&$mandir&g 18149 s&\\\${datarootdir}&$datarootdir&g' ;; 18150esac 18151_ACEOF 18152 18153# Neutralize VPATH when `$srcdir' = `.'. 18154# Shell code in configure.ac might set extrasub. 18155# FIXME: do we really want to maintain this feature? 18156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18157ac_sed_extra="$ac_vpsub 18158$extrasub 18159_ACEOF 18160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18161:t 18162/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18163s|@configure_input@|$ac_sed_conf_input|;t t 18164s&@top_builddir@&$ac_top_builddir_sub&;t t 18165s&@top_build_prefix@&$ac_top_build_prefix&;t t 18166s&@srcdir@&$ac_srcdir&;t t 18167s&@abs_srcdir@&$ac_abs_srcdir&;t t 18168s&@top_srcdir@&$ac_top_srcdir&;t t 18169s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18170s&@builddir@&$ac_builddir&;t t 18171s&@abs_builddir@&$ac_abs_builddir&;t t 18172s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18173s&@INSTALL@&$ac_INSTALL&;t t 18174s&@MKDIR_P@&$ac_MKDIR_P&;t t 18175$ac_datarootdir_hack 18176" 18177eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18178 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18179 18180test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18181 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18182 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18183 "$ac_tmp/out"`; test -z "$ac_out"; } && 18184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18185which seems to be undefined. Please make sure it is defined" >&5 18186$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18187which seems to be undefined. Please make sure it is defined" >&2;} 18188 18189 rm -f "$ac_tmp/stdin" 18190 case $ac_file in 18191 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18192 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18193 esac \ 18194 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18195 ;; 18196 18197 18198 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18199$as_echo "$as_me: executing $ac_file commands" >&6;} 18200 ;; 18201 esac 18202 18203 18204 case $ac_file$ac_mode in 18205 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18206 # Older Autoconf quotes --file arguments for eval, but not when files 18207 # are listed without --file. Let's play safe and only enable the eval 18208 # if we detect the quoting. 18209 case $CONFIG_FILES in 18210 *\'*) eval set x "$CONFIG_FILES" ;; 18211 *) set x $CONFIG_FILES ;; 18212 esac 18213 shift 18214 for mf 18215 do 18216 # Strip MF so we end up with the name of the file. 18217 mf=`echo "$mf" | sed -e 's/:.*$//'` 18218 # Check whether this is an Automake generated Makefile or not. 18219 # We used to match only the files named 'Makefile.in', but 18220 # some people rename them; so instead we look at the file content. 18221 # Grep'ing the first line is not enough: some people post-process 18222 # each Makefile.in and add a new line on top of each file to say so. 18223 # Grep'ing the whole file is not good either: AIX grep has a line 18224 # limit of 2048, but all sed's we know have understand at least 4000. 18225 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18226 dirpart=`$as_dirname -- "$mf" || 18227$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18228 X"$mf" : 'X\(//\)[^/]' \| \ 18229 X"$mf" : 'X\(//\)$' \| \ 18230 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18231$as_echo X"$mf" | 18232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18233 s//\1/ 18234 q 18235 } 18236 /^X\(\/\/\)[^/].*/{ 18237 s//\1/ 18238 q 18239 } 18240 /^X\(\/\/\)$/{ 18241 s//\1/ 18242 q 18243 } 18244 /^X\(\/\).*/{ 18245 s//\1/ 18246 q 18247 } 18248 s/.*/./; q'` 18249 else 18250 continue 18251 fi 18252 # Extract the definition of DEPDIR, am__include, and am__quote 18253 # from the Makefile without running 'make'. 18254 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18255 test -z "$DEPDIR" && continue 18256 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18257 test -z "$am__include" && continue 18258 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18259 # Find all dependency output files, they are included files with 18260 # $(DEPDIR) in their names. We invoke sed twice because it is the 18261 # simplest approach to changing $(DEPDIR) to its actual value in the 18262 # expansion. 18263 for file in `sed -n " 18264 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18265 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18266 # Make sure the directory exists. 18267 test -f "$dirpart/$file" && continue 18268 fdir=`$as_dirname -- "$file" || 18269$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18270 X"$file" : 'X\(//\)[^/]' \| \ 18271 X"$file" : 'X\(//\)$' \| \ 18272 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18273$as_echo X"$file" | 18274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18275 s//\1/ 18276 q 18277 } 18278 /^X\(\/\/\)[^/].*/{ 18279 s//\1/ 18280 q 18281 } 18282 /^X\(\/\/\)$/{ 18283 s//\1/ 18284 q 18285 } 18286 /^X\(\/\).*/{ 18287 s//\1/ 18288 q 18289 } 18290 s/.*/./; q'` 18291 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18292 # echo "creating $dirpart/$file" 18293 echo '# dummy' > "$dirpart/$file" 18294 done 18295 done 18296} 18297 ;; 18298 "libtool":C) 18299 18300 # See if we are running on zsh, and set the options that allow our 18301 # commands through without removal of \ escapes. 18302 if test -n "${ZSH_VERSION+set}"; then 18303 setopt NO_GLOB_SUBST 18304 fi 18305 18306 cfgfile=${ofile}T 18307 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18308 $RM "$cfgfile" 18309 18310 cat <<_LT_EOF >> "$cfgfile" 18311#! $SHELL 18312# Generated automatically by $as_me ($PACKAGE) $VERSION 18313# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18314# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18315 18316# Provide generalized library-building support services. 18317# Written by Gordon Matzigkeit, 1996 18318 18319# Copyright (C) 2014 Free Software Foundation, Inc. 18320# This is free software; see the source for copying conditions. There is NO 18321# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18322 18323# GNU Libtool is free software; you can redistribute it and/or modify 18324# it under the terms of the GNU General Public License as published by 18325# the Free Software Foundation; either version 2 of of the License, or 18326# (at your option) any later version. 18327# 18328# As a special exception to the GNU General Public License, if you 18329# distribute this file as part of a program or library that is built 18330# using GNU Libtool, you may include this file under the same 18331# distribution terms that you use for the rest of that program. 18332# 18333# GNU Libtool is distributed in the hope that it will be useful, but 18334# WITHOUT ANY WARRANTY; without even the implied warranty of 18335# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18336# GNU General Public License for more details. 18337# 18338# You should have received a copy of the GNU General Public License 18339# along with this program. If not, see <http://www.gnu.org/licenses/>. 18340 18341 18342# The names of the tagged configurations supported by this script. 18343available_tags='CXX ' 18344 18345# Configured defaults for sys_lib_dlsearch_path munging. 18346: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18347 18348# ### BEGIN LIBTOOL CONFIG 18349 18350# Which release of libtool.m4 was used? 18351macro_version=$macro_version 18352macro_revision=$macro_revision 18353 18354# Whether or not to build shared libraries. 18355build_libtool_libs=$enable_shared 18356 18357# Whether or not to build static libraries. 18358build_old_libs=$enable_static 18359 18360# What type of objects to build. 18361pic_mode=$pic_mode 18362 18363# Whether or not to optimize for fast installation. 18364fast_install=$enable_fast_install 18365 18366# Shared archive member basename,for filename based shared library versioning on AIX. 18367shared_archive_member_spec=$shared_archive_member_spec 18368 18369# Shell to use when invoking shell scripts. 18370SHELL=$lt_SHELL 18371 18372# An echo program that protects backslashes. 18373ECHO=$lt_ECHO 18374 18375# The PATH separator for the build system. 18376PATH_SEPARATOR=$lt_PATH_SEPARATOR 18377 18378# The host system. 18379host_alias=$host_alias 18380host=$host 18381host_os=$host_os 18382 18383# The build system. 18384build_alias=$build_alias 18385build=$build 18386build_os=$build_os 18387 18388# A sed program that does not truncate output. 18389SED=$lt_SED 18390 18391# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18392Xsed="\$SED -e 1s/^X//" 18393 18394# A grep program that handles long lines. 18395GREP=$lt_GREP 18396 18397# An ERE matcher. 18398EGREP=$lt_EGREP 18399 18400# A literal string matcher. 18401FGREP=$lt_FGREP 18402 18403# A BSD- or MS-compatible name lister. 18404NM=$lt_NM 18405 18406# Whether we need soft or hard links. 18407LN_S=$lt_LN_S 18408 18409# What is the maximum length of a command? 18410max_cmd_len=$max_cmd_len 18411 18412# Object file suffix (normally "o"). 18413objext=$ac_objext 18414 18415# Executable file suffix (normally ""). 18416exeext=$exeext 18417 18418# whether the shell understands "unset". 18419lt_unset=$lt_unset 18420 18421# turn spaces into newlines. 18422SP2NL=$lt_lt_SP2NL 18423 18424# turn newlines into spaces. 18425NL2SP=$lt_lt_NL2SP 18426 18427# convert \$build file names to \$host format. 18428to_host_file_cmd=$lt_cv_to_host_file_cmd 18429 18430# convert \$build files to toolchain format. 18431to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18432 18433# An object symbol dumper. 18434OBJDUMP=$lt_OBJDUMP 18435 18436# Method to check whether dependent libraries are shared objects. 18437deplibs_check_method=$lt_deplibs_check_method 18438 18439# Command to use when deplibs_check_method = "file_magic". 18440file_magic_cmd=$lt_file_magic_cmd 18441 18442# How to find potential files when deplibs_check_method = "file_magic". 18443file_magic_glob=$lt_file_magic_glob 18444 18445# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18446want_nocaseglob=$lt_want_nocaseglob 18447 18448# DLL creation program. 18449DLLTOOL=$lt_DLLTOOL 18450 18451# Command to associate shared and link libraries. 18452sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18453 18454# The archiver. 18455AR=$lt_AR 18456 18457# Flags to create an archive. 18458AR_FLAGS=$lt_AR_FLAGS 18459 18460# How to feed a file listing to the archiver. 18461archiver_list_spec=$lt_archiver_list_spec 18462 18463# A symbol stripping program. 18464STRIP=$lt_STRIP 18465 18466# Commands used to install an old-style archive. 18467RANLIB=$lt_RANLIB 18468old_postinstall_cmds=$lt_old_postinstall_cmds 18469old_postuninstall_cmds=$lt_old_postuninstall_cmds 18470 18471# Whether to use a lock for old archive extraction. 18472lock_old_archive_extraction=$lock_old_archive_extraction 18473 18474# A C compiler. 18475LTCC=$lt_CC 18476 18477# LTCC compiler flags. 18478LTCFLAGS=$lt_CFLAGS 18479 18480# Take the output of nm and produce a listing of raw symbols and C names. 18481global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18482 18483# Transform the output of nm in a proper C declaration. 18484global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18485 18486# Transform the output of nm into a list of symbols to manually relocate. 18487global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18488 18489# Transform the output of nm in a C name address pair. 18490global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18491 18492# Transform the output of nm in a C name address pair when lib prefix is needed. 18493global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18494 18495# The name lister interface. 18496nm_interface=$lt_lt_cv_nm_interface 18497 18498# Specify filename containing input files for \$NM. 18499nm_file_list_spec=$lt_nm_file_list_spec 18500 18501# The root where to search for dependent libraries,and where our libraries should be installed. 18502lt_sysroot=$lt_sysroot 18503 18504# Command to truncate a binary pipe. 18505lt_truncate_bin=$lt_lt_cv_truncate_bin 18506 18507# The name of the directory that contains temporary libtool files. 18508objdir=$objdir 18509 18510# Used to examine libraries when file_magic_cmd begins with "file". 18511MAGIC_CMD=$MAGIC_CMD 18512 18513# Must we lock files when doing compilation? 18514need_locks=$lt_need_locks 18515 18516# Manifest tool. 18517MANIFEST_TOOL=$lt_MANIFEST_TOOL 18518 18519# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18520DSYMUTIL=$lt_DSYMUTIL 18521 18522# Tool to change global to local symbols on Mac OS X. 18523NMEDIT=$lt_NMEDIT 18524 18525# Tool to manipulate fat objects and archives on Mac OS X. 18526LIPO=$lt_LIPO 18527 18528# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18529OTOOL=$lt_OTOOL 18530 18531# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18532OTOOL64=$lt_OTOOL64 18533 18534# Old archive suffix (normally "a"). 18535libext=$libext 18536 18537# Shared library suffix (normally ".so"). 18538shrext_cmds=$lt_shrext_cmds 18539 18540# The commands to extract the exported symbol list from a shared archive. 18541extract_expsyms_cmds=$lt_extract_expsyms_cmds 18542 18543# Variables whose values should be saved in libtool wrapper scripts and 18544# restored at link time. 18545variables_saved_for_relink=$lt_variables_saved_for_relink 18546 18547# Do we need the "lib" prefix for modules? 18548need_lib_prefix=$need_lib_prefix 18549 18550# Do we need a version for libraries? 18551need_version=$need_version 18552 18553# Library versioning type. 18554version_type=$version_type 18555 18556# Shared library runtime path variable. 18557runpath_var=$runpath_var 18558 18559# Shared library path variable. 18560shlibpath_var=$shlibpath_var 18561 18562# Is shlibpath searched before the hard-coded library search path? 18563shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18564 18565# Format of library name prefix. 18566libname_spec=$lt_libname_spec 18567 18568# List of archive names. First name is the real one, the rest are links. 18569# The last name is the one that the linker finds with -lNAME 18570library_names_spec=$lt_library_names_spec 18571 18572# The coded name of the library, if different from the real name. 18573soname_spec=$lt_soname_spec 18574 18575# Permission mode override for installation of shared libraries. 18576install_override_mode=$lt_install_override_mode 18577 18578# Command to use after installation of a shared archive. 18579postinstall_cmds=$lt_postinstall_cmds 18580 18581# Command to use after uninstallation of a shared archive. 18582postuninstall_cmds=$lt_postuninstall_cmds 18583 18584# Commands used to finish a libtool library installation in a directory. 18585finish_cmds=$lt_finish_cmds 18586 18587# As "finish_cmds", except a single script fragment to be evaled but 18588# not shown. 18589finish_eval=$lt_finish_eval 18590 18591# Whether we should hardcode library paths into libraries. 18592hardcode_into_libs=$hardcode_into_libs 18593 18594# Compile-time system search path for libraries. 18595sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18596 18597# Detected run-time system search path for libraries. 18598sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18599 18600# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18601configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18602 18603# Whether dlopen is supported. 18604dlopen_support=$enable_dlopen 18605 18606# Whether dlopen of programs is supported. 18607dlopen_self=$enable_dlopen_self 18608 18609# Whether dlopen of statically linked programs is supported. 18610dlopen_self_static=$enable_dlopen_self_static 18611 18612# Commands to strip libraries. 18613old_striplib=$lt_old_striplib 18614striplib=$lt_striplib 18615 18616 18617# The linker used to build libraries. 18618LD=$lt_LD 18619 18620# How to create reloadable object files. 18621reload_flag=$lt_reload_flag 18622reload_cmds=$lt_reload_cmds 18623 18624# Commands used to build an old-style archive. 18625old_archive_cmds=$lt_old_archive_cmds 18626 18627# A language specific compiler. 18628CC=$lt_compiler 18629 18630# Is the compiler the GNU compiler? 18631with_gcc=$GCC 18632 18633# Compiler flag to turn off builtin functions. 18634no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18635 18636# Additional compiler flags for building library objects. 18637pic_flag=$lt_lt_prog_compiler_pic 18638 18639# How to pass a linker flag through the compiler. 18640wl=$lt_lt_prog_compiler_wl 18641 18642# Compiler flag to prevent dynamic linking. 18643link_static_flag=$lt_lt_prog_compiler_static 18644 18645# Does compiler simultaneously support -c and -o options? 18646compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18647 18648# Whether or not to add -lc for building shared libraries. 18649build_libtool_need_lc=$archive_cmds_need_lc 18650 18651# Whether or not to disallow shared libs when runtime libs are static. 18652allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18653 18654# Compiler flag to allow reflexive dlopens. 18655export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18656 18657# Compiler flag to generate shared objects directly from archives. 18658whole_archive_flag_spec=$lt_whole_archive_flag_spec 18659 18660# Whether the compiler copes with passing no objects directly. 18661compiler_needs_object=$lt_compiler_needs_object 18662 18663# Create an old-style archive from a shared archive. 18664old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18665 18666# Create a temporary old-style archive to link instead of a shared archive. 18667old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18668 18669# Commands used to build a shared archive. 18670archive_cmds=$lt_archive_cmds 18671archive_expsym_cmds=$lt_archive_expsym_cmds 18672 18673# Commands used to build a loadable module if different from building 18674# a shared archive. 18675module_cmds=$lt_module_cmds 18676module_expsym_cmds=$lt_module_expsym_cmds 18677 18678# Whether we are building with GNU ld or not. 18679with_gnu_ld=$lt_with_gnu_ld 18680 18681# Flag that allows shared libraries with undefined symbols to be built. 18682allow_undefined_flag=$lt_allow_undefined_flag 18683 18684# Flag that enforces no undefined symbols. 18685no_undefined_flag=$lt_no_undefined_flag 18686 18687# Flag to hardcode \$libdir into a binary during linking. 18688# This must work even if \$libdir does not exist 18689hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18690 18691# Whether we need a single "-rpath" flag with a separated argument. 18692hardcode_libdir_separator=$lt_hardcode_libdir_separator 18693 18694# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18695# DIR into the resulting binary. 18696hardcode_direct=$hardcode_direct 18697 18698# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18699# DIR into the resulting binary and the resulting library dependency is 18700# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18701# library is relocated. 18702hardcode_direct_absolute=$hardcode_direct_absolute 18703 18704# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18705# into the resulting binary. 18706hardcode_minus_L=$hardcode_minus_L 18707 18708# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18709# into the resulting binary. 18710hardcode_shlibpath_var=$hardcode_shlibpath_var 18711 18712# Set to "yes" if building a shared library automatically hardcodes DIR 18713# into the library and all subsequent libraries and executables linked 18714# against it. 18715hardcode_automatic=$hardcode_automatic 18716 18717# Set to yes if linker adds runtime paths of dependent libraries 18718# to runtime path list. 18719inherit_rpath=$inherit_rpath 18720 18721# Whether libtool must link a program against all its dependency libraries. 18722link_all_deplibs=$link_all_deplibs 18723 18724# Set to "yes" if exported symbols are required. 18725always_export_symbols=$always_export_symbols 18726 18727# The commands to list exported symbols. 18728export_symbols_cmds=$lt_export_symbols_cmds 18729 18730# Symbols that should not be listed in the preloaded symbols. 18731exclude_expsyms=$lt_exclude_expsyms 18732 18733# Symbols that must always be exported. 18734include_expsyms=$lt_include_expsyms 18735 18736# Commands necessary for linking programs (against libraries) with templates. 18737prelink_cmds=$lt_prelink_cmds 18738 18739# Commands necessary for finishing linking programs. 18740postlink_cmds=$lt_postlink_cmds 18741 18742# Specify filename containing input files. 18743file_list_spec=$lt_file_list_spec 18744 18745# How to hardcode a shared library path into an executable. 18746hardcode_action=$hardcode_action 18747 18748# The directories searched by this compiler when creating a shared library. 18749compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18750 18751# Dependencies to place before and after the objects being linked to 18752# create a shared library. 18753predep_objects=$lt_predep_objects 18754postdep_objects=$lt_postdep_objects 18755predeps=$lt_predeps 18756postdeps=$lt_postdeps 18757 18758# The library search path used internally by the compiler when linking 18759# a shared library. 18760compiler_lib_search_path=$lt_compiler_lib_search_path 18761 18762# ### END LIBTOOL CONFIG 18763 18764_LT_EOF 18765 18766 cat <<'_LT_EOF' >> "$cfgfile" 18767 18768# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18769 18770# func_munge_path_list VARIABLE PATH 18771# ----------------------------------- 18772# VARIABLE is name of variable containing _space_ separated list of 18773# directories to be munged by the contents of PATH, which is string 18774# having a format: 18775# "DIR[:DIR]:" 18776# string "DIR[ DIR]" will be prepended to VARIABLE 18777# ":DIR[:DIR]" 18778# string "DIR[ DIR]" will be appended to VARIABLE 18779# "DIRP[:DIRP]::[DIRA:]DIRA" 18780# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18781# "DIRA[ DIRA]" will be appended to VARIABLE 18782# "DIR[:DIR]" 18783# VARIABLE will be replaced by "DIR[ DIR]" 18784func_munge_path_list () 18785{ 18786 case x$2 in 18787 x) 18788 ;; 18789 *:) 18790 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18791 ;; 18792 x:*) 18793 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18794 ;; 18795 *::*) 18796 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18797 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18798 ;; 18799 *) 18800 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18801 ;; 18802 esac 18803} 18804 18805 18806# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18807func_cc_basename () 18808{ 18809 for cc_temp in $*""; do 18810 case $cc_temp in 18811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18813 \-*) ;; 18814 *) break;; 18815 esac 18816 done 18817 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18818} 18819 18820 18821# ### END FUNCTIONS SHARED WITH CONFIGURE 18822 18823_LT_EOF 18824 18825 case $host_os in 18826 aix3*) 18827 cat <<\_LT_EOF >> "$cfgfile" 18828# AIX sometimes has problems with the GCC collect2 program. For some 18829# reason, if we set the COLLECT_NAMES environment variable, the problems 18830# vanish in a puff of smoke. 18831if test set != "${COLLECT_NAMES+set}"; then 18832 COLLECT_NAMES= 18833 export COLLECT_NAMES 18834fi 18835_LT_EOF 18836 ;; 18837 esac 18838 18839 18840ltmain=$ac_aux_dir/ltmain.sh 18841 18842 18843 # We use sed instead of cat because bash on DJGPP gets confused if 18844 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18845 # text mode, it properly converts lines to CR/LF. This bash problem 18846 # is reportedly fixed, but why not run on old versions too? 18847 sed '$q' "$ltmain" >> "$cfgfile" \ 18848 || (rm -f "$cfgfile"; exit 1) 18849 18850 mv -f "$cfgfile" "$ofile" || 18851 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18852 chmod +x "$ofile" 18853 18854 18855 cat <<_LT_EOF >> "$ofile" 18856 18857# ### BEGIN LIBTOOL TAG CONFIG: CXX 18858 18859# The linker used to build libraries. 18860LD=$lt_LD_CXX 18861 18862# How to create reloadable object files. 18863reload_flag=$lt_reload_flag_CXX 18864reload_cmds=$lt_reload_cmds_CXX 18865 18866# Commands used to build an old-style archive. 18867old_archive_cmds=$lt_old_archive_cmds_CXX 18868 18869# A language specific compiler. 18870CC=$lt_compiler_CXX 18871 18872# Is the compiler the GNU compiler? 18873with_gcc=$GCC_CXX 18874 18875# Compiler flag to turn off builtin functions. 18876no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18877 18878# Additional compiler flags for building library objects. 18879pic_flag=$lt_lt_prog_compiler_pic_CXX 18880 18881# How to pass a linker flag through the compiler. 18882wl=$lt_lt_prog_compiler_wl_CXX 18883 18884# Compiler flag to prevent dynamic linking. 18885link_static_flag=$lt_lt_prog_compiler_static_CXX 18886 18887# Does compiler simultaneously support -c and -o options? 18888compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18889 18890# Whether or not to add -lc for building shared libraries. 18891build_libtool_need_lc=$archive_cmds_need_lc_CXX 18892 18893# Whether or not to disallow shared libs when runtime libs are static. 18894allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18895 18896# Compiler flag to allow reflexive dlopens. 18897export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18898 18899# Compiler flag to generate shared objects directly from archives. 18900whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18901 18902# Whether the compiler copes with passing no objects directly. 18903compiler_needs_object=$lt_compiler_needs_object_CXX 18904 18905# Create an old-style archive from a shared archive. 18906old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18907 18908# Create a temporary old-style archive to link instead of a shared archive. 18909old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18910 18911# Commands used to build a shared archive. 18912archive_cmds=$lt_archive_cmds_CXX 18913archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18914 18915# Commands used to build a loadable module if different from building 18916# a shared archive. 18917module_cmds=$lt_module_cmds_CXX 18918module_expsym_cmds=$lt_module_expsym_cmds_CXX 18919 18920# Whether we are building with GNU ld or not. 18921with_gnu_ld=$lt_with_gnu_ld_CXX 18922 18923# Flag that allows shared libraries with undefined symbols to be built. 18924allow_undefined_flag=$lt_allow_undefined_flag_CXX 18925 18926# Flag that enforces no undefined symbols. 18927no_undefined_flag=$lt_no_undefined_flag_CXX 18928 18929# Flag to hardcode \$libdir into a binary during linking. 18930# This must work even if \$libdir does not exist 18931hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18932 18933# Whether we need a single "-rpath" flag with a separated argument. 18934hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18935 18936# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18937# DIR into the resulting binary. 18938hardcode_direct=$hardcode_direct_CXX 18939 18940# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18941# DIR into the resulting binary and the resulting library dependency is 18942# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18943# library is relocated. 18944hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18945 18946# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18947# into the resulting binary. 18948hardcode_minus_L=$hardcode_minus_L_CXX 18949 18950# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18951# into the resulting binary. 18952hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18953 18954# Set to "yes" if building a shared library automatically hardcodes DIR 18955# into the library and all subsequent libraries and executables linked 18956# against it. 18957hardcode_automatic=$hardcode_automatic_CXX 18958 18959# Set to yes if linker adds runtime paths of dependent libraries 18960# to runtime path list. 18961inherit_rpath=$inherit_rpath_CXX 18962 18963# Whether libtool must link a program against all its dependency libraries. 18964link_all_deplibs=$link_all_deplibs_CXX 18965 18966# Set to "yes" if exported symbols are required. 18967always_export_symbols=$always_export_symbols_CXX 18968 18969# The commands to list exported symbols. 18970export_symbols_cmds=$lt_export_symbols_cmds_CXX 18971 18972# Symbols that should not be listed in the preloaded symbols. 18973exclude_expsyms=$lt_exclude_expsyms_CXX 18974 18975# Symbols that must always be exported. 18976include_expsyms=$lt_include_expsyms_CXX 18977 18978# Commands necessary for linking programs (against libraries) with templates. 18979prelink_cmds=$lt_prelink_cmds_CXX 18980 18981# Commands necessary for finishing linking programs. 18982postlink_cmds=$lt_postlink_cmds_CXX 18983 18984# Specify filename containing input files. 18985file_list_spec=$lt_file_list_spec_CXX 18986 18987# How to hardcode a shared library path into an executable. 18988hardcode_action=$hardcode_action_CXX 18989 18990# The directories searched by this compiler when creating a shared library. 18991compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18992 18993# Dependencies to place before and after the objects being linked to 18994# create a shared library. 18995predep_objects=$lt_predep_objects_CXX 18996postdep_objects=$lt_postdep_objects_CXX 18997predeps=$lt_predeps_CXX 18998postdeps=$lt_postdeps_CXX 18999 19000# The library search path used internally by the compiler when linking 19001# a shared library. 19002compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19003 19004# ### END LIBTOOL TAG CONFIG: CXX 19005_LT_EOF 19006 19007 ;; 19008 19009 esac 19010done # for ac_tag 19011 19012 19013as_fn_exit 0 19014_ACEOF 19015ac_clean_files=$ac_clean_files_save 19016 19017test $ac_write_fail = 0 || 19018 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19019 19020 19021# configure is writing to config.log, and then calls config.status. 19022# config.status does its own redirection, appending to config.log. 19023# Unfortunately, on DOS this fails, as config.log is still kept open 19024# by configure, so config.status won't be able to write to it; its 19025# output is simply discarded. So we exec the FD to /dev/null, 19026# effectively closing config.log, so it can be properly (re)opened and 19027# appended to by config.status. When coming back to configure, we 19028# need to make the FD available again. 19029if test "$no_create" != yes; then 19030 ac_cs_success=: 19031 ac_config_status_args= 19032 test "$silent" = yes && 19033 ac_config_status_args="$ac_config_status_args --quiet" 19034 exec 5>/dev/null 19035 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19036 exec 5>>config.log 19037 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19038 # would make configure fail if this is the last instruction. 19039 $ac_cs_success || as_fn_exit 1 19040fi 19041if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19043$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19044fi 19045 19046