configure revision fbaaef999ba563838ebd00874ed8a1c01fbf286d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for Protocol Buffers 2.2.0a. 4# 5# Report bugs to <protobuf@googlegroups.com>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42# The user is always right. 43if test "${PATH_SEPARATOR+set}" != set; then 44 echo "#! /bin/sh" >conf$$.sh 45 echo "exit 0" >>conf$$.sh 46 chmod +x conf$$.sh 47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 48 PATH_SEPARATOR=';' 49 else 50 PATH_SEPARATOR=: 51 fi 52 rm -f conf$$.sh 53fi 54 55# Support unset when possible. 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 57 as_unset=unset 58else 59 as_unset=false 60fi 61 62 63# IFS 64# We need space, tab and new line, in precisely that order. Quoting is 65# there to prevent editors from complaining about space-tab. 66# (If _AS_PATH_WALK were called with IFS unset, it would disable word 67# splitting by setting IFS to empty value.) 68as_nl=' 69' 70IFS=" "" $as_nl" 71 72# Find who we are. Look in the path if we contain no directory separator. 73case $0 in 74 *[\\/]* ) as_myself=$0 ;; 75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 76for as_dir in $PATH 77do 78 IFS=$as_save_IFS 79 test -z "$as_dir" && as_dir=. 80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 81done 82IFS=$as_save_IFS 83 84 ;; 85esac 86# We did not find ourselves, most probably we were run as `sh COMMAND' 87# in which case we are not to be found in the path. 88if test "x$as_myself" = x; then 89 as_myself=$0 90fi 91if test ! -f "$as_myself"; then 92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 93 { (exit 1); exit 1; } 94fi 95 96# Work around bugs in pre-3.0 UWIN ksh. 97for as_var in ENV MAIL MAILPATH 98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 99done 100PS1='$ ' 101PS2='> ' 102PS4='+ ' 103 104# NLS nuisances. 105for as_var in \ 106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 108 LC_TELEPHONE LC_TIME 109do 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 111 eval $as_var=C; export $as_var 112 else 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 114 fi 115done 116 117# Required to use basename. 118if expr a : '\(a\)' >/dev/null 2>&1 && 119 test "X`expr 00001 : '.*\(...\)'`" = X001; then 120 as_expr=expr 121else 122 as_expr=false 123fi 124 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 126 as_basename=basename 127else 128 as_basename=false 129fi 130 131 132# Name of the executable. 133as_me=`$as_basename -- "$0" || 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 135 X"$0" : 'X\(//\)$' \| \ 136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 137echo X/"$0" | 138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\/\)$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\).*/{ 147 s//\1/ 148 q 149 } 150 s/.*/./; q'` 151 152# CDPATH. 153$as_unset CDPATH 154 155 156if test "x$CONFIG_SHELL" = x; then 157 if (eval ":") 2>/dev/null; then 158 as_have_required=yes 159else 160 as_have_required=no 161fi 162 163 if test $as_have_required = yes && (eval ": 164(as_func_return () { 165 (exit \$1) 166} 167as_func_success () { 168 as_func_return 0 169} 170as_func_failure () { 171 as_func_return 1 172} 173as_func_ret_success () { 174 return 0 175} 176as_func_ret_failure () { 177 return 1 178} 179 180exitcode=0 181if as_func_success; then 182 : 183else 184 exitcode=1 185 echo as_func_success failed. 186fi 187 188if as_func_failure; then 189 exitcode=1 190 echo as_func_failure succeeded. 191fi 192 193if as_func_ret_success; then 194 : 195else 196 exitcode=1 197 echo as_func_ret_success failed. 198fi 199 200if as_func_ret_failure; then 201 exitcode=1 202 echo as_func_ret_failure succeeded. 203fi 204 205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 206 : 207else 208 exitcode=1 209 echo positional parameters were not saved. 210fi 211 212test \$exitcode = 0) || { (exit 1); exit 1; } 213 214( 215 as_lineno_1=\$LINENO 216 as_lineno_2=\$LINENO 217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 219") 2> /dev/null; then 220 : 221else 222 as_candidate_shells= 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 225do 226 IFS=$as_save_IFS 227 test -z "$as_dir" && as_dir=. 228 case $as_dir in 229 /*) 230 for as_base in sh bash ksh sh5; do 231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 232 done;; 233 esac 234done 235IFS=$as_save_IFS 236 237 238 for as_shell in $as_candidate_shells $SHELL; do 239 # Try only shells that exist, to save several forks. 240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 241 { ("$as_shell") 2> /dev/null <<\_ASEOF 242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 243 emulate sh 244 NULLCMD=: 245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 246 # is contrary to our usage. Disable this feature. 247 alias -g '${1+"$@"}'='"$@"' 248 setopt NO_GLOB_SUBST 249else 250 case `(set -o) 2>/dev/null` in 251 *posix*) set -o posix ;; 252esac 253 254fi 255 256 257: 258_ASEOF 259}; then 260 CONFIG_SHELL=$as_shell 261 as_have_required=yes 262 if { "$as_shell" 2> /dev/null <<\_ASEOF 263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 264 emulate sh 265 NULLCMD=: 266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 267 # is contrary to our usage. Disable this feature. 268 alias -g '${1+"$@"}'='"$@"' 269 setopt NO_GLOB_SUBST 270else 271 case `(set -o) 2>/dev/null` in 272 *posix*) set -o posix ;; 273esac 274 275fi 276 277 278: 279(as_func_return () { 280 (exit $1) 281} 282as_func_success () { 283 as_func_return 0 284} 285as_func_failure () { 286 as_func_return 1 287} 288as_func_ret_success () { 289 return 0 290} 291as_func_ret_failure () { 292 return 1 293} 294 295exitcode=0 296if as_func_success; then 297 : 298else 299 exitcode=1 300 echo as_func_success failed. 301fi 302 303if as_func_failure; then 304 exitcode=1 305 echo as_func_failure succeeded. 306fi 307 308if as_func_ret_success; then 309 : 310else 311 exitcode=1 312 echo as_func_ret_success failed. 313fi 314 315if as_func_ret_failure; then 316 exitcode=1 317 echo as_func_ret_failure succeeded. 318fi 319 320if ( set x; as_func_ret_success y && test x = "$1" ); then 321 : 322else 323 exitcode=1 324 echo positional parameters were not saved. 325fi 326 327test $exitcode = 0) || { (exit 1); exit 1; } 328 329( 330 as_lineno_1=$LINENO 331 as_lineno_2=$LINENO 332 test "x$as_lineno_1" != "x$as_lineno_2" && 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 334 335_ASEOF 336}; then 337 break 338fi 339 340fi 341 342 done 343 344 if test "x$CONFIG_SHELL" != x; then 345 for as_var in BASH_ENV ENV 346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 347 done 348 export CONFIG_SHELL 349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 350fi 351 352 353 if test $as_have_required = no; then 354 echo This script requires a shell more modern than all the 355 echo shells that I found on your system. Please install a 356 echo modern shell, or manually run the script under such a 357 echo shell if you do have one. 358 { (exit 1); exit 1; } 359fi 360 361 362fi 363 364fi 365 366 367 368(eval "as_func_return () { 369 (exit \$1) 370} 371as_func_success () { 372 as_func_return 0 373} 374as_func_failure () { 375 as_func_return 1 376} 377as_func_ret_success () { 378 return 0 379} 380as_func_ret_failure () { 381 return 1 382} 383 384exitcode=0 385if as_func_success; then 386 : 387else 388 exitcode=1 389 echo as_func_success failed. 390fi 391 392if as_func_failure; then 393 exitcode=1 394 echo as_func_failure succeeded. 395fi 396 397if as_func_ret_success; then 398 : 399else 400 exitcode=1 401 echo as_func_ret_success failed. 402fi 403 404if as_func_ret_failure; then 405 exitcode=1 406 echo as_func_ret_failure succeeded. 407fi 408 409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 410 : 411else 412 exitcode=1 413 echo positional parameters were not saved. 414fi 415 416test \$exitcode = 0") || { 417 echo No shell found that supports shell functions. 418 echo Please tell autoconf@gnu.org about your system, 419 echo including any error possibly output before this 420 echo message 421} 422 423 424 425 as_lineno_1=$LINENO 426 as_lineno_2=$LINENO 427 test "x$as_lineno_1" != "x$as_lineno_2" && 428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 429 430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 431 # uniformly replaced by the line number. The first 'sed' inserts a 432 # line-number line after each line using $LINENO; the second 'sed' 433 # does the real work. The second script uses 'N' to pair each 434 # line-number line with the line containing $LINENO, and appends 435 # trailing '-' during substitution so that $LINENO is not a special 436 # case at line end. 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 438 # scripts with optimization help from Paolo Bonzini. Blame Lee 439 # E. McMahon (1931-1989) for sed's syntax. :-) 440 sed -n ' 441 p 442 /[$]LINENO/= 443 ' <$as_myself | 444 sed ' 445 s/[$]LINENO.*/&-/ 446 t lineno 447 b 448 :lineno 449 N 450 :loop 451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 452 t loop 453 s/-\n.*// 454 ' >$as_me.lineno && 455 chmod +x "$as_me.lineno" || 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 457 { (exit 1); exit 1; }; } 458 459 # Don't try to exec as it changes $[0], causing all sort of problems 460 # (the dirname of $[0] is not the place where we might find the 461 # original and so on. Autoconf is especially sensitive to this). 462 . "./$as_me.lineno" 463 # Exit status is that of the last command. 464 exit 465} 466 467 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 469 as_dirname=dirname 470else 471 as_dirname=false 472fi 473 474ECHO_C= ECHO_N= ECHO_T= 475case `echo -n x` in 476-n*) 477 case `echo 'x\c'` in 478 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 479 *) ECHO_C='\c';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485if expr a : '\(a\)' >/dev/null 2>&1 && 486 test "X`expr 00001 : '.*\(...\)'`" = X001; then 487 as_expr=expr 488else 489 as_expr=false 490fi 491 492rm -f conf$$ conf$$.exe conf$$.file 493if test -d conf$$.dir; then 494 rm -f conf$$.dir/conf$$.file 495else 496 rm -f conf$$.dir 497 mkdir conf$$.dir 498fi 499echo >conf$$.file 500if ln -s conf$$.file conf$$ 2>/dev/null; then 501 as_ln_s='ln -s' 502 # ... but there are two gotchas: 503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 505 # In both cases, we have to default to `cp -p'. 506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 507 as_ln_s='cp -p' 508elif ln conf$$.file conf$$ 2>/dev/null; then 509 as_ln_s=ln 510else 511 as_ln_s='cp -p' 512fi 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 514rmdir conf$$.dir 2>/dev/null 515 516if mkdir -p . 2>/dev/null; then 517 as_mkdir_p=: 518else 519 test -d ./-p && rmdir ./-p 520 as_mkdir_p=false 521fi 522 523if test -x / >/dev/null 2>&1; then 524 as_test_x='test -x' 525else 526 if ls -dL / >/dev/null 2>&1; then 527 as_ls_L_option=L 528 else 529 as_ls_L_option= 530 fi 531 as_test_x=' 532 eval sh -c '\'' 533 if test -d "$1"; then 534 test -d "$1/."; 535 else 536 case $1 in 537 -*)set "./$1";; 538 esac; 539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 540 ???[sx]*):;;*)false;;esac;fi 541 '\'' sh 542 ' 543fi 544as_executable_p=$as_test_x 545 546# Sed expression to map a string onto a valid CPP name. 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 548 549# Sed expression to map a string onto a valid variable name. 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 551 552 553 554 555# Check that we are running under the correct shell. 556SHELL=${CONFIG_SHELL-/bin/sh} 557 558case X$lt_ECHO in 559X*--fallback-echo) 560 # Remove one level of quotation (which was required for Make). 561 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 562 ;; 563esac 564 565ECHO=${lt_ECHO-echo} 566if test "X$1" = X--no-reexec; then 567 # Discard the --no-reexec flag, and continue. 568 shift 569elif test "X$1" = X--fallback-echo; then 570 # Avoid inline document here, it may be left over 571 : 572elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 573 # Yippee, $ECHO works! 574 : 575else 576 # Restart under the correct shell. 577 exec $SHELL "$0" --no-reexec ${1+"$@"} 578fi 579 580if test "X$1" = X--fallback-echo; then 581 # used as fallback echo 582 shift 583 cat <<_LT_EOF 584$* 585_LT_EOF 586 exit 0 587fi 588 589# The HP-UX ksh and POSIX shell print the target directory to stdout 590# if CDPATH is set. 591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 592 593if test -z "$lt_ECHO"; then 594 if test "X${echo_test_string+set}" != Xset; then 595 # find a string as large as possible, as long as the shell can cope with it 596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 598 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 599 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 600 then 601 break 602 fi 603 done 604 fi 605 606 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 607 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 608 test "X$echo_testing_string" = "X$echo_test_string"; then 609 : 610 else 611 # The Solaris, AIX, and Digital Unix default echo programs unquote 612 # backslashes. This makes it impossible to quote backslashes using 613 # echo "$something" | sed 's/\\/\\\\/g' 614 # 615 # So, first we look for a working echo in the user's PATH. 616 617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 618 for dir in $PATH /usr/ucb; do 619 IFS="$lt_save_ifs" 620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 623 test "X$echo_testing_string" = "X$echo_test_string"; then 624 ECHO="$dir/echo" 625 break 626 fi 627 done 628 IFS="$lt_save_ifs" 629 630 if test "X$ECHO" = Xecho; then 631 # We didn't find a better echo, so look for alternatives. 632 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 633 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 634 test "X$echo_testing_string" = "X$echo_test_string"; then 635 # This shell has a builtin print -r that does the trick. 636 ECHO='print -r' 637 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 638 test "X$CONFIG_SHELL" != X/bin/ksh; then 639 # If we have ksh, try running configure again with it. 640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 641 export ORIGINAL_CONFIG_SHELL 642 CONFIG_SHELL=/bin/ksh 643 export CONFIG_SHELL 644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 645 else 646 # Try using printf. 647 ECHO='printf %s\n' 648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 650 test "X$echo_testing_string" = "X$echo_test_string"; then 651 # Cool, printf works 652 : 653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 654 test "X$echo_testing_string" = 'X\t' && 655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 656 test "X$echo_testing_string" = "X$echo_test_string"; then 657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 658 export CONFIG_SHELL 659 SHELL="$CONFIG_SHELL" 660 export SHELL 661 ECHO="$CONFIG_SHELL $0 --fallback-echo" 662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 663 test "X$echo_testing_string" = 'X\t' && 664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 665 test "X$echo_testing_string" = "X$echo_test_string"; then 666 ECHO="$CONFIG_SHELL $0 --fallback-echo" 667 else 668 # maybe with a smaller string... 669 prev=: 670 671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 672 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 673 then 674 break 675 fi 676 prev="$cmd" 677 done 678 679 if test "$prev" != 'sed 50q "$0"'; then 680 echo_test_string=`eval $prev` 681 export echo_test_string 682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 683 else 684 # Oops. We lost completely, so just stick with echo. 685 ECHO=echo 686 fi 687 fi 688 fi 689 fi 690 fi 691fi 692 693# Copy echo and quote the copy suitably for passing to libtool from 694# the Makefile, instead of quoting the original, which is used later. 695lt_ECHO=$ECHO 696if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 697 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 698fi 699 700 701 702 703exec 7<&0 </dev/null 6>&1 704 705# Name of the host. 706# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 707# so uname gets run too. 708ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 709 710# 711# Initializations. 712# 713ac_default_prefix=/usr/local 714ac_clean_files= 715ac_config_libobj_dir=. 716LIBOBJS= 717cross_compiling=no 718subdirs= 719MFLAGS= 720MAKEFLAGS= 721SHELL=${CONFIG_SHELL-/bin/sh} 722 723# Identity of this package. 724PACKAGE_NAME='Protocol Buffers' 725PACKAGE_TARNAME='protobuf' 726PACKAGE_VERSION='2.2.0a' 727PACKAGE_STRING='Protocol Buffers 2.2.0a' 728PACKAGE_BUGREPORT='protobuf@googlegroups.com' 729 730ac_unique_file="src/google/protobuf/message.cc" 731# Factoring default headers for most tests. 732ac_includes_default="\ 733#include <stdio.h> 734#ifdef HAVE_SYS_TYPES_H 735# include <sys/types.h> 736#endif 737#ifdef HAVE_SYS_STAT_H 738# include <sys/stat.h> 739#endif 740#ifdef STDC_HEADERS 741# include <stdlib.h> 742# include <stddef.h> 743#else 744# ifdef HAVE_STDLIB_H 745# include <stdlib.h> 746# endif 747#endif 748#ifdef HAVE_STRING_H 749# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 750# include <memory.h> 751# endif 752# include <string.h> 753#endif 754#ifdef HAVE_STRINGS_H 755# include <strings.h> 756#endif 757#ifdef HAVE_INTTYPES_H 758# include <inttypes.h> 759#endif 760#ifdef HAVE_STDINT_H 761# include <stdint.h> 762#endif 763#ifdef HAVE_UNISTD_H 764# include <unistd.h> 765#endif" 766 767ac_subst_vars='SHELL 768PATH_SEPARATOR 769PACKAGE_NAME 770PACKAGE_TARNAME 771PACKAGE_VERSION 772PACKAGE_STRING 773PACKAGE_BUGREPORT 774exec_prefix 775prefix 776program_transform_name 777bindir 778sbindir 779libexecdir 780datarootdir 781datadir 782sysconfdir 783sharedstatedir 784localstatedir 785includedir 786oldincludedir 787docdir 788infodir 789htmldir 790dvidir 791pdfdir 792psdir 793libdir 794localedir 795mandir 796DEFS 797ECHO_C 798ECHO_N 799ECHO_T 800LIBS 801build_alias 802host_alias 803target_alias 804build 805build_cpu 806build_vendor 807build_os 808host 809host_cpu 810host_vendor 811host_os 812target 813target_cpu 814target_vendor 815target_os 816INSTALL_PROGRAM 817INSTALL_SCRIPT 818INSTALL_DATA 819am__isrc 820CYGPATH_W 821PACKAGE 822VERSION 823ACLOCAL 824AUTOCONF 825AUTOMAKE 826AUTOHEADER 827MAKEINFO 828install_sh 829STRIP 830INSTALL_STRIP_PROGRAM 831mkdir_p 832AWK 833SET_MAKE 834am__leading_dot 835AMTAR 836am__tar 837am__untar 838CC 839CFLAGS 840LDFLAGS 841CPPFLAGS 842ac_ct_CC 843EXEEXT 844OBJEXT 845DEPDIR 846am__include 847am__quote 848AMDEP_TRUE 849AMDEP_FALSE 850AMDEPBACKSLASH 851CCDEPMODE 852am__fastdepCC_TRUE 853am__fastdepCC_FALSE 854CXX 855CXXFLAGS 856ac_ct_CXX 857CXXDEPMODE 858am__fastdepCXX_TRUE 859am__fastdepCXX_FALSE 860CXXCPP 861GREP 862EGREP 863GCC_TRUE 864GCC_FALSE 865PROTOBUF_OPT_FLAG 866ISAINFO 867LIBTOOL 868SED 869FGREP 870LD 871DUMPBIN 872ac_ct_DUMPBIN 873NM 874LN_S 875AR 876RANLIB 877lt_ECHO 878DSYMUTIL 879NMEDIT 880LIPO 881OTOOL 882OTOOL64 883LIBOBJS 884POW_LIB 885HAVE_ZLIB_TRUE 886HAVE_ZLIB_FALSE 887PROTOC 888USE_EXTERNAL_PROTOC_TRUE 889USE_EXTERNAL_PROTOC_FALSE 890acx_pthread_config 891PTHREAD_CC 892PTHREAD_LIBS 893PTHREAD_CFLAGS 894subdirs 895LTLIBOBJS' 896ac_subst_files='' 897 ac_precious_vars='build_alias 898host_alias 899target_alias 900CC 901CFLAGS 902LDFLAGS 903LIBS 904CPPFLAGS 905CXX 906CXXFLAGS 907CCC 908CXXCPP' 909ac_subdirs_all='gtest' 910 911# Initialize some variables set by options. 912ac_init_help= 913ac_init_version=false 914# The variables have the same names as the options, with 915# dashes changed to underlines. 916cache_file=/dev/null 917exec_prefix=NONE 918no_create= 919no_recursion= 920prefix=NONE 921program_prefix=NONE 922program_suffix=NONE 923program_transform_name=s,x,x, 924silent= 925site= 926srcdir= 927verbose= 928x_includes=NONE 929x_libraries=NONE 930 931# Installation directory options. 932# These are left unexpanded so users can "make install exec_prefix=/foo" 933# and all the variables that are supposed to be based on exec_prefix 934# by default will actually change. 935# Use braces instead of parens because sh, perl, etc. also accept them. 936# (The list follows the same order as the GNU Coding Standards.) 937bindir='${exec_prefix}/bin' 938sbindir='${exec_prefix}/sbin' 939libexecdir='${exec_prefix}/libexec' 940datarootdir='${prefix}/share' 941datadir='${datarootdir}' 942sysconfdir='${prefix}/etc' 943sharedstatedir='${prefix}/com' 944localstatedir='${prefix}/var' 945includedir='${prefix}/include' 946oldincludedir='/usr/include' 947docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 948infodir='${datarootdir}/info' 949htmldir='${docdir}' 950dvidir='${docdir}' 951pdfdir='${docdir}' 952psdir='${docdir}' 953libdir='${exec_prefix}/lib' 954localedir='${datarootdir}/locale' 955mandir='${datarootdir}/man' 956 957ac_prev= 958ac_dashdash= 959for ac_option 960do 961 # If the previous option needs an argument, assign it. 962 if test -n "$ac_prev"; then 963 eval $ac_prev=\$ac_option 964 ac_prev= 965 continue 966 fi 967 968 case $ac_option in 969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 970 *) ac_optarg=yes ;; 971 esac 972 973 # Accept the important Cygnus configure options, so we can diagnose typos. 974 975 case $ac_dashdash$ac_option in 976 --) 977 ac_dashdash=yes ;; 978 979 -bindir | --bindir | --bindi | --bind | --bin | --bi) 980 ac_prev=bindir ;; 981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 982 bindir=$ac_optarg ;; 983 984 -build | --build | --buil | --bui | --bu) 985 ac_prev=build_alias ;; 986 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 987 build_alias=$ac_optarg ;; 988 989 -cache-file | --cache-file | --cache-fil | --cache-fi \ 990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 991 ac_prev=cache_file ;; 992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 994 cache_file=$ac_optarg ;; 995 996 --config-cache | -C) 997 cache_file=config.cache ;; 998 999 -datadir | --datadir | --datadi | --datad) 1000 ac_prev=datadir ;; 1001 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1002 datadir=$ac_optarg ;; 1003 1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1005 | --dataroo | --dataro | --datar) 1006 ac_prev=datarootdir ;; 1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1009 datarootdir=$ac_optarg ;; 1010 1011 -disable-* | --disable-*) 1012 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1013 # Reject names that are not valid shell variable names. 1014 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1016 { (exit 1); exit 1; }; } 1017 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1018 eval enable_$ac_feature=no ;; 1019 1020 -docdir | --docdir | --docdi | --doc | --do) 1021 ac_prev=docdir ;; 1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1023 docdir=$ac_optarg ;; 1024 1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1026 ac_prev=dvidir ;; 1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1028 dvidir=$ac_optarg ;; 1029 1030 -enable-* | --enable-*) 1031 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1032 # Reject names that are not valid shell variable names. 1033 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1034 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1035 { (exit 1); exit 1; }; } 1036 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1037 eval enable_$ac_feature=\$ac_optarg ;; 1038 1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1041 | --exec | --exe | --ex) 1042 ac_prev=exec_prefix ;; 1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1045 | --exec=* | --exe=* | --ex=*) 1046 exec_prefix=$ac_optarg ;; 1047 1048 -gas | --gas | --ga | --g) 1049 # Obsolete; use --with-gas. 1050 with_gas=yes ;; 1051 1052 -help | --help | --hel | --he | -h) 1053 ac_init_help=long ;; 1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1055 ac_init_help=recursive ;; 1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1057 ac_init_help=short ;; 1058 1059 -host | --host | --hos | --ho) 1060 ac_prev=host_alias ;; 1061 -host=* | --host=* | --hos=* | --ho=*) 1062 host_alias=$ac_optarg ;; 1063 1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1065 ac_prev=htmldir ;; 1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1067 | --ht=*) 1068 htmldir=$ac_optarg ;; 1069 1070 -includedir | --includedir | --includedi | --included | --include \ 1071 | --includ | --inclu | --incl | --inc) 1072 ac_prev=includedir ;; 1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1074 | --includ=* | --inclu=* | --incl=* | --inc=*) 1075 includedir=$ac_optarg ;; 1076 1077 -infodir | --infodir | --infodi | --infod | --info | --inf) 1078 ac_prev=infodir ;; 1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1080 infodir=$ac_optarg ;; 1081 1082 -libdir | --libdir | --libdi | --libd) 1083 ac_prev=libdir ;; 1084 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1085 libdir=$ac_optarg ;; 1086 1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1088 | --libexe | --libex | --libe) 1089 ac_prev=libexecdir ;; 1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1091 | --libexe=* | --libex=* | --libe=*) 1092 libexecdir=$ac_optarg ;; 1093 1094 -localedir | --localedir | --localedi | --localed | --locale) 1095 ac_prev=localedir ;; 1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1097 localedir=$ac_optarg ;; 1098 1099 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1100 | --localstate | --localstat | --localsta | --localst | --locals) 1101 ac_prev=localstatedir ;; 1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1104 localstatedir=$ac_optarg ;; 1105 1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1107 ac_prev=mandir ;; 1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1109 mandir=$ac_optarg ;; 1110 1111 -nfp | --nfp | --nf) 1112 # Obsolete; use --without-fp. 1113 with_fp=no ;; 1114 1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1116 | --no-cr | --no-c | -n) 1117 no_create=yes ;; 1118 1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1121 no_recursion=yes ;; 1122 1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1125 | --oldin | --oldi | --old | --ol | --o) 1126 ac_prev=oldincludedir ;; 1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1130 oldincludedir=$ac_optarg ;; 1131 1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1133 ac_prev=prefix ;; 1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1135 prefix=$ac_optarg ;; 1136 1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1138 | --program-pre | --program-pr | --program-p) 1139 ac_prev=program_prefix ;; 1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1142 program_prefix=$ac_optarg ;; 1143 1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1145 | --program-suf | --program-su | --program-s) 1146 ac_prev=program_suffix ;; 1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1149 program_suffix=$ac_optarg ;; 1150 1151 -program-transform-name | --program-transform-name \ 1152 | --program-transform-nam | --program-transform-na \ 1153 | --program-transform-n | --program-transform- \ 1154 | --program-transform | --program-transfor \ 1155 | --program-transfo | --program-transf \ 1156 | --program-trans | --program-tran \ 1157 | --progr-tra | --program-tr | --program-t) 1158 ac_prev=program_transform_name ;; 1159 -program-transform-name=* | --program-transform-name=* \ 1160 | --program-transform-nam=* | --program-transform-na=* \ 1161 | --program-transform-n=* | --program-transform-=* \ 1162 | --program-transform=* | --program-transfor=* \ 1163 | --program-transfo=* | --program-transf=* \ 1164 | --program-trans=* | --program-tran=* \ 1165 | --progr-tra=* | --program-tr=* | --program-t=*) 1166 program_transform_name=$ac_optarg ;; 1167 1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1169 ac_prev=pdfdir ;; 1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1171 pdfdir=$ac_optarg ;; 1172 1173 -psdir | --psdir | --psdi | --psd | --ps) 1174 ac_prev=psdir ;; 1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1176 psdir=$ac_optarg ;; 1177 1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1179 | -silent | --silent | --silen | --sile | --sil) 1180 silent=yes ;; 1181 1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1183 ac_prev=sbindir ;; 1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1185 | --sbi=* | --sb=*) 1186 sbindir=$ac_optarg ;; 1187 1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1190 | --sharedst | --shareds | --shared | --share | --shar \ 1191 | --sha | --sh) 1192 ac_prev=sharedstatedir ;; 1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1196 | --sha=* | --sh=*) 1197 sharedstatedir=$ac_optarg ;; 1198 1199 -site | --site | --sit) 1200 ac_prev=site ;; 1201 -site=* | --site=* | --sit=*) 1202 site=$ac_optarg ;; 1203 1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1205 ac_prev=srcdir ;; 1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1207 srcdir=$ac_optarg ;; 1208 1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1210 | --syscon | --sysco | --sysc | --sys | --sy) 1211 ac_prev=sysconfdir ;; 1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1214 sysconfdir=$ac_optarg ;; 1215 1216 -target | --target | --targe | --targ | --tar | --ta | --t) 1217 ac_prev=target_alias ;; 1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1219 target_alias=$ac_optarg ;; 1220 1221 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1222 verbose=yes ;; 1223 1224 -version | --version | --versio | --versi | --vers | -V) 1225 ac_init_version=: ;; 1226 1227 -with-* | --with-*) 1228 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1229 # Reject names that are not valid shell variable names. 1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1231 { echo "$as_me: error: invalid package name: $ac_package" >&2 1232 { (exit 1); exit 1; }; } 1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1234 eval with_$ac_package=\$ac_optarg ;; 1235 1236 -without-* | --without-*) 1237 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1238 # Reject names that are not valid shell variable names. 1239 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1240 { echo "$as_me: error: invalid package name: $ac_package" >&2 1241 { (exit 1); exit 1; }; } 1242 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1243 eval with_$ac_package=no ;; 1244 1245 --x) 1246 # Obsolete; use --with-x. 1247 with_x=yes ;; 1248 1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1250 | --x-incl | --x-inc | --x-in | --x-i) 1251 ac_prev=x_includes ;; 1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1254 x_includes=$ac_optarg ;; 1255 1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1258 ac_prev=x_libraries ;; 1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1261 x_libraries=$ac_optarg ;; 1262 1263 -*) { echo "$as_me: error: unrecognized option: $ac_option 1264Try \`$0 --help' for more information." >&2 1265 { (exit 1); exit 1; }; } 1266 ;; 1267 1268 *=*) 1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1270 # Reject names that are not valid shell variable names. 1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1272 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1273 { (exit 1); exit 1; }; } 1274 eval $ac_envvar=\$ac_optarg 1275 export $ac_envvar ;; 1276 1277 *) 1278 # FIXME: should be removed in autoconf 3.0. 1279 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1281 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1283 ;; 1284 1285 esac 1286done 1287 1288if test -n "$ac_prev"; then 1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1290 { echo "$as_me: error: missing argument to $ac_option" >&2 1291 { (exit 1); exit 1; }; } 1292fi 1293 1294# Be sure to have absolute directory names. 1295for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1296 datadir sysconfdir sharedstatedir localstatedir includedir \ 1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1298 libdir localedir mandir 1299do 1300 eval ac_val=\$$ac_var 1301 case $ac_val in 1302 [\\/$]* | ?:[\\/]* ) continue;; 1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1304 esac 1305 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1306 { (exit 1); exit 1; }; } 1307done 1308 1309# There might be people who depend on the old broken behavior: `$host' 1310# used to hold the argument of --host etc. 1311# FIXME: To remove some day. 1312build=$build_alias 1313host=$host_alias 1314target=$target_alias 1315 1316# FIXME: To remove some day. 1317if test "x$host_alias" != x; then 1318 if test "x$build_alias" = x; then 1319 cross_compiling=maybe 1320 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1321 If a cross compiler is detected then cross compile mode will be used." >&2 1322 elif test "x$build_alias" != "x$host_alias"; then 1323 cross_compiling=yes 1324 fi 1325fi 1326 1327ac_tool_prefix= 1328test -n "$host_alias" && ac_tool_prefix=$host_alias- 1329 1330test "$silent" = yes && exec 6>/dev/null 1331 1332 1333ac_pwd=`pwd` && test -n "$ac_pwd" && 1334ac_ls_di=`ls -di .` && 1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1336 { echo "$as_me: error: Working directory cannot be determined" >&2 1337 { (exit 1); exit 1; }; } 1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1339 { echo "$as_me: error: pwd does not report name of working directory" >&2 1340 { (exit 1); exit 1; }; } 1341 1342 1343# Find the source files, if location was not specified. 1344if test -z "$srcdir"; then 1345 ac_srcdir_defaulted=yes 1346 # Try the directory containing this script, then the parent directory. 1347 ac_confdir=`$as_dirname -- "$0" || 1348$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1349 X"$0" : 'X\(//\)[^/]' \| \ 1350 X"$0" : 'X\(//\)$' \| \ 1351 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1352echo X"$0" | 1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1354 s//\1/ 1355 q 1356 } 1357 /^X\(\/\/\)[^/].*/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\/\)$/{ 1362 s//\1/ 1363 q 1364 } 1365 /^X\(\/\).*/{ 1366 s//\1/ 1367 q 1368 } 1369 s/.*/./; q'` 1370 srcdir=$ac_confdir 1371 if test ! -r "$srcdir/$ac_unique_file"; then 1372 srcdir=.. 1373 fi 1374else 1375 ac_srcdir_defaulted=no 1376fi 1377if test ! -r "$srcdir/$ac_unique_file"; then 1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1379 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1380 { (exit 1); exit 1; }; } 1381fi 1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1383ac_abs_confdir=`( 1384 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1385 { (exit 1); exit 1; }; } 1386 pwd)` 1387# When building in place, set srcdir=. 1388if test "$ac_abs_confdir" = "$ac_pwd"; then 1389 srcdir=. 1390fi 1391# Remove unnecessary trailing slashes from srcdir. 1392# Double slashes in file names in object file debugging info 1393# mess up M-x gdb in Emacs. 1394case $srcdir in 1395*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1396esac 1397for ac_var in $ac_precious_vars; do 1398 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1399 eval ac_env_${ac_var}_value=\$${ac_var} 1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1401 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1402done 1403 1404# 1405# Report the --help message. 1406# 1407if test "$ac_init_help" = "long"; then 1408 # Omit some internal or obsolete options to make the list less imposing. 1409 # This message is too long to be a string in the A/UX 3.1 sh. 1410 cat <<_ACEOF 1411\`configure' configures Protocol Buffers 2.2.0a to adapt to many kinds of systems. 1412 1413Usage: $0 [OPTION]... [VAR=VALUE]... 1414 1415To assign environment variables (e.g., CC, CFLAGS...), specify them as 1416VAR=VALUE. See below for descriptions of some of the useful variables. 1417 1418Defaults for the options are specified in brackets. 1419 1420Configuration: 1421 -h, --help display this help and exit 1422 --help=short display options specific to this package 1423 --help=recursive display the short help of all the included packages 1424 -V, --version display version information and exit 1425 -q, --quiet, --silent do not print \`checking...' messages 1426 --cache-file=FILE cache test results in FILE [disabled] 1427 -C, --config-cache alias for \`--cache-file=config.cache' 1428 -n, --no-create do not create output files 1429 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1430 1431Installation directories: 1432 --prefix=PREFIX install architecture-independent files in PREFIX 1433 [$ac_default_prefix] 1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1435 [PREFIX] 1436 1437By default, \`make install' will install all the files in 1438\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1439an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1440for instance \`--prefix=\$HOME'. 1441 1442For better control, use the options below. 1443 1444Fine tuning of the installation directories: 1445 --bindir=DIR user executables [EPREFIX/bin] 1446 --sbindir=DIR system admin executables [EPREFIX/sbin] 1447 --libexecdir=DIR program executables [EPREFIX/libexec] 1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1451 --libdir=DIR object code libraries [EPREFIX/lib] 1452 --includedir=DIR C header files [PREFIX/include] 1453 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1456 --infodir=DIR info documentation [DATAROOTDIR/info] 1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1458 --mandir=DIR man documentation [DATAROOTDIR/man] 1459 --docdir=DIR documentation root [DATAROOTDIR/doc/protobuf] 1460 --htmldir=DIR html documentation [DOCDIR] 1461 --dvidir=DIR dvi documentation [DOCDIR] 1462 --pdfdir=DIR pdf documentation [DOCDIR] 1463 --psdir=DIR ps documentation [DOCDIR] 1464_ACEOF 1465 1466 cat <<\_ACEOF 1467 1468Program names: 1469 --program-prefix=PREFIX prepend PREFIX to installed program names 1470 --program-suffix=SUFFIX append SUFFIX to installed program names 1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1472 1473System types: 1474 --build=BUILD configure for building on BUILD [guessed] 1475 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1476 --target=TARGET configure for building compilers for TARGET [HOST] 1477_ACEOF 1478fi 1479 1480if test -n "$ac_init_help"; then 1481 case $ac_init_help in 1482 short | recursive ) echo "Configuration of Protocol Buffers 2.2.0a:";; 1483 esac 1484 cat <<\_ACEOF 1485 1486Optional Features: 1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1489 --disable-dependency-tracking speeds up one-time build 1490 --enable-dependency-tracking do not reject slow dependency extractors 1491 --disable-64bit-solaris Build 64 bit binary on Solaris [default=on] 1492 --enable-shared[=PKGS] build shared libraries [default=yes] 1493 --enable-static[=PKGS] build static libraries [default=yes] 1494 --enable-fast-install[=PKGS] 1495 optimize for fast installation [default=yes] 1496 --disable-libtool-lock avoid locking (might break parallel builds) 1497 1498Optional Packages: 1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1501 --with-zlib include classes for streaming compressed data in and 1502 out [default=check] 1503 --with-protoc=COMMAND use the given protoc command instead of building a 1504 new one when building tests (useful for 1505 cross-compiling) 1506 --with-pic try to use only PIC/non-PIC objects [default=use 1507 both] 1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1509 1510Some influential environment variables: 1511 CC C compiler command 1512 CFLAGS C compiler flags 1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1514 nonstandard directory <lib dir> 1515 LIBS libraries to pass to the linker, e.g. -l<library> 1516 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1517 you have headers in a nonstandard directory <include dir> 1518 CXX C++ compiler command 1519 CXXFLAGS C++ compiler flags 1520 CXXCPP C++ preprocessor 1521 1522Use these variables to override the choices made by `configure' or to help 1523it to find libraries and programs with nonstandard names/locations. 1524 1525Report bugs to <protobuf@googlegroups.com>. 1526_ACEOF 1527ac_status=$? 1528fi 1529 1530if test "$ac_init_help" = "recursive"; then 1531 # If there are subdirs, report their specific --help. 1532 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1533 test -d "$ac_dir" || continue 1534 ac_builddir=. 1535 1536case "$ac_dir" in 1537.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1538*) 1539 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1540 # A ".." for each directory in $ac_dir_suffix. 1541 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1542 case $ac_top_builddir_sub in 1543 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1544 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1545 esac ;; 1546esac 1547ac_abs_top_builddir=$ac_pwd 1548ac_abs_builddir=$ac_pwd$ac_dir_suffix 1549# for backward compatibility: 1550ac_top_builddir=$ac_top_build_prefix 1551 1552case $srcdir in 1553 .) # We are building in place. 1554 ac_srcdir=. 1555 ac_top_srcdir=$ac_top_builddir_sub 1556 ac_abs_top_srcdir=$ac_pwd ;; 1557 [\\/]* | ?:[\\/]* ) # Absolute name. 1558 ac_srcdir=$srcdir$ac_dir_suffix; 1559 ac_top_srcdir=$srcdir 1560 ac_abs_top_srcdir=$srcdir ;; 1561 *) # Relative name. 1562 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1563 ac_top_srcdir=$ac_top_build_prefix$srcdir 1564 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1565esac 1566ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1567 1568 cd "$ac_dir" || { ac_status=$?; continue; } 1569 # Check for guested configure. 1570 if test -f "$ac_srcdir/configure.gnu"; then 1571 echo && 1572 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1573 elif test -f "$ac_srcdir/configure"; then 1574 echo && 1575 $SHELL "$ac_srcdir/configure" --help=recursive 1576 else 1577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1578 fi || ac_status=$? 1579 cd "$ac_pwd" || { ac_status=$?; break; } 1580 done 1581fi 1582 1583test -n "$ac_init_help" && exit $ac_status 1584if $ac_init_version; then 1585 cat <<\_ACEOF 1586Protocol Buffers configure 2.2.0a 1587generated by GNU Autoconf 2.61 1588 1589Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15902002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1591This configure script is free software; the Free Software Foundation 1592gives unlimited permission to copy, distribute and modify it. 1593_ACEOF 1594 exit 1595fi 1596cat >config.log <<_ACEOF 1597This file contains any messages produced by compilers while 1598running configure, to aid debugging if configure makes a mistake. 1599 1600It was created by Protocol Buffers $as_me 2.2.0a, which was 1601generated by GNU Autoconf 2.61. Invocation command line was 1602 1603 $ $0 $@ 1604 1605_ACEOF 1606exec 5>>config.log 1607{ 1608cat <<_ASUNAME 1609## --------- ## 1610## Platform. ## 1611## --------- ## 1612 1613hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1614uname -m = `(uname -m) 2>/dev/null || echo unknown` 1615uname -r = `(uname -r) 2>/dev/null || echo unknown` 1616uname -s = `(uname -s) 2>/dev/null || echo unknown` 1617uname -v = `(uname -v) 2>/dev/null || echo unknown` 1618 1619/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1620/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1621 1622/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1623/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1624/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1625/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1626/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1627/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1628/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1629 1630_ASUNAME 1631 1632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1633for as_dir in $PATH 1634do 1635 IFS=$as_save_IFS 1636 test -z "$as_dir" && as_dir=. 1637 echo "PATH: $as_dir" 1638done 1639IFS=$as_save_IFS 1640 1641} >&5 1642 1643cat >&5 <<_ACEOF 1644 1645 1646## ----------- ## 1647## Core tests. ## 1648## ----------- ## 1649 1650_ACEOF 1651 1652 1653# Keep a trace of the command line. 1654# Strip out --no-create and --no-recursion so they do not pile up. 1655# Strip out --silent because we don't want to record it for future runs. 1656# Also quote any args containing shell meta-characters. 1657# Make two passes to allow for proper duplicate-argument suppression. 1658ac_configure_args= 1659ac_configure_args0= 1660ac_configure_args1= 1661ac_must_keep_next=false 1662for ac_pass in 1 2 1663do 1664 for ac_arg 1665 do 1666 case $ac_arg in 1667 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1669 | -silent | --silent | --silen | --sile | --sil) 1670 continue ;; 1671 *\'*) 1672 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1673 esac 1674 case $ac_pass in 1675 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1676 2) 1677 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1678 if test $ac_must_keep_next = true; then 1679 ac_must_keep_next=false # Got value, back to normal. 1680 else 1681 case $ac_arg in 1682 *=* | --config-cache | -C | -disable-* | --disable-* \ 1683 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1684 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1685 | -with-* | --with-* | -without-* | --without-* | --x) 1686 case "$ac_configure_args0 " in 1687 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1688 esac 1689 ;; 1690 -* ) ac_must_keep_next=true ;; 1691 esac 1692 fi 1693 ac_configure_args="$ac_configure_args '$ac_arg'" 1694 ;; 1695 esac 1696 done 1697done 1698$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1699$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1700 1701# When interrupted or exit'd, cleanup temporary files, and complete 1702# config.log. We remove comments because anyway the quotes in there 1703# would cause problems or look ugly. 1704# WARNING: Use '\'' to represent an apostrophe within the trap. 1705# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1706trap 'exit_status=$? 1707 # Save into config.log some information that might help in debugging. 1708 { 1709 echo 1710 1711 cat <<\_ASBOX 1712## ---------------- ## 1713## Cache variables. ## 1714## ---------------- ## 1715_ASBOX 1716 echo 1717 # The following way of writing the cache mishandles newlines in values, 1718( 1719 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1720 eval ac_val=\$$ac_var 1721 case $ac_val in #( 1722 *${as_nl}*) 1723 case $ac_var in #( 1724 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1725echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1726 esac 1727 case $ac_var in #( 1728 _ | IFS | as_nl) ;; #( 1729 *) $as_unset $ac_var ;; 1730 esac ;; 1731 esac 1732 done 1733 (set) 2>&1 | 1734 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1735 *${as_nl}ac_space=\ *) 1736 sed -n \ 1737 "s/'\''/'\''\\\\'\'''\''/g; 1738 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1739 ;; #( 1740 *) 1741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1742 ;; 1743 esac | 1744 sort 1745) 1746 echo 1747 1748 cat <<\_ASBOX 1749## ----------------- ## 1750## Output variables. ## 1751## ----------------- ## 1752_ASBOX 1753 echo 1754 for ac_var in $ac_subst_vars 1755 do 1756 eval ac_val=\$$ac_var 1757 case $ac_val in 1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1759 esac 1760 echo "$ac_var='\''$ac_val'\''" 1761 done | sort 1762 echo 1763 1764 if test -n "$ac_subst_files"; then 1765 cat <<\_ASBOX 1766## ------------------- ## 1767## File substitutions. ## 1768## ------------------- ## 1769_ASBOX 1770 echo 1771 for ac_var in $ac_subst_files 1772 do 1773 eval ac_val=\$$ac_var 1774 case $ac_val in 1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1776 esac 1777 echo "$ac_var='\''$ac_val'\''" 1778 done | sort 1779 echo 1780 fi 1781 1782 if test -s confdefs.h; then 1783 cat <<\_ASBOX 1784## ----------- ## 1785## confdefs.h. ## 1786## ----------- ## 1787_ASBOX 1788 echo 1789 cat confdefs.h 1790 echo 1791 fi 1792 test "$ac_signal" != 0 && 1793 echo "$as_me: caught signal $ac_signal" 1794 echo "$as_me: exit $exit_status" 1795 } >&5 1796 rm -f core *.core core.conftest.* && 1797 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1798 exit $exit_status 1799' 0 1800for ac_signal in 1 2 13 15; do 1801 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1802done 1803ac_signal=0 1804 1805# confdefs.h avoids OS command line length limits that DEFS can exceed. 1806rm -f -r conftest* confdefs.h 1807 1808# Predefined preprocessor variables. 1809 1810cat >>confdefs.h <<_ACEOF 1811#define PACKAGE_NAME "$PACKAGE_NAME" 1812_ACEOF 1813 1814 1815cat >>confdefs.h <<_ACEOF 1816#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1817_ACEOF 1818 1819 1820cat >>confdefs.h <<_ACEOF 1821#define PACKAGE_VERSION "$PACKAGE_VERSION" 1822_ACEOF 1823 1824 1825cat >>confdefs.h <<_ACEOF 1826#define PACKAGE_STRING "$PACKAGE_STRING" 1827_ACEOF 1828 1829 1830cat >>confdefs.h <<_ACEOF 1831#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1832_ACEOF 1833 1834 1835# Let the site file select an alternate cache file if it wants to. 1836# Prefer explicitly selected file to automatically selected ones. 1837if test -n "$CONFIG_SITE"; then 1838 set x "$CONFIG_SITE" 1839elif test "x$prefix" != xNONE; then 1840 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1841else 1842 set x "$ac_default_prefix/share/config.site" \ 1843 "$ac_default_prefix/etc/config.site" 1844fi 1845shift 1846for ac_site_file 1847do 1848 if test -r "$ac_site_file"; then 1849 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1850echo "$as_me: loading site script $ac_site_file" >&6;} 1851 sed 's/^/| /' "$ac_site_file" >&5 1852 . "$ac_site_file" 1853 fi 1854done 1855 1856if test -r "$cache_file"; then 1857 # Some versions of bash will fail to source /dev/null (special 1858 # files actually), so we avoid doing that. 1859 if test -f "$cache_file"; then 1860 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1861echo "$as_me: loading cache $cache_file" >&6;} 1862 case $cache_file in 1863 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1864 *) . "./$cache_file";; 1865 esac 1866 fi 1867else 1868 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1869echo "$as_me: creating cache $cache_file" >&6;} 1870 >$cache_file 1871fi 1872 1873# Check that the precious variables saved in the cache have kept the same 1874# value. 1875ac_cache_corrupted=false 1876for ac_var in $ac_precious_vars; do 1877 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1878 eval ac_new_set=\$ac_env_${ac_var}_set 1879 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1880 eval ac_new_val=\$ac_env_${ac_var}_value 1881 case $ac_old_set,$ac_new_set in 1882 set,) 1883 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1884echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1885 ac_cache_corrupted=: ;; 1886 ,set) 1887 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1888echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1889 ac_cache_corrupted=: ;; 1890 ,);; 1891 *) 1892 if test "x$ac_old_val" != "x$ac_new_val"; then 1893 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1894echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1895 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1896echo "$as_me: former value: $ac_old_val" >&2;} 1897 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1898echo "$as_me: current value: $ac_new_val" >&2;} 1899 ac_cache_corrupted=: 1900 fi;; 1901 esac 1902 # Pass precious variables to config.status. 1903 if test "$ac_new_set" = set; then 1904 case $ac_new_val in 1905 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1906 *) ac_arg=$ac_var=$ac_new_val ;; 1907 esac 1908 case " $ac_configure_args " in 1909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1910 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1911 esac 1912 fi 1913done 1914if $ac_cache_corrupted; then 1915 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1916echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1917 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1918echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1919 { (exit 1); exit 1; }; } 1920fi 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946ac_ext=c 1947ac_cpp='$CPP $CPPFLAGS' 1948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1950ac_compiler_gnu=$ac_cv_c_compiler_gnu 1951 1952 1953 1954 1955 1956ac_config_headers="$ac_config_headers config.h" 1957 1958 1959 1960# autoconf's default CXXFLAGS are usually "-g -O2". These aren't necessarily 1961# the best choice for libprotobuf. 1962if test "x${ac_cv_env_CFLAGS_set}" = "x"; then 1963 CFLAGS="" 1964fi 1965 1966if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then 1967 CXXFLAGS="" 1968fi 1969 1970 1971ac_aux_dir= 1972for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1973 if test -f "$ac_dir/install-sh"; then 1974 ac_aux_dir=$ac_dir 1975 ac_install_sh="$ac_aux_dir/install-sh -c" 1976 break 1977 elif test -f "$ac_dir/install.sh"; then 1978 ac_aux_dir=$ac_dir 1979 ac_install_sh="$ac_aux_dir/install.sh -c" 1980 break 1981 elif test -f "$ac_dir/shtool"; then 1982 ac_aux_dir=$ac_dir 1983 ac_install_sh="$ac_aux_dir/shtool install -c" 1984 break 1985 fi 1986done 1987if test -z "$ac_aux_dir"; then 1988 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1989echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1990 { (exit 1); exit 1; }; } 1991fi 1992 1993# These three variables are undocumented and unsupported, 1994# and are intended to be withdrawn in a future Autoconf release. 1995# They can cause serious problems if a builder's source tree is in a directory 1996# whose full name contains unusual characters. 1997ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1998ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1999ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2000 2001 2002# Make sure we can run config.sub. 2003$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2004 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2005echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 2006 { (exit 1); exit 1; }; } 2007 2008{ echo "$as_me:$LINENO: checking build system type" >&5 2009echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2010if test "${ac_cv_build+set}" = set; then 2011 echo $ECHO_N "(cached) $ECHO_C" >&6 2012else 2013 ac_build_alias=$build_alias 2014test "x$ac_build_alias" = x && 2015 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2016test "x$ac_build_alias" = x && 2017 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2018echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 2019 { (exit 1); exit 1; }; } 2020ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2021 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 2022echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2023 { (exit 1); exit 1; }; } 2024 2025fi 2026{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2027echo "${ECHO_T}$ac_cv_build" >&6; } 2028case $ac_cv_build in 2029*-*-*) ;; 2030*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2031echo "$as_me: error: invalid value of canonical build" >&2;} 2032 { (exit 1); exit 1; }; };; 2033esac 2034build=$ac_cv_build 2035ac_save_IFS=$IFS; IFS='-' 2036set x $ac_cv_build 2037shift 2038build_cpu=$1 2039build_vendor=$2 2040shift; shift 2041# Remember, the first character of IFS is used to create $*, 2042# except with old shells: 2043build_os=$* 2044IFS=$ac_save_IFS 2045case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2046 2047 2048{ echo "$as_me:$LINENO: checking host system type" >&5 2049echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2050if test "${ac_cv_host+set}" = set; then 2051 echo $ECHO_N "(cached) $ECHO_C" >&6 2052else 2053 if test "x$host_alias" = x; then 2054 ac_cv_host=$ac_cv_build 2055else 2056 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2057 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2058echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 2059 { (exit 1); exit 1; }; } 2060fi 2061 2062fi 2063{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2064echo "${ECHO_T}$ac_cv_host" >&6; } 2065case $ac_cv_host in 2066*-*-*) ;; 2067*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2068echo "$as_me: error: invalid value of canonical host" >&2;} 2069 { (exit 1); exit 1; }; };; 2070esac 2071host=$ac_cv_host 2072ac_save_IFS=$IFS; IFS='-' 2073set x $ac_cv_host 2074shift 2075host_cpu=$1 2076host_vendor=$2 2077shift; shift 2078# Remember, the first character of IFS is used to create $*, 2079# except with old shells: 2080host_os=$* 2081IFS=$ac_save_IFS 2082case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2083 2084 2085{ echo "$as_me:$LINENO: checking target system type" >&5 2086echo $ECHO_N "checking target system type... $ECHO_C" >&6; } 2087if test "${ac_cv_target+set}" = set; then 2088 echo $ECHO_N "(cached) $ECHO_C" >&6 2089else 2090 if test "x$target_alias" = x; then 2091 ac_cv_target=$ac_cv_host 2092else 2093 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2094 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 2095echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} 2096 { (exit 1); exit 1; }; } 2097fi 2098 2099fi 2100{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5 2101echo "${ECHO_T}$ac_cv_target" >&6; } 2102case $ac_cv_target in 2103*-*-*) ;; 2104*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 2105echo "$as_me: error: invalid value of canonical target" >&2;} 2106 { (exit 1); exit 1; }; };; 2107esac 2108target=$ac_cv_target 2109ac_save_IFS=$IFS; IFS='-' 2110set x $ac_cv_target 2111shift 2112target_cpu=$1 2113target_vendor=$2 2114shift; shift 2115# Remember, the first character of IFS is used to create $*, 2116# except with old shells: 2117target_os=$* 2118IFS=$ac_save_IFS 2119case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2120 2121 2122# The aliases save the names the user supplied, while $host etc. 2123# will get canonicalized. 2124test -n "$target_alias" && 2125 test "$program_prefix$program_suffix$program_transform_name" = \ 2126 NONENONEs,x,x, && 2127 program_prefix=${target_alias}- 2128 2129am__api_version='1.10' 2130 2131# Find a good install program. We prefer a C program (faster), 2132# so one script is as good as another. But avoid the broken or 2133# incompatible versions: 2134# SysV /etc/install, /usr/sbin/install 2135# SunOS /usr/etc/install 2136# IRIX /sbin/install 2137# AIX /bin/install 2138# AmigaOS /C/install, which installs bootblocks on floppy discs 2139# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2140# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2141# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2142# OS/2's system install, which has a completely different semantic 2143# ./install, which can be erroneously created by make from ./install.sh. 2144{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2145echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2146if test -z "$INSTALL"; then 2147if test "${ac_cv_path_install+set}" = set; then 2148 echo $ECHO_N "(cached) $ECHO_C" >&6 2149else 2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2151for as_dir in $PATH 2152do 2153 IFS=$as_save_IFS 2154 test -z "$as_dir" && as_dir=. 2155 # Account for people who put trailing slashes in PATH elements. 2156case $as_dir/ in 2157 ./ | .// | /cC/* | \ 2158 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2159 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2160 /usr/ucb/* ) ;; 2161 *) 2162 # OSF1 and SCO ODT 3.0 have their own names for install. 2163 # Don't use installbsd from OSF since it installs stuff as root 2164 # by default. 2165 for ac_prog in ginstall scoinst install; do 2166 for ac_exec_ext in '' $ac_executable_extensions; do 2167 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2168 if test $ac_prog = install && 2169 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2170 # AIX install. It has an incompatible calling convention. 2171 : 2172 elif test $ac_prog = install && 2173 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2174 # program-specific install script used by HP pwplus--don't use. 2175 : 2176 else 2177 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2178 break 3 2179 fi 2180 fi 2181 done 2182 done 2183 ;; 2184esac 2185done 2186IFS=$as_save_IFS 2187 2188 2189fi 2190 if test "${ac_cv_path_install+set}" = set; then 2191 INSTALL=$ac_cv_path_install 2192 else 2193 # As a last resort, use the slow shell script. Don't cache a 2194 # value for INSTALL within a source directory, because that will 2195 # break other packages using the cache if that directory is 2196 # removed, or if the value is a relative name. 2197 INSTALL=$ac_install_sh 2198 fi 2199fi 2200{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2201echo "${ECHO_T}$INSTALL" >&6; } 2202 2203# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2204# It thinks the first close brace ends the variable substitution. 2205test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2206 2207test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2208 2209test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2210 2211{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2212echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2213# Just in case 2214sleep 1 2215echo timestamp > conftest.file 2216# Do `set' in a subshell so we don't clobber the current shell's 2217# arguments. Must try -L first in case configure is actually a 2218# symlink; some systems play weird games with the mod time of symlinks 2219# (eg FreeBSD returns the mod time of the symlink's containing 2220# directory). 2221if ( 2222 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2223 if test "$*" = "X"; then 2224 # -L didn't work. 2225 set X `ls -t $srcdir/configure conftest.file` 2226 fi 2227 rm -f conftest.file 2228 if test "$*" != "X $srcdir/configure conftest.file" \ 2229 && test "$*" != "X conftest.file $srcdir/configure"; then 2230 2231 # If neither matched, then we have a broken ls. This can happen 2232 # if, for instance, CONFIG_SHELL is bash and it inherits a 2233 # broken ls alias from the environment. This has actually 2234 # happened. Such a system could not be considered "sane". 2235 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2236alias in your environment" >&5 2237echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2238alias in your environment" >&2;} 2239 { (exit 1); exit 1; }; } 2240 fi 2241 2242 test "$2" = conftest.file 2243 ) 2244then 2245 # Ok. 2246 : 2247else 2248 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2249Check your system clock" >&5 2250echo "$as_me: error: newly created file is older than distributed files! 2251Check your system clock" >&2;} 2252 { (exit 1); exit 1; }; } 2253fi 2254{ echo "$as_me:$LINENO: result: yes" >&5 2255echo "${ECHO_T}yes" >&6; } 2256test "$program_prefix" != NONE && 2257 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2258# Use a double $ so make ignores it. 2259test "$program_suffix" != NONE && 2260 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2261# Double any \ or $. echo might interpret backslashes. 2262# By default was `s,x,x', remove it if useless. 2263cat <<\_ACEOF >conftest.sed 2264s/[\\$]/&&/g;s/;s,x,x,$// 2265_ACEOF 2266program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2267rm -f conftest.sed 2268 2269# expand $ac_aux_dir to an absolute path 2270am_aux_dir=`cd $ac_aux_dir && pwd` 2271 2272test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2273# Use eval to expand $SHELL 2274if eval "$MISSING --run true"; then 2275 am_missing_run="$MISSING --run " 2276else 2277 am_missing_run= 2278 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2279echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2280fi 2281 2282{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2283echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2284if test -z "$MKDIR_P"; then 2285 if test "${ac_cv_path_mkdir+set}" = set; then 2286 echo $ECHO_N "(cached) $ECHO_C" >&6 2287else 2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2289for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2290do 2291 IFS=$as_save_IFS 2292 test -z "$as_dir" && as_dir=. 2293 for ac_prog in mkdir gmkdir; do 2294 for ac_exec_ext in '' $ac_executable_extensions; do 2295 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2296 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2297 'mkdir (GNU coreutils) '* | \ 2298 'mkdir (coreutils) '* | \ 2299 'mkdir (fileutils) '4.1*) 2300 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2301 break 3;; 2302 esac 2303 done 2304 done 2305done 2306IFS=$as_save_IFS 2307 2308fi 2309 2310 if test "${ac_cv_path_mkdir+set}" = set; then 2311 MKDIR_P="$ac_cv_path_mkdir -p" 2312 else 2313 # As a last resort, use the slow shell script. Don't cache a 2314 # value for MKDIR_P within a source directory, because that will 2315 # break other packages using the cache if that directory is 2316 # removed, or if the value is a relative name. 2317 test -d ./--version && rmdir ./--version 2318 MKDIR_P="$ac_install_sh -d" 2319 fi 2320fi 2321{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2322echo "${ECHO_T}$MKDIR_P" >&6; } 2323 2324mkdir_p="$MKDIR_P" 2325case $mkdir_p in 2326 [\\/$]* | ?:[\\/]*) ;; 2327 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2328esac 2329 2330for ac_prog in gawk mawk nawk awk 2331do 2332 # Extract the first word of "$ac_prog", so it can be a program name with args. 2333set dummy $ac_prog; ac_word=$2 2334{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2336if test "${ac_cv_prog_AWK+set}" = set; then 2337 echo $ECHO_N "(cached) $ECHO_C" >&6 2338else 2339 if test -n "$AWK"; then 2340 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2341else 2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2343for as_dir in $PATH 2344do 2345 IFS=$as_save_IFS 2346 test -z "$as_dir" && as_dir=. 2347 for ac_exec_ext in '' $ac_executable_extensions; do 2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2349 ac_cv_prog_AWK="$ac_prog" 2350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2351 break 2 2352 fi 2353done 2354done 2355IFS=$as_save_IFS 2356 2357fi 2358fi 2359AWK=$ac_cv_prog_AWK 2360if test -n "$AWK"; then 2361 { echo "$as_me:$LINENO: result: $AWK" >&5 2362echo "${ECHO_T}$AWK" >&6; } 2363else 2364 { echo "$as_me:$LINENO: result: no" >&5 2365echo "${ECHO_T}no" >&6; } 2366fi 2367 2368 2369 test -n "$AWK" && break 2370done 2371 2372{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2373echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2374set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2375if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2376 echo $ECHO_N "(cached) $ECHO_C" >&6 2377else 2378 cat >conftest.make <<\_ACEOF 2379SHELL = /bin/sh 2380all: 2381 @echo '@@@%%%=$(MAKE)=@@@%%%' 2382_ACEOF 2383# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2384case `${MAKE-make} -f conftest.make 2>/dev/null` in 2385 *@@@%%%=?*=@@@%%%*) 2386 eval ac_cv_prog_make_${ac_make}_set=yes;; 2387 *) 2388 eval ac_cv_prog_make_${ac_make}_set=no;; 2389esac 2390rm -f conftest.make 2391fi 2392if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2393 { echo "$as_me:$LINENO: result: yes" >&5 2394echo "${ECHO_T}yes" >&6; } 2395 SET_MAKE= 2396else 2397 { echo "$as_me:$LINENO: result: no" >&5 2398echo "${ECHO_T}no" >&6; } 2399 SET_MAKE="MAKE=${MAKE-make}" 2400fi 2401 2402rm -rf .tst 2>/dev/null 2403mkdir .tst 2>/dev/null 2404if test -d .tst; then 2405 am__leading_dot=. 2406else 2407 am__leading_dot=_ 2408fi 2409rmdir .tst 2>/dev/null 2410 2411if test "`cd $srcdir && pwd`" != "`pwd`"; then 2412 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2413 # is not polluted with repeated "-I." 2414 am__isrc=' -I$(srcdir)' 2415 # test to see if srcdir already configured 2416 if test -f $srcdir/config.status; then 2417 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2418echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2419 { (exit 1); exit 1; }; } 2420 fi 2421fi 2422 2423# test whether we have cygpath 2424if test -z "$CYGPATH_W"; then 2425 if (cygpath --version) >/dev/null 2>/dev/null; then 2426 CYGPATH_W='cygpath -w' 2427 else 2428 CYGPATH_W=echo 2429 fi 2430fi 2431 2432 2433# Define the identity of the package. 2434 PACKAGE='protobuf' 2435 VERSION='2.2.0a' 2436 2437 2438cat >>confdefs.h <<_ACEOF 2439#define PACKAGE "$PACKAGE" 2440_ACEOF 2441 2442 2443cat >>confdefs.h <<_ACEOF 2444#define VERSION "$VERSION" 2445_ACEOF 2446 2447# Some tools Automake needs. 2448 2449ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2450 2451 2452AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2453 2454 2455AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2456 2457 2458AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2459 2460 2461MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2462 2463install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2464 2465# Installed binaries are usually stripped using `strip' when the user 2466# run `make install-strip'. However `strip' might not be the right 2467# tool to use in cross-compilation environments, therefore Automake 2468# will honor the `STRIP' environment variable to overrule this program. 2469if test "$cross_compiling" != no; then 2470 if test -n "$ac_tool_prefix"; then 2471 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2472set dummy ${ac_tool_prefix}strip; ac_word=$2 2473{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2475if test "${ac_cv_prog_STRIP+set}" = set; then 2476 echo $ECHO_N "(cached) $ECHO_C" >&6 2477else 2478 if test -n "$STRIP"; then 2479 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2480else 2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2482for as_dir in $PATH 2483do 2484 IFS=$as_save_IFS 2485 test -z "$as_dir" && as_dir=. 2486 for ac_exec_ext in '' $ac_executable_extensions; do 2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2488 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2490 break 2 2491 fi 2492done 2493done 2494IFS=$as_save_IFS 2495 2496fi 2497fi 2498STRIP=$ac_cv_prog_STRIP 2499if test -n "$STRIP"; then 2500 { echo "$as_me:$LINENO: result: $STRIP" >&5 2501echo "${ECHO_T}$STRIP" >&6; } 2502else 2503 { echo "$as_me:$LINENO: result: no" >&5 2504echo "${ECHO_T}no" >&6; } 2505fi 2506 2507 2508fi 2509if test -z "$ac_cv_prog_STRIP"; then 2510 ac_ct_STRIP=$STRIP 2511 # Extract the first word of "strip", so it can be a program name with args. 2512set dummy strip; ac_word=$2 2513{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2515if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2516 echo $ECHO_N "(cached) $ECHO_C" >&6 2517else 2518 if test -n "$ac_ct_STRIP"; then 2519 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2520else 2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2522for as_dir in $PATH 2523do 2524 IFS=$as_save_IFS 2525 test -z "$as_dir" && as_dir=. 2526 for ac_exec_ext in '' $ac_executable_extensions; do 2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2528 ac_cv_prog_ac_ct_STRIP="strip" 2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2530 break 2 2531 fi 2532done 2533done 2534IFS=$as_save_IFS 2535 2536fi 2537fi 2538ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2539if test -n "$ac_ct_STRIP"; then 2540 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2541echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2542else 2543 { echo "$as_me:$LINENO: result: no" >&5 2544echo "${ECHO_T}no" >&6; } 2545fi 2546 2547 if test "x$ac_ct_STRIP" = x; then 2548 STRIP=":" 2549 else 2550 case $cross_compiling:$ac_tool_warned in 2551yes:) 2552{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2553whose name does not start with the host triplet. If you think this 2554configuration is useful to you, please write to autoconf@gnu.org." >&5 2555echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2556whose name does not start with the host triplet. If you think this 2557configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2558ac_tool_warned=yes ;; 2559esac 2560 STRIP=$ac_ct_STRIP 2561 fi 2562else 2563 STRIP="$ac_cv_prog_STRIP" 2564fi 2565 2566fi 2567INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2568 2569# We need awk for the "check" target. The system "awk" is bad on 2570# some platforms. 2571# Always define AMTAR for backward compatibility. 2572 2573AMTAR=${AMTAR-"${am_missing_run}tar"} 2574 2575am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2576 2577 2578 2579 2580 2581 2582 2583# Check whether --with-zlib was given. 2584if test "${with_zlib+set}" = set; then 2585 withval=$with_zlib; 2586else 2587 with_zlib=check 2588fi 2589 2590 2591 2592# Check whether --with-protoc was given. 2593if test "${with_protoc+set}" = set; then 2594 withval=$with_protoc; 2595else 2596 with_protoc=no 2597fi 2598 2599 2600# Checks for programs. 2601ac_ext=c 2602ac_cpp='$CPP $CPPFLAGS' 2603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2605ac_compiler_gnu=$ac_cv_c_compiler_gnu 2606if test -n "$ac_tool_prefix"; then 2607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2608set dummy ${ac_tool_prefix}gcc; ac_word=$2 2609{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2611if test "${ac_cv_prog_CC+set}" = set; then 2612 echo $ECHO_N "(cached) $ECHO_C" >&6 2613else 2614 if test -n "$CC"; then 2615 ac_cv_prog_CC="$CC" # Let the user override the test. 2616else 2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2618for as_dir in $PATH 2619do 2620 IFS=$as_save_IFS 2621 test -z "$as_dir" && as_dir=. 2622 for ac_exec_ext in '' $ac_executable_extensions; do 2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2624 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2626 break 2 2627 fi 2628done 2629done 2630IFS=$as_save_IFS 2631 2632fi 2633fi 2634CC=$ac_cv_prog_CC 2635if test -n "$CC"; then 2636 { echo "$as_me:$LINENO: result: $CC" >&5 2637echo "${ECHO_T}$CC" >&6; } 2638else 2639 { echo "$as_me:$LINENO: result: no" >&5 2640echo "${ECHO_T}no" >&6; } 2641fi 2642 2643 2644fi 2645if test -z "$ac_cv_prog_CC"; then 2646 ac_ct_CC=$CC 2647 # Extract the first word of "gcc", so it can be a program name with args. 2648set dummy gcc; ac_word=$2 2649{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2651if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2652 echo $ECHO_N "(cached) $ECHO_C" >&6 2653else 2654 if test -n "$ac_ct_CC"; then 2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2656else 2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2658for as_dir in $PATH 2659do 2660 IFS=$as_save_IFS 2661 test -z "$as_dir" && as_dir=. 2662 for ac_exec_ext in '' $ac_executable_extensions; do 2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2664 ac_cv_prog_ac_ct_CC="gcc" 2665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2666 break 2 2667 fi 2668done 2669done 2670IFS=$as_save_IFS 2671 2672fi 2673fi 2674ac_ct_CC=$ac_cv_prog_ac_ct_CC 2675if test -n "$ac_ct_CC"; then 2676 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2677echo "${ECHO_T}$ac_ct_CC" >&6; } 2678else 2679 { echo "$as_me:$LINENO: result: no" >&5 2680echo "${ECHO_T}no" >&6; } 2681fi 2682 2683 if test "x$ac_ct_CC" = x; then 2684 CC="" 2685 else 2686 case $cross_compiling:$ac_tool_warned in 2687yes:) 2688{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2689whose name does not start with the host triplet. If you think this 2690configuration is useful to you, please write to autoconf@gnu.org." >&5 2691echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2692whose name does not start with the host triplet. If you think this 2693configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2694ac_tool_warned=yes ;; 2695esac 2696 CC=$ac_ct_CC 2697 fi 2698else 2699 CC="$ac_cv_prog_CC" 2700fi 2701 2702if test -z "$CC"; then 2703 if test -n "$ac_tool_prefix"; then 2704 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2705set dummy ${ac_tool_prefix}cc; ac_word=$2 2706{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2708if test "${ac_cv_prog_CC+set}" = set; then 2709 echo $ECHO_N "(cached) $ECHO_C" >&6 2710else 2711 if test -n "$CC"; then 2712 ac_cv_prog_CC="$CC" # Let the user override the test. 2713else 2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715for as_dir in $PATH 2716do 2717 IFS=$as_save_IFS 2718 test -z "$as_dir" && as_dir=. 2719 for ac_exec_ext in '' $ac_executable_extensions; do 2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2721 ac_cv_prog_CC="${ac_tool_prefix}cc" 2722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2723 break 2 2724 fi 2725done 2726done 2727IFS=$as_save_IFS 2728 2729fi 2730fi 2731CC=$ac_cv_prog_CC 2732if test -n "$CC"; then 2733 { echo "$as_me:$LINENO: result: $CC" >&5 2734echo "${ECHO_T}$CC" >&6; } 2735else 2736 { echo "$as_me:$LINENO: result: no" >&5 2737echo "${ECHO_T}no" >&6; } 2738fi 2739 2740 2741 fi 2742fi 2743if test -z "$CC"; then 2744 # Extract the first word of "cc", so it can be a program name with args. 2745set dummy cc; ac_word=$2 2746{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2748if test "${ac_cv_prog_CC+set}" = set; then 2749 echo $ECHO_N "(cached) $ECHO_C" >&6 2750else 2751 if test -n "$CC"; then 2752 ac_cv_prog_CC="$CC" # Let the user override the test. 2753else 2754 ac_prog_rejected=no 2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2756for as_dir in $PATH 2757do 2758 IFS=$as_save_IFS 2759 test -z "$as_dir" && as_dir=. 2760 for ac_exec_ext in '' $ac_executable_extensions; do 2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2762 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2763 ac_prog_rejected=yes 2764 continue 2765 fi 2766 ac_cv_prog_CC="cc" 2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2768 break 2 2769 fi 2770done 2771done 2772IFS=$as_save_IFS 2773 2774if test $ac_prog_rejected = yes; then 2775 # We found a bogon in the path, so make sure we never use it. 2776 set dummy $ac_cv_prog_CC 2777 shift 2778 if test $# != 0; then 2779 # We chose a different compiler from the bogus one. 2780 # However, it has the same basename, so the bogon will be chosen 2781 # first if we set CC to just the basename; use the full file name. 2782 shift 2783 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2784 fi 2785fi 2786fi 2787fi 2788CC=$ac_cv_prog_CC 2789if test -n "$CC"; then 2790 { echo "$as_me:$LINENO: result: $CC" >&5 2791echo "${ECHO_T}$CC" >&6; } 2792else 2793 { echo "$as_me:$LINENO: result: no" >&5 2794echo "${ECHO_T}no" >&6; } 2795fi 2796 2797 2798fi 2799if test -z "$CC"; then 2800 if test -n "$ac_tool_prefix"; then 2801 for ac_prog in cl.exe 2802 do 2803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2804set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2805{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2807if test "${ac_cv_prog_CC+set}" = set; then 2808 echo $ECHO_N "(cached) $ECHO_C" >&6 2809else 2810 if test -n "$CC"; then 2811 ac_cv_prog_CC="$CC" # Let the user override the test. 2812else 2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2814for as_dir in $PATH 2815do 2816 IFS=$as_save_IFS 2817 test -z "$as_dir" && as_dir=. 2818 for ac_exec_ext in '' $ac_executable_extensions; do 2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2820 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2822 break 2 2823 fi 2824done 2825done 2826IFS=$as_save_IFS 2827 2828fi 2829fi 2830CC=$ac_cv_prog_CC 2831if test -n "$CC"; then 2832 { echo "$as_me:$LINENO: result: $CC" >&5 2833echo "${ECHO_T}$CC" >&6; } 2834else 2835 { echo "$as_me:$LINENO: result: no" >&5 2836echo "${ECHO_T}no" >&6; } 2837fi 2838 2839 2840 test -n "$CC" && break 2841 done 2842fi 2843if test -z "$CC"; then 2844 ac_ct_CC=$CC 2845 for ac_prog in cl.exe 2846do 2847 # Extract the first word of "$ac_prog", so it can be a program name with args. 2848set dummy $ac_prog; ac_word=$2 2849{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2852 echo $ECHO_N "(cached) $ECHO_C" >&6 2853else 2854 if test -n "$ac_ct_CC"; then 2855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2856else 2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2858for as_dir in $PATH 2859do 2860 IFS=$as_save_IFS 2861 test -z "$as_dir" && as_dir=. 2862 for ac_exec_ext in '' $ac_executable_extensions; do 2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2864 ac_cv_prog_ac_ct_CC="$ac_prog" 2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2866 break 2 2867 fi 2868done 2869done 2870IFS=$as_save_IFS 2871 2872fi 2873fi 2874ac_ct_CC=$ac_cv_prog_ac_ct_CC 2875if test -n "$ac_ct_CC"; then 2876 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2877echo "${ECHO_T}$ac_ct_CC" >&6; } 2878else 2879 { echo "$as_me:$LINENO: result: no" >&5 2880echo "${ECHO_T}no" >&6; } 2881fi 2882 2883 2884 test -n "$ac_ct_CC" && break 2885done 2886 2887 if test "x$ac_ct_CC" = x; then 2888 CC="" 2889 else 2890 case $cross_compiling:$ac_tool_warned in 2891yes:) 2892{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2893whose name does not start with the host triplet. If you think this 2894configuration is useful to you, please write to autoconf@gnu.org." >&5 2895echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2896whose name does not start with the host triplet. If you think this 2897configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2898ac_tool_warned=yes ;; 2899esac 2900 CC=$ac_ct_CC 2901 fi 2902fi 2903 2904fi 2905 2906 2907test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2908See \`config.log' for more details." >&5 2909echo "$as_me: error: no acceptable C compiler found in \$PATH 2910See \`config.log' for more details." >&2;} 2911 { (exit 1); exit 1; }; } 2912 2913# Provide some information about the compiler. 2914echo "$as_me:$LINENO: checking for C compiler version" >&5 2915ac_compiler=`set X $ac_compile; echo $2` 2916{ (ac_try="$ac_compiler --version >&5" 2917case "(($ac_try" in 2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2919 *) ac_try_echo=$ac_try;; 2920esac 2921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2922 (eval "$ac_compiler --version >&5") 2>&5 2923 ac_status=$? 2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2925 (exit $ac_status); } 2926{ (ac_try="$ac_compiler -v >&5" 2927case "(($ac_try" in 2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2929 *) ac_try_echo=$ac_try;; 2930esac 2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2932 (eval "$ac_compiler -v >&5") 2>&5 2933 ac_status=$? 2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2935 (exit $ac_status); } 2936{ (ac_try="$ac_compiler -V >&5" 2937case "(($ac_try" in 2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2939 *) ac_try_echo=$ac_try;; 2940esac 2941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2942 (eval "$ac_compiler -V >&5") 2>&5 2943 ac_status=$? 2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2945 (exit $ac_status); } 2946 2947cat >conftest.$ac_ext <<_ACEOF 2948/* confdefs.h. */ 2949_ACEOF 2950cat confdefs.h >>conftest.$ac_ext 2951cat >>conftest.$ac_ext <<_ACEOF 2952/* end confdefs.h. */ 2953 2954int 2955main () 2956{ 2957 2958 ; 2959 return 0; 2960} 2961_ACEOF 2962ac_clean_files_save=$ac_clean_files 2963ac_clean_files="$ac_clean_files a.out a.exe b.out" 2964# Try to create an executable without -o first, disregard a.out. 2965# It will help us diagnose broken compilers, and finding out an intuition 2966# of exeext. 2967{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2968echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2969ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2970# 2971# List of possible output files, starting from the most likely. 2972# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2973# only as a last resort. b.out is created by i960 compilers. 2974ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2975# 2976# The IRIX 6 linker writes into existing files which may not be 2977# executable, retaining their permissions. Remove them first so a 2978# subsequent execution test works. 2979ac_rmfiles= 2980for ac_file in $ac_files 2981do 2982 case $ac_file in 2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2984 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2985 esac 2986done 2987rm -f $ac_rmfiles 2988 2989if { (ac_try="$ac_link_default" 2990case "(($ac_try" in 2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2992 *) ac_try_echo=$ac_try;; 2993esac 2994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2995 (eval "$ac_link_default") 2>&5 2996 ac_status=$? 2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2998 (exit $ac_status); }; then 2999 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3000# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3001# in a Makefile. We should not override ac_cv_exeext if it was cached, 3002# so that the user can short-circuit this test for compilers unknown to 3003# Autoconf. 3004for ac_file in $ac_files '' 3005do 3006 test -f "$ac_file" || continue 3007 case $ac_file in 3008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3009 ;; 3010 [ab].out ) 3011 # We found the default executable, but exeext='' is most 3012 # certainly right. 3013 break;; 3014 *.* ) 3015 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3016 then :; else 3017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3018 fi 3019 # We set ac_cv_exeext here because the later test for it is not 3020 # safe: cross compilers may not add the suffix if given an `-o' 3021 # argument, so we may need to know it at that point already. 3022 # Even if this section looks crufty: it has the advantage of 3023 # actually working. 3024 break;; 3025 * ) 3026 break;; 3027 esac 3028done 3029test "$ac_cv_exeext" = no && ac_cv_exeext= 3030 3031else 3032 ac_file='' 3033fi 3034 3035{ echo "$as_me:$LINENO: result: $ac_file" >&5 3036echo "${ECHO_T}$ac_file" >&6; } 3037if test -z "$ac_file"; then 3038 echo "$as_me: failed program was:" >&5 3039sed 's/^/| /' conftest.$ac_ext >&5 3040 3041{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3042See \`config.log' for more details." >&5 3043echo "$as_me: error: C compiler cannot create executables 3044See \`config.log' for more details." >&2;} 3045 { (exit 77); exit 77; }; } 3046fi 3047 3048ac_exeext=$ac_cv_exeext 3049 3050# Check that the compiler produces executables we can run. If not, either 3051# the compiler is broken, or we cross compile. 3052{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3053echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 3054# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3055# If not cross compiling, check that we can run a simple program. 3056if test "$cross_compiling" != yes; then 3057 if { ac_try='./$ac_file' 3058 { (case "(($ac_try" in 3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3060 *) ac_try_echo=$ac_try;; 3061esac 3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3063 (eval "$ac_try") 2>&5 3064 ac_status=$? 3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3066 (exit $ac_status); }; }; then 3067 cross_compiling=no 3068 else 3069 if test "$cross_compiling" = maybe; then 3070 cross_compiling=yes 3071 else 3072 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 3073If you meant to cross compile, use \`--host'. 3074See \`config.log' for more details." >&5 3075echo "$as_me: error: cannot run C compiled programs. 3076If you meant to cross compile, use \`--host'. 3077See \`config.log' for more details." >&2;} 3078 { (exit 1); exit 1; }; } 3079 fi 3080 fi 3081fi 3082{ echo "$as_me:$LINENO: result: yes" >&5 3083echo "${ECHO_T}yes" >&6; } 3084 3085rm -f a.out a.exe conftest$ac_cv_exeext b.out 3086ac_clean_files=$ac_clean_files_save 3087# Check that the compiler produces executables we can run. If not, either 3088# the compiler is broken, or we cross compile. 3089{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 3090echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 3091{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 3092echo "${ECHO_T}$cross_compiling" >&6; } 3093 3094{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3095echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3096if { (ac_try="$ac_link" 3097case "(($ac_try" in 3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3099 *) ac_try_echo=$ac_try;; 3100esac 3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3102 (eval "$ac_link") 2>&5 3103 ac_status=$? 3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3105 (exit $ac_status); }; then 3106 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3107# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3108# work properly (i.e., refer to `conftest.exe'), while it won't with 3109# `rm'. 3110for ac_file in conftest.exe conftest conftest.*; do 3111 test -f "$ac_file" || continue 3112 case $ac_file in 3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3114 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3115 break;; 3116 * ) break;; 3117 esac 3118done 3119else 3120 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3121See \`config.log' for more details." >&5 3122echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3123See \`config.log' for more details." >&2;} 3124 { (exit 1); exit 1; }; } 3125fi 3126 3127rm -f conftest$ac_cv_exeext 3128{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3129echo "${ECHO_T}$ac_cv_exeext" >&6; } 3130 3131rm -f conftest.$ac_ext 3132EXEEXT=$ac_cv_exeext 3133ac_exeext=$EXEEXT 3134{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3135echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3136if test "${ac_cv_objext+set}" = set; then 3137 echo $ECHO_N "(cached) $ECHO_C" >&6 3138else 3139 cat >conftest.$ac_ext <<_ACEOF 3140/* confdefs.h. */ 3141_ACEOF 3142cat confdefs.h >>conftest.$ac_ext 3143cat >>conftest.$ac_ext <<_ACEOF 3144/* end confdefs.h. */ 3145 3146int 3147main () 3148{ 3149 3150 ; 3151 return 0; 3152} 3153_ACEOF 3154rm -f conftest.o conftest.obj 3155if { (ac_try="$ac_compile" 3156case "(($ac_try" in 3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3158 *) ac_try_echo=$ac_try;; 3159esac 3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3161 (eval "$ac_compile") 2>&5 3162 ac_status=$? 3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3164 (exit $ac_status); }; then 3165 for ac_file in conftest.o conftest.obj conftest.*; do 3166 test -f "$ac_file" || continue; 3167 case $ac_file in 3168 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3169 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3170 break;; 3171 esac 3172done 3173else 3174 echo "$as_me: failed program was:" >&5 3175sed 's/^/| /' conftest.$ac_ext >&5 3176 3177{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3178See \`config.log' for more details." >&5 3179echo "$as_me: error: cannot compute suffix of object files: cannot compile 3180See \`config.log' for more details." >&2;} 3181 { (exit 1); exit 1; }; } 3182fi 3183 3184rm -f conftest.$ac_cv_objext conftest.$ac_ext 3185fi 3186{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3187echo "${ECHO_T}$ac_cv_objext" >&6; } 3188OBJEXT=$ac_cv_objext 3189ac_objext=$OBJEXT 3190{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3191echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3192if test "${ac_cv_c_compiler_gnu+set}" = set; then 3193 echo $ECHO_N "(cached) $ECHO_C" >&6 3194else 3195 cat >conftest.$ac_ext <<_ACEOF 3196/* confdefs.h. */ 3197_ACEOF 3198cat confdefs.h >>conftest.$ac_ext 3199cat >>conftest.$ac_ext <<_ACEOF 3200/* end confdefs.h. */ 3201 3202int 3203main () 3204{ 3205#ifndef __GNUC__ 3206 choke me 3207#endif 3208 3209 ; 3210 return 0; 3211} 3212_ACEOF 3213rm -f conftest.$ac_objext 3214if { (ac_try="$ac_compile" 3215case "(($ac_try" in 3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3217 *) ac_try_echo=$ac_try;; 3218esac 3219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3220 (eval "$ac_compile") 2>conftest.er1 3221 ac_status=$? 3222 grep -v '^ *+' conftest.er1 >conftest.err 3223 rm -f conftest.er1 3224 cat conftest.err >&5 3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3226 (exit $ac_status); } && { 3227 test -z "$ac_c_werror_flag" || 3228 test ! -s conftest.err 3229 } && test -s conftest.$ac_objext; then 3230 ac_compiler_gnu=yes 3231else 3232 echo "$as_me: failed program was:" >&5 3233sed 's/^/| /' conftest.$ac_ext >&5 3234 3235 ac_compiler_gnu=no 3236fi 3237 3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3239ac_cv_c_compiler_gnu=$ac_compiler_gnu 3240 3241fi 3242{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3243echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3244GCC=`test $ac_compiler_gnu = yes && echo yes` 3245ac_test_CFLAGS=${CFLAGS+set} 3246ac_save_CFLAGS=$CFLAGS 3247{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3248echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3249if test "${ac_cv_prog_cc_g+set}" = set; then 3250 echo $ECHO_N "(cached) $ECHO_C" >&6 3251else 3252 ac_save_c_werror_flag=$ac_c_werror_flag 3253 ac_c_werror_flag=yes 3254 ac_cv_prog_cc_g=no 3255 CFLAGS="-g" 3256 cat >conftest.$ac_ext <<_ACEOF 3257/* confdefs.h. */ 3258_ACEOF 3259cat confdefs.h >>conftest.$ac_ext 3260cat >>conftest.$ac_ext <<_ACEOF 3261/* end confdefs.h. */ 3262 3263int 3264main () 3265{ 3266 3267 ; 3268 return 0; 3269} 3270_ACEOF 3271rm -f conftest.$ac_objext 3272if { (ac_try="$ac_compile" 3273case "(($ac_try" in 3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3275 *) ac_try_echo=$ac_try;; 3276esac 3277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3278 (eval "$ac_compile") 2>conftest.er1 3279 ac_status=$? 3280 grep -v '^ *+' conftest.er1 >conftest.err 3281 rm -f conftest.er1 3282 cat conftest.err >&5 3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3284 (exit $ac_status); } && { 3285 test -z "$ac_c_werror_flag" || 3286 test ! -s conftest.err 3287 } && test -s conftest.$ac_objext; then 3288 ac_cv_prog_cc_g=yes 3289else 3290 echo "$as_me: failed program was:" >&5 3291sed 's/^/| /' conftest.$ac_ext >&5 3292 3293 CFLAGS="" 3294 cat >conftest.$ac_ext <<_ACEOF 3295/* confdefs.h. */ 3296_ACEOF 3297cat confdefs.h >>conftest.$ac_ext 3298cat >>conftest.$ac_ext <<_ACEOF 3299/* end confdefs.h. */ 3300 3301int 3302main () 3303{ 3304 3305 ; 3306 return 0; 3307} 3308_ACEOF 3309rm -f conftest.$ac_objext 3310if { (ac_try="$ac_compile" 3311case "(($ac_try" in 3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3313 *) ac_try_echo=$ac_try;; 3314esac 3315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3316 (eval "$ac_compile") 2>conftest.er1 3317 ac_status=$? 3318 grep -v '^ *+' conftest.er1 >conftest.err 3319 rm -f conftest.er1 3320 cat conftest.err >&5 3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3322 (exit $ac_status); } && { 3323 test -z "$ac_c_werror_flag" || 3324 test ! -s conftest.err 3325 } && test -s conftest.$ac_objext; then 3326 : 3327else 3328 echo "$as_me: failed program was:" >&5 3329sed 's/^/| /' conftest.$ac_ext >&5 3330 3331 ac_c_werror_flag=$ac_save_c_werror_flag 3332 CFLAGS="-g" 3333 cat >conftest.$ac_ext <<_ACEOF 3334/* confdefs.h. */ 3335_ACEOF 3336cat confdefs.h >>conftest.$ac_ext 3337cat >>conftest.$ac_ext <<_ACEOF 3338/* end confdefs.h. */ 3339 3340int 3341main () 3342{ 3343 3344 ; 3345 return 0; 3346} 3347_ACEOF 3348rm -f conftest.$ac_objext 3349if { (ac_try="$ac_compile" 3350case "(($ac_try" in 3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3352 *) ac_try_echo=$ac_try;; 3353esac 3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3355 (eval "$ac_compile") 2>conftest.er1 3356 ac_status=$? 3357 grep -v '^ *+' conftest.er1 >conftest.err 3358 rm -f conftest.er1 3359 cat conftest.err >&5 3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3361 (exit $ac_status); } && { 3362 test -z "$ac_c_werror_flag" || 3363 test ! -s conftest.err 3364 } && test -s conftest.$ac_objext; then 3365 ac_cv_prog_cc_g=yes 3366else 3367 echo "$as_me: failed program was:" >&5 3368sed 's/^/| /' conftest.$ac_ext >&5 3369 3370 3371fi 3372 3373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3374fi 3375 3376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3377fi 3378 3379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3380 ac_c_werror_flag=$ac_save_c_werror_flag 3381fi 3382{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3383echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3384if test "$ac_test_CFLAGS" = set; then 3385 CFLAGS=$ac_save_CFLAGS 3386elif test $ac_cv_prog_cc_g = yes; then 3387 if test "$GCC" = yes; then 3388 CFLAGS="-g -O2" 3389 else 3390 CFLAGS="-g" 3391 fi 3392else 3393 if test "$GCC" = yes; then 3394 CFLAGS="-O2" 3395 else 3396 CFLAGS= 3397 fi 3398fi 3399{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3400echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3401if test "${ac_cv_prog_cc_c89+set}" = set; then 3402 echo $ECHO_N "(cached) $ECHO_C" >&6 3403else 3404 ac_cv_prog_cc_c89=no 3405ac_save_CC=$CC 3406cat >conftest.$ac_ext <<_ACEOF 3407/* confdefs.h. */ 3408_ACEOF 3409cat confdefs.h >>conftest.$ac_ext 3410cat >>conftest.$ac_ext <<_ACEOF 3411/* end confdefs.h. */ 3412#include <stdarg.h> 3413#include <stdio.h> 3414#include <sys/types.h> 3415#include <sys/stat.h> 3416/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3417struct buf { int x; }; 3418FILE * (*rcsopen) (struct buf *, struct stat *, int); 3419static char *e (p, i) 3420 char **p; 3421 int i; 3422{ 3423 return p[i]; 3424} 3425static char *f (char * (*g) (char **, int), char **p, ...) 3426{ 3427 char *s; 3428 va_list v; 3429 va_start (v,p); 3430 s = g (p, va_arg (v,int)); 3431 va_end (v); 3432 return s; 3433} 3434 3435/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3436 function prototypes and stuff, but not '\xHH' hex character constants. 3437 These don't provoke an error unfortunately, instead are silently treated 3438 as 'x'. The following induces an error, until -std is added to get 3439 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3440 array size at least. It's necessary to write '\x00'==0 to get something 3441 that's true only with -std. */ 3442int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3443 3444/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3445 inside strings and character constants. */ 3446#define FOO(x) 'x' 3447int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3448 3449int test (int i, double x); 3450struct s1 {int (*f) (int a);}; 3451struct s2 {int (*f) (double a);}; 3452int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3453int argc; 3454char **argv; 3455int 3456main () 3457{ 3458return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3459 ; 3460 return 0; 3461} 3462_ACEOF 3463for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3464 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3465do 3466 CC="$ac_save_CC $ac_arg" 3467 rm -f conftest.$ac_objext 3468if { (ac_try="$ac_compile" 3469case "(($ac_try" in 3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3471 *) ac_try_echo=$ac_try;; 3472esac 3473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3474 (eval "$ac_compile") 2>conftest.er1 3475 ac_status=$? 3476 grep -v '^ *+' conftest.er1 >conftest.err 3477 rm -f conftest.er1 3478 cat conftest.err >&5 3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3480 (exit $ac_status); } && { 3481 test -z "$ac_c_werror_flag" || 3482 test ! -s conftest.err 3483 } && test -s conftest.$ac_objext; then 3484 ac_cv_prog_cc_c89=$ac_arg 3485else 3486 echo "$as_me: failed program was:" >&5 3487sed 's/^/| /' conftest.$ac_ext >&5 3488 3489 3490fi 3491 3492rm -f core conftest.err conftest.$ac_objext 3493 test "x$ac_cv_prog_cc_c89" != "xno" && break 3494done 3495rm -f conftest.$ac_ext 3496CC=$ac_save_CC 3497 3498fi 3499# AC_CACHE_VAL 3500case "x$ac_cv_prog_cc_c89" in 3501 x) 3502 { echo "$as_me:$LINENO: result: none needed" >&5 3503echo "${ECHO_T}none needed" >&6; } ;; 3504 xno) 3505 { echo "$as_me:$LINENO: result: unsupported" >&5 3506echo "${ECHO_T}unsupported" >&6; } ;; 3507 *) 3508 CC="$CC $ac_cv_prog_cc_c89" 3509 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3510echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3511esac 3512 3513 3514ac_ext=c 3515ac_cpp='$CPP $CPPFLAGS' 3516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3518ac_compiler_gnu=$ac_cv_c_compiler_gnu 3519DEPDIR="${am__leading_dot}deps" 3520 3521ac_config_commands="$ac_config_commands depfiles" 3522 3523 3524am_make=${MAKE-make} 3525cat > confinc << 'END' 3526am__doit: 3527 @echo done 3528.PHONY: am__doit 3529END 3530# If we don't find an include directive, just comment out the code. 3531{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3532echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3533am__include="#" 3534am__quote= 3535_am_result=none 3536# First try GNU make style include. 3537echo "include confinc" > confmf 3538# We grep out `Entering directory' and `Leaving directory' 3539# messages which can occur if `w' ends up in MAKEFLAGS. 3540# In particular we don't look at `^make:' because GNU make might 3541# be invoked under some other name (usually "gmake"), in which 3542# case it prints its new name instead of `make'. 3543if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3544 am__include=include 3545 am__quote= 3546 _am_result=GNU 3547fi 3548# Now try BSD make style include. 3549if test "$am__include" = "#"; then 3550 echo '.include "confinc"' > confmf 3551 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3552 am__include=.include 3553 am__quote="\"" 3554 _am_result=BSD 3555 fi 3556fi 3557 3558 3559{ echo "$as_me:$LINENO: result: $_am_result" >&5 3560echo "${ECHO_T}$_am_result" >&6; } 3561rm -f confinc confmf 3562 3563# Check whether --enable-dependency-tracking was given. 3564if test "${enable_dependency_tracking+set}" = set; then 3565 enableval=$enable_dependency_tracking; 3566fi 3567 3568if test "x$enable_dependency_tracking" != xno; then 3569 am_depcomp="$ac_aux_dir/depcomp" 3570 AMDEPBACKSLASH='\' 3571fi 3572 if test "x$enable_dependency_tracking" != xno; then 3573 AMDEP_TRUE= 3574 AMDEP_FALSE='#' 3575else 3576 AMDEP_TRUE='#' 3577 AMDEP_FALSE= 3578fi 3579 3580 3581 3582depcc="$CC" am_compiler_list= 3583 3584{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3585echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3586if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3587 echo $ECHO_N "(cached) $ECHO_C" >&6 3588else 3589 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3590 # We make a subdir and do the tests there. Otherwise we can end up 3591 # making bogus files that we don't know about and never remove. For 3592 # instance it was reported that on HP-UX the gcc test will end up 3593 # making a dummy file named `D' -- because `-MD' means `put the output 3594 # in D'. 3595 mkdir conftest.dir 3596 # Copy depcomp to subdir because otherwise we won't find it if we're 3597 # using a relative directory. 3598 cp "$am_depcomp" conftest.dir 3599 cd conftest.dir 3600 # We will build objects and dependencies in a subdirectory because 3601 # it helps to detect inapplicable dependency modes. For instance 3602 # both Tru64's cc and ICC support -MD to output dependencies as a 3603 # side effect of compilation, but ICC will put the dependencies in 3604 # the current directory while Tru64 will put them in the object 3605 # directory. 3606 mkdir sub 3607 3608 am_cv_CC_dependencies_compiler_type=none 3609 if test "$am_compiler_list" = ""; then 3610 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3611 fi 3612 for depmode in $am_compiler_list; do 3613 # Setup a source with many dependencies, because some compilers 3614 # like to wrap large dependency lists on column 80 (with \), and 3615 # we should not choose a depcomp mode which is confused by this. 3616 # 3617 # We need to recreate these files for each test, as the compiler may 3618 # overwrite some of them when testing with obscure command lines. 3619 # This happens at least with the AIX C compiler. 3620 : > sub/conftest.c 3621 for i in 1 2 3 4 5 6; do 3622 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3623 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3624 # Solaris 8's {/usr,}/bin/sh. 3625 touch sub/conftst$i.h 3626 done 3627 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3628 3629 case $depmode in 3630 nosideeffect) 3631 # after this tag, mechanisms are not by side-effect, so they'll 3632 # only be used when explicitly requested 3633 if test "x$enable_dependency_tracking" = xyes; then 3634 continue 3635 else 3636 break 3637 fi 3638 ;; 3639 none) break ;; 3640 esac 3641 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3642 # mode. It turns out that the SunPro C++ compiler does not properly 3643 # handle `-M -o', and we need to detect this. 3644 if depmode=$depmode \ 3645 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3646 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3647 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3648 >/dev/null 2>conftest.err && 3649 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3650 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3651 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3652 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3653 # icc doesn't choke on unknown options, it will just issue warnings 3654 # or remarks (even with -Werror). So we grep stderr for any message 3655 # that says an option was ignored or not supported. 3656 # When given -MP, icc 7.0 and 7.1 complain thusly: 3657 # icc: Command line warning: ignoring option '-M'; no argument required 3658 # The diagnosis changed in icc 8.0: 3659 # icc: Command line remark: option '-MP' not supported 3660 if (grep 'ignoring option' conftest.err || 3661 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3662 am_cv_CC_dependencies_compiler_type=$depmode 3663 break 3664 fi 3665 fi 3666 done 3667 3668 cd .. 3669 rm -rf conftest.dir 3670else 3671 am_cv_CC_dependencies_compiler_type=none 3672fi 3673 3674fi 3675{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3676echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3677CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3678 3679 if 3680 test "x$enable_dependency_tracking" != xno \ 3681 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3682 am__fastdepCC_TRUE= 3683 am__fastdepCC_FALSE='#' 3684else 3685 am__fastdepCC_TRUE='#' 3686 am__fastdepCC_FALSE= 3687fi 3688 3689 3690ac_ext=cpp 3691ac_cpp='$CXXCPP $CPPFLAGS' 3692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3695if test -z "$CXX"; then 3696 if test -n "$CCC"; then 3697 CXX=$CCC 3698 else 3699 if test -n "$ac_tool_prefix"; then 3700 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3701 do 3702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3703set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3704{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3706if test "${ac_cv_prog_CXX+set}" = set; then 3707 echo $ECHO_N "(cached) $ECHO_C" >&6 3708else 3709 if test -n "$CXX"; then 3710 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3711else 3712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3713for as_dir in $PATH 3714do 3715 IFS=$as_save_IFS 3716 test -z "$as_dir" && as_dir=. 3717 for ac_exec_ext in '' $ac_executable_extensions; do 3718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3719 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3721 break 2 3722 fi 3723done 3724done 3725IFS=$as_save_IFS 3726 3727fi 3728fi 3729CXX=$ac_cv_prog_CXX 3730if test -n "$CXX"; then 3731 { echo "$as_me:$LINENO: result: $CXX" >&5 3732echo "${ECHO_T}$CXX" >&6; } 3733else 3734 { echo "$as_me:$LINENO: result: no" >&5 3735echo "${ECHO_T}no" >&6; } 3736fi 3737 3738 3739 test -n "$CXX" && break 3740 done 3741fi 3742if test -z "$CXX"; then 3743 ac_ct_CXX=$CXX 3744 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3745do 3746 # Extract the first word of "$ac_prog", so it can be a program name with args. 3747set dummy $ac_prog; ac_word=$2 3748{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3750if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3751 echo $ECHO_N "(cached) $ECHO_C" >&6 3752else 3753 if test -n "$ac_ct_CXX"; then 3754 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3755else 3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3757for as_dir in $PATH 3758do 3759 IFS=$as_save_IFS 3760 test -z "$as_dir" && as_dir=. 3761 for ac_exec_ext in '' $ac_executable_extensions; do 3762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3763 ac_cv_prog_ac_ct_CXX="$ac_prog" 3764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3765 break 2 3766 fi 3767done 3768done 3769IFS=$as_save_IFS 3770 3771fi 3772fi 3773ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3774if test -n "$ac_ct_CXX"; then 3775 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3776echo "${ECHO_T}$ac_ct_CXX" >&6; } 3777else 3778 { echo "$as_me:$LINENO: result: no" >&5 3779echo "${ECHO_T}no" >&6; } 3780fi 3781 3782 3783 test -n "$ac_ct_CXX" && break 3784done 3785 3786 if test "x$ac_ct_CXX" = x; then 3787 CXX="g++" 3788 else 3789 case $cross_compiling:$ac_tool_warned in 3790yes:) 3791{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3792whose name does not start with the host triplet. If you think this 3793configuration is useful to you, please write to autoconf@gnu.org." >&5 3794echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3795whose name does not start with the host triplet. If you think this 3796configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3797ac_tool_warned=yes ;; 3798esac 3799 CXX=$ac_ct_CXX 3800 fi 3801fi 3802 3803 fi 3804fi 3805# Provide some information about the compiler. 3806echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3807ac_compiler=`set X $ac_compile; echo $2` 3808{ (ac_try="$ac_compiler --version >&5" 3809case "(($ac_try" in 3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3811 *) ac_try_echo=$ac_try;; 3812esac 3813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3814 (eval "$ac_compiler --version >&5") 2>&5 3815 ac_status=$? 3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3817 (exit $ac_status); } 3818{ (ac_try="$ac_compiler -v >&5" 3819case "(($ac_try" in 3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3821 *) ac_try_echo=$ac_try;; 3822esac 3823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3824 (eval "$ac_compiler -v >&5") 2>&5 3825 ac_status=$? 3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3827 (exit $ac_status); } 3828{ (ac_try="$ac_compiler -V >&5" 3829case "(($ac_try" in 3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3831 *) ac_try_echo=$ac_try;; 3832esac 3833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3834 (eval "$ac_compiler -V >&5") 2>&5 3835 ac_status=$? 3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3837 (exit $ac_status); } 3838 3839{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3840echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 3841if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3842 echo $ECHO_N "(cached) $ECHO_C" >&6 3843else 3844 cat >conftest.$ac_ext <<_ACEOF 3845/* confdefs.h. */ 3846_ACEOF 3847cat confdefs.h >>conftest.$ac_ext 3848cat >>conftest.$ac_ext <<_ACEOF 3849/* end confdefs.h. */ 3850 3851int 3852main () 3853{ 3854#ifndef __GNUC__ 3855 choke me 3856#endif 3857 3858 ; 3859 return 0; 3860} 3861_ACEOF 3862rm -f conftest.$ac_objext 3863if { (ac_try="$ac_compile" 3864case "(($ac_try" in 3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3866 *) ac_try_echo=$ac_try;; 3867esac 3868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3869 (eval "$ac_compile") 2>conftest.er1 3870 ac_status=$? 3871 grep -v '^ *+' conftest.er1 >conftest.err 3872 rm -f conftest.er1 3873 cat conftest.err >&5 3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3875 (exit $ac_status); } && { 3876 test -z "$ac_cxx_werror_flag" || 3877 test ! -s conftest.err 3878 } && test -s conftest.$ac_objext; then 3879 ac_compiler_gnu=yes 3880else 3881 echo "$as_me: failed program was:" >&5 3882sed 's/^/| /' conftest.$ac_ext >&5 3883 3884 ac_compiler_gnu=no 3885fi 3886 3887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3888ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3889 3890fi 3891{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3892echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3893GXX=`test $ac_compiler_gnu = yes && echo yes` 3894ac_test_CXXFLAGS=${CXXFLAGS+set} 3895ac_save_CXXFLAGS=$CXXFLAGS 3896{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3897echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3898if test "${ac_cv_prog_cxx_g+set}" = set; then 3899 echo $ECHO_N "(cached) $ECHO_C" >&6 3900else 3901 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3902 ac_cxx_werror_flag=yes 3903 ac_cv_prog_cxx_g=no 3904 CXXFLAGS="-g" 3905 cat >conftest.$ac_ext <<_ACEOF 3906/* confdefs.h. */ 3907_ACEOF 3908cat confdefs.h >>conftest.$ac_ext 3909cat >>conftest.$ac_ext <<_ACEOF 3910/* end confdefs.h. */ 3911 3912int 3913main () 3914{ 3915 3916 ; 3917 return 0; 3918} 3919_ACEOF 3920rm -f conftest.$ac_objext 3921if { (ac_try="$ac_compile" 3922case "(($ac_try" in 3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3924 *) ac_try_echo=$ac_try;; 3925esac 3926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3927 (eval "$ac_compile") 2>conftest.er1 3928 ac_status=$? 3929 grep -v '^ *+' conftest.er1 >conftest.err 3930 rm -f conftest.er1 3931 cat conftest.err >&5 3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3933 (exit $ac_status); } && { 3934 test -z "$ac_cxx_werror_flag" || 3935 test ! -s conftest.err 3936 } && test -s conftest.$ac_objext; then 3937 ac_cv_prog_cxx_g=yes 3938else 3939 echo "$as_me: failed program was:" >&5 3940sed 's/^/| /' conftest.$ac_ext >&5 3941 3942 CXXFLAGS="" 3943 cat >conftest.$ac_ext <<_ACEOF 3944/* confdefs.h. */ 3945_ACEOF 3946cat confdefs.h >>conftest.$ac_ext 3947cat >>conftest.$ac_ext <<_ACEOF 3948/* end confdefs.h. */ 3949 3950int 3951main () 3952{ 3953 3954 ; 3955 return 0; 3956} 3957_ACEOF 3958rm -f conftest.$ac_objext 3959if { (ac_try="$ac_compile" 3960case "(($ac_try" in 3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3962 *) ac_try_echo=$ac_try;; 3963esac 3964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3965 (eval "$ac_compile") 2>conftest.er1 3966 ac_status=$? 3967 grep -v '^ *+' conftest.er1 >conftest.err 3968 rm -f conftest.er1 3969 cat conftest.err >&5 3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3971 (exit $ac_status); } && { 3972 test -z "$ac_cxx_werror_flag" || 3973 test ! -s conftest.err 3974 } && test -s conftest.$ac_objext; then 3975 : 3976else 3977 echo "$as_me: failed program was:" >&5 3978sed 's/^/| /' conftest.$ac_ext >&5 3979 3980 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3981 CXXFLAGS="-g" 3982 cat >conftest.$ac_ext <<_ACEOF 3983/* confdefs.h. */ 3984_ACEOF 3985cat confdefs.h >>conftest.$ac_ext 3986cat >>conftest.$ac_ext <<_ACEOF 3987/* end confdefs.h. */ 3988 3989int 3990main () 3991{ 3992 3993 ; 3994 return 0; 3995} 3996_ACEOF 3997rm -f conftest.$ac_objext 3998if { (ac_try="$ac_compile" 3999case "(($ac_try" in 4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4001 *) ac_try_echo=$ac_try;; 4002esac 4003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4004 (eval "$ac_compile") 2>conftest.er1 4005 ac_status=$? 4006 grep -v '^ *+' conftest.er1 >conftest.err 4007 rm -f conftest.er1 4008 cat conftest.err >&5 4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4010 (exit $ac_status); } && { 4011 test -z "$ac_cxx_werror_flag" || 4012 test ! -s conftest.err 4013 } && test -s conftest.$ac_objext; then 4014 ac_cv_prog_cxx_g=yes 4015else 4016 echo "$as_me: failed program was:" >&5 4017sed 's/^/| /' conftest.$ac_ext >&5 4018 4019 4020fi 4021 4022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4023fi 4024 4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4026fi 4027 4028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4029 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4030fi 4031{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 4032echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 4033if test "$ac_test_CXXFLAGS" = set; then 4034 CXXFLAGS=$ac_save_CXXFLAGS 4035elif test $ac_cv_prog_cxx_g = yes; then 4036 if test "$GXX" = yes; then 4037 CXXFLAGS="-g -O2" 4038 else 4039 CXXFLAGS="-g" 4040 fi 4041else 4042 if test "$GXX" = yes; then 4043 CXXFLAGS="-O2" 4044 else 4045 CXXFLAGS= 4046 fi 4047fi 4048ac_ext=c 4049ac_cpp='$CPP $CPPFLAGS' 4050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4052ac_compiler_gnu=$ac_cv_c_compiler_gnu 4053 4054depcc="$CXX" am_compiler_list= 4055 4056{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4057echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4058if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 4059 echo $ECHO_N "(cached) $ECHO_C" >&6 4060else 4061 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4062 # We make a subdir and do the tests there. Otherwise we can end up 4063 # making bogus files that we don't know about and never remove. For 4064 # instance it was reported that on HP-UX the gcc test will end up 4065 # making a dummy file named `D' -- because `-MD' means `put the output 4066 # in D'. 4067 mkdir conftest.dir 4068 # Copy depcomp to subdir because otherwise we won't find it if we're 4069 # using a relative directory. 4070 cp "$am_depcomp" conftest.dir 4071 cd conftest.dir 4072 # We will build objects and dependencies in a subdirectory because 4073 # it helps to detect inapplicable dependency modes. For instance 4074 # both Tru64's cc and ICC support -MD to output dependencies as a 4075 # side effect of compilation, but ICC will put the dependencies in 4076 # the current directory while Tru64 will put them in the object 4077 # directory. 4078 mkdir sub 4079 4080 am_cv_CXX_dependencies_compiler_type=none 4081 if test "$am_compiler_list" = ""; then 4082 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4083 fi 4084 for depmode in $am_compiler_list; do 4085 # Setup a source with many dependencies, because some compilers 4086 # like to wrap large dependency lists on column 80 (with \), and 4087 # we should not choose a depcomp mode which is confused by this. 4088 # 4089 # We need to recreate these files for each test, as the compiler may 4090 # overwrite some of them when testing with obscure command lines. 4091 # This happens at least with the AIX C compiler. 4092 : > sub/conftest.c 4093 for i in 1 2 3 4 5 6; do 4094 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4095 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4096 # Solaris 8's {/usr,}/bin/sh. 4097 touch sub/conftst$i.h 4098 done 4099 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4100 4101 case $depmode in 4102 nosideeffect) 4103 # after this tag, mechanisms are not by side-effect, so they'll 4104 # only be used when explicitly requested 4105 if test "x$enable_dependency_tracking" = xyes; then 4106 continue 4107 else 4108 break 4109 fi 4110 ;; 4111 none) break ;; 4112 esac 4113 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4114 # mode. It turns out that the SunPro C++ compiler does not properly 4115 # handle `-M -o', and we need to detect this. 4116 if depmode=$depmode \ 4117 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4118 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4119 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4120 >/dev/null 2>conftest.err && 4121 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4122 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4123 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4124 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4125 # icc doesn't choke on unknown options, it will just issue warnings 4126 # or remarks (even with -Werror). So we grep stderr for any message 4127 # that says an option was ignored or not supported. 4128 # When given -MP, icc 7.0 and 7.1 complain thusly: 4129 # icc: Command line warning: ignoring option '-M'; no argument required 4130 # The diagnosis changed in icc 8.0: 4131 # icc: Command line remark: option '-MP' not supported 4132 if (grep 'ignoring option' conftest.err || 4133 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4134 am_cv_CXX_dependencies_compiler_type=$depmode 4135 break 4136 fi 4137 fi 4138 done 4139 4140 cd .. 4141 rm -rf conftest.dir 4142else 4143 am_cv_CXX_dependencies_compiler_type=none 4144fi 4145 4146fi 4147{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 4148echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 4149CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4150 4151 if 4152 test "x$enable_dependency_tracking" != xno \ 4153 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4154 am__fastdepCXX_TRUE= 4155 am__fastdepCXX_FALSE='#' 4156else 4157 am__fastdepCXX_TRUE='#' 4158 am__fastdepCXX_FALSE= 4159fi 4160 4161 4162ac_ext=cpp 4163ac_cpp='$CXXCPP $CPPFLAGS' 4164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4167 4168 4169cat >>confdefs.h <<\_ACEOF 4170#define _GNU_SOURCE 1 4171_ACEOF 4172 4173 4174 4175ac_ext=cpp 4176ac_cpp='$CXXCPP $CPPFLAGS' 4177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4180{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4181echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 4182if test -z "$CXXCPP"; then 4183 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4184 echo $ECHO_N "(cached) $ECHO_C" >&6 4185else 4186 # Double quotes because CXXCPP needs to be expanded 4187 for CXXCPP in "$CXX -E" "/lib/cpp" 4188 do 4189 ac_preproc_ok=false 4190for ac_cxx_preproc_warn_flag in '' yes 4191do 4192 # Use a header file that comes with gcc, so configuring glibc 4193 # with a fresh cross-compiler works. 4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4195 # <limits.h> exists even on freestanding compilers. 4196 # On the NeXT, cc -E runs the code through the compiler's parser, 4197 # not just through cpp. "Syntax error" is here to catch this case. 4198 cat >conftest.$ac_ext <<_ACEOF 4199/* confdefs.h. */ 4200_ACEOF 4201cat confdefs.h >>conftest.$ac_ext 4202cat >>conftest.$ac_ext <<_ACEOF 4203/* end confdefs.h. */ 4204#ifdef __STDC__ 4205# include <limits.h> 4206#else 4207# include <assert.h> 4208#endif 4209 Syntax error 4210_ACEOF 4211if { (ac_try="$ac_cpp conftest.$ac_ext" 4212case "(($ac_try" in 4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4214 *) ac_try_echo=$ac_try;; 4215esac 4216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4218 ac_status=$? 4219 grep -v '^ *+' conftest.er1 >conftest.err 4220 rm -f conftest.er1 4221 cat conftest.err >&5 4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4223 (exit $ac_status); } >/dev/null && { 4224 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 4225 test ! -s conftest.err 4226 }; then 4227 : 4228else 4229 echo "$as_me: failed program was:" >&5 4230sed 's/^/| /' conftest.$ac_ext >&5 4231 4232 # Broken: fails on valid input. 4233continue 4234fi 4235 4236rm -f conftest.err conftest.$ac_ext 4237 4238 # OK, works on sane cases. Now check whether nonexistent headers 4239 # can be detected and how. 4240 cat >conftest.$ac_ext <<_ACEOF 4241/* confdefs.h. */ 4242_ACEOF 4243cat confdefs.h >>conftest.$ac_ext 4244cat >>conftest.$ac_ext <<_ACEOF 4245/* end confdefs.h. */ 4246#include <ac_nonexistent.h> 4247_ACEOF 4248if { (ac_try="$ac_cpp conftest.$ac_ext" 4249case "(($ac_try" in 4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4251 *) ac_try_echo=$ac_try;; 4252esac 4253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4255 ac_status=$? 4256 grep -v '^ *+' conftest.er1 >conftest.err 4257 rm -f conftest.er1 4258 cat conftest.err >&5 4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4260 (exit $ac_status); } >/dev/null && { 4261 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 4262 test ! -s conftest.err 4263 }; then 4264 # Broken: success on invalid input. 4265continue 4266else 4267 echo "$as_me: failed program was:" >&5 4268sed 's/^/| /' conftest.$ac_ext >&5 4269 4270 # Passes both tests. 4271ac_preproc_ok=: 4272break 4273fi 4274 4275rm -f conftest.err conftest.$ac_ext 4276 4277done 4278# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4279rm -f conftest.err conftest.$ac_ext 4280if $ac_preproc_ok; then 4281 break 4282fi 4283 4284 done 4285 ac_cv_prog_CXXCPP=$CXXCPP 4286 4287fi 4288 CXXCPP=$ac_cv_prog_CXXCPP 4289else 4290 ac_cv_prog_CXXCPP=$CXXCPP 4291fi 4292{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 4293echo "${ECHO_T}$CXXCPP" >&6; } 4294ac_preproc_ok=false 4295for ac_cxx_preproc_warn_flag in '' yes 4296do 4297 # Use a header file that comes with gcc, so configuring glibc 4298 # with a fresh cross-compiler works. 4299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4300 # <limits.h> exists even on freestanding compilers. 4301 # On the NeXT, cc -E runs the code through the compiler's parser, 4302 # not just through cpp. "Syntax error" is here to catch this case. 4303 cat >conftest.$ac_ext <<_ACEOF 4304/* confdefs.h. */ 4305_ACEOF 4306cat confdefs.h >>conftest.$ac_ext 4307cat >>conftest.$ac_ext <<_ACEOF 4308/* end confdefs.h. */ 4309#ifdef __STDC__ 4310# include <limits.h> 4311#else 4312# include <assert.h> 4313#endif 4314 Syntax error 4315_ACEOF 4316if { (ac_try="$ac_cpp conftest.$ac_ext" 4317case "(($ac_try" in 4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4319 *) ac_try_echo=$ac_try;; 4320esac 4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4323 ac_status=$? 4324 grep -v '^ *+' conftest.er1 >conftest.err 4325 rm -f conftest.er1 4326 cat conftest.err >&5 4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4328 (exit $ac_status); } >/dev/null && { 4329 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 4330 test ! -s conftest.err 4331 }; then 4332 : 4333else 4334 echo "$as_me: failed program was:" >&5 4335sed 's/^/| /' conftest.$ac_ext >&5 4336 4337 # Broken: fails on valid input. 4338continue 4339fi 4340 4341rm -f conftest.err conftest.$ac_ext 4342 4343 # OK, works on sane cases. Now check whether nonexistent headers 4344 # can be detected and how. 4345 cat >conftest.$ac_ext <<_ACEOF 4346/* confdefs.h. */ 4347_ACEOF 4348cat confdefs.h >>conftest.$ac_ext 4349cat >>conftest.$ac_ext <<_ACEOF 4350/* end confdefs.h. */ 4351#include <ac_nonexistent.h> 4352_ACEOF 4353if { (ac_try="$ac_cpp conftest.$ac_ext" 4354case "(($ac_try" in 4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4356 *) ac_try_echo=$ac_try;; 4357esac 4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4360 ac_status=$? 4361 grep -v '^ *+' conftest.er1 >conftest.err 4362 rm -f conftest.er1 4363 cat conftest.err >&5 4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4365 (exit $ac_status); } >/dev/null && { 4366 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 4367 test ! -s conftest.err 4368 }; then 4369 # Broken: success on invalid input. 4370continue 4371else 4372 echo "$as_me: failed program was:" >&5 4373sed 's/^/| /' conftest.$ac_ext >&5 4374 4375 # Passes both tests. 4376ac_preproc_ok=: 4377break 4378fi 4379 4380rm -f conftest.err conftest.$ac_ext 4381 4382done 4383# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4384rm -f conftest.err conftest.$ac_ext 4385if $ac_preproc_ok; then 4386 : 4387else 4388 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4389See \`config.log' for more details." >&5 4390echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4391See \`config.log' for more details." >&2;} 4392 { (exit 1); exit 1; }; } 4393fi 4394 4395ac_ext=cpp 4396ac_cpp='$CXXCPP $CPPFLAGS' 4397ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4398ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4399ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4400 4401 4402{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4403echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4404if test "${ac_cv_path_GREP+set}" = set; then 4405 echo $ECHO_N "(cached) $ECHO_C" >&6 4406else 4407 # Extract the first word of "grep ggrep" to use in msg output 4408if test -z "$GREP"; then 4409set dummy grep ggrep; ac_prog_name=$2 4410if test "${ac_cv_path_GREP+set}" = set; then 4411 echo $ECHO_N "(cached) $ECHO_C" >&6 4412else 4413 ac_path_GREP_found=false 4414# Loop through the user's path and test for each of PROGNAME-LIST 4415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4416for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4417do 4418 IFS=$as_save_IFS 4419 test -z "$as_dir" && as_dir=. 4420 for ac_prog in grep ggrep; do 4421 for ac_exec_ext in '' $ac_executable_extensions; do 4422 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4423 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4424 # Check for GNU ac_path_GREP and select it if it is found. 4425 # Check for GNU $ac_path_GREP 4426case `"$ac_path_GREP" --version 2>&1` in 4427*GNU*) 4428 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4429*) 4430 ac_count=0 4431 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4432 while : 4433 do 4434 cat "conftest.in" "conftest.in" >"conftest.tmp" 4435 mv "conftest.tmp" "conftest.in" 4436 cp "conftest.in" "conftest.nl" 4437 echo 'GREP' >> "conftest.nl" 4438 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4440 ac_count=`expr $ac_count + 1` 4441 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4442 # Best one so far, save it but keep looking for a better one 4443 ac_cv_path_GREP="$ac_path_GREP" 4444 ac_path_GREP_max=$ac_count 4445 fi 4446 # 10*(2^10) chars as input seems more than enough 4447 test $ac_count -gt 10 && break 4448 done 4449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4450esac 4451 4452 4453 $ac_path_GREP_found && break 3 4454 done 4455done 4456 4457done 4458IFS=$as_save_IFS 4459 4460 4461fi 4462 4463GREP="$ac_cv_path_GREP" 4464if test -z "$GREP"; then 4465 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4466echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4467 { (exit 1); exit 1; }; } 4468fi 4469 4470else 4471 ac_cv_path_GREP=$GREP 4472fi 4473 4474 4475fi 4476{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4477echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4478 GREP="$ac_cv_path_GREP" 4479 4480 4481{ echo "$as_me:$LINENO: checking for egrep" >&5 4482echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4483if test "${ac_cv_path_EGREP+set}" = set; then 4484 echo $ECHO_N "(cached) $ECHO_C" >&6 4485else 4486 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4487 then ac_cv_path_EGREP="$GREP -E" 4488 else 4489 # Extract the first word of "egrep" to use in msg output 4490if test -z "$EGREP"; then 4491set dummy egrep; ac_prog_name=$2 4492if test "${ac_cv_path_EGREP+set}" = set; then 4493 echo $ECHO_N "(cached) $ECHO_C" >&6 4494else 4495 ac_path_EGREP_found=false 4496# Loop through the user's path and test for each of PROGNAME-LIST 4497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4498for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4499do 4500 IFS=$as_save_IFS 4501 test -z "$as_dir" && as_dir=. 4502 for ac_prog in egrep; do 4503 for ac_exec_ext in '' $ac_executable_extensions; do 4504 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4505 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4506 # Check for GNU ac_path_EGREP and select it if it is found. 4507 # Check for GNU $ac_path_EGREP 4508case `"$ac_path_EGREP" --version 2>&1` in 4509*GNU*) 4510 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4511*) 4512 ac_count=0 4513 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4514 while : 4515 do 4516 cat "conftest.in" "conftest.in" >"conftest.tmp" 4517 mv "conftest.tmp" "conftest.in" 4518 cp "conftest.in" "conftest.nl" 4519 echo 'EGREP' >> "conftest.nl" 4520 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4522 ac_count=`expr $ac_count + 1` 4523 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4524 # Best one so far, save it but keep looking for a better one 4525 ac_cv_path_EGREP="$ac_path_EGREP" 4526 ac_path_EGREP_max=$ac_count 4527 fi 4528 # 10*(2^10) chars as input seems more than enough 4529 test $ac_count -gt 10 && break 4530 done 4531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4532esac 4533 4534 4535 $ac_path_EGREP_found && break 3 4536 done 4537done 4538 4539done 4540IFS=$as_save_IFS 4541 4542 4543fi 4544 4545EGREP="$ac_cv_path_EGREP" 4546if test -z "$EGREP"; then 4547 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4548echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4549 { (exit 1); exit 1; }; } 4550fi 4551 4552else 4553 ac_cv_path_EGREP=$EGREP 4554fi 4555 4556 4557 fi 4558fi 4559{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4560echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4561 EGREP="$ac_cv_path_EGREP" 4562 4563 4564 4565{ echo "$as_me:$LINENO: checking for AIX" >&5 4566echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } 4567cat >conftest.$ac_ext <<_ACEOF 4568/* confdefs.h. */ 4569_ACEOF 4570cat confdefs.h >>conftest.$ac_ext 4571cat >>conftest.$ac_ext <<_ACEOF 4572/* end confdefs.h. */ 4573#ifdef _AIX 4574 yes 4575#endif 4576 4577_ACEOF 4578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4579 $EGREP "yes" >/dev/null 2>&1; then 4580 { echo "$as_me:$LINENO: result: yes" >&5 4581echo "${ECHO_T}yes" >&6; } 4582cat >>confdefs.h <<\_ACEOF 4583#define _ALL_SOURCE 1 4584_ACEOF 4585 4586else 4587 { echo "$as_me:$LINENO: result: no" >&5 4588echo "${ECHO_T}no" >&6; } 4589fi 4590rm -f conftest* 4591 4592 4593{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4594echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4595if test "${ac_cv_header_stdc+set}" = set; then 4596 echo $ECHO_N "(cached) $ECHO_C" >&6 4597else 4598 cat >conftest.$ac_ext <<_ACEOF 4599/* confdefs.h. */ 4600_ACEOF 4601cat confdefs.h >>conftest.$ac_ext 4602cat >>conftest.$ac_ext <<_ACEOF 4603/* end confdefs.h. */ 4604#include <stdlib.h> 4605#include <stdarg.h> 4606#include <string.h> 4607#include <float.h> 4608 4609int 4610main () 4611{ 4612 4613 ; 4614 return 0; 4615} 4616_ACEOF 4617rm -f conftest.$ac_objext 4618if { (ac_try="$ac_compile" 4619case "(($ac_try" in 4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4621 *) ac_try_echo=$ac_try;; 4622esac 4623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4624 (eval "$ac_compile") 2>conftest.er1 4625 ac_status=$? 4626 grep -v '^ *+' conftest.er1 >conftest.err 4627 rm -f conftest.er1 4628 cat conftest.err >&5 4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4630 (exit $ac_status); } && { 4631 test -z "$ac_cxx_werror_flag" || 4632 test ! -s conftest.err 4633 } && test -s conftest.$ac_objext; then 4634 ac_cv_header_stdc=yes 4635else 4636 echo "$as_me: failed program was:" >&5 4637sed 's/^/| /' conftest.$ac_ext >&5 4638 4639 ac_cv_header_stdc=no 4640fi 4641 4642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4643 4644if test $ac_cv_header_stdc = yes; then 4645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4646 cat >conftest.$ac_ext <<_ACEOF 4647/* confdefs.h. */ 4648_ACEOF 4649cat confdefs.h >>conftest.$ac_ext 4650cat >>conftest.$ac_ext <<_ACEOF 4651/* end confdefs.h. */ 4652#include <string.h> 4653 4654_ACEOF 4655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4656 $EGREP "memchr" >/dev/null 2>&1; then 4657 : 4658else 4659 ac_cv_header_stdc=no 4660fi 4661rm -f conftest* 4662 4663fi 4664 4665if test $ac_cv_header_stdc = yes; then 4666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4667 cat >conftest.$ac_ext <<_ACEOF 4668/* confdefs.h. */ 4669_ACEOF 4670cat confdefs.h >>conftest.$ac_ext 4671cat >>conftest.$ac_ext <<_ACEOF 4672/* end confdefs.h. */ 4673#include <stdlib.h> 4674 4675_ACEOF 4676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4677 $EGREP "free" >/dev/null 2>&1; then 4678 : 4679else 4680 ac_cv_header_stdc=no 4681fi 4682rm -f conftest* 4683 4684fi 4685 4686if test $ac_cv_header_stdc = yes; then 4687 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4688 if test "$cross_compiling" = yes; then 4689 : 4690else 4691 cat >conftest.$ac_ext <<_ACEOF 4692/* confdefs.h. */ 4693_ACEOF 4694cat confdefs.h >>conftest.$ac_ext 4695cat >>conftest.$ac_ext <<_ACEOF 4696/* end confdefs.h. */ 4697#include <ctype.h> 4698#include <stdlib.h> 4699#if ((' ' & 0x0FF) == 0x020) 4700# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4701# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4702#else 4703# define ISLOWER(c) \ 4704 (('a' <= (c) && (c) <= 'i') \ 4705 || ('j' <= (c) && (c) <= 'r') \ 4706 || ('s' <= (c) && (c) <= 'z')) 4707# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4708#endif 4709 4710#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4711int 4712main () 4713{ 4714 int i; 4715 for (i = 0; i < 256; i++) 4716 if (XOR (islower (i), ISLOWER (i)) 4717 || toupper (i) != TOUPPER (i)) 4718 return 2; 4719 return 0; 4720} 4721_ACEOF 4722rm -f conftest$ac_exeext 4723if { (ac_try="$ac_link" 4724case "(($ac_try" in 4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4726 *) ac_try_echo=$ac_try;; 4727esac 4728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4729 (eval "$ac_link") 2>&5 4730 ac_status=$? 4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4733 { (case "(($ac_try" in 4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4735 *) ac_try_echo=$ac_try;; 4736esac 4737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4738 (eval "$ac_try") 2>&5 4739 ac_status=$? 4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4741 (exit $ac_status); }; }; then 4742 : 4743else 4744 echo "$as_me: program exited with status $ac_status" >&5 4745echo "$as_me: failed program was:" >&5 4746sed 's/^/| /' conftest.$ac_ext >&5 4747 4748( exit $ac_status ) 4749ac_cv_header_stdc=no 4750fi 4751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4752fi 4753 4754 4755fi 4756fi 4757{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4758echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4759if test $ac_cv_header_stdc = yes; then 4760 4761cat >>confdefs.h <<\_ACEOF 4762#define STDC_HEADERS 1 4763_ACEOF 4764 4765fi 4766 4767# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4778 inttypes.h stdint.h unistd.h 4779do 4780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4781{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4784 echo $ECHO_N "(cached) $ECHO_C" >&6 4785else 4786 cat >conftest.$ac_ext <<_ACEOF 4787/* confdefs.h. */ 4788_ACEOF 4789cat confdefs.h >>conftest.$ac_ext 4790cat >>conftest.$ac_ext <<_ACEOF 4791/* end confdefs.h. */ 4792$ac_includes_default 4793 4794#include <$ac_header> 4795_ACEOF 4796rm -f conftest.$ac_objext 4797if { (ac_try="$ac_compile" 4798case "(($ac_try" in 4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4800 *) ac_try_echo=$ac_try;; 4801esac 4802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4803 (eval "$ac_compile") 2>conftest.er1 4804 ac_status=$? 4805 grep -v '^ *+' conftest.er1 >conftest.err 4806 rm -f conftest.er1 4807 cat conftest.err >&5 4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4809 (exit $ac_status); } && { 4810 test -z "$ac_cxx_werror_flag" || 4811 test ! -s conftest.err 4812 } && test -s conftest.$ac_objext; then 4813 eval "$as_ac_Header=yes" 4814else 4815 echo "$as_me: failed program was:" >&5 4816sed 's/^/| /' conftest.$ac_ext >&5 4817 4818 eval "$as_ac_Header=no" 4819fi 4820 4821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4822fi 4823ac_res=`eval echo '${'$as_ac_Header'}'` 4824 { echo "$as_me:$LINENO: result: $ac_res" >&5 4825echo "${ECHO_T}$ac_res" >&6; } 4826if test `eval echo '${'$as_ac_Header'}'` = yes; then 4827 cat >>confdefs.h <<_ACEOF 4828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4829_ACEOF 4830 4831fi 4832 4833done 4834 4835 4836if test "${ac_cv_header_minix_config_h+set}" = set; then 4837 { echo "$as_me:$LINENO: checking for minix/config.h" >&5 4838echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } 4839if test "${ac_cv_header_minix_config_h+set}" = set; then 4840 echo $ECHO_N "(cached) $ECHO_C" >&6 4841fi 4842{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 4843echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } 4844else 4845 # Is the header compilable? 4846{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5 4847echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; } 4848cat >conftest.$ac_ext <<_ACEOF 4849/* confdefs.h. */ 4850_ACEOF 4851cat confdefs.h >>conftest.$ac_ext 4852cat >>conftest.$ac_ext <<_ACEOF 4853/* end confdefs.h. */ 4854$ac_includes_default 4855#include <minix/config.h> 4856_ACEOF 4857rm -f conftest.$ac_objext 4858if { (ac_try="$ac_compile" 4859case "(($ac_try" in 4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4861 *) ac_try_echo=$ac_try;; 4862esac 4863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4864 (eval "$ac_compile") 2>conftest.er1 4865 ac_status=$? 4866 grep -v '^ *+' conftest.er1 >conftest.err 4867 rm -f conftest.er1 4868 cat conftest.err >&5 4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4870 (exit $ac_status); } && { 4871 test -z "$ac_cxx_werror_flag" || 4872 test ! -s conftest.err 4873 } && test -s conftest.$ac_objext; then 4874 ac_header_compiler=yes 4875else 4876 echo "$as_me: failed program was:" >&5 4877sed 's/^/| /' conftest.$ac_ext >&5 4878 4879 ac_header_compiler=no 4880fi 4881 4882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4883{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4884echo "${ECHO_T}$ac_header_compiler" >&6; } 4885 4886# Is the header present? 4887{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5 4888echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; } 4889cat >conftest.$ac_ext <<_ACEOF 4890/* confdefs.h. */ 4891_ACEOF 4892cat confdefs.h >>conftest.$ac_ext 4893cat >>conftest.$ac_ext <<_ACEOF 4894/* end confdefs.h. */ 4895#include <minix/config.h> 4896_ACEOF 4897if { (ac_try="$ac_cpp conftest.$ac_ext" 4898case "(($ac_try" in 4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4900 *) ac_try_echo=$ac_try;; 4901esac 4902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4904 ac_status=$? 4905 grep -v '^ *+' conftest.er1 >conftest.err 4906 rm -f conftest.er1 4907 cat conftest.err >&5 4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4909 (exit $ac_status); } >/dev/null && { 4910 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 4911 test ! -s conftest.err 4912 }; then 4913 ac_header_preproc=yes 4914else 4915 echo "$as_me: failed program was:" >&5 4916sed 's/^/| /' conftest.$ac_ext >&5 4917 4918 ac_header_preproc=no 4919fi 4920 4921rm -f conftest.err conftest.$ac_ext 4922{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4923echo "${ECHO_T}$ac_header_preproc" >&6; } 4924 4925# So? What about this header? 4926case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 4927 yes:no: ) 4928 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 4929echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4930 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 4931echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 4932 ac_header_preproc=yes 4933 ;; 4934 no:yes:* ) 4935 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 4936echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 4937 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 4938echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 4939 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 4940echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 4941 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 4942echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 4943 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 4944echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 4945 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 4946echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 4947 ( cat <<\_ASBOX 4948## ---------------------------------------- ## 4949## Report this to protobuf@googlegroups.com ## 4950## ---------------------------------------- ## 4951_ASBOX 4952 ) | sed "s/^/$as_me: WARNING: /" >&2 4953 ;; 4954esac 4955{ echo "$as_me:$LINENO: checking for minix/config.h" >&5 4956echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } 4957if test "${ac_cv_header_minix_config_h+set}" = set; then 4958 echo $ECHO_N "(cached) $ECHO_C" >&6 4959else 4960 ac_cv_header_minix_config_h=$ac_header_preproc 4961fi 4962{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 4963echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } 4964 4965fi 4966if test $ac_cv_header_minix_config_h = yes; then 4967 MINIX=yes 4968else 4969 MINIX= 4970fi 4971 4972 4973if test "$MINIX" = yes; then 4974 4975cat >>confdefs.h <<\_ACEOF 4976#define _POSIX_SOURCE 1 4977_ACEOF 4978 4979 4980cat >>confdefs.h <<\_ACEOF 4981#define _POSIX_1_SOURCE 2 4982_ACEOF 4983 4984 4985cat >>confdefs.h <<\_ACEOF 4986#define _MINIX 1 4987_ACEOF 4988 4989fi 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 5004echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; } 5005if test "${ac_cv_safe_to_define___extensions__+set}" = set; then 5006 echo $ECHO_N "(cached) $ECHO_C" >&6 5007else 5008 cat >conftest.$ac_ext <<_ACEOF 5009/* confdefs.h. */ 5010_ACEOF 5011cat confdefs.h >>conftest.$ac_ext 5012cat >>conftest.$ac_ext <<_ACEOF 5013/* end confdefs.h. */ 5014 5015# define __EXTENSIONS__ 1 5016 $ac_includes_default 5017int 5018main () 5019{ 5020 5021 ; 5022 return 0; 5023} 5024_ACEOF 5025rm -f conftest.$ac_objext 5026if { (ac_try="$ac_compile" 5027case "(($ac_try" in 5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5029 *) ac_try_echo=$ac_try;; 5030esac 5031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5032 (eval "$ac_compile") 2>conftest.er1 5033 ac_status=$? 5034 grep -v '^ *+' conftest.er1 >conftest.err 5035 rm -f conftest.er1 5036 cat conftest.err >&5 5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5038 (exit $ac_status); } && { 5039 test -z "$ac_cxx_werror_flag" || 5040 test ! -s conftest.err 5041 } && test -s conftest.$ac_objext; then 5042 ac_cv_safe_to_define___extensions__=yes 5043else 5044 echo "$as_me: failed program was:" >&5 5045sed 's/^/| /' conftest.$ac_ext >&5 5046 5047 ac_cv_safe_to_define___extensions__=no 5048fi 5049 5050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5051fi 5052{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 5053echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; } 5054 test $ac_cv_safe_to_define___extensions__ = yes && 5055 cat >>confdefs.h <<\_ACEOF 5056#define __EXTENSIONS__ 1 5057_ACEOF 5058 5059 cat >>confdefs.h <<\_ACEOF 5060#define _POSIX_PTHREAD_SEMANTICS 1 5061_ACEOF 5062 5063 cat >>confdefs.h <<\_ACEOF 5064#define _TANDEM_SOURCE 1 5065_ACEOF 5066 5067 5068 5069 5070 if test "$GCC" = yes; then 5071 GCC_TRUE= 5072 GCC_FALSE='#' 5073else 5074 GCC_TRUE='#' 5075 GCC_FALSE= 5076fi 5077 # let the Makefile know if we're gcc 5078 5079# test_util.cc takes forever to compile with GCC and optimization turned on. 5080{ echo "$as_me:$LINENO: checking C++ compiler flags..." >&5 5081echo $ECHO_N "checking C++ compiler flags...... $ECHO_C" >&6; } 5082if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then 5083 5084 if test "$GCC" = "yes"; then 5085 5086 PROTOBUF_OPT_FLAG="-O2" 5087 CXXFLAGS="${CXXFLAGS} -g" 5088 5089fi 5090 5091 5092 # Protocol Buffers contains several checks that are intended to be used only 5093 # for debugging and which might hurt performance. Most users are probably 5094 # end users who don't want these checks, so add -DNDEBUG by default. 5095 CXXFLAGS="$CXXFLAGS -DNDEBUG" 5096 5097 { echo "$as_me:$LINENO: result: use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&5 5098echo "${ECHO_T}use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&6; } 5099 5100else 5101 5102 { echo "$as_me:$LINENO: result: use user-supplied: $CXXFLAGS" >&5 5103echo "${ECHO_T}use user-supplied: $CXXFLAGS" >&6; } 5104 5105fi 5106 5107 5108 5109 5110 5111 5112 ac_ext=cpp 5113ac_cpp='$CXXCPP $CPPFLAGS' 5114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5117 5118 { echo "$as_me:$LINENO: checking whether __SUNPRO_CC is declared" >&5 5119echo $ECHO_N "checking whether __SUNPRO_CC is declared... $ECHO_C" >&6; } 5120if test "${ac_cv_have_decl___SUNPRO_CC+set}" = set; then 5121 echo $ECHO_N "(cached) $ECHO_C" >&6 5122else 5123 cat >conftest.$ac_ext <<_ACEOF 5124/* confdefs.h. */ 5125_ACEOF 5126cat confdefs.h >>conftest.$ac_ext 5127cat >>conftest.$ac_ext <<_ACEOF 5128/* end confdefs.h. */ 5129$ac_includes_default 5130int 5131main () 5132{ 5133#ifndef __SUNPRO_CC 5134 (void) __SUNPRO_CC; 5135#endif 5136 5137 ; 5138 return 0; 5139} 5140_ACEOF 5141rm -f conftest.$ac_objext 5142if { (ac_try="$ac_compile" 5143case "(($ac_try" in 5144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5145 *) ac_try_echo=$ac_try;; 5146esac 5147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5148 (eval "$ac_compile") 2>conftest.er1 5149 ac_status=$? 5150 grep -v '^ *+' conftest.er1 >conftest.err 5151 rm -f conftest.er1 5152 cat conftest.err >&5 5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5154 (exit $ac_status); } && { 5155 test -z "$ac_cxx_werror_flag" || 5156 test ! -s conftest.err 5157 } && test -s conftest.$ac_objext; then 5158 ac_cv_have_decl___SUNPRO_CC=yes 5159else 5160 echo "$as_me: failed program was:" >&5 5161sed 's/^/| /' conftest.$ac_ext >&5 5162 5163 ac_cv_have_decl___SUNPRO_CC=no 5164fi 5165 5166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5167fi 5168{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_CC" >&5 5169echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_CC" >&6; } 5170if test $ac_cv_have_decl___SUNPRO_CC = yes; then 5171 SUNCC="yes" 5172else 5173 SUNCC="no" 5174fi 5175 5176 ac_ext=cpp 5177ac_cpp='$CXXCPP $CPPFLAGS' 5178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5181 5182 5183 5184 # Check whether --enable-64bit-solaris was given. 5185if test "${enable_64bit_solaris+set}" = set; then 5186 enableval=$enable_64bit_solaris; ac_enable_64bit="$enableval" 5187else 5188 ac_enable_64bit="yes" 5189fi 5190 5191 5192 if test "$SUNCC" = "yes" -a "x${ac_cv_env_CXXFLAGS_set}" = "x"; then 5193 5194 CXXFLAGS="-g0 -xO3 -xlibmil -xdepend -xbuiltin -mt -compat=5 -library=stlport4 -template=no%extdef ${CXXFLAGS}" 5195 5196fi 5197 5198 5199 case $host_os in 5200 *solaris*) 5201 for ac_prog in isainfo 5202do 5203 # Extract the first word of "$ac_prog", so it can be a program name with args. 5204set dummy $ac_prog; ac_word=$2 5205{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5207if test "${ac_cv_prog_ISAINFO+set}" = set; then 5208 echo $ECHO_N "(cached) $ECHO_C" >&6 5209else 5210 if test -n "$ISAINFO"; then 5211 ac_cv_prog_ISAINFO="$ISAINFO" # Let the user override the test. 5212else 5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5214for as_dir in $PATH 5215do 5216 IFS=$as_save_IFS 5217 test -z "$as_dir" && as_dir=. 5218 for ac_exec_ext in '' $ac_executable_extensions; do 5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5220 ac_cv_prog_ISAINFO="$ac_prog" 5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5222 break 2 5223 fi 5224done 5225done 5226IFS=$as_save_IFS 5227 5228fi 5229fi 5230ISAINFO=$ac_cv_prog_ISAINFO 5231if test -n "$ISAINFO"; then 5232 { echo "$as_me:$LINENO: result: $ISAINFO" >&5 5233echo "${ECHO_T}$ISAINFO" >&6; } 5234else 5235 { echo "$as_me:$LINENO: result: no" >&5 5236echo "${ECHO_T}no" >&6; } 5237fi 5238 5239 5240 test -n "$ISAINFO" && break 5241done 5242test -n "$ISAINFO" || ISAINFO="no" 5243 5244 if test "x$ISAINFO" != "xno"; then 5245 isainfo_b=`${ISAINFO} -b` 5246else 5247 isainfo_b="x" 5248fi 5249 5250 5251 if test "$isainfo_b" != "x"; then 5252 5253 5254 isainfo_k=`${ISAINFO} -k` 5255 5256 if test "x$ac_enable_64bit" = "xyes"; then 5257 5258 5259 if test "x${ac_cv_env_LDFLAGS_set}" = "x"; then 5260 5261 LDFLAGS="-L/usr/local/lib/${isainfo_k} ${LDFLAGS}" 5262 5263fi 5264 5265 5266 if test "x$libdir" = "x\${exec_prefix}/lib"; then 5267 5268 libdir="${libdir}/${isainfo_k}" 5269 5270fi 5271 5272 5273 if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then 5274 5275 CXXFLAGS="${CXXFLAGS} -m64" 5276 ac_cv_env_CXXFLAGS_set=set 5277 ac_cv_env_CXXFLAGS_value='-m64' 5278 5279fi 5280 5281 5282 if test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes" ; then 5283 5284 CXXFLAGS="-xmemalign=8s ${CXXFLAGS}" 5285 5286fi 5287 5288 5289fi 5290 5291 5292fi 5293 5294 ;; 5295 esac 5296 5297 5298 5299# Have to do libtool after SUNCC, other wise it "helpfully" adds Crun Cstd 5300# to the link 5301case `pwd` in 5302 *\ * | *\ *) 5303 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5304echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5305esac 5306 5307 5308 5309macro_version='2.2.4' 5310macro_revision='1.2976' 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324ltmain="$ac_aux_dir/ltmain.sh" 5325 5326{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 5327echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 5328if test "${ac_cv_path_SED+set}" = set; then 5329 echo $ECHO_N "(cached) $ECHO_C" >&6 5330else 5331 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5332 for ac_i in 1 2 3 4 5 6 7; do 5333 ac_script="$ac_script$as_nl$ac_script" 5334 done 5335 echo "$ac_script" | sed 99q >conftest.sed 5336 $as_unset ac_script || ac_script= 5337 # Extract the first word of "sed gsed" to use in msg output 5338if test -z "$SED"; then 5339set dummy sed gsed; ac_prog_name=$2 5340if test "${ac_cv_path_SED+set}" = set; then 5341 echo $ECHO_N "(cached) $ECHO_C" >&6 5342else 5343 ac_path_SED_found=false 5344# Loop through the user's path and test for each of PROGNAME-LIST 5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5346for as_dir in $PATH 5347do 5348 IFS=$as_save_IFS 5349 test -z "$as_dir" && as_dir=. 5350 for ac_prog in sed gsed; do 5351 for ac_exec_ext in '' $ac_executable_extensions; do 5352 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5353 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5354 # Check for GNU ac_path_SED and select it if it is found. 5355 # Check for GNU $ac_path_SED 5356case `"$ac_path_SED" --version 2>&1` in 5357*GNU*) 5358 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5359*) 5360 ac_count=0 5361 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5362 while : 5363 do 5364 cat "conftest.in" "conftest.in" >"conftest.tmp" 5365 mv "conftest.tmp" "conftest.in" 5366 cp "conftest.in" "conftest.nl" 5367 echo '' >> "conftest.nl" 5368 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5370 ac_count=`expr $ac_count + 1` 5371 if test $ac_count -gt ${ac_path_SED_max-0}; then 5372 # Best one so far, save it but keep looking for a better one 5373 ac_cv_path_SED="$ac_path_SED" 5374 ac_path_SED_max=$ac_count 5375 fi 5376 # 10*(2^10) chars as input seems more than enough 5377 test $ac_count -gt 10 && break 5378 done 5379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5380esac 5381 5382 5383 $ac_path_SED_found && break 3 5384 done 5385done 5386 5387done 5388IFS=$as_save_IFS 5389 5390 5391fi 5392 5393SED="$ac_cv_path_SED" 5394if test -z "$SED"; then 5395 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5 5396echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;} 5397 { (exit 1); exit 1; }; } 5398fi 5399 5400else 5401 ac_cv_path_SED=$SED 5402fi 5403 5404fi 5405{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5 5406echo "${ECHO_T}$ac_cv_path_SED" >&6; } 5407 SED="$ac_cv_path_SED" 5408 rm -f conftest.sed 5409 5410test -z "$SED" && SED=sed 5411Xsed="$SED -e 1s/^X//" 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423{ echo "$as_me:$LINENO: checking for fgrep" >&5 5424echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; } 5425if test "${ac_cv_path_FGREP+set}" = set; then 5426 echo $ECHO_N "(cached) $ECHO_C" >&6 5427else 5428 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5429 then ac_cv_path_FGREP="$GREP -F" 5430 else 5431 # Extract the first word of "fgrep" to use in msg output 5432if test -z "$FGREP"; then 5433set dummy fgrep; ac_prog_name=$2 5434if test "${ac_cv_path_FGREP+set}" = set; then 5435 echo $ECHO_N "(cached) $ECHO_C" >&6 5436else 5437 ac_path_FGREP_found=false 5438# Loop through the user's path and test for each of PROGNAME-LIST 5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5440for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5441do 5442 IFS=$as_save_IFS 5443 test -z "$as_dir" && as_dir=. 5444 for ac_prog in fgrep; do 5445 for ac_exec_ext in '' $ac_executable_extensions; do 5446 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5447 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5448 # Check for GNU ac_path_FGREP and select it if it is found. 5449 # Check for GNU $ac_path_FGREP 5450case `"$ac_path_FGREP" --version 2>&1` in 5451*GNU*) 5452 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5453*) 5454 ac_count=0 5455 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 5456 while : 5457 do 5458 cat "conftest.in" "conftest.in" >"conftest.tmp" 5459 mv "conftest.tmp" "conftest.in" 5460 cp "conftest.in" "conftest.nl" 5461 echo 'FGREP' >> "conftest.nl" 5462 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5464 ac_count=`expr $ac_count + 1` 5465 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5466 # Best one so far, save it but keep looking for a better one 5467 ac_cv_path_FGREP="$ac_path_FGREP" 5468 ac_path_FGREP_max=$ac_count 5469 fi 5470 # 10*(2^10) chars as input seems more than enough 5471 test $ac_count -gt 10 && break 5472 done 5473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5474esac 5475 5476 5477 $ac_path_FGREP_found && break 3 5478 done 5479done 5480 5481done 5482IFS=$as_save_IFS 5483 5484 5485fi 5486 5487FGREP="$ac_cv_path_FGREP" 5488if test -z "$FGREP"; then 5489 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 5490echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 5491 { (exit 1); exit 1; }; } 5492fi 5493 5494else 5495 ac_cv_path_FGREP=$FGREP 5496fi 5497 5498 5499 fi 5500fi 5501{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5 5502echo "${ECHO_T}$ac_cv_path_FGREP" >&6; } 5503 FGREP="$ac_cv_path_FGREP" 5504 5505 5506test -z "$GREP" && GREP=grep 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526# Check whether --with-gnu-ld was given. 5527if test "${with_gnu_ld+set}" = set; then 5528 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5529else 5530 with_gnu_ld=no 5531fi 5532 5533ac_prog=ld 5534if test "$GCC" = yes; then 5535 # Check if gcc -print-prog-name=ld gives a path. 5536 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 5537echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 5538 case $host in 5539 *-*-mingw*) 5540 # gcc leaves a trailing carriage return which upsets mingw 5541 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5542 *) 5543 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5544 esac 5545 case $ac_prog in 5546 # Accept absolute paths. 5547 [\\/]* | ?:[\\/]*) 5548 re_direlt='/[^/][^/]*/\.\./' 5549 # Canonicalize the pathname of ld 5550 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5551 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5552 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5553 done 5554 test -z "$LD" && LD="$ac_prog" 5555 ;; 5556 "") 5557 # If it fails, then pretend we aren't using GCC. 5558 ac_prog=ld 5559 ;; 5560 *) 5561 # If it is relative, then search for the first ld in PATH. 5562 with_gnu_ld=unknown 5563 ;; 5564 esac 5565elif test "$with_gnu_ld" = yes; then 5566 { echo "$as_me:$LINENO: checking for GNU ld" >&5 5567echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 5568else 5569 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 5570echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 5571fi 5572if test "${lt_cv_path_LD+set}" = set; then 5573 echo $ECHO_N "(cached) $ECHO_C" >&6 5574else 5575 if test -z "$LD"; then 5576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5577 for ac_dir in $PATH; do 5578 IFS="$lt_save_ifs" 5579 test -z "$ac_dir" && ac_dir=. 5580 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5581 lt_cv_path_LD="$ac_dir/$ac_prog" 5582 # Check to see if the program is GNU ld. I'd rather use --version, 5583 # but apparently some variants of GNU ld only accept -v. 5584 # Break only if it was the GNU/non-GNU ld that we prefer. 5585 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5586 *GNU* | *'with BFD'*) 5587 test "$with_gnu_ld" != no && break 5588 ;; 5589 *) 5590 test "$with_gnu_ld" != yes && break 5591 ;; 5592 esac 5593 fi 5594 done 5595 IFS="$lt_save_ifs" 5596else 5597 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5598fi 5599fi 5600 5601LD="$lt_cv_path_LD" 5602if test -n "$LD"; then 5603 { echo "$as_me:$LINENO: result: $LD" >&5 5604echo "${ECHO_T}$LD" >&6; } 5605else 5606 { echo "$as_me:$LINENO: result: no" >&5 5607echo "${ECHO_T}no" >&6; } 5608fi 5609test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 5610echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 5611 { (exit 1); exit 1; }; } 5612{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 5613echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 5614if test "${lt_cv_prog_gnu_ld+set}" = set; then 5615 echo $ECHO_N "(cached) $ECHO_C" >&6 5616else 5617 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5618case `$LD -v 2>&1 </dev/null` in 5619*GNU* | *'with BFD'*) 5620 lt_cv_prog_gnu_ld=yes 5621 ;; 5622*) 5623 lt_cv_prog_gnu_ld=no 5624 ;; 5625esac 5626fi 5627{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 5628echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 5629with_gnu_ld=$lt_cv_prog_gnu_ld 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 5640echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; } 5641if test "${lt_cv_path_NM+set}" = set; then 5642 echo $ECHO_N "(cached) $ECHO_C" >&6 5643else 5644 if test -n "$NM"; then 5645 # Let the user override the test. 5646 lt_cv_path_NM="$NM" 5647else 5648 lt_nm_to_check="${ac_tool_prefix}nm" 5649 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5650 lt_nm_to_check="$lt_nm_to_check nm" 5651 fi 5652 for lt_tmp_nm in $lt_nm_to_check; do 5653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5654 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5655 IFS="$lt_save_ifs" 5656 test -z "$ac_dir" && ac_dir=. 5657 tmp_nm="$ac_dir/$lt_tmp_nm" 5658 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5659 # Check to see if the nm accepts a BSD-compat flag. 5660 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5661 # nm: unknown option "B" ignored 5662 # Tru64's nm complains that /dev/null is an invalid object file 5663 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5664 */dev/null* | *'Invalid file or object type'*) 5665 lt_cv_path_NM="$tmp_nm -B" 5666 break 5667 ;; 5668 *) 5669 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5670 */dev/null*) 5671 lt_cv_path_NM="$tmp_nm -p" 5672 break 5673 ;; 5674 *) 5675 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5676 continue # so that we can try to find one that supports BSD flags 5677 ;; 5678 esac 5679 ;; 5680 esac 5681 fi 5682 done 5683 IFS="$lt_save_ifs" 5684 done 5685 : ${lt_cv_path_NM=no} 5686fi 5687fi 5688{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 5689echo "${ECHO_T}$lt_cv_path_NM" >&6; } 5690if test "$lt_cv_path_NM" != "no"; then 5691 NM="$lt_cv_path_NM" 5692else 5693 # Didn't find any BSD compatible name lister, look for dumpbin. 5694 if test -n "$ac_tool_prefix"; then 5695 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5696 do 5697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5698set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5699{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5701if test "${ac_cv_prog_DUMPBIN+set}" = set; then 5702 echo $ECHO_N "(cached) $ECHO_C" >&6 5703else 5704 if test -n "$DUMPBIN"; then 5705 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5706else 5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5708for as_dir in $PATH 5709do 5710 IFS=$as_save_IFS 5711 test -z "$as_dir" && as_dir=. 5712 for ac_exec_ext in '' $ac_executable_extensions; do 5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5714 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5716 break 2 5717 fi 5718done 5719done 5720IFS=$as_save_IFS 5721 5722fi 5723fi 5724DUMPBIN=$ac_cv_prog_DUMPBIN 5725if test -n "$DUMPBIN"; then 5726 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5 5727echo "${ECHO_T}$DUMPBIN" >&6; } 5728else 5729 { echo "$as_me:$LINENO: result: no" >&5 5730echo "${ECHO_T}no" >&6; } 5731fi 5732 5733 5734 test -n "$DUMPBIN" && break 5735 done 5736fi 5737if test -z "$DUMPBIN"; then 5738 ac_ct_DUMPBIN=$DUMPBIN 5739 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 5740do 5741 # Extract the first word of "$ac_prog", so it can be a program name with args. 5742set dummy $ac_prog; ac_word=$2 5743{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5745if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 5746 echo $ECHO_N "(cached) $ECHO_C" >&6 5747else 5748 if test -n "$ac_ct_DUMPBIN"; then 5749 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5750else 5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5752for as_dir in $PATH 5753do 5754 IFS=$as_save_IFS 5755 test -z "$as_dir" && as_dir=. 5756 for ac_exec_ext in '' $ac_executable_extensions; do 5757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5758 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5760 break 2 5761 fi 5762done 5763done 5764IFS=$as_save_IFS 5765 5766fi 5767fi 5768ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5769if test -n "$ac_ct_DUMPBIN"; then 5770 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 5771echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; } 5772else 5773 { echo "$as_me:$LINENO: result: no" >&5 5774echo "${ECHO_T}no" >&6; } 5775fi 5776 5777 5778 test -n "$ac_ct_DUMPBIN" && break 5779done 5780 5781 if test "x$ac_ct_DUMPBIN" = x; then 5782 DUMPBIN=":" 5783 else 5784 case $cross_compiling:$ac_tool_warned in 5785yes:) 5786{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5787whose name does not start with the host triplet. If you think this 5788configuration is useful to you, please write to autoconf@gnu.org." >&5 5789echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5790whose name does not start with the host triplet. If you think this 5791configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5792ac_tool_warned=yes ;; 5793esac 5794 DUMPBIN=$ac_ct_DUMPBIN 5795 fi 5796fi 5797 5798 5799 if test "$DUMPBIN" != ":"; then 5800 NM="$DUMPBIN" 5801 fi 5802fi 5803test -z "$NM" && NM=nm 5804 5805 5806 5807 5808 5809 5810{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 5811echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; } 5812if test "${lt_cv_nm_interface+set}" = set; then 5813 echo $ECHO_N "(cached) $ECHO_C" >&6 5814else 5815 lt_cv_nm_interface="BSD nm" 5816 echo "int some_variable = 0;" > conftest.$ac_ext 5817 (eval echo "\"\$as_me:5817: $ac_compile\"" >&5) 5818 (eval "$ac_compile" 2>conftest.err) 5819 cat conftest.err >&5 5820 (eval echo "\"\$as_me:5820: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5821 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5822 cat conftest.err >&5 5823 (eval echo "\"\$as_me:5823: output\"" >&5) 5824 cat conftest.out >&5 5825 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5826 lt_cv_nm_interface="MS dumpbin" 5827 fi 5828 rm -f conftest* 5829fi 5830{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 5831echo "${ECHO_T}$lt_cv_nm_interface" >&6; } 5832 5833{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 5834echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 5835LN_S=$as_ln_s 5836if test "$LN_S" = "ln -s"; then 5837 { echo "$as_me:$LINENO: result: yes" >&5 5838echo "${ECHO_T}yes" >&6; } 5839else 5840 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 5841echo "${ECHO_T}no, using $LN_S" >&6; } 5842fi 5843 5844# find the maximum length of command line arguments 5845{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5846echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 5847if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5848 echo $ECHO_N "(cached) $ECHO_C" >&6 5849else 5850 i=0 5851 teststring="ABCD" 5852 5853 case $build_os in 5854 msdosdjgpp*) 5855 # On DJGPP, this test can blow up pretty badly due to problems in libc 5856 # (any single argument exceeding 2000 bytes causes a buffer overrun 5857 # during glob expansion). Even if it were fixed, the result of this 5858 # check would be larger than it should be. 5859 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5860 ;; 5861 5862 gnu*) 5863 # Under GNU Hurd, this test is not required because there is 5864 # no limit to the length of command line arguments. 5865 # Libtool will interpret -1 as no limit whatsoever 5866 lt_cv_sys_max_cmd_len=-1; 5867 ;; 5868 5869 cygwin* | mingw*) 5870 # On Win9x/ME, this test blows up -- it succeeds, but takes 5871 # about 5 minutes as the teststring grows exponentially. 5872 # Worse, since 9x/ME are not pre-emptively multitasking, 5873 # you end up with a "frozen" computer, even though with patience 5874 # the test eventually succeeds (with a max line length of 256k). 5875 # Instead, let's just punt: use the minimum linelength reported by 5876 # all of the supported platforms: 8192 (on NT/2K/XP). 5877 lt_cv_sys_max_cmd_len=8192; 5878 ;; 5879 5880 amigaos*) 5881 # On AmigaOS with pdksh, this test takes hours, literally. 5882 # So we just punt and use a minimum line length of 8192. 5883 lt_cv_sys_max_cmd_len=8192; 5884 ;; 5885 5886 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5887 # This has been around since 386BSD, at least. Likely further. 5888 if test -x /sbin/sysctl; then 5889 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5890 elif test -x /usr/sbin/sysctl; then 5891 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5892 else 5893 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5894 fi 5895 # And add a safety zone 5896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5898 ;; 5899 5900 interix*) 5901 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5902 lt_cv_sys_max_cmd_len=196608 5903 ;; 5904 5905 osf*) 5906 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5907 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5908 # nice to cause kernel panics so lets avoid the loop below. 5909 # First set a reasonable default. 5910 lt_cv_sys_max_cmd_len=16384 5911 # 5912 if test -x /sbin/sysconfig; then 5913 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5914 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5915 esac 5916 fi 5917 ;; 5918 sco3.2v5*) 5919 lt_cv_sys_max_cmd_len=102400 5920 ;; 5921 sysv5* | sco5v6* | sysv4.2uw2*) 5922 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5923 if test -n "$kargmax"; then 5924 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5925 else 5926 lt_cv_sys_max_cmd_len=32768 5927 fi 5928 ;; 5929 *) 5930 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5931 if test -n "$lt_cv_sys_max_cmd_len"; then 5932 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5933 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5934 else 5935 # Make teststring a little bigger before we do anything with it. 5936 # a 1K string should be a reasonable start. 5937 for i in 1 2 3 4 5 6 7 8 ; do 5938 teststring=$teststring$teststring 5939 done 5940 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5941 # If test is not a shell built-in, we'll probably end up computing a 5942 # maximum length that is only half of the actual maximum length, but 5943 # we can't tell. 5944 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5945 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5946 test $i != 17 # 1/2 MB should be enough 5947 do 5948 i=`expr $i + 1` 5949 teststring=$teststring$teststring 5950 done 5951 # Only check the string length outside the loop. 5952 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5953 teststring= 5954 # Add a significant safety factor because C++ compilers can tack on 5955 # massive amounts of additional arguments before passing them to the 5956 # linker. It appears as though 1/2 is a usable value. 5957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5958 fi 5959 ;; 5960 esac 5961 5962fi 5963 5964if test -n $lt_cv_sys_max_cmd_len ; then 5965 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5966echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 5967else 5968 { echo "$as_me:$LINENO: result: none" >&5 5969echo "${ECHO_T}none" >&6; } 5970fi 5971max_cmd_len=$lt_cv_sys_max_cmd_len 5972 5973 5974 5975 5976 5977 5978: ${CP="cp -f"} 5979: ${MV="mv -f"} 5980: ${RM="rm -f"} 5981 5982{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 5983echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; } 5984# Try some XSI features 5985xsi_shell=no 5986( _lt_dummy="a/b/c" 5987 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5988 = c,a/b,, \ 5989 && eval 'test $(( 1 + 1 )) -eq 2 \ 5990 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5991 && xsi_shell=yes 5992{ echo "$as_me:$LINENO: result: $xsi_shell" >&5 5993echo "${ECHO_T}$xsi_shell" >&6; } 5994 5995 5996{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 5997echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; } 5998lt_shell_append=no 5999( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6000 >/dev/null 2>&1 \ 6001 && lt_shell_append=yes 6002{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5 6003echo "${ECHO_T}$lt_shell_append" >&6; } 6004 6005 6006if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6007 lt_unset=unset 6008else 6009 lt_unset=false 6010fi 6011 6012 6013 6014 6015 6016# test EBCDIC or ASCII 6017case `echo X|tr X '\101'` in 6018 A) # ASCII based system 6019 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6020 lt_SP2NL='tr \040 \012' 6021 lt_NL2SP='tr \015\012 \040\040' 6022 ;; 6023 *) # EBCDIC based system 6024 lt_SP2NL='tr \100 \n' 6025 lt_NL2SP='tr \r\n \100\100' 6026 ;; 6027esac 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 6038echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 6039if test "${lt_cv_ld_reload_flag+set}" = set; then 6040 echo $ECHO_N "(cached) $ECHO_C" >&6 6041else 6042 lt_cv_ld_reload_flag='-r' 6043fi 6044{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 6045echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 6046reload_flag=$lt_cv_ld_reload_flag 6047case $reload_flag in 6048"" | " "*) ;; 6049*) reload_flag=" $reload_flag" ;; 6050esac 6051reload_cmds='$LD$reload_flag -o $output$reload_objs' 6052case $host_os in 6053 darwin*) 6054 if test "$GCC" = yes; then 6055 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6056 else 6057 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6058 fi 6059 ;; 6060esac 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 6072echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 6073if test "${lt_cv_deplibs_check_method+set}" = set; then 6074 echo $ECHO_N "(cached) $ECHO_C" >&6 6075else 6076 lt_cv_file_magic_cmd='$MAGIC_CMD' 6077lt_cv_file_magic_test_file= 6078lt_cv_deplibs_check_method='unknown' 6079# Need to set the preceding variable on all platforms that support 6080# interlibrary dependencies. 6081# 'none' -- dependencies not supported. 6082# `unknown' -- same as none, but documents that we really don't know. 6083# 'pass_all' -- all dependencies passed with no checks. 6084# 'test_compile' -- check by making test program. 6085# 'file_magic [[regex]]' -- check by looking for files in library path 6086# which responds to the $file_magic_cmd with a given extended regex. 6087# If you have `file' or equivalent on your system and you're not sure 6088# whether `pass_all' will *always* work, you probably want this one. 6089 6090case $host_os in 6091aix[4-9]*) 6092 lt_cv_deplibs_check_method=pass_all 6093 ;; 6094 6095beos*) 6096 lt_cv_deplibs_check_method=pass_all 6097 ;; 6098 6099bsdi[45]*) 6100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6101 lt_cv_file_magic_cmd='/usr/bin/file -L' 6102 lt_cv_file_magic_test_file=/shlib/libc.so 6103 ;; 6104 6105cygwin*) 6106 # func_win32_libid is a shell function defined in ltmain.sh 6107 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6108 lt_cv_file_magic_cmd='func_win32_libid' 6109 ;; 6110 6111mingw* | pw32*) 6112 # Base MSYS/MinGW do not provide the 'file' command needed by 6113 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6114 # unless we find 'file', for example because we are cross-compiling. 6115 if ( file / ) >/dev/null 2>&1; then 6116 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6117 lt_cv_file_magic_cmd='func_win32_libid' 6118 else 6119 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6120 lt_cv_file_magic_cmd='$OBJDUMP -f' 6121 fi 6122 ;; 6123 6124darwin* | rhapsody*) 6125 lt_cv_deplibs_check_method=pass_all 6126 ;; 6127 6128freebsd* | dragonfly*) 6129 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6130 case $host_cpu in 6131 i*86 ) 6132 # Not sure whether the presence of OpenBSD here was a mistake. 6133 # Let's accept both of them until this is cleared up. 6134 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6135 lt_cv_file_magic_cmd=/usr/bin/file 6136 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6137 ;; 6138 esac 6139 else 6140 lt_cv_deplibs_check_method=pass_all 6141 fi 6142 ;; 6143 6144gnu*) 6145 lt_cv_deplibs_check_method=pass_all 6146 ;; 6147 6148hpux10.20* | hpux11*) 6149 lt_cv_file_magic_cmd=/usr/bin/file 6150 case $host_cpu in 6151 ia64*) 6152 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6153 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6154 ;; 6155 hppa*64*) 6156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 6157 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6158 ;; 6159 *) 6160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 6161 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6162 ;; 6163 esac 6164 ;; 6165 6166interix[3-9]*) 6167 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6169 ;; 6170 6171irix5* | irix6* | nonstopux*) 6172 case $LD in 6173 *-32|*"-32 ") libmagic=32-bit;; 6174 *-n32|*"-n32 ") libmagic=N32;; 6175 *-64|*"-64 ") libmagic=64-bit;; 6176 *) libmagic=never-match;; 6177 esac 6178 lt_cv_deplibs_check_method=pass_all 6179 ;; 6180 6181# This must be Linux ELF. 6182linux* | k*bsd*-gnu) 6183 lt_cv_deplibs_check_method=pass_all 6184 ;; 6185 6186netbsd*) 6187 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6188 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6189 else 6190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6191 fi 6192 ;; 6193 6194newos6*) 6195 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6196 lt_cv_file_magic_cmd=/usr/bin/file 6197 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6198 ;; 6199 6200*nto* | *qnx*) 6201 lt_cv_deplibs_check_method=pass_all 6202 ;; 6203 6204openbsd*) 6205 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6206 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6207 else 6208 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6209 fi 6210 ;; 6211 6212osf3* | osf4* | osf5*) 6213 lt_cv_deplibs_check_method=pass_all 6214 ;; 6215 6216rdos*) 6217 lt_cv_deplibs_check_method=pass_all 6218 ;; 6219 6220solaris*) 6221 lt_cv_deplibs_check_method=pass_all 6222 ;; 6223 6224sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6225 lt_cv_deplibs_check_method=pass_all 6226 ;; 6227 6228sysv4 | sysv4.3*) 6229 case $host_vendor in 6230 motorola) 6231 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]' 6232 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6233 ;; 6234 ncr) 6235 lt_cv_deplibs_check_method=pass_all 6236 ;; 6237 sequent) 6238 lt_cv_file_magic_cmd='/bin/file' 6239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6240 ;; 6241 sni) 6242 lt_cv_file_magic_cmd='/bin/file' 6243 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6244 lt_cv_file_magic_test_file=/lib/libc.so 6245 ;; 6246 siemens) 6247 lt_cv_deplibs_check_method=pass_all 6248 ;; 6249 pc) 6250 lt_cv_deplibs_check_method=pass_all 6251 ;; 6252 esac 6253 ;; 6254 6255tpf*) 6256 lt_cv_deplibs_check_method=pass_all 6257 ;; 6258esac 6259 6260fi 6261{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 6262echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 6263file_magic_cmd=$lt_cv_file_magic_cmd 6264deplibs_check_method=$lt_cv_deplibs_check_method 6265test -z "$deplibs_check_method" && deplibs_check_method=unknown 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278if test -n "$ac_tool_prefix"; then 6279 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6280set dummy ${ac_tool_prefix}ar; ac_word=$2 6281{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6283if test "${ac_cv_prog_AR+set}" = set; then 6284 echo $ECHO_N "(cached) $ECHO_C" >&6 6285else 6286 if test -n "$AR"; then 6287 ac_cv_prog_AR="$AR" # Let the user override the test. 6288else 6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6290for as_dir in $PATH 6291do 6292 IFS=$as_save_IFS 6293 test -z "$as_dir" && as_dir=. 6294 for ac_exec_ext in '' $ac_executable_extensions; do 6295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6296 ac_cv_prog_AR="${ac_tool_prefix}ar" 6297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6298 break 2 6299 fi 6300done 6301done 6302IFS=$as_save_IFS 6303 6304fi 6305fi 6306AR=$ac_cv_prog_AR 6307if test -n "$AR"; then 6308 { echo "$as_me:$LINENO: result: $AR" >&5 6309echo "${ECHO_T}$AR" >&6; } 6310else 6311 { echo "$as_me:$LINENO: result: no" >&5 6312echo "${ECHO_T}no" >&6; } 6313fi 6314 6315 6316fi 6317if test -z "$ac_cv_prog_AR"; then 6318 ac_ct_AR=$AR 6319 # Extract the first word of "ar", so it can be a program name with args. 6320set dummy ar; ac_word=$2 6321{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6323if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6324 echo $ECHO_N "(cached) $ECHO_C" >&6 6325else 6326 if test -n "$ac_ct_AR"; then 6327 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6328else 6329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6330for as_dir in $PATH 6331do 6332 IFS=$as_save_IFS 6333 test -z "$as_dir" && as_dir=. 6334 for ac_exec_ext in '' $ac_executable_extensions; do 6335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6336 ac_cv_prog_ac_ct_AR="ar" 6337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6338 break 2 6339 fi 6340done 6341done 6342IFS=$as_save_IFS 6343 6344fi 6345fi 6346ac_ct_AR=$ac_cv_prog_ac_ct_AR 6347if test -n "$ac_ct_AR"; then 6348 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6349echo "${ECHO_T}$ac_ct_AR" >&6; } 6350else 6351 { echo "$as_me:$LINENO: result: no" >&5 6352echo "${ECHO_T}no" >&6; } 6353fi 6354 6355 if test "x$ac_ct_AR" = x; then 6356 AR="false" 6357 else 6358 case $cross_compiling:$ac_tool_warned in 6359yes:) 6360{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6361whose name does not start with the host triplet. If you think this 6362configuration is useful to you, please write to autoconf@gnu.org." >&5 6363echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6364whose name does not start with the host triplet. If you think this 6365configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6366ac_tool_warned=yes ;; 6367esac 6368 AR=$ac_ct_AR 6369 fi 6370else 6371 AR="$ac_cv_prog_AR" 6372fi 6373 6374test -z "$AR" && AR=ar 6375test -z "$AR_FLAGS" && AR_FLAGS=cru 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387if test -n "$ac_tool_prefix"; then 6388 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6389set dummy ${ac_tool_prefix}strip; ac_word=$2 6390{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6392if test "${ac_cv_prog_STRIP+set}" = set; then 6393 echo $ECHO_N "(cached) $ECHO_C" >&6 6394else 6395 if test -n "$STRIP"; then 6396 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6397else 6398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6399for as_dir in $PATH 6400do 6401 IFS=$as_save_IFS 6402 test -z "$as_dir" && as_dir=. 6403 for ac_exec_ext in '' $ac_executable_extensions; do 6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6405 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6407 break 2 6408 fi 6409done 6410done 6411IFS=$as_save_IFS 6412 6413fi 6414fi 6415STRIP=$ac_cv_prog_STRIP 6416if test -n "$STRIP"; then 6417 { echo "$as_me:$LINENO: result: $STRIP" >&5 6418echo "${ECHO_T}$STRIP" >&6; } 6419else 6420 { echo "$as_me:$LINENO: result: no" >&5 6421echo "${ECHO_T}no" >&6; } 6422fi 6423 6424 6425fi 6426if test -z "$ac_cv_prog_STRIP"; then 6427 ac_ct_STRIP=$STRIP 6428 # Extract the first word of "strip", so it can be a program name with args. 6429set dummy strip; ac_word=$2 6430{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6432if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6433 echo $ECHO_N "(cached) $ECHO_C" >&6 6434else 6435 if test -n "$ac_ct_STRIP"; then 6436 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6437else 6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6439for as_dir in $PATH 6440do 6441 IFS=$as_save_IFS 6442 test -z "$as_dir" && as_dir=. 6443 for ac_exec_ext in '' $ac_executable_extensions; do 6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6445 ac_cv_prog_ac_ct_STRIP="strip" 6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6447 break 2 6448 fi 6449done 6450done 6451IFS=$as_save_IFS 6452 6453fi 6454fi 6455ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6456if test -n "$ac_ct_STRIP"; then 6457 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6458echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6459else 6460 { echo "$as_me:$LINENO: result: no" >&5 6461echo "${ECHO_T}no" >&6; } 6462fi 6463 6464 if test "x$ac_ct_STRIP" = x; then 6465 STRIP=":" 6466 else 6467 case $cross_compiling:$ac_tool_warned in 6468yes:) 6469{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6470whose name does not start with the host triplet. If you think this 6471configuration is useful to you, please write to autoconf@gnu.org." >&5 6472echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6473whose name does not start with the host triplet. If you think this 6474configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6475ac_tool_warned=yes ;; 6476esac 6477 STRIP=$ac_ct_STRIP 6478 fi 6479else 6480 STRIP="$ac_cv_prog_STRIP" 6481fi 6482 6483test -z "$STRIP" && STRIP=: 6484 6485 6486 6487 6488 6489 6490if test -n "$ac_tool_prefix"; then 6491 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6492set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6493{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6495if test "${ac_cv_prog_RANLIB+set}" = set; then 6496 echo $ECHO_N "(cached) $ECHO_C" >&6 6497else 6498 if test -n "$RANLIB"; then 6499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6500else 6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6502for as_dir in $PATH 6503do 6504 IFS=$as_save_IFS 6505 test -z "$as_dir" && as_dir=. 6506 for ac_exec_ext in '' $ac_executable_extensions; do 6507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6508 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6510 break 2 6511 fi 6512done 6513done 6514IFS=$as_save_IFS 6515 6516fi 6517fi 6518RANLIB=$ac_cv_prog_RANLIB 6519if test -n "$RANLIB"; then 6520 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6521echo "${ECHO_T}$RANLIB" >&6; } 6522else 6523 { echo "$as_me:$LINENO: result: no" >&5 6524echo "${ECHO_T}no" >&6; } 6525fi 6526 6527 6528fi 6529if test -z "$ac_cv_prog_RANLIB"; then 6530 ac_ct_RANLIB=$RANLIB 6531 # Extract the first word of "ranlib", so it can be a program name with args. 6532set dummy ranlib; ac_word=$2 6533{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6535if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6536 echo $ECHO_N "(cached) $ECHO_C" >&6 6537else 6538 if test -n "$ac_ct_RANLIB"; then 6539 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6540else 6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6542for as_dir in $PATH 6543do 6544 IFS=$as_save_IFS 6545 test -z "$as_dir" && as_dir=. 6546 for ac_exec_ext in '' $ac_executable_extensions; do 6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6548 ac_cv_prog_ac_ct_RANLIB="ranlib" 6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6550 break 2 6551 fi 6552done 6553done 6554IFS=$as_save_IFS 6555 6556fi 6557fi 6558ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6559if test -n "$ac_ct_RANLIB"; then 6560 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6561echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6562else 6563 { echo "$as_me:$LINENO: result: no" >&5 6564echo "${ECHO_T}no" >&6; } 6565fi 6566 6567 if test "x$ac_ct_RANLIB" = x; then 6568 RANLIB=":" 6569 else 6570 case $cross_compiling:$ac_tool_warned in 6571yes:) 6572{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6573whose name does not start with the host triplet. If you think this 6574configuration is useful to you, please write to autoconf@gnu.org." >&5 6575echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6576whose name does not start with the host triplet. If you think this 6577configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6578ac_tool_warned=yes ;; 6579esac 6580 RANLIB=$ac_ct_RANLIB 6581 fi 6582else 6583 RANLIB="$ac_cv_prog_RANLIB" 6584fi 6585 6586test -z "$RANLIB" && RANLIB=: 6587 6588 6589 6590 6591 6592 6593# Determine commands to create old-style static archives. 6594old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6595old_postinstall_cmds='chmod 644 $oldlib' 6596old_postuninstall_cmds= 6597 6598if test -n "$RANLIB"; then 6599 case $host_os in 6600 openbsd*) 6601 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6602 ;; 6603 *) 6604 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6605 ;; 6606 esac 6607 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6608fi 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643# If no C compiler was specified, use CC. 6644LTCC=${LTCC-"$CC"} 6645 6646# If no C compiler flags were specified, use CFLAGS. 6647LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6648 6649# Allow CC to be a program name with arguments. 6650compiler=$CC 6651 6652 6653# Check for command to grab the raw symbol name followed by C symbol from nm. 6654{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6655echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6656if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6657 echo $ECHO_N "(cached) $ECHO_C" >&6 6658else 6659 6660# These are sane defaults that work on at least a few old systems. 6661# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6662 6663# Character class describing NM global symbol codes. 6664symcode='[BCDEGRST]' 6665 6666# Regexp to match symbols that can be accessed directly from C. 6667sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6668 6669# Define system-specific variables. 6670case $host_os in 6671aix*) 6672 symcode='[BCDT]' 6673 ;; 6674cygwin* | mingw* | pw32*) 6675 symcode='[ABCDGISTW]' 6676 ;; 6677hpux*) 6678 if test "$host_cpu" = ia64; then 6679 symcode='[ABCDEGRST]' 6680 fi 6681 ;; 6682irix* | nonstopux*) 6683 symcode='[BCDEGRST]' 6684 ;; 6685osf*) 6686 symcode='[BCDEGQRST]' 6687 ;; 6688solaris*) 6689 symcode='[BDRT]' 6690 ;; 6691sco3.2v5*) 6692 symcode='[DT]' 6693 ;; 6694sysv4.2uw2*) 6695 symcode='[DT]' 6696 ;; 6697sysv5* | sco5v6* | unixware* | OpenUNIX*) 6698 symcode='[ABDT]' 6699 ;; 6700sysv4) 6701 symcode='[DFNSTU]' 6702 ;; 6703esac 6704 6705# If we're using GNU nm, then use its standard symbol codes. 6706case `$NM -V 2>&1` in 6707*GNU* | *'with BFD'*) 6708 symcode='[ABCDGIRSTW]' ;; 6709esac 6710 6711# Transform an extracted symbol line into a proper C declaration. 6712# Some systems (esp. on ia64) link data and code symbols differently, 6713# so use this general approach. 6714lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6715 6716# Transform an extracted symbol line into symbol name and symbol address 6717lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6718lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6719 6720# Handle CRLF in mingw tool chain 6721opt_cr= 6722case $build_os in 6723mingw*) 6724 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6725 ;; 6726esac 6727 6728# Try without a prefix underscore, then with it. 6729for ac_symprfx in "" "_"; do 6730 6731 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6732 symxfrm="\\1 $ac_symprfx\\2 \\2" 6733 6734 # Write the raw and C identifiers. 6735 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6736 # Fake it for dumpbin and say T for any non-static function 6737 # and D for any global variable. 6738 # Also find C++ and __fastcall symbols from MSVC++, 6739 # which start with @ or ?. 6740 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6741" {last_section=section; section=\$ 3};"\ 6742" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6743" \$ 0!~/External *\|/{next};"\ 6744" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6745" {if(hide[section]) next};"\ 6746" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6747" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6748" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6749" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6750" ' prfx=^$ac_symprfx" 6751 else 6752 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6753 fi 6754 6755 # Check to see that the pipe works correctly. 6756 pipe_works=no 6757 6758 rm -f conftest* 6759 cat > conftest.$ac_ext <<_LT_EOF 6760#ifdef __cplusplus 6761extern "C" { 6762#endif 6763char nm_test_var; 6764void nm_test_func(void); 6765void nm_test_func(void){} 6766#ifdef __cplusplus 6767} 6768#endif 6769int main(){nm_test_var='a';nm_test_func();return(0);} 6770_LT_EOF 6771 6772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6773 (eval $ac_compile) 2>&5 6774 ac_status=$? 6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6776 (exit $ac_status); }; then 6777 # Now try to grab the symbols. 6778 nlist=conftest.nm 6779 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6780 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6781 ac_status=$? 6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6783 (exit $ac_status); } && test -s "$nlist"; then 6784 # Try sorting and uniquifying the output. 6785 if sort "$nlist" | uniq > "$nlist"T; then 6786 mv -f "$nlist"T "$nlist" 6787 else 6788 rm -f "$nlist"T 6789 fi 6790 6791 # Make sure that we snagged all the symbols we need. 6792 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6793 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6794 cat <<_LT_EOF > conftest.$ac_ext 6795#ifdef __cplusplus 6796extern "C" { 6797#endif 6798 6799_LT_EOF 6800 # Now generate the symbol file. 6801 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6802 6803 cat <<_LT_EOF >> conftest.$ac_ext 6804 6805/* The mapping between symbol names and symbols. */ 6806const struct { 6807 const char *name; 6808 void *address; 6809} 6810lt__PROGRAM__LTX_preloaded_symbols[] = 6811{ 6812 { "@PROGRAM@", (void *) 0 }, 6813_LT_EOF 6814 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6815 cat <<\_LT_EOF >> conftest.$ac_ext 6816 {0, (void *) 0} 6817}; 6818 6819/* This works around a problem in FreeBSD linker */ 6820#ifdef FREEBSD_WORKAROUND 6821static const void *lt_preloaded_setup() { 6822 return lt__PROGRAM__LTX_preloaded_symbols; 6823} 6824#endif 6825 6826#ifdef __cplusplus 6827} 6828#endif 6829_LT_EOF 6830 # Now try linking the two files. 6831 mv conftest.$ac_objext conftstm.$ac_objext 6832 lt_save_LIBS="$LIBS" 6833 lt_save_CFLAGS="$CFLAGS" 6834 LIBS="conftstm.$ac_objext" 6835 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6837 (eval $ac_link) 2>&5 6838 ac_status=$? 6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6840 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6841 pipe_works=yes 6842 fi 6843 LIBS="$lt_save_LIBS" 6844 CFLAGS="$lt_save_CFLAGS" 6845 else 6846 echo "cannot find nm_test_func in $nlist" >&5 6847 fi 6848 else 6849 echo "cannot find nm_test_var in $nlist" >&5 6850 fi 6851 else 6852 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6853 fi 6854 else 6855 echo "$progname: failed program was:" >&5 6856 cat conftest.$ac_ext >&5 6857 fi 6858 rm -rf conftest* conftst* 6859 6860 # Do not use the global_symbol_pipe unless it works. 6861 if test "$pipe_works" = yes; then 6862 break 6863 else 6864 lt_cv_sys_global_symbol_pipe= 6865 fi 6866done 6867 6868fi 6869 6870if test -z "$lt_cv_sys_global_symbol_pipe"; then 6871 lt_cv_sys_global_symbol_to_cdecl= 6872fi 6873if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6874 { echo "$as_me:$LINENO: result: failed" >&5 6875echo "${ECHO_T}failed" >&6; } 6876else 6877 { echo "$as_me:$LINENO: result: ok" >&5 6878echo "${ECHO_T}ok" >&6; } 6879fi 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903# Check whether --enable-libtool-lock was given. 6904if test "${enable_libtool_lock+set}" = set; then 6905 enableval=$enable_libtool_lock; 6906fi 6907 6908test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6909 6910# Some flags need to be propagated to the compiler or linker for good 6911# libtool support. 6912case $host in 6913ia64-*-hpux*) 6914 # Find out which ABI we are using. 6915 echo 'int i;' > conftest.$ac_ext 6916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6917 (eval $ac_compile) 2>&5 6918 ac_status=$? 6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6920 (exit $ac_status); }; then 6921 case `/usr/bin/file conftest.$ac_objext` in 6922 *ELF-32*) 6923 HPUX_IA64_MODE="32" 6924 ;; 6925 *ELF-64*) 6926 HPUX_IA64_MODE="64" 6927 ;; 6928 esac 6929 fi 6930 rm -rf conftest* 6931 ;; 6932*-*-irix6*) 6933 # Find out which ABI we are using. 6934 echo '#line 6934 "configure"' > conftest.$ac_ext 6935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6936 (eval $ac_compile) 2>&5 6937 ac_status=$? 6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6939 (exit $ac_status); }; then 6940 if test "$lt_cv_prog_gnu_ld" = yes; then 6941 case `/usr/bin/file conftest.$ac_objext` in 6942 *32-bit*) 6943 LD="${LD-ld} -melf32bsmip" 6944 ;; 6945 *N32*) 6946 LD="${LD-ld} -melf32bmipn32" 6947 ;; 6948 *64-bit*) 6949 LD="${LD-ld} -melf64bmip" 6950 ;; 6951 esac 6952 else 6953 case `/usr/bin/file conftest.$ac_objext` in 6954 *32-bit*) 6955 LD="${LD-ld} -32" 6956 ;; 6957 *N32*) 6958 LD="${LD-ld} -n32" 6959 ;; 6960 *64-bit*) 6961 LD="${LD-ld} -64" 6962 ;; 6963 esac 6964 fi 6965 fi 6966 rm -rf conftest* 6967 ;; 6968 6969x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6970s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6971 # Find out which ABI we are using. 6972 echo 'int i;' > conftest.$ac_ext 6973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6974 (eval $ac_compile) 2>&5 6975 ac_status=$? 6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6977 (exit $ac_status); }; then 6978 case `/usr/bin/file conftest.o` in 6979 *32-bit*) 6980 case $host in 6981 x86_64-*kfreebsd*-gnu) 6982 LD="${LD-ld} -m elf_i386_fbsd" 6983 ;; 6984 x86_64-*linux*) 6985 LD="${LD-ld} -m elf_i386" 6986 ;; 6987 ppc64-*linux*|powerpc64-*linux*) 6988 LD="${LD-ld} -m elf32ppclinux" 6989 ;; 6990 s390x-*linux*) 6991 LD="${LD-ld} -m elf_s390" 6992 ;; 6993 sparc64-*linux*) 6994 LD="${LD-ld} -m elf32_sparc" 6995 ;; 6996 esac 6997 ;; 6998 *64-bit*) 6999 case $host in 7000 x86_64-*kfreebsd*-gnu) 7001 LD="${LD-ld} -m elf_x86_64_fbsd" 7002 ;; 7003 x86_64-*linux*) 7004 LD="${LD-ld} -m elf_x86_64" 7005 ;; 7006 ppc*-*linux*|powerpc*-*linux*) 7007 LD="${LD-ld} -m elf64ppc" 7008 ;; 7009 s390*-*linux*|s390*-*tpf*) 7010 LD="${LD-ld} -m elf64_s390" 7011 ;; 7012 sparc*-*linux*) 7013 LD="${LD-ld} -m elf64_sparc" 7014 ;; 7015 esac 7016 ;; 7017 esac 7018 fi 7019 rm -rf conftest* 7020 ;; 7021 7022*-*-sco3.2v5*) 7023 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7024 SAVE_CFLAGS="$CFLAGS" 7025 CFLAGS="$CFLAGS -belf" 7026 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 7027echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 7028if test "${lt_cv_cc_needs_belf+set}" = set; then 7029 echo $ECHO_N "(cached) $ECHO_C" >&6 7030else 7031 ac_ext=c 7032ac_cpp='$CPP $CPPFLAGS' 7033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7035ac_compiler_gnu=$ac_cv_c_compiler_gnu 7036 7037 cat >conftest.$ac_ext <<_ACEOF 7038/* confdefs.h. */ 7039_ACEOF 7040cat confdefs.h >>conftest.$ac_ext 7041cat >>conftest.$ac_ext <<_ACEOF 7042/* end confdefs.h. */ 7043 7044int 7045main () 7046{ 7047 7048 ; 7049 return 0; 7050} 7051_ACEOF 7052rm -f conftest.$ac_objext conftest$ac_exeext 7053if { (ac_try="$ac_link" 7054case "(($ac_try" in 7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7056 *) ac_try_echo=$ac_try;; 7057esac 7058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7059 (eval "$ac_link") 2>conftest.er1 7060 ac_status=$? 7061 grep -v '^ *+' conftest.er1 >conftest.err 7062 rm -f conftest.er1 7063 cat conftest.err >&5 7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7065 (exit $ac_status); } && { 7066 test -z "$ac_c_werror_flag" || 7067 test ! -s conftest.err 7068 } && test -s conftest$ac_exeext && 7069 $as_test_x conftest$ac_exeext; then 7070 lt_cv_cc_needs_belf=yes 7071else 7072 echo "$as_me: failed program was:" >&5 7073sed 's/^/| /' conftest.$ac_ext >&5 7074 7075 lt_cv_cc_needs_belf=no 7076fi 7077 7078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7079 conftest$ac_exeext conftest.$ac_ext 7080 ac_ext=c 7081ac_cpp='$CPP $CPPFLAGS' 7082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7084ac_compiler_gnu=$ac_cv_c_compiler_gnu 7085 7086fi 7087{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 7088echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 7089 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7090 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7091 CFLAGS="$SAVE_CFLAGS" 7092 fi 7093 ;; 7094sparc*-*solaris*) 7095 # Find out which ABI we are using. 7096 echo 'int i;' > conftest.$ac_ext 7097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7098 (eval $ac_compile) 2>&5 7099 ac_status=$? 7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7101 (exit $ac_status); }; then 7102 case `/usr/bin/file conftest.o` in 7103 *64-bit*) 7104 case $lt_cv_prog_gnu_ld in 7105 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7106 *) 7107 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7108 LD="${LD-ld} -64" 7109 fi 7110 ;; 7111 esac 7112 ;; 7113 esac 7114 fi 7115 rm -rf conftest* 7116 ;; 7117esac 7118 7119need_locks="$enable_libtool_lock" 7120 7121 7122 case $host_os in 7123 rhapsody* | darwin*) 7124 if test -n "$ac_tool_prefix"; then 7125 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7126set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7127{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7129if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7130 echo $ECHO_N "(cached) $ECHO_C" >&6 7131else 7132 if test -n "$DSYMUTIL"; then 7133 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7134else 7135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7136for as_dir in $PATH 7137do 7138 IFS=$as_save_IFS 7139 test -z "$as_dir" && as_dir=. 7140 for ac_exec_ext in '' $ac_executable_extensions; do 7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7142 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7144 break 2 7145 fi 7146done 7147done 7148IFS=$as_save_IFS 7149 7150fi 7151fi 7152DSYMUTIL=$ac_cv_prog_DSYMUTIL 7153if test -n "$DSYMUTIL"; then 7154 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7155echo "${ECHO_T}$DSYMUTIL" >&6; } 7156else 7157 { echo "$as_me:$LINENO: result: no" >&5 7158echo "${ECHO_T}no" >&6; } 7159fi 7160 7161 7162fi 7163if test -z "$ac_cv_prog_DSYMUTIL"; then 7164 ac_ct_DSYMUTIL=$DSYMUTIL 7165 # Extract the first word of "dsymutil", so it can be a program name with args. 7166set dummy dsymutil; ac_word=$2 7167{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7169if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7170 echo $ECHO_N "(cached) $ECHO_C" >&6 7171else 7172 if test -n "$ac_ct_DSYMUTIL"; then 7173 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7174else 7175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7176for as_dir in $PATH 7177do 7178 IFS=$as_save_IFS 7179 test -z "$as_dir" && as_dir=. 7180 for ac_exec_ext in '' $ac_executable_extensions; do 7181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7182 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7184 break 2 7185 fi 7186done 7187done 7188IFS=$as_save_IFS 7189 7190fi 7191fi 7192ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7193if test -n "$ac_ct_DSYMUTIL"; then 7194 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7195echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 7196else 7197 { echo "$as_me:$LINENO: result: no" >&5 7198echo "${ECHO_T}no" >&6; } 7199fi 7200 7201 if test "x$ac_ct_DSYMUTIL" = x; then 7202 DSYMUTIL=":" 7203 else 7204 case $cross_compiling:$ac_tool_warned in 7205yes:) 7206{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7207whose name does not start with the host triplet. If you think this 7208configuration is useful to you, please write to autoconf@gnu.org." >&5 7209echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7210whose name does not start with the host triplet. If you think this 7211configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7212ac_tool_warned=yes ;; 7213esac 7214 DSYMUTIL=$ac_ct_DSYMUTIL 7215 fi 7216else 7217 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7218fi 7219 7220 if test -n "$ac_tool_prefix"; then 7221 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7222set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7223{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7225if test "${ac_cv_prog_NMEDIT+set}" = set; then 7226 echo $ECHO_N "(cached) $ECHO_C" >&6 7227else 7228 if test -n "$NMEDIT"; then 7229 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7230else 7231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7232for as_dir in $PATH 7233do 7234 IFS=$as_save_IFS 7235 test -z "$as_dir" && as_dir=. 7236 for ac_exec_ext in '' $ac_executable_extensions; do 7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7238 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7240 break 2 7241 fi 7242done 7243done 7244IFS=$as_save_IFS 7245 7246fi 7247fi 7248NMEDIT=$ac_cv_prog_NMEDIT 7249if test -n "$NMEDIT"; then 7250 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 7251echo "${ECHO_T}$NMEDIT" >&6; } 7252else 7253 { echo "$as_me:$LINENO: result: no" >&5 7254echo "${ECHO_T}no" >&6; } 7255fi 7256 7257 7258fi 7259if test -z "$ac_cv_prog_NMEDIT"; then 7260 ac_ct_NMEDIT=$NMEDIT 7261 # Extract the first word of "nmedit", so it can be a program name with args. 7262set dummy nmedit; ac_word=$2 7263{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7265if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7266 echo $ECHO_N "(cached) $ECHO_C" >&6 7267else 7268 if test -n "$ac_ct_NMEDIT"; then 7269 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7270else 7271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7272for as_dir in $PATH 7273do 7274 IFS=$as_save_IFS 7275 test -z "$as_dir" && as_dir=. 7276 for ac_exec_ext in '' $ac_executable_extensions; do 7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7278 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7280 break 2 7281 fi 7282done 7283done 7284IFS=$as_save_IFS 7285 7286fi 7287fi 7288ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7289if test -n "$ac_ct_NMEDIT"; then 7290 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7291echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 7292else 7293 { echo "$as_me:$LINENO: result: no" >&5 7294echo "${ECHO_T}no" >&6; } 7295fi 7296 7297 if test "x$ac_ct_NMEDIT" = x; then 7298 NMEDIT=":" 7299 else 7300 case $cross_compiling:$ac_tool_warned in 7301yes:) 7302{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7303whose name does not start with the host triplet. If you think this 7304configuration is useful to you, please write to autoconf@gnu.org." >&5 7305echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7306whose name does not start with the host triplet. If you think this 7307configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7308ac_tool_warned=yes ;; 7309esac 7310 NMEDIT=$ac_ct_NMEDIT 7311 fi 7312else 7313 NMEDIT="$ac_cv_prog_NMEDIT" 7314fi 7315 7316 if test -n "$ac_tool_prefix"; then 7317 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7318set dummy ${ac_tool_prefix}lipo; ac_word=$2 7319{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7321if test "${ac_cv_prog_LIPO+set}" = set; then 7322 echo $ECHO_N "(cached) $ECHO_C" >&6 7323else 7324 if test -n "$LIPO"; then 7325 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7326else 7327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7328for as_dir in $PATH 7329do 7330 IFS=$as_save_IFS 7331 test -z "$as_dir" && as_dir=. 7332 for ac_exec_ext in '' $ac_executable_extensions; do 7333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7334 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7336 break 2 7337 fi 7338done 7339done 7340IFS=$as_save_IFS 7341 7342fi 7343fi 7344LIPO=$ac_cv_prog_LIPO 7345if test -n "$LIPO"; then 7346 { echo "$as_me:$LINENO: result: $LIPO" >&5 7347echo "${ECHO_T}$LIPO" >&6; } 7348else 7349 { echo "$as_me:$LINENO: result: no" >&5 7350echo "${ECHO_T}no" >&6; } 7351fi 7352 7353 7354fi 7355if test -z "$ac_cv_prog_LIPO"; then 7356 ac_ct_LIPO=$LIPO 7357 # Extract the first word of "lipo", so it can be a program name with args. 7358set dummy lipo; ac_word=$2 7359{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7361if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then 7362 echo $ECHO_N "(cached) $ECHO_C" >&6 7363else 7364 if test -n "$ac_ct_LIPO"; then 7365 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7366else 7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7368for as_dir in $PATH 7369do 7370 IFS=$as_save_IFS 7371 test -z "$as_dir" && as_dir=. 7372 for ac_exec_ext in '' $ac_executable_extensions; do 7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7374 ac_cv_prog_ac_ct_LIPO="lipo" 7375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7376 break 2 7377 fi 7378done 7379done 7380IFS=$as_save_IFS 7381 7382fi 7383fi 7384ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7385if test -n "$ac_ct_LIPO"; then 7386 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 7387echo "${ECHO_T}$ac_ct_LIPO" >&6; } 7388else 7389 { echo "$as_me:$LINENO: result: no" >&5 7390echo "${ECHO_T}no" >&6; } 7391fi 7392 7393 if test "x$ac_ct_LIPO" = x; then 7394 LIPO=":" 7395 else 7396 case $cross_compiling:$ac_tool_warned in 7397yes:) 7398{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7399whose name does not start with the host triplet. If you think this 7400configuration is useful to you, please write to autoconf@gnu.org." >&5 7401echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7402whose name does not start with the host triplet. If you think this 7403configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7404ac_tool_warned=yes ;; 7405esac 7406 LIPO=$ac_ct_LIPO 7407 fi 7408else 7409 LIPO="$ac_cv_prog_LIPO" 7410fi 7411 7412 if test -n "$ac_tool_prefix"; then 7413 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7414set dummy ${ac_tool_prefix}otool; ac_word=$2 7415{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7417if test "${ac_cv_prog_OTOOL+set}" = set; then 7418 echo $ECHO_N "(cached) $ECHO_C" >&6 7419else 7420 if test -n "$OTOOL"; then 7421 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7422else 7423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7424for as_dir in $PATH 7425do 7426 IFS=$as_save_IFS 7427 test -z "$as_dir" && as_dir=. 7428 for ac_exec_ext in '' $ac_executable_extensions; do 7429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7430 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7432 break 2 7433 fi 7434done 7435done 7436IFS=$as_save_IFS 7437 7438fi 7439fi 7440OTOOL=$ac_cv_prog_OTOOL 7441if test -n "$OTOOL"; then 7442 { echo "$as_me:$LINENO: result: $OTOOL" >&5 7443echo "${ECHO_T}$OTOOL" >&6; } 7444else 7445 { echo "$as_me:$LINENO: result: no" >&5 7446echo "${ECHO_T}no" >&6; } 7447fi 7448 7449 7450fi 7451if test -z "$ac_cv_prog_OTOOL"; then 7452 ac_ct_OTOOL=$OTOOL 7453 # Extract the first word of "otool", so it can be a program name with args. 7454set dummy otool; ac_word=$2 7455{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7457if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then 7458 echo $ECHO_N "(cached) $ECHO_C" >&6 7459else 7460 if test -n "$ac_ct_OTOOL"; then 7461 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7462else 7463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7464for as_dir in $PATH 7465do 7466 IFS=$as_save_IFS 7467 test -z "$as_dir" && as_dir=. 7468 for ac_exec_ext in '' $ac_executable_extensions; do 7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7470 ac_cv_prog_ac_ct_OTOOL="otool" 7471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7472 break 2 7473 fi 7474done 7475done 7476IFS=$as_save_IFS 7477 7478fi 7479fi 7480ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7481if test -n "$ac_ct_OTOOL"; then 7482 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 7483echo "${ECHO_T}$ac_ct_OTOOL" >&6; } 7484else 7485 { echo "$as_me:$LINENO: result: no" >&5 7486echo "${ECHO_T}no" >&6; } 7487fi 7488 7489 if test "x$ac_ct_OTOOL" = x; then 7490 OTOOL=":" 7491 else 7492 case $cross_compiling:$ac_tool_warned in 7493yes:) 7494{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7495whose name does not start with the host triplet. If you think this 7496configuration is useful to you, please write to autoconf@gnu.org." >&5 7497echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7498whose name does not start with the host triplet. If you think this 7499configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7500ac_tool_warned=yes ;; 7501esac 7502 OTOOL=$ac_ct_OTOOL 7503 fi 7504else 7505 OTOOL="$ac_cv_prog_OTOOL" 7506fi 7507 7508 if test -n "$ac_tool_prefix"; then 7509 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7510set dummy ${ac_tool_prefix}otool64; ac_word=$2 7511{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7513if test "${ac_cv_prog_OTOOL64+set}" = set; then 7514 echo $ECHO_N "(cached) $ECHO_C" >&6 7515else 7516 if test -n "$OTOOL64"; then 7517 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7518else 7519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7520for as_dir in $PATH 7521do 7522 IFS=$as_save_IFS 7523 test -z "$as_dir" && as_dir=. 7524 for ac_exec_ext in '' $ac_executable_extensions; do 7525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7526 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7528 break 2 7529 fi 7530done 7531done 7532IFS=$as_save_IFS 7533 7534fi 7535fi 7536OTOOL64=$ac_cv_prog_OTOOL64 7537if test -n "$OTOOL64"; then 7538 { echo "$as_me:$LINENO: result: $OTOOL64" >&5 7539echo "${ECHO_T}$OTOOL64" >&6; } 7540else 7541 { echo "$as_me:$LINENO: result: no" >&5 7542echo "${ECHO_T}no" >&6; } 7543fi 7544 7545 7546fi 7547if test -z "$ac_cv_prog_OTOOL64"; then 7548 ac_ct_OTOOL64=$OTOOL64 7549 # Extract the first word of "otool64", so it can be a program name with args. 7550set dummy otool64; ac_word=$2 7551{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7553if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then 7554 echo $ECHO_N "(cached) $ECHO_C" >&6 7555else 7556 if test -n "$ac_ct_OTOOL64"; then 7557 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7558else 7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7560for as_dir in $PATH 7561do 7562 IFS=$as_save_IFS 7563 test -z "$as_dir" && as_dir=. 7564 for ac_exec_ext in '' $ac_executable_extensions; do 7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7566 ac_cv_prog_ac_ct_OTOOL64="otool64" 7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7568 break 2 7569 fi 7570done 7571done 7572IFS=$as_save_IFS 7573 7574fi 7575fi 7576ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7577if test -n "$ac_ct_OTOOL64"; then 7578 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 7579echo "${ECHO_T}$ac_ct_OTOOL64" >&6; } 7580else 7581 { echo "$as_me:$LINENO: result: no" >&5 7582echo "${ECHO_T}no" >&6; } 7583fi 7584 7585 if test "x$ac_ct_OTOOL64" = x; then 7586 OTOOL64=":" 7587 else 7588 case $cross_compiling:$ac_tool_warned in 7589yes:) 7590{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7591whose name does not start with the host triplet. If you think this 7592configuration is useful to you, please write to autoconf@gnu.org." >&5 7593echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7594whose name does not start with the host triplet. If you think this 7595configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7596ac_tool_warned=yes ;; 7597esac 7598 OTOOL64=$ac_ct_OTOOL64 7599 fi 7600else 7601 OTOOL64="$ac_cv_prog_OTOOL64" 7602fi 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7631echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 7632if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7633 echo $ECHO_N "(cached) $ECHO_C" >&6 7634else 7635 lt_cv_apple_cc_single_mod=no 7636 if test -z "${LT_MULTI_MODULE}"; then 7637 # By default we will add the -single_module flag. You can override 7638 # by either setting the environment variable LT_MULTI_MODULE 7639 # non-empty at configure time, or by adding -multi_module to the 7640 # link flags. 7641 rm -rf libconftest.dylib* 7642 echo "int foo(void){return 1;}" > conftest.c 7643 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7644-dynamiclib -Wl,-single_module conftest.c" >&5 7645 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7646 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7647 _lt_result=$? 7648 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7649 lt_cv_apple_cc_single_mod=yes 7650 else 7651 cat conftest.err >&5 7652 fi 7653 rm -rf libconftest.dylib* 7654 rm -f conftest.* 7655 fi 7656fi 7657{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7658echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 7659 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7660echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 7661if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7662 echo $ECHO_N "(cached) $ECHO_C" >&6 7663else 7664 lt_cv_ld_exported_symbols_list=no 7665 save_LDFLAGS=$LDFLAGS 7666 echo "_main" > conftest.sym 7667 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7668 cat >conftest.$ac_ext <<_ACEOF 7669/* confdefs.h. */ 7670_ACEOF 7671cat confdefs.h >>conftest.$ac_ext 7672cat >>conftest.$ac_ext <<_ACEOF 7673/* end confdefs.h. */ 7674 7675int 7676main () 7677{ 7678 7679 ; 7680 return 0; 7681} 7682_ACEOF 7683rm -f conftest.$ac_objext conftest$ac_exeext 7684if { (ac_try="$ac_link" 7685case "(($ac_try" in 7686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7687 *) ac_try_echo=$ac_try;; 7688esac 7689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7690 (eval "$ac_link") 2>conftest.er1 7691 ac_status=$? 7692 grep -v '^ *+' conftest.er1 >conftest.err 7693 rm -f conftest.er1 7694 cat conftest.err >&5 7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7696 (exit $ac_status); } && { 7697 test -z "$ac_c_werror_flag" || 7698 test ! -s conftest.err 7699 } && test -s conftest$ac_exeext && 7700 $as_test_x conftest$ac_exeext; then 7701 lt_cv_ld_exported_symbols_list=yes 7702else 7703 echo "$as_me: failed program was:" >&5 7704sed 's/^/| /' conftest.$ac_ext >&5 7705 7706 lt_cv_ld_exported_symbols_list=no 7707fi 7708 7709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7710 conftest$ac_exeext conftest.$ac_ext 7711 LDFLAGS="$save_LDFLAGS" 7712 7713fi 7714{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7715echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 7716 case $host_os in 7717 rhapsody* | darwin1.[012]) 7718 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7719 darwin1.*) 7720 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7721 darwin*) # darwin 5.x on 7722 # if running on 10.5 or later, the deployment target defaults 7723 # to the OS version, if on x86, and 10.4, the deployment 7724 # target defaults to 10.4. Don't you love it? 7725 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7726 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7727 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7728 10.[012]*) 7729 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7730 10.*) 7731 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7732 esac 7733 ;; 7734 esac 7735 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7736 _lt_dar_single_mod='$single_module' 7737 fi 7738 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7739 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7740 else 7741 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7742 fi 7743 if test "$DSYMUTIL" != ":"; then 7744 _lt_dsymutil='~$DSYMUTIL $lib || :' 7745 else 7746 _lt_dsymutil= 7747 fi 7748 ;; 7749 esac 7750 7751 7752for ac_header in dlfcn.h 7753do 7754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7755{ echo "$as_me:$LINENO: checking for $ac_header" >&5 7756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 7757if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7758 echo $ECHO_N "(cached) $ECHO_C" >&6 7759else 7760 cat >conftest.$ac_ext <<_ACEOF 7761/* confdefs.h. */ 7762_ACEOF 7763cat confdefs.h >>conftest.$ac_ext 7764cat >>conftest.$ac_ext <<_ACEOF 7765/* end confdefs.h. */ 7766$ac_includes_default 7767 7768#include <$ac_header> 7769_ACEOF 7770rm -f conftest.$ac_objext 7771if { (ac_try="$ac_compile" 7772case "(($ac_try" in 7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7774 *) ac_try_echo=$ac_try;; 7775esac 7776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7777 (eval "$ac_compile") 2>conftest.er1 7778 ac_status=$? 7779 grep -v '^ *+' conftest.er1 >conftest.err 7780 rm -f conftest.er1 7781 cat conftest.err >&5 7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7783 (exit $ac_status); } && { 7784 test -z "$ac_c_werror_flag" || 7785 test ! -s conftest.err 7786 } && test -s conftest.$ac_objext; then 7787 eval "$as_ac_Header=yes" 7788else 7789 echo "$as_me: failed program was:" >&5 7790sed 's/^/| /' conftest.$ac_ext >&5 7791 7792 eval "$as_ac_Header=no" 7793fi 7794 7795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7796fi 7797ac_res=`eval echo '${'$as_ac_Header'}'` 7798 { echo "$as_me:$LINENO: result: $ac_res" >&5 7799echo "${ECHO_T}$ac_res" >&6; } 7800if test `eval echo '${'$as_ac_Header'}'` = yes; then 7801 cat >>confdefs.h <<_ACEOF 7802#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7803_ACEOF 7804 7805fi 7806 7807done 7808 7809 7810 7811ac_ext=cpp 7812ac_cpp='$CXXCPP $CPPFLAGS' 7813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7816if test -z "$CXX"; then 7817 if test -n "$CCC"; then 7818 CXX=$CCC 7819 else 7820 if test -n "$ac_tool_prefix"; then 7821 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7822 do 7823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7824set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7825{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7827if test "${ac_cv_prog_CXX+set}" = set; then 7828 echo $ECHO_N "(cached) $ECHO_C" >&6 7829else 7830 if test -n "$CXX"; then 7831 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7832else 7833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7834for as_dir in $PATH 7835do 7836 IFS=$as_save_IFS 7837 test -z "$as_dir" && as_dir=. 7838 for ac_exec_ext in '' $ac_executable_extensions; do 7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7840 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7842 break 2 7843 fi 7844done 7845done 7846IFS=$as_save_IFS 7847 7848fi 7849fi 7850CXX=$ac_cv_prog_CXX 7851if test -n "$CXX"; then 7852 { echo "$as_me:$LINENO: result: $CXX" >&5 7853echo "${ECHO_T}$CXX" >&6; } 7854else 7855 { echo "$as_me:$LINENO: result: no" >&5 7856echo "${ECHO_T}no" >&6; } 7857fi 7858 7859 7860 test -n "$CXX" && break 7861 done 7862fi 7863if test -z "$CXX"; then 7864 ac_ct_CXX=$CXX 7865 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7866do 7867 # Extract the first word of "$ac_prog", so it can be a program name with args. 7868set dummy $ac_prog; ac_word=$2 7869{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7871if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 7872 echo $ECHO_N "(cached) $ECHO_C" >&6 7873else 7874 if test -n "$ac_ct_CXX"; then 7875 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7876else 7877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7878for as_dir in $PATH 7879do 7880 IFS=$as_save_IFS 7881 test -z "$as_dir" && as_dir=. 7882 for ac_exec_ext in '' $ac_executable_extensions; do 7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7884 ac_cv_prog_ac_ct_CXX="$ac_prog" 7885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7886 break 2 7887 fi 7888done 7889done 7890IFS=$as_save_IFS 7891 7892fi 7893fi 7894ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7895if test -n "$ac_ct_CXX"; then 7896 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 7897echo "${ECHO_T}$ac_ct_CXX" >&6; } 7898else 7899 { echo "$as_me:$LINENO: result: no" >&5 7900echo "${ECHO_T}no" >&6; } 7901fi 7902 7903 7904 test -n "$ac_ct_CXX" && break 7905done 7906 7907 if test "x$ac_ct_CXX" = x; then 7908 CXX="g++" 7909 else 7910 case $cross_compiling:$ac_tool_warned in 7911yes:) 7912{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7913whose name does not start with the host triplet. If you think this 7914configuration is useful to you, please write to autoconf@gnu.org." >&5 7915echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7916whose name does not start with the host triplet. If you think this 7917configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7918ac_tool_warned=yes ;; 7919esac 7920 CXX=$ac_ct_CXX 7921 fi 7922fi 7923 7924 fi 7925fi 7926# Provide some information about the compiler. 7927echo "$as_me:$LINENO: checking for C++ compiler version" >&5 7928ac_compiler=`set X $ac_compile; echo $2` 7929{ (ac_try="$ac_compiler --version >&5" 7930case "(($ac_try" in 7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7932 *) ac_try_echo=$ac_try;; 7933esac 7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7935 (eval "$ac_compiler --version >&5") 2>&5 7936 ac_status=$? 7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7938 (exit $ac_status); } 7939{ (ac_try="$ac_compiler -v >&5" 7940case "(($ac_try" in 7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7942 *) ac_try_echo=$ac_try;; 7943esac 7944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7945 (eval "$ac_compiler -v >&5") 2>&5 7946 ac_status=$? 7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7948 (exit $ac_status); } 7949{ (ac_try="$ac_compiler -V >&5" 7950case "(($ac_try" in 7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7952 *) ac_try_echo=$ac_try;; 7953esac 7954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7955 (eval "$ac_compiler -V >&5") 2>&5 7956 ac_status=$? 7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7958 (exit $ac_status); } 7959 7960{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 7961echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 7962if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 7963 echo $ECHO_N "(cached) $ECHO_C" >&6 7964else 7965 cat >conftest.$ac_ext <<_ACEOF 7966/* confdefs.h. */ 7967_ACEOF 7968cat confdefs.h >>conftest.$ac_ext 7969cat >>conftest.$ac_ext <<_ACEOF 7970/* end confdefs.h. */ 7971 7972int 7973main () 7974{ 7975#ifndef __GNUC__ 7976 choke me 7977#endif 7978 7979 ; 7980 return 0; 7981} 7982_ACEOF 7983rm -f conftest.$ac_objext 7984if { (ac_try="$ac_compile" 7985case "(($ac_try" in 7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7987 *) ac_try_echo=$ac_try;; 7988esac 7989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7990 (eval "$ac_compile") 2>conftest.er1 7991 ac_status=$? 7992 grep -v '^ *+' conftest.er1 >conftest.err 7993 rm -f conftest.er1 7994 cat conftest.err >&5 7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7996 (exit $ac_status); } && { 7997 test -z "$ac_cxx_werror_flag" || 7998 test ! -s conftest.err 7999 } && test -s conftest.$ac_objext; then 8000 ac_compiler_gnu=yes 8001else 8002 echo "$as_me: failed program was:" >&5 8003sed 's/^/| /' conftest.$ac_ext >&5 8004 8005 ac_compiler_gnu=no 8006fi 8007 8008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8009ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 8010 8011fi 8012{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 8013echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 8014GXX=`test $ac_compiler_gnu = yes && echo yes` 8015ac_test_CXXFLAGS=${CXXFLAGS+set} 8016ac_save_CXXFLAGS=$CXXFLAGS 8017{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 8018echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 8019if test "${ac_cv_prog_cxx_g+set}" = set; then 8020 echo $ECHO_N "(cached) $ECHO_C" >&6 8021else 8022 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 8023 ac_cxx_werror_flag=yes 8024 ac_cv_prog_cxx_g=no 8025 CXXFLAGS="-g" 8026 cat >conftest.$ac_ext <<_ACEOF 8027/* confdefs.h. */ 8028_ACEOF 8029cat confdefs.h >>conftest.$ac_ext 8030cat >>conftest.$ac_ext <<_ACEOF 8031/* end confdefs.h. */ 8032 8033int 8034main () 8035{ 8036 8037 ; 8038 return 0; 8039} 8040_ACEOF 8041rm -f conftest.$ac_objext 8042if { (ac_try="$ac_compile" 8043case "(($ac_try" in 8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8045 *) ac_try_echo=$ac_try;; 8046esac 8047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8048 (eval "$ac_compile") 2>conftest.er1 8049 ac_status=$? 8050 grep -v '^ *+' conftest.er1 >conftest.err 8051 rm -f conftest.er1 8052 cat conftest.err >&5 8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8054 (exit $ac_status); } && { 8055 test -z "$ac_cxx_werror_flag" || 8056 test ! -s conftest.err 8057 } && test -s conftest.$ac_objext; then 8058 ac_cv_prog_cxx_g=yes 8059else 8060 echo "$as_me: failed program was:" >&5 8061sed 's/^/| /' conftest.$ac_ext >&5 8062 8063 CXXFLAGS="" 8064 cat >conftest.$ac_ext <<_ACEOF 8065/* confdefs.h. */ 8066_ACEOF 8067cat confdefs.h >>conftest.$ac_ext 8068cat >>conftest.$ac_ext <<_ACEOF 8069/* end confdefs.h. */ 8070 8071int 8072main () 8073{ 8074 8075 ; 8076 return 0; 8077} 8078_ACEOF 8079rm -f conftest.$ac_objext 8080if { (ac_try="$ac_compile" 8081case "(($ac_try" in 8082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8083 *) ac_try_echo=$ac_try;; 8084esac 8085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8086 (eval "$ac_compile") 2>conftest.er1 8087 ac_status=$? 8088 grep -v '^ *+' conftest.er1 >conftest.err 8089 rm -f conftest.er1 8090 cat conftest.err >&5 8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8092 (exit $ac_status); } && { 8093 test -z "$ac_cxx_werror_flag" || 8094 test ! -s conftest.err 8095 } && test -s conftest.$ac_objext; then 8096 : 8097else 8098 echo "$as_me: failed program was:" >&5 8099sed 's/^/| /' conftest.$ac_ext >&5 8100 8101 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8102 CXXFLAGS="-g" 8103 cat >conftest.$ac_ext <<_ACEOF 8104/* confdefs.h. */ 8105_ACEOF 8106cat confdefs.h >>conftest.$ac_ext 8107cat >>conftest.$ac_ext <<_ACEOF 8108/* end confdefs.h. */ 8109 8110int 8111main () 8112{ 8113 8114 ; 8115 return 0; 8116} 8117_ACEOF 8118rm -f conftest.$ac_objext 8119if { (ac_try="$ac_compile" 8120case "(($ac_try" in 8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8122 *) ac_try_echo=$ac_try;; 8123esac 8124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8125 (eval "$ac_compile") 2>conftest.er1 8126 ac_status=$? 8127 grep -v '^ *+' conftest.er1 >conftest.err 8128 rm -f conftest.er1 8129 cat conftest.err >&5 8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8131 (exit $ac_status); } && { 8132 test -z "$ac_cxx_werror_flag" || 8133 test ! -s conftest.err 8134 } && test -s conftest.$ac_objext; then 8135 ac_cv_prog_cxx_g=yes 8136else 8137 echo "$as_me: failed program was:" >&5 8138sed 's/^/| /' conftest.$ac_ext >&5 8139 8140 8141fi 8142 8143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8144fi 8145 8146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8147fi 8148 8149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8150 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 8151fi 8152{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 8153echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 8154if test "$ac_test_CXXFLAGS" = set; then 8155 CXXFLAGS=$ac_save_CXXFLAGS 8156elif test $ac_cv_prog_cxx_g = yes; then 8157 if test "$GXX" = yes; then 8158 CXXFLAGS="-g -O2" 8159 else 8160 CXXFLAGS="-g" 8161 fi 8162else 8163 if test "$GXX" = yes; then 8164 CXXFLAGS="-O2" 8165 else 8166 CXXFLAGS= 8167 fi 8168fi 8169ac_ext=cpp 8170ac_cpp='$CXXCPP $CPPFLAGS' 8171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8174 8175depcc="$CXX" am_compiler_list= 8176 8177{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 8178echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 8179if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 8180 echo $ECHO_N "(cached) $ECHO_C" >&6 8181else 8182 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 8183 # We make a subdir and do the tests there. Otherwise we can end up 8184 # making bogus files that we don't know about and never remove. For 8185 # instance it was reported that on HP-UX the gcc test will end up 8186 # making a dummy file named `D' -- because `-MD' means `put the output 8187 # in D'. 8188 mkdir conftest.dir 8189 # Copy depcomp to subdir because otherwise we won't find it if we're 8190 # using a relative directory. 8191 cp "$am_depcomp" conftest.dir 8192 cd conftest.dir 8193 # We will build objects and dependencies in a subdirectory because 8194 # it helps to detect inapplicable dependency modes. For instance 8195 # both Tru64's cc and ICC support -MD to output dependencies as a 8196 # side effect of compilation, but ICC will put the dependencies in 8197 # the current directory while Tru64 will put them in the object 8198 # directory. 8199 mkdir sub 8200 8201 am_cv_CXX_dependencies_compiler_type=none 8202 if test "$am_compiler_list" = ""; then 8203 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 8204 fi 8205 for depmode in $am_compiler_list; do 8206 # Setup a source with many dependencies, because some compilers 8207 # like to wrap large dependency lists on column 80 (with \), and 8208 # we should not choose a depcomp mode which is confused by this. 8209 # 8210 # We need to recreate these files for each test, as the compiler may 8211 # overwrite some of them when testing with obscure command lines. 8212 # This happens at least with the AIX C compiler. 8213 : > sub/conftest.c 8214 for i in 1 2 3 4 5 6; do 8215 echo '#include "conftst'$i'.h"' >> sub/conftest.c 8216 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 8217 # Solaris 8's {/usr,}/bin/sh. 8218 touch sub/conftst$i.h 8219 done 8220 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 8221 8222 case $depmode in 8223 nosideeffect) 8224 # after this tag, mechanisms are not by side-effect, so they'll 8225 # only be used when explicitly requested 8226 if test "x$enable_dependency_tracking" = xyes; then 8227 continue 8228 else 8229 break 8230 fi 8231 ;; 8232 none) break ;; 8233 esac 8234 # We check with `-c' and `-o' for the sake of the "dashmstdout" 8235 # mode. It turns out that the SunPro C++ compiler does not properly 8236 # handle `-M -o', and we need to detect this. 8237 if depmode=$depmode \ 8238 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 8239 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 8240 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 8241 >/dev/null 2>conftest.err && 8242 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 8243 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 8244 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 8245 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 8246 # icc doesn't choke on unknown options, it will just issue warnings 8247 # or remarks (even with -Werror). So we grep stderr for any message 8248 # that says an option was ignored or not supported. 8249 # When given -MP, icc 7.0 and 7.1 complain thusly: 8250 # icc: Command line warning: ignoring option '-M'; no argument required 8251 # The diagnosis changed in icc 8.0: 8252 # icc: Command line remark: option '-MP' not supported 8253 if (grep 'ignoring option' conftest.err || 8254 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 8255 am_cv_CXX_dependencies_compiler_type=$depmode 8256 break 8257 fi 8258 fi 8259 done 8260 8261 cd .. 8262 rm -rf conftest.dir 8263else 8264 am_cv_CXX_dependencies_compiler_type=none 8265fi 8266 8267fi 8268{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 8269echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 8270CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 8271 8272 if 8273 test "x$enable_dependency_tracking" != xno \ 8274 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 8275 am__fastdepCXX_TRUE= 8276 am__fastdepCXX_FALSE='#' 8277else 8278 am__fastdepCXX_TRUE='#' 8279 am__fastdepCXX_FALSE= 8280fi 8281 8282 8283if test -n "$CXX" && ( test "X$CXX" != "Xno" && 8284 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 8285 (test "X$CXX" != "Xg++"))) ; then 8286 ac_ext=cpp 8287ac_cpp='$CXXCPP $CPPFLAGS' 8288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8291{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 8292echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 8293if test -z "$CXXCPP"; then 8294 if test "${ac_cv_prog_CXXCPP+set}" = set; then 8295 echo $ECHO_N "(cached) $ECHO_C" >&6 8296else 8297 # Double quotes because CXXCPP needs to be expanded 8298 for CXXCPP in "$CXX -E" "/lib/cpp" 8299 do 8300 ac_preproc_ok=false 8301for ac_cxx_preproc_warn_flag in '' yes 8302do 8303 # Use a header file that comes with gcc, so configuring glibc 8304 # with a fresh cross-compiler works. 8305 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8306 # <limits.h> exists even on freestanding compilers. 8307 # On the NeXT, cc -E runs the code through the compiler's parser, 8308 # not just through cpp. "Syntax error" is here to catch this case. 8309 cat >conftest.$ac_ext <<_ACEOF 8310/* confdefs.h. */ 8311_ACEOF 8312cat confdefs.h >>conftest.$ac_ext 8313cat >>conftest.$ac_ext <<_ACEOF 8314/* end confdefs.h. */ 8315#ifdef __STDC__ 8316# include <limits.h> 8317#else 8318# include <assert.h> 8319#endif 8320 Syntax error 8321_ACEOF 8322if { (ac_try="$ac_cpp conftest.$ac_ext" 8323case "(($ac_try" in 8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8325 *) ac_try_echo=$ac_try;; 8326esac 8327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8329 ac_status=$? 8330 grep -v '^ *+' conftest.er1 >conftest.err 8331 rm -f conftest.er1 8332 cat conftest.err >&5 8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8334 (exit $ac_status); } >/dev/null && { 8335 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8336 test ! -s conftest.err 8337 }; then 8338 : 8339else 8340 echo "$as_me: failed program was:" >&5 8341sed 's/^/| /' conftest.$ac_ext >&5 8342 8343 # Broken: fails on valid input. 8344continue 8345fi 8346 8347rm -f conftest.err conftest.$ac_ext 8348 8349 # OK, works on sane cases. Now check whether nonexistent headers 8350 # can be detected and how. 8351 cat >conftest.$ac_ext <<_ACEOF 8352/* confdefs.h. */ 8353_ACEOF 8354cat confdefs.h >>conftest.$ac_ext 8355cat >>conftest.$ac_ext <<_ACEOF 8356/* end confdefs.h. */ 8357#include <ac_nonexistent.h> 8358_ACEOF 8359if { (ac_try="$ac_cpp conftest.$ac_ext" 8360case "(($ac_try" in 8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8362 *) ac_try_echo=$ac_try;; 8363esac 8364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8366 ac_status=$? 8367 grep -v '^ *+' conftest.er1 >conftest.err 8368 rm -f conftest.er1 8369 cat conftest.err >&5 8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8371 (exit $ac_status); } >/dev/null && { 8372 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8373 test ! -s conftest.err 8374 }; then 8375 # Broken: success on invalid input. 8376continue 8377else 8378 echo "$as_me: failed program was:" >&5 8379sed 's/^/| /' conftest.$ac_ext >&5 8380 8381 # Passes both tests. 8382ac_preproc_ok=: 8383break 8384fi 8385 8386rm -f conftest.err conftest.$ac_ext 8387 8388done 8389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8390rm -f conftest.err conftest.$ac_ext 8391if $ac_preproc_ok; then 8392 break 8393fi 8394 8395 done 8396 ac_cv_prog_CXXCPP=$CXXCPP 8397 8398fi 8399 CXXCPP=$ac_cv_prog_CXXCPP 8400else 8401 ac_cv_prog_CXXCPP=$CXXCPP 8402fi 8403{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 8404echo "${ECHO_T}$CXXCPP" >&6; } 8405ac_preproc_ok=false 8406for ac_cxx_preproc_warn_flag in '' yes 8407do 8408 # Use a header file that comes with gcc, so configuring glibc 8409 # with a fresh cross-compiler works. 8410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8411 # <limits.h> exists even on freestanding compilers. 8412 # On the NeXT, cc -E runs the code through the compiler's parser, 8413 # not just through cpp. "Syntax error" is here to catch this case. 8414 cat >conftest.$ac_ext <<_ACEOF 8415/* confdefs.h. */ 8416_ACEOF 8417cat confdefs.h >>conftest.$ac_ext 8418cat >>conftest.$ac_ext <<_ACEOF 8419/* end confdefs.h. */ 8420#ifdef __STDC__ 8421# include <limits.h> 8422#else 8423# include <assert.h> 8424#endif 8425 Syntax error 8426_ACEOF 8427if { (ac_try="$ac_cpp conftest.$ac_ext" 8428case "(($ac_try" in 8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8430 *) ac_try_echo=$ac_try;; 8431esac 8432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8434 ac_status=$? 8435 grep -v '^ *+' conftest.er1 >conftest.err 8436 rm -f conftest.er1 8437 cat conftest.err >&5 8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8439 (exit $ac_status); } >/dev/null && { 8440 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8441 test ! -s conftest.err 8442 }; then 8443 : 8444else 8445 echo "$as_me: failed program was:" >&5 8446sed 's/^/| /' conftest.$ac_ext >&5 8447 8448 # Broken: fails on valid input. 8449continue 8450fi 8451 8452rm -f conftest.err conftest.$ac_ext 8453 8454 # OK, works on sane cases. Now check whether nonexistent headers 8455 # can be detected and how. 8456 cat >conftest.$ac_ext <<_ACEOF 8457/* confdefs.h. */ 8458_ACEOF 8459cat confdefs.h >>conftest.$ac_ext 8460cat >>conftest.$ac_ext <<_ACEOF 8461/* end confdefs.h. */ 8462#include <ac_nonexistent.h> 8463_ACEOF 8464if { (ac_try="$ac_cpp conftest.$ac_ext" 8465case "(($ac_try" in 8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8467 *) ac_try_echo=$ac_try;; 8468esac 8469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 8471 ac_status=$? 8472 grep -v '^ *+' conftest.er1 >conftest.err 8473 rm -f conftest.er1 8474 cat conftest.err >&5 8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8476 (exit $ac_status); } >/dev/null && { 8477 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 8478 test ! -s conftest.err 8479 }; then 8480 # Broken: success on invalid input. 8481continue 8482else 8483 echo "$as_me: failed program was:" >&5 8484sed 's/^/| /' conftest.$ac_ext >&5 8485 8486 # Passes both tests. 8487ac_preproc_ok=: 8488break 8489fi 8490 8491rm -f conftest.err conftest.$ac_ext 8492 8493done 8494# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8495rm -f conftest.err conftest.$ac_ext 8496if $ac_preproc_ok; then 8497 : 8498else 8499 _lt_caught_CXX_error=yes 8500fi 8501 8502ac_ext=cpp 8503ac_cpp='$CXXCPP $CPPFLAGS' 8504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 8507 8508else 8509 _lt_caught_CXX_error=yes 8510fi 8511 8512 8513 8514 8515# Set options 8516 8517 8518 8519 enable_dlopen=no 8520 8521 8522 enable_win32_dll=no 8523 8524 8525 # Check whether --enable-shared was given. 8526if test "${enable_shared+set}" = set; then 8527 enableval=$enable_shared; p=${PACKAGE-default} 8528 case $enableval in 8529 yes) enable_shared=yes ;; 8530 no) enable_shared=no ;; 8531 *) 8532 enable_shared=no 8533 # Look at the argument we got. We use all the common list separators. 8534 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8535 for pkg in $enableval; do 8536 IFS="$lt_save_ifs" 8537 if test "X$pkg" = "X$p"; then 8538 enable_shared=yes 8539 fi 8540 done 8541 IFS="$lt_save_ifs" 8542 ;; 8543 esac 8544else 8545 enable_shared=yes 8546fi 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 # Check whether --enable-static was given. 8557if test "${enable_static+set}" = set; then 8558 enableval=$enable_static; p=${PACKAGE-default} 8559 case $enableval in 8560 yes) enable_static=yes ;; 8561 no) enable_static=no ;; 8562 *) 8563 enable_static=no 8564 # Look at the argument we got. We use all the common list separators. 8565 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8566 for pkg in $enableval; do 8567 IFS="$lt_save_ifs" 8568 if test "X$pkg" = "X$p"; then 8569 enable_static=yes 8570 fi 8571 done 8572 IFS="$lt_save_ifs" 8573 ;; 8574 esac 8575else 8576 enable_static=yes 8577fi 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588# Check whether --with-pic was given. 8589if test "${with_pic+set}" = set; then 8590 withval=$with_pic; pic_mode="$withval" 8591else 8592 pic_mode=default 8593fi 8594 8595 8596test -z "$pic_mode" && pic_mode=default 8597 8598 8599 8600 8601 8602 8603 8604 # Check whether --enable-fast-install was given. 8605if test "${enable_fast_install+set}" = set; then 8606 enableval=$enable_fast_install; p=${PACKAGE-default} 8607 case $enableval in 8608 yes) enable_fast_install=yes ;; 8609 no) enable_fast_install=no ;; 8610 *) 8611 enable_fast_install=no 8612 # Look at the argument we got. We use all the common list separators. 8613 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8614 for pkg in $enableval; do 8615 IFS="$lt_save_ifs" 8616 if test "X$pkg" = "X$p"; then 8617 enable_fast_install=yes 8618 fi 8619 done 8620 IFS="$lt_save_ifs" 8621 ;; 8622 esac 8623else 8624 enable_fast_install=yes 8625fi 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637# This can be used to rebuild libtool when needed 8638LIBTOOL_DEPS="$ltmain" 8639 8640# Always use our own libtool. 8641LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667test -z "$LN_S" && LN_S="ln -s" 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682if test -n "${ZSH_VERSION+set}" ; then 8683 setopt NO_GLOB_SUBST 8684fi 8685 8686{ echo "$as_me:$LINENO: checking for objdir" >&5 8687echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 8688if test "${lt_cv_objdir+set}" = set; then 8689 echo $ECHO_N "(cached) $ECHO_C" >&6 8690else 8691 rm -f .libs 2>/dev/null 8692mkdir .libs 2>/dev/null 8693if test -d .libs; then 8694 lt_cv_objdir=.libs 8695else 8696 # MS-DOS does not allow filenames that begin with a dot. 8697 lt_cv_objdir=_libs 8698fi 8699rmdir .libs 2>/dev/null 8700fi 8701{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 8702echo "${ECHO_T}$lt_cv_objdir" >&6; } 8703objdir=$lt_cv_objdir 8704 8705 8706 8707 8708 8709cat >>confdefs.h <<_ACEOF 8710#define LT_OBJDIR "$lt_cv_objdir/" 8711_ACEOF 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729case $host_os in 8730aix3*) 8731 # AIX sometimes has problems with the GCC collect2 program. For some 8732 # reason, if we set the COLLECT_NAMES environment variable, the problems 8733 # vanish in a puff of smoke. 8734 if test "X${COLLECT_NAMES+set}" != Xset; then 8735 COLLECT_NAMES= 8736 export COLLECT_NAMES 8737 fi 8738 ;; 8739esac 8740 8741# Sed substitution that helps us do robust quoting. It backslashifies 8742# metacharacters that are still active within double-quoted strings. 8743sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 8744 8745# Same as above, but do not quote variable references. 8746double_quote_subst='s/\(["`\\]\)/\\\1/g' 8747 8748# Sed substitution to delay expansion of an escaped shell variable in a 8749# double_quote_subst'ed string. 8750delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 8751 8752# Sed substitution to delay expansion of an escaped single quote. 8753delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8754 8755# Sed substitution to avoid accidental globbing in evaled expressions 8756no_glob_subst='s/\*/\\\*/g' 8757 8758# Global variables: 8759ofile=libtool 8760can_build_shared=yes 8761 8762# All known linkers require a `.a' archive for static linking (except MSVC, 8763# which needs '.lib'). 8764libext=a 8765 8766with_gnu_ld="$lt_cv_prog_gnu_ld" 8767 8768old_CC="$CC" 8769old_CFLAGS="$CFLAGS" 8770 8771# Set sane defaults for various variables 8772test -z "$CC" && CC=cc 8773test -z "$LTCC" && LTCC=$CC 8774test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8775test -z "$LD" && LD=ld 8776test -z "$ac_objext" && ac_objext=o 8777 8778for cc_temp in $compiler""; do 8779 case $cc_temp in 8780 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8781 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8782 \-*) ;; 8783 *) break;; 8784 esac 8785done 8786cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 8787 8788 8789# Only perform the check for file, if the check method requires it 8790test -z "$MAGIC_CMD" && MAGIC_CMD=file 8791case $deplibs_check_method in 8792file_magic*) 8793 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8794 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 8795echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 8796if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8797 echo $ECHO_N "(cached) $ECHO_C" >&6 8798else 8799 case $MAGIC_CMD in 8800[\\/*] | ?:[\\/]*) 8801 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8802 ;; 8803*) 8804 lt_save_MAGIC_CMD="$MAGIC_CMD" 8805 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8806 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8807 for ac_dir in $ac_dummy; do 8808 IFS="$lt_save_ifs" 8809 test -z "$ac_dir" && ac_dir=. 8810 if test -f $ac_dir/${ac_tool_prefix}file; then 8811 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8812 if test -n "$file_magic_test_file"; then 8813 case $deplibs_check_method in 8814 "file_magic "*) 8815 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8817 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8818 $EGREP "$file_magic_regex" > /dev/null; then 8819 : 8820 else 8821 cat <<_LT_EOF 1>&2 8822 8823*** Warning: the command libtool uses to detect shared libraries, 8824*** $file_magic_cmd, produces output that libtool cannot recognize. 8825*** The result is that libtool may fail to recognize shared libraries 8826*** as such. This will affect the creation of libtool libraries that 8827*** depend on shared libraries, but programs linked with such libtool 8828*** libraries will work regardless of this problem. Nevertheless, you 8829*** may want to report the problem to your system manager and/or to 8830*** bug-libtool@gnu.org 8831 8832_LT_EOF 8833 fi ;; 8834 esac 8835 fi 8836 break 8837 fi 8838 done 8839 IFS="$lt_save_ifs" 8840 MAGIC_CMD="$lt_save_MAGIC_CMD" 8841 ;; 8842esac 8843fi 8844 8845MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8846if test -n "$MAGIC_CMD"; then 8847 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8848echo "${ECHO_T}$MAGIC_CMD" >&6; } 8849else 8850 { echo "$as_me:$LINENO: result: no" >&5 8851echo "${ECHO_T}no" >&6; } 8852fi 8853 8854 8855 8856 8857 8858if test -z "$lt_cv_path_MAGIC_CMD"; then 8859 if test -n "$ac_tool_prefix"; then 8860 { echo "$as_me:$LINENO: checking for file" >&5 8861echo $ECHO_N "checking for file... $ECHO_C" >&6; } 8862if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8863 echo $ECHO_N "(cached) $ECHO_C" >&6 8864else 8865 case $MAGIC_CMD in 8866[\\/*] | ?:[\\/]*) 8867 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8868 ;; 8869*) 8870 lt_save_MAGIC_CMD="$MAGIC_CMD" 8871 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8872 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8873 for ac_dir in $ac_dummy; do 8874 IFS="$lt_save_ifs" 8875 test -z "$ac_dir" && ac_dir=. 8876 if test -f $ac_dir/file; then 8877 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8878 if test -n "$file_magic_test_file"; then 8879 case $deplibs_check_method in 8880 "file_magic "*) 8881 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8882 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8883 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8884 $EGREP "$file_magic_regex" > /dev/null; then 8885 : 8886 else 8887 cat <<_LT_EOF 1>&2 8888 8889*** Warning: the command libtool uses to detect shared libraries, 8890*** $file_magic_cmd, produces output that libtool cannot recognize. 8891*** The result is that libtool may fail to recognize shared libraries 8892*** as such. This will affect the creation of libtool libraries that 8893*** depend on shared libraries, but programs linked with such libtool 8894*** libraries will work regardless of this problem. Nevertheless, you 8895*** may want to report the problem to your system manager and/or to 8896*** bug-libtool@gnu.org 8897 8898_LT_EOF 8899 fi ;; 8900 esac 8901 fi 8902 break 8903 fi 8904 done 8905 IFS="$lt_save_ifs" 8906 MAGIC_CMD="$lt_save_MAGIC_CMD" 8907 ;; 8908esac 8909fi 8910 8911MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8912if test -n "$MAGIC_CMD"; then 8913 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 8914echo "${ECHO_T}$MAGIC_CMD" >&6; } 8915else 8916 { echo "$as_me:$LINENO: result: no" >&5 8917echo "${ECHO_T}no" >&6; } 8918fi 8919 8920 8921 else 8922 MAGIC_CMD=: 8923 fi 8924fi 8925 8926 fi 8927 ;; 8928esac 8929 8930# Use C for the default configuration in the libtool script 8931 8932lt_save_CC="$CC" 8933ac_ext=c 8934ac_cpp='$CPP $CPPFLAGS' 8935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8937ac_compiler_gnu=$ac_cv_c_compiler_gnu 8938 8939 8940# Source file extension for C test sources. 8941ac_ext=c 8942 8943# Object file extension for compiled C test sources. 8944objext=o 8945objext=$objext 8946 8947# Code to be used in simple compile tests 8948lt_simple_compile_test_code="int some_variable = 0;" 8949 8950# Code to be used in simple link tests 8951lt_simple_link_test_code='int main(){return(0);}' 8952 8953 8954 8955 8956 8957 8958 8959# If no C compiler was specified, use CC. 8960LTCC=${LTCC-"$CC"} 8961 8962# If no C compiler flags were specified, use CFLAGS. 8963LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8964 8965# Allow CC to be a program name with arguments. 8966compiler=$CC 8967 8968# Save the default compiler, since it gets overwritten when the other 8969# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8970compiler_DEFAULT=$CC 8971 8972# save warnings/boilerplate of simple test code 8973ac_outfile=conftest.$ac_objext 8974echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8975eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8976_lt_compiler_boilerplate=`cat conftest.err` 8977$RM conftest* 8978 8979ac_outfile=conftest.$ac_objext 8980echo "$lt_simple_link_test_code" >conftest.$ac_ext 8981eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8982_lt_linker_boilerplate=`cat conftest.err` 8983$RM -r conftest* 8984 8985 8986## CAVEAT EMPTOR: 8987## There is no encapsulation within the following macros, do not change 8988## the running order or otherwise move them around unless you know exactly 8989## what you are doing... 8990if test -n "$compiler"; then 8991 8992lt_prog_compiler_no_builtin_flag= 8993 8994if test "$GCC" = yes; then 8995 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 8996 8997 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8998echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 8999if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 9000 echo $ECHO_N "(cached) $ECHO_C" >&6 9001else 9002 lt_cv_prog_compiler_rtti_exceptions=no 9003 ac_outfile=conftest.$ac_objext 9004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9005 lt_compiler_flag="-fno-rtti -fno-exceptions" 9006 # Insert the option either (1) after the last *FLAGS variable, or 9007 # (2) before a word containing "conftest.", or (3) at the end. 9008 # Note that $ac_compile itself does not contain backslashes and begins 9009 # with a dollar sign (not a hyphen), so the echo should work correctly. 9010 # The option is referenced via a variable to avoid confusing sed. 9011 lt_compile=`echo "$ac_compile" | $SED \ 9012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9014 -e 's:$: $lt_compiler_flag:'` 9015 (eval echo "\"\$as_me:9015: $lt_compile\"" >&5) 9016 (eval "$lt_compile" 2>conftest.err) 9017 ac_status=$? 9018 cat conftest.err >&5 9019 echo "$as_me:9019: \$? = $ac_status" >&5 9020 if (exit $ac_status) && test -s "$ac_outfile"; then 9021 # The compiler can only warn and ignore the option if not recognized 9022 # So say no if there are warnings other than the usual output. 9023 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9025 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9026 lt_cv_prog_compiler_rtti_exceptions=yes 9027 fi 9028 fi 9029 $RM conftest* 9030 9031fi 9032{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9033echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9034 9035if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9036 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9037else 9038 : 9039fi 9040 9041fi 9042 9043 9044 9045 9046 9047 9048 lt_prog_compiler_wl= 9049lt_prog_compiler_pic= 9050lt_prog_compiler_static= 9051 9052{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 9053echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 9054 9055 if test "$GCC" = yes; then 9056 lt_prog_compiler_wl='-Wl,' 9057 lt_prog_compiler_static='-static' 9058 9059 case $host_os in 9060 aix*) 9061 # All AIX code is PIC. 9062 if test "$host_cpu" = ia64; then 9063 # AIX 5 now supports IA64 processor 9064 lt_prog_compiler_static='-Bstatic' 9065 fi 9066 ;; 9067 9068 amigaos*) 9069 case $host_cpu in 9070 powerpc) 9071 # see comment about AmigaOS4 .so support 9072 lt_prog_compiler_pic='-fPIC' 9073 ;; 9074 m68k) 9075 # FIXME: we need at least 68020 code to build shared libraries, but 9076 # adding the `-m68020' flag to GCC prevents building anything better, 9077 # like `-m68040'. 9078 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9079 ;; 9080 esac 9081 ;; 9082 9083 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9084 # PIC is the default for these OSes. 9085 ;; 9086 9087 mingw* | cygwin* | pw32* | os2*) 9088 # This hack is so that the source file can tell whether it is being 9089 # built for inclusion in a dll (and should export symbols for example). 9090 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9091 # (--disable-auto-import) libraries 9092 lt_prog_compiler_pic='-DDLL_EXPORT' 9093 ;; 9094 9095 darwin* | rhapsody*) 9096 # PIC is the default on this platform 9097 # Common symbols not allowed in MH_DYLIB files 9098 lt_prog_compiler_pic='-fno-common' 9099 ;; 9100 9101 hpux*) 9102 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9103 # not for PA HP-UX. 9104 case $host_cpu in 9105 hppa*64*|ia64*) 9106 # +Z the default 9107 ;; 9108 *) 9109 lt_prog_compiler_pic='-fPIC' 9110 ;; 9111 esac 9112 ;; 9113 9114 interix[3-9]*) 9115 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9116 # Instead, we relocate shared libraries at runtime. 9117 ;; 9118 9119 msdosdjgpp*) 9120 # Just because we use GCC doesn't mean we suddenly get shared libraries 9121 # on systems that don't support them. 9122 lt_prog_compiler_can_build_shared=no 9123 enable_shared=no 9124 ;; 9125 9126 *nto* | *qnx*) 9127 # QNX uses GNU C++, but need to define -shared option too, otherwise 9128 # it will coredump. 9129 lt_prog_compiler_pic='-fPIC -shared' 9130 ;; 9131 9132 sysv4*MP*) 9133 if test -d /usr/nec; then 9134 lt_prog_compiler_pic=-Kconform_pic 9135 fi 9136 ;; 9137 9138 *) 9139 lt_prog_compiler_pic='-fPIC' 9140 ;; 9141 esac 9142 else 9143 # PORTME Check for flag to pass linker flags through the system compiler. 9144 case $host_os in 9145 aix*) 9146 lt_prog_compiler_wl='-Wl,' 9147 if test "$host_cpu" = ia64; then 9148 # AIX 5 now supports IA64 processor 9149 lt_prog_compiler_static='-Bstatic' 9150 else 9151 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9152 fi 9153 ;; 9154 9155 mingw* | cygwin* | pw32* | os2*) 9156 # This hack is so that the source file can tell whether it is being 9157 # built for inclusion in a dll (and should export symbols for example). 9158 lt_prog_compiler_pic='-DDLL_EXPORT' 9159 ;; 9160 9161 hpux9* | hpux10* | hpux11*) 9162 lt_prog_compiler_wl='-Wl,' 9163 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9164 # not for PA HP-UX. 9165 case $host_cpu in 9166 hppa*64*|ia64*) 9167 # +Z the default 9168 ;; 9169 *) 9170 lt_prog_compiler_pic='+Z' 9171 ;; 9172 esac 9173 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9174 lt_prog_compiler_static='${wl}-a ${wl}archive' 9175 ;; 9176 9177 irix5* | irix6* | nonstopux*) 9178 lt_prog_compiler_wl='-Wl,' 9179 # PIC (with -KPIC) is the default. 9180 lt_prog_compiler_static='-non_shared' 9181 ;; 9182 9183 linux* | k*bsd*-gnu) 9184 case $cc_basename in 9185 icc* | ecc* | ifort*) 9186 lt_prog_compiler_wl='-Wl,' 9187 lt_prog_compiler_pic='-KPIC' 9188 lt_prog_compiler_static='-static' 9189 ;; 9190 pgcc* | pgf77* | pgf90* | pgf95*) 9191 # Portland Group compilers (*not* the Pentium gcc compiler, 9192 # which looks to be a dead project) 9193 lt_prog_compiler_wl='-Wl,' 9194 lt_prog_compiler_pic='-fpic' 9195 lt_prog_compiler_static='-Bstatic' 9196 ;; 9197 ccc*) 9198 lt_prog_compiler_wl='-Wl,' 9199 # All Alpha code is PIC. 9200 lt_prog_compiler_static='-non_shared' 9201 ;; 9202 xl*) 9203 # IBM XL C 8.0/Fortran 10.1 on PPC 9204 lt_prog_compiler_wl='-Wl,' 9205 lt_prog_compiler_pic='-qpic' 9206 lt_prog_compiler_static='-qstaticlink' 9207 ;; 9208 *) 9209 case `$CC -V 2>&1 | sed 5q` in 9210 *Sun\ C*) 9211 # Sun C 5.9 9212 lt_prog_compiler_pic='-KPIC' 9213 lt_prog_compiler_static='-Bstatic' 9214 lt_prog_compiler_wl='-Wl,' 9215 ;; 9216 *Sun\ F*) 9217 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9218 lt_prog_compiler_pic='-KPIC' 9219 lt_prog_compiler_static='-Bstatic' 9220 lt_prog_compiler_wl='' 9221 ;; 9222 esac 9223 ;; 9224 esac 9225 ;; 9226 9227 newsos6) 9228 lt_prog_compiler_pic='-KPIC' 9229 lt_prog_compiler_static='-Bstatic' 9230 ;; 9231 9232 *nto* | *qnx*) 9233 # QNX uses GNU C++, but need to define -shared option too, otherwise 9234 # it will coredump. 9235 lt_prog_compiler_pic='-fPIC -shared' 9236 ;; 9237 9238 osf3* | osf4* | osf5*) 9239 lt_prog_compiler_wl='-Wl,' 9240 # All OSF/1 code is PIC. 9241 lt_prog_compiler_static='-non_shared' 9242 ;; 9243 9244 rdos*) 9245 lt_prog_compiler_static='-non_shared' 9246 ;; 9247 9248 solaris*) 9249 lt_prog_compiler_pic='-KPIC' 9250 lt_prog_compiler_static='-Bstatic' 9251 case $cc_basename in 9252 f77* | f90* | f95*) 9253 lt_prog_compiler_wl='-Qoption ld ';; 9254 *) 9255 lt_prog_compiler_wl='-Wl,';; 9256 esac 9257 ;; 9258 9259 sunos4*) 9260 lt_prog_compiler_wl='-Qoption ld ' 9261 lt_prog_compiler_pic='-PIC' 9262 lt_prog_compiler_static='-Bstatic' 9263 ;; 9264 9265 sysv4 | sysv4.2uw2* | sysv4.3*) 9266 lt_prog_compiler_wl='-Wl,' 9267 lt_prog_compiler_pic='-KPIC' 9268 lt_prog_compiler_static='-Bstatic' 9269 ;; 9270 9271 sysv4*MP*) 9272 if test -d /usr/nec ;then 9273 lt_prog_compiler_pic='-Kconform_pic' 9274 lt_prog_compiler_static='-Bstatic' 9275 fi 9276 ;; 9277 9278 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9279 lt_prog_compiler_wl='-Wl,' 9280 lt_prog_compiler_pic='-KPIC' 9281 lt_prog_compiler_static='-Bstatic' 9282 ;; 9283 9284 unicos*) 9285 lt_prog_compiler_wl='-Wl,' 9286 lt_prog_compiler_can_build_shared=no 9287 ;; 9288 9289 uts4*) 9290 lt_prog_compiler_pic='-pic' 9291 lt_prog_compiler_static='-Bstatic' 9292 ;; 9293 9294 *) 9295 lt_prog_compiler_can_build_shared=no 9296 ;; 9297 esac 9298 fi 9299 9300case $host_os in 9301 # For platforms which do not support PIC, -DPIC is meaningless: 9302 *djgpp*) 9303 lt_prog_compiler_pic= 9304 ;; 9305 *) 9306 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9307 ;; 9308esac 9309{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 9310echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 9311 9312 9313 9314 9315 9316 9317# 9318# Check to make sure the PIC flag actually works. 9319# 9320if test -n "$lt_prog_compiler_pic"; then 9321 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9322echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 9323if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 9324 echo $ECHO_N "(cached) $ECHO_C" >&6 9325else 9326 lt_cv_prog_compiler_pic_works=no 9327 ac_outfile=conftest.$ac_objext 9328 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9329 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9330 # Insert the option either (1) after the last *FLAGS variable, or 9331 # (2) before a word containing "conftest.", or (3) at the end. 9332 # Note that $ac_compile itself does not contain backslashes and begins 9333 # with a dollar sign (not a hyphen), so the echo should work correctly. 9334 # The option is referenced via a variable to avoid confusing sed. 9335 lt_compile=`echo "$ac_compile" | $SED \ 9336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9338 -e 's:$: $lt_compiler_flag:'` 9339 (eval echo "\"\$as_me:9339: $lt_compile\"" >&5) 9340 (eval "$lt_compile" 2>conftest.err) 9341 ac_status=$? 9342 cat conftest.err >&5 9343 echo "$as_me:9343: \$? = $ac_status" >&5 9344 if (exit $ac_status) && test -s "$ac_outfile"; then 9345 # The compiler can only warn and ignore the option if not recognized 9346 # So say no if there are warnings other than the usual output. 9347 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 9348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9349 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9350 lt_cv_prog_compiler_pic_works=yes 9351 fi 9352 fi 9353 $RM conftest* 9354 9355fi 9356{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 9357echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 9358 9359if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9360 case $lt_prog_compiler_pic in 9361 "" | " "*) ;; 9362 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9363 esac 9364else 9365 lt_prog_compiler_pic= 9366 lt_prog_compiler_can_build_shared=no 9367fi 9368 9369fi 9370 9371 9372 9373 9374 9375 9376# 9377# Check to make sure the static flag actually works. 9378# 9379wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9380{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9381echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 9382if test "${lt_cv_prog_compiler_static_works+set}" = set; then 9383 echo $ECHO_N "(cached) $ECHO_C" >&6 9384else 9385 lt_cv_prog_compiler_static_works=no 9386 save_LDFLAGS="$LDFLAGS" 9387 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9388 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9389 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9390 # The linker can only warn and ignore the option if not recognized 9391 # So say no if there are warnings 9392 if test -s conftest.err; then 9393 # Append any errors to the config.log. 9394 cat conftest.err 1>&5 9395 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 9396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9397 if diff conftest.exp conftest.er2 >/dev/null; then 9398 lt_cv_prog_compiler_static_works=yes 9399 fi 9400 else 9401 lt_cv_prog_compiler_static_works=yes 9402 fi 9403 fi 9404 $RM -r conftest* 9405 LDFLAGS="$save_LDFLAGS" 9406 9407fi 9408{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 9409echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 9410 9411if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9412 : 9413else 9414 lt_prog_compiler_static= 9415fi 9416 9417 9418 9419 9420 9421 9422 9423 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9424echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 9425if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9426 echo $ECHO_N "(cached) $ECHO_C" >&6 9427else 9428 lt_cv_prog_compiler_c_o=no 9429 $RM -r conftest 2>/dev/null 9430 mkdir conftest 9431 cd conftest 9432 mkdir out 9433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9434 9435 lt_compiler_flag="-o out/conftest2.$ac_objext" 9436 # Insert the option either (1) after the last *FLAGS variable, or 9437 # (2) before a word containing "conftest.", or (3) at the end. 9438 # Note that $ac_compile itself does not contain backslashes and begins 9439 # with a dollar sign (not a hyphen), so the echo should work correctly. 9440 lt_compile=`echo "$ac_compile" | $SED \ 9441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9443 -e 's:$: $lt_compiler_flag:'` 9444 (eval echo "\"\$as_me:9444: $lt_compile\"" >&5) 9445 (eval "$lt_compile" 2>out/conftest.err) 9446 ac_status=$? 9447 cat out/conftest.err >&5 9448 echo "$as_me:9448: \$? = $ac_status" >&5 9449 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9450 then 9451 # The compiler can only warn and ignore the option if not recognized 9452 # So say no if there are warnings 9453 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9454 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9455 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9456 lt_cv_prog_compiler_c_o=yes 9457 fi 9458 fi 9459 chmod u+w . 2>&5 9460 $RM conftest* 9461 # SGI C++ compiler will create directory out/ii_files/ for 9462 # template instantiation 9463 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9464 $RM out/* && rmdir out 9465 cd .. 9466 $RM -r conftest 9467 $RM conftest* 9468 9469fi 9470{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9471echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 9472 9473 9474 9475 9476 9477 9478 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 9479echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 9480if test "${lt_cv_prog_compiler_c_o+set}" = set; then 9481 echo $ECHO_N "(cached) $ECHO_C" >&6 9482else 9483 lt_cv_prog_compiler_c_o=no 9484 $RM -r conftest 2>/dev/null 9485 mkdir conftest 9486 cd conftest 9487 mkdir out 9488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9489 9490 lt_compiler_flag="-o out/conftest2.$ac_objext" 9491 # Insert the option either (1) after the last *FLAGS variable, or 9492 # (2) before a word containing "conftest.", or (3) at the end. 9493 # Note that $ac_compile itself does not contain backslashes and begins 9494 # with a dollar sign (not a hyphen), so the echo should work correctly. 9495 lt_compile=`echo "$ac_compile" | $SED \ 9496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9498 -e 's:$: $lt_compiler_flag:'` 9499 (eval echo "\"\$as_me:9499: $lt_compile\"" >&5) 9500 (eval "$lt_compile" 2>out/conftest.err) 9501 ac_status=$? 9502 cat out/conftest.err >&5 9503 echo "$as_me:9503: \$? = $ac_status" >&5 9504 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9505 then 9506 # The compiler can only warn and ignore the option if not recognized 9507 # So say no if there are warnings 9508 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 9509 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9510 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9511 lt_cv_prog_compiler_c_o=yes 9512 fi 9513 fi 9514 chmod u+w . 2>&5 9515 $RM conftest* 9516 # SGI C++ compiler will create directory out/ii_files/ for 9517 # template instantiation 9518 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9519 $RM out/* && rmdir out 9520 cd .. 9521 $RM -r conftest 9522 $RM conftest* 9523 9524fi 9525{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 9526echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 9527 9528 9529 9530 9531hard_links="nottested" 9532if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9533 # do not overwrite the value of need_locks provided by the user 9534 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 9535echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 9536 hard_links=yes 9537 $RM conftest* 9538 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9539 touch conftest.a 9540 ln conftest.a conftest.b 2>&5 || hard_links=no 9541 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9542 { echo "$as_me:$LINENO: result: $hard_links" >&5 9543echo "${ECHO_T}$hard_links" >&6; } 9544 if test "$hard_links" = no; then 9545 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9546echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9547 need_locks=warn 9548 fi 9549else 9550 need_locks=no 9551fi 9552 9553 9554 9555 9556 9557 9558 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9559echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 9560 9561 runpath_var= 9562 allow_undefined_flag= 9563 always_export_symbols=no 9564 archive_cmds= 9565 archive_expsym_cmds= 9566 compiler_needs_object=no 9567 enable_shared_with_static_runtimes=no 9568 export_dynamic_flag_spec= 9569 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9570 hardcode_automatic=no 9571 hardcode_direct=no 9572 hardcode_direct_absolute=no 9573 hardcode_libdir_flag_spec= 9574 hardcode_libdir_flag_spec_ld= 9575 hardcode_libdir_separator= 9576 hardcode_minus_L=no 9577 hardcode_shlibpath_var=unsupported 9578 inherit_rpath=no 9579 link_all_deplibs=unknown 9580 module_cmds= 9581 module_expsym_cmds= 9582 old_archive_from_new_cmds= 9583 old_archive_from_expsyms_cmds= 9584 thread_safe_flag_spec= 9585 whole_archive_flag_spec= 9586 # include_expsyms should be a list of space-separated symbols to be *always* 9587 # included in the symbol list 9588 include_expsyms= 9589 # exclude_expsyms can be an extended regexp of symbols to exclude 9590 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9591 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9592 # as well as any symbol that contains `d'. 9593 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9594 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9595 # platforms (ab)use it in PIC code, but their linkers get confused if 9596 # the symbol is explicitly referenced. Since portable code cannot 9597 # rely on this symbol name, it's probably fine to never include it in 9598 # preloaded symbol tables. 9599 # Exclude shared library initialization/finalization symbols. 9600 extract_expsyms_cmds= 9601 9602 case $host_os in 9603 cygwin* | mingw* | pw32*) 9604 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9605 # When not using gcc, we currently assume that we are using 9606 # Microsoft Visual C++. 9607 if test "$GCC" != yes; then 9608 with_gnu_ld=no 9609 fi 9610 ;; 9611 interix*) 9612 # we just hope/assume this is gcc and not c89 (= MSVC++) 9613 with_gnu_ld=yes 9614 ;; 9615 openbsd*) 9616 with_gnu_ld=no 9617 ;; 9618 esac 9619 9620 ld_shlibs=yes 9621 if test "$with_gnu_ld" = yes; then 9622 # If archive_cmds runs LD, not CC, wlarc should be empty 9623 wlarc='${wl}' 9624 9625 # Set some defaults for GNU ld with shared library support. These 9626 # are reset later if shared libraries are not supported. Putting them 9627 # here allows them to be overridden if necessary. 9628 runpath_var=LD_RUN_PATH 9629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9630 export_dynamic_flag_spec='${wl}--export-dynamic' 9631 # ancient GNU ld didn't support --whole-archive et. al. 9632 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9633 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9634 else 9635 whole_archive_flag_spec= 9636 fi 9637 supports_anon_versioning=no 9638 case `$LD -v 2>&1` in 9639 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9640 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9641 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9642 *\ 2.11.*) ;; # other 2.11 versions 9643 *) supports_anon_versioning=yes ;; 9644 esac 9645 9646 # See if GNU ld supports shared libraries. 9647 case $host_os in 9648 aix[3-9]*) 9649 # On AIX/PPC, the GNU linker is very broken 9650 if test "$host_cpu" != ia64; then 9651 ld_shlibs=no 9652 cat <<_LT_EOF 1>&2 9653 9654*** Warning: the GNU linker, at least up to release 2.9.1, is reported 9655*** to be unable to reliably create shared libraries on AIX. 9656*** Therefore, libtool is disabling shared libraries support. If you 9657*** really care for shared libraries, you may want to modify your PATH 9658*** so that a non-GNU linker is found, and then restart. 9659 9660_LT_EOF 9661 fi 9662 ;; 9663 9664 amigaos*) 9665 case $host_cpu in 9666 powerpc) 9667 # see comment about AmigaOS4 .so support 9668 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9669 archive_expsym_cmds='' 9670 ;; 9671 m68k) 9672 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)' 9673 hardcode_libdir_flag_spec='-L$libdir' 9674 hardcode_minus_L=yes 9675 ;; 9676 esac 9677 ;; 9678 9679 beos*) 9680 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9681 allow_undefined_flag=unsupported 9682 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9683 # support --undefined. This deserves some investigation. FIXME 9684 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9685 else 9686 ld_shlibs=no 9687 fi 9688 ;; 9689 9690 cygwin* | mingw* | pw32*) 9691 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9692 # as there is no search path for DLLs. 9693 hardcode_libdir_flag_spec='-L$libdir' 9694 allow_undefined_flag=unsupported 9695 always_export_symbols=no 9696 enable_shared_with_static_runtimes=yes 9697 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9698 9699 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9701 # If the export-symbols file already is a .def file (1st line 9702 # is EXPORTS), use it as is; otherwise, prepend... 9703 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9704 cp $export_symbols $output_objdir/$soname.def; 9705 else 9706 echo EXPORTS > $output_objdir/$soname.def; 9707 cat $export_symbols >> $output_objdir/$soname.def; 9708 fi~ 9709 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9710 else 9711 ld_shlibs=no 9712 fi 9713 ;; 9714 9715 interix[3-9]*) 9716 hardcode_direct=no 9717 hardcode_shlibpath_var=no 9718 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9719 export_dynamic_flag_spec='${wl}-E' 9720 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9721 # Instead, shared libraries are loaded at an image base (0x10000000 by 9722 # default) and relocated if they conflict, which is a slow very memory 9723 # consuming and fragmenting process. To avoid this, we pick a random, 9724 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9725 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9726 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9727 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' 9728 ;; 9729 9730 gnu* | linux* | tpf* | k*bsd*-gnu) 9731 tmp_diet=no 9732 if test "$host_os" = linux-dietlibc; then 9733 case $cc_basename in 9734 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9735 esac 9736 fi 9737 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9738 && test "$tmp_diet" = no 9739 then 9740 tmp_addflag= 9741 tmp_sharedflag='-shared' 9742 case $cc_basename,$host_cpu in 9743 pgcc*) # Portland Group C compiler 9744 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9745 tmp_addflag=' $pic_flag' 9746 ;; 9747 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 9748 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9749 tmp_addflag=' $pic_flag -Mnomain' ;; 9750 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9751 tmp_addflag=' -i_dynamic' ;; 9752 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9753 tmp_addflag=' -i_dynamic -nofor_main' ;; 9754 ifc* | ifort*) # Intel Fortran compiler 9755 tmp_addflag=' -nofor_main' ;; 9756 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9757 tmp_sharedflag='-qmkshrobj' 9758 tmp_addflag= ;; 9759 esac 9760 case `$CC -V 2>&1 | sed 5q` in 9761 *Sun\ C*) # Sun C 5.9 9762 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9763 compiler_needs_object=yes 9764 tmp_sharedflag='-G' ;; 9765 *Sun\ F*) # Sun Fortran 8.3 9766 tmp_sharedflag='-G' ;; 9767 esac 9768 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9769 9770 if test "x$supports_anon_versioning" = xyes; then 9771 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9773 echo "local: *; };" >> $output_objdir/$libname.ver~ 9774 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9775 fi 9776 9777 case $cc_basename in 9778 xlf*) 9779 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9780 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9781 hardcode_libdir_flag_spec= 9782 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9783 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9784 if test "x$supports_anon_versioning" = xyes; then 9785 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9787 echo "local: *; };" >> $output_objdir/$libname.ver~ 9788 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9789 fi 9790 ;; 9791 esac 9792 else 9793 ld_shlibs=no 9794 fi 9795 ;; 9796 9797 netbsd*) 9798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9799 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9800 wlarc= 9801 else 9802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9803 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9804 fi 9805 ;; 9806 9807 solaris*) 9808 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9809 ld_shlibs=no 9810 cat <<_LT_EOF 1>&2 9811 9812*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9813*** create shared libraries on Solaris systems. Therefore, libtool 9814*** is disabling shared libraries support. We urge you to upgrade GNU 9815*** binutils to release 2.9.1 or newer. Another option is to modify 9816*** your PATH or compiler configuration so that the native linker is 9817*** used, and then restart. 9818 9819_LT_EOF 9820 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9822 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9823 else 9824 ld_shlibs=no 9825 fi 9826 ;; 9827 9828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9829 case `$LD -v 2>&1` in 9830 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9831 ld_shlibs=no 9832 cat <<_LT_EOF 1>&2 9833 9834*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9835*** reliably create shared libraries on SCO systems. Therefore, libtool 9836*** is disabling shared libraries support. We urge you to upgrade GNU 9837*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9838*** your PATH or compiler configuration so that the native linker is 9839*** used, and then restart. 9840 9841_LT_EOF 9842 ;; 9843 *) 9844 # For security reasons, it is highly recommended that you always 9845 # use absolute paths for naming shared libraries, and exclude the 9846 # DT_RUNPATH tag from executables and libraries. But doing so 9847 # requires that you compile everything twice, which is a pain. 9848 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9852 else 9853 ld_shlibs=no 9854 fi 9855 ;; 9856 esac 9857 ;; 9858 9859 sunos4*) 9860 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9861 wlarc= 9862 hardcode_direct=yes 9863 hardcode_shlibpath_var=no 9864 ;; 9865 9866 *) 9867 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9870 else 9871 ld_shlibs=no 9872 fi 9873 ;; 9874 esac 9875 9876 if test "$ld_shlibs" = no; then 9877 runpath_var= 9878 hardcode_libdir_flag_spec= 9879 export_dynamic_flag_spec= 9880 whole_archive_flag_spec= 9881 fi 9882 else 9883 # PORTME fill in a description of your system's linker (not GNU ld) 9884 case $host_os in 9885 aix3*) 9886 allow_undefined_flag=unsupported 9887 always_export_symbols=yes 9888 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' 9889 # Note: this linker hardcodes the directories in LIBPATH if there 9890 # are no directories specified by -L. 9891 hardcode_minus_L=yes 9892 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9893 # Neither direct hardcoding nor static linking is supported with a 9894 # broken collect2. 9895 hardcode_direct=unsupported 9896 fi 9897 ;; 9898 9899 aix[4-9]*) 9900 if test "$host_cpu" = ia64; then 9901 # On IA64, the linker does run time linking by default, so we don't 9902 # have to do anything special. 9903 aix_use_runtimelinking=no 9904 exp_sym_flag='-Bexport' 9905 no_entry_flag="" 9906 else 9907 # If we're using GNU nm, then we don't want the "-C" option. 9908 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9909 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9910 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9911 else 9912 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9913 fi 9914 aix_use_runtimelinking=no 9915 9916 # Test if we are trying to use run time linking or normal 9917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9918 # need to do runtime linking. 9919 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9920 for ld_flag in $LDFLAGS; do 9921 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9922 aix_use_runtimelinking=yes 9923 break 9924 fi 9925 done 9926 ;; 9927 esac 9928 9929 exp_sym_flag='-bexport' 9930 no_entry_flag='-bnoentry' 9931 fi 9932 9933 # When large executables or shared objects are built, AIX ld can 9934 # have problems creating the table of contents. If linking a library 9935 # or program results in "error TOC overflow" add -mminimal-toc to 9936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9938 9939 archive_cmds='' 9940 hardcode_direct=yes 9941 hardcode_direct_absolute=yes 9942 hardcode_libdir_separator=':' 9943 link_all_deplibs=yes 9944 file_list_spec='${wl}-f,' 9945 9946 if test "$GCC" = yes; then 9947 case $host_os in aix4.[012]|aix4.[012].*) 9948 # We only want to do this on AIX 4.2 and lower, the check 9949 # below for broken collect2 doesn't work under 4.3+ 9950 collect2name=`${CC} -print-prog-name=collect2` 9951 if test -f "$collect2name" && 9952 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9953 then 9954 # We have reworked collect2 9955 : 9956 else 9957 # We have old collect2 9958 hardcode_direct=unsupported 9959 # It fails to find uninstalled libraries when the uninstalled 9960 # path is not listed in the libpath. Setting hardcode_minus_L 9961 # to unsupported forces relinking 9962 hardcode_minus_L=yes 9963 hardcode_libdir_flag_spec='-L$libdir' 9964 hardcode_libdir_separator= 9965 fi 9966 ;; 9967 esac 9968 shared_flag='-shared' 9969 if test "$aix_use_runtimelinking" = yes; then 9970 shared_flag="$shared_flag "'${wl}-G' 9971 fi 9972 else 9973 # not using gcc 9974 if test "$host_cpu" = ia64; then 9975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9976 # chokes on -Wl,-G. The following line is correct: 9977 shared_flag='-G' 9978 else 9979 if test "$aix_use_runtimelinking" = yes; then 9980 shared_flag='${wl}-G' 9981 else 9982 shared_flag='${wl}-bM:SRE' 9983 fi 9984 fi 9985 fi 9986 9987 # It seems that -bexpall does not export symbols beginning with 9988 # underscore (_), so it is better to generate a list of symbols to export. 9989 always_export_symbols=yes 9990 if test "$aix_use_runtimelinking" = yes; then 9991 # Warning - without using the other runtime loading flags (-brtl), 9992 # -berok will link without error, but may produce a broken library. 9993 allow_undefined_flag='-berok' 9994 # Determine the default libpath from the value encoded in an 9995 # empty executable. 9996 cat >conftest.$ac_ext <<_ACEOF 9997/* confdefs.h. */ 9998_ACEOF 9999cat confdefs.h >>conftest.$ac_ext 10000cat >>conftest.$ac_ext <<_ACEOF 10001/* end confdefs.h. */ 10002 10003int 10004main () 10005{ 10006 10007 ; 10008 return 0; 10009} 10010_ACEOF 10011rm -f conftest.$ac_objext conftest$ac_exeext 10012if { (ac_try="$ac_link" 10013case "(($ac_try" in 10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10015 *) ac_try_echo=$ac_try;; 10016esac 10017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10018 (eval "$ac_link") 2>conftest.er1 10019 ac_status=$? 10020 grep -v '^ *+' conftest.er1 >conftest.err 10021 rm -f conftest.er1 10022 cat conftest.err >&5 10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10024 (exit $ac_status); } && { 10025 test -z "$ac_c_werror_flag" || 10026 test ! -s conftest.err 10027 } && test -s conftest$ac_exeext && 10028 $as_test_x conftest$ac_exeext; then 10029 10030lt_aix_libpath_sed=' 10031 /Import File Strings/,/^$/ { 10032 /^0/ { 10033 s/^0 *\(.*\)$/\1/ 10034 p 10035 } 10036 }' 10037aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10038# Check for a 64-bit object if we didn't find anything. 10039if test -z "$aix_libpath"; then 10040 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10041fi 10042else 10043 echo "$as_me: failed program was:" >&5 10044sed 's/^/| /' conftest.$ac_ext >&5 10045 10046 10047fi 10048 10049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10050 conftest$ac_exeext conftest.$ac_ext 10051if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10052 10053 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10054 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10055 else 10056 if test "$host_cpu" = ia64; then 10057 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10058 allow_undefined_flag="-z nodefs" 10059 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" 10060 else 10061 # Determine the default libpath from the value encoded in an 10062 # empty executable. 10063 cat >conftest.$ac_ext <<_ACEOF 10064/* confdefs.h. */ 10065_ACEOF 10066cat confdefs.h >>conftest.$ac_ext 10067cat >>conftest.$ac_ext <<_ACEOF 10068/* end confdefs.h. */ 10069 10070int 10071main () 10072{ 10073 10074 ; 10075 return 0; 10076} 10077_ACEOF 10078rm -f conftest.$ac_objext conftest$ac_exeext 10079if { (ac_try="$ac_link" 10080case "(($ac_try" in 10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10082 *) ac_try_echo=$ac_try;; 10083esac 10084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10085 (eval "$ac_link") 2>conftest.er1 10086 ac_status=$? 10087 grep -v '^ *+' conftest.er1 >conftest.err 10088 rm -f conftest.er1 10089 cat conftest.err >&5 10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10091 (exit $ac_status); } && { 10092 test -z "$ac_c_werror_flag" || 10093 test ! -s conftest.err 10094 } && test -s conftest$ac_exeext && 10095 $as_test_x conftest$ac_exeext; then 10096 10097lt_aix_libpath_sed=' 10098 /Import File Strings/,/^$/ { 10099 /^0/ { 10100 s/^0 *\(.*\)$/\1/ 10101 p 10102 } 10103 }' 10104aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10105# Check for a 64-bit object if we didn't find anything. 10106if test -z "$aix_libpath"; then 10107 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10108fi 10109else 10110 echo "$as_me: failed program was:" >&5 10111sed 's/^/| /' conftest.$ac_ext >&5 10112 10113 10114fi 10115 10116rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10117 conftest$ac_exeext conftest.$ac_ext 10118if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10119 10120 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10121 # Warning - without using the other run time loading flags, 10122 # -berok will link without error, but may produce a broken library. 10123 no_undefined_flag=' ${wl}-bernotok' 10124 allow_undefined_flag=' ${wl}-berok' 10125 # Exported symbols can be pulled into shared objects from archives 10126 whole_archive_flag_spec='$convenience' 10127 archive_cmds_need_lc=yes 10128 # This is similar to how AIX traditionally builds its shared libraries. 10129 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10130 fi 10131 fi 10132 ;; 10133 10134 amigaos*) 10135 case $host_cpu in 10136 powerpc) 10137 # see comment about AmigaOS4 .so support 10138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10139 archive_expsym_cmds='' 10140 ;; 10141 m68k) 10142 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)' 10143 hardcode_libdir_flag_spec='-L$libdir' 10144 hardcode_minus_L=yes 10145 ;; 10146 esac 10147 ;; 10148 10149 bsdi[45]*) 10150 export_dynamic_flag_spec=-rdynamic 10151 ;; 10152 10153 cygwin* | mingw* | pw32*) 10154 # When not using gcc, we currently assume that we are using 10155 # Microsoft Visual C++. 10156 # hardcode_libdir_flag_spec is actually meaningless, as there is 10157 # no search path for DLLs. 10158 hardcode_libdir_flag_spec=' ' 10159 allow_undefined_flag=unsupported 10160 # Tell ltmain to make .lib files, not .a files. 10161 libext=lib 10162 # Tell ltmain to make .dll files, not .so files. 10163 shrext_cmds=".dll" 10164 # FIXME: Setting linknames here is a bad hack. 10165 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 10166 # The linker will automatically build a .lib file if we build a DLL. 10167 old_archive_from_new_cmds='true' 10168 # FIXME: Should let the user specify the lib program. 10169 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10170 fix_srcfile_path='`cygpath -w "$srcfile"`' 10171 enable_shared_with_static_runtimes=yes 10172 ;; 10173 10174 darwin* | rhapsody*) 10175 10176 10177 archive_cmds_need_lc=no 10178 hardcode_direct=no 10179 hardcode_automatic=yes 10180 hardcode_shlibpath_var=unsupported 10181 whole_archive_flag_spec='' 10182 link_all_deplibs=yes 10183 allow_undefined_flag="$_lt_dar_allow_undefined" 10184 if test "$GCC" = "yes"; then 10185 output_verbose_link_cmd=echo 10186 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10187 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10188 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}" 10189 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}" 10190 10191 else 10192 ld_shlibs=no 10193 fi 10194 10195 ;; 10196 10197 dgux*) 10198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10199 hardcode_libdir_flag_spec='-L$libdir' 10200 hardcode_shlibpath_var=no 10201 ;; 10202 10203 freebsd1*) 10204 ld_shlibs=no 10205 ;; 10206 10207 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10208 # support. Future versions do this automatically, but an explicit c++rt0.o 10209 # does not break anything, and helps significantly (at the cost of a little 10210 # extra space). 10211 freebsd2.2*) 10212 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10213 hardcode_libdir_flag_spec='-R$libdir' 10214 hardcode_direct=yes 10215 hardcode_shlibpath_var=no 10216 ;; 10217 10218 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10219 freebsd2*) 10220 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10221 hardcode_direct=yes 10222 hardcode_minus_L=yes 10223 hardcode_shlibpath_var=no 10224 ;; 10225 10226 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10227 freebsd* | dragonfly*) 10228 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10229 hardcode_libdir_flag_spec='-R$libdir' 10230 hardcode_direct=yes 10231 hardcode_shlibpath_var=no 10232 ;; 10233 10234 hpux9*) 10235 if test "$GCC" = yes; then 10236 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10237 else 10238 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10239 fi 10240 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10241 hardcode_libdir_separator=: 10242 hardcode_direct=yes 10243 10244 # hardcode_minus_L: Not really in the search PATH, 10245 # but as the default location of the library. 10246 hardcode_minus_L=yes 10247 export_dynamic_flag_spec='${wl}-E' 10248 ;; 10249 10250 hpux10*) 10251 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10252 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10253 else 10254 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10255 fi 10256 if test "$with_gnu_ld" = no; then 10257 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10258 hardcode_libdir_flag_spec_ld='+b $libdir' 10259 hardcode_libdir_separator=: 10260 hardcode_direct=yes 10261 hardcode_direct_absolute=yes 10262 export_dynamic_flag_spec='${wl}-E' 10263 # hardcode_minus_L: Not really in the search PATH, 10264 # but as the default location of the library. 10265 hardcode_minus_L=yes 10266 fi 10267 ;; 10268 10269 hpux11*) 10270 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 10271 case $host_cpu in 10272 hppa*64*) 10273 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10274 ;; 10275 ia64*) 10276 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10277 ;; 10278 *) 10279 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10280 ;; 10281 esac 10282 else 10283 case $host_cpu in 10284 hppa*64*) 10285 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10286 ;; 10287 ia64*) 10288 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10289 ;; 10290 *) 10291 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10292 ;; 10293 esac 10294 fi 10295 if test "$with_gnu_ld" = no; then 10296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10297 hardcode_libdir_separator=: 10298 10299 case $host_cpu in 10300 hppa*64*|ia64*) 10301 hardcode_direct=no 10302 hardcode_shlibpath_var=no 10303 ;; 10304 *) 10305 hardcode_direct=yes 10306 hardcode_direct_absolute=yes 10307 export_dynamic_flag_spec='${wl}-E' 10308 10309 # hardcode_minus_L: Not really in the search PATH, 10310 # but as the default location of the library. 10311 hardcode_minus_L=yes 10312 ;; 10313 esac 10314 fi 10315 ;; 10316 10317 irix5* | irix6* | nonstopux*) 10318 if test "$GCC" = yes; then 10319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10320 # Try to use the -exported_symbol ld option, if it does not 10321 # work, assume that -exports_file does not work either and 10322 # implicitly export all symbols. 10323 save_LDFLAGS="$LDFLAGS" 10324 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10325 cat >conftest.$ac_ext <<_ACEOF 10326int foo(void) {} 10327_ACEOF 10328rm -f conftest.$ac_objext conftest$ac_exeext 10329if { (ac_try="$ac_link" 10330case "(($ac_try" in 10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10332 *) ac_try_echo=$ac_try;; 10333esac 10334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10335 (eval "$ac_link") 2>conftest.er1 10336 ac_status=$? 10337 grep -v '^ *+' conftest.er1 >conftest.err 10338 rm -f conftest.er1 10339 cat conftest.err >&5 10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10341 (exit $ac_status); } && { 10342 test -z "$ac_c_werror_flag" || 10343 test ! -s conftest.err 10344 } && test -s conftest$ac_exeext && 10345 $as_test_x conftest$ac_exeext; then 10346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 10347 10348else 10349 echo "$as_me: failed program was:" >&5 10350sed 's/^/| /' conftest.$ac_ext >&5 10351 10352 10353fi 10354 10355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10356 conftest$ac_exeext conftest.$ac_ext 10357 LDFLAGS="$save_LDFLAGS" 10358 else 10359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10360 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 10361 fi 10362 archive_cmds_need_lc='no' 10363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10364 hardcode_libdir_separator=: 10365 inherit_rpath=yes 10366 link_all_deplibs=yes 10367 ;; 10368 10369 netbsd*) 10370 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10372 else 10373 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10374 fi 10375 hardcode_libdir_flag_spec='-R$libdir' 10376 hardcode_direct=yes 10377 hardcode_shlibpath_var=no 10378 ;; 10379 10380 newsos6) 10381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10382 hardcode_direct=yes 10383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10384 hardcode_libdir_separator=: 10385 hardcode_shlibpath_var=no 10386 ;; 10387 10388 *nto* | *qnx*) 10389 ;; 10390 10391 openbsd*) 10392 if test -f /usr/libexec/ld.so; then 10393 hardcode_direct=yes 10394 hardcode_shlibpath_var=no 10395 hardcode_direct_absolute=yes 10396 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10397 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10398 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10399 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10400 export_dynamic_flag_spec='${wl}-E' 10401 else 10402 case $host_os in 10403 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10404 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10405 hardcode_libdir_flag_spec='-R$libdir' 10406 ;; 10407 *) 10408 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10409 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10410 ;; 10411 esac 10412 fi 10413 else 10414 ld_shlibs=no 10415 fi 10416 ;; 10417 10418 os2*) 10419 hardcode_libdir_flag_spec='-L$libdir' 10420 hardcode_minus_L=yes 10421 allow_undefined_flag=unsupported 10422 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10423 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10424 ;; 10425 10426 osf3*) 10427 if test "$GCC" = yes; then 10428 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10429 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10430 else 10431 allow_undefined_flag=' -expect_unresolved \*' 10432 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10433 fi 10434 archive_cmds_need_lc='no' 10435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10436 hardcode_libdir_separator=: 10437 ;; 10438 10439 osf4* | osf5*) # as osf3* with the addition of -msym flag 10440 if test "$GCC" = yes; then 10441 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10442 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10444 else 10445 allow_undefined_flag=' -expect_unresolved \*' 10446 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 10447 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~ 10448 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 10449 10450 # Both c and cxx compiler support -rpath directly 10451 hardcode_libdir_flag_spec='-rpath $libdir' 10452 fi 10453 archive_cmds_need_lc='no' 10454 hardcode_libdir_separator=: 10455 ;; 10456 10457 solaris*) 10458 no_undefined_flag=' -z defs' 10459 if test "$GCC" = yes; then 10460 wlarc='${wl}' 10461 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10462 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10463 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10464 else 10465 case `$CC -V 2>&1` in 10466 *"Compilers 5.0"*) 10467 wlarc='' 10468 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10470 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10471 ;; 10472 *) 10473 wlarc='${wl}' 10474 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10475 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10476 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10477 ;; 10478 esac 10479 fi 10480 hardcode_libdir_flag_spec='-R$libdir' 10481 hardcode_shlibpath_var=no 10482 case $host_os in 10483 solaris2.[0-5] | solaris2.[0-5].*) ;; 10484 *) 10485 # The compiler driver will combine and reorder linker options, 10486 # but understands `-z linker_flag'. GCC discards it without `$wl', 10487 # but is careful enough not to reorder. 10488 # Supported since Solaris 2.6 (maybe 2.5.1?) 10489 if test "$GCC" = yes; then 10490 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10491 else 10492 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10493 fi 10494 ;; 10495 esac 10496 link_all_deplibs=yes 10497 ;; 10498 10499 sunos4*) 10500 if test "x$host_vendor" = xsequent; then 10501 # Use $CC to link under sequent, because it throws in some extra .o 10502 # files that make .init and .fini sections work. 10503 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10504 else 10505 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10506 fi 10507 hardcode_libdir_flag_spec='-L$libdir' 10508 hardcode_direct=yes 10509 hardcode_minus_L=yes 10510 hardcode_shlibpath_var=no 10511 ;; 10512 10513 sysv4) 10514 case $host_vendor in 10515 sni) 10516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10517 hardcode_direct=yes # is this really true??? 10518 ;; 10519 siemens) 10520 ## LD is ld it makes a PLAMLIB 10521 ## CC just makes a GrossModule. 10522 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10523 reload_cmds='$CC -r -o $output$reload_objs' 10524 hardcode_direct=no 10525 ;; 10526 motorola) 10527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10528 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10529 ;; 10530 esac 10531 runpath_var='LD_RUN_PATH' 10532 hardcode_shlibpath_var=no 10533 ;; 10534 10535 sysv4.3*) 10536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10537 hardcode_shlibpath_var=no 10538 export_dynamic_flag_spec='-Bexport' 10539 ;; 10540 10541 sysv4*MP*) 10542 if test -d /usr/nec; then 10543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10544 hardcode_shlibpath_var=no 10545 runpath_var=LD_RUN_PATH 10546 hardcode_runpath_var=yes 10547 ld_shlibs=yes 10548 fi 10549 ;; 10550 10551 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10552 no_undefined_flag='${wl}-z,text' 10553 archive_cmds_need_lc=no 10554 hardcode_shlibpath_var=no 10555 runpath_var='LD_RUN_PATH' 10556 10557 if test "$GCC" = yes; then 10558 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10559 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10560 else 10561 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10562 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10563 fi 10564 ;; 10565 10566 sysv5* | sco3.2v5* | sco5v6*) 10567 # Note: We can NOT use -z defs as we might desire, because we do not 10568 # link with -lc, and that would cause any symbols used from libc to 10569 # always be unresolved, which means just about no library would 10570 # ever link correctly. If we're not using GNU ld we use -z text 10571 # though, which does catch some bad symbols but isn't as heavy-handed 10572 # as -z defs. 10573 no_undefined_flag='${wl}-z,text' 10574 allow_undefined_flag='${wl}-z,nodefs' 10575 archive_cmds_need_lc=no 10576 hardcode_shlibpath_var=no 10577 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10578 hardcode_libdir_separator=':' 10579 link_all_deplibs=yes 10580 export_dynamic_flag_spec='${wl}-Bexport' 10581 runpath_var='LD_RUN_PATH' 10582 10583 if test "$GCC" = yes; then 10584 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10585 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10586 else 10587 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10588 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10589 fi 10590 ;; 10591 10592 uts4*) 10593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10594 hardcode_libdir_flag_spec='-L$libdir' 10595 hardcode_shlibpath_var=no 10596 ;; 10597 10598 *) 10599 ld_shlibs=no 10600 ;; 10601 esac 10602 10603 if test x$host_vendor = xsni; then 10604 case $host in 10605 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10606 export_dynamic_flag_spec='${wl}-Blargedynsym' 10607 ;; 10608 esac 10609 fi 10610 fi 10611 10612{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 10613echo "${ECHO_T}$ld_shlibs" >&6; } 10614test "$ld_shlibs" = no && can_build_shared=no 10615 10616with_gnu_ld=$with_gnu_ld 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632# 10633# Do we need to explicitly link libc? 10634# 10635case "x$archive_cmds_need_lc" in 10636x|xyes) 10637 # Assume -lc should be added 10638 archive_cmds_need_lc=yes 10639 10640 if test "$enable_shared" = yes && test "$GCC" = yes; then 10641 case $archive_cmds in 10642 *'~'*) 10643 # FIXME: we may have to deal with multi-command sequences. 10644 ;; 10645 '$CC '*) 10646 # Test whether the compiler implicitly links with -lc since on some 10647 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10648 # to ld, don't add -lc before -lgcc. 10649 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10650echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 10651 $RM conftest* 10652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10653 10654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10655 (eval $ac_compile) 2>&5 10656 ac_status=$? 10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10658 (exit $ac_status); } 2>conftest.err; then 10659 soname=conftest 10660 lib=conftest 10661 libobjs=conftest.$ac_objext 10662 deplibs= 10663 wl=$lt_prog_compiler_wl 10664 pic_flag=$lt_prog_compiler_pic 10665 compiler_flags=-v 10666 linker_flags=-v 10667 verstring= 10668 output_objdir=. 10669 libname=conftest 10670 lt_save_allow_undefined_flag=$allow_undefined_flag 10671 allow_undefined_flag= 10672 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 10673 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10674 ac_status=$? 10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10676 (exit $ac_status); } 10677 then 10678 archive_cmds_need_lc=no 10679 else 10680 archive_cmds_need_lc=yes 10681 fi 10682 allow_undefined_flag=$lt_save_allow_undefined_flag 10683 else 10684 cat conftest.err 1>&5 10685 fi 10686 $RM conftest* 10687 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 10688echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 10689 ;; 10690 esac 10691 fi 10692 ;; 10693esac 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10852echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 10853 10854if test "$GCC" = yes; then 10855 case $host_os in 10856 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10857 *) lt_awk_arg="/^libraries:/" ;; 10858 esac 10859 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10860 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 10861 # if the path contains ";" then we assume it to be the separator 10862 # otherwise default to the standard path separator (i.e. ":") - it is 10863 # assumed that no part of a normal pathname contains ";" but that should 10864 # okay in the real world where ";" in dirpaths is itself problematic. 10865 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 10866 else 10867 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10868 fi 10869 # Ok, now we have the path, separated by spaces, we can step through it 10870 # and add multilib dir if necessary. 10871 lt_tmp_lt_search_path_spec= 10872 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10873 for lt_sys_path in $lt_search_path_spec; do 10874 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10875 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10876 else 10877 test -d "$lt_sys_path" && \ 10878 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10879 fi 10880 done 10881 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 10882BEGIN {RS=" "; FS="/|\n";} { 10883 lt_foo=""; 10884 lt_count=0; 10885 for (lt_i = NF; lt_i > 0; lt_i--) { 10886 if ($lt_i != "" && $lt_i != ".") { 10887 if ($lt_i == "..") { 10888 lt_count++; 10889 } else { 10890 if (lt_count == 0) { 10891 lt_foo="/" $lt_i lt_foo; 10892 } else { 10893 lt_count--; 10894 } 10895 } 10896 } 10897 } 10898 if (lt_foo != "") { lt_freq[lt_foo]++; } 10899 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10900}'` 10901 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 10902else 10903 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10904fi 10905library_names_spec= 10906libname_spec='lib$name' 10907soname_spec= 10908shrext_cmds=".so" 10909postinstall_cmds= 10910postuninstall_cmds= 10911finish_cmds= 10912finish_eval= 10913shlibpath_var= 10914shlibpath_overrides_runpath=unknown 10915version_type=none 10916dynamic_linker="$host_os ld.so" 10917sys_lib_dlsearch_path_spec="/lib /usr/lib" 10918need_lib_prefix=unknown 10919hardcode_into_libs=no 10920 10921# when you set need_version to no, make sure it does not cause -set_version 10922# flags to be left without arguments 10923need_version=unknown 10924 10925case $host_os in 10926aix3*) 10927 version_type=linux 10928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10929 shlibpath_var=LIBPATH 10930 10931 # AIX 3 has no versioning support, so we append a major version to the name. 10932 soname_spec='${libname}${release}${shared_ext}$major' 10933 ;; 10934 10935aix[4-9]*) 10936 version_type=linux 10937 need_lib_prefix=no 10938 need_version=no 10939 hardcode_into_libs=yes 10940 if test "$host_cpu" = ia64; then 10941 # AIX 5 supports IA64 10942 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10943 shlibpath_var=LD_LIBRARY_PATH 10944 else 10945 # With GCC up to 2.95.x, collect2 would create an import file 10946 # for dependence libraries. The import file would start with 10947 # the line `#! .'. This would cause the generated library to 10948 # depend on `.', always an invalid library. This was fixed in 10949 # development snapshots of GCC prior to 3.0. 10950 case $host_os in 10951 aix4 | aix4.[01] | aix4.[01].*) 10952 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10953 echo ' yes ' 10954 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10955 : 10956 else 10957 can_build_shared=no 10958 fi 10959 ;; 10960 esac 10961 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10962 # soname into executable. Probably we can add versioning support to 10963 # collect2, so additional links can be useful in future. 10964 if test "$aix_use_runtimelinking" = yes; then 10965 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10966 # instead of lib<name>.a to let people know that these are not 10967 # typical AIX shared libraries. 10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10969 else 10970 # We preserve .a as extension for shared libraries through AIX4.2 10971 # and later when we are not doing run time linking. 10972 library_names_spec='${libname}${release}.a $libname.a' 10973 soname_spec='${libname}${release}${shared_ext}$major' 10974 fi 10975 shlibpath_var=LIBPATH 10976 fi 10977 ;; 10978 10979amigaos*) 10980 case $host_cpu in 10981 powerpc) 10982 # Since July 2007 AmigaOS4 officially supports .so libraries. 10983 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10985 ;; 10986 m68k) 10987 library_names_spec='$libname.ixlibrary $libname.a' 10988 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10989 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10990 ;; 10991 esac 10992 ;; 10993 10994beos*) 10995 library_names_spec='${libname}${shared_ext}' 10996 dynamic_linker="$host_os ld.so" 10997 shlibpath_var=LIBRARY_PATH 10998 ;; 10999 11000bsdi[45]*) 11001 version_type=linux 11002 need_version=no 11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11004 soname_spec='${libname}${release}${shared_ext}$major' 11005 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11006 shlibpath_var=LD_LIBRARY_PATH 11007 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11008 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11009 # the default ld.so.conf also contains /usr/contrib/lib and 11010 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11011 # libtool to hard-code these into programs 11012 ;; 11013 11014cygwin* | mingw* | pw32*) 11015 version_type=windows 11016 shrext_cmds=".dll" 11017 need_version=no 11018 need_lib_prefix=no 11019 11020 case $GCC,$host_os in 11021 yes,cygwin* | yes,mingw* | yes,pw32*) 11022 library_names_spec='$libname.dll.a' 11023 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11024 postinstall_cmds='base_file=`basename \${file}`~ 11025 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11026 dldir=$destdir/`dirname \$dlpath`~ 11027 test -d \$dldir || mkdir -p \$dldir~ 11028 $install_prog $dir/$dlname \$dldir/$dlname~ 11029 chmod a+x \$dldir/$dlname~ 11030 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11031 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11032 fi' 11033 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11034 dlpath=$dir/\$dldll~ 11035 $RM \$dlpath' 11036 shlibpath_overrides_runpath=yes 11037 11038 case $host_os in 11039 cygwin*) 11040 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11041 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11042 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11043 ;; 11044 mingw*) 11045 # MinGW DLLs use traditional 'lib' prefix 11046 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11047 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11048 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11049 # It is most probably a Windows format PATH printed by 11050 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11051 # path with ; separators, and with drive letters. We can handle the 11052 # drive letters (cygwin fileutils understands them), so leave them, 11053 # especially as we might pass files found there to a mingw objdump, 11054 # which wouldn't understand a cygwinified path. Ahh. 11055 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11056 else 11057 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11058 fi 11059 ;; 11060 pw32*) 11061 # pw32 DLLs use 'pw' prefix rather than 'lib' 11062 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11063 ;; 11064 esac 11065 ;; 11066 11067 *) 11068 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11069 ;; 11070 esac 11071 dynamic_linker='Win32 ld.exe' 11072 # FIXME: first we should search . and the directory the executable is in 11073 shlibpath_var=PATH 11074 ;; 11075 11076darwin* | rhapsody*) 11077 dynamic_linker="$host_os dyld" 11078 version_type=darwin 11079 need_lib_prefix=no 11080 need_version=no 11081 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11082 soname_spec='${libname}${release}${major}$shared_ext' 11083 shlibpath_overrides_runpath=yes 11084 shlibpath_var=DYLD_LIBRARY_PATH 11085 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11086 11087 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11089 ;; 11090 11091dgux*) 11092 version_type=linux 11093 need_lib_prefix=no 11094 need_version=no 11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11096 soname_spec='${libname}${release}${shared_ext}$major' 11097 shlibpath_var=LD_LIBRARY_PATH 11098 ;; 11099 11100freebsd1*) 11101 dynamic_linker=no 11102 ;; 11103 11104freebsd* | dragonfly*) 11105 # DragonFly does not have aout. When/if they implement a new 11106 # versioning mechanism, adjust this. 11107 if test -x /usr/bin/objformat; then 11108 objformat=`/usr/bin/objformat` 11109 else 11110 case $host_os in 11111 freebsd[123]*) objformat=aout ;; 11112 *) objformat=elf ;; 11113 esac 11114 fi 11115 version_type=freebsd-$objformat 11116 case $version_type in 11117 freebsd-elf*) 11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11119 need_version=no 11120 need_lib_prefix=no 11121 ;; 11122 freebsd-*) 11123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11124 need_version=yes 11125 ;; 11126 esac 11127 shlibpath_var=LD_LIBRARY_PATH 11128 case $host_os in 11129 freebsd2*) 11130 shlibpath_overrides_runpath=yes 11131 ;; 11132 freebsd3.[01]* | freebsdelf3.[01]*) 11133 shlibpath_overrides_runpath=yes 11134 hardcode_into_libs=yes 11135 ;; 11136 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11137 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11138 shlibpath_overrides_runpath=no 11139 hardcode_into_libs=yes 11140 ;; 11141 *) # from 4.6 on, and DragonFly 11142 shlibpath_overrides_runpath=yes 11143 hardcode_into_libs=yes 11144 ;; 11145 esac 11146 ;; 11147 11148gnu*) 11149 version_type=linux 11150 need_lib_prefix=no 11151 need_version=no 11152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11153 soname_spec='${libname}${release}${shared_ext}$major' 11154 shlibpath_var=LD_LIBRARY_PATH 11155 hardcode_into_libs=yes 11156 ;; 11157 11158hpux9* | hpux10* | hpux11*) 11159 # Give a soname corresponding to the major version so that dld.sl refuses to 11160 # link against other versions. 11161 version_type=sunos 11162 need_lib_prefix=no 11163 need_version=no 11164 case $host_cpu in 11165 ia64*) 11166 shrext_cmds='.so' 11167 hardcode_into_libs=yes 11168 dynamic_linker="$host_os dld.so" 11169 shlibpath_var=LD_LIBRARY_PATH 11170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11172 soname_spec='${libname}${release}${shared_ext}$major' 11173 if test "X$HPUX_IA64_MODE" = X32; then 11174 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11175 else 11176 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11177 fi 11178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11179 ;; 11180 hppa*64*) 11181 shrext_cmds='.sl' 11182 hardcode_into_libs=yes 11183 dynamic_linker="$host_os dld.sl" 11184 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11187 soname_spec='${libname}${release}${shared_ext}$major' 11188 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11190 ;; 11191 *) 11192 shrext_cmds='.sl' 11193 dynamic_linker="$host_os dld.sl" 11194 shlibpath_var=SHLIB_PATH 11195 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11197 soname_spec='${libname}${release}${shared_ext}$major' 11198 ;; 11199 esac 11200 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11201 postinstall_cmds='chmod 555 $lib' 11202 ;; 11203 11204interix[3-9]*) 11205 version_type=linux 11206 need_lib_prefix=no 11207 need_version=no 11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11209 soname_spec='${libname}${release}${shared_ext}$major' 11210 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11211 shlibpath_var=LD_LIBRARY_PATH 11212 shlibpath_overrides_runpath=no 11213 hardcode_into_libs=yes 11214 ;; 11215 11216irix5* | irix6* | nonstopux*) 11217 case $host_os in 11218 nonstopux*) version_type=nonstopux ;; 11219 *) 11220 if test "$lt_cv_prog_gnu_ld" = yes; then 11221 version_type=linux 11222 else 11223 version_type=irix 11224 fi ;; 11225 esac 11226 need_lib_prefix=no 11227 need_version=no 11228 soname_spec='${libname}${release}${shared_ext}$major' 11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11230 case $host_os in 11231 irix5* | nonstopux*) 11232 libsuff= shlibsuff= 11233 ;; 11234 *) 11235 case $LD in # libtool.m4 will add one of these switches to LD 11236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11237 libsuff= shlibsuff= libmagic=32-bit;; 11238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11239 libsuff=32 shlibsuff=N32 libmagic=N32;; 11240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11241 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11242 *) libsuff= shlibsuff= libmagic=never-match;; 11243 esac 11244 ;; 11245 esac 11246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11247 shlibpath_overrides_runpath=no 11248 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11249 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11250 hardcode_into_libs=yes 11251 ;; 11252 11253# No shared lib support for Linux oldld, aout, or coff. 11254linux*oldld* | linux*aout* | linux*coff*) 11255 dynamic_linker=no 11256 ;; 11257 11258# This must be Linux ELF. 11259linux* | k*bsd*-gnu) 11260 version_type=linux 11261 need_lib_prefix=no 11262 need_version=no 11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11264 soname_spec='${libname}${release}${shared_ext}$major' 11265 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11266 shlibpath_var=LD_LIBRARY_PATH 11267 shlibpath_overrides_runpath=no 11268 # Some binutils ld are patched to set DT_RUNPATH 11269 save_LDFLAGS=$LDFLAGS 11270 save_libdir=$libdir 11271 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11272 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11273 cat >conftest.$ac_ext <<_ACEOF 11274/* confdefs.h. */ 11275_ACEOF 11276cat confdefs.h >>conftest.$ac_ext 11277cat >>conftest.$ac_ext <<_ACEOF 11278/* end confdefs.h. */ 11279 11280int 11281main () 11282{ 11283 11284 ; 11285 return 0; 11286} 11287_ACEOF 11288rm -f conftest.$ac_objext conftest$ac_exeext 11289if { (ac_try="$ac_link" 11290case "(($ac_try" in 11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11292 *) ac_try_echo=$ac_try;; 11293esac 11294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11295 (eval "$ac_link") 2>conftest.er1 11296 ac_status=$? 11297 grep -v '^ *+' conftest.er1 >conftest.err 11298 rm -f conftest.er1 11299 cat conftest.err >&5 11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11301 (exit $ac_status); } && { 11302 test -z "$ac_c_werror_flag" || 11303 test ! -s conftest.err 11304 } && test -s conftest$ac_exeext && 11305 $as_test_x conftest$ac_exeext; then 11306 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 11307 shlibpath_overrides_runpath=yes 11308fi 11309 11310else 11311 echo "$as_me: failed program was:" >&5 11312sed 's/^/| /' conftest.$ac_ext >&5 11313 11314 11315fi 11316 11317rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11318 conftest$ac_exeext conftest.$ac_ext 11319 LDFLAGS=$save_LDFLAGS 11320 libdir=$save_libdir 11321 11322 # This implies no fast_install, which is unacceptable. 11323 # Some rework will be needed to allow for fast_install 11324 # before this can be enabled. 11325 hardcode_into_libs=yes 11326 11327 # Append ld.so.conf contents to the search path 11328 if test -f /etc/ld.so.conf; then 11329 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;/^$/d' | tr '\n' ' '` 11330 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11331 fi 11332 11333 # We used to test for /lib/ld.so.1 and disable shared libraries on 11334 # powerpc, because MkLinux only supported shared libraries with the 11335 # GNU dynamic linker. Since this was broken with cross compilers, 11336 # most powerpc-linux boxes support dynamic linking these days and 11337 # people can always --disable-shared, the test was removed, and we 11338 # assume the GNU/Linux dynamic linker is in use. 11339 dynamic_linker='GNU/Linux ld.so' 11340 ;; 11341 11342netbsd*) 11343 version_type=sunos 11344 need_lib_prefix=no 11345 need_version=no 11346 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11349 dynamic_linker='NetBSD (a.out) ld.so' 11350 else 11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11352 soname_spec='${libname}${release}${shared_ext}$major' 11353 dynamic_linker='NetBSD ld.elf_so' 11354 fi 11355 shlibpath_var=LD_LIBRARY_PATH 11356 shlibpath_overrides_runpath=yes 11357 hardcode_into_libs=yes 11358 ;; 11359 11360newsos6) 11361 version_type=linux 11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11363 shlibpath_var=LD_LIBRARY_PATH 11364 shlibpath_overrides_runpath=yes 11365 ;; 11366 11367*nto* | *qnx*) 11368 version_type=qnx 11369 need_lib_prefix=no 11370 need_version=no 11371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11372 soname_spec='${libname}${release}${shared_ext}$major' 11373 shlibpath_var=LD_LIBRARY_PATH 11374 shlibpath_overrides_runpath=no 11375 hardcode_into_libs=yes 11376 dynamic_linker='ldqnx.so' 11377 ;; 11378 11379openbsd*) 11380 version_type=sunos 11381 sys_lib_dlsearch_path_spec="/usr/lib" 11382 need_lib_prefix=no 11383 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11384 case $host_os in 11385 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11386 *) need_version=no ;; 11387 esac 11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11390 shlibpath_var=LD_LIBRARY_PATH 11391 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11392 case $host_os in 11393 openbsd2.[89] | openbsd2.[89].*) 11394 shlibpath_overrides_runpath=no 11395 ;; 11396 *) 11397 shlibpath_overrides_runpath=yes 11398 ;; 11399 esac 11400 else 11401 shlibpath_overrides_runpath=yes 11402 fi 11403 ;; 11404 11405os2*) 11406 libname_spec='$name' 11407 shrext_cmds=".dll" 11408 need_lib_prefix=no 11409 library_names_spec='$libname${shared_ext} $libname.a' 11410 dynamic_linker='OS/2 ld.exe' 11411 shlibpath_var=LIBPATH 11412 ;; 11413 11414osf3* | osf4* | osf5*) 11415 version_type=osf 11416 need_lib_prefix=no 11417 need_version=no 11418 soname_spec='${libname}${release}${shared_ext}$major' 11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11420 shlibpath_var=LD_LIBRARY_PATH 11421 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11422 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11423 ;; 11424 11425rdos*) 11426 dynamic_linker=no 11427 ;; 11428 11429solaris*) 11430 version_type=linux 11431 need_lib_prefix=no 11432 need_version=no 11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11434 soname_spec='${libname}${release}${shared_ext}$major' 11435 shlibpath_var=LD_LIBRARY_PATH 11436 shlibpath_overrides_runpath=yes 11437 hardcode_into_libs=yes 11438 # ldd complains unless libraries are executable 11439 postinstall_cmds='chmod +x $lib' 11440 ;; 11441 11442sunos4*) 11443 version_type=sunos 11444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11445 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11446 shlibpath_var=LD_LIBRARY_PATH 11447 shlibpath_overrides_runpath=yes 11448 if test "$with_gnu_ld" = yes; then 11449 need_lib_prefix=no 11450 fi 11451 need_version=yes 11452 ;; 11453 11454sysv4 | sysv4.3*) 11455 version_type=linux 11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11457 soname_spec='${libname}${release}${shared_ext}$major' 11458 shlibpath_var=LD_LIBRARY_PATH 11459 case $host_vendor in 11460 sni) 11461 shlibpath_overrides_runpath=no 11462 need_lib_prefix=no 11463 runpath_var=LD_RUN_PATH 11464 ;; 11465 siemens) 11466 need_lib_prefix=no 11467 ;; 11468 motorola) 11469 need_lib_prefix=no 11470 need_version=no 11471 shlibpath_overrides_runpath=no 11472 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11473 ;; 11474 esac 11475 ;; 11476 11477sysv4*MP*) 11478 if test -d /usr/nec ;then 11479 version_type=linux 11480 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11481 soname_spec='$libname${shared_ext}.$major' 11482 shlibpath_var=LD_LIBRARY_PATH 11483 fi 11484 ;; 11485 11486sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11487 version_type=freebsd-elf 11488 need_lib_prefix=no 11489 need_version=no 11490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11491 soname_spec='${libname}${release}${shared_ext}$major' 11492 shlibpath_var=LD_LIBRARY_PATH 11493 shlibpath_overrides_runpath=yes 11494 hardcode_into_libs=yes 11495 if test "$with_gnu_ld" = yes; then 11496 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11497 else 11498 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11499 case $host_os in 11500 sco3.2v5*) 11501 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11502 ;; 11503 esac 11504 fi 11505 sys_lib_dlsearch_path_spec='/usr/lib' 11506 ;; 11507 11508tpf*) 11509 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11510 version_type=linux 11511 need_lib_prefix=no 11512 need_version=no 11513 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11514 shlibpath_var=LD_LIBRARY_PATH 11515 shlibpath_overrides_runpath=no 11516 hardcode_into_libs=yes 11517 ;; 11518 11519uts4*) 11520 version_type=linux 11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11522 soname_spec='${libname}${release}${shared_ext}$major' 11523 shlibpath_var=LD_LIBRARY_PATH 11524 ;; 11525 11526*) 11527 dynamic_linker=no 11528 ;; 11529esac 11530{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11531echo "${ECHO_T}$dynamic_linker" >&6; } 11532test "$dynamic_linker" = no && can_build_shared=no 11533 11534variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11535if test "$GCC" = yes; then 11536 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11537fi 11538 11539if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11540 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11541fi 11542if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11543 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11544fi 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11633echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 11634hardcode_action= 11635if test -n "$hardcode_libdir_flag_spec" || 11636 test -n "$runpath_var" || 11637 test "X$hardcode_automatic" = "Xyes" ; then 11638 11639 # We can hardcode non-existent directories. 11640 if test "$hardcode_direct" != no && 11641 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11642 # have to relink, otherwise we might link with an installed library 11643 # when we should be linking with a yet-to-be-installed one 11644 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11645 test "$hardcode_minus_L" != no; then 11646 # Linking always hardcodes the temporary library directory. 11647 hardcode_action=relink 11648 else 11649 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11650 hardcode_action=immediate 11651 fi 11652else 11653 # We cannot hardcode anything, or else we can only hardcode existing 11654 # directories. 11655 hardcode_action=unsupported 11656fi 11657{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 11658echo "${ECHO_T}$hardcode_action" >&6; } 11659 11660if test "$hardcode_action" = relink || 11661 test "$inherit_rpath" = yes; then 11662 # Fast installation is not supported 11663 enable_fast_install=no 11664elif test "$shlibpath_overrides_runpath" = yes || 11665 test "$enable_shared" = no; then 11666 # Fast installation is not necessary 11667 enable_fast_install=needless 11668fi 11669 11670 11671 11672 11673 11674 11675 if test "x$enable_dlopen" != xyes; then 11676 enable_dlopen=unknown 11677 enable_dlopen_self=unknown 11678 enable_dlopen_self_static=unknown 11679else 11680 lt_cv_dlopen=no 11681 lt_cv_dlopen_libs= 11682 11683 case $host_os in 11684 beos*) 11685 lt_cv_dlopen="load_add_on" 11686 lt_cv_dlopen_libs= 11687 lt_cv_dlopen_self=yes 11688 ;; 11689 11690 mingw* | pw32*) 11691 lt_cv_dlopen="LoadLibrary" 11692 lt_cv_dlopen_libs= 11693 ;; 11694 11695 cygwin*) 11696 lt_cv_dlopen="dlopen" 11697 lt_cv_dlopen_libs= 11698 ;; 11699 11700 darwin*) 11701 # if libdl is installed we need to link against it 11702 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11703echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 11704if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11705 echo $ECHO_N "(cached) $ECHO_C" >&6 11706else 11707 ac_check_lib_save_LIBS=$LIBS 11708LIBS="-ldl $LIBS" 11709cat >conftest.$ac_ext <<_ACEOF 11710/* confdefs.h. */ 11711_ACEOF 11712cat confdefs.h >>conftest.$ac_ext 11713cat >>conftest.$ac_ext <<_ACEOF 11714/* end confdefs.h. */ 11715 11716/* Override any GCC internal prototype to avoid an error. 11717 Use char because int might match the return type of a GCC 11718 builtin and then its argument prototype would still apply. */ 11719#ifdef __cplusplus 11720extern "C" 11721#endif 11722char dlopen (); 11723int 11724main () 11725{ 11726return dlopen (); 11727 ; 11728 return 0; 11729} 11730_ACEOF 11731rm -f conftest.$ac_objext conftest$ac_exeext 11732if { (ac_try="$ac_link" 11733case "(($ac_try" in 11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11735 *) ac_try_echo=$ac_try;; 11736esac 11737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11738 (eval "$ac_link") 2>conftest.er1 11739 ac_status=$? 11740 grep -v '^ *+' conftest.er1 >conftest.err 11741 rm -f conftest.er1 11742 cat conftest.err >&5 11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11744 (exit $ac_status); } && { 11745 test -z "$ac_c_werror_flag" || 11746 test ! -s conftest.err 11747 } && test -s conftest$ac_exeext && 11748 $as_test_x conftest$ac_exeext; then 11749 ac_cv_lib_dl_dlopen=yes 11750else 11751 echo "$as_me: failed program was:" >&5 11752sed 's/^/| /' conftest.$ac_ext >&5 11753 11754 ac_cv_lib_dl_dlopen=no 11755fi 11756 11757rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11758 conftest$ac_exeext conftest.$ac_ext 11759LIBS=$ac_check_lib_save_LIBS 11760fi 11761{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11762echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 11763if test $ac_cv_lib_dl_dlopen = yes; then 11764 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11765else 11766 11767 lt_cv_dlopen="dyld" 11768 lt_cv_dlopen_libs= 11769 lt_cv_dlopen_self=yes 11770 11771fi 11772 11773 ;; 11774 11775 *) 11776 { echo "$as_me:$LINENO: checking for shl_load" >&5 11777echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 11778if test "${ac_cv_func_shl_load+set}" = set; then 11779 echo $ECHO_N "(cached) $ECHO_C" >&6 11780else 11781 cat >conftest.$ac_ext <<_ACEOF 11782/* confdefs.h. */ 11783_ACEOF 11784cat confdefs.h >>conftest.$ac_ext 11785cat >>conftest.$ac_ext <<_ACEOF 11786/* end confdefs.h. */ 11787/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11788 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11789#define shl_load innocuous_shl_load 11790 11791/* System header to define __stub macros and hopefully few prototypes, 11792 which can conflict with char shl_load (); below. 11793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11794 <limits.h> exists even on freestanding compilers. */ 11795 11796#ifdef __STDC__ 11797# include <limits.h> 11798#else 11799# include <assert.h> 11800#endif 11801 11802#undef shl_load 11803 11804/* Override any GCC internal prototype to avoid an error. 11805 Use char because int might match the return type of a GCC 11806 builtin and then its argument prototype would still apply. */ 11807#ifdef __cplusplus 11808extern "C" 11809#endif 11810char shl_load (); 11811/* The GNU C library defines this for functions which it implements 11812 to always fail with ENOSYS. Some functions are actually named 11813 something starting with __ and the normal name is an alias. */ 11814#if defined __stub_shl_load || defined __stub___shl_load 11815choke me 11816#endif 11817 11818int 11819main () 11820{ 11821return shl_load (); 11822 ; 11823 return 0; 11824} 11825_ACEOF 11826rm -f conftest.$ac_objext conftest$ac_exeext 11827if { (ac_try="$ac_link" 11828case "(($ac_try" in 11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11830 *) ac_try_echo=$ac_try;; 11831esac 11832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11833 (eval "$ac_link") 2>conftest.er1 11834 ac_status=$? 11835 grep -v '^ *+' conftest.er1 >conftest.err 11836 rm -f conftest.er1 11837 cat conftest.err >&5 11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11839 (exit $ac_status); } && { 11840 test -z "$ac_c_werror_flag" || 11841 test ! -s conftest.err 11842 } && test -s conftest$ac_exeext && 11843 $as_test_x conftest$ac_exeext; then 11844 ac_cv_func_shl_load=yes 11845else 11846 echo "$as_me: failed program was:" >&5 11847sed 's/^/| /' conftest.$ac_ext >&5 11848 11849 ac_cv_func_shl_load=no 11850fi 11851 11852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11853 conftest$ac_exeext conftest.$ac_ext 11854fi 11855{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11856echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 11857if test $ac_cv_func_shl_load = yes; then 11858 lt_cv_dlopen="shl_load" 11859else 11860 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11861echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 11862if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11863 echo $ECHO_N "(cached) $ECHO_C" >&6 11864else 11865 ac_check_lib_save_LIBS=$LIBS 11866LIBS="-ldld $LIBS" 11867cat >conftest.$ac_ext <<_ACEOF 11868/* confdefs.h. */ 11869_ACEOF 11870cat confdefs.h >>conftest.$ac_ext 11871cat >>conftest.$ac_ext <<_ACEOF 11872/* end confdefs.h. */ 11873 11874/* Override any GCC internal prototype to avoid an error. 11875 Use char because int might match the return type of a GCC 11876 builtin and then its argument prototype would still apply. */ 11877#ifdef __cplusplus 11878extern "C" 11879#endif 11880char shl_load (); 11881int 11882main () 11883{ 11884return shl_load (); 11885 ; 11886 return 0; 11887} 11888_ACEOF 11889rm -f conftest.$ac_objext conftest$ac_exeext 11890if { (ac_try="$ac_link" 11891case "(($ac_try" in 11892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11893 *) ac_try_echo=$ac_try;; 11894esac 11895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11896 (eval "$ac_link") 2>conftest.er1 11897 ac_status=$? 11898 grep -v '^ *+' conftest.er1 >conftest.err 11899 rm -f conftest.er1 11900 cat conftest.err >&5 11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11902 (exit $ac_status); } && { 11903 test -z "$ac_c_werror_flag" || 11904 test ! -s conftest.err 11905 } && test -s conftest$ac_exeext && 11906 $as_test_x conftest$ac_exeext; then 11907 ac_cv_lib_dld_shl_load=yes 11908else 11909 echo "$as_me: failed program was:" >&5 11910sed 's/^/| /' conftest.$ac_ext >&5 11911 11912 ac_cv_lib_dld_shl_load=no 11913fi 11914 11915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11916 conftest$ac_exeext conftest.$ac_ext 11917LIBS=$ac_check_lib_save_LIBS 11918fi 11919{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11920echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 11921if test $ac_cv_lib_dld_shl_load = yes; then 11922 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11923else 11924 { echo "$as_me:$LINENO: checking for dlopen" >&5 11925echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 11926if test "${ac_cv_func_dlopen+set}" = set; then 11927 echo $ECHO_N "(cached) $ECHO_C" >&6 11928else 11929 cat >conftest.$ac_ext <<_ACEOF 11930/* confdefs.h. */ 11931_ACEOF 11932cat confdefs.h >>conftest.$ac_ext 11933cat >>conftest.$ac_ext <<_ACEOF 11934/* end confdefs.h. */ 11935/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11936 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11937#define dlopen innocuous_dlopen 11938 11939/* System header to define __stub macros and hopefully few prototypes, 11940 which can conflict with char dlopen (); below. 11941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11942 <limits.h> exists even on freestanding compilers. */ 11943 11944#ifdef __STDC__ 11945# include <limits.h> 11946#else 11947# include <assert.h> 11948#endif 11949 11950#undef dlopen 11951 11952/* Override any GCC internal prototype to avoid an error. 11953 Use char because int might match the return type of a GCC 11954 builtin and then its argument prototype would still apply. */ 11955#ifdef __cplusplus 11956extern "C" 11957#endif 11958char dlopen (); 11959/* The GNU C library defines this for functions which it implements 11960 to always fail with ENOSYS. Some functions are actually named 11961 something starting with __ and the normal name is an alias. */ 11962#if defined __stub_dlopen || defined __stub___dlopen 11963choke me 11964#endif 11965 11966int 11967main () 11968{ 11969return dlopen (); 11970 ; 11971 return 0; 11972} 11973_ACEOF 11974rm -f conftest.$ac_objext conftest$ac_exeext 11975if { (ac_try="$ac_link" 11976case "(($ac_try" in 11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11978 *) ac_try_echo=$ac_try;; 11979esac 11980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11981 (eval "$ac_link") 2>conftest.er1 11982 ac_status=$? 11983 grep -v '^ *+' conftest.er1 >conftest.err 11984 rm -f conftest.er1 11985 cat conftest.err >&5 11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11987 (exit $ac_status); } && { 11988 test -z "$ac_c_werror_flag" || 11989 test ! -s conftest.err 11990 } && test -s conftest$ac_exeext && 11991 $as_test_x conftest$ac_exeext; then 11992 ac_cv_func_dlopen=yes 11993else 11994 echo "$as_me: failed program was:" >&5 11995sed 's/^/| /' conftest.$ac_ext >&5 11996 11997 ac_cv_func_dlopen=no 11998fi 11999 12000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12001 conftest$ac_exeext conftest.$ac_ext 12002fi 12003{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12004echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 12005if test $ac_cv_func_dlopen = yes; then 12006 lt_cv_dlopen="dlopen" 12007else 12008 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12009echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 12010if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12011 echo $ECHO_N "(cached) $ECHO_C" >&6 12012else 12013 ac_check_lib_save_LIBS=$LIBS 12014LIBS="-ldl $LIBS" 12015cat >conftest.$ac_ext <<_ACEOF 12016/* confdefs.h. */ 12017_ACEOF 12018cat confdefs.h >>conftest.$ac_ext 12019cat >>conftest.$ac_ext <<_ACEOF 12020/* end confdefs.h. */ 12021 12022/* Override any GCC internal prototype to avoid an error. 12023 Use char because int might match the return type of a GCC 12024 builtin and then its argument prototype would still apply. */ 12025#ifdef __cplusplus 12026extern "C" 12027#endif 12028char dlopen (); 12029int 12030main () 12031{ 12032return dlopen (); 12033 ; 12034 return 0; 12035} 12036_ACEOF 12037rm -f conftest.$ac_objext conftest$ac_exeext 12038if { (ac_try="$ac_link" 12039case "(($ac_try" in 12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12041 *) ac_try_echo=$ac_try;; 12042esac 12043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12044 (eval "$ac_link") 2>conftest.er1 12045 ac_status=$? 12046 grep -v '^ *+' conftest.er1 >conftest.err 12047 rm -f conftest.er1 12048 cat conftest.err >&5 12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12050 (exit $ac_status); } && { 12051 test -z "$ac_c_werror_flag" || 12052 test ! -s conftest.err 12053 } && test -s conftest$ac_exeext && 12054 $as_test_x conftest$ac_exeext; then 12055 ac_cv_lib_dl_dlopen=yes 12056else 12057 echo "$as_me: failed program was:" >&5 12058sed 's/^/| /' conftest.$ac_ext >&5 12059 12060 ac_cv_lib_dl_dlopen=no 12061fi 12062 12063rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12064 conftest$ac_exeext conftest.$ac_ext 12065LIBS=$ac_check_lib_save_LIBS 12066fi 12067{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12068echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 12069if test $ac_cv_lib_dl_dlopen = yes; then 12070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12071else 12072 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12073echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 12074if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12075 echo $ECHO_N "(cached) $ECHO_C" >&6 12076else 12077 ac_check_lib_save_LIBS=$LIBS 12078LIBS="-lsvld $LIBS" 12079cat >conftest.$ac_ext <<_ACEOF 12080/* confdefs.h. */ 12081_ACEOF 12082cat confdefs.h >>conftest.$ac_ext 12083cat >>conftest.$ac_ext <<_ACEOF 12084/* end confdefs.h. */ 12085 12086/* Override any GCC internal prototype to avoid an error. 12087 Use char because int might match the return type of a GCC 12088 builtin and then its argument prototype would still apply. */ 12089#ifdef __cplusplus 12090extern "C" 12091#endif 12092char dlopen (); 12093int 12094main () 12095{ 12096return dlopen (); 12097 ; 12098 return 0; 12099} 12100_ACEOF 12101rm -f conftest.$ac_objext conftest$ac_exeext 12102if { (ac_try="$ac_link" 12103case "(($ac_try" in 12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12105 *) ac_try_echo=$ac_try;; 12106esac 12107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12108 (eval "$ac_link") 2>conftest.er1 12109 ac_status=$? 12110 grep -v '^ *+' conftest.er1 >conftest.err 12111 rm -f conftest.er1 12112 cat conftest.err >&5 12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12114 (exit $ac_status); } && { 12115 test -z "$ac_c_werror_flag" || 12116 test ! -s conftest.err 12117 } && test -s conftest$ac_exeext && 12118 $as_test_x conftest$ac_exeext; then 12119 ac_cv_lib_svld_dlopen=yes 12120else 12121 echo "$as_me: failed program was:" >&5 12122sed 's/^/| /' conftest.$ac_ext >&5 12123 12124 ac_cv_lib_svld_dlopen=no 12125fi 12126 12127rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12128 conftest$ac_exeext conftest.$ac_ext 12129LIBS=$ac_check_lib_save_LIBS 12130fi 12131{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12132echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 12133if test $ac_cv_lib_svld_dlopen = yes; then 12134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12135else 12136 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12137echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 12138if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12139 echo $ECHO_N "(cached) $ECHO_C" >&6 12140else 12141 ac_check_lib_save_LIBS=$LIBS 12142LIBS="-ldld $LIBS" 12143cat >conftest.$ac_ext <<_ACEOF 12144/* confdefs.h. */ 12145_ACEOF 12146cat confdefs.h >>conftest.$ac_ext 12147cat >>conftest.$ac_ext <<_ACEOF 12148/* end confdefs.h. */ 12149 12150/* Override any GCC internal prototype to avoid an error. 12151 Use char because int might match the return type of a GCC 12152 builtin and then its argument prototype would still apply. */ 12153#ifdef __cplusplus 12154extern "C" 12155#endif 12156char dld_link (); 12157int 12158main () 12159{ 12160return dld_link (); 12161 ; 12162 return 0; 12163} 12164_ACEOF 12165rm -f conftest.$ac_objext conftest$ac_exeext 12166if { (ac_try="$ac_link" 12167case "(($ac_try" in 12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12169 *) ac_try_echo=$ac_try;; 12170esac 12171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12172 (eval "$ac_link") 2>conftest.er1 12173 ac_status=$? 12174 grep -v '^ *+' conftest.er1 >conftest.err 12175 rm -f conftest.er1 12176 cat conftest.err >&5 12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12178 (exit $ac_status); } && { 12179 test -z "$ac_c_werror_flag" || 12180 test ! -s conftest.err 12181 } && test -s conftest$ac_exeext && 12182 $as_test_x conftest$ac_exeext; then 12183 ac_cv_lib_dld_dld_link=yes 12184else 12185 echo "$as_me: failed program was:" >&5 12186sed 's/^/| /' conftest.$ac_ext >&5 12187 12188 ac_cv_lib_dld_dld_link=no 12189fi 12190 12191rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12192 conftest$ac_exeext conftest.$ac_ext 12193LIBS=$ac_check_lib_save_LIBS 12194fi 12195{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12196echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 12197if test $ac_cv_lib_dld_dld_link = yes; then 12198 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12199fi 12200 12201 12202fi 12203 12204 12205fi 12206 12207 12208fi 12209 12210 12211fi 12212 12213 12214fi 12215 12216 ;; 12217 esac 12218 12219 if test "x$lt_cv_dlopen" != xno; then 12220 enable_dlopen=yes 12221 else 12222 enable_dlopen=no 12223 fi 12224 12225 case $lt_cv_dlopen in 12226 dlopen) 12227 save_CPPFLAGS="$CPPFLAGS" 12228 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12229 12230 save_LDFLAGS="$LDFLAGS" 12231 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12232 12233 save_LIBS="$LIBS" 12234 LIBS="$lt_cv_dlopen_libs $LIBS" 12235 12236 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12237echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 12238if test "${lt_cv_dlopen_self+set}" = set; then 12239 echo $ECHO_N "(cached) $ECHO_C" >&6 12240else 12241 if test "$cross_compiling" = yes; then : 12242 lt_cv_dlopen_self=cross 12243else 12244 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12245 lt_status=$lt_dlunknown 12246 cat > conftest.$ac_ext <<_LT_EOF 12247#line 12247 "configure" 12248#include "confdefs.h" 12249 12250#if HAVE_DLFCN_H 12251#include <dlfcn.h> 12252#endif 12253 12254#include <stdio.h> 12255 12256#ifdef RTLD_GLOBAL 12257# define LT_DLGLOBAL RTLD_GLOBAL 12258#else 12259# ifdef DL_GLOBAL 12260# define LT_DLGLOBAL DL_GLOBAL 12261# else 12262# define LT_DLGLOBAL 0 12263# endif 12264#endif 12265 12266/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12267 find out it does not work in some platform. */ 12268#ifndef LT_DLLAZY_OR_NOW 12269# ifdef RTLD_LAZY 12270# define LT_DLLAZY_OR_NOW RTLD_LAZY 12271# else 12272# ifdef DL_LAZY 12273# define LT_DLLAZY_OR_NOW DL_LAZY 12274# else 12275# ifdef RTLD_NOW 12276# define LT_DLLAZY_OR_NOW RTLD_NOW 12277# else 12278# ifdef DL_NOW 12279# define LT_DLLAZY_OR_NOW DL_NOW 12280# else 12281# define LT_DLLAZY_OR_NOW 0 12282# endif 12283# endif 12284# endif 12285# endif 12286#endif 12287 12288#ifdef __cplusplus 12289extern "C" void exit (int); 12290#endif 12291 12292void fnord() { int i=42;} 12293int main () 12294{ 12295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12296 int status = $lt_dlunknown; 12297 12298 if (self) 12299 { 12300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12301 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12302 /* dlclose (self); */ 12303 } 12304 else 12305 puts (dlerror ()); 12306 12307 exit (status); 12308} 12309_LT_EOF 12310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12311 (eval $ac_link) 2>&5 12312 ac_status=$? 12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12314 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12315 (./conftest; exit; ) >&5 2>/dev/null 12316 lt_status=$? 12317 case x$lt_status in 12318 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12319 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12320 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12321 esac 12322 else : 12323 # compilation failed 12324 lt_cv_dlopen_self=no 12325 fi 12326fi 12327rm -fr conftest* 12328 12329 12330fi 12331{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12332echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 12333 12334 if test "x$lt_cv_dlopen_self" = xyes; then 12335 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12336 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12337echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 12338if test "${lt_cv_dlopen_self_static+set}" = set; then 12339 echo $ECHO_N "(cached) $ECHO_C" >&6 12340else 12341 if test "$cross_compiling" = yes; then : 12342 lt_cv_dlopen_self_static=cross 12343else 12344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12345 lt_status=$lt_dlunknown 12346 cat > conftest.$ac_ext <<_LT_EOF 12347#line 12347 "configure" 12348#include "confdefs.h" 12349 12350#if HAVE_DLFCN_H 12351#include <dlfcn.h> 12352#endif 12353 12354#include <stdio.h> 12355 12356#ifdef RTLD_GLOBAL 12357# define LT_DLGLOBAL RTLD_GLOBAL 12358#else 12359# ifdef DL_GLOBAL 12360# define LT_DLGLOBAL DL_GLOBAL 12361# else 12362# define LT_DLGLOBAL 0 12363# endif 12364#endif 12365 12366/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12367 find out it does not work in some platform. */ 12368#ifndef LT_DLLAZY_OR_NOW 12369# ifdef RTLD_LAZY 12370# define LT_DLLAZY_OR_NOW RTLD_LAZY 12371# else 12372# ifdef DL_LAZY 12373# define LT_DLLAZY_OR_NOW DL_LAZY 12374# else 12375# ifdef RTLD_NOW 12376# define LT_DLLAZY_OR_NOW RTLD_NOW 12377# else 12378# ifdef DL_NOW 12379# define LT_DLLAZY_OR_NOW DL_NOW 12380# else 12381# define LT_DLLAZY_OR_NOW 0 12382# endif 12383# endif 12384# endif 12385# endif 12386#endif 12387 12388#ifdef __cplusplus 12389extern "C" void exit (int); 12390#endif 12391 12392void fnord() { int i=42;} 12393int main () 12394{ 12395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12396 int status = $lt_dlunknown; 12397 12398 if (self) 12399 { 12400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12401 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12402 /* dlclose (self); */ 12403 } 12404 else 12405 puts (dlerror ()); 12406 12407 exit (status); 12408} 12409_LT_EOF 12410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12411 (eval $ac_link) 2>&5 12412 ac_status=$? 12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12414 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12415 (./conftest; exit; ) >&5 2>/dev/null 12416 lt_status=$? 12417 case x$lt_status in 12418 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12419 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12420 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12421 esac 12422 else : 12423 # compilation failed 12424 lt_cv_dlopen_self_static=no 12425 fi 12426fi 12427rm -fr conftest* 12428 12429 12430fi 12431{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12432echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 12433 fi 12434 12435 CPPFLAGS="$save_CPPFLAGS" 12436 LDFLAGS="$save_LDFLAGS" 12437 LIBS="$save_LIBS" 12438 ;; 12439 esac 12440 12441 case $lt_cv_dlopen_self in 12442 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12443 *) enable_dlopen_self=unknown ;; 12444 esac 12445 12446 case $lt_cv_dlopen_self_static in 12447 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12448 *) enable_dlopen_self_static=unknown ;; 12449 esac 12450fi 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468striplib= 12469old_striplib= 12470{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12471echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 12472if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12473 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12474 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12475 { echo "$as_me:$LINENO: result: yes" >&5 12476echo "${ECHO_T}yes" >&6; } 12477else 12478# FIXME - insert some real tests, host_os isn't really good enough 12479 case $host_os in 12480 darwin*) 12481 if test -n "$STRIP" ; then 12482 striplib="$STRIP -x" 12483 old_striplib="$STRIP -S" 12484 { echo "$as_me:$LINENO: result: yes" >&5 12485echo "${ECHO_T}yes" >&6; } 12486 else 12487 { echo "$as_me:$LINENO: result: no" >&5 12488echo "${ECHO_T}no" >&6; } 12489 fi 12490 ;; 12491 *) 12492 { echo "$as_me:$LINENO: result: no" >&5 12493echo "${ECHO_T}no" >&6; } 12494 ;; 12495 esac 12496fi 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 # Report which library types will actually be built 12510 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12511echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 12512 { echo "$as_me:$LINENO: result: $can_build_shared" >&5 12513echo "${ECHO_T}$can_build_shared" >&6; } 12514 12515 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12516echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 12517 test "$can_build_shared" = "no" && enable_shared=no 12518 12519 # On AIX, shared libraries and static libraries use the same namespace, and 12520 # are all built from PIC. 12521 case $host_os in 12522 aix3*) 12523 test "$enable_shared" = yes && enable_static=no 12524 if test -n "$RANLIB"; then 12525 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12526 postinstall_cmds='$RANLIB $lib' 12527 fi 12528 ;; 12529 12530 aix[4-9]*) 12531 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12532 test "$enable_shared" = yes && enable_static=no 12533 fi 12534 ;; 12535 esac 12536 { echo "$as_me:$LINENO: result: $enable_shared" >&5 12537echo "${ECHO_T}$enable_shared" >&6; } 12538 12539 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12540echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 12541 # Make sure either enable_shared or enable_static is yes. 12542 test "$enable_shared" = yes || enable_static=yes 12543 { echo "$as_me:$LINENO: result: $enable_static" >&5 12544echo "${ECHO_T}$enable_static" >&6; } 12545 12546 12547 12548 12549fi 12550ac_ext=cpp 12551ac_cpp='$CXXCPP $CPPFLAGS' 12552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12555 12556CC="$lt_save_CC" 12557 12558 12559ac_ext=cpp 12560ac_cpp='$CXXCPP $CPPFLAGS' 12561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12564 12565archive_cmds_need_lc_CXX=no 12566allow_undefined_flag_CXX= 12567always_export_symbols_CXX=no 12568archive_expsym_cmds_CXX= 12569compiler_needs_object_CXX=no 12570export_dynamic_flag_spec_CXX= 12571hardcode_direct_CXX=no 12572hardcode_direct_absolute_CXX=no 12573hardcode_libdir_flag_spec_CXX= 12574hardcode_libdir_flag_spec_ld_CXX= 12575hardcode_libdir_separator_CXX= 12576hardcode_minus_L_CXX=no 12577hardcode_shlibpath_var_CXX=unsupported 12578hardcode_automatic_CXX=no 12579inherit_rpath_CXX=no 12580module_cmds_CXX= 12581module_expsym_cmds_CXX= 12582link_all_deplibs_CXX=unknown 12583old_archive_cmds_CXX=$old_archive_cmds 12584no_undefined_flag_CXX= 12585whole_archive_flag_spec_CXX= 12586enable_shared_with_static_runtimes_CXX=no 12587 12588# Source file extension for C++ test sources. 12589ac_ext=cpp 12590 12591# Object file extension for compiled C++ test sources. 12592objext=o 12593objext_CXX=$objext 12594 12595# No sense in running all these tests if we already determined that 12596# the CXX compiler isn't working. Some variables (like enable_shared) 12597# are currently assumed to apply to all compilers on this platform, 12598# and will be corrupted by setting them based on a non-working compiler. 12599if test "$_lt_caught_CXX_error" != yes; then 12600 # Code to be used in simple compile tests 12601 lt_simple_compile_test_code="int some_variable = 0;" 12602 12603 # Code to be used in simple link tests 12604 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12605 12606 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12607 12608 12609 12610 12611 12612 12613# If no C compiler was specified, use CC. 12614LTCC=${LTCC-"$CC"} 12615 12616# If no C compiler flags were specified, use CFLAGS. 12617LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12618 12619# Allow CC to be a program name with arguments. 12620compiler=$CC 12621 12622 12623 # save warnings/boilerplate of simple test code 12624 ac_outfile=conftest.$ac_objext 12625echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12626eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12627_lt_compiler_boilerplate=`cat conftest.err` 12628$RM conftest* 12629 12630 ac_outfile=conftest.$ac_objext 12631echo "$lt_simple_link_test_code" >conftest.$ac_ext 12632eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12633_lt_linker_boilerplate=`cat conftest.err` 12634$RM -r conftest* 12635 12636 12637 # Allow CC to be a program name with arguments. 12638 lt_save_CC=$CC 12639 lt_save_LD=$LD 12640 lt_save_GCC=$GCC 12641 GCC=$GXX 12642 lt_save_with_gnu_ld=$with_gnu_ld 12643 lt_save_path_LD=$lt_cv_path_LD 12644 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12645 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12646 else 12647 $as_unset lt_cv_prog_gnu_ld 12648 fi 12649 if test -n "${lt_cv_path_LDCXX+set}"; then 12650 lt_cv_path_LD=$lt_cv_path_LDCXX 12651 else 12652 $as_unset lt_cv_path_LD 12653 fi 12654 test -z "${LDCXX+set}" || LD=$LDCXX 12655 CC=${CXX-"c++"} 12656 compiler=$CC 12657 compiler_CXX=$CC 12658 for cc_temp in $compiler""; do 12659 case $cc_temp in 12660 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12661 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12662 \-*) ;; 12663 *) break;; 12664 esac 12665done 12666cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 12667 12668 12669 if test -n "$compiler"; then 12670 # We don't want -fno-exception when compiling C++ code, so set the 12671 # no_builtin_flag separately 12672 if test "$GXX" = yes; then 12673 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12674 else 12675 lt_prog_compiler_no_builtin_flag_CXX= 12676 fi 12677 12678 if test "$GXX" = yes; then 12679 # Set up default GNU C++ configuration 12680 12681 12682 12683# Check whether --with-gnu-ld was given. 12684if test "${with_gnu_ld+set}" = set; then 12685 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12686else 12687 with_gnu_ld=no 12688fi 12689 12690ac_prog=ld 12691if test "$GCC" = yes; then 12692 # Check if gcc -print-prog-name=ld gives a path. 12693 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 12694echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 12695 case $host in 12696 *-*-mingw*) 12697 # gcc leaves a trailing carriage return which upsets mingw 12698 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12699 *) 12700 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12701 esac 12702 case $ac_prog in 12703 # Accept absolute paths. 12704 [\\/]* | ?:[\\/]*) 12705 re_direlt='/[^/][^/]*/\.\./' 12706 # Canonicalize the pathname of ld 12707 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12708 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12709 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12710 done 12711 test -z "$LD" && LD="$ac_prog" 12712 ;; 12713 "") 12714 # If it fails, then pretend we aren't using GCC. 12715 ac_prog=ld 12716 ;; 12717 *) 12718 # If it is relative, then search for the first ld in PATH. 12719 with_gnu_ld=unknown 12720 ;; 12721 esac 12722elif test "$with_gnu_ld" = yes; then 12723 { echo "$as_me:$LINENO: checking for GNU ld" >&5 12724echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 12725else 12726 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 12727echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 12728fi 12729if test "${lt_cv_path_LD+set}" = set; then 12730 echo $ECHO_N "(cached) $ECHO_C" >&6 12731else 12732 if test -z "$LD"; then 12733 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12734 for ac_dir in $PATH; do 12735 IFS="$lt_save_ifs" 12736 test -z "$ac_dir" && ac_dir=. 12737 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12738 lt_cv_path_LD="$ac_dir/$ac_prog" 12739 # Check to see if the program is GNU ld. I'd rather use --version, 12740 # but apparently some variants of GNU ld only accept -v. 12741 # Break only if it was the GNU/non-GNU ld that we prefer. 12742 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12743 *GNU* | *'with BFD'*) 12744 test "$with_gnu_ld" != no && break 12745 ;; 12746 *) 12747 test "$with_gnu_ld" != yes && break 12748 ;; 12749 esac 12750 fi 12751 done 12752 IFS="$lt_save_ifs" 12753else 12754 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12755fi 12756fi 12757 12758LD="$lt_cv_path_LD" 12759if test -n "$LD"; then 12760 { echo "$as_me:$LINENO: result: $LD" >&5 12761echo "${ECHO_T}$LD" >&6; } 12762else 12763 { echo "$as_me:$LINENO: result: no" >&5 12764echo "${ECHO_T}no" >&6; } 12765fi 12766test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 12767echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 12768 { (exit 1); exit 1; }; } 12769{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 12770echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 12771if test "${lt_cv_prog_gnu_ld+set}" = set; then 12772 echo $ECHO_N "(cached) $ECHO_C" >&6 12773else 12774 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12775case `$LD -v 2>&1 </dev/null` in 12776*GNU* | *'with BFD'*) 12777 lt_cv_prog_gnu_ld=yes 12778 ;; 12779*) 12780 lt_cv_prog_gnu_ld=no 12781 ;; 12782esac 12783fi 12784{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 12785echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 12786with_gnu_ld=$lt_cv_prog_gnu_ld 12787 12788 12789 12790 12791 12792 12793 12794 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12795 # archiving commands below assume that GNU ld is being used. 12796 if test "$with_gnu_ld" = yes; then 12797 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12798 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12799 12800 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12801 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12802 12803 # If archive_cmds runs LD, not CC, wlarc should be empty 12804 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12805 # investigate it a little bit more. (MM) 12806 wlarc='${wl}' 12807 12808 # ancient GNU ld didn't support --whole-archive et. al. 12809 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12810 $GREP 'no-whole-archive' > /dev/null; then 12811 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12812 else 12813 whole_archive_flag_spec_CXX= 12814 fi 12815 else 12816 with_gnu_ld=no 12817 wlarc= 12818 12819 # A generic and very simple default shared library creation 12820 # command for GNU C++ for the case where it uses the native 12821 # linker, instead of GNU ld. If possible, this setting should 12822 # overridden to take advantage of the native linker features on 12823 # the platform it is being used on. 12824 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12825 fi 12826 12827 # Commands to make compiler produce verbose output that lists 12828 # what "hidden" libraries, object files and flags are used when 12829 # linking a shared library. 12830 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12831 12832 else 12833 GXX=no 12834 with_gnu_ld=no 12835 wlarc= 12836 fi 12837 12838 # PORTME: fill in a description of your system's C++ link characteristics 12839 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12840echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12841 ld_shlibs_CXX=yes 12842 case $host_os in 12843 aix3*) 12844 # FIXME: insert proper C++ library support 12845 ld_shlibs_CXX=no 12846 ;; 12847 aix[4-9]*) 12848 if test "$host_cpu" = ia64; then 12849 # On IA64, the linker does run time linking by default, so we don't 12850 # have to do anything special. 12851 aix_use_runtimelinking=no 12852 exp_sym_flag='-Bexport' 12853 no_entry_flag="" 12854 else 12855 aix_use_runtimelinking=no 12856 12857 # Test if we are trying to use run time linking or normal 12858 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12859 # need to do runtime linking. 12860 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12861 for ld_flag in $LDFLAGS; do 12862 case $ld_flag in 12863 *-brtl*) 12864 aix_use_runtimelinking=yes 12865 break 12866 ;; 12867 esac 12868 done 12869 ;; 12870 esac 12871 12872 exp_sym_flag='-bexport' 12873 no_entry_flag='-bnoentry' 12874 fi 12875 12876 # When large executables or shared objects are built, AIX ld can 12877 # have problems creating the table of contents. If linking a library 12878 # or program results in "error TOC overflow" add -mminimal-toc to 12879 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12880 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12881 12882 archive_cmds_CXX='' 12883 hardcode_direct_CXX=yes 12884 hardcode_direct_absolute_CXX=yes 12885 hardcode_libdir_separator_CXX=':' 12886 link_all_deplibs_CXX=yes 12887 file_list_spec_CXX='${wl}-f,' 12888 12889 if test "$GXX" = yes; then 12890 case $host_os in aix4.[012]|aix4.[012].*) 12891 # We only want to do this on AIX 4.2 and lower, the check 12892 # below for broken collect2 doesn't work under 4.3+ 12893 collect2name=`${CC} -print-prog-name=collect2` 12894 if test -f "$collect2name" && 12895 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12896 then 12897 # We have reworked collect2 12898 : 12899 else 12900 # We have old collect2 12901 hardcode_direct_CXX=unsupported 12902 # It fails to find uninstalled libraries when the uninstalled 12903 # path is not listed in the libpath. Setting hardcode_minus_L 12904 # to unsupported forces relinking 12905 hardcode_minus_L_CXX=yes 12906 hardcode_libdir_flag_spec_CXX='-L$libdir' 12907 hardcode_libdir_separator_CXX= 12908 fi 12909 esac 12910 shared_flag='-shared' 12911 if test "$aix_use_runtimelinking" = yes; then 12912 shared_flag="$shared_flag "'${wl}-G' 12913 fi 12914 else 12915 # not using gcc 12916 if test "$host_cpu" = ia64; then 12917 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12918 # chokes on -Wl,-G. The following line is correct: 12919 shared_flag='-G' 12920 else 12921 if test "$aix_use_runtimelinking" = yes; then 12922 shared_flag='${wl}-G' 12923 else 12924 shared_flag='${wl}-bM:SRE' 12925 fi 12926 fi 12927 fi 12928 12929 # It seems that -bexpall does not export symbols beginning with 12930 # underscore (_), so it is better to generate a list of symbols to 12931 # export. 12932 always_export_symbols_CXX=yes 12933 if test "$aix_use_runtimelinking" = yes; then 12934 # Warning - without using the other runtime loading flags (-brtl), 12935 # -berok will link without error, but may produce a broken library. 12936 allow_undefined_flag_CXX='-berok' 12937 # Determine the default libpath from the value encoded in an empty 12938 # executable. 12939 cat >conftest.$ac_ext <<_ACEOF 12940/* confdefs.h. */ 12941_ACEOF 12942cat confdefs.h >>conftest.$ac_ext 12943cat >>conftest.$ac_ext <<_ACEOF 12944/* end confdefs.h. */ 12945 12946int 12947main () 12948{ 12949 12950 ; 12951 return 0; 12952} 12953_ACEOF 12954rm -f conftest.$ac_objext conftest$ac_exeext 12955if { (ac_try="$ac_link" 12956case "(($ac_try" in 12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12958 *) ac_try_echo=$ac_try;; 12959esac 12960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12961 (eval "$ac_link") 2>conftest.er1 12962 ac_status=$? 12963 grep -v '^ *+' conftest.er1 >conftest.err 12964 rm -f conftest.er1 12965 cat conftest.err >&5 12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12967 (exit $ac_status); } && { 12968 test -z "$ac_cxx_werror_flag" || 12969 test ! -s conftest.err 12970 } && test -s conftest$ac_exeext && 12971 $as_test_x conftest$ac_exeext; then 12972 12973lt_aix_libpath_sed=' 12974 /Import File Strings/,/^$/ { 12975 /^0/ { 12976 s/^0 *\(.*\)$/\1/ 12977 p 12978 } 12979 }' 12980aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12981# Check for a 64-bit object if we didn't find anything. 12982if test -z "$aix_libpath"; then 12983 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12984fi 12985else 12986 echo "$as_me: failed program was:" >&5 12987sed 's/^/| /' conftest.$ac_ext >&5 12988 12989 12990fi 12991 12992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 12993 conftest$ac_exeext conftest.$ac_ext 12994if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12995 12996 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12997 12998 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12999 else 13000 if test "$host_cpu" = ia64; then 13001 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13002 allow_undefined_flag_CXX="-z nodefs" 13003 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" 13004 else 13005 # Determine the default libpath from the value encoded in an 13006 # empty executable. 13007 cat >conftest.$ac_ext <<_ACEOF 13008/* confdefs.h. */ 13009_ACEOF 13010cat confdefs.h >>conftest.$ac_ext 13011cat >>conftest.$ac_ext <<_ACEOF 13012/* end confdefs.h. */ 13013 13014int 13015main () 13016{ 13017 13018 ; 13019 return 0; 13020} 13021_ACEOF 13022rm -f conftest.$ac_objext conftest$ac_exeext 13023if { (ac_try="$ac_link" 13024case "(($ac_try" in 13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13026 *) ac_try_echo=$ac_try;; 13027esac 13028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13029 (eval "$ac_link") 2>conftest.er1 13030 ac_status=$? 13031 grep -v '^ *+' conftest.er1 >conftest.err 13032 rm -f conftest.er1 13033 cat conftest.err >&5 13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13035 (exit $ac_status); } && { 13036 test -z "$ac_cxx_werror_flag" || 13037 test ! -s conftest.err 13038 } && test -s conftest$ac_exeext && 13039 $as_test_x conftest$ac_exeext; then 13040 13041lt_aix_libpath_sed=' 13042 /Import File Strings/,/^$/ { 13043 /^0/ { 13044 s/^0 *\(.*\)$/\1/ 13045 p 13046 } 13047 }' 13048aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13049# Check for a 64-bit object if we didn't find anything. 13050if test -z "$aix_libpath"; then 13051 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13052fi 13053else 13054 echo "$as_me: failed program was:" >&5 13055sed 's/^/| /' conftest.$ac_ext >&5 13056 13057 13058fi 13059 13060rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 13061 conftest$ac_exeext conftest.$ac_ext 13062if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13063 13064 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13065 # Warning - without using the other run time loading flags, 13066 # -berok will link without error, but may produce a broken library. 13067 no_undefined_flag_CXX=' ${wl}-bernotok' 13068 allow_undefined_flag_CXX=' ${wl}-berok' 13069 # Exported symbols can be pulled into shared objects from archives 13070 whole_archive_flag_spec_CXX='$convenience' 13071 archive_cmds_need_lc_CXX=yes 13072 # This is similar to how AIX traditionally builds its shared 13073 # libraries. 13074 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13075 fi 13076 fi 13077 ;; 13078 13079 beos*) 13080 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13081 allow_undefined_flag_CXX=unsupported 13082 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13083 # support --undefined. This deserves some investigation. FIXME 13084 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13085 else 13086 ld_shlibs_CXX=no 13087 fi 13088 ;; 13089 13090 chorus*) 13091 case $cc_basename in 13092 *) 13093 # FIXME: insert proper C++ library support 13094 ld_shlibs_CXX=no 13095 ;; 13096 esac 13097 ;; 13098 13099 cygwin* | mingw* | pw32*) 13100 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13101 # as there is no search path for DLLs. 13102 hardcode_libdir_flag_spec_CXX='-L$libdir' 13103 allow_undefined_flag_CXX=unsupported 13104 always_export_symbols_CXX=no 13105 enable_shared_with_static_runtimes_CXX=yes 13106 13107 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13108 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' 13109 # If the export-symbols file already is a .def file (1st line 13110 # is EXPORTS), use it as is; otherwise, prepend... 13111 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13112 cp $export_symbols $output_objdir/$soname.def; 13113 else 13114 echo EXPORTS > $output_objdir/$soname.def; 13115 cat $export_symbols >> $output_objdir/$soname.def; 13116 fi~ 13117 $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' 13118 else 13119 ld_shlibs_CXX=no 13120 fi 13121 ;; 13122 darwin* | rhapsody*) 13123 13124 13125 archive_cmds_need_lc_CXX=no 13126 hardcode_direct_CXX=no 13127 hardcode_automatic_CXX=yes 13128 hardcode_shlibpath_var_CXX=unsupported 13129 whole_archive_flag_spec_CXX='' 13130 link_all_deplibs_CXX=yes 13131 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13132 if test "$GCC" = "yes"; then 13133 output_verbose_link_cmd=echo 13134 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}" 13135 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13136 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}" 13137 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}" 13138 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13139 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}" 13140 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}" 13141 fi 13142 13143 else 13144 ld_shlibs_CXX=no 13145 fi 13146 13147 ;; 13148 13149 dgux*) 13150 case $cc_basename in 13151 ec++*) 13152 # FIXME: insert proper C++ library support 13153 ld_shlibs_CXX=no 13154 ;; 13155 ghcx*) 13156 # Green Hills C++ Compiler 13157 # FIXME: insert proper C++ library support 13158 ld_shlibs_CXX=no 13159 ;; 13160 *) 13161 # FIXME: insert proper C++ library support 13162 ld_shlibs_CXX=no 13163 ;; 13164 esac 13165 ;; 13166 13167 freebsd[12]*) 13168 # C++ shared libraries reported to be fairly broken before 13169 # switch to ELF 13170 ld_shlibs_CXX=no 13171 ;; 13172 13173 freebsd-elf*) 13174 archive_cmds_need_lc_CXX=no 13175 ;; 13176 13177 freebsd* | dragonfly*) 13178 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13179 # conventions 13180 ld_shlibs_CXX=yes 13181 ;; 13182 13183 gnu*) 13184 ;; 13185 13186 hpux9*) 13187 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13188 hardcode_libdir_separator_CXX=: 13189 export_dynamic_flag_spec_CXX='${wl}-E' 13190 hardcode_direct_CXX=yes 13191 hardcode_minus_L_CXX=yes # Not in the search PATH, 13192 # but as the default 13193 # location of the library. 13194 13195 case $cc_basename in 13196 CC*) 13197 # FIXME: insert proper C++ library support 13198 ld_shlibs_CXX=no 13199 ;; 13200 aCC*) 13201 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13202 # Commands to make compiler produce verbose output that lists 13203 # what "hidden" libraries, object files and flags are used when 13204 # linking a shared library. 13205 # 13206 # There doesn't appear to be a way to prevent this compiler from 13207 # explicitly linking system object files so we need to strip them 13208 # from the output so that they don't get included in the library 13209 # dependencies. 13210 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; $ECHO "X$list" | $Xsed' 13211 ;; 13212 *) 13213 if test "$GXX" = yes; then 13214 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13215 else 13216 # FIXME: insert proper C++ library support 13217 ld_shlibs_CXX=no 13218 fi 13219 ;; 13220 esac 13221 ;; 13222 13223 hpux10*|hpux11*) 13224 if test $with_gnu_ld = no; then 13225 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 13226 hardcode_libdir_separator_CXX=: 13227 13228 case $host_cpu in 13229 hppa*64*|ia64*) 13230 ;; 13231 *) 13232 export_dynamic_flag_spec_CXX='${wl}-E' 13233 ;; 13234 esac 13235 fi 13236 case $host_cpu in 13237 hppa*64*|ia64*) 13238 hardcode_direct_CXX=no 13239 hardcode_shlibpath_var_CXX=no 13240 ;; 13241 *) 13242 hardcode_direct_CXX=yes 13243 hardcode_direct_absolute_CXX=yes 13244 hardcode_minus_L_CXX=yes # Not in the search PATH, 13245 # but as the default 13246 # location of the library. 13247 ;; 13248 esac 13249 13250 case $cc_basename in 13251 CC*) 13252 # FIXME: insert proper C++ library support 13253 ld_shlibs_CXX=no 13254 ;; 13255 aCC*) 13256 case $host_cpu in 13257 hppa*64*) 13258 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13259 ;; 13260 ia64*) 13261 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13262 ;; 13263 *) 13264 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13265 ;; 13266 esac 13267 # Commands to make compiler produce verbose output that lists 13268 # what "hidden" libraries, object files and flags are used when 13269 # linking a shared library. 13270 # 13271 # There doesn't appear to be a way to prevent this compiler from 13272 # explicitly linking system object files so we need to strip them 13273 # from the output so that they don't get included in the library 13274 # dependencies. 13275 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; $ECHO "X$list" | $Xsed' 13276 ;; 13277 *) 13278 if test "$GXX" = yes; then 13279 if test $with_gnu_ld = no; then 13280 case $host_cpu in 13281 hppa*64*) 13282 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13283 ;; 13284 ia64*) 13285 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13286 ;; 13287 *) 13288 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13289 ;; 13290 esac 13291 fi 13292 else 13293 # FIXME: insert proper C++ library support 13294 ld_shlibs_CXX=no 13295 fi 13296 ;; 13297 esac 13298 ;; 13299 13300 interix[3-9]*) 13301 hardcode_direct_CXX=no 13302 hardcode_shlibpath_var_CXX=no 13303 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13304 export_dynamic_flag_spec_CXX='${wl}-E' 13305 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13306 # Instead, shared libraries are loaded at an image base (0x10000000 by 13307 # default) and relocated if they conflict, which is a slow very memory 13308 # consuming and fragmenting process. To avoid this, we pick a random, 13309 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13310 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13311 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' 13312 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' 13313 ;; 13314 irix5* | irix6*) 13315 case $cc_basename in 13316 CC*) 13317 # SGI C++ 13318 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13319 13320 # Archives containing C++ object files must be created using 13321 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13322 # necessary to make sure instantiated templates are included 13323 # in the archive. 13324 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13325 ;; 13326 *) 13327 if test "$GXX" = yes; then 13328 if test "$with_gnu_ld" = no; then 13329 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13330 else 13331 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 13332 fi 13333 fi 13334 link_all_deplibs_CXX=yes 13335 ;; 13336 esac 13337 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13338 hardcode_libdir_separator_CXX=: 13339 inherit_rpath_CXX=yes 13340 ;; 13341 13342 linux* | k*bsd*-gnu) 13343 case $cc_basename in 13344 KCC*) 13345 # Kuck and Associates, Inc. (KAI) C++ Compiler 13346 13347 # KCC will only create a shared library if the output file 13348 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13349 # to its proper name (with version) after linking. 13350 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' 13351 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' 13352 # Commands to make compiler produce verbose output that lists 13353 # what "hidden" libraries, object files and flags are used when 13354 # linking a shared library. 13355 # 13356 # There doesn't appear to be a way to prevent this compiler from 13357 # explicitly linking system object files so we need to strip them 13358 # from the output so that they don't get included in the library 13359 # dependencies. 13360 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; $ECHO "X$list" | $Xsed' 13361 13362 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13363 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13364 13365 # Archives containing C++ object files must be created using 13366 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13367 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13368 ;; 13369 icpc* | ecpc* ) 13370 # Intel C++ 13371 with_gnu_ld=yes 13372 # version 8.0 and above of icpc choke on multiply defined symbols 13373 # if we add $predep_objects and $postdep_objects, however 7.1 and 13374 # earlier do not add the objects themselves. 13375 case `$CC -V 2>&1` in 13376 *"Version 7."*) 13377 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13378 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' 13379 ;; 13380 *) # Version 8.0 or newer 13381 tmp_idyn= 13382 case $host_cpu in 13383 ia64*) tmp_idyn=' -i_dynamic';; 13384 esac 13385 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13386 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' 13387 ;; 13388 esac 13389 archive_cmds_need_lc_CXX=no 13390 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13391 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13392 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13393 ;; 13394 pgCC* | pgcpp*) 13395 # Portland Group C++ compiler 13396 case `$CC -V` in 13397 *pgCC\ [1-5]* | *pgcpp\ [1-5]*) 13398 prelink_cmds_CXX='tpldir=Template.dir~ 13399 rm -rf $tpldir~ 13400 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13401 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 13402 old_archive_cmds_CXX='tpldir=Template.dir~ 13403 rm -rf $tpldir~ 13404 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13405 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 13406 $RANLIB $oldlib' 13407 archive_cmds_CXX='tpldir=Template.dir~ 13408 rm -rf $tpldir~ 13409 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13410 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13411 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13412 rm -rf $tpldir~ 13413 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13414 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13415 ;; 13416 *) # Version 6 will use weak symbols 13417 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13418 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' 13419 ;; 13420 esac 13421 13422 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13423 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13424 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 13425 ;; 13426 cxx*) 13427 # Compaq C++ 13428 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13429 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' 13430 13431 runpath_var=LD_RUN_PATH 13432 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13433 hardcode_libdir_separator_CXX=: 13434 13435 # Commands to make compiler produce verbose output that lists 13436 # what "hidden" libraries, object files and flags are used when 13437 # linking a shared library. 13438 # 13439 # There doesn't appear to be a way to prevent this compiler from 13440 # explicitly linking system object files so we need to strip them 13441 # from the output so that they don't get included in the library 13442 # dependencies. 13443 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 13444 ;; 13445 xl*) 13446 # IBM XL 8.0 on PPC, with GNU ld 13447 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13448 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13449 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13450 if test "x$supports_anon_versioning" = xyes; then 13451 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13453 echo "local: *; };" >> $output_objdir/$libname.ver~ 13454 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13455 fi 13456 ;; 13457 *) 13458 case `$CC -V 2>&1 | sed 5q` in 13459 *Sun\ C*) 13460 # Sun C++ 5.9 13461 no_undefined_flag_CXX=' -zdefs' 13462 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13463 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' 13464 hardcode_libdir_flag_spec_CXX='-R$libdir' 13465 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 13466 compiler_needs_object_CXX=yes 13467 13468 # Not sure whether something based on 13469 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13470 # would be better. 13471 output_verbose_link_cmd='echo' 13472 13473 # Archives containing C++ object files must be created using 13474 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13475 # necessary to make sure instantiated templates are included 13476 # in the archive. 13477 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13478 ;; 13479 esac 13480 ;; 13481 esac 13482 ;; 13483 13484 lynxos*) 13485 # FIXME: insert proper C++ library support 13486 ld_shlibs_CXX=no 13487 ;; 13488 13489 m88k*) 13490 # FIXME: insert proper C++ library support 13491 ld_shlibs_CXX=no 13492 ;; 13493 13494 mvs*) 13495 case $cc_basename in 13496 cxx*) 13497 # FIXME: insert proper C++ library support 13498 ld_shlibs_CXX=no 13499 ;; 13500 *) 13501 # FIXME: insert proper C++ library support 13502 ld_shlibs_CXX=no 13503 ;; 13504 esac 13505 ;; 13506 13507 netbsd*) 13508 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13509 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13510 wlarc= 13511 hardcode_libdir_flag_spec_CXX='-R$libdir' 13512 hardcode_direct_CXX=yes 13513 hardcode_shlibpath_var_CXX=no 13514 fi 13515 # Workaround some broken pre-1.5 toolchains 13516 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13517 ;; 13518 13519 *nto* | *qnx*) 13520 ld_shlibs_CXX=yes 13521 ;; 13522 13523 openbsd2*) 13524 # C++ shared libraries are fairly broken 13525 ld_shlibs_CXX=no 13526 ;; 13527 13528 openbsd*) 13529 if test -f /usr/libexec/ld.so; then 13530 hardcode_direct_CXX=yes 13531 hardcode_shlibpath_var_CXX=no 13532 hardcode_direct_absolute_CXX=yes 13533 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13534 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13535 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13536 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13537 export_dynamic_flag_spec_CXX='${wl}-E' 13538 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13539 fi 13540 output_verbose_link_cmd=echo 13541 else 13542 ld_shlibs_CXX=no 13543 fi 13544 ;; 13545 13546 osf3* | osf4* | osf5*) 13547 case $cc_basename in 13548 KCC*) 13549 # Kuck and Associates, Inc. (KAI) C++ Compiler 13550 13551 # KCC will only create a shared library if the output file 13552 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13553 # to its proper name (with version) after linking. 13554 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' 13555 13556 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13557 hardcode_libdir_separator_CXX=: 13558 13559 # Archives containing C++ object files must be created using 13560 # the KAI C++ compiler. 13561 case $host in 13562 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13563 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13564 esac 13565 ;; 13566 RCC*) 13567 # Rational C++ 2.4.1 13568 # FIXME: insert proper C++ library support 13569 ld_shlibs_CXX=no 13570 ;; 13571 cxx*) 13572 case $host in 13573 osf3*) 13574 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13575 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13576 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13577 ;; 13578 *) 13579 allow_undefined_flag_CXX=' -expect_unresolved \*' 13580 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 13581 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13582 echo "-hidden">> $lib.exp~ 13583 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 13584 $RM $lib.exp' 13585 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13586 ;; 13587 esac 13588 13589 hardcode_libdir_separator_CXX=: 13590 13591 # Commands to make compiler produce verbose output that lists 13592 # what "hidden" libraries, object files and flags are used when 13593 # linking a shared library. 13594 # 13595 # There doesn't appear to be a way to prevent this compiler from 13596 # explicitly linking system object files so we need to strip them 13597 # from the output so that they don't get included in the library 13598 # dependencies. 13599 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 13600 ;; 13601 *) 13602 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13603 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13604 case $host in 13605 osf3*) 13606 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13607 ;; 13608 *) 13609 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13610 ;; 13611 esac 13612 13613 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13614 hardcode_libdir_separator_CXX=: 13615 13616 # Commands to make compiler produce verbose output that lists 13617 # what "hidden" libraries, object files and flags are used when 13618 # linking a shared library. 13619 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13620 13621 else 13622 # FIXME: insert proper C++ library support 13623 ld_shlibs_CXX=no 13624 fi 13625 ;; 13626 esac 13627 ;; 13628 13629 psos*) 13630 # FIXME: insert proper C++ library support 13631 ld_shlibs_CXX=no 13632 ;; 13633 13634 sunos4*) 13635 case $cc_basename in 13636 CC*) 13637 # Sun C++ 4.x 13638 # FIXME: insert proper C++ library support 13639 ld_shlibs_CXX=no 13640 ;; 13641 lcc*) 13642 # Lucid 13643 # FIXME: insert proper C++ library support 13644 ld_shlibs_CXX=no 13645 ;; 13646 *) 13647 # FIXME: insert proper C++ library support 13648 ld_shlibs_CXX=no 13649 ;; 13650 esac 13651 ;; 13652 13653 solaris*) 13654 case $cc_basename in 13655 CC*) 13656 # Sun C++ 4.2, 5.x and Centerline C++ 13657 archive_cmds_need_lc_CXX=yes 13658 no_undefined_flag_CXX=' -zdefs' 13659 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13660 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13661 $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' 13662 13663 hardcode_libdir_flag_spec_CXX='-R$libdir' 13664 hardcode_shlibpath_var_CXX=no 13665 case $host_os in 13666 solaris2.[0-5] | solaris2.[0-5].*) ;; 13667 *) 13668 # The compiler driver will combine and reorder linker options, 13669 # but understands `-z linker_flag'. 13670 # Supported since Solaris 2.6 (maybe 2.5.1?) 13671 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13672 ;; 13673 esac 13674 link_all_deplibs_CXX=yes 13675 13676 output_verbose_link_cmd='echo' 13677 13678 # Archives containing C++ object files must be created using 13679 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13680 # necessary to make sure instantiated templates are included 13681 # in the archive. 13682 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13683 ;; 13684 gcx*) 13685 # Green Hills C++ Compiler 13686 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13687 13688 # The C++ compiler must be used to create the archive. 13689 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13690 ;; 13691 *) 13692 # GNU C++ compiler with Solaris linker 13693 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13694 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13695 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13696 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13697 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13698 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13699 13700 # Commands to make compiler produce verbose output that lists 13701 # what "hidden" libraries, object files and flags are used when 13702 # linking a shared library. 13703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13704 else 13705 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13706 # platform. 13707 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13708 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13709 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13710 13711 # Commands to make compiler produce verbose output that lists 13712 # what "hidden" libraries, object files and flags are used when 13713 # linking a shared library. 13714 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 13715 fi 13716 13717 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13718 case $host_os in 13719 solaris2.[0-5] | solaris2.[0-5].*) ;; 13720 *) 13721 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13722 ;; 13723 esac 13724 fi 13725 ;; 13726 esac 13727 ;; 13728 13729 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13730 no_undefined_flag_CXX='${wl}-z,text' 13731 archive_cmds_need_lc_CXX=no 13732 hardcode_shlibpath_var_CXX=no 13733 runpath_var='LD_RUN_PATH' 13734 13735 case $cc_basename in 13736 CC*) 13737 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13738 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13739 ;; 13740 *) 13741 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13742 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13743 ;; 13744 esac 13745 ;; 13746 13747 sysv5* | sco3.2v5* | sco5v6*) 13748 # Note: We can NOT use -z defs as we might desire, because we do not 13749 # link with -lc, and that would cause any symbols used from libc to 13750 # always be unresolved, which means just about no library would 13751 # ever link correctly. If we're not using GNU ld we use -z text 13752 # though, which does catch some bad symbols but isn't as heavy-handed 13753 # as -z defs. 13754 no_undefined_flag_CXX='${wl}-z,text' 13755 allow_undefined_flag_CXX='${wl}-z,nodefs' 13756 archive_cmds_need_lc_CXX=no 13757 hardcode_shlibpath_var_CXX=no 13758 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13759 hardcode_libdir_separator_CXX=':' 13760 link_all_deplibs_CXX=yes 13761 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13762 runpath_var='LD_RUN_PATH' 13763 13764 case $cc_basename in 13765 CC*) 13766 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13767 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13768 ;; 13769 *) 13770 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13771 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13772 ;; 13773 esac 13774 ;; 13775 13776 tandem*) 13777 case $cc_basename in 13778 NCC*) 13779 # NonStop-UX NCC 3.20 13780 # FIXME: insert proper C++ library support 13781 ld_shlibs_CXX=no 13782 ;; 13783 *) 13784 # FIXME: insert proper C++ library support 13785 ld_shlibs_CXX=no 13786 ;; 13787 esac 13788 ;; 13789 13790 vxworks*) 13791 # FIXME: insert proper C++ library support 13792 ld_shlibs_CXX=no 13793 ;; 13794 13795 *) 13796 # FIXME: insert proper C++ library support 13797 ld_shlibs_CXX=no 13798 ;; 13799 esac 13800 13801 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 13802echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 13803 test "$ld_shlibs_CXX" = no && can_build_shared=no 13804 13805 GCC_CXX="$GXX" 13806 LD_CXX="$LD" 13807 13808 ## CAVEAT EMPTOR: 13809 ## There is no encapsulation within the following macros, do not change 13810 ## the running order or otherwise move them around unless you know exactly 13811 ## what you are doing... 13812 # Dependencies to place before and after the object being linked: 13813predep_objects_CXX= 13814postdep_objects_CXX= 13815predeps_CXX= 13816postdeps_CXX= 13817compiler_lib_search_path_CXX= 13818 13819cat > conftest.$ac_ext <<_LT_EOF 13820class Foo 13821{ 13822public: 13823 Foo (void) { a = 0; } 13824private: 13825 int a; 13826}; 13827_LT_EOF 13828 13829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13830 (eval $ac_compile) 2>&5 13831 ac_status=$? 13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13833 (exit $ac_status); }; then 13834 # Parse the compiler output and extract the necessary 13835 # objects, libraries and library flags. 13836 13837 # Sentinel used to keep track of whether or not we are before 13838 # the conftest object file. 13839 pre_test_object_deps_done=no 13840 13841 for p in `eval "$output_verbose_link_cmd"`; do 13842 case $p in 13843 13844 -L* | -R* | -l*) 13845 # Some compilers place space between "-{L,R}" and the path. 13846 # Remove the space. 13847 if test $p = "-L" || 13848 test $p = "-R"; then 13849 prev=$p 13850 continue 13851 else 13852 prev= 13853 fi 13854 13855 if test "$pre_test_object_deps_done" = no; then 13856 case $p in 13857 -L* | -R*) 13858 # Internal compiler library paths should come after those 13859 # provided the user. The postdeps already come after the 13860 # user supplied libs so there is no need to process them. 13861 if test -z "$compiler_lib_search_path_CXX"; then 13862 compiler_lib_search_path_CXX="${prev}${p}" 13863 else 13864 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13865 fi 13866 ;; 13867 # The "-l" case would never come before the object being 13868 # linked, so don't bother handling this case. 13869 esac 13870 else 13871 if test -z "$postdeps_CXX"; then 13872 postdeps_CXX="${prev}${p}" 13873 else 13874 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13875 fi 13876 fi 13877 ;; 13878 13879 *.$objext) 13880 # This assumes that the test object file only shows up 13881 # once in the compiler output. 13882 if test "$p" = "conftest.$objext"; then 13883 pre_test_object_deps_done=yes 13884 continue 13885 fi 13886 13887 if test "$pre_test_object_deps_done" = no; then 13888 if test -z "$predep_objects_CXX"; then 13889 predep_objects_CXX="$p" 13890 else 13891 predep_objects_CXX="$predep_objects_CXX $p" 13892 fi 13893 else 13894 if test -z "$postdep_objects_CXX"; then 13895 postdep_objects_CXX="$p" 13896 else 13897 postdep_objects_CXX="$postdep_objects_CXX $p" 13898 fi 13899 fi 13900 ;; 13901 13902 *) ;; # Ignore the rest. 13903 13904 esac 13905 done 13906 13907 # Clean up. 13908 rm -f a.out a.exe 13909else 13910 echo "libtool.m4: error: problem compiling CXX test program" 13911fi 13912 13913$RM -f confest.$objext 13914 13915# PORTME: override above test on systems where it is broken 13916case $host_os in 13917interix[3-9]*) 13918 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13919 # hack all around it, let's just trust "g++" to DTRT. 13920 predep_objects_CXX= 13921 postdep_objects_CXX= 13922 postdeps_CXX= 13923 ;; 13924 13925linux*) 13926 case `$CC -V 2>&1 | sed 5q` in 13927 *Sun\ C*) 13928 # Sun C++ 5.9 13929 13930 # The more standards-conforming stlport4 library is 13931 # incompatible with the Cstd library. Avoid specifying 13932 # it if it's in CXXFLAGS. Ignore libCrun as 13933 # -library=stlport4 depends on it. 13934 case " $CXX $CXXFLAGS " in 13935 *" -library=stlport4 "*) 13936 solaris_use_stlport4=yes 13937 ;; 13938 esac 13939 13940 if test "$solaris_use_stlport4" != yes; then 13941 postdeps_CXX='-library=Cstd -library=Crun' 13942 fi 13943 ;; 13944 esac 13945 ;; 13946 13947solaris*) 13948 case $cc_basename in 13949 CC*) 13950 # The more standards-conforming stlport4 library is 13951 # incompatible with the Cstd library. Avoid specifying 13952 # it if it's in CXXFLAGS. Ignore libCrun as 13953 # -library=stlport4 depends on it. 13954 case " $CXX $CXXFLAGS " in 13955 *" -library=stlport4 "*) 13956 solaris_use_stlport4=yes 13957 ;; 13958 esac 13959 13960 # Adding this requires a known-good setup of shared libraries for 13961 # Sun compiler versions before 5.6, else PIC objects from an old 13962 # archive will be linked into the output, leading to subtle bugs. 13963 if test "$solaris_use_stlport4" != yes; then 13964 postdeps_CXX='-library=Cstd -library=Crun' 13965 fi 13966 ;; 13967 esac 13968 ;; 13969esac 13970 13971 13972case " $postdeps_CXX " in 13973*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13974esac 13975 compiler_lib_search_dirs_CXX= 13976if test -n "${compiler_lib_search_path_CXX}"; then 13977 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13978fi 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 lt_prog_compiler_wl_CXX= 14011lt_prog_compiler_pic_CXX= 14012lt_prog_compiler_static_CXX= 14013 14014{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14015echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14016 14017 # C++ specific cases for pic, static, wl, etc. 14018 if test "$GXX" = yes; then 14019 lt_prog_compiler_wl_CXX='-Wl,' 14020 lt_prog_compiler_static_CXX='-static' 14021 14022 case $host_os in 14023 aix*) 14024 # All AIX code is PIC. 14025 if test "$host_cpu" = ia64; then 14026 # AIX 5 now supports IA64 processor 14027 lt_prog_compiler_static_CXX='-Bstatic' 14028 fi 14029 ;; 14030 14031 amigaos*) 14032 case $host_cpu in 14033 powerpc) 14034 # see comment about AmigaOS4 .so support 14035 lt_prog_compiler_pic_CXX='-fPIC' 14036 ;; 14037 m68k) 14038 # FIXME: we need at least 68020 code to build shared libraries, but 14039 # adding the `-m68020' flag to GCC prevents building anything better, 14040 # like `-m68040'. 14041 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14042 ;; 14043 esac 14044 ;; 14045 14046 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14047 # PIC is the default for these OSes. 14048 ;; 14049 mingw* | cygwin* | os2* | pw32*) 14050 # This hack is so that the source file can tell whether it is being 14051 # built for inclusion in a dll (and should export symbols for example). 14052 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14053 # (--disable-auto-import) libraries 14054 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14055 ;; 14056 darwin* | rhapsody*) 14057 # PIC is the default on this platform 14058 # Common symbols not allowed in MH_DYLIB files 14059 lt_prog_compiler_pic_CXX='-fno-common' 14060 ;; 14061 *djgpp*) 14062 # DJGPP does not support shared libraries at all 14063 lt_prog_compiler_pic_CXX= 14064 ;; 14065 interix[3-9]*) 14066 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14067 # Instead, we relocate shared libraries at runtime. 14068 ;; 14069 sysv4*MP*) 14070 if test -d /usr/nec; then 14071 lt_prog_compiler_pic_CXX=-Kconform_pic 14072 fi 14073 ;; 14074 hpux*) 14075 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14076 # not for PA HP-UX. 14077 case $host_cpu in 14078 hppa*64*|ia64*) 14079 ;; 14080 *) 14081 lt_prog_compiler_pic_CXX='-fPIC' 14082 ;; 14083 esac 14084 ;; 14085 *qnx* | *nto*) 14086 # QNX uses GNU C++, but need to define -shared option too, otherwise 14087 # it will coredump. 14088 lt_prog_compiler_pic_CXX='-fPIC -shared' 14089 ;; 14090 *) 14091 lt_prog_compiler_pic_CXX='-fPIC' 14092 ;; 14093 esac 14094 else 14095 case $host_os in 14096 aix[4-9]*) 14097 # All AIX code is PIC. 14098 if test "$host_cpu" = ia64; then 14099 # AIX 5 now supports IA64 processor 14100 lt_prog_compiler_static_CXX='-Bstatic' 14101 else 14102 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14103 fi 14104 ;; 14105 chorus*) 14106 case $cc_basename in 14107 cxch68*) 14108 # Green Hills C++ Compiler 14109 # _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" 14110 ;; 14111 esac 14112 ;; 14113 dgux*) 14114 case $cc_basename in 14115 ec++*) 14116 lt_prog_compiler_pic_CXX='-KPIC' 14117 ;; 14118 ghcx*) 14119 # Green Hills C++ Compiler 14120 lt_prog_compiler_pic_CXX='-pic' 14121 ;; 14122 *) 14123 ;; 14124 esac 14125 ;; 14126 freebsd* | dragonfly*) 14127 # FreeBSD uses GNU C++ 14128 ;; 14129 hpux9* | hpux10* | hpux11*) 14130 case $cc_basename in 14131 CC*) 14132 lt_prog_compiler_wl_CXX='-Wl,' 14133 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14134 if test "$host_cpu" != ia64; then 14135 lt_prog_compiler_pic_CXX='+Z' 14136 fi 14137 ;; 14138 aCC*) 14139 lt_prog_compiler_wl_CXX='-Wl,' 14140 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 14141 case $host_cpu in 14142 hppa*64*|ia64*) 14143 # +Z the default 14144 ;; 14145 *) 14146 lt_prog_compiler_pic_CXX='+Z' 14147 ;; 14148 esac 14149 ;; 14150 *) 14151 ;; 14152 esac 14153 ;; 14154 interix*) 14155 # This is c89, which is MS Visual C++ (no shared libs) 14156 # Anyone wants to do a port? 14157 ;; 14158 irix5* | irix6* | nonstopux*) 14159 case $cc_basename in 14160 CC*) 14161 lt_prog_compiler_wl_CXX='-Wl,' 14162 lt_prog_compiler_static_CXX='-non_shared' 14163 # CC pic flag -KPIC is the default. 14164 ;; 14165 *) 14166 ;; 14167 esac 14168 ;; 14169 linux* | k*bsd*-gnu) 14170 case $cc_basename in 14171 KCC*) 14172 # KAI C++ Compiler 14173 lt_prog_compiler_wl_CXX='--backend -Wl,' 14174 lt_prog_compiler_pic_CXX='-fPIC' 14175 ;; 14176 icpc* | ecpc* ) 14177 # Intel C++ 14178 lt_prog_compiler_wl_CXX='-Wl,' 14179 lt_prog_compiler_pic_CXX='-KPIC' 14180 lt_prog_compiler_static_CXX='-static' 14181 ;; 14182 pgCC* | pgcpp*) 14183 # Portland Group C++ compiler 14184 lt_prog_compiler_wl_CXX='-Wl,' 14185 lt_prog_compiler_pic_CXX='-fpic' 14186 lt_prog_compiler_static_CXX='-Bstatic' 14187 ;; 14188 cxx*) 14189 # Compaq C++ 14190 # Make sure the PIC flag is empty. It appears that all Alpha 14191 # Linux and Compaq Tru64 Unix objects are PIC. 14192 lt_prog_compiler_pic_CXX= 14193 lt_prog_compiler_static_CXX='-non_shared' 14194 ;; 14195 xlc* | xlC*) 14196 # IBM XL 8.0 on PPC 14197 lt_prog_compiler_wl_CXX='-Wl,' 14198 lt_prog_compiler_pic_CXX='-qpic' 14199 lt_prog_compiler_static_CXX='-qstaticlink' 14200 ;; 14201 *) 14202 case `$CC -V 2>&1 | sed 5q` in 14203 *Sun\ C*) 14204 # Sun C++ 5.9 14205 lt_prog_compiler_pic_CXX='-KPIC' 14206 lt_prog_compiler_static_CXX='-Bstatic' 14207 lt_prog_compiler_wl_CXX='-Qoption ld ' 14208 ;; 14209 esac 14210 ;; 14211 esac 14212 ;; 14213 lynxos*) 14214 ;; 14215 m88k*) 14216 ;; 14217 mvs*) 14218 case $cc_basename in 14219 cxx*) 14220 lt_prog_compiler_pic_CXX='-W c,exportall' 14221 ;; 14222 *) 14223 ;; 14224 esac 14225 ;; 14226 netbsd*) 14227 ;; 14228 *qnx* | *nto*) 14229 # QNX uses GNU C++, but need to define -shared option too, otherwise 14230 # it will coredump. 14231 lt_prog_compiler_pic_CXX='-fPIC -shared' 14232 ;; 14233 osf3* | osf4* | osf5*) 14234 case $cc_basename in 14235 KCC*) 14236 lt_prog_compiler_wl_CXX='--backend -Wl,' 14237 ;; 14238 RCC*) 14239 # Rational C++ 2.4.1 14240 lt_prog_compiler_pic_CXX='-pic' 14241 ;; 14242 cxx*) 14243 # Digital/Compaq C++ 14244 lt_prog_compiler_wl_CXX='-Wl,' 14245 # Make sure the PIC flag is empty. It appears that all Alpha 14246 # Linux and Compaq Tru64 Unix objects are PIC. 14247 lt_prog_compiler_pic_CXX= 14248 lt_prog_compiler_static_CXX='-non_shared' 14249 ;; 14250 *) 14251 ;; 14252 esac 14253 ;; 14254 psos*) 14255 ;; 14256 solaris*) 14257 case $cc_basename in 14258 CC*) 14259 # Sun C++ 4.2, 5.x and Centerline C++ 14260 lt_prog_compiler_pic_CXX='-KPIC' 14261 lt_prog_compiler_static_CXX='-Bstatic' 14262 lt_prog_compiler_wl_CXX='-Qoption ld ' 14263 ;; 14264 gcx*) 14265 # Green Hills C++ Compiler 14266 lt_prog_compiler_pic_CXX='-PIC' 14267 ;; 14268 *) 14269 ;; 14270 esac 14271 ;; 14272 sunos4*) 14273 case $cc_basename in 14274 CC*) 14275 # Sun C++ 4.x 14276 lt_prog_compiler_pic_CXX='-pic' 14277 lt_prog_compiler_static_CXX='-Bstatic' 14278 ;; 14279 lcc*) 14280 # Lucid 14281 lt_prog_compiler_pic_CXX='-pic' 14282 ;; 14283 *) 14284 ;; 14285 esac 14286 ;; 14287 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14288 case $cc_basename in 14289 CC*) 14290 lt_prog_compiler_wl_CXX='-Wl,' 14291 lt_prog_compiler_pic_CXX='-KPIC' 14292 lt_prog_compiler_static_CXX='-Bstatic' 14293 ;; 14294 esac 14295 ;; 14296 tandem*) 14297 case $cc_basename in 14298 NCC*) 14299 # NonStop-UX NCC 3.20 14300 lt_prog_compiler_pic_CXX='-KPIC' 14301 ;; 14302 *) 14303 ;; 14304 esac 14305 ;; 14306 vxworks*) 14307 ;; 14308 *) 14309 lt_prog_compiler_can_build_shared_CXX=no 14310 ;; 14311 esac 14312 fi 14313 14314case $host_os in 14315 # For platforms which do not support PIC, -DPIC is meaningless: 14316 *djgpp*) 14317 lt_prog_compiler_pic_CXX= 14318 ;; 14319 *) 14320 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14321 ;; 14322esac 14323{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 14324echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 14325 14326 14327 14328# 14329# Check to make sure the PIC flag actually works. 14330# 14331if test -n "$lt_prog_compiler_pic_CXX"; then 14332 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14333echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 14334if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 14335 echo $ECHO_N "(cached) $ECHO_C" >&6 14336else 14337 lt_cv_prog_compiler_pic_works_CXX=no 14338 ac_outfile=conftest.$ac_objext 14339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14340 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14341 # Insert the option either (1) after the last *FLAGS variable, or 14342 # (2) before a word containing "conftest.", or (3) at the end. 14343 # Note that $ac_compile itself does not contain backslashes and begins 14344 # with a dollar sign (not a hyphen), so the echo should work correctly. 14345 # The option is referenced via a variable to avoid confusing sed. 14346 lt_compile=`echo "$ac_compile" | $SED \ 14347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14349 -e 's:$: $lt_compiler_flag:'` 14350 (eval echo "\"\$as_me:14350: $lt_compile\"" >&5) 14351 (eval "$lt_compile" 2>conftest.err) 14352 ac_status=$? 14353 cat conftest.err >&5 14354 echo "$as_me:14354: \$? = $ac_status" >&5 14355 if (exit $ac_status) && test -s "$ac_outfile"; then 14356 # The compiler can only warn and ignore the option if not recognized 14357 # So say no if there are warnings other than the usual output. 14358 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14360 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14361 lt_cv_prog_compiler_pic_works_CXX=yes 14362 fi 14363 fi 14364 $RM conftest* 14365 14366fi 14367{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14368echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14369 14370if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14371 case $lt_prog_compiler_pic_CXX in 14372 "" | " "*) ;; 14373 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14374 esac 14375else 14376 lt_prog_compiler_pic_CXX= 14377 lt_prog_compiler_can_build_shared_CXX=no 14378fi 14379 14380fi 14381 14382 14383 14384# 14385# Check to make sure the static flag actually works. 14386# 14387wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14388{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14389echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14390if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 14391 echo $ECHO_N "(cached) $ECHO_C" >&6 14392else 14393 lt_cv_prog_compiler_static_works_CXX=no 14394 save_LDFLAGS="$LDFLAGS" 14395 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14396 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14397 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14398 # The linker can only warn and ignore the option if not recognized 14399 # So say no if there are warnings 14400 if test -s conftest.err; then 14401 # Append any errors to the config.log. 14402 cat conftest.err 1>&5 14403 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14405 if diff conftest.exp conftest.er2 >/dev/null; then 14406 lt_cv_prog_compiler_static_works_CXX=yes 14407 fi 14408 else 14409 lt_cv_prog_compiler_static_works_CXX=yes 14410 fi 14411 fi 14412 $RM -r conftest* 14413 LDFLAGS="$save_LDFLAGS" 14414 14415fi 14416{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14417echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } 14418 14419if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14420 : 14421else 14422 lt_prog_compiler_static_CXX= 14423fi 14424 14425 14426 14427 14428 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14429echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14430if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14431 echo $ECHO_N "(cached) $ECHO_C" >&6 14432else 14433 lt_cv_prog_compiler_c_o_CXX=no 14434 $RM -r conftest 2>/dev/null 14435 mkdir conftest 14436 cd conftest 14437 mkdir out 14438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14439 14440 lt_compiler_flag="-o out/conftest2.$ac_objext" 14441 # Insert the option either (1) after the last *FLAGS variable, or 14442 # (2) before a word containing "conftest.", or (3) at the end. 14443 # Note that $ac_compile itself does not contain backslashes and begins 14444 # with a dollar sign (not a hyphen), so the echo should work correctly. 14445 lt_compile=`echo "$ac_compile" | $SED \ 14446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14448 -e 's:$: $lt_compiler_flag:'` 14449 (eval echo "\"\$as_me:14449: $lt_compile\"" >&5) 14450 (eval "$lt_compile" 2>out/conftest.err) 14451 ac_status=$? 14452 cat out/conftest.err >&5 14453 echo "$as_me:14453: \$? = $ac_status" >&5 14454 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14455 then 14456 # The compiler can only warn and ignore the option if not recognized 14457 # So say no if there are warnings 14458 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14459 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14460 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14461 lt_cv_prog_compiler_c_o_CXX=yes 14462 fi 14463 fi 14464 chmod u+w . 2>&5 14465 $RM conftest* 14466 # SGI C++ compiler will create directory out/ii_files/ for 14467 # template instantiation 14468 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14469 $RM out/* && rmdir out 14470 cd .. 14471 $RM -r conftest 14472 $RM conftest* 14473 14474fi 14475{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14476echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 14477 14478 14479 14480 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14481echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14482if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 14483 echo $ECHO_N "(cached) $ECHO_C" >&6 14484else 14485 lt_cv_prog_compiler_c_o_CXX=no 14486 $RM -r conftest 2>/dev/null 14487 mkdir conftest 14488 cd conftest 14489 mkdir out 14490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14491 14492 lt_compiler_flag="-o out/conftest2.$ac_objext" 14493 # Insert the option either (1) after the last *FLAGS variable, or 14494 # (2) before a word containing "conftest.", or (3) at the end. 14495 # Note that $ac_compile itself does not contain backslashes and begins 14496 # with a dollar sign (not a hyphen), so the echo should work correctly. 14497 lt_compile=`echo "$ac_compile" | $SED \ 14498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14500 -e 's:$: $lt_compiler_flag:'` 14501 (eval echo "\"\$as_me:14501: $lt_compile\"" >&5) 14502 (eval "$lt_compile" 2>out/conftest.err) 14503 ac_status=$? 14504 cat out/conftest.err >&5 14505 echo "$as_me:14505: \$? = $ac_status" >&5 14506 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14507 then 14508 # The compiler can only warn and ignore the option if not recognized 14509 # So say no if there are warnings 14510 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14511 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14512 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14513 lt_cv_prog_compiler_c_o_CXX=yes 14514 fi 14515 fi 14516 chmod u+w . 2>&5 14517 $RM conftest* 14518 # SGI C++ compiler will create directory out/ii_files/ for 14519 # template instantiation 14520 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14521 $RM out/* && rmdir out 14522 cd .. 14523 $RM -r conftest 14524 $RM conftest* 14525 14526fi 14527{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14528echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 14529 14530 14531 14532 14533hard_links="nottested" 14534if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14535 # do not overwrite the value of need_locks provided by the user 14536 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14537echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14538 hard_links=yes 14539 $RM conftest* 14540 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14541 touch conftest.a 14542 ln conftest.a conftest.b 2>&5 || hard_links=no 14543 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14544 { echo "$as_me:$LINENO: result: $hard_links" >&5 14545echo "${ECHO_T}$hard_links" >&6; } 14546 if test "$hard_links" = no; then 14547 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14548echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14549 need_locks=warn 14550 fi 14551else 14552 need_locks=no 14553fi 14554 14555 14556 14557 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14558echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14559 14560 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14561 case $host_os in 14562 aix[4-9]*) 14563 # If we're using GNU nm, then we don't want the "-C" option. 14564 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14565 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14566 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14567 else 14568 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14569 fi 14570 ;; 14571 pw32*) 14572 export_symbols_cmds_CXX="$ltdll_cmds" 14573 ;; 14574 cygwin* | mingw*) 14575 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14576 ;; 14577 *) 14578 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14579 ;; 14580 esac 14581 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14582 14583{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 14584echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 14585test "$ld_shlibs_CXX" = no && can_build_shared=no 14586 14587with_gnu_ld_CXX=$with_gnu_ld 14588 14589 14590 14591 14592 14593 14594# 14595# Do we need to explicitly link libc? 14596# 14597case "x$archive_cmds_need_lc_CXX" in 14598x|xyes) 14599 # Assume -lc should be added 14600 archive_cmds_need_lc_CXX=yes 14601 14602 if test "$enable_shared" = yes && test "$GCC" = yes; then 14603 case $archive_cmds_CXX in 14604 *'~'*) 14605 # FIXME: we may have to deal with multi-command sequences. 14606 ;; 14607 '$CC '*) 14608 # Test whether the compiler implicitly links with -lc since on some 14609 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14610 # to ld, don't add -lc before -lgcc. 14611 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14612echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 14613 $RM conftest* 14614 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14615 14616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14617 (eval $ac_compile) 2>&5 14618 ac_status=$? 14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14620 (exit $ac_status); } 2>conftest.err; then 14621 soname=conftest 14622 lib=conftest 14623 libobjs=conftest.$ac_objext 14624 deplibs= 14625 wl=$lt_prog_compiler_wl_CXX 14626 pic_flag=$lt_prog_compiler_pic_CXX 14627 compiler_flags=-v 14628 linker_flags=-v 14629 verstring= 14630 output_objdir=. 14631 libname=conftest 14632 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14633 allow_undefined_flag_CXX= 14634 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 14635 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14636 ac_status=$? 14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14638 (exit $ac_status); } 14639 then 14640 archive_cmds_need_lc_CXX=no 14641 else 14642 archive_cmds_need_lc_CXX=yes 14643 fi 14644 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14645 else 14646 cat conftest.err 1>&5 14647 fi 14648 $RM conftest* 14649 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 14650echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 14651 ;; 14652 esac 14653 fi 14654 ;; 14655esac 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14721echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 14722 14723library_names_spec= 14724libname_spec='lib$name' 14725soname_spec= 14726shrext_cmds=".so" 14727postinstall_cmds= 14728postuninstall_cmds= 14729finish_cmds= 14730finish_eval= 14731shlibpath_var= 14732shlibpath_overrides_runpath=unknown 14733version_type=none 14734dynamic_linker="$host_os ld.so" 14735sys_lib_dlsearch_path_spec="/lib /usr/lib" 14736need_lib_prefix=unknown 14737hardcode_into_libs=no 14738 14739# when you set need_version to no, make sure it does not cause -set_version 14740# flags to be left without arguments 14741need_version=unknown 14742 14743case $host_os in 14744aix3*) 14745 version_type=linux 14746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14747 shlibpath_var=LIBPATH 14748 14749 # AIX 3 has no versioning support, so we append a major version to the name. 14750 soname_spec='${libname}${release}${shared_ext}$major' 14751 ;; 14752 14753aix[4-9]*) 14754 version_type=linux 14755 need_lib_prefix=no 14756 need_version=no 14757 hardcode_into_libs=yes 14758 if test "$host_cpu" = ia64; then 14759 # AIX 5 supports IA64 14760 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14761 shlibpath_var=LD_LIBRARY_PATH 14762 else 14763 # With GCC up to 2.95.x, collect2 would create an import file 14764 # for dependence libraries. The import file would start with 14765 # the line `#! .'. This would cause the generated library to 14766 # depend on `.', always an invalid library. This was fixed in 14767 # development snapshots of GCC prior to 3.0. 14768 case $host_os in 14769 aix4 | aix4.[01] | aix4.[01].*) 14770 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14771 echo ' yes ' 14772 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14773 : 14774 else 14775 can_build_shared=no 14776 fi 14777 ;; 14778 esac 14779 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14780 # soname into executable. Probably we can add versioning support to 14781 # collect2, so additional links can be useful in future. 14782 if test "$aix_use_runtimelinking" = yes; then 14783 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14784 # instead of lib<name>.a to let people know that these are not 14785 # typical AIX shared libraries. 14786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14787 else 14788 # We preserve .a as extension for shared libraries through AIX4.2 14789 # and later when we are not doing run time linking. 14790 library_names_spec='${libname}${release}.a $libname.a' 14791 soname_spec='${libname}${release}${shared_ext}$major' 14792 fi 14793 shlibpath_var=LIBPATH 14794 fi 14795 ;; 14796 14797amigaos*) 14798 case $host_cpu in 14799 powerpc) 14800 # Since July 2007 AmigaOS4 officially supports .so libraries. 14801 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14803 ;; 14804 m68k) 14805 library_names_spec='$libname.ixlibrary $libname.a' 14806 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14807 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14808 ;; 14809 esac 14810 ;; 14811 14812beos*) 14813 library_names_spec='${libname}${shared_ext}' 14814 dynamic_linker="$host_os ld.so" 14815 shlibpath_var=LIBRARY_PATH 14816 ;; 14817 14818bsdi[45]*) 14819 version_type=linux 14820 need_version=no 14821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14822 soname_spec='${libname}${release}${shared_ext}$major' 14823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14824 shlibpath_var=LD_LIBRARY_PATH 14825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14827 # the default ld.so.conf also contains /usr/contrib/lib and 14828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14829 # libtool to hard-code these into programs 14830 ;; 14831 14832cygwin* | mingw* | pw32*) 14833 version_type=windows 14834 shrext_cmds=".dll" 14835 need_version=no 14836 need_lib_prefix=no 14837 14838 case $GCC,$host_os in 14839 yes,cygwin* | yes,mingw* | yes,pw32*) 14840 library_names_spec='$libname.dll.a' 14841 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14842 postinstall_cmds='base_file=`basename \${file}`~ 14843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14844 dldir=$destdir/`dirname \$dlpath`~ 14845 test -d \$dldir || mkdir -p \$dldir~ 14846 $install_prog $dir/$dlname \$dldir/$dlname~ 14847 chmod a+x \$dldir/$dlname~ 14848 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14849 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14850 fi' 14851 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14852 dlpath=$dir/\$dldll~ 14853 $RM \$dlpath' 14854 shlibpath_overrides_runpath=yes 14855 14856 case $host_os in 14857 cygwin*) 14858 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14859 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14860 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14861 ;; 14862 mingw*) 14863 # MinGW DLLs use traditional 'lib' prefix 14864 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14865 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14866 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14867 # It is most probably a Windows format PATH printed by 14868 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14869 # path with ; separators, and with drive letters. We can handle the 14870 # drive letters (cygwin fileutils understands them), so leave them, 14871 # especially as we might pass files found there to a mingw objdump, 14872 # which wouldn't understand a cygwinified path. Ahh. 14873 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14874 else 14875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14876 fi 14877 ;; 14878 pw32*) 14879 # pw32 DLLs use 'pw' prefix rather than 'lib' 14880 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14881 ;; 14882 esac 14883 ;; 14884 14885 *) 14886 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14887 ;; 14888 esac 14889 dynamic_linker='Win32 ld.exe' 14890 # FIXME: first we should search . and the directory the executable is in 14891 shlibpath_var=PATH 14892 ;; 14893 14894darwin* | rhapsody*) 14895 dynamic_linker="$host_os dyld" 14896 version_type=darwin 14897 need_lib_prefix=no 14898 need_version=no 14899 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14900 soname_spec='${libname}${release}${major}$shared_ext' 14901 shlibpath_overrides_runpath=yes 14902 shlibpath_var=DYLD_LIBRARY_PATH 14903 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14904 14905 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14906 ;; 14907 14908dgux*) 14909 version_type=linux 14910 need_lib_prefix=no 14911 need_version=no 14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14913 soname_spec='${libname}${release}${shared_ext}$major' 14914 shlibpath_var=LD_LIBRARY_PATH 14915 ;; 14916 14917freebsd1*) 14918 dynamic_linker=no 14919 ;; 14920 14921freebsd* | dragonfly*) 14922 # DragonFly does not have aout. When/if they implement a new 14923 # versioning mechanism, adjust this. 14924 if test -x /usr/bin/objformat; then 14925 objformat=`/usr/bin/objformat` 14926 else 14927 case $host_os in 14928 freebsd[123]*) objformat=aout ;; 14929 *) objformat=elf ;; 14930 esac 14931 fi 14932 version_type=freebsd-$objformat 14933 case $version_type in 14934 freebsd-elf*) 14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14936 need_version=no 14937 need_lib_prefix=no 14938 ;; 14939 freebsd-*) 14940 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14941 need_version=yes 14942 ;; 14943 esac 14944 shlibpath_var=LD_LIBRARY_PATH 14945 case $host_os in 14946 freebsd2*) 14947 shlibpath_overrides_runpath=yes 14948 ;; 14949 freebsd3.[01]* | freebsdelf3.[01]*) 14950 shlibpath_overrides_runpath=yes 14951 hardcode_into_libs=yes 14952 ;; 14953 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14954 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14955 shlibpath_overrides_runpath=no 14956 hardcode_into_libs=yes 14957 ;; 14958 *) # from 4.6 on, and DragonFly 14959 shlibpath_overrides_runpath=yes 14960 hardcode_into_libs=yes 14961 ;; 14962 esac 14963 ;; 14964 14965gnu*) 14966 version_type=linux 14967 need_lib_prefix=no 14968 need_version=no 14969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14970 soname_spec='${libname}${release}${shared_ext}$major' 14971 shlibpath_var=LD_LIBRARY_PATH 14972 hardcode_into_libs=yes 14973 ;; 14974 14975hpux9* | hpux10* | hpux11*) 14976 # Give a soname corresponding to the major version so that dld.sl refuses to 14977 # link against other versions. 14978 version_type=sunos 14979 need_lib_prefix=no 14980 need_version=no 14981 case $host_cpu in 14982 ia64*) 14983 shrext_cmds='.so' 14984 hardcode_into_libs=yes 14985 dynamic_linker="$host_os dld.so" 14986 shlibpath_var=LD_LIBRARY_PATH 14987 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14989 soname_spec='${libname}${release}${shared_ext}$major' 14990 if test "X$HPUX_IA64_MODE" = X32; then 14991 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14992 else 14993 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14994 fi 14995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14996 ;; 14997 hppa*64*) 14998 shrext_cmds='.sl' 14999 hardcode_into_libs=yes 15000 dynamic_linker="$host_os dld.sl" 15001 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15002 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15004 soname_spec='${libname}${release}${shared_ext}$major' 15005 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15007 ;; 15008 *) 15009 shrext_cmds='.sl' 15010 dynamic_linker="$host_os dld.sl" 15011 shlibpath_var=SHLIB_PATH 15012 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15014 soname_spec='${libname}${release}${shared_ext}$major' 15015 ;; 15016 esac 15017 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15018 postinstall_cmds='chmod 555 $lib' 15019 ;; 15020 15021interix[3-9]*) 15022 version_type=linux 15023 need_lib_prefix=no 15024 need_version=no 15025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15026 soname_spec='${libname}${release}${shared_ext}$major' 15027 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15028 shlibpath_var=LD_LIBRARY_PATH 15029 shlibpath_overrides_runpath=no 15030 hardcode_into_libs=yes 15031 ;; 15032 15033irix5* | irix6* | nonstopux*) 15034 case $host_os in 15035 nonstopux*) version_type=nonstopux ;; 15036 *) 15037 if test "$lt_cv_prog_gnu_ld" = yes; then 15038 version_type=linux 15039 else 15040 version_type=irix 15041 fi ;; 15042 esac 15043 need_lib_prefix=no 15044 need_version=no 15045 soname_spec='${libname}${release}${shared_ext}$major' 15046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15047 case $host_os in 15048 irix5* | nonstopux*) 15049 libsuff= shlibsuff= 15050 ;; 15051 *) 15052 case $LD in # libtool.m4 will add one of these switches to LD 15053 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15054 libsuff= shlibsuff= libmagic=32-bit;; 15055 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15056 libsuff=32 shlibsuff=N32 libmagic=N32;; 15057 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15058 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15059 *) libsuff= shlibsuff= libmagic=never-match;; 15060 esac 15061 ;; 15062 esac 15063 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15064 shlibpath_overrides_runpath=no 15065 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15066 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15067 hardcode_into_libs=yes 15068 ;; 15069 15070# No shared lib support for Linux oldld, aout, or coff. 15071linux*oldld* | linux*aout* | linux*coff*) 15072 dynamic_linker=no 15073 ;; 15074 15075# This must be Linux ELF. 15076linux* | k*bsd*-gnu) 15077 version_type=linux 15078 need_lib_prefix=no 15079 need_version=no 15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15081 soname_spec='${libname}${release}${shared_ext}$major' 15082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15083 shlibpath_var=LD_LIBRARY_PATH 15084 shlibpath_overrides_runpath=no 15085 # Some binutils ld are patched to set DT_RUNPATH 15086 save_LDFLAGS=$LDFLAGS 15087 save_libdir=$libdir 15088 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15089 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15090 cat >conftest.$ac_ext <<_ACEOF 15091/* confdefs.h. */ 15092_ACEOF 15093cat confdefs.h >>conftest.$ac_ext 15094cat >>conftest.$ac_ext <<_ACEOF 15095/* end confdefs.h. */ 15096 15097int 15098main () 15099{ 15100 15101 ; 15102 return 0; 15103} 15104_ACEOF 15105rm -f conftest.$ac_objext conftest$ac_exeext 15106if { (ac_try="$ac_link" 15107case "(($ac_try" in 15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15109 *) ac_try_echo=$ac_try;; 15110esac 15111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15112 (eval "$ac_link") 2>conftest.er1 15113 ac_status=$? 15114 grep -v '^ *+' conftest.er1 >conftest.err 15115 rm -f conftest.er1 15116 cat conftest.err >&5 15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15118 (exit $ac_status); } && { 15119 test -z "$ac_cxx_werror_flag" || 15120 test ! -s conftest.err 15121 } && test -s conftest$ac_exeext && 15122 $as_test_x conftest$ac_exeext; then 15123 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then 15124 shlibpath_overrides_runpath=yes 15125fi 15126 15127else 15128 echo "$as_me: failed program was:" >&5 15129sed 's/^/| /' conftest.$ac_ext >&5 15130 15131 15132fi 15133 15134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15135 conftest$ac_exeext conftest.$ac_ext 15136 LDFLAGS=$save_LDFLAGS 15137 libdir=$save_libdir 15138 15139 # This implies no fast_install, which is unacceptable. 15140 # Some rework will be needed to allow for fast_install 15141 # before this can be enabled. 15142 hardcode_into_libs=yes 15143 15144 # Append ld.so.conf contents to the search path 15145 if test -f /etc/ld.so.conf; then 15146 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;/^$/d' | tr '\n' ' '` 15147 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15148 fi 15149 15150 # We used to test for /lib/ld.so.1 and disable shared libraries on 15151 # powerpc, because MkLinux only supported shared libraries with the 15152 # GNU dynamic linker. Since this was broken with cross compilers, 15153 # most powerpc-linux boxes support dynamic linking these days and 15154 # people can always --disable-shared, the test was removed, and we 15155 # assume the GNU/Linux dynamic linker is in use. 15156 dynamic_linker='GNU/Linux ld.so' 15157 ;; 15158 15159netbsd*) 15160 version_type=sunos 15161 need_lib_prefix=no 15162 need_version=no 15163 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15166 dynamic_linker='NetBSD (a.out) ld.so' 15167 else 15168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15169 soname_spec='${libname}${release}${shared_ext}$major' 15170 dynamic_linker='NetBSD ld.elf_so' 15171 fi 15172 shlibpath_var=LD_LIBRARY_PATH 15173 shlibpath_overrides_runpath=yes 15174 hardcode_into_libs=yes 15175 ;; 15176 15177newsos6) 15178 version_type=linux 15179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15180 shlibpath_var=LD_LIBRARY_PATH 15181 shlibpath_overrides_runpath=yes 15182 ;; 15183 15184*nto* | *qnx*) 15185 version_type=qnx 15186 need_lib_prefix=no 15187 need_version=no 15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15189 soname_spec='${libname}${release}${shared_ext}$major' 15190 shlibpath_var=LD_LIBRARY_PATH 15191 shlibpath_overrides_runpath=no 15192 hardcode_into_libs=yes 15193 dynamic_linker='ldqnx.so' 15194 ;; 15195 15196openbsd*) 15197 version_type=sunos 15198 sys_lib_dlsearch_path_spec="/usr/lib" 15199 need_lib_prefix=no 15200 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15201 case $host_os in 15202 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15203 *) need_version=no ;; 15204 esac 15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15207 shlibpath_var=LD_LIBRARY_PATH 15208 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15209 case $host_os in 15210 openbsd2.[89] | openbsd2.[89].*) 15211 shlibpath_overrides_runpath=no 15212 ;; 15213 *) 15214 shlibpath_overrides_runpath=yes 15215 ;; 15216 esac 15217 else 15218 shlibpath_overrides_runpath=yes 15219 fi 15220 ;; 15221 15222os2*) 15223 libname_spec='$name' 15224 shrext_cmds=".dll" 15225 need_lib_prefix=no 15226 library_names_spec='$libname${shared_ext} $libname.a' 15227 dynamic_linker='OS/2 ld.exe' 15228 shlibpath_var=LIBPATH 15229 ;; 15230 15231osf3* | osf4* | osf5*) 15232 version_type=osf 15233 need_lib_prefix=no 15234 need_version=no 15235 soname_spec='${libname}${release}${shared_ext}$major' 15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15237 shlibpath_var=LD_LIBRARY_PATH 15238 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15239 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15240 ;; 15241 15242rdos*) 15243 dynamic_linker=no 15244 ;; 15245 15246solaris*) 15247 version_type=linux 15248 need_lib_prefix=no 15249 need_version=no 15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15251 soname_spec='${libname}${release}${shared_ext}$major' 15252 shlibpath_var=LD_LIBRARY_PATH 15253 shlibpath_overrides_runpath=yes 15254 hardcode_into_libs=yes 15255 # ldd complains unless libraries are executable 15256 postinstall_cmds='chmod +x $lib' 15257 ;; 15258 15259sunos4*) 15260 version_type=sunos 15261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15262 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15263 shlibpath_var=LD_LIBRARY_PATH 15264 shlibpath_overrides_runpath=yes 15265 if test "$with_gnu_ld" = yes; then 15266 need_lib_prefix=no 15267 fi 15268 need_version=yes 15269 ;; 15270 15271sysv4 | sysv4.3*) 15272 version_type=linux 15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15274 soname_spec='${libname}${release}${shared_ext}$major' 15275 shlibpath_var=LD_LIBRARY_PATH 15276 case $host_vendor in 15277 sni) 15278 shlibpath_overrides_runpath=no 15279 need_lib_prefix=no 15280 runpath_var=LD_RUN_PATH 15281 ;; 15282 siemens) 15283 need_lib_prefix=no 15284 ;; 15285 motorola) 15286 need_lib_prefix=no 15287 need_version=no 15288 shlibpath_overrides_runpath=no 15289 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15290 ;; 15291 esac 15292 ;; 15293 15294sysv4*MP*) 15295 if test -d /usr/nec ;then 15296 version_type=linux 15297 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15298 soname_spec='$libname${shared_ext}.$major' 15299 shlibpath_var=LD_LIBRARY_PATH 15300 fi 15301 ;; 15302 15303sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15304 version_type=freebsd-elf 15305 need_lib_prefix=no 15306 need_version=no 15307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15308 soname_spec='${libname}${release}${shared_ext}$major' 15309 shlibpath_var=LD_LIBRARY_PATH 15310 shlibpath_overrides_runpath=yes 15311 hardcode_into_libs=yes 15312 if test "$with_gnu_ld" = yes; then 15313 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15314 else 15315 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15316 case $host_os in 15317 sco3.2v5*) 15318 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15319 ;; 15320 esac 15321 fi 15322 sys_lib_dlsearch_path_spec='/usr/lib' 15323 ;; 15324 15325tpf*) 15326 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15327 version_type=linux 15328 need_lib_prefix=no 15329 need_version=no 15330 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15331 shlibpath_var=LD_LIBRARY_PATH 15332 shlibpath_overrides_runpath=no 15333 hardcode_into_libs=yes 15334 ;; 15335 15336uts4*) 15337 version_type=linux 15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15339 soname_spec='${libname}${release}${shared_ext}$major' 15340 shlibpath_var=LD_LIBRARY_PATH 15341 ;; 15342 15343*) 15344 dynamic_linker=no 15345 ;; 15346esac 15347{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15348echo "${ECHO_T}$dynamic_linker" >&6; } 15349test "$dynamic_linker" = no && can_build_shared=no 15350 15351variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15352if test "$GCC" = yes; then 15353 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15354fi 15355 15356if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15357 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15358fi 15359if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15360 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15361fi 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 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15399echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15400hardcode_action_CXX= 15401if test -n "$hardcode_libdir_flag_spec_CXX" || 15402 test -n "$runpath_var_CXX" || 15403 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15404 15405 # We can hardcode non-existent directories. 15406 if test "$hardcode_direct_CXX" != no && 15407 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15408 # have to relink, otherwise we might link with an installed library 15409 # when we should be linking with a yet-to-be-installed one 15410 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15411 test "$hardcode_minus_L_CXX" != no; then 15412 # Linking always hardcodes the temporary library directory. 15413 hardcode_action_CXX=relink 15414 else 15415 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15416 hardcode_action_CXX=immediate 15417 fi 15418else 15419 # We cannot hardcode anything, or else we can only hardcode existing 15420 # directories. 15421 hardcode_action_CXX=unsupported 15422fi 15423{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 15424echo "${ECHO_T}$hardcode_action_CXX" >&6; } 15425 15426if test "$hardcode_action_CXX" = relink || 15427 test "$inherit_rpath_CXX" = yes; then 15428 # Fast installation is not supported 15429 enable_fast_install=no 15430elif test "$shlibpath_overrides_runpath" = yes || 15431 test "$enable_shared" = no; then 15432 # Fast installation is not necessary 15433 enable_fast_install=needless 15434fi 15435 15436 15437 15438 15439 15440 15441 15442 fi # test -n "$compiler" 15443 15444 CC=$lt_save_CC 15445 LDCXX=$LD 15446 LD=$lt_save_LD 15447 GCC=$lt_save_GCC 15448 with_gnu_ld=$lt_save_with_gnu_ld 15449 lt_cv_path_LDCXX=$lt_cv_path_LD 15450 lt_cv_path_LD=$lt_save_path_LD 15451 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15452 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15453fi # test "$_lt_caught_CXX_error" != yes 15454 15455ac_ext=cpp 15456ac_cpp='$CXXCPP $CPPFLAGS' 15457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 ac_config_commands="$ac_config_commands libtool" 15474 15475 15476 15477 15478# Only expand once: 15479 15480 15481 15482# Checks for header files. 15483{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 15484echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 15485if test "${ac_cv_header_stdc+set}" = set; then 15486 echo $ECHO_N "(cached) $ECHO_C" >&6 15487else 15488 cat >conftest.$ac_ext <<_ACEOF 15489/* confdefs.h. */ 15490_ACEOF 15491cat confdefs.h >>conftest.$ac_ext 15492cat >>conftest.$ac_ext <<_ACEOF 15493/* end confdefs.h. */ 15494#include <stdlib.h> 15495#include <stdarg.h> 15496#include <string.h> 15497#include <float.h> 15498 15499int 15500main () 15501{ 15502 15503 ; 15504 return 0; 15505} 15506_ACEOF 15507rm -f conftest.$ac_objext 15508if { (ac_try="$ac_compile" 15509case "(($ac_try" in 15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15511 *) ac_try_echo=$ac_try;; 15512esac 15513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15514 (eval "$ac_compile") 2>conftest.er1 15515 ac_status=$? 15516 grep -v '^ *+' conftest.er1 >conftest.err 15517 rm -f conftest.er1 15518 cat conftest.err >&5 15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15520 (exit $ac_status); } && { 15521 test -z "$ac_cxx_werror_flag" || 15522 test ! -s conftest.err 15523 } && test -s conftest.$ac_objext; then 15524 ac_cv_header_stdc=yes 15525else 15526 echo "$as_me: failed program was:" >&5 15527sed 's/^/| /' conftest.$ac_ext >&5 15528 15529 ac_cv_header_stdc=no 15530fi 15531 15532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15533 15534if test $ac_cv_header_stdc = yes; then 15535 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15536 cat >conftest.$ac_ext <<_ACEOF 15537/* confdefs.h. */ 15538_ACEOF 15539cat confdefs.h >>conftest.$ac_ext 15540cat >>conftest.$ac_ext <<_ACEOF 15541/* end confdefs.h. */ 15542#include <string.h> 15543 15544_ACEOF 15545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15546 $EGREP "memchr" >/dev/null 2>&1; then 15547 : 15548else 15549 ac_cv_header_stdc=no 15550fi 15551rm -f conftest* 15552 15553fi 15554 15555if test $ac_cv_header_stdc = yes; then 15556 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15557 cat >conftest.$ac_ext <<_ACEOF 15558/* confdefs.h. */ 15559_ACEOF 15560cat confdefs.h >>conftest.$ac_ext 15561cat >>conftest.$ac_ext <<_ACEOF 15562/* end confdefs.h. */ 15563#include <stdlib.h> 15564 15565_ACEOF 15566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15567 $EGREP "free" >/dev/null 2>&1; then 15568 : 15569else 15570 ac_cv_header_stdc=no 15571fi 15572rm -f conftest* 15573 15574fi 15575 15576if test $ac_cv_header_stdc = yes; then 15577 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15578 if test "$cross_compiling" = yes; then 15579 : 15580else 15581 cat >conftest.$ac_ext <<_ACEOF 15582/* confdefs.h. */ 15583_ACEOF 15584cat confdefs.h >>conftest.$ac_ext 15585cat >>conftest.$ac_ext <<_ACEOF 15586/* end confdefs.h. */ 15587#include <ctype.h> 15588#include <stdlib.h> 15589#if ((' ' & 0x0FF) == 0x020) 15590# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15591# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15592#else 15593# define ISLOWER(c) \ 15594 (('a' <= (c) && (c) <= 'i') \ 15595 || ('j' <= (c) && (c) <= 'r') \ 15596 || ('s' <= (c) && (c) <= 'z')) 15597# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15598#endif 15599 15600#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15601int 15602main () 15603{ 15604 int i; 15605 for (i = 0; i < 256; i++) 15606 if (XOR (islower (i), ISLOWER (i)) 15607 || toupper (i) != TOUPPER (i)) 15608 return 2; 15609 return 0; 15610} 15611_ACEOF 15612rm -f conftest$ac_exeext 15613if { (ac_try="$ac_link" 15614case "(($ac_try" in 15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15616 *) ac_try_echo=$ac_try;; 15617esac 15618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15619 (eval "$ac_link") 2>&5 15620 ac_status=$? 15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15623 { (case "(($ac_try" in 15624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15625 *) ac_try_echo=$ac_try;; 15626esac 15627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15628 (eval "$ac_try") 2>&5 15629 ac_status=$? 15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15631 (exit $ac_status); }; }; then 15632 : 15633else 15634 echo "$as_me: program exited with status $ac_status" >&5 15635echo "$as_me: failed program was:" >&5 15636sed 's/^/| /' conftest.$ac_ext >&5 15637 15638( exit $ac_status ) 15639ac_cv_header_stdc=no 15640fi 15641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15642fi 15643 15644 15645fi 15646fi 15647{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 15648echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 15649if test $ac_cv_header_stdc = yes; then 15650 15651cat >>confdefs.h <<\_ACEOF 15652#define STDC_HEADERS 1 15653_ACEOF 15654 15655fi 15656 15657 15658 15659 15660 15661 15662for ac_header in fcntl.h inttypes.h limits.h stdlib.h unistd.h 15663do 15664as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15666 { echo "$as_me:$LINENO: checking for $ac_header" >&5 15667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15668if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15669 echo $ECHO_N "(cached) $ECHO_C" >&6 15670fi 15671ac_res=`eval echo '${'$as_ac_Header'}'` 15672 { echo "$as_me:$LINENO: result: $ac_res" >&5 15673echo "${ECHO_T}$ac_res" >&6; } 15674else 15675 # Is the header compilable? 15676{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 15677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 15678cat >conftest.$ac_ext <<_ACEOF 15679/* confdefs.h. */ 15680_ACEOF 15681cat confdefs.h >>conftest.$ac_ext 15682cat >>conftest.$ac_ext <<_ACEOF 15683/* end confdefs.h. */ 15684$ac_includes_default 15685#include <$ac_header> 15686_ACEOF 15687rm -f conftest.$ac_objext 15688if { (ac_try="$ac_compile" 15689case "(($ac_try" in 15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15691 *) ac_try_echo=$ac_try;; 15692esac 15693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15694 (eval "$ac_compile") 2>conftest.er1 15695 ac_status=$? 15696 grep -v '^ *+' conftest.er1 >conftest.err 15697 rm -f conftest.er1 15698 cat conftest.err >&5 15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15700 (exit $ac_status); } && { 15701 test -z "$ac_cxx_werror_flag" || 15702 test ! -s conftest.err 15703 } && test -s conftest.$ac_objext; then 15704 ac_header_compiler=yes 15705else 15706 echo "$as_me: failed program was:" >&5 15707sed 's/^/| /' conftest.$ac_ext >&5 15708 15709 ac_header_compiler=no 15710fi 15711 15712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15713{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15714echo "${ECHO_T}$ac_header_compiler" >&6; } 15715 15716# Is the header present? 15717{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 15718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 15719cat >conftest.$ac_ext <<_ACEOF 15720/* confdefs.h. */ 15721_ACEOF 15722cat confdefs.h >>conftest.$ac_ext 15723cat >>conftest.$ac_ext <<_ACEOF 15724/* end confdefs.h. */ 15725#include <$ac_header> 15726_ACEOF 15727if { (ac_try="$ac_cpp conftest.$ac_ext" 15728case "(($ac_try" in 15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15730 *) ac_try_echo=$ac_try;; 15731esac 15732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 15734 ac_status=$? 15735 grep -v '^ *+' conftest.er1 >conftest.err 15736 rm -f conftest.er1 15737 cat conftest.err >&5 15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15739 (exit $ac_status); } >/dev/null && { 15740 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 15741 test ! -s conftest.err 15742 }; then 15743 ac_header_preproc=yes 15744else 15745 echo "$as_me: failed program was:" >&5 15746sed 's/^/| /' conftest.$ac_ext >&5 15747 15748 ac_header_preproc=no 15749fi 15750 15751rm -f conftest.err conftest.$ac_ext 15752{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15753echo "${ECHO_T}$ac_header_preproc" >&6; } 15754 15755# So? What about this header? 15756case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 15757 yes:no: ) 15758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15762 ac_header_preproc=yes 15763 ;; 15764 no:yes:* ) 15765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15768echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15772echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15777 ( cat <<\_ASBOX 15778## ---------------------------------------- ## 15779## Report this to protobuf@googlegroups.com ## 15780## ---------------------------------------- ## 15781_ASBOX 15782 ) | sed "s/^/$as_me: WARNING: /" >&2 15783 ;; 15784esac 15785{ echo "$as_me:$LINENO: checking for $ac_header" >&5 15786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 15787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 15788 echo $ECHO_N "(cached) $ECHO_C" >&6 15789else 15790 eval "$as_ac_Header=\$ac_header_preproc" 15791fi 15792ac_res=`eval echo '${'$as_ac_Header'}'` 15793 { echo "$as_me:$LINENO: result: $ac_res" >&5 15794echo "${ECHO_T}$ac_res" >&6; } 15795 15796fi 15797if test `eval echo '${'$as_ac_Header'}'` = yes; then 15798 cat >>confdefs.h <<_ACEOF 15799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 15800_ACEOF 15801 15802fi 15803 15804done 15805 15806 15807# Checks for library functions. 15808{ echo "$as_me:$LINENO: checking for working memcmp" >&5 15809echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } 15810if test "${ac_cv_func_memcmp_working+set}" = set; then 15811 echo $ECHO_N "(cached) $ECHO_C" >&6 15812else 15813 if test "$cross_compiling" = yes; then 15814 ac_cv_func_memcmp_working=no 15815else 15816 cat >conftest.$ac_ext <<_ACEOF 15817/* confdefs.h. */ 15818_ACEOF 15819cat confdefs.h >>conftest.$ac_ext 15820cat >>conftest.$ac_ext <<_ACEOF 15821/* end confdefs.h. */ 15822$ac_includes_default 15823int 15824main () 15825{ 15826 15827 /* Some versions of memcmp are not 8-bit clean. */ 15828 char c0 = '\100', c1 = '\200', c2 = '\201'; 15829 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 15830 return 1; 15831 15832 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 15833 or more and with at least one buffer not starting on a 4-byte boundary. 15834 William Lewis provided this test program. */ 15835 { 15836 char foo[21]; 15837 char bar[21]; 15838 int i; 15839 for (i = 0; i < 4; i++) 15840 { 15841 char *a = foo + i; 15842 char *b = bar + i; 15843 strcpy (a, "--------01111111"); 15844 strcpy (b, "--------10000000"); 15845 if (memcmp (a, b, 16) >= 0) 15846 return 1; 15847 } 15848 return 0; 15849 } 15850 15851 ; 15852 return 0; 15853} 15854_ACEOF 15855rm -f conftest$ac_exeext 15856if { (ac_try="$ac_link" 15857case "(($ac_try" in 15858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15859 *) ac_try_echo=$ac_try;; 15860esac 15861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15862 (eval "$ac_link") 2>&5 15863 ac_status=$? 15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15866 { (case "(($ac_try" in 15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15868 *) ac_try_echo=$ac_try;; 15869esac 15870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15871 (eval "$ac_try") 2>&5 15872 ac_status=$? 15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15874 (exit $ac_status); }; }; then 15875 ac_cv_func_memcmp_working=yes 15876else 15877 echo "$as_me: program exited with status $ac_status" >&5 15878echo "$as_me: failed program was:" >&5 15879sed 's/^/| /' conftest.$ac_ext >&5 15880 15881( exit $ac_status ) 15882ac_cv_func_memcmp_working=no 15883fi 15884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15885fi 15886 15887 15888fi 15889{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 15890echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } 15891test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 15892 *" memcmp.$ac_objext "* ) ;; 15893 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 15894 ;; 15895esac 15896 15897 15898{ echo "$as_me:$LINENO: checking for working strtod" >&5 15899echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; } 15900if test "${ac_cv_func_strtod+set}" = set; then 15901 echo $ECHO_N "(cached) $ECHO_C" >&6 15902else 15903 if test "$cross_compiling" = yes; then 15904 ac_cv_func_strtod=no 15905else 15906 cat >conftest.$ac_ext <<_ACEOF 15907/* confdefs.h. */ 15908_ACEOF 15909cat confdefs.h >>conftest.$ac_ext 15910cat >>conftest.$ac_ext <<_ACEOF 15911/* end confdefs.h. */ 15912 15913$ac_includes_default 15914#ifndef strtod 15915double strtod (); 15916#endif 15917int 15918main() 15919{ 15920 { 15921 /* Some versions of Linux strtod mis-parse strings with leading '+'. */ 15922 char *string = " +69"; 15923 char *term; 15924 double value; 15925 value = strtod (string, &term); 15926 if (value != 69 || term != (string + 4)) 15927 return 1; 15928 } 15929 15930 { 15931 /* Under Solaris 2.4, strtod returns the wrong value for the 15932 terminating character under some conditions. */ 15933 char *string = "NaN"; 15934 char *term; 15935 strtod (string, &term); 15936 if (term != string && *(term - 1) == 0) 15937 return 1; 15938 } 15939 return 0; 15940} 15941 15942_ACEOF 15943rm -f conftest$ac_exeext 15944if { (ac_try="$ac_link" 15945case "(($ac_try" in 15946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15947 *) ac_try_echo=$ac_try;; 15948esac 15949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15950 (eval "$ac_link") 2>&5 15951 ac_status=$? 15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15954 { (case "(($ac_try" in 15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15956 *) ac_try_echo=$ac_try;; 15957esac 15958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15959 (eval "$ac_try") 2>&5 15960 ac_status=$? 15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15962 (exit $ac_status); }; }; then 15963 ac_cv_func_strtod=yes 15964else 15965 echo "$as_me: program exited with status $ac_status" >&5 15966echo "$as_me: failed program was:" >&5 15967sed 's/^/| /' conftest.$ac_ext >&5 15968 15969( exit $ac_status ) 15970ac_cv_func_strtod=no 15971fi 15972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15973fi 15974 15975 15976fi 15977{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5 15978echo "${ECHO_T}$ac_cv_func_strtod" >&6; } 15979if test $ac_cv_func_strtod = no; then 15980 case " $LIBOBJS " in 15981 *" strtod.$ac_objext "* ) ;; 15982 *) LIBOBJS="$LIBOBJS strtod.$ac_objext" 15983 ;; 15984esac 15985 15986{ echo "$as_me:$LINENO: checking for pow" >&5 15987echo $ECHO_N "checking for pow... $ECHO_C" >&6; } 15988if test "${ac_cv_func_pow+set}" = set; then 15989 echo $ECHO_N "(cached) $ECHO_C" >&6 15990else 15991 cat >conftest.$ac_ext <<_ACEOF 15992/* confdefs.h. */ 15993_ACEOF 15994cat confdefs.h >>conftest.$ac_ext 15995cat >>conftest.$ac_ext <<_ACEOF 15996/* end confdefs.h. */ 15997/* Define pow to an innocuous variant, in case <limits.h> declares pow. 15998 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15999#define pow innocuous_pow 16000 16001/* System header to define __stub macros and hopefully few prototypes, 16002 which can conflict with char pow (); below. 16003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16004 <limits.h> exists even on freestanding compilers. */ 16005 16006#ifdef __STDC__ 16007# include <limits.h> 16008#else 16009# include <assert.h> 16010#endif 16011 16012#undef pow 16013 16014/* Override any GCC internal prototype to avoid an error. 16015 Use char because int might match the return type of a GCC 16016 builtin and then its argument prototype would still apply. */ 16017#ifdef __cplusplus 16018extern "C" 16019#endif 16020char pow (); 16021/* The GNU C library defines this for functions which it implements 16022 to always fail with ENOSYS. Some functions are actually named 16023 something starting with __ and the normal name is an alias. */ 16024#if defined __stub_pow || defined __stub___pow 16025choke me 16026#endif 16027 16028int 16029main () 16030{ 16031return pow (); 16032 ; 16033 return 0; 16034} 16035_ACEOF 16036rm -f conftest.$ac_objext conftest$ac_exeext 16037if { (ac_try="$ac_link" 16038case "(($ac_try" in 16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16040 *) ac_try_echo=$ac_try;; 16041esac 16042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16043 (eval "$ac_link") 2>conftest.er1 16044 ac_status=$? 16045 grep -v '^ *+' conftest.er1 >conftest.err 16046 rm -f conftest.er1 16047 cat conftest.err >&5 16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16049 (exit $ac_status); } && { 16050 test -z "$ac_cxx_werror_flag" || 16051 test ! -s conftest.err 16052 } && test -s conftest$ac_exeext && 16053 $as_test_x conftest$ac_exeext; then 16054 ac_cv_func_pow=yes 16055else 16056 echo "$as_me: failed program was:" >&5 16057sed 's/^/| /' conftest.$ac_ext >&5 16058 16059 ac_cv_func_pow=no 16060fi 16061 16062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16063 conftest$ac_exeext conftest.$ac_ext 16064fi 16065{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 16066echo "${ECHO_T}$ac_cv_func_pow" >&6; } 16067 16068if test $ac_cv_func_pow = no; then 16069 { echo "$as_me:$LINENO: checking for pow in -lm" >&5 16070echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; } 16071if test "${ac_cv_lib_m_pow+set}" = set; then 16072 echo $ECHO_N "(cached) $ECHO_C" >&6 16073else 16074 ac_check_lib_save_LIBS=$LIBS 16075LIBS="-lm $LIBS" 16076cat >conftest.$ac_ext <<_ACEOF 16077/* confdefs.h. */ 16078_ACEOF 16079cat confdefs.h >>conftest.$ac_ext 16080cat >>conftest.$ac_ext <<_ACEOF 16081/* end confdefs.h. */ 16082 16083/* Override any GCC internal prototype to avoid an error. 16084 Use char because int might match the return type of a GCC 16085 builtin and then its argument prototype would still apply. */ 16086#ifdef __cplusplus 16087extern "C" 16088#endif 16089char pow (); 16090int 16091main () 16092{ 16093return pow (); 16094 ; 16095 return 0; 16096} 16097_ACEOF 16098rm -f conftest.$ac_objext conftest$ac_exeext 16099if { (ac_try="$ac_link" 16100case "(($ac_try" in 16101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16102 *) ac_try_echo=$ac_try;; 16103esac 16104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16105 (eval "$ac_link") 2>conftest.er1 16106 ac_status=$? 16107 grep -v '^ *+' conftest.er1 >conftest.err 16108 rm -f conftest.er1 16109 cat conftest.err >&5 16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16111 (exit $ac_status); } && { 16112 test -z "$ac_cxx_werror_flag" || 16113 test ! -s conftest.err 16114 } && test -s conftest$ac_exeext && 16115 $as_test_x conftest$ac_exeext; then 16116 ac_cv_lib_m_pow=yes 16117else 16118 echo "$as_me: failed program was:" >&5 16119sed 's/^/| /' conftest.$ac_ext >&5 16120 16121 ac_cv_lib_m_pow=no 16122fi 16123 16124rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16125 conftest$ac_exeext conftest.$ac_ext 16126LIBS=$ac_check_lib_save_LIBS 16127fi 16128{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 16129echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; } 16130if test $ac_cv_lib_m_pow = yes; then 16131 POW_LIB=-lm 16132else 16133 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5 16134echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;} 16135fi 16136 16137fi 16138 16139fi 16140 16141 16142 16143 16144 16145 16146 16147for ac_func in ftruncate memset mkdir strchr strerror strtol 16148do 16149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16150{ echo "$as_me:$LINENO: checking for $ac_func" >&5 16151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 16152if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 16153 echo $ECHO_N "(cached) $ECHO_C" >&6 16154else 16155 cat >conftest.$ac_ext <<_ACEOF 16156/* confdefs.h. */ 16157_ACEOF 16158cat confdefs.h >>conftest.$ac_ext 16159cat >>conftest.$ac_ext <<_ACEOF 16160/* end confdefs.h. */ 16161/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16162 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16163#define $ac_func innocuous_$ac_func 16164 16165/* System header to define __stub macros and hopefully few prototypes, 16166 which can conflict with char $ac_func (); below. 16167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16168 <limits.h> exists even on freestanding compilers. */ 16169 16170#ifdef __STDC__ 16171# include <limits.h> 16172#else 16173# include <assert.h> 16174#endif 16175 16176#undef $ac_func 16177 16178/* Override any GCC internal prototype to avoid an error. 16179 Use char because int might match the return type of a GCC 16180 builtin and then its argument prototype would still apply. */ 16181#ifdef __cplusplus 16182extern "C" 16183#endif 16184char $ac_func (); 16185/* The GNU C library defines this for functions which it implements 16186 to always fail with ENOSYS. Some functions are actually named 16187 something starting with __ and the normal name is an alias. */ 16188#if defined __stub_$ac_func || defined __stub___$ac_func 16189choke me 16190#endif 16191 16192int 16193main () 16194{ 16195return $ac_func (); 16196 ; 16197 return 0; 16198} 16199_ACEOF 16200rm -f conftest.$ac_objext conftest$ac_exeext 16201if { (ac_try="$ac_link" 16202case "(($ac_try" in 16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16204 *) ac_try_echo=$ac_try;; 16205esac 16206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16207 (eval "$ac_link") 2>conftest.er1 16208 ac_status=$? 16209 grep -v '^ *+' conftest.er1 >conftest.err 16210 rm -f conftest.er1 16211 cat conftest.err >&5 16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16213 (exit $ac_status); } && { 16214 test -z "$ac_cxx_werror_flag" || 16215 test ! -s conftest.err 16216 } && test -s conftest$ac_exeext && 16217 $as_test_x conftest$ac_exeext; then 16218 eval "$as_ac_var=yes" 16219else 16220 echo "$as_me: failed program was:" >&5 16221sed 's/^/| /' conftest.$ac_ext >&5 16222 16223 eval "$as_ac_var=no" 16224fi 16225 16226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16227 conftest$ac_exeext conftest.$ac_ext 16228fi 16229ac_res=`eval echo '${'$as_ac_var'}'` 16230 { echo "$as_me:$LINENO: result: $ac_res" >&5 16231echo "${ECHO_T}$ac_res" >&6; } 16232if test `eval echo '${'$as_ac_var'}'` = yes; then 16233 cat >>confdefs.h <<_ACEOF 16234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16235_ACEOF 16236 16237fi 16238done 16239 16240 16241HAVE_ZLIB=0 16242if test "$with_zlib" != no; then 16243 { echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5 16244echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6; } 16245if test "${ac_cv_search_zlibVersion+set}" = set; then 16246 echo $ECHO_N "(cached) $ECHO_C" >&6 16247else 16248 ac_func_search_save_LIBS=$LIBS 16249cat >conftest.$ac_ext <<_ACEOF 16250/* confdefs.h. */ 16251_ACEOF 16252cat confdefs.h >>conftest.$ac_ext 16253cat >>conftest.$ac_ext <<_ACEOF 16254/* end confdefs.h. */ 16255 16256/* Override any GCC internal prototype to avoid an error. 16257 Use char because int might match the return type of a GCC 16258 builtin and then its argument prototype would still apply. */ 16259#ifdef __cplusplus 16260extern "C" 16261#endif 16262char zlibVersion (); 16263int 16264main () 16265{ 16266return zlibVersion (); 16267 ; 16268 return 0; 16269} 16270_ACEOF 16271for ac_lib in '' z; do 16272 if test -z "$ac_lib"; then 16273 ac_res="none required" 16274 else 16275 ac_res=-l$ac_lib 16276 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16277 fi 16278 rm -f conftest.$ac_objext conftest$ac_exeext 16279if { (ac_try="$ac_link" 16280case "(($ac_try" in 16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16282 *) ac_try_echo=$ac_try;; 16283esac 16284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16285 (eval "$ac_link") 2>conftest.er1 16286 ac_status=$? 16287 grep -v '^ *+' conftest.er1 >conftest.err 16288 rm -f conftest.er1 16289 cat conftest.err >&5 16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16291 (exit $ac_status); } && { 16292 test -z "$ac_cxx_werror_flag" || 16293 test ! -s conftest.err 16294 } && test -s conftest$ac_exeext && 16295 $as_test_x conftest$ac_exeext; then 16296 ac_cv_search_zlibVersion=$ac_res 16297else 16298 echo "$as_me: failed program was:" >&5 16299sed 's/^/| /' conftest.$ac_ext >&5 16300 16301 16302fi 16303 16304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16305 conftest$ac_exeext 16306 if test "${ac_cv_search_zlibVersion+set}" = set; then 16307 break 16308fi 16309done 16310if test "${ac_cv_search_zlibVersion+set}" = set; then 16311 : 16312else 16313 ac_cv_search_zlibVersion=no 16314fi 16315rm conftest.$ac_ext 16316LIBS=$ac_func_search_save_LIBS 16317fi 16318{ echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5 16319echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6; } 16320ac_res=$ac_cv_search_zlibVersion 16321if test "$ac_res" != no; then 16322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16323 16324cat >>confdefs.h <<\_ACEOF 16325#define HAVE_ZLIB 1 16326_ACEOF 16327 16328 HAVE_ZLIB=1 16329else 16330 if test "$with_zlib" != check; then 16331 { { echo "$as_me:$LINENO: error: --with-zlib was given, but test for zlib failed 16332See \`config.log' for more details." >&5 16333echo "$as_me: error: --with-zlib was given, but test for zlib failed 16334See \`config.log' for more details." >&2;} 16335 { (exit 1); exit 1; }; } 16336 fi 16337fi 16338 16339fi 16340 16341 if test $HAVE_ZLIB = 1; then 16342 HAVE_ZLIB_TRUE= 16343 HAVE_ZLIB_FALSE='#' 16344else 16345 HAVE_ZLIB_TRUE='#' 16346 HAVE_ZLIB_FALSE= 16347fi 16348 16349 16350if test "$with_protoc" != "no"; then 16351 16352 PROTOC=$with_protoc 16353 if test "$with_protoc" == "yes"; then 16354 16355 # No argument given. Use system protoc. 16356 PROTOC=protoc 16357 16358fi 16359 16360 if echo "$PROTOC" | grep -q '^[^/].*/'; then 16361 16362 # Does not start with a slash, but contains a slash. So, it's a relative 16363 # path (as opposed to an absolute path or an executable in $PATH). 16364 # Since it will actually be executed from the src directory, prefix with 16365 # the current directory. We also insert $ac_top_build_prefix in case this 16366 # is a nested package and --with-protoc was actually given on the outer 16367 # package's configure script. 16368 PROTOC=`pwd`/${ac_top_build_prefix}$PROTOC 16369 16370fi 16371 16372 16373 16374fi 16375 16376 if test "$with_protoc" != "no"; then 16377 USE_EXTERNAL_PROTOC_TRUE= 16378 USE_EXTERNAL_PROTOC_FALSE='#' 16379else 16380 USE_EXTERNAL_PROTOC_TRUE='#' 16381 USE_EXTERNAL_PROTOC_FALSE= 16382fi 16383 16384 16385 16386 16387 16388ac_ext=c 16389ac_cpp='$CPP $CPPFLAGS' 16390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16392ac_compiler_gnu=$ac_cv_c_compiler_gnu 16393 16394acx_pthread_ok=no 16395 16396# We used to check for pthread.h first, but this fails if pthread.h 16397# requires special compiler flags (e.g. on True64 or Sequent). 16398# It gets checked for in the link test anyway. 16399 16400# First of all, check if the user has set any of the PTHREAD_LIBS, 16401# etcetera environment variables, and if threads linking works using 16402# them: 16403if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 16404 save_CFLAGS="$CFLAGS" 16405 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16406 save_LIBS="$LIBS" 16407 LIBS="$PTHREAD_LIBS $LIBS" 16408 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 16409echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; } 16410 cat >conftest.$ac_ext <<_ACEOF 16411/* confdefs.h. */ 16412_ACEOF 16413cat confdefs.h >>conftest.$ac_ext 16414cat >>conftest.$ac_ext <<_ACEOF 16415/* end confdefs.h. */ 16416 16417/* Override any GCC internal prototype to avoid an error. 16418 Use char because int might match the return type of a GCC 16419 builtin and then its argument prototype would still apply. */ 16420#ifdef __cplusplus 16421extern "C" 16422#endif 16423char pthread_join (); 16424int 16425main () 16426{ 16427return pthread_join (); 16428 ; 16429 return 0; 16430} 16431_ACEOF 16432rm -f conftest.$ac_objext conftest$ac_exeext 16433if { (ac_try="$ac_link" 16434case "(($ac_try" in 16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16436 *) ac_try_echo=$ac_try;; 16437esac 16438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16439 (eval "$ac_link") 2>conftest.er1 16440 ac_status=$? 16441 grep -v '^ *+' conftest.er1 >conftest.err 16442 rm -f conftest.er1 16443 cat conftest.err >&5 16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16445 (exit $ac_status); } && { 16446 test -z "$ac_c_werror_flag" || 16447 test ! -s conftest.err 16448 } && test -s conftest$ac_exeext && 16449 $as_test_x conftest$ac_exeext; then 16450 acx_pthread_ok=yes 16451else 16452 echo "$as_me: failed program was:" >&5 16453sed 's/^/| /' conftest.$ac_ext >&5 16454 16455 16456fi 16457 16458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16459 conftest$ac_exeext conftest.$ac_ext 16460 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 16461echo "${ECHO_T}$acx_pthread_ok" >&6; } 16462 if test x"$acx_pthread_ok" = xno; then 16463 PTHREAD_LIBS="" 16464 PTHREAD_CFLAGS="" 16465 fi 16466 LIBS="$save_LIBS" 16467 CFLAGS="$save_CFLAGS" 16468fi 16469 16470# We must check for the threads library under a number of different 16471# names; the ordering is very important because some systems 16472# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 16473# libraries is broken (non-POSIX). 16474 16475# Create a list of thread flags to try. Items starting with a "-" are 16476# C compiler flags, and other items are library names, except for "none" 16477# which indicates that we try without any flags at all, and "pthread-config" 16478# which is a program returning the flags for the Pth emulation library. 16479 16480acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 16481 16482# The ordering *is* (sometimes) important. Some notes on the 16483# individual items follow: 16484 16485# pthreads: AIX (must check this before -lpthread) 16486# none: in case threads are in libc; should be tried before -Kthread and 16487# other compiler flags to prevent continual compiler warnings 16488# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 16489# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 16490# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 16491# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 16492# -pthreads: Solaris/gcc 16493# -mthreads: Mingw32/gcc, Lynx/gcc 16494# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 16495# doesn't hurt to check since this sometimes defines pthreads too; 16496# also defines -D_REENTRANT) 16497# ... -mt is also the pthreads flag for HP/aCC 16498# pthread: Linux, etcetera 16499# --thread-safe: KAI C++ 16500# pthread-config: use pthread-config program (for GNU Pth library) 16501 16502case "${host_cpu}-${host_os}" in 16503 *solaris*) 16504 16505 # On Solaris (at least, for some versions), libc contains stubbed 16506 # (non-functional) versions of the pthreads routines, so link-based 16507 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 16508 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 16509 # a function called by this macro, so we could check for that, but 16510 # who knows whether they'll stub that too in a future libc.) So, 16511 # we'll just look for -pthreads and -lpthread first: 16512 16513 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags" 16514 ;; 16515esac 16516 16517if test x"$acx_pthread_ok" = xno; then 16518for flag in $acx_pthread_flags; do 16519 16520 case $flag in 16521 none) 16522 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 16523echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; } 16524 ;; 16525 16526 -*) 16527 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 16528echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; } 16529 PTHREAD_CFLAGS="$flag" 16530 ;; 16531 16532 pthread-config) 16533 # Extract the first word of "pthread-config", so it can be a program name with args. 16534set dummy pthread-config; ac_word=$2 16535{ echo "$as_me:$LINENO: checking for $ac_word" >&5 16536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 16537if test "${ac_cv_prog_acx_pthread_config+set}" = set; then 16538 echo $ECHO_N "(cached) $ECHO_C" >&6 16539else 16540 if test -n "$acx_pthread_config"; then 16541 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test. 16542else 16543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16544for as_dir in $PATH 16545do 16546 IFS=$as_save_IFS 16547 test -z "$as_dir" && as_dir=. 16548 for ac_exec_ext in '' $ac_executable_extensions; do 16549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16550 ac_cv_prog_acx_pthread_config="yes" 16551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16552 break 2 16553 fi 16554done 16555done 16556IFS=$as_save_IFS 16557 16558 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no" 16559fi 16560fi 16561acx_pthread_config=$ac_cv_prog_acx_pthread_config 16562if test -n "$acx_pthread_config"; then 16563 { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5 16564echo "${ECHO_T}$acx_pthread_config" >&6; } 16565else 16566 { echo "$as_me:$LINENO: result: no" >&5 16567echo "${ECHO_T}no" >&6; } 16568fi 16569 16570 16571 if test x"$acx_pthread_config" = xno; then continue; fi 16572 PTHREAD_CFLAGS="`pthread-config --cflags`" 16573 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 16574 ;; 16575 16576 *) 16577 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 16578echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; } 16579 PTHREAD_LIBS="-l$flag" 16580 ;; 16581 esac 16582 16583 save_LIBS="$LIBS" 16584 save_CFLAGS="$CFLAGS" 16585 LIBS="$PTHREAD_LIBS $LIBS" 16586 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16587 16588 # Check for various functions. We must include pthread.h, 16589 # since some functions may be macros. (On the Sequent, we 16590 # need a special flag -Kthread to make this header compile.) 16591 # We check for pthread_join because it is in -lpthread on IRIX 16592 # while pthread_create is in libc. We check for pthread_attr_init 16593 # due to DEC craziness with -lpthreads. We check for 16594 # pthread_cleanup_push because it is one of the few pthread 16595 # functions on Solaris that doesn't have a non-functional libc stub. 16596 # We try pthread_create on general principles. 16597 cat >conftest.$ac_ext <<_ACEOF 16598/* confdefs.h. */ 16599_ACEOF 16600cat confdefs.h >>conftest.$ac_ext 16601cat >>conftest.$ac_ext <<_ACEOF 16602/* end confdefs.h. */ 16603#include <pthread.h> 16604int 16605main () 16606{ 16607pthread_t th; pthread_join(th, 0); 16608 pthread_attr_init(0); pthread_cleanup_push(0, 0); 16609 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 16610 ; 16611 return 0; 16612} 16613_ACEOF 16614rm -f conftest.$ac_objext conftest$ac_exeext 16615if { (ac_try="$ac_link" 16616case "(($ac_try" in 16617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16618 *) ac_try_echo=$ac_try;; 16619esac 16620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16621 (eval "$ac_link") 2>conftest.er1 16622 ac_status=$? 16623 grep -v '^ *+' conftest.er1 >conftest.err 16624 rm -f conftest.er1 16625 cat conftest.err >&5 16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16627 (exit $ac_status); } && { 16628 test -z "$ac_c_werror_flag" || 16629 test ! -s conftest.err 16630 } && test -s conftest$ac_exeext && 16631 $as_test_x conftest$ac_exeext; then 16632 acx_pthread_ok=yes 16633else 16634 echo "$as_me: failed program was:" >&5 16635sed 's/^/| /' conftest.$ac_ext >&5 16636 16637 16638fi 16639 16640rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16641 conftest$ac_exeext conftest.$ac_ext 16642 16643 LIBS="$save_LIBS" 16644 CFLAGS="$save_CFLAGS" 16645 16646 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5 16647echo "${ECHO_T}$acx_pthread_ok" >&6; } 16648 if test "x$acx_pthread_ok" = xyes; then 16649 break; 16650 fi 16651 16652 PTHREAD_LIBS="" 16653 PTHREAD_CFLAGS="" 16654done 16655fi 16656 16657# Various other checks: 16658if test "x$acx_pthread_ok" = xyes; then 16659 save_LIBS="$LIBS" 16660 LIBS="$PTHREAD_LIBS $LIBS" 16661 save_CFLAGS="$CFLAGS" 16662 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16663 16664 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 16665 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5 16666echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; } 16667 attr_name=unknown 16668 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 16669 cat >conftest.$ac_ext <<_ACEOF 16670/* confdefs.h. */ 16671_ACEOF 16672cat confdefs.h >>conftest.$ac_ext 16673cat >>conftest.$ac_ext <<_ACEOF 16674/* end confdefs.h. */ 16675#include <pthread.h> 16676int 16677main () 16678{ 16679int attr=$attr; return attr; 16680 ; 16681 return 0; 16682} 16683_ACEOF 16684rm -f conftest.$ac_objext conftest$ac_exeext 16685if { (ac_try="$ac_link" 16686case "(($ac_try" in 16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16688 *) ac_try_echo=$ac_try;; 16689esac 16690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16691 (eval "$ac_link") 2>conftest.er1 16692 ac_status=$? 16693 grep -v '^ *+' conftest.er1 >conftest.err 16694 rm -f conftest.er1 16695 cat conftest.err >&5 16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16697 (exit $ac_status); } && { 16698 test -z "$ac_c_werror_flag" || 16699 test ! -s conftest.err 16700 } && test -s conftest$ac_exeext && 16701 $as_test_x conftest$ac_exeext; then 16702 attr_name=$attr; break 16703else 16704 echo "$as_me: failed program was:" >&5 16705sed 's/^/| /' conftest.$ac_ext >&5 16706 16707 16708fi 16709 16710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16711 conftest$ac_exeext conftest.$ac_ext 16712 done 16713 { echo "$as_me:$LINENO: result: $attr_name" >&5 16714echo "${ECHO_T}$attr_name" >&6; } 16715 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 16716 16717cat >>confdefs.h <<_ACEOF 16718#define PTHREAD_CREATE_JOINABLE $attr_name 16719_ACEOF 16720 16721 fi 16722 16723 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 16724echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; } 16725 flag=no 16726 case "${host_cpu}-${host_os}" in 16727 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; 16728 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; 16729 esac 16730 { echo "$as_me:$LINENO: result: ${flag}" >&5 16731echo "${ECHO_T}${flag}" >&6; } 16732 if test "x$flag" != xno; then 16733 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 16734 fi 16735 16736 LIBS="$save_LIBS" 16737 CFLAGS="$save_CFLAGS" 16738 # More AIX lossage: must compile with xlc_r or cc_r 16739 if test x"$GCC" != xyes; then 16740 for ac_prog in xlc_r cc_r 16741do 16742 # Extract the first word of "$ac_prog", so it can be a program name with args. 16743set dummy $ac_prog; ac_word=$2 16744{ echo "$as_me:$LINENO: checking for $ac_word" >&5 16745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 16746if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then 16747 echo $ECHO_N "(cached) $ECHO_C" >&6 16748else 16749 if test -n "$PTHREAD_CC"; then 16750 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 16751else 16752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16753for as_dir in $PATH 16754do 16755 IFS=$as_save_IFS 16756 test -z "$as_dir" && as_dir=. 16757 for ac_exec_ext in '' $ac_executable_extensions; do 16758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16759 ac_cv_prog_PTHREAD_CC="$ac_prog" 16760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16761 break 2 16762 fi 16763done 16764done 16765IFS=$as_save_IFS 16766 16767fi 16768fi 16769PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 16770if test -n "$PTHREAD_CC"; then 16771 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5 16772echo "${ECHO_T}$PTHREAD_CC" >&6; } 16773else 16774 { echo "$as_me:$LINENO: result: no" >&5 16775echo "${ECHO_T}no" >&6; } 16776fi 16777 16778 16779 test -n "$PTHREAD_CC" && break 16780done 16781test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 16782 16783 else 16784 PTHREAD_CC=$CC 16785 fi 16786 16787 # The next part tries to detect GCC inconsistency with -shared on some 16788 # architectures and systems. The problem is that in certain 16789 # configurations, when -shared is specified, GCC "forgets" to 16790 # internally use various flags which are still necessary. 16791 16792 # 16793 # Prepare the flags 16794 # 16795 save_CFLAGS="$CFLAGS" 16796 save_LIBS="$LIBS" 16797 save_CC="$CC" 16798 16799 # Try with the flags determined by the earlier checks. 16800 # 16801 # -Wl,-z,defs forces link-time symbol resolution, so that the 16802 # linking checks with -shared actually have any value 16803 # 16804 # FIXME: -fPIC is required for -shared on many architectures, 16805 # so we specify it here, but the right way would probably be to 16806 # properly detect whether it is actually required. 16807 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS" 16808 LIBS="$PTHREAD_LIBS $LIBS" 16809 CC="$PTHREAD_CC" 16810 16811 # In order not to create several levels of indentation, we test 16812 # the value of "$done" until we find the cure or run out of ideas. 16813 done="no" 16814 16815 # First, make sure the CFLAGS we added are actually accepted by our 16816 # compiler. If not (and OS X's ld, for instance, does not accept -z), 16817 # then we can't do this test. 16818 if test x"$done" = xno; then 16819 { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5 16820echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; } 16821 cat >conftest.$ac_ext <<_ACEOF 16822/* confdefs.h. */ 16823_ACEOF 16824cat confdefs.h >>conftest.$ac_ext 16825cat >>conftest.$ac_ext <<_ACEOF 16826/* end confdefs.h. */ 16827 16828int 16829main () 16830{ 16831 16832 ; 16833 return 0; 16834} 16835_ACEOF 16836rm -f conftest.$ac_objext conftest$ac_exeext 16837if { (ac_try="$ac_link" 16838case "(($ac_try" in 16839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16840 *) ac_try_echo=$ac_try;; 16841esac 16842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16843 (eval "$ac_link") 2>conftest.er1 16844 ac_status=$? 16845 grep -v '^ *+' conftest.er1 >conftest.err 16846 rm -f conftest.er1 16847 cat conftest.err >&5 16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16849 (exit $ac_status); } && { 16850 test -z "$ac_c_werror_flag" || 16851 test ! -s conftest.err 16852 } && test -s conftest$ac_exeext && 16853 $as_test_x conftest$ac_exeext; then 16854 : 16855else 16856 echo "$as_me: failed program was:" >&5 16857sed 's/^/| /' conftest.$ac_ext >&5 16858 16859 done=yes 16860fi 16861 16862rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16863 conftest$ac_exeext conftest.$ac_ext 16864 16865 if test "x$done" = xyes ; then 16866 { echo "$as_me:$LINENO: result: no" >&5 16867echo "${ECHO_T}no" >&6; } 16868 else 16869 { echo "$as_me:$LINENO: result: yes" >&5 16870echo "${ECHO_T}yes" >&6; } 16871 fi 16872 fi 16873 16874 if test x"$done" = xno; then 16875 { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5 16876echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; } 16877 cat >conftest.$ac_ext <<_ACEOF 16878/* confdefs.h. */ 16879_ACEOF 16880cat confdefs.h >>conftest.$ac_ext 16881cat >>conftest.$ac_ext <<_ACEOF 16882/* end confdefs.h. */ 16883#include <pthread.h> 16884int 16885main () 16886{ 16887pthread_t th; pthread_join(th, 0); 16888 pthread_attr_init(0); pthread_cleanup_push(0, 0); 16889 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 16890 ; 16891 return 0; 16892} 16893_ACEOF 16894rm -f conftest.$ac_objext conftest$ac_exeext 16895if { (ac_try="$ac_link" 16896case "(($ac_try" in 16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16898 *) ac_try_echo=$ac_try;; 16899esac 16900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16901 (eval "$ac_link") 2>conftest.er1 16902 ac_status=$? 16903 grep -v '^ *+' conftest.er1 >conftest.err 16904 rm -f conftest.er1 16905 cat conftest.err >&5 16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16907 (exit $ac_status); } && { 16908 test -z "$ac_c_werror_flag" || 16909 test ! -s conftest.err 16910 } && test -s conftest$ac_exeext && 16911 $as_test_x conftest$ac_exeext; then 16912 done=yes 16913else 16914 echo "$as_me: failed program was:" >&5 16915sed 's/^/| /' conftest.$ac_ext >&5 16916 16917 16918fi 16919 16920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16921 conftest$ac_exeext conftest.$ac_ext 16922 16923 if test "x$done" = xyes; then 16924 { echo "$as_me:$LINENO: result: yes" >&5 16925echo "${ECHO_T}yes" >&6; } 16926 else 16927 { echo "$as_me:$LINENO: result: no" >&5 16928echo "${ECHO_T}no" >&6; } 16929 fi 16930 fi 16931 16932 # 16933 # Linux gcc on some architectures such as mips/mipsel forgets 16934 # about -lpthread 16935 # 16936 if test x"$done" = xno; then 16937 { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5 16938echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; } 16939 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS" 16940 cat >conftest.$ac_ext <<_ACEOF 16941/* confdefs.h. */ 16942_ACEOF 16943cat confdefs.h >>conftest.$ac_ext 16944cat >>conftest.$ac_ext <<_ACEOF 16945/* end confdefs.h. */ 16946#include <pthread.h> 16947int 16948main () 16949{ 16950pthread_t th; pthread_join(th, 0); 16951 pthread_attr_init(0); pthread_cleanup_push(0, 0); 16952 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 16953 ; 16954 return 0; 16955} 16956_ACEOF 16957rm -f conftest.$ac_objext conftest$ac_exeext 16958if { (ac_try="$ac_link" 16959case "(($ac_try" in 16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16961 *) ac_try_echo=$ac_try;; 16962esac 16963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16964 (eval "$ac_link") 2>conftest.er1 16965 ac_status=$? 16966 grep -v '^ *+' conftest.er1 >conftest.err 16967 rm -f conftest.er1 16968 cat conftest.err >&5 16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16970 (exit $ac_status); } && { 16971 test -z "$ac_c_werror_flag" || 16972 test ! -s conftest.err 16973 } && test -s conftest$ac_exeext && 16974 $as_test_x conftest$ac_exeext; then 16975 done=yes 16976else 16977 echo "$as_me: failed program was:" >&5 16978sed 's/^/| /' conftest.$ac_ext >&5 16979 16980 16981fi 16982 16983rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16984 conftest$ac_exeext conftest.$ac_ext 16985 16986 if test "x$done" = xyes; then 16987 { echo "$as_me:$LINENO: result: yes" >&5 16988echo "${ECHO_T}yes" >&6; } 16989 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS" 16990 else 16991 { echo "$as_me:$LINENO: result: no" >&5 16992echo "${ECHO_T}no" >&6; } 16993 fi 16994 fi 16995 # 16996 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc 16997 # 16998 if test x"$done" = xno; then 16999 { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5 17000echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; } 17001 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS" 17002 cat >conftest.$ac_ext <<_ACEOF 17003/* confdefs.h. */ 17004_ACEOF 17005cat confdefs.h >>conftest.$ac_ext 17006cat >>conftest.$ac_ext <<_ACEOF 17007/* end confdefs.h. */ 17008#include <pthread.h> 17009int 17010main () 17011{ 17012pthread_t th; pthread_join(th, 0); 17013 pthread_attr_init(0); pthread_cleanup_push(0, 0); 17014 pthread_create(0,0,0,0); pthread_cleanup_pop(0); 17015 ; 17016 return 0; 17017} 17018_ACEOF 17019rm -f conftest.$ac_objext conftest$ac_exeext 17020if { (ac_try="$ac_link" 17021case "(($ac_try" in 17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17023 *) ac_try_echo=$ac_try;; 17024esac 17025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17026 (eval "$ac_link") 2>conftest.er1 17027 ac_status=$? 17028 grep -v '^ *+' conftest.er1 >conftest.err 17029 rm -f conftest.er1 17030 cat conftest.err >&5 17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17032 (exit $ac_status); } && { 17033 test -z "$ac_c_werror_flag" || 17034 test ! -s conftest.err 17035 } && test -s conftest$ac_exeext && 17036 $as_test_x conftest$ac_exeext; then 17037 done=yes 17038else 17039 echo "$as_me: failed program was:" >&5 17040sed 's/^/| /' conftest.$ac_ext >&5 17041 17042 17043fi 17044 17045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17046 conftest$ac_exeext conftest.$ac_ext 17047 17048 if test "x$done" = xyes; then 17049 { echo "$as_me:$LINENO: result: yes" >&5 17050echo "${ECHO_T}yes" >&6; } 17051 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS" 17052 else 17053 { echo "$as_me:$LINENO: result: no" >&5 17054echo "${ECHO_T}no" >&6; } 17055 fi 17056 fi 17057 if test x"$done" = xno; then 17058 # OK, we have run out of ideas 17059 { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5 17060echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;} 17061 17062 # so it's not safe to assume that we may use pthreads 17063 acx_pthread_ok=no 17064 fi 17065 17066 CFLAGS="$save_CFLAGS" 17067 LIBS="$save_LIBS" 17068 CC="$save_CC" 17069else 17070 PTHREAD_CC="$CC" 17071fi 17072 17073 17074 17075 17076 17077# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 17078if test x"$acx_pthread_ok" = xyes; then 17079 17080cat >>confdefs.h <<\_ACEOF 17081#define HAVE_PTHREAD 1 17082_ACEOF 17083 17084 : 17085else 17086 acx_pthread_ok=no 17087 17088fi 17089ac_ext=cpp 17090ac_cpp='$CXXCPP $CPPFLAGS' 17091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17094 17095 17096{ echo "$as_me:$LINENO: checking the location of hash_map" >&5 17097echo $ECHO_N "checking the location of hash_map... $ECHO_C" >&6; } 17098 17099 ac_ext=cpp 17100ac_cpp='$CXXCPP $CPPFLAGS' 17101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17104 17105 ac_cv_cxx_hash_map="" 17106 for location in ext/hash_map hash_map; do 17107 for namespace in __gnu_cxx "" std stdext; do 17108 if test -z "$ac_cv_cxx_hash_map"; then 17109 cat >conftest.$ac_ext <<_ACEOF 17110/* confdefs.h. */ 17111_ACEOF 17112cat confdefs.h >>conftest.$ac_ext 17113cat >>conftest.$ac_ext <<_ACEOF 17114/* end confdefs.h. */ 17115#include <$location> 17116int 17117main () 17118{ 17119${namespace}::hash_map<int, int> t 17120 ; 17121 return 0; 17122} 17123_ACEOF 17124rm -f conftest.$ac_objext 17125if { (ac_try="$ac_compile" 17126case "(($ac_try" in 17127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17128 *) ac_try_echo=$ac_try;; 17129esac 17130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17131 (eval "$ac_compile") 2>conftest.er1 17132 ac_status=$? 17133 grep -v '^ *+' conftest.er1 >conftest.err 17134 rm -f conftest.er1 17135 cat conftest.err >&5 17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17137 (exit $ac_status); } && { 17138 test -z "$ac_cxx_werror_flag" || 17139 test ! -s conftest.err 17140 } && test -s conftest.$ac_objext; then 17141 ac_cv_cxx_hash_map="<$location>"; 17142 ac_cv_cxx_hash_namespace="$namespace"; 17143else 17144 echo "$as_me: failed program was:" >&5 17145sed 's/^/| /' conftest.$ac_ext >&5 17146 17147 17148fi 17149 17150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17151 fi 17152 done 17153 done 17154 ac_cv_cxx_hash_set=`echo "$ac_cv_cxx_hash_map" | sed s/map/set/`; 17155 if test -n "$ac_cv_cxx_hash_map"; then 17156 17157cat >>confdefs.h <<\_ACEOF 17158#define HAVE_HASH_MAP 1 17159_ACEOF 17160 17161 17162cat >>confdefs.h <<\_ACEOF 17163#define HAVE_HASH_SET 1 17164_ACEOF 17165 17166 17167cat >>confdefs.h <<_ACEOF 17168#define HASH_MAP_H $ac_cv_cxx_hash_map 17169_ACEOF 17170 17171 17172cat >>confdefs.h <<_ACEOF 17173#define HASH_SET_H $ac_cv_cxx_hash_set 17174_ACEOF 17175 17176 17177cat >>confdefs.h <<_ACEOF 17178#define HASH_NAMESPACE $ac_cv_cxx_hash_namespace 17179_ACEOF 17180 17181 { echo "$as_me:$LINENO: result: $ac_cv_cxx_hash_map" >&5 17182echo "${ECHO_T}$ac_cv_cxx_hash_map" >&6; } 17183 else 17184 { echo "$as_me:$LINENO: result: " >&5 17185echo "${ECHO_T}" >&6; } 17186 { echo "$as_me:$LINENO: WARNING: could not find an STL hash_map" >&5 17187echo "$as_me: WARNING: could not find an STL hash_map" >&2;} 17188 fi 17189 17190 17191# HACK: Make gtest's configure script pick up our copy of CXXFLAGS, since the 17192# flags added by ACX_CHECK_SUNCC must be used when compiling gtest too. 17193export CXXFLAGS 17194subdirs="$subdirs gtest" 17195 17196 17197ac_config_files="$ac_config_files Makefile src/Makefile protobuf.pc protobuf-lite.pc" 17198 17199cat >confcache <<\_ACEOF 17200# This file is a shell script that caches the results of configure 17201# tests run on this system so they can be shared between configure 17202# scripts and configure runs, see configure's option --config-cache. 17203# It is not useful on other systems. If it contains results you don't 17204# want to keep, you may remove or edit it. 17205# 17206# config.status only pays attention to the cache file if you give it 17207# the --recheck option to rerun configure. 17208# 17209# `ac_cv_env_foo' variables (set or unset) will be overridden when 17210# loading this file, other *unset* `ac_cv_foo' will be assigned the 17211# following values. 17212 17213_ACEOF 17214 17215# The following way of writing the cache mishandles newlines in values, 17216# but we know of no workaround that is simple, portable, and efficient. 17217# So, we kill variables containing newlines. 17218# Ultrix sh set writes to stderr and can't be redirected directly, 17219# and sets the high bit in the cache file unless we assign to the vars. 17220( 17221 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17222 eval ac_val=\$$ac_var 17223 case $ac_val in #( 17224 *${as_nl}*) 17225 case $ac_var in #( 17226 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 17227echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 17228 esac 17229 case $ac_var in #( 17230 _ | IFS | as_nl) ;; #( 17231 *) $as_unset $ac_var ;; 17232 esac ;; 17233 esac 17234 done 17235 17236 (set) 2>&1 | 17237 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17238 *${as_nl}ac_space=\ *) 17239 # `set' does not quote correctly, so add quotes (double-quote 17240 # substitution turns \\\\ into \\, and sed turns \\ into \). 17241 sed -n \ 17242 "s/'/'\\\\''/g; 17243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17244 ;; #( 17245 *) 17246 # `set' quotes correctly as required by POSIX, so do not add quotes. 17247 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17248 ;; 17249 esac | 17250 sort 17251) | 17252 sed ' 17253 /^ac_cv_env_/b end 17254 t clear 17255 :clear 17256 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17257 t end 17258 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17259 :end' >>confcache 17260if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17261 if test -w "$cache_file"; then 17262 test "x$cache_file" != "x/dev/null" && 17263 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 17264echo "$as_me: updating cache $cache_file" >&6;} 17265 cat confcache >$cache_file 17266 else 17267 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 17268echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17269 fi 17270fi 17271rm -f confcache 17272 17273test "x$prefix" = xNONE && prefix=$ac_default_prefix 17274# Let make expand exec_prefix. 17275test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17276 17277DEFS=-DHAVE_CONFIG_H 17278 17279ac_libobjs= 17280ac_ltlibobjs= 17281for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17282 # 1. Remove the extension, and $U if already installed. 17283 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17284 ac_i=`echo "$ac_i" | sed "$ac_script"` 17285 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17286 # will be set to the directory where LIBOBJS objects are built. 17287 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17288 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 17289done 17290LIBOBJS=$ac_libobjs 17291 17292LTLIBOBJS=$ac_ltlibobjs 17293 17294 17295if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17296 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 17297Usually this means the macro was only invoked conditionally." >&5 17298echo "$as_me: error: conditional \"AMDEP\" was never defined. 17299Usually this means the macro was only invoked conditionally." >&2;} 17300 { (exit 1); exit 1; }; } 17301fi 17302if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17303 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 17304Usually this means the macro was only invoked conditionally." >&5 17305echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 17306Usually this means the macro was only invoked conditionally." >&2;} 17307 { (exit 1); exit 1; }; } 17308fi 17309if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17310 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 17311Usually this means the macro was only invoked conditionally." >&5 17312echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 17313Usually this means the macro was only invoked conditionally." >&2;} 17314 { (exit 1); exit 1; }; } 17315fi 17316if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then 17317 { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined. 17318Usually this means the macro was only invoked conditionally." >&5 17319echo "$as_me: error: conditional \"GCC\" was never defined. 17320Usually this means the macro was only invoked conditionally." >&2;} 17321 { (exit 1); exit 1; }; } 17322fi 17323if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17324 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 17325Usually this means the macro was only invoked conditionally." >&5 17326echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 17327Usually this means the macro was only invoked conditionally." >&2;} 17328 { (exit 1); exit 1; }; } 17329fi 17330if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then 17331 { { echo "$as_me:$LINENO: error: conditional \"HAVE_ZLIB\" was never defined. 17332Usually this means the macro was only invoked conditionally." >&5 17333echo "$as_me: error: conditional \"HAVE_ZLIB\" was never defined. 17334Usually this means the macro was only invoked conditionally." >&2;} 17335 { (exit 1); exit 1; }; } 17336fi 17337if test -z "${USE_EXTERNAL_PROTOC_TRUE}" && test -z "${USE_EXTERNAL_PROTOC_FALSE}"; then 17338 { { echo "$as_me:$LINENO: error: conditional \"USE_EXTERNAL_PROTOC\" was never defined. 17339Usually this means the macro was only invoked conditionally." >&5 17340echo "$as_me: error: conditional \"USE_EXTERNAL_PROTOC\" was never defined. 17341Usually this means the macro was only invoked conditionally." >&2;} 17342 { (exit 1); exit 1; }; } 17343fi 17344 17345: ${CONFIG_STATUS=./config.status} 17346ac_clean_files_save=$ac_clean_files 17347ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17348{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 17349echo "$as_me: creating $CONFIG_STATUS" >&6;} 17350cat >$CONFIG_STATUS <<_ACEOF 17351#! $SHELL 17352# Generated by $as_me. 17353# Run this file to recreate the current configuration. 17354# Compiler output produced by configure, useful for debugging 17355# configure, is in config.log if it exists. 17356 17357debug=false 17358ac_cs_recheck=false 17359ac_cs_silent=false 17360SHELL=\${CONFIG_SHELL-$SHELL} 17361_ACEOF 17362 17363cat >>$CONFIG_STATUS <<\_ACEOF 17364## --------------------- ## 17365## M4sh Initialization. ## 17366## --------------------- ## 17367 17368# Be more Bourne compatible 17369DUALCASE=1; export DUALCASE # for MKS sh 17370if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17371 emulate sh 17372 NULLCMD=: 17373 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17374 # is contrary to our usage. Disable this feature. 17375 alias -g '${1+"$@"}'='"$@"' 17376 setopt NO_GLOB_SUBST 17377else 17378 case `(set -o) 2>/dev/null` in 17379 *posix*) set -o posix ;; 17380esac 17381 17382fi 17383 17384 17385 17386 17387# PATH needs CR 17388# Avoid depending upon Character Ranges. 17389as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17390as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17391as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17392as_cr_digits='0123456789' 17393as_cr_alnum=$as_cr_Letters$as_cr_digits 17394 17395# The user is always right. 17396if test "${PATH_SEPARATOR+set}" != set; then 17397 echo "#! /bin/sh" >conf$$.sh 17398 echo "exit 0" >>conf$$.sh 17399 chmod +x conf$$.sh 17400 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 17401 PATH_SEPARATOR=';' 17402 else 17403 PATH_SEPARATOR=: 17404 fi 17405 rm -f conf$$.sh 17406fi 17407 17408# Support unset when possible. 17409if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 17410 as_unset=unset 17411else 17412 as_unset=false 17413fi 17414 17415 17416# IFS 17417# We need space, tab and new line, in precisely that order. Quoting is 17418# there to prevent editors from complaining about space-tab. 17419# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17420# splitting by setting IFS to empty value.) 17421as_nl=' 17422' 17423IFS=" "" $as_nl" 17424 17425# Find who we are. Look in the path if we contain no directory separator. 17426case $0 in 17427 *[\\/]* ) as_myself=$0 ;; 17428 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17429for as_dir in $PATH 17430do 17431 IFS=$as_save_IFS 17432 test -z "$as_dir" && as_dir=. 17433 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17434done 17435IFS=$as_save_IFS 17436 17437 ;; 17438esac 17439# We did not find ourselves, most probably we were run as `sh COMMAND' 17440# in which case we are not to be found in the path. 17441if test "x$as_myself" = x; then 17442 as_myself=$0 17443fi 17444if test ! -f "$as_myself"; then 17445 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17446 { (exit 1); exit 1; } 17447fi 17448 17449# Work around bugs in pre-3.0 UWIN ksh. 17450for as_var in ENV MAIL MAILPATH 17451do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 17452done 17453PS1='$ ' 17454PS2='> ' 17455PS4='+ ' 17456 17457# NLS nuisances. 17458for as_var in \ 17459 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 17460 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 17461 LC_TELEPHONE LC_TIME 17462do 17463 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 17464 eval $as_var=C; export $as_var 17465 else 17466 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 17467 fi 17468done 17469 17470# Required to use basename. 17471if expr a : '\(a\)' >/dev/null 2>&1 && 17472 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17473 as_expr=expr 17474else 17475 as_expr=false 17476fi 17477 17478if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17479 as_basename=basename 17480else 17481 as_basename=false 17482fi 17483 17484 17485# Name of the executable. 17486as_me=`$as_basename -- "$0" || 17487$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17488 X"$0" : 'X\(//\)$' \| \ 17489 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17490echo X/"$0" | 17491 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17492 s//\1/ 17493 q 17494 } 17495 /^X\/\(\/\/\)$/{ 17496 s//\1/ 17497 q 17498 } 17499 /^X\/\(\/\).*/{ 17500 s//\1/ 17501 q 17502 } 17503 s/.*/./; q'` 17504 17505# CDPATH. 17506$as_unset CDPATH 17507 17508 17509 17510 as_lineno_1=$LINENO 17511 as_lineno_2=$LINENO 17512 test "x$as_lineno_1" != "x$as_lineno_2" && 17513 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 17514 17515 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 17516 # uniformly replaced by the line number. The first 'sed' inserts a 17517 # line-number line after each line using $LINENO; the second 'sed' 17518 # does the real work. The second script uses 'N' to pair each 17519 # line-number line with the line containing $LINENO, and appends 17520 # trailing '-' during substitution so that $LINENO is not a special 17521 # case at line end. 17522 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 17523 # scripts with optimization help from Paolo Bonzini. Blame Lee 17524 # E. McMahon (1931-1989) for sed's syntax. :-) 17525 sed -n ' 17526 p 17527 /[$]LINENO/= 17528 ' <$as_myself | 17529 sed ' 17530 s/[$]LINENO.*/&-/ 17531 t lineno 17532 b 17533 :lineno 17534 N 17535 :loop 17536 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 17537 t loop 17538 s/-\n.*// 17539 ' >$as_me.lineno && 17540 chmod +x "$as_me.lineno" || 17541 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 17542 { (exit 1); exit 1; }; } 17543 17544 # Don't try to exec as it changes $[0], causing all sort of problems 17545 # (the dirname of $[0] is not the place where we might find the 17546 # original and so on. Autoconf is especially sensitive to this). 17547 . "./$as_me.lineno" 17548 # Exit status is that of the last command. 17549 exit 17550} 17551 17552 17553if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17554 as_dirname=dirname 17555else 17556 as_dirname=false 17557fi 17558 17559ECHO_C= ECHO_N= ECHO_T= 17560case `echo -n x` in 17561-n*) 17562 case `echo 'x\c'` in 17563 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17564 *) ECHO_C='\c';; 17565 esac;; 17566*) 17567 ECHO_N='-n';; 17568esac 17569 17570if expr a : '\(a\)' >/dev/null 2>&1 && 17571 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17572 as_expr=expr 17573else 17574 as_expr=false 17575fi 17576 17577rm -f conf$$ conf$$.exe conf$$.file 17578if test -d conf$$.dir; then 17579 rm -f conf$$.dir/conf$$.file 17580else 17581 rm -f conf$$.dir 17582 mkdir conf$$.dir 17583fi 17584echo >conf$$.file 17585if ln -s conf$$.file conf$$ 2>/dev/null; then 17586 as_ln_s='ln -s' 17587 # ... but there are two gotchas: 17588 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17589 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17590 # In both cases, we have to default to `cp -p'. 17591 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17592 as_ln_s='cp -p' 17593elif ln conf$$.file conf$$ 2>/dev/null; then 17594 as_ln_s=ln 17595else 17596 as_ln_s='cp -p' 17597fi 17598rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17599rmdir conf$$.dir 2>/dev/null 17600 17601if mkdir -p . 2>/dev/null; then 17602 as_mkdir_p=: 17603else 17604 test -d ./-p && rmdir ./-p 17605 as_mkdir_p=false 17606fi 17607 17608if test -x / >/dev/null 2>&1; then 17609 as_test_x='test -x' 17610else 17611 if ls -dL / >/dev/null 2>&1; then 17612 as_ls_L_option=L 17613 else 17614 as_ls_L_option= 17615 fi 17616 as_test_x=' 17617 eval sh -c '\'' 17618 if test -d "$1"; then 17619 test -d "$1/."; 17620 else 17621 case $1 in 17622 -*)set "./$1";; 17623 esac; 17624 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 17625 ???[sx]*):;;*)false;;esac;fi 17626 '\'' sh 17627 ' 17628fi 17629as_executable_p=$as_test_x 17630 17631# Sed expression to map a string onto a valid CPP name. 17632as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17633 17634# Sed expression to map a string onto a valid variable name. 17635as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17636 17637 17638exec 6>&1 17639 17640# Save the log message, to keep $[0] and so on meaningful, and to 17641# report actual input values of CONFIG_FILES etc. instead of their 17642# values after options handling. 17643ac_log=" 17644This file was extended by Protocol Buffers $as_me 2.2.0a, which was 17645generated by GNU Autoconf 2.61. Invocation command line was 17646 17647 CONFIG_FILES = $CONFIG_FILES 17648 CONFIG_HEADERS = $CONFIG_HEADERS 17649 CONFIG_LINKS = $CONFIG_LINKS 17650 CONFIG_COMMANDS = $CONFIG_COMMANDS 17651 $ $0 $@ 17652 17653on `(hostname || uname -n) 2>/dev/null | sed 1q` 17654" 17655 17656_ACEOF 17657 17658cat >>$CONFIG_STATUS <<_ACEOF 17659# Files that config.status was made for. 17660config_files="$ac_config_files" 17661config_headers="$ac_config_headers" 17662config_commands="$ac_config_commands" 17663 17664_ACEOF 17665 17666cat >>$CONFIG_STATUS <<\_ACEOF 17667ac_cs_usage="\ 17668\`$as_me' instantiates files from templates according to the 17669current configuration. 17670 17671Usage: $0 [OPTIONS] [FILE]... 17672 17673 -h, --help print this help, then exit 17674 -V, --version print version number and configuration settings, then exit 17675 -q, --quiet do not print progress messages 17676 -d, --debug don't remove temporary files 17677 --recheck update $as_me by reconfiguring in the same conditions 17678 --file=FILE[:TEMPLATE] 17679 instantiate the configuration file FILE 17680 --header=FILE[:TEMPLATE] 17681 instantiate the configuration header FILE 17682 17683Configuration files: 17684$config_files 17685 17686Configuration headers: 17687$config_headers 17688 17689Configuration commands: 17690$config_commands 17691 17692Report bugs to <bug-autoconf@gnu.org>." 17693 17694_ACEOF 17695cat >>$CONFIG_STATUS <<_ACEOF 17696ac_cs_version="\\ 17697Protocol Buffers config.status 2.2.0a 17698configured by $0, generated by GNU Autoconf 2.61, 17699 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 17700 17701Copyright (C) 2006 Free Software Foundation, Inc. 17702This config.status script is free software; the Free Software Foundation 17703gives unlimited permission to copy, distribute and modify it." 17704 17705ac_pwd='$ac_pwd' 17706srcdir='$srcdir' 17707INSTALL='$INSTALL' 17708MKDIR_P='$MKDIR_P' 17709_ACEOF 17710 17711cat >>$CONFIG_STATUS <<\_ACEOF 17712# If no file are specified by the user, then we need to provide default 17713# value. By we need to know if files were specified by the user. 17714ac_need_defaults=: 17715while test $# != 0 17716do 17717 case $1 in 17718 --*=*) 17719 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17720 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17721 ac_shift=: 17722 ;; 17723 *) 17724 ac_option=$1 17725 ac_optarg=$2 17726 ac_shift=shift 17727 ;; 17728 esac 17729 17730 case $ac_option in 17731 # Handling of the options. 17732 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17733 ac_cs_recheck=: ;; 17734 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17735 echo "$ac_cs_version"; exit ;; 17736 --debug | --debu | --deb | --de | --d | -d ) 17737 debug=: ;; 17738 --file | --fil | --fi | --f ) 17739 $ac_shift 17740 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 17741 ac_need_defaults=false;; 17742 --header | --heade | --head | --hea ) 17743 $ac_shift 17744 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 17745 ac_need_defaults=false;; 17746 --he | --h) 17747 # Conflict between --help and --header 17748 { echo "$as_me: error: ambiguous option: $1 17749Try \`$0 --help' for more information." >&2 17750 { (exit 1); exit 1; }; };; 17751 --help | --hel | -h ) 17752 echo "$ac_cs_usage"; exit ;; 17753 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17754 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17755 ac_cs_silent=: ;; 17756 17757 # This is an error. 17758 -*) { echo "$as_me: error: unrecognized option: $1 17759Try \`$0 --help' for more information." >&2 17760 { (exit 1); exit 1; }; } ;; 17761 17762 *) ac_config_targets="$ac_config_targets $1" 17763 ac_need_defaults=false ;; 17764 17765 esac 17766 shift 17767done 17768 17769ac_configure_extra_args= 17770 17771if $ac_cs_silent; then 17772 exec 6>/dev/null 17773 ac_configure_extra_args="$ac_configure_extra_args --silent" 17774fi 17775 17776_ACEOF 17777cat >>$CONFIG_STATUS <<_ACEOF 17778if \$ac_cs_recheck; then 17779 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 17780 CONFIG_SHELL=$SHELL 17781 export CONFIG_SHELL 17782 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17783fi 17784 17785_ACEOF 17786cat >>$CONFIG_STATUS <<\_ACEOF 17787exec 5>>config.log 17788{ 17789 echo 17790 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17791## Running $as_me. ## 17792_ASBOX 17793 echo "$ac_log" 17794} >&5 17795 17796_ACEOF 17797cat >>$CONFIG_STATUS <<_ACEOF 17798# 17799# INIT-COMMANDS 17800# 17801AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17802 17803 17804# The HP-UX ksh and POSIX shell print the target directory to stdout 17805# if CDPATH is set. 17806(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17807 17808sed_quote_subst='$sed_quote_subst' 17809double_quote_subst='$double_quote_subst' 17810delay_variable_subst='$delay_variable_subst' 17811macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 17812macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 17813enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 17814enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 17815pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 17816enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 17817host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 17818host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 17819host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 17820build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 17821build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 17822build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 17823SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 17824Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 17825GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 17826EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 17827FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 17828LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 17829NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 17830LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 17831max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 17832ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 17833exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 17834lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 17835lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 17836lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 17837reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 17838reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17839deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 17840file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 17841AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 17842AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 17843STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 17844RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 17845old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17846old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17847old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17848CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 17849CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 17850compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 17851GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 17852lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 17853lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 17854lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 17855lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 17856objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 17857SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 17858ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 17859MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 17860lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 17861lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 17862lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 17863lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 17864lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 17865need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 17866DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' 17867NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' 17868LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' 17869OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' 17870OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' 17871libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 17872shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17873extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17874archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 17875enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 17876export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 17877whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 17878compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 17879old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17880old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17881archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17882archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17883module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17884module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17885with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 17886allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 17887no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 17888hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 17889hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 17890hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 17891hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 17892hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 17893hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 17894hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 17895hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 17896inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 17897link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 17898fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 17899always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 17900export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17901exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 17902include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 17903prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17904file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 17905variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 17906need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 17907need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 17908version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 17909runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 17910shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 17911shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 17912libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 17913library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 17914soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 17915postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17916postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17917finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 17918finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 17919hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 17920sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 17921sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 17922hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 17923enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 17924enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 17925enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 17926old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 17927striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 17928compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' 17929predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 17930postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 17931predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 17932postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 17933compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 17934LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17935old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17936compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17937GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17938lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17939lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17940lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17941lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17942lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17943archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17944enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17945export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17946whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17947compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17948old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17949old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17950archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17951archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17952module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17953module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17954with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17955allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17956no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17957hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17958hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17959hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17960hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17961hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17962hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17963hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17964hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17965inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17966link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17967fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17968always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17969export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17970exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17971include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17972prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17973file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17974hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17975compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17976predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17977postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17978predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17979postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17980compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' 17981 17982LTCC='$LTCC' 17983LTCFLAGS='$LTCFLAGS' 17984compiler='$compiler_DEFAULT' 17985 17986# Quote evaled strings. 17987for var in SED \ 17988GREP \ 17989EGREP \ 17990FGREP \ 17991LD \ 17992NM \ 17993LN_S \ 17994lt_SP2NL \ 17995lt_NL2SP \ 17996reload_flag \ 17997deplibs_check_method \ 17998file_magic_cmd \ 17999AR \ 18000AR_FLAGS \ 18001STRIP \ 18002RANLIB \ 18003CC \ 18004CFLAGS \ 18005compiler \ 18006lt_cv_sys_global_symbol_pipe \ 18007lt_cv_sys_global_symbol_to_cdecl \ 18008lt_cv_sys_global_symbol_to_c_name_address \ 18009lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18010SHELL \ 18011ECHO \ 18012lt_prog_compiler_no_builtin_flag \ 18013lt_prog_compiler_wl \ 18014lt_prog_compiler_pic \ 18015lt_prog_compiler_static \ 18016lt_cv_prog_compiler_c_o \ 18017need_locks \ 18018DSYMUTIL \ 18019NMEDIT \ 18020LIPO \ 18021OTOOL \ 18022OTOOL64 \ 18023shrext_cmds \ 18024export_dynamic_flag_spec \ 18025whole_archive_flag_spec \ 18026compiler_needs_object \ 18027with_gnu_ld \ 18028allow_undefined_flag \ 18029no_undefined_flag \ 18030hardcode_libdir_flag_spec \ 18031hardcode_libdir_flag_spec_ld \ 18032hardcode_libdir_separator \ 18033fix_srcfile_path \ 18034exclude_expsyms \ 18035include_expsyms \ 18036file_list_spec \ 18037variables_saved_for_relink \ 18038libname_spec \ 18039library_names_spec \ 18040soname_spec \ 18041finish_eval \ 18042old_striplib \ 18043striplib \ 18044compiler_lib_search_dirs \ 18045predep_objects \ 18046postdep_objects \ 18047predeps \ 18048postdeps \ 18049compiler_lib_search_path \ 18050LD_CXX \ 18051compiler_CXX \ 18052lt_prog_compiler_no_builtin_flag_CXX \ 18053lt_prog_compiler_wl_CXX \ 18054lt_prog_compiler_pic_CXX \ 18055lt_prog_compiler_static_CXX \ 18056lt_cv_prog_compiler_c_o_CXX \ 18057export_dynamic_flag_spec_CXX \ 18058whole_archive_flag_spec_CXX \ 18059compiler_needs_object_CXX \ 18060with_gnu_ld_CXX \ 18061allow_undefined_flag_CXX \ 18062no_undefined_flag_CXX \ 18063hardcode_libdir_flag_spec_CXX \ 18064hardcode_libdir_flag_spec_ld_CXX \ 18065hardcode_libdir_separator_CXX \ 18066fix_srcfile_path_CXX \ 18067exclude_expsyms_CXX \ 18068include_expsyms_CXX \ 18069file_list_spec_CXX \ 18070compiler_lib_search_dirs_CXX \ 18071predep_objects_CXX \ 18072postdep_objects_CXX \ 18073predeps_CXX \ 18074postdeps_CXX \ 18075compiler_lib_search_path_CXX; do 18076 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 18077 *[\\\\\\\`\\"\\\$]*) 18078 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18079 ;; 18080 *) 18081 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18082 ;; 18083 esac 18084done 18085 18086# Double-quote double-evaled strings. 18087for var in reload_cmds \ 18088old_postinstall_cmds \ 18089old_postuninstall_cmds \ 18090old_archive_cmds \ 18091extract_expsyms_cmds \ 18092old_archive_from_new_cmds \ 18093old_archive_from_expsyms_cmds \ 18094archive_cmds \ 18095archive_expsym_cmds \ 18096module_cmds \ 18097module_expsym_cmds \ 18098export_symbols_cmds \ 18099prelink_cmds \ 18100postinstall_cmds \ 18101postuninstall_cmds \ 18102finish_cmds \ 18103sys_lib_search_path_spec \ 18104sys_lib_dlsearch_path_spec \ 18105old_archive_cmds_CXX \ 18106old_archive_from_new_cmds_CXX \ 18107old_archive_from_expsyms_cmds_CXX \ 18108archive_cmds_CXX \ 18109archive_expsym_cmds_CXX \ 18110module_cmds_CXX \ 18111module_expsym_cmds_CXX \ 18112export_symbols_cmds_CXX \ 18113prelink_cmds_CXX; do 18114 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 18115 *[\\\\\\\`\\"\\\$]*) 18116 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18117 ;; 18118 *) 18119 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18120 ;; 18121 esac 18122done 18123 18124# Fix-up fallback echo if it was mangled by the above quoting rules. 18125case \$lt_ECHO in 18126*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 18127 ;; 18128esac 18129 18130ac_aux_dir='$ac_aux_dir' 18131xsi_shell='$xsi_shell' 18132lt_shell_append='$lt_shell_append' 18133 18134# See if we are running on zsh, and set the options which allow our 18135# commands through without removal of \ escapes INIT. 18136if test -n "\${ZSH_VERSION+set}" ; then 18137 setopt NO_GLOB_SUBST 18138fi 18139 18140 18141 PACKAGE='$PACKAGE' 18142 VERSION='$VERSION' 18143 TIMESTAMP='$TIMESTAMP' 18144 RM='$RM' 18145 ofile='$ofile' 18146 18147 18148 18149 18150 18151 18152_ACEOF 18153 18154cat >>$CONFIG_STATUS <<\_ACEOF 18155 18156# Handling of arguments. 18157for ac_config_target in $ac_config_targets 18158do 18159 case $ac_config_target in 18160 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18161 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18162 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18163 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18164 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18165 "protobuf.pc") CONFIG_FILES="$CONFIG_FILES protobuf.pc" ;; 18166 "protobuf-lite.pc") CONFIG_FILES="$CONFIG_FILES protobuf-lite.pc" ;; 18167 18168 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 18169echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 18170 { (exit 1); exit 1; }; };; 18171 esac 18172done 18173 18174 18175# If the user did not use the arguments to specify the items to instantiate, 18176# then the envvar interface is used. Set only those that are not. 18177# We use the long form for the default assignment because of an extremely 18178# bizarre bug on SunOS 4.1.3. 18179if $ac_need_defaults; then 18180 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18181 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18182 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18183fi 18184 18185# Have a temporary directory for convenience. Make it in the build tree 18186# simply because there is no reason against having it here, and in addition, 18187# creating and moving files from /tmp can sometimes cause problems. 18188# Hook for its removal unless debugging. 18189# Note that there is a small window in which the directory will not be cleaned: 18190# after its creation but before its name has been assigned to `$tmp'. 18191$debug || 18192{ 18193 tmp= 18194 trap 'exit_status=$? 18195 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 18196' 0 18197 trap '{ (exit 1); exit 1; }' 1 2 13 15 18198} 18199# Create a (secure) tmp directory for tmp files. 18200 18201{ 18202 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18203 test -n "$tmp" && test -d "$tmp" 18204} || 18205{ 18206 tmp=./conf$$-$RANDOM 18207 (umask 077 && mkdir "$tmp") 18208} || 18209{ 18210 echo "$me: cannot create a temporary directory in ." >&2 18211 { (exit 1); exit 1; } 18212} 18213 18214# 18215# Set up the sed scripts for CONFIG_FILES section. 18216# 18217 18218# No need to generate the scripts if there are no CONFIG_FILES. 18219# This happens for instance when ./config.status config.h 18220if test -n "$CONFIG_FILES"; then 18221 18222_ACEOF 18223 18224 18225 18226ac_delim='%!_!# ' 18227for ac_last_try in false false false false false :; do 18228 cat >conf$$subs.sed <<_ACEOF 18229SHELL!$SHELL$ac_delim 18230PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 18231PACKAGE_NAME!$PACKAGE_NAME$ac_delim 18232PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 18233PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 18234PACKAGE_STRING!$PACKAGE_STRING$ac_delim 18235PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 18236exec_prefix!$exec_prefix$ac_delim 18237prefix!$prefix$ac_delim 18238program_transform_name!$program_transform_name$ac_delim 18239bindir!$bindir$ac_delim 18240sbindir!$sbindir$ac_delim 18241libexecdir!$libexecdir$ac_delim 18242datarootdir!$datarootdir$ac_delim 18243datadir!$datadir$ac_delim 18244sysconfdir!$sysconfdir$ac_delim 18245sharedstatedir!$sharedstatedir$ac_delim 18246localstatedir!$localstatedir$ac_delim 18247includedir!$includedir$ac_delim 18248oldincludedir!$oldincludedir$ac_delim 18249docdir!$docdir$ac_delim 18250infodir!$infodir$ac_delim 18251htmldir!$htmldir$ac_delim 18252dvidir!$dvidir$ac_delim 18253pdfdir!$pdfdir$ac_delim 18254psdir!$psdir$ac_delim 18255libdir!$libdir$ac_delim 18256localedir!$localedir$ac_delim 18257mandir!$mandir$ac_delim 18258DEFS!$DEFS$ac_delim 18259ECHO_C!$ECHO_C$ac_delim 18260ECHO_N!$ECHO_N$ac_delim 18261ECHO_T!$ECHO_T$ac_delim 18262LIBS!$LIBS$ac_delim 18263build_alias!$build_alias$ac_delim 18264host_alias!$host_alias$ac_delim 18265target_alias!$target_alias$ac_delim 18266build!$build$ac_delim 18267build_cpu!$build_cpu$ac_delim 18268build_vendor!$build_vendor$ac_delim 18269build_os!$build_os$ac_delim 18270host!$host$ac_delim 18271host_cpu!$host_cpu$ac_delim 18272host_vendor!$host_vendor$ac_delim 18273host_os!$host_os$ac_delim 18274target!$target$ac_delim 18275target_cpu!$target_cpu$ac_delim 18276target_vendor!$target_vendor$ac_delim 18277target_os!$target_os$ac_delim 18278INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 18279INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 18280INSTALL_DATA!$INSTALL_DATA$ac_delim 18281am__isrc!$am__isrc$ac_delim 18282CYGPATH_W!$CYGPATH_W$ac_delim 18283PACKAGE!$PACKAGE$ac_delim 18284VERSION!$VERSION$ac_delim 18285ACLOCAL!$ACLOCAL$ac_delim 18286AUTOCONF!$AUTOCONF$ac_delim 18287AUTOMAKE!$AUTOMAKE$ac_delim 18288AUTOHEADER!$AUTOHEADER$ac_delim 18289MAKEINFO!$MAKEINFO$ac_delim 18290install_sh!$install_sh$ac_delim 18291STRIP!$STRIP$ac_delim 18292INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 18293mkdir_p!$mkdir_p$ac_delim 18294AWK!$AWK$ac_delim 18295SET_MAKE!$SET_MAKE$ac_delim 18296am__leading_dot!$am__leading_dot$ac_delim 18297AMTAR!$AMTAR$ac_delim 18298am__tar!$am__tar$ac_delim 18299am__untar!$am__untar$ac_delim 18300CC!$CC$ac_delim 18301CFLAGS!$CFLAGS$ac_delim 18302LDFLAGS!$LDFLAGS$ac_delim 18303CPPFLAGS!$CPPFLAGS$ac_delim 18304ac_ct_CC!$ac_ct_CC$ac_delim 18305EXEEXT!$EXEEXT$ac_delim 18306OBJEXT!$OBJEXT$ac_delim 18307DEPDIR!$DEPDIR$ac_delim 18308am__include!$am__include$ac_delim 18309am__quote!$am__quote$ac_delim 18310AMDEP_TRUE!$AMDEP_TRUE$ac_delim 18311AMDEP_FALSE!$AMDEP_FALSE$ac_delim 18312AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 18313CCDEPMODE!$CCDEPMODE$ac_delim 18314am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 18315am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 18316CXX!$CXX$ac_delim 18317CXXFLAGS!$CXXFLAGS$ac_delim 18318ac_ct_CXX!$ac_ct_CXX$ac_delim 18319CXXDEPMODE!$CXXDEPMODE$ac_delim 18320am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 18321am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 18322CXXCPP!$CXXCPP$ac_delim 18323GREP!$GREP$ac_delim 18324EGREP!$EGREP$ac_delim 18325GCC_TRUE!$GCC_TRUE$ac_delim 18326_ACEOF 18327 18328 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 18329 break 18330 elif $ac_last_try; then 18331 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 18332echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 18333 { (exit 1); exit 1; }; } 18334 else 18335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18336 fi 18337done 18338 18339ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 18340if test -n "$ac_eof"; then 18341 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 18342 ac_eof=`expr $ac_eof + 1` 18343fi 18344 18345cat >>$CONFIG_STATUS <<_ACEOF 18346cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 18347/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18348_ACEOF 18349sed ' 18350s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 18351s/^/s,@/; s/!/@,|#_!!_#|/ 18352:n 18353t n 18354s/'"$ac_delim"'$/,g/; t 18355s/$/\\/; p 18356N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 18357' >>$CONFIG_STATUS <conf$$subs.sed 18358rm -f conf$$subs.sed 18359cat >>$CONFIG_STATUS <<_ACEOF 18360CEOF$ac_eof 18361_ACEOF 18362 18363 18364ac_delim='%!_!# ' 18365for ac_last_try in false false false false false :; do 18366 cat >conf$$subs.sed <<_ACEOF 18367GCC_FALSE!$GCC_FALSE$ac_delim 18368PROTOBUF_OPT_FLAG!$PROTOBUF_OPT_FLAG$ac_delim 18369ISAINFO!$ISAINFO$ac_delim 18370LIBTOOL!$LIBTOOL$ac_delim 18371SED!$SED$ac_delim 18372FGREP!$FGREP$ac_delim 18373LD!$LD$ac_delim 18374DUMPBIN!$DUMPBIN$ac_delim 18375ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim 18376NM!$NM$ac_delim 18377LN_S!$LN_S$ac_delim 18378AR!$AR$ac_delim 18379RANLIB!$RANLIB$ac_delim 18380lt_ECHO!$lt_ECHO$ac_delim 18381DSYMUTIL!$DSYMUTIL$ac_delim 18382NMEDIT!$NMEDIT$ac_delim 18383LIPO!$LIPO$ac_delim 18384OTOOL!$OTOOL$ac_delim 18385OTOOL64!$OTOOL64$ac_delim 18386LIBOBJS!$LIBOBJS$ac_delim 18387POW_LIB!$POW_LIB$ac_delim 18388HAVE_ZLIB_TRUE!$HAVE_ZLIB_TRUE$ac_delim 18389HAVE_ZLIB_FALSE!$HAVE_ZLIB_FALSE$ac_delim 18390PROTOC!$PROTOC$ac_delim 18391USE_EXTERNAL_PROTOC_TRUE!$USE_EXTERNAL_PROTOC_TRUE$ac_delim 18392USE_EXTERNAL_PROTOC_FALSE!$USE_EXTERNAL_PROTOC_FALSE$ac_delim 18393acx_pthread_config!$acx_pthread_config$ac_delim 18394PTHREAD_CC!$PTHREAD_CC$ac_delim 18395PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim 18396PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim 18397subdirs!$subdirs$ac_delim 18398LTLIBOBJS!$LTLIBOBJS$ac_delim 18399_ACEOF 18400 18401 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 32; then 18402 break 18403 elif $ac_last_try; then 18404 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 18405echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 18406 { (exit 1); exit 1; }; } 18407 else 18408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18409 fi 18410done 18411 18412ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 18413if test -n "$ac_eof"; then 18414 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 18415 ac_eof=`expr $ac_eof + 1` 18416fi 18417 18418cat >>$CONFIG_STATUS <<_ACEOF 18419cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 18420/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 18421_ACEOF 18422sed ' 18423s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 18424s/^/s,@/; s/!/@,|#_!!_#|/ 18425:n 18426t n 18427s/'"$ac_delim"'$/,g/; t 18428s/$/\\/; p 18429N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 18430' >>$CONFIG_STATUS <conf$$subs.sed 18431rm -f conf$$subs.sed 18432cat >>$CONFIG_STATUS <<_ACEOF 18433:end 18434s/|#_!!_#|//g 18435CEOF$ac_eof 18436_ACEOF 18437 18438 18439# VPATH may cause trouble with some makes, so we remove $(srcdir), 18440# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 18441# trailing colons and then remove the whole line if VPATH becomes empty 18442# (actually we leave an empty line to preserve line numbers). 18443if test "x$srcdir" = x.; then 18444 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 18445s/:*\$(srcdir):*/:/ 18446s/:*\${srcdir}:*/:/ 18447s/:*@srcdir@:*/:/ 18448s/^\([^=]*=[ ]*\):*/\1/ 18449s/:*$// 18450s/^[^=]*=[ ]*$// 18451}' 18452fi 18453 18454cat >>$CONFIG_STATUS <<\_ACEOF 18455fi # test -n "$CONFIG_FILES" 18456 18457 18458for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 18459do 18460 case $ac_tag in 18461 :[FHLC]) ac_mode=$ac_tag; continue;; 18462 esac 18463 case $ac_mode$ac_tag in 18464 :[FHL]*:*);; 18465 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 18466echo "$as_me: error: Invalid tag $ac_tag." >&2;} 18467 { (exit 1); exit 1; }; };; 18468 :[FH]-) ac_tag=-:-;; 18469 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18470 esac 18471 ac_save_IFS=$IFS 18472 IFS=: 18473 set x $ac_tag 18474 IFS=$ac_save_IFS 18475 shift 18476 ac_file=$1 18477 shift 18478 18479 case $ac_mode in 18480 :L) ac_source=$1;; 18481 :[FH]) 18482 ac_file_inputs= 18483 for ac_f 18484 do 18485 case $ac_f in 18486 -) ac_f="$tmp/stdin";; 18487 *) # Look for the file first in the build tree, then in the source tree 18488 # (if the path is not absolute). The absolute path cannot be DOS-style, 18489 # because $ac_f cannot contain `:'. 18490 test -f "$ac_f" || 18491 case $ac_f in 18492 [\\/$]*) false;; 18493 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18494 esac || 18495 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 18496echo "$as_me: error: cannot find input file: $ac_f" >&2;} 18497 { (exit 1); exit 1; }; };; 18498 esac 18499 ac_file_inputs="$ac_file_inputs $ac_f" 18500 done 18501 18502 # Let's still pretend it is `configure' which instantiates (i.e., don't 18503 # use $as_me), people would be surprised to read: 18504 # /* config.h. Generated by config.status. */ 18505 configure_input="Generated from "`IFS=: 18506 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 18507 if test x"$ac_file" != x-; then 18508 configure_input="$ac_file. $configure_input" 18509 { echo "$as_me:$LINENO: creating $ac_file" >&5 18510echo "$as_me: creating $ac_file" >&6;} 18511 fi 18512 18513 case $ac_tag in 18514 *:-:* | *:-) cat >"$tmp/stdin";; 18515 esac 18516 ;; 18517 esac 18518 18519 ac_dir=`$as_dirname -- "$ac_file" || 18520$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18521 X"$ac_file" : 'X\(//\)[^/]' \| \ 18522 X"$ac_file" : 'X\(//\)$' \| \ 18523 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18524echo X"$ac_file" | 18525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18526 s//\1/ 18527 q 18528 } 18529 /^X\(\/\/\)[^/].*/{ 18530 s//\1/ 18531 q 18532 } 18533 /^X\(\/\/\)$/{ 18534 s//\1/ 18535 q 18536 } 18537 /^X\(\/\).*/{ 18538 s//\1/ 18539 q 18540 } 18541 s/.*/./; q'` 18542 { as_dir="$ac_dir" 18543 case $as_dir in #( 18544 -*) as_dir=./$as_dir;; 18545 esac 18546 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 18547 as_dirs= 18548 while :; do 18549 case $as_dir in #( 18550 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 18551 *) as_qdir=$as_dir;; 18552 esac 18553 as_dirs="'$as_qdir' $as_dirs" 18554 as_dir=`$as_dirname -- "$as_dir" || 18555$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18556 X"$as_dir" : 'X\(//\)[^/]' \| \ 18557 X"$as_dir" : 'X\(//\)$' \| \ 18558 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18559echo X"$as_dir" | 18560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18561 s//\1/ 18562 q 18563 } 18564 /^X\(\/\/\)[^/].*/{ 18565 s//\1/ 18566 q 18567 } 18568 /^X\(\/\/\)$/{ 18569 s//\1/ 18570 q 18571 } 18572 /^X\(\/\).*/{ 18573 s//\1/ 18574 q 18575 } 18576 s/.*/./; q'` 18577 test -d "$as_dir" && break 18578 done 18579 test -z "$as_dirs" || eval "mkdir $as_dirs" 18580 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 18581echo "$as_me: error: cannot create directory $as_dir" >&2;} 18582 { (exit 1); exit 1; }; }; } 18583 ac_builddir=. 18584 18585case "$ac_dir" in 18586.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18587*) 18588 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 18589 # A ".." for each directory in $ac_dir_suffix. 18590 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 18591 case $ac_top_builddir_sub in 18592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18594 esac ;; 18595esac 18596ac_abs_top_builddir=$ac_pwd 18597ac_abs_builddir=$ac_pwd$ac_dir_suffix 18598# for backward compatibility: 18599ac_top_builddir=$ac_top_build_prefix 18600 18601case $srcdir in 18602 .) # We are building in place. 18603 ac_srcdir=. 18604 ac_top_srcdir=$ac_top_builddir_sub 18605 ac_abs_top_srcdir=$ac_pwd ;; 18606 [\\/]* | ?:[\\/]* ) # Absolute name. 18607 ac_srcdir=$srcdir$ac_dir_suffix; 18608 ac_top_srcdir=$srcdir 18609 ac_abs_top_srcdir=$srcdir ;; 18610 *) # Relative name. 18611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18612 ac_top_srcdir=$ac_top_build_prefix$srcdir 18613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18614esac 18615ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18616 18617 18618 case $ac_mode in 18619 :F) 18620 # 18621 # CONFIG_FILE 18622 # 18623 18624 case $INSTALL in 18625 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18626 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18627 esac 18628 ac_MKDIR_P=$MKDIR_P 18629 case $MKDIR_P in 18630 [\\/$]* | ?:[\\/]* ) ;; 18631 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18632 esac 18633_ACEOF 18634 18635cat >>$CONFIG_STATUS <<\_ACEOF 18636# If the template does not know about datarootdir, expand it. 18637# FIXME: This hack should be removed a few years after 2.60. 18638ac_datarootdir_hack=; ac_datarootdir_seen= 18639 18640case `sed -n '/datarootdir/ { 18641 p 18642 q 18643} 18644/@datadir@/p 18645/@docdir@/p 18646/@infodir@/p 18647/@localedir@/p 18648/@mandir@/p 18649' $ac_file_inputs` in 18650*datarootdir*) ac_datarootdir_seen=yes;; 18651*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18652 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18653echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18654_ACEOF 18655cat >>$CONFIG_STATUS <<_ACEOF 18656 ac_datarootdir_hack=' 18657 s&@datadir@&$datadir&g 18658 s&@docdir@&$docdir&g 18659 s&@infodir@&$infodir&g 18660 s&@localedir@&$localedir&g 18661 s&@mandir@&$mandir&g 18662 s&\\\${datarootdir}&$datarootdir&g' ;; 18663esac 18664_ACEOF 18665 18666# Neutralize VPATH when `$srcdir' = `.'. 18667# Shell code in configure.ac might set extrasub. 18668# FIXME: do we really want to maintain this feature? 18669cat >>$CONFIG_STATUS <<_ACEOF 18670 sed "$ac_vpsub 18671$extrasub 18672_ACEOF 18673cat >>$CONFIG_STATUS <<\_ACEOF 18674:t 18675/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18676s&@configure_input@&$configure_input&;t t 18677s&@top_builddir@&$ac_top_builddir_sub&;t t 18678s&@srcdir@&$ac_srcdir&;t t 18679s&@abs_srcdir@&$ac_abs_srcdir&;t t 18680s&@top_srcdir@&$ac_top_srcdir&;t t 18681s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18682s&@builddir@&$ac_builddir&;t t 18683s&@abs_builddir@&$ac_abs_builddir&;t t 18684s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18685s&@INSTALL@&$ac_INSTALL&;t t 18686s&@MKDIR_P@&$ac_MKDIR_P&;t t 18687$ac_datarootdir_hack 18688" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 18689 18690test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18691 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 18692 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 18693 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18694which seems to be undefined. Please make sure it is defined." >&5 18695echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18696which seems to be undefined. Please make sure it is defined." >&2;} 18697 18698 rm -f "$tmp/stdin" 18699 case $ac_file in 18700 -) cat "$tmp/out"; rm -f "$tmp/out";; 18701 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 18702 esac 18703 ;; 18704 :H) 18705 # 18706 # CONFIG_HEADER 18707 # 18708_ACEOF 18709 18710# Transform confdefs.h into a sed script `conftest.defines', that 18711# substitutes the proper values into config.h.in to produce config.h. 18712rm -f conftest.defines conftest.tail 18713# First, append a space to every undef/define line, to ease matching. 18714echo 's/$/ /' >conftest.defines 18715# Then, protect against being on the right side of a sed subst, or in 18716# an unquoted here document, in config.status. If some macros were 18717# called several times there might be several #defines for the same 18718# symbol, which is useless. But do not sort them, since the last 18719# AC_DEFINE must be honored. 18720ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18721# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 18722# NAME is the cpp macro being defined, VALUE is the value it is being given. 18723# PARAMS is the parameter list in the macro definition--in most cases, it's 18724# just an empty string. 18725ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 18726ac_dB='\\)[ (].*,\\1define\\2' 18727ac_dC=' ' 18728ac_dD=' ,' 18729 18730uniq confdefs.h | 18731 sed -n ' 18732 t rset 18733 :rset 18734 s/^[ ]*#[ ]*define[ ][ ]*// 18735 t ok 18736 d 18737 :ok 18738 s/[\\&,]/\\&/g 18739 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 18740 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 18741 ' >>conftest.defines 18742 18743# Remove the space that was appended to ease matching. 18744# Then replace #undef with comments. This is necessary, for 18745# example, in the case of _POSIX_SOURCE, which is predefined and required 18746# on some systems where configure will not decide to define it. 18747# (The regexp can be short, since the line contains either #define or #undef.) 18748echo 's/ $// 18749s,^[ #]*u.*,/* & */,' >>conftest.defines 18750 18751# Break up conftest.defines: 18752ac_max_sed_lines=50 18753 18754# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 18755# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 18756# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 18757# et cetera. 18758ac_in='$ac_file_inputs' 18759ac_out='"$tmp/out1"' 18760ac_nxt='"$tmp/out2"' 18761 18762while : 18763do 18764 # Write a here document: 18765 cat >>$CONFIG_STATUS <<_ACEOF 18766 # First, check the format of the line: 18767 cat >"\$tmp/defines.sed" <<\\CEOF 18768/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 18769/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 18770b 18771:def 18772_ACEOF 18773 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 18774 echo 'CEOF 18775 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 18776 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 18777 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 18778 grep . conftest.tail >/dev/null || break 18779 rm -f conftest.defines 18780 mv conftest.tail conftest.defines 18781done 18782rm -f conftest.defines conftest.tail 18783 18784echo "ac_result=$ac_in" >>$CONFIG_STATUS 18785cat >>$CONFIG_STATUS <<\_ACEOF 18786 if test x"$ac_file" != x-; then 18787 echo "/* $configure_input */" >"$tmp/config.h" 18788 cat "$ac_result" >>"$tmp/config.h" 18789 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 18790 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 18791echo "$as_me: $ac_file is unchanged" >&6;} 18792 else 18793 rm -f $ac_file 18794 mv "$tmp/config.h" $ac_file 18795 fi 18796 else 18797 echo "/* $configure_input */" 18798 cat "$ac_result" 18799 fi 18800 rm -f "$tmp/out12" 18801# Compute $ac_file's index in $config_headers. 18802_am_arg=$ac_file 18803_am_stamp_count=1 18804for _am_header in $config_headers :; do 18805 case $_am_header in 18806 $_am_arg | $_am_arg:* ) 18807 break ;; 18808 * ) 18809 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18810 esac 18811done 18812echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18813$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18814 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18815 X"$_am_arg" : 'X\(//\)$' \| \ 18816 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18817echo X"$_am_arg" | 18818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18819 s//\1/ 18820 q 18821 } 18822 /^X\(\/\/\)[^/].*/{ 18823 s//\1/ 18824 q 18825 } 18826 /^X\(\/\/\)$/{ 18827 s//\1/ 18828 q 18829 } 18830 /^X\(\/\).*/{ 18831 s//\1/ 18832 q 18833 } 18834 s/.*/./; q'`/stamp-h$_am_stamp_count 18835 ;; 18836 18837 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 18838echo "$as_me: executing $ac_file commands" >&6;} 18839 ;; 18840 esac 18841 18842 18843 case $ac_file$ac_mode in 18844 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 18845 # Strip MF so we end up with the name of the file. 18846 mf=`echo "$mf" | sed -e 's/:.*$//'` 18847 # Check whether this is an Automake generated Makefile or not. 18848 # We used to match only the files named `Makefile.in', but 18849 # some people rename them; so instead we look at the file content. 18850 # Grep'ing the first line is not enough: some people post-process 18851 # each Makefile.in and add a new line on top of each file to say so. 18852 # Grep'ing the whole file is not good either: AIX grep has a line 18853 # limit of 2048, but all sed's we know have understand at least 4000. 18854 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18855 dirpart=`$as_dirname -- "$mf" || 18856$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18857 X"$mf" : 'X\(//\)[^/]' \| \ 18858 X"$mf" : 'X\(//\)$' \| \ 18859 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18860echo X"$mf" | 18861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18862 s//\1/ 18863 q 18864 } 18865 /^X\(\/\/\)[^/].*/{ 18866 s//\1/ 18867 q 18868 } 18869 /^X\(\/\/\)$/{ 18870 s//\1/ 18871 q 18872 } 18873 /^X\(\/\).*/{ 18874 s//\1/ 18875 q 18876 } 18877 s/.*/./; q'` 18878 else 18879 continue 18880 fi 18881 # Extract the definition of DEPDIR, am__include, and am__quote 18882 # from the Makefile without running `make'. 18883 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18884 test -z "$DEPDIR" && continue 18885 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18886 test -z "am__include" && continue 18887 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18888 # When using ansi2knr, U may be empty or an underscore; expand it 18889 U=`sed -n 's/^U = //p' < "$mf"` 18890 # Find all dependency output files, they are included files with 18891 # $(DEPDIR) in their names. We invoke sed twice because it is the 18892 # simplest approach to changing $(DEPDIR) to its actual value in the 18893 # expansion. 18894 for file in `sed -n " 18895 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18896 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 18897 # Make sure the directory exists. 18898 test -f "$dirpart/$file" && continue 18899 fdir=`$as_dirname -- "$file" || 18900$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18901 X"$file" : 'X\(//\)[^/]' \| \ 18902 X"$file" : 'X\(//\)$' \| \ 18903 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18904echo X"$file" | 18905 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18906 s//\1/ 18907 q 18908 } 18909 /^X\(\/\/\)[^/].*/{ 18910 s//\1/ 18911 q 18912 } 18913 /^X\(\/\/\)$/{ 18914 s//\1/ 18915 q 18916 } 18917 /^X\(\/\).*/{ 18918 s//\1/ 18919 q 18920 } 18921 s/.*/./; q'` 18922 { as_dir=$dirpart/$fdir 18923 case $as_dir in #( 18924 -*) as_dir=./$as_dir;; 18925 esac 18926 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 18927 as_dirs= 18928 while :; do 18929 case $as_dir in #( 18930 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 18931 *) as_qdir=$as_dir;; 18932 esac 18933 as_dirs="'$as_qdir' $as_dirs" 18934 as_dir=`$as_dirname -- "$as_dir" || 18935$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18936 X"$as_dir" : 'X\(//\)[^/]' \| \ 18937 X"$as_dir" : 'X\(//\)$' \| \ 18938 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18939echo X"$as_dir" | 18940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18941 s//\1/ 18942 q 18943 } 18944 /^X\(\/\/\)[^/].*/{ 18945 s//\1/ 18946 q 18947 } 18948 /^X\(\/\/\)$/{ 18949 s//\1/ 18950 q 18951 } 18952 /^X\(\/\).*/{ 18953 s//\1/ 18954 q 18955 } 18956 s/.*/./; q'` 18957 test -d "$as_dir" && break 18958 done 18959 test -z "$as_dirs" || eval "mkdir $as_dirs" 18960 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 18961echo "$as_me: error: cannot create directory $as_dir" >&2;} 18962 { (exit 1); exit 1; }; }; } 18963 # echo "creating $dirpart/$file" 18964 echo '# dummy' > "$dirpart/$file" 18965 done 18966done 18967 ;; 18968 "libtool":C) 18969 18970 # See if we are running on zsh, and set the options which allow our 18971 # commands through without removal of \ escapes. 18972 if test -n "${ZSH_VERSION+set}" ; then 18973 setopt NO_GLOB_SUBST 18974 fi 18975 18976 cfgfile="${ofile}T" 18977 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18978 $RM "$cfgfile" 18979 18980 cat <<_LT_EOF >> "$cfgfile" 18981#! $SHELL 18982 18983# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18984# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18985# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18986# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18987# 18988# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18989# 2006, 2007, 2008 Free Software Foundation, Inc. 18990# Written by Gordon Matzigkeit, 1996 18991# 18992# This file is part of GNU Libtool. 18993# 18994# GNU Libtool is free software; you can redistribute it and/or 18995# modify it under the terms of the GNU General Public License as 18996# published by the Free Software Foundation; either version 2 of 18997# the License, or (at your option) any later version. 18998# 18999# As a special exception to the GNU General Public License, 19000# if you distribute this file as part of a program or library that 19001# is built using GNU Libtool, you may include this file under the 19002# same distribution terms that you use for the rest of that program. 19003# 19004# GNU Libtool is distributed in the hope that it will be useful, 19005# but WITHOUT ANY WARRANTY; without even the implied warranty of 19006# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19007# GNU General Public License for more details. 19008# 19009# You should have received a copy of the GNU General Public License 19010# along with GNU Libtool; see the file COPYING. If not, a copy 19011# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19012# obtained by writing to the Free Software Foundation, Inc., 19013# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19014 19015 19016# The names of the tagged configurations supported by this script. 19017available_tags="CXX " 19018 19019# ### BEGIN LIBTOOL CONFIG 19020 19021# Which release of libtool.m4 was used? 19022macro_version=$macro_version 19023macro_revision=$macro_revision 19024 19025# Whether or not to build shared libraries. 19026build_libtool_libs=$enable_shared 19027 19028# Whether or not to build static libraries. 19029build_old_libs=$enable_static 19030 19031# What type of objects to build. 19032pic_mode=$pic_mode 19033 19034# Whether or not to optimize for fast installation. 19035fast_install=$enable_fast_install 19036 19037# The host system. 19038host_alias=$host_alias 19039host=$host 19040host_os=$host_os 19041 19042# The build system. 19043build_alias=$build_alias 19044build=$build 19045build_os=$build_os 19046 19047# A sed program that does not truncate output. 19048SED=$lt_SED 19049 19050# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19051Xsed="\$SED -e 1s/^X//" 19052 19053# A grep program that handles long lines. 19054GREP=$lt_GREP 19055 19056# An ERE matcher. 19057EGREP=$lt_EGREP 19058 19059# A literal string matcher. 19060FGREP=$lt_FGREP 19061 19062# A BSD- or MS-compatible name lister. 19063NM=$lt_NM 19064 19065# Whether we need soft or hard links. 19066LN_S=$lt_LN_S 19067 19068# What is the maximum length of a command? 19069max_cmd_len=$max_cmd_len 19070 19071# Object file suffix (normally "o"). 19072objext=$ac_objext 19073 19074# Executable file suffix (normally ""). 19075exeext=$exeext 19076 19077# whether the shell understands "unset". 19078lt_unset=$lt_unset 19079 19080# turn spaces into newlines. 19081SP2NL=$lt_lt_SP2NL 19082 19083# turn newlines into spaces. 19084NL2SP=$lt_lt_NL2SP 19085 19086# How to create reloadable object files. 19087reload_flag=$lt_reload_flag 19088reload_cmds=$lt_reload_cmds 19089 19090# Method to check whether dependent libraries are shared objects. 19091deplibs_check_method=$lt_deplibs_check_method 19092 19093# Command to use when deplibs_check_method == "file_magic". 19094file_magic_cmd=$lt_file_magic_cmd 19095 19096# The archiver. 19097AR=$lt_AR 19098AR_FLAGS=$lt_AR_FLAGS 19099 19100# A symbol stripping program. 19101STRIP=$lt_STRIP 19102 19103# Commands used to install an old-style archive. 19104RANLIB=$lt_RANLIB 19105old_postinstall_cmds=$lt_old_postinstall_cmds 19106old_postuninstall_cmds=$lt_old_postuninstall_cmds 19107 19108# A C compiler. 19109LTCC=$lt_CC 19110 19111# LTCC compiler flags. 19112LTCFLAGS=$lt_CFLAGS 19113 19114# Take the output of nm and produce a listing of raw symbols and C names. 19115global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19116 19117# Transform the output of nm in a proper C declaration. 19118global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19119 19120# Transform the output of nm in a C name address pair. 19121global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19122 19123# Transform the output of nm in a C name address pair when lib prefix is needed. 19124global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19125 19126# The name of the directory that contains temporary libtool files. 19127objdir=$objdir 19128 19129# Shell to use when invoking shell scripts. 19130SHELL=$lt_SHELL 19131 19132# An echo program that does not interpret backslashes. 19133ECHO=$lt_ECHO 19134 19135# Used to examine libraries when file_magic_cmd begins with "file". 19136MAGIC_CMD=$MAGIC_CMD 19137 19138# Must we lock files when doing compilation? 19139need_locks=$lt_need_locks 19140 19141# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19142DSYMUTIL=$lt_DSYMUTIL 19143 19144# Tool to change global to local symbols on Mac OS X. 19145NMEDIT=$lt_NMEDIT 19146 19147# Tool to manipulate fat objects and archives on Mac OS X. 19148LIPO=$lt_LIPO 19149 19150# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19151OTOOL=$lt_OTOOL 19152 19153# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19154OTOOL64=$lt_OTOOL64 19155 19156# Old archive suffix (normally "a"). 19157libext=$libext 19158 19159# Shared library suffix (normally ".so"). 19160shrext_cmds=$lt_shrext_cmds 19161 19162# The commands to extract the exported symbol list from a shared archive. 19163extract_expsyms_cmds=$lt_extract_expsyms_cmds 19164 19165# Variables whose values should be saved in libtool wrapper scripts and 19166# restored at link time. 19167variables_saved_for_relink=$lt_variables_saved_for_relink 19168 19169# Do we need the "lib" prefix for modules? 19170need_lib_prefix=$need_lib_prefix 19171 19172# Do we need a version for libraries? 19173need_version=$need_version 19174 19175# Library versioning type. 19176version_type=$version_type 19177 19178# Shared library runtime path variable. 19179runpath_var=$runpath_var 19180 19181# Shared library path variable. 19182shlibpath_var=$shlibpath_var 19183 19184# Is shlibpath searched before the hard-coded library search path? 19185shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19186 19187# Format of library name prefix. 19188libname_spec=$lt_libname_spec 19189 19190# List of archive names. First name is the real one, the rest are links. 19191# The last name is the one that the linker finds with -lNAME 19192library_names_spec=$lt_library_names_spec 19193 19194# The coded name of the library, if different from the real name. 19195soname_spec=$lt_soname_spec 19196 19197# Command to use after installation of a shared archive. 19198postinstall_cmds=$lt_postinstall_cmds 19199 19200# Command to use after uninstallation of a shared archive. 19201postuninstall_cmds=$lt_postuninstall_cmds 19202 19203# Commands used to finish a libtool library installation in a directory. 19204finish_cmds=$lt_finish_cmds 19205 19206# As "finish_cmds", except a single script fragment to be evaled but 19207# not shown. 19208finish_eval=$lt_finish_eval 19209 19210# Whether we should hardcode library paths into libraries. 19211hardcode_into_libs=$hardcode_into_libs 19212 19213# Compile-time system search path for libraries. 19214sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19215 19216# Run-time system search path for libraries. 19217sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19218 19219# Whether dlopen is supported. 19220dlopen_support=$enable_dlopen 19221 19222# Whether dlopen of programs is supported. 19223dlopen_self=$enable_dlopen_self 19224 19225# Whether dlopen of statically linked programs is supported. 19226dlopen_self_static=$enable_dlopen_self_static 19227 19228# Commands to strip libraries. 19229old_striplib=$lt_old_striplib 19230striplib=$lt_striplib 19231 19232 19233# The linker used to build libraries. 19234LD=$lt_LD 19235 19236# Commands used to build an old-style archive. 19237old_archive_cmds=$lt_old_archive_cmds 19238 19239# A language specific compiler. 19240CC=$lt_compiler 19241 19242# Is the compiler the GNU compiler? 19243with_gcc=$GCC 19244 19245# Compiler flag to turn off builtin functions. 19246no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19247 19248# How to pass a linker flag through the compiler. 19249wl=$lt_lt_prog_compiler_wl 19250 19251# Additional compiler flags for building library objects. 19252pic_flag=$lt_lt_prog_compiler_pic 19253 19254# Compiler flag to prevent dynamic linking. 19255link_static_flag=$lt_lt_prog_compiler_static 19256 19257# Does compiler simultaneously support -c and -o options? 19258compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19259 19260# Whether or not to add -lc for building shared libraries. 19261build_libtool_need_lc=$archive_cmds_need_lc 19262 19263# Whether or not to disallow shared libs when runtime libs are static. 19264allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19265 19266# Compiler flag to allow reflexive dlopens. 19267export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19268 19269# Compiler flag to generate shared objects directly from archives. 19270whole_archive_flag_spec=$lt_whole_archive_flag_spec 19271 19272# Whether the compiler copes with passing no objects directly. 19273compiler_needs_object=$lt_compiler_needs_object 19274 19275# Create an old-style archive from a shared archive. 19276old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19277 19278# Create a temporary old-style archive to link instead of a shared archive. 19279old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19280 19281# Commands used to build a shared archive. 19282archive_cmds=$lt_archive_cmds 19283archive_expsym_cmds=$lt_archive_expsym_cmds 19284 19285# Commands used to build a loadable module if different from building 19286# a shared archive. 19287module_cmds=$lt_module_cmds 19288module_expsym_cmds=$lt_module_expsym_cmds 19289 19290# Whether we are building with GNU ld or not. 19291with_gnu_ld=$lt_with_gnu_ld 19292 19293# Flag that allows shared libraries with undefined symbols to be built. 19294allow_undefined_flag=$lt_allow_undefined_flag 19295 19296# Flag that enforces no undefined symbols. 19297no_undefined_flag=$lt_no_undefined_flag 19298 19299# Flag to hardcode \$libdir into a binary during linking. 19300# This must work even if \$libdir does not exist 19301hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19302 19303# If ld is used when linking, flag to hardcode \$libdir into a binary 19304# during linking. This must work even if \$libdir does not exist. 19305hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19306 19307# Whether we need a single "-rpath" flag with a separated argument. 19308hardcode_libdir_separator=$lt_hardcode_libdir_separator 19309 19310# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19311# DIR into the resulting binary. 19312hardcode_direct=$hardcode_direct 19313 19314# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19315# DIR into the resulting binary and the resulting library dependency is 19316# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19317# library is relocated. 19318hardcode_direct_absolute=$hardcode_direct_absolute 19319 19320# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19321# into the resulting binary. 19322hardcode_minus_L=$hardcode_minus_L 19323 19324# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19325# into the resulting binary. 19326hardcode_shlibpath_var=$hardcode_shlibpath_var 19327 19328# Set to "yes" if building a shared library automatically hardcodes DIR 19329# into the library and all subsequent libraries and executables linked 19330# against it. 19331hardcode_automatic=$hardcode_automatic 19332 19333# Set to yes if linker adds runtime paths of dependent libraries 19334# to runtime path list. 19335inherit_rpath=$inherit_rpath 19336 19337# Whether libtool must link a program against all its dependency libraries. 19338link_all_deplibs=$link_all_deplibs 19339 19340# Fix the shell variable \$srcfile for the compiler. 19341fix_srcfile_path=$lt_fix_srcfile_path 19342 19343# Set to "yes" if exported symbols are required. 19344always_export_symbols=$always_export_symbols 19345 19346# The commands to list exported symbols. 19347export_symbols_cmds=$lt_export_symbols_cmds 19348 19349# Symbols that should not be listed in the preloaded symbols. 19350exclude_expsyms=$lt_exclude_expsyms 19351 19352# Symbols that must always be exported. 19353include_expsyms=$lt_include_expsyms 19354 19355# Commands necessary for linking programs (against libraries) with templates. 19356prelink_cmds=$lt_prelink_cmds 19357 19358# Specify filename containing input files. 19359file_list_spec=$lt_file_list_spec 19360 19361# How to hardcode a shared library path into an executable. 19362hardcode_action=$hardcode_action 19363 19364# The directories searched by this compiler when creating a shared library. 19365compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19366 19367# Dependencies to place before and after the objects being linked to 19368# create a shared library. 19369predep_objects=$lt_predep_objects 19370postdep_objects=$lt_postdep_objects 19371predeps=$lt_predeps 19372postdeps=$lt_postdeps 19373 19374# The library search path used internally by the compiler when linking 19375# a shared library. 19376compiler_lib_search_path=$lt_compiler_lib_search_path 19377 19378# ### END LIBTOOL CONFIG 19379 19380_LT_EOF 19381 19382 case $host_os in 19383 aix3*) 19384 cat <<\_LT_EOF >> "$cfgfile" 19385# AIX sometimes has problems with the GCC collect2 program. For some 19386# reason, if we set the COLLECT_NAMES environment variable, the problems 19387# vanish in a puff of smoke. 19388if test "X${COLLECT_NAMES+set}" != Xset; then 19389 COLLECT_NAMES= 19390 export COLLECT_NAMES 19391fi 19392_LT_EOF 19393 ;; 19394 esac 19395 19396 19397ltmain="$ac_aux_dir/ltmain.sh" 19398 19399 19400 # We use sed instead of cat because bash on DJGPP gets confused if 19401 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19402 # text mode, it properly converts lines to CR/LF. This bash problem 19403 # is reportedly fixed, but why not run on old versions too? 19404 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 19405 || (rm -f "$cfgfile"; exit 1) 19406 19407 case $xsi_shell in 19408 yes) 19409 cat << \_LT_EOF >> "$cfgfile" 19410 19411# func_dirname file append nondir_replacement 19412# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19413# otherwise set result to NONDIR_REPLACEMENT. 19414func_dirname () 19415{ 19416 case ${1} in 19417 */*) func_dirname_result="${1%/*}${2}" ;; 19418 * ) func_dirname_result="${3}" ;; 19419 esac 19420} 19421 19422# func_basename file 19423func_basename () 19424{ 19425 func_basename_result="${1##*/}" 19426} 19427 19428# func_dirname_and_basename file append nondir_replacement 19429# perform func_basename and func_dirname in a single function 19430# call: 19431# dirname: Compute the dirname of FILE. If nonempty, 19432# add APPEND to the result, otherwise set result 19433# to NONDIR_REPLACEMENT. 19434# value returned in "$func_dirname_result" 19435# basename: Compute filename of FILE. 19436# value retuned in "$func_basename_result" 19437# Implementation must be kept synchronized with func_dirname 19438# and func_basename. For efficiency, we do not delegate to 19439# those functions but instead duplicate the functionality here. 19440func_dirname_and_basename () 19441{ 19442 case ${1} in 19443 */*) func_dirname_result="${1%/*}${2}" ;; 19444 * ) func_dirname_result="${3}" ;; 19445 esac 19446 func_basename_result="${1##*/}" 19447} 19448 19449# func_stripname prefix suffix name 19450# strip PREFIX and SUFFIX off of NAME. 19451# PREFIX and SUFFIX must not contain globbing or regex special 19452# characters, hashes, percent signs, but SUFFIX may contain a leading 19453# dot (in which case that matches only a dot). 19454func_stripname () 19455{ 19456 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 19457 # positional parameters, so assign one to ordinary parameter first. 19458 func_stripname_result=${3} 19459 func_stripname_result=${func_stripname_result#"${1}"} 19460 func_stripname_result=${func_stripname_result%"${2}"} 19461} 19462 19463# func_opt_split 19464func_opt_split () 19465{ 19466 func_opt_split_opt=${1%%=*} 19467 func_opt_split_arg=${1#*=} 19468} 19469 19470# func_lo2o object 19471func_lo2o () 19472{ 19473 case ${1} in 19474 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 19475 *) func_lo2o_result=${1} ;; 19476 esac 19477} 19478 19479# func_xform libobj-or-source 19480func_xform () 19481{ 19482 func_xform_result=${1%.*}.lo 19483} 19484 19485# func_arith arithmetic-term... 19486func_arith () 19487{ 19488 func_arith_result=$(( $* )) 19489} 19490 19491# func_len string 19492# STRING may not start with a hyphen. 19493func_len () 19494{ 19495 func_len_result=${#1} 19496} 19497 19498_LT_EOF 19499 ;; 19500 *) # Bourne compatible functions. 19501 cat << \_LT_EOF >> "$cfgfile" 19502 19503# func_dirname file append nondir_replacement 19504# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19505# otherwise set result to NONDIR_REPLACEMENT. 19506func_dirname () 19507{ 19508 # Extract subdirectory from the argument. 19509 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 19510 if test "X$func_dirname_result" = "X${1}"; then 19511 func_dirname_result="${3}" 19512 else 19513 func_dirname_result="$func_dirname_result${2}" 19514 fi 19515} 19516 19517# func_basename file 19518func_basename () 19519{ 19520 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 19521} 19522 19523 19524# func_stripname prefix suffix name 19525# strip PREFIX and SUFFIX off of NAME. 19526# PREFIX and SUFFIX must not contain globbing or regex special 19527# characters, hashes, percent signs, but SUFFIX may contain a leading 19528# dot (in which case that matches only a dot). 19529# func_strip_suffix prefix name 19530func_stripname () 19531{ 19532 case ${2} in 19533 .*) func_stripname_result=`$ECHO "X${3}" \ 19534 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 19535 *) func_stripname_result=`$ECHO "X${3}" \ 19536 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 19537 esac 19538} 19539 19540# sed scripts: 19541my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 19542my_sed_long_arg='1s/^-[^=]*=//' 19543 19544# func_opt_split 19545func_opt_split () 19546{ 19547 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 19548 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 19549} 19550 19551# func_lo2o object 19552func_lo2o () 19553{ 19554 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 19555} 19556 19557# func_xform libobj-or-source 19558func_xform () 19559{ 19560 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` 19561} 19562 19563# func_arith arithmetic-term... 19564func_arith () 19565{ 19566 func_arith_result=`expr "$@"` 19567} 19568 19569# func_len string 19570# STRING may not start with a hyphen. 19571func_len () 19572{ 19573 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 19574} 19575 19576_LT_EOF 19577esac 19578 19579case $lt_shell_append in 19580 yes) 19581 cat << \_LT_EOF >> "$cfgfile" 19582 19583# func_append var value 19584# Append VALUE to the end of shell variable VAR. 19585func_append () 19586{ 19587 eval "$1+=\$2" 19588} 19589_LT_EOF 19590 ;; 19591 *) 19592 cat << \_LT_EOF >> "$cfgfile" 19593 19594# func_append var value 19595# Append VALUE to the end of shell variable VAR. 19596func_append () 19597{ 19598 eval "$1=\$$1\$2" 19599} 19600 19601_LT_EOF 19602 ;; 19603 esac 19604 19605 19606 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 19607 || (rm -f "$cfgfile"; exit 1) 19608 19609 mv -f "$cfgfile" "$ofile" || 19610 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19611 chmod +x "$ofile" 19612 19613 19614 cat <<_LT_EOF >> "$ofile" 19615 19616# ### BEGIN LIBTOOL TAG CONFIG: CXX 19617 19618# The linker used to build libraries. 19619LD=$lt_LD_CXX 19620 19621# Commands used to build an old-style archive. 19622old_archive_cmds=$lt_old_archive_cmds_CXX 19623 19624# A language specific compiler. 19625CC=$lt_compiler_CXX 19626 19627# Is the compiler the GNU compiler? 19628with_gcc=$GCC_CXX 19629 19630# Compiler flag to turn off builtin functions. 19631no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19632 19633# How to pass a linker flag through the compiler. 19634wl=$lt_lt_prog_compiler_wl_CXX 19635 19636# Additional compiler flags for building library objects. 19637pic_flag=$lt_lt_prog_compiler_pic_CXX 19638 19639# Compiler flag to prevent dynamic linking. 19640link_static_flag=$lt_lt_prog_compiler_static_CXX 19641 19642# Does compiler simultaneously support -c and -o options? 19643compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19644 19645# Whether or not to add -lc for building shared libraries. 19646build_libtool_need_lc=$archive_cmds_need_lc_CXX 19647 19648# Whether or not to disallow shared libs when runtime libs are static. 19649allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19650 19651# Compiler flag to allow reflexive dlopens. 19652export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19653 19654# Compiler flag to generate shared objects directly from archives. 19655whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19656 19657# Whether the compiler copes with passing no objects directly. 19658compiler_needs_object=$lt_compiler_needs_object_CXX 19659 19660# Create an old-style archive from a shared archive. 19661old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19662 19663# Create a temporary old-style archive to link instead of a shared archive. 19664old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19665 19666# Commands used to build a shared archive. 19667archive_cmds=$lt_archive_cmds_CXX 19668archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19669 19670# Commands used to build a loadable module if different from building 19671# a shared archive. 19672module_cmds=$lt_module_cmds_CXX 19673module_expsym_cmds=$lt_module_expsym_cmds_CXX 19674 19675# Whether we are building with GNU ld or not. 19676with_gnu_ld=$lt_with_gnu_ld_CXX 19677 19678# Flag that allows shared libraries with undefined symbols to be built. 19679allow_undefined_flag=$lt_allow_undefined_flag_CXX 19680 19681# Flag that enforces no undefined symbols. 19682no_undefined_flag=$lt_no_undefined_flag_CXX 19683 19684# Flag to hardcode \$libdir into a binary during linking. 19685# This must work even if \$libdir does not exist 19686hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19687 19688# If ld is used when linking, flag to hardcode \$libdir into a binary 19689# during linking. This must work even if \$libdir does not exist. 19690hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 19691 19692# Whether we need a single "-rpath" flag with a separated argument. 19693hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19694 19695# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19696# DIR into the resulting binary. 19697hardcode_direct=$hardcode_direct_CXX 19698 19699# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19700# DIR into the resulting binary and the resulting library dependency is 19701# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19702# library is relocated. 19703hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19704 19705# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19706# into the resulting binary. 19707hardcode_minus_L=$hardcode_minus_L_CXX 19708 19709# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19710# into the resulting binary. 19711hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19712 19713# Set to "yes" if building a shared library automatically hardcodes DIR 19714# into the library and all subsequent libraries and executables linked 19715# against it. 19716hardcode_automatic=$hardcode_automatic_CXX 19717 19718# Set to yes if linker adds runtime paths of dependent libraries 19719# to runtime path list. 19720inherit_rpath=$inherit_rpath_CXX 19721 19722# Whether libtool must link a program against all its dependency libraries. 19723link_all_deplibs=$link_all_deplibs_CXX 19724 19725# Fix the shell variable \$srcfile for the compiler. 19726fix_srcfile_path=$lt_fix_srcfile_path_CXX 19727 19728# Set to "yes" if exported symbols are required. 19729always_export_symbols=$always_export_symbols_CXX 19730 19731# The commands to list exported symbols. 19732export_symbols_cmds=$lt_export_symbols_cmds_CXX 19733 19734# Symbols that should not be listed in the preloaded symbols. 19735exclude_expsyms=$lt_exclude_expsyms_CXX 19736 19737# Symbols that must always be exported. 19738include_expsyms=$lt_include_expsyms_CXX 19739 19740# Commands necessary for linking programs (against libraries) with templates. 19741prelink_cmds=$lt_prelink_cmds_CXX 19742 19743# Specify filename containing input files. 19744file_list_spec=$lt_file_list_spec_CXX 19745 19746# How to hardcode a shared library path into an executable. 19747hardcode_action=$hardcode_action_CXX 19748 19749# The directories searched by this compiler when creating a shared library. 19750compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19751 19752# Dependencies to place before and after the objects being linked to 19753# create a shared library. 19754predep_objects=$lt_predep_objects_CXX 19755postdep_objects=$lt_postdep_objects_CXX 19756predeps=$lt_predeps_CXX 19757postdeps=$lt_postdeps_CXX 19758 19759# The library search path used internally by the compiler when linking 19760# a shared library. 19761compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19762 19763# ### END LIBTOOL TAG CONFIG: CXX 19764_LT_EOF 19765 19766 ;; 19767 19768 esac 19769done # for ac_tag 19770 19771 19772{ (exit 0); exit 0; } 19773_ACEOF 19774chmod +x $CONFIG_STATUS 19775ac_clean_files=$ac_clean_files_save 19776 19777 19778# configure is writing to config.log, and then calls config.status. 19779# config.status does its own redirection, appending to config.log. 19780# Unfortunately, on DOS this fails, as config.log is still kept open 19781# by configure, so config.status won't be able to write to it; its 19782# output is simply discarded. So we exec the FD to /dev/null, 19783# effectively closing config.log, so it can be properly (re)opened and 19784# appended to by config.status. When coming back to configure, we 19785# need to make the FD available again. 19786if test "$no_create" != yes; then 19787 ac_cs_success=: 19788 ac_config_status_args= 19789 test "$silent" = yes && 19790 ac_config_status_args="$ac_config_status_args --quiet" 19791 exec 5>/dev/null 19792 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19793 exec 5>>config.log 19794 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19795 # would make configure fail if this is the last instruction. 19796 $ac_cs_success || { (exit 1); exit 1; } 19797fi 19798 19799# 19800# CONFIG_SUBDIRS section. 19801# 19802if test "$no_recursion" != yes; then 19803 19804 # Remove --cache-file and --srcdir arguments so they do not pile up. 19805 ac_sub_configure_args= 19806 ac_prev= 19807 eval "set x $ac_configure_args" 19808 shift 19809 for ac_arg 19810 do 19811 if test -n "$ac_prev"; then 19812 ac_prev= 19813 continue 19814 fi 19815 case $ac_arg in 19816 -cache-file | --cache-file | --cache-fil | --cache-fi \ 19817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 19818 ac_prev=cache_file ;; 19819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 19820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 19821 | --c=*) 19822 ;; 19823 --config-cache | -C) 19824 ;; 19825 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 19826 ac_prev=srcdir ;; 19827 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 19828 ;; 19829 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 19830 ac_prev=prefix ;; 19831 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 19832 ;; 19833 *) 19834 case $ac_arg in 19835 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 19836 esac 19837 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 19838 esac 19839 done 19840 19841 # Always prepend --prefix to ensure using the same prefix 19842 # in subdir configurations. 19843 ac_arg="--prefix=$prefix" 19844 case $ac_arg in 19845 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 19846 esac 19847 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 19848 19849 # Pass --silent 19850 if test "$silent" = yes; then 19851 ac_sub_configure_args="--silent $ac_sub_configure_args" 19852 fi 19853 19854 ac_popdir=`pwd` 19855 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 19856 19857 # Do not complain, so a configure script can configure whichever 19858 # parts of a large source tree are present. 19859 test -d "$srcdir/$ac_dir" || continue 19860 19861 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 19862 echo "$as_me:$LINENO: $ac_msg" >&5 19863 echo "$ac_msg" >&6 19864 { as_dir="$ac_dir" 19865 case $as_dir in #( 19866 -*) as_dir=./$as_dir;; 19867 esac 19868 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 19869 as_dirs= 19870 while :; do 19871 case $as_dir in #( 19872 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 19873 *) as_qdir=$as_dir;; 19874 esac 19875 as_dirs="'$as_qdir' $as_dirs" 19876 as_dir=`$as_dirname -- "$as_dir" || 19877$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19878 X"$as_dir" : 'X\(//\)[^/]' \| \ 19879 X"$as_dir" : 'X\(//\)$' \| \ 19880 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19881echo X"$as_dir" | 19882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19883 s//\1/ 19884 q 19885 } 19886 /^X\(\/\/\)[^/].*/{ 19887 s//\1/ 19888 q 19889 } 19890 /^X\(\/\/\)$/{ 19891 s//\1/ 19892 q 19893 } 19894 /^X\(\/\).*/{ 19895 s//\1/ 19896 q 19897 } 19898 s/.*/./; q'` 19899 test -d "$as_dir" && break 19900 done 19901 test -z "$as_dirs" || eval "mkdir $as_dirs" 19902 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 19903echo "$as_me: error: cannot create directory $as_dir" >&2;} 19904 { (exit 1); exit 1; }; }; } 19905 ac_builddir=. 19906 19907case "$ac_dir" in 19908.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19909*) 19910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 19911 # A ".." for each directory in $ac_dir_suffix. 19912 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 19913 case $ac_top_builddir_sub in 19914 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19915 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19916 esac ;; 19917esac 19918ac_abs_top_builddir=$ac_pwd 19919ac_abs_builddir=$ac_pwd$ac_dir_suffix 19920# for backward compatibility: 19921ac_top_builddir=$ac_top_build_prefix 19922 19923case $srcdir in 19924 .) # We are building in place. 19925 ac_srcdir=. 19926 ac_top_srcdir=$ac_top_builddir_sub 19927 ac_abs_top_srcdir=$ac_pwd ;; 19928 [\\/]* | ?:[\\/]* ) # Absolute name. 19929 ac_srcdir=$srcdir$ac_dir_suffix; 19930 ac_top_srcdir=$srcdir 19931 ac_abs_top_srcdir=$srcdir ;; 19932 *) # Relative name. 19933 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19934 ac_top_srcdir=$ac_top_build_prefix$srcdir 19935 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19936esac 19937ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19938 19939 19940 cd "$ac_dir" 19941 19942 # Check for guested configure; otherwise get Cygnus style configure. 19943 if test -f "$ac_srcdir/configure.gnu"; then 19944 ac_sub_configure=$ac_srcdir/configure.gnu 19945 elif test -f "$ac_srcdir/configure"; then 19946 ac_sub_configure=$ac_srcdir/configure 19947 elif test -f "$ac_srcdir/configure.in"; then 19948 # This should be Cygnus configure. 19949 ac_sub_configure=$ac_aux_dir/configure 19950 else 19951 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 19952echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 19953 ac_sub_configure= 19954 fi 19955 19956 # The recursion is here. 19957 if test -n "$ac_sub_configure"; then 19958 # Make the cache file name correct relative to the subdirectory. 19959 case $cache_file in 19960 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 19961 *) # Relative name. 19962 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 19963 esac 19964 19965 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 19966echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 19967 # The eval makes quoting arguments work. 19968 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 19969 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 19970 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 19971echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} 19972 { (exit 1); exit 1; }; } 19973 fi 19974 19975 cd "$ac_popdir" 19976 done 19977fi 19978 19979