1#! /bin/sh 2# From configure.in OpenLDAP: pkg/ldap/contrib/ldapc++/configure.in,v 1.8.2.7 2008/07/09 21:59:44 quanah Exp . 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.61 for ldapcpplib . 5# 6# Report bugs to <http://www.openldap.org/its/ >. 7# 8# Copyright 2000-2010 The OpenLDAP Foundation. All rights reserved. 9# Restrictions apply, see COPYRIGHT and LICENSE files. 10# 11# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 12# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## --------------------- ## 16## M4sh Initialization. ## 17## --------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 22 emulate sh 23 NULLCMD=: 24 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in 30 *posix*) set -o posix ;; 31esac 32 33fi 34 35 36 37 38# PATH needs CR 39# Avoid depending upon Character Ranges. 40as_cr_letters='abcdefghijklmnopqrstuvwxyz' 41as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 42as_cr_Letters=$as_cr_letters$as_cr_LETTERS 43as_cr_digits='0123456789' 44as_cr_alnum=$as_cr_Letters$as_cr_digits 45 46# The user is always right. 47if test "${PATH_SEPARATOR+set}" != set; then 48 echo "#! /bin/sh" >conf$$.sh 49 echo "exit 0" >>conf$$.sh 50 chmod +x conf$$.sh 51 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 52 PATH_SEPARATOR=';' 53 else 54 PATH_SEPARATOR=: 55 fi 56 rm -f conf$$.sh 57fi 58 59# Support unset when possible. 60if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 61 as_unset=unset 62else 63 as_unset=false 64fi 65 66 67# IFS 68# We need space, tab and new line, in precisely that order. Quoting is 69# there to prevent editors from complaining about space-tab. 70# (If _AS_PATH_WALK were called with IFS unset, it would disable word 71# splitting by setting IFS to empty value.) 72as_nl=' 73' 74IFS=" "" $as_nl" 75 76# Find who we are. Look in the path if we contain no directory separator. 77case $0 in 78 *[\\/]* ) as_myself=$0 ;; 79 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 80for as_dir in $PATH 81do 82 IFS=$as_save_IFS 83 test -z "$as_dir" && as_dir=. 84 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 85done 86IFS=$as_save_IFS 87 88 ;; 89esac 90# We did not find ourselves, most probably we were run as `sh COMMAND' 91# in which case we are not to be found in the path. 92if test "x$as_myself" = x; then 93 as_myself=$0 94fi 95if test ! -f "$as_myself"; then 96 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 97 { (exit 1); exit 1; } 98fi 99 100# Work around bugs in pre-3.0 UWIN ksh. 101for as_var in ENV MAIL MAILPATH 102do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 103done 104PS1='$ ' 105PS2='> ' 106PS4='+ ' 107 108# NLS nuisances. 109for as_var in \ 110 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 111 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 112 LC_TELEPHONE LC_TIME 113do 114 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 115 eval $as_var=C; export $as_var 116 else 117 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 118 fi 119done 120 121# Required to use basename. 122if expr a : '\(a\)' >/dev/null 2>&1 && 123 test "X`expr 00001 : '.*\(...\)'`" = X001; then 124 as_expr=expr 125else 126 as_expr=false 127fi 128 129if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 130 as_basename=basename 131else 132 as_basename=false 133fi 134 135 136# Name of the executable. 137as_me=`$as_basename -- "$0" || 138$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 139 X"$0" : 'X\(//\)$' \| \ 140 X"$0" : 'X\(/\)' \| . 2>/dev/null || 141echo X/"$0" | 142 sed '/^.*\/\([^/][^/]*\)\/*$/{ 143 s//\1/ 144 q 145 } 146 /^X\/\(\/\/\)$/{ 147 s//\1/ 148 q 149 } 150 /^X\/\(\/\).*/{ 151 s//\1/ 152 q 153 } 154 s/.*/./; q'` 155 156# CDPATH. 157$as_unset CDPATH 158 159 160if test "x$CONFIG_SHELL" = x; then 161 if (eval ":") 2>/dev/null; then 162 as_have_required=yes 163else 164 as_have_required=no 165fi 166 167 if test $as_have_required = yes && (eval ": 168(as_func_return () { 169 (exit \$1) 170} 171as_func_success () { 172 as_func_return 0 173} 174as_func_failure () { 175 as_func_return 1 176} 177as_func_ret_success () { 178 return 0 179} 180as_func_ret_failure () { 181 return 1 182} 183 184exitcode=0 185if as_func_success; then 186 : 187else 188 exitcode=1 189 echo as_func_success failed. 190fi 191 192if as_func_failure; then 193 exitcode=1 194 echo as_func_failure succeeded. 195fi 196 197if as_func_ret_success; then 198 : 199else 200 exitcode=1 201 echo as_func_ret_success failed. 202fi 203 204if as_func_ret_failure; then 205 exitcode=1 206 echo as_func_ret_failure succeeded. 207fi 208 209if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 210 : 211else 212 exitcode=1 213 echo positional parameters were not saved. 214fi 215 216test \$exitcode = 0) || { (exit 1); exit 1; } 217 218( 219 as_lineno_1=\$LINENO 220 as_lineno_2=\$LINENO 221 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 222 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 223") 2> /dev/null; then 224 : 225else 226 as_candidate_shells= 227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 228for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 229do 230 IFS=$as_save_IFS 231 test -z "$as_dir" && as_dir=. 232 case $as_dir in 233 /*) 234 for as_base in sh bash ksh sh5; do 235 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 236 done;; 237 esac 238done 239IFS=$as_save_IFS 240 241 242 for as_shell in $as_candidate_shells $SHELL; do 243 # Try only shells that exist, to save several forks. 244 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 245 { ("$as_shell") 2> /dev/null <<\_ASEOF 246if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 247 emulate sh 248 NULLCMD=: 249 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 250 # is contrary to our usage. Disable this feature. 251 alias -g '${1+"$@"}'='"$@"' 252 setopt NO_GLOB_SUBST 253else 254 case `(set -o) 2>/dev/null` in 255 *posix*) set -o posix ;; 256esac 257 258fi 259 260 261: 262_ASEOF 263}; then 264 CONFIG_SHELL=$as_shell 265 as_have_required=yes 266 if { "$as_shell" 2> /dev/null <<\_ASEOF 267if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 268 emulate sh 269 NULLCMD=: 270 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 271 # is contrary to our usage. Disable this feature. 272 alias -g '${1+"$@"}'='"$@"' 273 setopt NO_GLOB_SUBST 274else 275 case `(set -o) 2>/dev/null` in 276 *posix*) set -o posix ;; 277esac 278 279fi 280 281 282: 283(as_func_return () { 284 (exit $1) 285} 286as_func_success () { 287 as_func_return 0 288} 289as_func_failure () { 290 as_func_return 1 291} 292as_func_ret_success () { 293 return 0 294} 295as_func_ret_failure () { 296 return 1 297} 298 299exitcode=0 300if as_func_success; then 301 : 302else 303 exitcode=1 304 echo as_func_success failed. 305fi 306 307if as_func_failure; then 308 exitcode=1 309 echo as_func_failure succeeded. 310fi 311 312if as_func_ret_success; then 313 : 314else 315 exitcode=1 316 echo as_func_ret_success failed. 317fi 318 319if as_func_ret_failure; then 320 exitcode=1 321 echo as_func_ret_failure succeeded. 322fi 323 324if ( set x; as_func_ret_success y && test x = "$1" ); then 325 : 326else 327 exitcode=1 328 echo positional parameters were not saved. 329fi 330 331test $exitcode = 0) || { (exit 1); exit 1; } 332 333( 334 as_lineno_1=$LINENO 335 as_lineno_2=$LINENO 336 test "x$as_lineno_1" != "x$as_lineno_2" && 337 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 338 339_ASEOF 340}; then 341 break 342fi 343 344fi 345 346 done 347 348 if test "x$CONFIG_SHELL" != x; then 349 for as_var in BASH_ENV ENV 350 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 351 done 352 export CONFIG_SHELL 353 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 354fi 355 356 357 if test $as_have_required = no; then 358 echo This script requires a shell more modern than all the 359 echo shells that I found on your system. Please install a 360 echo modern shell, or manually run the script under such a 361 echo shell if you do have one. 362 { (exit 1); exit 1; } 363fi 364 365 366fi 367 368fi 369 370 371 372(eval "as_func_return () { 373 (exit \$1) 374} 375as_func_success () { 376 as_func_return 0 377} 378as_func_failure () { 379 as_func_return 1 380} 381as_func_ret_success () { 382 return 0 383} 384as_func_ret_failure () { 385 return 1 386} 387 388exitcode=0 389if as_func_success; then 390 : 391else 392 exitcode=1 393 echo as_func_success failed. 394fi 395 396if as_func_failure; then 397 exitcode=1 398 echo as_func_failure succeeded. 399fi 400 401if as_func_ret_success; then 402 : 403else 404 exitcode=1 405 echo as_func_ret_success failed. 406fi 407 408if as_func_ret_failure; then 409 exitcode=1 410 echo as_func_ret_failure succeeded. 411fi 412 413if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 414 : 415else 416 exitcode=1 417 echo positional parameters were not saved. 418fi 419 420test \$exitcode = 0") || { 421 echo No shell found that supports shell functions. 422 echo Please tell autoconf@gnu.org about your system, 423 echo including any error possibly output before this 424 echo message 425} 426 427 428 429 as_lineno_1=$LINENO 430 as_lineno_2=$LINENO 431 test "x$as_lineno_1" != "x$as_lineno_2" && 432 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 433 434 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 435 # uniformly replaced by the line number. The first 'sed' inserts a 436 # line-number line after each line using $LINENO; the second 'sed' 437 # does the real work. The second script uses 'N' to pair each 438 # line-number line with the line containing $LINENO, and appends 439 # trailing '-' during substitution so that $LINENO is not a special 440 # case at line end. 441 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 442 # scripts with optimization help from Paolo Bonzini. Blame Lee 443 # E. McMahon (1931-1989) for sed's syntax. :-) 444 sed -n ' 445 p 446 /[$]LINENO/= 447 ' <$as_myself | 448 sed ' 449 s/[$]LINENO.*/&-/ 450 t lineno 451 b 452 :lineno 453 N 454 :loop 455 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 456 t loop 457 s/-\n.*// 458 ' >$as_me.lineno && 459 chmod +x "$as_me.lineno" || 460 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 461 { (exit 1); exit 1; }; } 462 463 # Don't try to exec as it changes $[0], causing all sort of problems 464 # (the dirname of $[0] is not the place where we might find the 465 # original and so on. Autoconf is especially sensitive to this). 466 . "./$as_me.lineno" 467 # Exit status is that of the last command. 468 exit 469} 470 471 472if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 473 as_dirname=dirname 474else 475 as_dirname=false 476fi 477 478ECHO_C= ECHO_N= ECHO_T= 479case `echo -n x` in 480-n*) 481 case `echo 'x\c'` in 482 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 483 *) ECHO_C='\c';; 484 esac;; 485*) 486 ECHO_N='-n';; 487esac 488 489if expr a : '\(a\)' >/dev/null 2>&1 && 490 test "X`expr 00001 : '.*\(...\)'`" = X001; then 491 as_expr=expr 492else 493 as_expr=false 494fi 495 496rm -f conf$$ conf$$.exe conf$$.file 497if test -d conf$$.dir; then 498 rm -f conf$$.dir/conf$$.file 499else 500 rm -f conf$$.dir 501 mkdir conf$$.dir 502fi 503echo >conf$$.file 504if ln -s conf$$.file conf$$ 2>/dev/null; then 505 as_ln_s='ln -s' 506 # ... but there are two gotchas: 507 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 508 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 509 # In both cases, we have to default to `cp -p'. 510 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 511 as_ln_s='cp -p' 512elif ln conf$$.file conf$$ 2>/dev/null; then 513 as_ln_s=ln 514else 515 as_ln_s='cp -p' 516fi 517rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 518rmdir conf$$.dir 2>/dev/null 519 520if mkdir -p . 2>/dev/null; then 521 as_mkdir_p=: 522else 523 test -d ./-p && rmdir ./-p 524 as_mkdir_p=false 525fi 526 527if test -x / >/dev/null 2>&1; then 528 as_test_x='test -x' 529else 530 if ls -dL / >/dev/null 2>&1; then 531 as_ls_L_option=L 532 else 533 as_ls_L_option= 534 fi 535 as_test_x=' 536 eval sh -c '\'' 537 if test -d "$1"; then 538 test -d "$1/."; 539 else 540 case $1 in 541 -*)set "./$1";; 542 esac; 543 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 544 ???[sx]*):;;*)false;;esac;fi 545 '\'' sh 546 ' 547fi 548as_executable_p=$as_test_x 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557 558 559# Check that we are running under the correct shell. 560SHELL=${CONFIG_SHELL-/bin/sh} 561 562case X$ECHO in 563X*--fallback-echo) 564 # Remove one level of quotation (which was required for Make). 565 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 566 ;; 567esac 568 569echo=${ECHO-echo} 570if test "X$1" = X--no-reexec; then 571 # Discard the --no-reexec flag, and continue. 572 shift 573elif test "X$1" = X--fallback-echo; then 574 # Avoid inline document here, it may be left over 575 : 576elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 577 # Yippee, $echo works! 578 : 579else 580 # Restart under the correct shell. 581 exec $SHELL "$0" --no-reexec ${1+"$@"} 582fi 583 584if test "X$1" = X--fallback-echo; then 585 # used as fallback echo 586 shift 587 cat <<EOF 588$* 589EOF 590 exit 0 591fi 592 593# The HP-UX ksh and POSIX shell print the target directory to stdout 594# if CDPATH is set. 595(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 596 597if test -z "$ECHO"; then 598if test "X${echo_test_string+set}" != Xset; then 599# find a string as large as possible, as long as the shell can cope with it 600 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 601 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 602 if (echo_test_string=`eval $cmd`) 2>/dev/null && 603 echo_test_string=`eval $cmd` && 604 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 605 then 606 break 607 fi 608 done 609fi 610 611if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 612 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 613 test "X$echo_testing_string" = "X$echo_test_string"; then 614 : 615else 616 # The Solaris, AIX, and Digital Unix default echo programs unquote 617 # backslashes. This makes it impossible to quote backslashes using 618 # echo "$something" | sed 's/\\/\\\\/g' 619 # 620 # So, first we look for a working echo in the user's PATH. 621 622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 623 for dir in $PATH /usr/ucb; do 624 IFS="$lt_save_ifs" 625 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 626 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 627 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 628 test "X$echo_testing_string" = "X$echo_test_string"; then 629 echo="$dir/echo" 630 break 631 fi 632 done 633 IFS="$lt_save_ifs" 634 635 if test "X$echo" = Xecho; then 636 # We didn't find a better echo, so look for alternatives. 637 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 638 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 639 test "X$echo_testing_string" = "X$echo_test_string"; then 640 # This shell has a builtin print -r that does the trick. 641 echo='print -r' 642 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 643 test "X$CONFIG_SHELL" != X/bin/ksh; then 644 # If we have ksh, try running configure again with it. 645 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 646 export ORIGINAL_CONFIG_SHELL 647 CONFIG_SHELL=/bin/ksh 648 export CONFIG_SHELL 649 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 650 else 651 # Try using printf. 652 echo='printf %s\n' 653 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 654 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 # Cool, printf works 657 : 658 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 659 test "X$echo_testing_string" = 'X\t' && 660 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 661 test "X$echo_testing_string" = "X$echo_test_string"; then 662 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 663 export CONFIG_SHELL 664 SHELL="$CONFIG_SHELL" 665 export SHELL 666 echo="$CONFIG_SHELL $0 --fallback-echo" 667 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 668 test "X$echo_testing_string" = 'X\t' && 669 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 670 test "X$echo_testing_string" = "X$echo_test_string"; then 671 echo="$CONFIG_SHELL $0 --fallback-echo" 672 else 673 # maybe with a smaller string... 674 prev=: 675 676 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 677 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 678 then 679 break 680 fi 681 prev="$cmd" 682 done 683 684 if test "$prev" != 'sed 50q "$0"'; then 685 echo_test_string=`eval $prev` 686 export echo_test_string 687 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 688 else 689 # Oops. We lost completely, so just stick with echo. 690 echo=echo 691 fi 692 fi 693 fi 694 fi 695fi 696fi 697 698# Copy echo and quote the copy suitably for passing to libtool from 699# the Makefile, instead of quoting the original, which is used later. 700ECHO=$echo 701if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 702 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 703fi 704 705 706 707 708tagnames=${tagnames+${tagnames},}CXX 709 710tagnames=${tagnames+${tagnames},}F77 711 712exec 7<&0 </dev/null 6>&1 713 714# Name of the host. 715# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 716# so uname gets run too. 717ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 718 719# 720# Initializations. 721# 722ac_default_prefix=/usr/local 723ac_clean_files= 724ac_config_libobj_dir=. 725LIBOBJS= 726cross_compiling=no 727subdirs= 728MFLAGS= 729MAKEFLAGS= 730SHELL=${CONFIG_SHELL-/bin/sh} 731 732# Identity of this package. 733PACKAGE_NAME='ldapcpplib' 734PACKAGE_TARNAME='ldapcpplib' 735PACKAGE_VERSION=' ' 736PACKAGE_STRING='ldapcpplib ' 737PACKAGE_BUGREPORT='http://www.openldap.org/its/ ' 738 739ac_unique_file="src/LDAPConnection.h" 740# Factoring default headers for most tests. 741ac_includes_default="\ 742#include <stdio.h> 743#ifdef HAVE_SYS_TYPES_H 744# include <sys/types.h> 745#endif 746#ifdef HAVE_SYS_STAT_H 747# include <sys/stat.h> 748#endif 749#ifdef STDC_HEADERS 750# include <stdlib.h> 751# include <stddef.h> 752#else 753# ifdef HAVE_STDLIB_H 754# include <stdlib.h> 755# endif 756#endif 757#ifdef HAVE_STRING_H 758# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 759# include <memory.h> 760# endif 761# include <string.h> 762#endif 763#ifdef HAVE_STRINGS_H 764# include <strings.h> 765#endif 766#ifdef HAVE_INTTYPES_H 767# include <inttypes.h> 768#endif 769#ifdef HAVE_STDINT_H 770# include <stdint.h> 771#endif 772#ifdef HAVE_UNISTD_H 773# include <unistd.h> 774#endif" 775 776ac_subst_vars='SHELL 777PATH_SEPARATOR 778PACKAGE_NAME 779PACKAGE_TARNAME 780PACKAGE_VERSION 781PACKAGE_STRING 782PACKAGE_BUGREPORT 783exec_prefix 784prefix 785program_transform_name 786bindir 787sbindir 788libexecdir 789datarootdir 790datadir 791sysconfdir 792sharedstatedir 793localstatedir 794includedir 795oldincludedir 796docdir 797infodir 798htmldir 799dvidir 800pdfdir 801psdir 802libdir 803localedir 804mandir 805DEFS 806ECHO_C 807ECHO_N 808ECHO_T 809LIBS 810build_alias 811host_alias 812target_alias 813INSTALL_PROGRAM 814INSTALL_SCRIPT 815INSTALL_DATA 816am__isrc 817CYGPATH_W 818PACKAGE 819VERSION 820ACLOCAL 821AUTOCONF 822AUTOMAKE 823AUTOHEADER 824MAKEINFO 825install_sh 826STRIP 827INSTALL_STRIP_PROGRAM 828mkdir_p 829AWK 830SET_MAKE 831am__leading_dot 832AMTAR 833am__tar 834am__untar 835OPENLDAP_CPP_API_VERSION 836CXX 837CXXFLAGS 838LDFLAGS 839CPPFLAGS 840ac_ct_CXX 841EXEEXT 842OBJEXT 843DEPDIR 844am__include 845am__quote 846AMDEP_TRUE 847AMDEP_FALSE 848AMDEPBACKSLASH 849CXXDEPMODE 850am__fastdepCXX_TRUE 851am__fastdepCXX_FALSE 852build 853build_cpu 854build_vendor 855build_os 856host 857host_cpu 858host_vendor 859host_os 860CC 861CFLAGS 862ac_ct_CC 863CCDEPMODE 864am__fastdepCC_TRUE 865am__fastdepCC_FALSE 866SED 867GREP 868EGREP 869LN_S 870ECHO 871AR 872RANLIB 873DSYMUTIL 874NMEDIT 875CPP 876CXXCPP 877F77 878FFLAGS 879ac_ct_F77 880LIBTOOL 881LIBOBJS 882LTLIBOBJS' 883ac_subst_files='' 884 ac_precious_vars='build_alias 885host_alias 886target_alias 887CXX 888CXXFLAGS 889LDFLAGS 890LIBS 891CPPFLAGS 892CCC 893CC 894CFLAGS 895CPP 896CXXCPP 897F77 898FFLAGS' 899 900 901# Initialize some variables set by options. 902ac_init_help= 903ac_init_version=false 904# The variables have the same names as the options, with 905# dashes changed to underlines. 906cache_file=/dev/null 907exec_prefix=NONE 908no_create= 909no_recursion= 910prefix=NONE 911program_prefix=NONE 912program_suffix=NONE 913program_transform_name=s,x,x, 914silent= 915site= 916srcdir= 917verbose= 918x_includes=NONE 919x_libraries=NONE 920 921# Installation directory options. 922# These are left unexpanded so users can "make install exec_prefix=/foo" 923# and all the variables that are supposed to be based on exec_prefix 924# by default will actually change. 925# Use braces instead of parens because sh, perl, etc. also accept them. 926# (The list follows the same order as the GNU Coding Standards.) 927bindir='${exec_prefix}/bin' 928sbindir='${exec_prefix}/sbin' 929libexecdir='${exec_prefix}/libexec' 930datarootdir='${prefix}/share' 931datadir='${datarootdir}' 932sysconfdir='${prefix}/etc' 933sharedstatedir='${prefix}/com' 934localstatedir='${prefix}/var' 935includedir='${prefix}/include' 936oldincludedir='/usr/include' 937docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 938infodir='${datarootdir}/info' 939htmldir='${docdir}' 940dvidir='${docdir}' 941pdfdir='${docdir}' 942psdir='${docdir}' 943libdir='${exec_prefix}/lib' 944localedir='${datarootdir}/locale' 945mandir='${datarootdir}/man' 946 947ac_prev= 948ac_dashdash= 949for ac_option 950do 951 # If the previous option needs an argument, assign it. 952 if test -n "$ac_prev"; then 953 eval $ac_prev=\$ac_option 954 ac_prev= 955 continue 956 fi 957 958 case $ac_option in 959 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 960 *) ac_optarg=yes ;; 961 esac 962 963 # Accept the important Cygnus configure options, so we can diagnose typos. 964 965 case $ac_dashdash$ac_option in 966 --) 967 ac_dashdash=yes ;; 968 969 -bindir | --bindir | --bindi | --bind | --bin | --bi) 970 ac_prev=bindir ;; 971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 972 bindir=$ac_optarg ;; 973 974 -build | --build | --buil | --bui | --bu) 975 ac_prev=build_alias ;; 976 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 977 build_alias=$ac_optarg ;; 978 979 -cache-file | --cache-file | --cache-fil | --cache-fi \ 980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 981 ac_prev=cache_file ;; 982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 984 cache_file=$ac_optarg ;; 985 986 --config-cache | -C) 987 cache_file=config.cache ;; 988 989 -datadir | --datadir | --datadi | --datad) 990 ac_prev=datadir ;; 991 -datadir=* | --datadir=* | --datadi=* | --datad=*) 992 datadir=$ac_optarg ;; 993 994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 995 | --dataroo | --dataro | --datar) 996 ac_prev=datarootdir ;; 997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 999 datarootdir=$ac_optarg ;; 1000 1001 -disable-* | --disable-*) 1002 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1003 # Reject names that are not valid shell variable names. 1004 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1005 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1006 { (exit 1); exit 1; }; } 1007 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1008 eval enable_$ac_feature=no ;; 1009 1010 -docdir | --docdir | --docdi | --doc | --do) 1011 ac_prev=docdir ;; 1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1013 docdir=$ac_optarg ;; 1014 1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1016 ac_prev=dvidir ;; 1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1018 dvidir=$ac_optarg ;; 1019 1020 -enable-* | --enable-*) 1021 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1022 # Reject names that are not valid shell variable names. 1023 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1024 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1025 { (exit 1); exit 1; }; } 1026 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1027 eval enable_$ac_feature=\$ac_optarg ;; 1028 1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1031 | --exec | --exe | --ex) 1032 ac_prev=exec_prefix ;; 1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1035 | --exec=* | --exe=* | --ex=*) 1036 exec_prefix=$ac_optarg ;; 1037 1038 -gas | --gas | --ga | --g) 1039 # Obsolete; use --with-gas. 1040 with_gas=yes ;; 1041 1042 -help | --help | --hel | --he | -h) 1043 ac_init_help=long ;; 1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1045 ac_init_help=recursive ;; 1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1047 ac_init_help=short ;; 1048 1049 -host | --host | --hos | --ho) 1050 ac_prev=host_alias ;; 1051 -host=* | --host=* | --hos=* | --ho=*) 1052 host_alias=$ac_optarg ;; 1053 1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1055 ac_prev=htmldir ;; 1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1057 | --ht=*) 1058 htmldir=$ac_optarg ;; 1059 1060 -includedir | --includedir | --includedi | --included | --include \ 1061 | --includ | --inclu | --incl | --inc) 1062 ac_prev=includedir ;; 1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1064 | --includ=* | --inclu=* | --incl=* | --inc=*) 1065 includedir=$ac_optarg ;; 1066 1067 -infodir | --infodir | --infodi | --infod | --info | --inf) 1068 ac_prev=infodir ;; 1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1070 infodir=$ac_optarg ;; 1071 1072 -libdir | --libdir | --libdi | --libd) 1073 ac_prev=libdir ;; 1074 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1075 libdir=$ac_optarg ;; 1076 1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1078 | --libexe | --libex | --libe) 1079 ac_prev=libexecdir ;; 1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1081 | --libexe=* | --libex=* | --libe=*) 1082 libexecdir=$ac_optarg ;; 1083 1084 -localedir | --localedir | --localedi | --localed | --locale) 1085 ac_prev=localedir ;; 1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1087 localedir=$ac_optarg ;; 1088 1089 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1090 | --localstate | --localstat | --localsta | --localst | --locals) 1091 ac_prev=localstatedir ;; 1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1094 localstatedir=$ac_optarg ;; 1095 1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1097 ac_prev=mandir ;; 1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1099 mandir=$ac_optarg ;; 1100 1101 -nfp | --nfp | --nf) 1102 # Obsolete; use --without-fp. 1103 with_fp=no ;; 1104 1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1106 | --no-cr | --no-c | -n) 1107 no_create=yes ;; 1108 1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1111 no_recursion=yes ;; 1112 1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1115 | --oldin | --oldi | --old | --ol | --o) 1116 ac_prev=oldincludedir ;; 1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1120 oldincludedir=$ac_optarg ;; 1121 1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1123 ac_prev=prefix ;; 1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1125 prefix=$ac_optarg ;; 1126 1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1128 | --program-pre | --program-pr | --program-p) 1129 ac_prev=program_prefix ;; 1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1132 program_prefix=$ac_optarg ;; 1133 1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1135 | --program-suf | --program-su | --program-s) 1136 ac_prev=program_suffix ;; 1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1139 program_suffix=$ac_optarg ;; 1140 1141 -program-transform-name | --program-transform-name \ 1142 | --program-transform-nam | --program-transform-na \ 1143 | --program-transform-n | --program-transform- \ 1144 | --program-transform | --program-transfor \ 1145 | --program-transfo | --program-transf \ 1146 | --program-trans | --program-tran \ 1147 | --progr-tra | --program-tr | --program-t) 1148 ac_prev=program_transform_name ;; 1149 -program-transform-name=* | --program-transform-name=* \ 1150 | --program-transform-nam=* | --program-transform-na=* \ 1151 | --program-transform-n=* | --program-transform-=* \ 1152 | --program-transform=* | --program-transfor=* \ 1153 | --program-transfo=* | --program-transf=* \ 1154 | --program-trans=* | --program-tran=* \ 1155 | --progr-tra=* | --program-tr=* | --program-t=*) 1156 program_transform_name=$ac_optarg ;; 1157 1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1159 ac_prev=pdfdir ;; 1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1161 pdfdir=$ac_optarg ;; 1162 1163 -psdir | --psdir | --psdi | --psd | --ps) 1164 ac_prev=psdir ;; 1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1166 psdir=$ac_optarg ;; 1167 1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1169 | -silent | --silent | --silen | --sile | --sil) 1170 silent=yes ;; 1171 1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1173 ac_prev=sbindir ;; 1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1175 | --sbi=* | --sb=*) 1176 sbindir=$ac_optarg ;; 1177 1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1180 | --sharedst | --shareds | --shared | --share | --shar \ 1181 | --sha | --sh) 1182 ac_prev=sharedstatedir ;; 1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1186 | --sha=* | --sh=*) 1187 sharedstatedir=$ac_optarg ;; 1188 1189 -site | --site | --sit) 1190 ac_prev=site ;; 1191 -site=* | --site=* | --sit=*) 1192 site=$ac_optarg ;; 1193 1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1195 ac_prev=srcdir ;; 1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1197 srcdir=$ac_optarg ;; 1198 1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1200 | --syscon | --sysco | --sysc | --sys | --sy) 1201 ac_prev=sysconfdir ;; 1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1204 sysconfdir=$ac_optarg ;; 1205 1206 -target | --target | --targe | --targ | --tar | --ta | --t) 1207 ac_prev=target_alias ;; 1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1209 target_alias=$ac_optarg ;; 1210 1211 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1212 verbose=yes ;; 1213 1214 -version | --version | --versio | --versi | --vers | -V) 1215 ac_init_version=: ;; 1216 1217 -with-* | --with-*) 1218 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1219 # Reject names that are not valid shell variable names. 1220 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1221 { echo "$as_me: error: invalid package name: $ac_package" >&2 1222 { (exit 1); exit 1; }; } 1223 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1224 eval with_$ac_package=\$ac_optarg ;; 1225 1226 -without-* | --without-*) 1227 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1228 # Reject names that are not valid shell variable names. 1229 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1230 { echo "$as_me: error: invalid package name: $ac_package" >&2 1231 { (exit 1); exit 1; }; } 1232 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1233 eval with_$ac_package=no ;; 1234 1235 --x) 1236 # Obsolete; use --with-x. 1237 with_x=yes ;; 1238 1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1240 | --x-incl | --x-inc | --x-in | --x-i) 1241 ac_prev=x_includes ;; 1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1244 x_includes=$ac_optarg ;; 1245 1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1248 ac_prev=x_libraries ;; 1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1251 x_libraries=$ac_optarg ;; 1252 1253 -*) { echo "$as_me: error: unrecognized option: $ac_option 1254Try \`$0 --help' for more information." >&2 1255 { (exit 1); exit 1; }; } 1256 ;; 1257 1258 *=*) 1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1260 # Reject names that are not valid shell variable names. 1261 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1262 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1263 { (exit 1); exit 1; }; } 1264 eval $ac_envvar=\$ac_optarg 1265 export $ac_envvar ;; 1266 1267 *) 1268 # FIXME: should be removed in autoconf 3.0. 1269 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1271 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1273 ;; 1274 1275 esac 1276done 1277 1278if test -n "$ac_prev"; then 1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1280 { echo "$as_me: error: missing argument to $ac_option" >&2 1281 { (exit 1); exit 1; }; } 1282fi 1283 1284# Be sure to have absolute directory names. 1285for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1286 datadir sysconfdir sharedstatedir localstatedir includedir \ 1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1288 libdir localedir mandir 1289do 1290 eval ac_val=\$$ac_var 1291 case $ac_val in 1292 [\\/$]* | ?:[\\/]* ) continue;; 1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1294 esac 1295 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1296 { (exit 1); exit 1; }; } 1297done 1298 1299# There might be people who depend on the old broken behavior: `$host' 1300# used to hold the argument of --host etc. 1301# FIXME: To remove some day. 1302build=$build_alias 1303host=$host_alias 1304target=$target_alias 1305 1306# FIXME: To remove some day. 1307if test "x$host_alias" != x; then 1308 if test "x$build_alias" = x; then 1309 cross_compiling=maybe 1310 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1311 If a cross compiler is detected then cross compile mode will be used." >&2 1312 elif test "x$build_alias" != "x$host_alias"; then 1313 cross_compiling=yes 1314 fi 1315fi 1316 1317ac_tool_prefix= 1318test -n "$host_alias" && ac_tool_prefix=$host_alias- 1319 1320test "$silent" = yes && exec 6>/dev/null 1321 1322 1323ac_pwd=`pwd` && test -n "$ac_pwd" && 1324ac_ls_di=`ls -di .` && 1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1326 { echo "$as_me: error: Working directory cannot be determined" >&2 1327 { (exit 1); exit 1; }; } 1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1329 { echo "$as_me: error: pwd does not report name of working directory" >&2 1330 { (exit 1); exit 1; }; } 1331 1332 1333# Find the source files, if location was not specified. 1334if test -z "$srcdir"; then 1335 ac_srcdir_defaulted=yes 1336 # Try the directory containing this script, then the parent directory. 1337 ac_confdir=`$as_dirname -- "$0" || 1338$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1339 X"$0" : 'X\(//\)[^/]' \| \ 1340 X"$0" : 'X\(//\)$' \| \ 1341 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1342echo X"$0" | 1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)[^/].*/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\/\)$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\).*/{ 1356 s//\1/ 1357 q 1358 } 1359 s/.*/./; q'` 1360 srcdir=$ac_confdir 1361 if test ! -r "$srcdir/$ac_unique_file"; then 1362 srcdir=.. 1363 fi 1364else 1365 ac_srcdir_defaulted=no 1366fi 1367if test ! -r "$srcdir/$ac_unique_file"; then 1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1369 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1370 { (exit 1); exit 1; }; } 1371fi 1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1373ac_abs_confdir=`( 1374 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1375 { (exit 1); exit 1; }; } 1376 pwd)` 1377# When building in place, set srcdir=. 1378if test "$ac_abs_confdir" = "$ac_pwd"; then 1379 srcdir=. 1380fi 1381# Remove unnecessary trailing slashes from srcdir. 1382# Double slashes in file names in object file debugging info 1383# mess up M-x gdb in Emacs. 1384case $srcdir in 1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1386esac 1387for ac_var in $ac_precious_vars; do 1388 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1389 eval ac_env_${ac_var}_value=\$${ac_var} 1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1391 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1392done 1393 1394# 1395# Report the --help message. 1396# 1397if test "$ac_init_help" = "long"; then 1398 # Omit some internal or obsolete options to make the list less imposing. 1399 # This message is too long to be a string in the A/UX 3.1 sh. 1400 cat <<_ACEOF 1401\`configure' configures ldapcpplib to adapt to many kinds of systems. 1402 1403Usage: $0 [OPTION]... [VAR=VALUE]... 1404 1405To assign environment variables (e.g., CC, CFLAGS...), specify them as 1406VAR=VALUE. See below for descriptions of some of the useful variables. 1407 1408Defaults for the options are specified in brackets. 1409 1410Configuration: 1411 -h, --help display this help and exit 1412 --help=short display options specific to this package 1413 --help=recursive display the short help of all the included packages 1414 -V, --version display version information and exit 1415 -q, --quiet, --silent do not print \`checking...' messages 1416 --cache-file=FILE cache test results in FILE [disabled] 1417 -C, --config-cache alias for \`--cache-file=config.cache' 1418 -n, --no-create do not create output files 1419 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1420 1421Installation directories: 1422 --prefix=PREFIX install architecture-independent files in PREFIX 1423 [$ac_default_prefix] 1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1425 [PREFIX] 1426 1427By default, \`make install' will install all the files in 1428\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1429an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1430for instance \`--prefix=\$HOME'. 1431 1432For better control, use the options below. 1433 1434Fine tuning of the installation directories: 1435 --bindir=DIR user executables [EPREFIX/bin] 1436 --sbindir=DIR system admin executables [EPREFIX/sbin] 1437 --libexecdir=DIR program executables [EPREFIX/libexec] 1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1441 --libdir=DIR object code libraries [EPREFIX/lib] 1442 --includedir=DIR C header files [PREFIX/include] 1443 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1446 --infodir=DIR info documentation [DATAROOTDIR/info] 1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1448 --mandir=DIR man documentation [DATAROOTDIR/man] 1449 --docdir=DIR documentation root [DATAROOTDIR/doc/ldapcpplib] 1450 --htmldir=DIR html documentation [DOCDIR] 1451 --dvidir=DIR dvi documentation [DOCDIR] 1452 --pdfdir=DIR pdf documentation [DOCDIR] 1453 --psdir=DIR ps documentation [DOCDIR] 1454_ACEOF 1455 1456 cat <<\_ACEOF 1457 1458Program names: 1459 --program-prefix=PREFIX prepend PREFIX to installed program names 1460 --program-suffix=SUFFIX append SUFFIX to installed program names 1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1462 1463System types: 1464 --build=BUILD configure for building on BUILD [guessed] 1465 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1466_ACEOF 1467fi 1468 1469if test -n "$ac_init_help"; then 1470 case $ac_init_help in 1471 short | recursive ) echo "Configuration of ldapcpplib :";; 1472 esac 1473 cat <<\_ACEOF 1474 1475Optional Features: 1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1478 --disable-dependency-tracking speeds up one-time build 1479 --enable-dependency-tracking do not reject slow dependency extractors 1480 --enable-shared[=PKGS] build shared libraries [default=yes] 1481 --enable-static[=PKGS] build static libraries [default=yes] 1482 --enable-fast-install[=PKGS] 1483 optimize for fast installation [default=yes] 1484 --disable-libtool-lock avoid locking (might break parallel builds) 1485 --enable-debug 1486 1487Optional Packages: 1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1491 --with-pic try to use only PIC/non-PIC objects [default=use 1492 both] 1493 --with-tags[=TAGS] include additional configurations [automatic] 1494 --with-libldap=DIR Path to the libldap library /usr/local/lib 1495 --with-ldap-includes=DIR Path to the libldap include files /usr/local/include 1496 1497Some influential environment variables: 1498 CXX C++ compiler command 1499 CXXFLAGS C++ compiler flags 1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1501 nonstandard directory <lib dir> 1502 LIBS libraries to pass to the linker, e.g. -l<library> 1503 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1504 you have headers in a nonstandard directory <include dir> 1505 CC C compiler command 1506 CFLAGS C compiler flags 1507 CPP C preprocessor 1508 CXXCPP C++ preprocessor 1509 F77 Fortran 77 compiler command 1510 FFLAGS Fortran 77 compiler flags 1511 1512Use these variables to override the choices made by `configure' or to help 1513it to find libraries and programs with nonstandard names/locations. 1514 1515Report bugs to <http://www.openldap.org/its/ >. 1516_ACEOF 1517ac_status=$? 1518fi 1519 1520if test "$ac_init_help" = "recursive"; then 1521 # If there are subdirs, report their specific --help. 1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1523 test -d "$ac_dir" || continue 1524 ac_builddir=. 1525 1526case "$ac_dir" in 1527.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1528*) 1529 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1530 # A ".." for each directory in $ac_dir_suffix. 1531 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1532 case $ac_top_builddir_sub in 1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1535 esac ;; 1536esac 1537ac_abs_top_builddir=$ac_pwd 1538ac_abs_builddir=$ac_pwd$ac_dir_suffix 1539# for backward compatibility: 1540ac_top_builddir=$ac_top_build_prefix 1541 1542case $srcdir in 1543 .) # We are building in place. 1544 ac_srcdir=. 1545 ac_top_srcdir=$ac_top_builddir_sub 1546 ac_abs_top_srcdir=$ac_pwd ;; 1547 [\\/]* | ?:[\\/]* ) # Absolute name. 1548 ac_srcdir=$srcdir$ac_dir_suffix; 1549 ac_top_srcdir=$srcdir 1550 ac_abs_top_srcdir=$srcdir ;; 1551 *) # Relative name. 1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1553 ac_top_srcdir=$ac_top_build_prefix$srcdir 1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1555esac 1556ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1557 1558 cd "$ac_dir" || { ac_status=$?; continue; } 1559 # Check for guested configure. 1560 if test -f "$ac_srcdir/configure.gnu"; then 1561 echo && 1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1563 elif test -f "$ac_srcdir/configure"; then 1564 echo && 1565 $SHELL "$ac_srcdir/configure" --help=recursive 1566 else 1567 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1568 fi || ac_status=$? 1569 cd "$ac_pwd" || { ac_status=$?; break; } 1570 done 1571fi 1572 1573test -n "$ac_init_help" && exit $ac_status 1574if $ac_init_version; then 1575 cat <<\_ACEOF 1576ldapcpplib configure 1577generated by GNU Autoconf 2.61 1578 1579Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15802002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1581This configure script is free software; the Free Software Foundation 1582gives unlimited permission to copy, distribute and modify it. 1583 1584Copyright 2000-2010 The OpenLDAP Foundation. All rights reserved. 1585Restrictions apply, see COPYRIGHT and LICENSE files. 1586_ACEOF 1587 exit 1588fi 1589cat >config.log <<_ACEOF 1590This file contains any messages produced by compilers while 1591running configure, to aid debugging if configure makes a mistake. 1592 1593It was created by ldapcpplib $as_me , which was 1594generated by GNU Autoconf 2.61. Invocation command line was 1595 1596 $ $0 $@ 1597 1598_ACEOF 1599exec 5>>config.log 1600{ 1601cat <<_ASUNAME 1602## --------- ## 1603## Platform. ## 1604## --------- ## 1605 1606hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1607uname -m = `(uname -m) 2>/dev/null || echo unknown` 1608uname -r = `(uname -r) 2>/dev/null || echo unknown` 1609uname -s = `(uname -s) 2>/dev/null || echo unknown` 1610uname -v = `(uname -v) 2>/dev/null || echo unknown` 1611 1612/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1613/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1614 1615/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1616/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1617/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1618/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1619/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1620/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1621/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1622 1623_ASUNAME 1624 1625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1626for as_dir in $PATH 1627do 1628 IFS=$as_save_IFS 1629 test -z "$as_dir" && as_dir=. 1630 echo "PATH: $as_dir" 1631done 1632IFS=$as_save_IFS 1633 1634} >&5 1635 1636cat >&5 <<_ACEOF 1637 1638 1639## ----------- ## 1640## Core tests. ## 1641## ----------- ## 1642 1643_ACEOF 1644 1645 1646# Keep a trace of the command line. 1647# Strip out --no-create and --no-recursion so they do not pile up. 1648# Strip out --silent because we don't want to record it for future runs. 1649# Also quote any args containing shell meta-characters. 1650# Make two passes to allow for proper duplicate-argument suppression. 1651ac_configure_args= 1652ac_configure_args0= 1653ac_configure_args1= 1654ac_must_keep_next=false 1655for ac_pass in 1 2 1656do 1657 for ac_arg 1658 do 1659 case $ac_arg in 1660 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1662 | -silent | --silent | --silen | --sile | --sil) 1663 continue ;; 1664 *\'*) 1665 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1666 esac 1667 case $ac_pass in 1668 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1669 2) 1670 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1671 if test $ac_must_keep_next = true; then 1672 ac_must_keep_next=false # Got value, back to normal. 1673 else 1674 case $ac_arg in 1675 *=* | --config-cache | -C | -disable-* | --disable-* \ 1676 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1677 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1678 | -with-* | --with-* | -without-* | --without-* | --x) 1679 case "$ac_configure_args0 " in 1680 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1681 esac 1682 ;; 1683 -* ) ac_must_keep_next=true ;; 1684 esac 1685 fi 1686 ac_configure_args="$ac_configure_args '$ac_arg'" 1687 ;; 1688 esac 1689 done 1690done 1691$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1692$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1693 1694# When interrupted or exit'd, cleanup temporary files, and complete 1695# config.log. We remove comments because anyway the quotes in there 1696# would cause problems or look ugly. 1697# WARNING: Use '\'' to represent an apostrophe within the trap. 1698# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1699trap 'exit_status=$? 1700 # Save into config.log some information that might help in debugging. 1701 { 1702 echo 1703 1704 cat <<\_ASBOX 1705## ---------------- ## 1706## Cache variables. ## 1707## ---------------- ## 1708_ASBOX 1709 echo 1710 # The following way of writing the cache mishandles newlines in values, 1711( 1712 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1713 eval ac_val=\$$ac_var 1714 case $ac_val in #( 1715 *${as_nl}*) 1716 case $ac_var in #( 1717 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1718echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1719 esac 1720 case $ac_var in #( 1721 _ | IFS | as_nl) ;; #( 1722 *) $as_unset $ac_var ;; 1723 esac ;; 1724 esac 1725 done 1726 (set) 2>&1 | 1727 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1728 *${as_nl}ac_space=\ *) 1729 sed -n \ 1730 "s/'\''/'\''\\\\'\'''\''/g; 1731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1732 ;; #( 1733 *) 1734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1735 ;; 1736 esac | 1737 sort 1738) 1739 echo 1740 1741 cat <<\_ASBOX 1742## ----------------- ## 1743## Output variables. ## 1744## ----------------- ## 1745_ASBOX 1746 echo 1747 for ac_var in $ac_subst_vars 1748 do 1749 eval ac_val=\$$ac_var 1750 case $ac_val in 1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1752 esac 1753 echo "$ac_var='\''$ac_val'\''" 1754 done | sort 1755 echo 1756 1757 if test -n "$ac_subst_files"; then 1758 cat <<\_ASBOX 1759## ------------------- ## 1760## File substitutions. ## 1761## ------------------- ## 1762_ASBOX 1763 echo 1764 for ac_var in $ac_subst_files 1765 do 1766 eval ac_val=\$$ac_var 1767 case $ac_val in 1768 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1769 esac 1770 echo "$ac_var='\''$ac_val'\''" 1771 done | sort 1772 echo 1773 fi 1774 1775 if test -s confdefs.h; then 1776 cat <<\_ASBOX 1777## ----------- ## 1778## confdefs.h. ## 1779## ----------- ## 1780_ASBOX 1781 echo 1782 cat confdefs.h 1783 echo 1784 fi 1785 test "$ac_signal" != 0 && 1786 echo "$as_me: caught signal $ac_signal" 1787 echo "$as_me: exit $exit_status" 1788 } >&5 1789 rm -f core *.core core.conftest.* && 1790 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1791 exit $exit_status 1792' 0 1793for ac_signal in 1 2 13 15; do 1794 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1795done 1796ac_signal=0 1797 1798# confdefs.h avoids OS command line length limits that DEFS can exceed. 1799rm -f -r conftest* confdefs.h 1800 1801# Predefined preprocessor variables. 1802 1803cat >>confdefs.h <<_ACEOF 1804#define PACKAGE_NAME "$PACKAGE_NAME" 1805_ACEOF 1806 1807 1808cat >>confdefs.h <<_ACEOF 1809#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1810_ACEOF 1811 1812 1813cat >>confdefs.h <<_ACEOF 1814#define PACKAGE_VERSION "$PACKAGE_VERSION" 1815_ACEOF 1816 1817 1818cat >>confdefs.h <<_ACEOF 1819#define PACKAGE_STRING "$PACKAGE_STRING" 1820_ACEOF 1821 1822 1823cat >>confdefs.h <<_ACEOF 1824#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1825_ACEOF 1826 1827 1828# Let the site file select an alternate cache file if it wants to. 1829# Prefer explicitly selected file to automatically selected ones. 1830if test -n "$CONFIG_SITE"; then 1831 set x "$CONFIG_SITE" 1832elif test "x$prefix" != xNONE; then 1833 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1834else 1835 set x "$ac_default_prefix/share/config.site" \ 1836 "$ac_default_prefix/etc/config.site" 1837fi 1838shift 1839for ac_site_file 1840do 1841 if test -r "$ac_site_file"; then 1842 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1843echo "$as_me: loading site script $ac_site_file" >&6;} 1844 sed 's/^/| /' "$ac_site_file" >&5 1845 . "$ac_site_file" 1846 fi 1847done 1848 1849if test -r "$cache_file"; then 1850 # Some versions of bash will fail to source /dev/null (special 1851 # files actually), so we avoid doing that. 1852 if test -f "$cache_file"; then 1853 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1854echo "$as_me: loading cache $cache_file" >&6;} 1855 case $cache_file in 1856 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1857 *) . "./$cache_file";; 1858 esac 1859 fi 1860else 1861 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1862echo "$as_me: creating cache $cache_file" >&6;} 1863 >$cache_file 1864fi 1865 1866# Check that the precious variables saved in the cache have kept the same 1867# value. 1868ac_cache_corrupted=false 1869for ac_var in $ac_precious_vars; do 1870 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1871 eval ac_new_set=\$ac_env_${ac_var}_set 1872 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1873 eval ac_new_val=\$ac_env_${ac_var}_value 1874 case $ac_old_set,$ac_new_set in 1875 set,) 1876 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1877echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1878 ac_cache_corrupted=: ;; 1879 ,set) 1880 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1881echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1882 ac_cache_corrupted=: ;; 1883 ,);; 1884 *) 1885 if test "x$ac_old_val" != "x$ac_new_val"; then 1886 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1887echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1888 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1889echo "$as_me: former value: $ac_old_val" >&2;} 1890 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1891echo "$as_me: current value: $ac_new_val" >&2;} 1892 ac_cache_corrupted=: 1893 fi;; 1894 esac 1895 # Pass precious variables to config.status. 1896 if test "$ac_new_set" = set; then 1897 case $ac_new_val in 1898 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1899 *) ac_arg=$ac_var=$ac_new_val ;; 1900 esac 1901 case " $ac_configure_args " in 1902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1903 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1904 esac 1905 fi 1906done 1907if $ac_cache_corrupted; then 1908 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1909echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1910 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1911echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1912 { (exit 1); exit 1; }; } 1913fi 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939ac_ext=c 1940ac_cpp='$CPP $CPPFLAGS' 1941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1943ac_compiler_gnu=$ac_cv_c_compiler_gnu 1944 1945 1946 1947am__api_version='1.10' 1948 1949ac_aux_dir= 1950for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1951 if test -f "$ac_dir/install-sh"; then 1952 ac_aux_dir=$ac_dir 1953 ac_install_sh="$ac_aux_dir/install-sh -c" 1954 break 1955 elif test -f "$ac_dir/install.sh"; then 1956 ac_aux_dir=$ac_dir 1957 ac_install_sh="$ac_aux_dir/install.sh -c" 1958 break 1959 elif test -f "$ac_dir/shtool"; then 1960 ac_aux_dir=$ac_dir 1961 ac_install_sh="$ac_aux_dir/shtool install -c" 1962 break 1963 fi 1964done 1965if test -z "$ac_aux_dir"; then 1966 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1967echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1968 { (exit 1); exit 1; }; } 1969fi 1970 1971# These three variables are undocumented and unsupported, 1972# and are intended to be withdrawn in a future Autoconf release. 1973# They can cause serious problems if a builder's source tree is in a directory 1974# whose full name contains unusual characters. 1975ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1976ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1977ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1978 1979 1980# Find a good install program. We prefer a C program (faster), 1981# so one script is as good as another. But avoid the broken or 1982# incompatible versions: 1983# SysV /etc/install, /usr/sbin/install 1984# SunOS /usr/etc/install 1985# IRIX /sbin/install 1986# AIX /bin/install 1987# AmigaOS /C/install, which installs bootblocks on floppy discs 1988# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1989# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1990# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1991# OS/2's system install, which has a completely different semantic 1992# ./install, which can be erroneously created by make from ./install.sh. 1993{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1994echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1995if test -z "$INSTALL"; then 1996if test "${ac_cv_path_install+set}" = set; then 1997 echo $ECHO_N "(cached) $ECHO_C" >&6 1998else 1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2000for as_dir in $PATH 2001do 2002 IFS=$as_save_IFS 2003 test -z "$as_dir" && as_dir=. 2004 # Account for people who put trailing slashes in PATH elements. 2005case $as_dir/ in 2006 ./ | .// | /cC/* | \ 2007 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2008 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2009 /usr/ucb/* ) ;; 2010 *) 2011 # OSF1 and SCO ODT 3.0 have their own names for install. 2012 # Don't use installbsd from OSF since it installs stuff as root 2013 # by default. 2014 for ac_prog in ginstall scoinst install; do 2015 for ac_exec_ext in '' $ac_executable_extensions; do 2016 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2017 if test $ac_prog = install && 2018 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2019 # AIX install. It has an incompatible calling convention. 2020 : 2021 elif test $ac_prog = install && 2022 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2023 # program-specific install script used by HP pwplus--don't use. 2024 : 2025 else 2026 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2027 break 3 2028 fi 2029 fi 2030 done 2031 done 2032 ;; 2033esac 2034done 2035IFS=$as_save_IFS 2036 2037 2038fi 2039 if test "${ac_cv_path_install+set}" = set; then 2040 INSTALL=$ac_cv_path_install 2041 else 2042 # As a last resort, use the slow shell script. Don't cache a 2043 # value for INSTALL within a source directory, because that will 2044 # break other packages using the cache if that directory is 2045 # removed, or if the value is a relative name. 2046 INSTALL=$ac_install_sh 2047 fi 2048fi 2049{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2050echo "${ECHO_T}$INSTALL" >&6; } 2051 2052# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2053# It thinks the first close brace ends the variable substitution. 2054test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2055 2056test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2057 2058test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2059 2060{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2061echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2062# Just in case 2063sleep 1 2064echo timestamp > conftest.file 2065# Do `set' in a subshell so we don't clobber the current shell's 2066# arguments. Must try -L first in case configure is actually a 2067# symlink; some systems play weird games with the mod time of symlinks 2068# (eg FreeBSD returns the mod time of the symlink's containing 2069# directory). 2070if ( 2071 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2072 if test "$*" = "X"; then 2073 # -L didn't work. 2074 set X `ls -t $srcdir/configure conftest.file` 2075 fi 2076 rm -f conftest.file 2077 if test "$*" != "X $srcdir/configure conftest.file" \ 2078 && test "$*" != "X conftest.file $srcdir/configure"; then 2079 2080 # If neither matched, then we have a broken ls. This can happen 2081 # if, for instance, CONFIG_SHELL is bash and it inherits a 2082 # broken ls alias from the environment. This has actually 2083 # happened. Such a system could not be considered "sane". 2084 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2085alias in your environment" >&5 2086echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2087alias in your environment" >&2;} 2088 { (exit 1); exit 1; }; } 2089 fi 2090 2091 test "$2" = conftest.file 2092 ) 2093then 2094 # Ok. 2095 : 2096else 2097 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2098Check your system clock" >&5 2099echo "$as_me: error: newly created file is older than distributed files! 2100Check your system clock" >&2;} 2101 { (exit 1); exit 1; }; } 2102fi 2103{ echo "$as_me:$LINENO: result: yes" >&5 2104echo "${ECHO_T}yes" >&6; } 2105test "$program_prefix" != NONE && 2106 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2107# Use a double $ so make ignores it. 2108test "$program_suffix" != NONE && 2109 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2110# Double any \ or $. echo might interpret backslashes. 2111# By default was `s,x,x', remove it if useless. 2112cat <<\_ACEOF >conftest.sed 2113s/[\\$]/&&/g;s/;s,x,x,$// 2114_ACEOF 2115program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2116rm -f conftest.sed 2117 2118# expand $ac_aux_dir to an absolute path 2119am_aux_dir=`cd $ac_aux_dir && pwd` 2120 2121test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2122# Use eval to expand $SHELL 2123if eval "$MISSING --run true"; then 2124 am_missing_run="$MISSING --run " 2125else 2126 am_missing_run= 2127 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2128echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2129fi 2130 2131{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2132echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2133if test -z "$MKDIR_P"; then 2134 if test "${ac_cv_path_mkdir+set}" = set; then 2135 echo $ECHO_N "(cached) $ECHO_C" >&6 2136else 2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2138for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2139do 2140 IFS=$as_save_IFS 2141 test -z "$as_dir" && as_dir=. 2142 for ac_prog in mkdir gmkdir; do 2143 for ac_exec_ext in '' $ac_executable_extensions; do 2144 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2145 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2146 'mkdir (GNU coreutils) '* | \ 2147 'mkdir (coreutils) '* | \ 2148 'mkdir (fileutils) '4.1*) 2149 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2150 break 3;; 2151 esac 2152 done 2153 done 2154done 2155IFS=$as_save_IFS 2156 2157fi 2158 2159 if test "${ac_cv_path_mkdir+set}" = set; then 2160 MKDIR_P="$ac_cv_path_mkdir -p" 2161 else 2162 # As a last resort, use the slow shell script. Don't cache a 2163 # value for MKDIR_P within a source directory, because that will 2164 # break other packages using the cache if that directory is 2165 # removed, or if the value is a relative name. 2166 test -d ./--version && rmdir ./--version 2167 MKDIR_P="$ac_install_sh -d" 2168 fi 2169fi 2170{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2171echo "${ECHO_T}$MKDIR_P" >&6; } 2172 2173mkdir_p="$MKDIR_P" 2174case $mkdir_p in 2175 [\\/$]* | ?:[\\/]*) ;; 2176 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2177esac 2178 2179for ac_prog in gawk mawk nawk awk 2180do 2181 # Extract the first word of "$ac_prog", so it can be a program name with args. 2182set dummy $ac_prog; ac_word=$2 2183{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2185if test "${ac_cv_prog_AWK+set}" = set; then 2186 echo $ECHO_N "(cached) $ECHO_C" >&6 2187else 2188 if test -n "$AWK"; then 2189 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2190else 2191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2192for as_dir in $PATH 2193do 2194 IFS=$as_save_IFS 2195 test -z "$as_dir" && as_dir=. 2196 for ac_exec_ext in '' $ac_executable_extensions; do 2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2198 ac_cv_prog_AWK="$ac_prog" 2199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2200 break 2 2201 fi 2202done 2203done 2204IFS=$as_save_IFS 2205 2206fi 2207fi 2208AWK=$ac_cv_prog_AWK 2209if test -n "$AWK"; then 2210 { echo "$as_me:$LINENO: result: $AWK" >&5 2211echo "${ECHO_T}$AWK" >&6; } 2212else 2213 { echo "$as_me:$LINENO: result: no" >&5 2214echo "${ECHO_T}no" >&6; } 2215fi 2216 2217 2218 test -n "$AWK" && break 2219done 2220 2221{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2222echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2223set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2224if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2225 echo $ECHO_N "(cached) $ECHO_C" >&6 2226else 2227 cat >conftest.make <<\_ACEOF 2228SHELL = /bin/sh 2229all: 2230 @echo '@@@%%%=$(MAKE)=@@@%%%' 2231_ACEOF 2232# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2233case `${MAKE-make} -f conftest.make 2>/dev/null` in 2234 *@@@%%%=?*=@@@%%%*) 2235 eval ac_cv_prog_make_${ac_make}_set=yes;; 2236 *) 2237 eval ac_cv_prog_make_${ac_make}_set=no;; 2238esac 2239rm -f conftest.make 2240fi 2241if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2242 { echo "$as_me:$LINENO: result: yes" >&5 2243echo "${ECHO_T}yes" >&6; } 2244 SET_MAKE= 2245else 2246 { echo "$as_me:$LINENO: result: no" >&5 2247echo "${ECHO_T}no" >&6; } 2248 SET_MAKE="MAKE=${MAKE-make}" 2249fi 2250 2251rm -rf .tst 2>/dev/null 2252mkdir .tst 2>/dev/null 2253if test -d .tst; then 2254 am__leading_dot=. 2255else 2256 am__leading_dot=_ 2257fi 2258rmdir .tst 2>/dev/null 2259 2260if test "`cd $srcdir && pwd`" != "`pwd`"; then 2261 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2262 # is not polluted with repeated "-I." 2263 am__isrc=' -I$(srcdir)' 2264 # test to see if srcdir already configured 2265 if test -f $srcdir/config.status; then 2266 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2267echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2268 { (exit 1); exit 1; }; } 2269 fi 2270fi 2271 2272# test whether we have cygpath 2273if test -z "$CYGPATH_W"; then 2274 if (cygpath --version) >/dev/null 2>/dev/null; then 2275 CYGPATH_W='cygpath -w' 2276 else 2277 CYGPATH_W=echo 2278 fi 2279fi 2280 2281 2282# Define the identity of the package. 2283 PACKAGE='ldapcpplib' 2284 VERSION=' ' 2285 2286 2287cat >>confdefs.h <<_ACEOF 2288#define PACKAGE "$PACKAGE" 2289_ACEOF 2290 2291 2292cat >>confdefs.h <<_ACEOF 2293#define VERSION "$VERSION" 2294_ACEOF 2295 2296# Some tools Automake needs. 2297 2298ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2299 2300 2301AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2302 2303 2304AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2305 2306 2307AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2308 2309 2310MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2311 2312install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2313 2314# Installed binaries are usually stripped using `strip' when the user 2315# run `make install-strip'. However `strip' might not be the right 2316# tool to use in cross-compilation environments, therefore Automake 2317# will honor the `STRIP' environment variable to overrule this program. 2318if test "$cross_compiling" != no; then 2319 if test -n "$ac_tool_prefix"; then 2320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2321set dummy ${ac_tool_prefix}strip; ac_word=$2 2322{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2324if test "${ac_cv_prog_STRIP+set}" = set; then 2325 echo $ECHO_N "(cached) $ECHO_C" >&6 2326else 2327 if test -n "$STRIP"; then 2328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2329else 2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2331for as_dir in $PATH 2332do 2333 IFS=$as_save_IFS 2334 test -z "$as_dir" && as_dir=. 2335 for ac_exec_ext in '' $ac_executable_extensions; do 2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2337 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2339 break 2 2340 fi 2341done 2342done 2343IFS=$as_save_IFS 2344 2345fi 2346fi 2347STRIP=$ac_cv_prog_STRIP 2348if test -n "$STRIP"; then 2349 { echo "$as_me:$LINENO: result: $STRIP" >&5 2350echo "${ECHO_T}$STRIP" >&6; } 2351else 2352 { echo "$as_me:$LINENO: result: no" >&5 2353echo "${ECHO_T}no" >&6; } 2354fi 2355 2356 2357fi 2358if test -z "$ac_cv_prog_STRIP"; then 2359 ac_ct_STRIP=$STRIP 2360 # Extract the first word of "strip", so it can be a program name with args. 2361set dummy strip; ac_word=$2 2362{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2364if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2365 echo $ECHO_N "(cached) $ECHO_C" >&6 2366else 2367 if test -n "$ac_ct_STRIP"; then 2368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2369else 2370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2371for as_dir in $PATH 2372do 2373 IFS=$as_save_IFS 2374 test -z "$as_dir" && as_dir=. 2375 for ac_exec_ext in '' $ac_executable_extensions; do 2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2377 ac_cv_prog_ac_ct_STRIP="strip" 2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2379 break 2 2380 fi 2381done 2382done 2383IFS=$as_save_IFS 2384 2385fi 2386fi 2387ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2388if test -n "$ac_ct_STRIP"; then 2389 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2390echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2391else 2392 { echo "$as_me:$LINENO: result: no" >&5 2393echo "${ECHO_T}no" >&6; } 2394fi 2395 2396 if test "x$ac_ct_STRIP" = x; then 2397 STRIP=":" 2398 else 2399 case $cross_compiling:$ac_tool_warned in 2400yes:) 2401{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2402whose name does not start with the host triplet. If you think this 2403configuration is useful to you, please write to autoconf@gnu.org." >&5 2404echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2405whose name does not start with the host triplet. If you think this 2406configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2407ac_tool_warned=yes ;; 2408esac 2409 STRIP=$ac_ct_STRIP 2410 fi 2411else 2412 STRIP="$ac_cv_prog_STRIP" 2413fi 2414 2415fi 2416INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2417 2418# We need awk for the "check" target. The system "awk" is bad on 2419# some platforms. 2420# Always define AMTAR for backward compatibility. 2421 2422AMTAR=${AMTAR-"${am_missing_run}tar"} 2423 2424am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2425 2426 2427 2428 2429 2430ac_config_headers="$ac_config_headers src/config.h" 2431 2432 2433eval `$ac_aux_dir/version.sh` 2434if test -z "$OL_CPP_API_RELEASE"; then 2435 { { echo "$as_me:$LINENO: error: could not determine version" >&5 2436echo "$as_me: error: could not determine version" >&2;} 2437 { (exit 1); exit 1; }; } 2438fi 2439 2440VERSION=$OL_CPP_API_RELEASE 2441OPENLDAP_CPP_API_VERSION=$OL_CPP_API_VERSION 2442 2443 2444# Find a good install program. We prefer a C program (faster), 2445# so one script is as good as another. But avoid the broken or 2446# incompatible versions: 2447# SysV /etc/install, /usr/sbin/install 2448# SunOS /usr/etc/install 2449# IRIX /sbin/install 2450# AIX /bin/install 2451# AmigaOS /C/install, which installs bootblocks on floppy discs 2452# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2453# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2454# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2455# OS/2's system install, which has a completely different semantic 2456# ./install, which can be erroneously created by make from ./install.sh. 2457{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2458echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2459if test -z "$INSTALL"; then 2460if test "${ac_cv_path_install+set}" = set; then 2461 echo $ECHO_N "(cached) $ECHO_C" >&6 2462else 2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2464for as_dir in $PATH 2465do 2466 IFS=$as_save_IFS 2467 test -z "$as_dir" && as_dir=. 2468 # Account for people who put trailing slashes in PATH elements. 2469case $as_dir/ in 2470 ./ | .// | /cC/* | \ 2471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2472 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2473 /usr/ucb/* ) ;; 2474 *) 2475 # OSF1 and SCO ODT 3.0 have their own names for install. 2476 # Don't use installbsd from OSF since it installs stuff as root 2477 # by default. 2478 for ac_prog in ginstall scoinst install; do 2479 for ac_exec_ext in '' $ac_executable_extensions; do 2480 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2481 if test $ac_prog = install && 2482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2483 # AIX install. It has an incompatible calling convention. 2484 : 2485 elif test $ac_prog = install && 2486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2487 # program-specific install script used by HP pwplus--don't use. 2488 : 2489 else 2490 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2491 break 3 2492 fi 2493 fi 2494 done 2495 done 2496 ;; 2497esac 2498done 2499IFS=$as_save_IFS 2500 2501 2502fi 2503 if test "${ac_cv_path_install+set}" = set; then 2504 INSTALL=$ac_cv_path_install 2505 else 2506 # As a last resort, use the slow shell script. Don't cache a 2507 # value for INSTALL within a source directory, because that will 2508 # break other packages using the cache if that directory is 2509 # removed, or if the value is a relative name. 2510 INSTALL=$ac_install_sh 2511 fi 2512fi 2513{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2514echo "${ECHO_T}$INSTALL" >&6; } 2515 2516# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2517# It thinks the first close brace ends the variable substitution. 2518test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2519 2520test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2521 2522test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2523 2524ac_ext=cpp 2525ac_cpp='$CXXCPP $CPPFLAGS' 2526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2529if test -z "$CXX"; then 2530 if test -n "$CCC"; then 2531 CXX=$CCC 2532 else 2533 if test -n "$ac_tool_prefix"; then 2534 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2535 do 2536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2537set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2538{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2540if test "${ac_cv_prog_CXX+set}" = set; then 2541 echo $ECHO_N "(cached) $ECHO_C" >&6 2542else 2543 if test -n "$CXX"; then 2544 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2545else 2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2547for as_dir in $PATH 2548do 2549 IFS=$as_save_IFS 2550 test -z "$as_dir" && as_dir=. 2551 for ac_exec_ext in '' $ac_executable_extensions; do 2552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2553 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2555 break 2 2556 fi 2557done 2558done 2559IFS=$as_save_IFS 2560 2561fi 2562fi 2563CXX=$ac_cv_prog_CXX 2564if test -n "$CXX"; then 2565 { echo "$as_me:$LINENO: result: $CXX" >&5 2566echo "${ECHO_T}$CXX" >&6; } 2567else 2568 { echo "$as_me:$LINENO: result: no" >&5 2569echo "${ECHO_T}no" >&6; } 2570fi 2571 2572 2573 test -n "$CXX" && break 2574 done 2575fi 2576if test -z "$CXX"; then 2577 ac_ct_CXX=$CXX 2578 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2579do 2580 # Extract the first word of "$ac_prog", so it can be a program name with args. 2581set dummy $ac_prog; ac_word=$2 2582{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2584if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2585 echo $ECHO_N "(cached) $ECHO_C" >&6 2586else 2587 if test -n "$ac_ct_CXX"; then 2588 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2589else 2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2591for as_dir in $PATH 2592do 2593 IFS=$as_save_IFS 2594 test -z "$as_dir" && as_dir=. 2595 for ac_exec_ext in '' $ac_executable_extensions; do 2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2597 ac_cv_prog_ac_ct_CXX="$ac_prog" 2598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2599 break 2 2600 fi 2601done 2602done 2603IFS=$as_save_IFS 2604 2605fi 2606fi 2607ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2608if test -n "$ac_ct_CXX"; then 2609 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2610echo "${ECHO_T}$ac_ct_CXX" >&6; } 2611else 2612 { echo "$as_me:$LINENO: result: no" >&5 2613echo "${ECHO_T}no" >&6; } 2614fi 2615 2616 2617 test -n "$ac_ct_CXX" && break 2618done 2619 2620 if test "x$ac_ct_CXX" = x; then 2621 CXX="g++" 2622 else 2623 case $cross_compiling:$ac_tool_warned in 2624yes:) 2625{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2626whose name does not start with the host triplet. If you think this 2627configuration is useful to you, please write to autoconf@gnu.org." >&5 2628echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2629whose name does not start with the host triplet. If you think this 2630configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2631ac_tool_warned=yes ;; 2632esac 2633 CXX=$ac_ct_CXX 2634 fi 2635fi 2636 2637 fi 2638fi 2639# Provide some information about the compiler. 2640echo "$as_me:$LINENO: checking for C++ compiler version" >&5 2641ac_compiler=`set X $ac_compile; echo $2` 2642{ (ac_try="$ac_compiler --version >&5" 2643case "(($ac_try" in 2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2645 *) ac_try_echo=$ac_try;; 2646esac 2647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2648 (eval "$ac_compiler --version >&5") 2>&5 2649 ac_status=$? 2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2651 (exit $ac_status); } 2652{ (ac_try="$ac_compiler -v >&5" 2653case "(($ac_try" in 2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2655 *) ac_try_echo=$ac_try;; 2656esac 2657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2658 (eval "$ac_compiler -v >&5") 2>&5 2659 ac_status=$? 2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2661 (exit $ac_status); } 2662{ (ac_try="$ac_compiler -V >&5" 2663case "(($ac_try" in 2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2665 *) ac_try_echo=$ac_try;; 2666esac 2667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2668 (eval "$ac_compiler -V >&5") 2>&5 2669 ac_status=$? 2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2671 (exit $ac_status); } 2672 2673cat >conftest.$ac_ext <<_ACEOF 2674/* confdefs.h. */ 2675_ACEOF 2676cat confdefs.h >>conftest.$ac_ext 2677cat >>conftest.$ac_ext <<_ACEOF 2678/* end confdefs.h. */ 2679 2680int 2681main () 2682{ 2683 2684 ; 2685 return 0; 2686} 2687_ACEOF 2688ac_clean_files_save=$ac_clean_files 2689ac_clean_files="$ac_clean_files a.out a.exe b.out" 2690# Try to create an executable without -o first, disregard a.out. 2691# It will help us diagnose broken compilers, and finding out an intuition 2692# of exeext. 2693{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 2694echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } 2695ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2696# 2697# List of possible output files, starting from the most likely. 2698# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2699# only as a last resort. b.out is created by i960 compilers. 2700ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2701# 2702# The IRIX 6 linker writes into existing files which may not be 2703# executable, retaining their permissions. Remove them first so a 2704# subsequent execution test works. 2705ac_rmfiles= 2706for ac_file in $ac_files 2707do 2708 case $ac_file in 2709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2710 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2711 esac 2712done 2713rm -f $ac_rmfiles 2714 2715if { (ac_try="$ac_link_default" 2716case "(($ac_try" in 2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2718 *) ac_try_echo=$ac_try;; 2719esac 2720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2721 (eval "$ac_link_default") 2>&5 2722 ac_status=$? 2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2724 (exit $ac_status); }; then 2725 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2726# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2727# in a Makefile. We should not override ac_cv_exeext if it was cached, 2728# so that the user can short-circuit this test for compilers unknown to 2729# Autoconf. 2730for ac_file in $ac_files '' 2731do 2732 test -f "$ac_file" || continue 2733 case $ac_file in 2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2735 ;; 2736 [ab].out ) 2737 # We found the default executable, but exeext='' is most 2738 # certainly right. 2739 break;; 2740 *.* ) 2741 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2742 then :; else 2743 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2744 fi 2745 # We set ac_cv_exeext here because the later test for it is not 2746 # safe: cross compilers may not add the suffix if given an `-o' 2747 # argument, so we may need to know it at that point already. 2748 # Even if this section looks crufty: it has the advantage of 2749 # actually working. 2750 break;; 2751 * ) 2752 break;; 2753 esac 2754done 2755test "$ac_cv_exeext" = no && ac_cv_exeext= 2756 2757else 2758 ac_file='' 2759fi 2760 2761{ echo "$as_me:$LINENO: result: $ac_file" >&5 2762echo "${ECHO_T}$ac_file" >&6; } 2763if test -z "$ac_file"; then 2764 echo "$as_me: failed program was:" >&5 2765sed 's/^/| /' conftest.$ac_ext >&5 2766 2767{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2768See \`config.log' for more details." >&5 2769echo "$as_me: error: C++ compiler cannot create executables 2770See \`config.log' for more details." >&2;} 2771 { (exit 77); exit 77; }; } 2772fi 2773 2774ac_exeext=$ac_cv_exeext 2775 2776# Check that the compiler produces executables we can run. If not, either 2777# the compiler is broken, or we cross compile. 2778{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 2779echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } 2780# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2781# If not cross compiling, check that we can run a simple program. 2782if test "$cross_compiling" != yes; then 2783 if { ac_try='./$ac_file' 2784 { (case "(($ac_try" in 2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2786 *) ac_try_echo=$ac_try;; 2787esac 2788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2789 (eval "$ac_try") 2>&5 2790 ac_status=$? 2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2792 (exit $ac_status); }; }; then 2793 cross_compiling=no 2794 else 2795 if test "$cross_compiling" = maybe; then 2796 cross_compiling=yes 2797 else 2798 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. 2799If you meant to cross compile, use \`--host'. 2800See \`config.log' for more details." >&5 2801echo "$as_me: error: cannot run C++ compiled programs. 2802If you meant to cross compile, use \`--host'. 2803See \`config.log' for more details." >&2;} 2804 { (exit 1); exit 1; }; } 2805 fi 2806 fi 2807fi 2808{ echo "$as_me:$LINENO: result: yes" >&5 2809echo "${ECHO_T}yes" >&6; } 2810 2811rm -f a.out a.exe conftest$ac_cv_exeext b.out 2812ac_clean_files=$ac_clean_files_save 2813# Check that the compiler produces executables we can run. If not, either 2814# the compiler is broken, or we cross compile. 2815{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2816echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2817{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2818echo "${ECHO_T}$cross_compiling" >&6; } 2819 2820{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2821echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2822if { (ac_try="$ac_link" 2823case "(($ac_try" in 2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2825 *) ac_try_echo=$ac_try;; 2826esac 2827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2828 (eval "$ac_link") 2>&5 2829 ac_status=$? 2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2831 (exit $ac_status); }; then 2832 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2833# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2834# work properly (i.e., refer to `conftest.exe'), while it won't with 2835# `rm'. 2836for ac_file in conftest.exe conftest conftest.*; do 2837 test -f "$ac_file" || continue 2838 case $ac_file in 2839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2840 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2841 break;; 2842 * ) break;; 2843 esac 2844done 2845else 2846 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2847See \`config.log' for more details." >&5 2848echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2849See \`config.log' for more details." >&2;} 2850 { (exit 1); exit 1; }; } 2851fi 2852 2853rm -f conftest$ac_cv_exeext 2854{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2855echo "${ECHO_T}$ac_cv_exeext" >&6; } 2856 2857rm -f conftest.$ac_ext 2858EXEEXT=$ac_cv_exeext 2859ac_exeext=$EXEEXT 2860{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2861echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2862if test "${ac_cv_objext+set}" = set; then 2863 echo $ECHO_N "(cached) $ECHO_C" >&6 2864else 2865 cat >conftest.$ac_ext <<_ACEOF 2866/* confdefs.h. */ 2867_ACEOF 2868cat confdefs.h >>conftest.$ac_ext 2869cat >>conftest.$ac_ext <<_ACEOF 2870/* end confdefs.h. */ 2871 2872int 2873main () 2874{ 2875 2876 ; 2877 return 0; 2878} 2879_ACEOF 2880rm -f conftest.o conftest.obj 2881if { (ac_try="$ac_compile" 2882case "(($ac_try" in 2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2884 *) ac_try_echo=$ac_try;; 2885esac 2886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2887 (eval "$ac_compile") 2>&5 2888 ac_status=$? 2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2890 (exit $ac_status); }; then 2891 for ac_file in conftest.o conftest.obj conftest.*; do 2892 test -f "$ac_file" || continue; 2893 case $ac_file in 2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2895 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2896 break;; 2897 esac 2898done 2899else 2900 echo "$as_me: failed program was:" >&5 2901sed 's/^/| /' conftest.$ac_ext >&5 2902 2903{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2904See \`config.log' for more details." >&5 2905echo "$as_me: error: cannot compute suffix of object files: cannot compile 2906See \`config.log' for more details." >&2;} 2907 { (exit 1); exit 1; }; } 2908fi 2909 2910rm -f conftest.$ac_cv_objext conftest.$ac_ext 2911fi 2912{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2913echo "${ECHO_T}$ac_cv_objext" >&6; } 2914OBJEXT=$ac_cv_objext 2915ac_objext=$OBJEXT 2916{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2917echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2918if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2919 echo $ECHO_N "(cached) $ECHO_C" >&6 2920else 2921 cat >conftest.$ac_ext <<_ACEOF 2922/* confdefs.h. */ 2923_ACEOF 2924cat confdefs.h >>conftest.$ac_ext 2925cat >>conftest.$ac_ext <<_ACEOF 2926/* end confdefs.h. */ 2927 2928int 2929main () 2930{ 2931#ifndef __GNUC__ 2932 choke me 2933#endif 2934 2935 ; 2936 return 0; 2937} 2938_ACEOF 2939rm -f conftest.$ac_objext 2940if { (ac_try="$ac_compile" 2941case "(($ac_try" in 2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2943 *) ac_try_echo=$ac_try;; 2944esac 2945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2946 (eval "$ac_compile") 2>conftest.er1 2947 ac_status=$? 2948 grep -v '^ *+' conftest.er1 >conftest.err 2949 rm -f conftest.er1 2950 cat conftest.err >&5 2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2952 (exit $ac_status); } && { 2953 test -z "$ac_cxx_werror_flag" || 2954 test ! -s conftest.err 2955 } && test -s conftest.$ac_objext; then 2956 ac_compiler_gnu=yes 2957else 2958 echo "$as_me: failed program was:" >&5 2959sed 's/^/| /' conftest.$ac_ext >&5 2960 2961 ac_compiler_gnu=no 2962fi 2963 2964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2965ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2966 2967fi 2968{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2969echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 2970GXX=`test $ac_compiler_gnu = yes && echo yes` 2971ac_test_CXXFLAGS=${CXXFLAGS+set} 2972ac_save_CXXFLAGS=$CXXFLAGS 2973{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2974echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 2975if test "${ac_cv_prog_cxx_g+set}" = set; then 2976 echo $ECHO_N "(cached) $ECHO_C" >&6 2977else 2978 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 2979 ac_cxx_werror_flag=yes 2980 ac_cv_prog_cxx_g=no 2981 CXXFLAGS="-g" 2982 cat >conftest.$ac_ext <<_ACEOF 2983/* confdefs.h. */ 2984_ACEOF 2985cat confdefs.h >>conftest.$ac_ext 2986cat >>conftest.$ac_ext <<_ACEOF 2987/* end confdefs.h. */ 2988 2989int 2990main () 2991{ 2992 2993 ; 2994 return 0; 2995} 2996_ACEOF 2997rm -f conftest.$ac_objext 2998if { (ac_try="$ac_compile" 2999case "(($ac_try" in 3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3001 *) ac_try_echo=$ac_try;; 3002esac 3003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3004 (eval "$ac_compile") 2>conftest.er1 3005 ac_status=$? 3006 grep -v '^ *+' conftest.er1 >conftest.err 3007 rm -f conftest.er1 3008 cat conftest.err >&5 3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3010 (exit $ac_status); } && { 3011 test -z "$ac_cxx_werror_flag" || 3012 test ! -s conftest.err 3013 } && test -s conftest.$ac_objext; then 3014 ac_cv_prog_cxx_g=yes 3015else 3016 echo "$as_me: failed program was:" >&5 3017sed 's/^/| /' conftest.$ac_ext >&5 3018 3019 CXXFLAGS="" 3020 cat >conftest.$ac_ext <<_ACEOF 3021/* confdefs.h. */ 3022_ACEOF 3023cat confdefs.h >>conftest.$ac_ext 3024cat >>conftest.$ac_ext <<_ACEOF 3025/* end confdefs.h. */ 3026 3027int 3028main () 3029{ 3030 3031 ; 3032 return 0; 3033} 3034_ACEOF 3035rm -f conftest.$ac_objext 3036if { (ac_try="$ac_compile" 3037case "(($ac_try" in 3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3039 *) ac_try_echo=$ac_try;; 3040esac 3041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3042 (eval "$ac_compile") 2>conftest.er1 3043 ac_status=$? 3044 grep -v '^ *+' conftest.er1 >conftest.err 3045 rm -f conftest.er1 3046 cat conftest.err >&5 3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3048 (exit $ac_status); } && { 3049 test -z "$ac_cxx_werror_flag" || 3050 test ! -s conftest.err 3051 } && test -s conftest.$ac_objext; then 3052 : 3053else 3054 echo "$as_me: failed program was:" >&5 3055sed 's/^/| /' conftest.$ac_ext >&5 3056 3057 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3058 CXXFLAGS="-g" 3059 cat >conftest.$ac_ext <<_ACEOF 3060/* confdefs.h. */ 3061_ACEOF 3062cat confdefs.h >>conftest.$ac_ext 3063cat >>conftest.$ac_ext <<_ACEOF 3064/* end confdefs.h. */ 3065 3066int 3067main () 3068{ 3069 3070 ; 3071 return 0; 3072} 3073_ACEOF 3074rm -f conftest.$ac_objext 3075if { (ac_try="$ac_compile" 3076case "(($ac_try" in 3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3078 *) ac_try_echo=$ac_try;; 3079esac 3080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3081 (eval "$ac_compile") 2>conftest.er1 3082 ac_status=$? 3083 grep -v '^ *+' conftest.er1 >conftest.err 3084 rm -f conftest.er1 3085 cat conftest.err >&5 3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3087 (exit $ac_status); } && { 3088 test -z "$ac_cxx_werror_flag" || 3089 test ! -s conftest.err 3090 } && test -s conftest.$ac_objext; then 3091 ac_cv_prog_cxx_g=yes 3092else 3093 echo "$as_me: failed program was:" >&5 3094sed 's/^/| /' conftest.$ac_ext >&5 3095 3096 3097fi 3098 3099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3100fi 3101 3102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3103fi 3104 3105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3106 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3107fi 3108{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3109echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3110if test "$ac_test_CXXFLAGS" = set; then 3111 CXXFLAGS=$ac_save_CXXFLAGS 3112elif test $ac_cv_prog_cxx_g = yes; then 3113 if test "$GXX" = yes; then 3114 CXXFLAGS="-g -O2" 3115 else 3116 CXXFLAGS="-g" 3117 fi 3118else 3119 if test "$GXX" = yes; then 3120 CXXFLAGS="-O2" 3121 else 3122 CXXFLAGS= 3123 fi 3124fi 3125ac_ext=c 3126ac_cpp='$CPP $CPPFLAGS' 3127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3129ac_compiler_gnu=$ac_cv_c_compiler_gnu 3130DEPDIR="${am__leading_dot}deps" 3131 3132ac_config_commands="$ac_config_commands depfiles" 3133 3134 3135am_make=${MAKE-make} 3136cat > confinc << 'END' 3137am__doit: 3138 @echo done 3139.PHONY: am__doit 3140END 3141# If we don't find an include directive, just comment out the code. 3142{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3143echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3144am__include="#" 3145am__quote= 3146_am_result=none 3147# First try GNU make style include. 3148echo "include confinc" > confmf 3149# We grep out `Entering directory' and `Leaving directory' 3150# messages which can occur if `w' ends up in MAKEFLAGS. 3151# In particular we don't look at `^make:' because GNU make might 3152# be invoked under some other name (usually "gmake"), in which 3153# case it prints its new name instead of `make'. 3154if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3155 am__include=include 3156 am__quote= 3157 _am_result=GNU 3158fi 3159# Now try BSD make style include. 3160if test "$am__include" = "#"; then 3161 echo '.include "confinc"' > confmf 3162 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3163 am__include=.include 3164 am__quote="\"" 3165 _am_result=BSD 3166 fi 3167fi 3168 3169 3170{ echo "$as_me:$LINENO: result: $_am_result" >&5 3171echo "${ECHO_T}$_am_result" >&6; } 3172rm -f confinc confmf 3173 3174# Check whether --enable-dependency-tracking was given. 3175if test "${enable_dependency_tracking+set}" = set; then 3176 enableval=$enable_dependency_tracking; 3177fi 3178 3179if test "x$enable_dependency_tracking" != xno; then 3180 am_depcomp="$ac_aux_dir/depcomp" 3181 AMDEPBACKSLASH='\' 3182fi 3183 if test "x$enable_dependency_tracking" != xno; then 3184 AMDEP_TRUE= 3185 AMDEP_FALSE='#' 3186else 3187 AMDEP_TRUE='#' 3188 AMDEP_FALSE= 3189fi 3190 3191 3192 3193depcc="$CXX" am_compiler_list= 3194 3195{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3196echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3197if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3198 echo $ECHO_N "(cached) $ECHO_C" >&6 3199else 3200 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3201 # We make a subdir and do the tests there. Otherwise we can end up 3202 # making bogus files that we don't know about and never remove. For 3203 # instance it was reported that on HP-UX the gcc test will end up 3204 # making a dummy file named `D' -- because `-MD' means `put the output 3205 # in D'. 3206 mkdir conftest.dir 3207 # Copy depcomp to subdir because otherwise we won't find it if we're 3208 # using a relative directory. 3209 cp "$am_depcomp" conftest.dir 3210 cd conftest.dir 3211 # We will build objects and dependencies in a subdirectory because 3212 # it helps to detect inapplicable dependency modes. For instance 3213 # both Tru64's cc and ICC support -MD to output dependencies as a 3214 # side effect of compilation, but ICC will put the dependencies in 3215 # the current directory while Tru64 will put them in the object 3216 # directory. 3217 mkdir sub 3218 3219 am_cv_CXX_dependencies_compiler_type=none 3220 if test "$am_compiler_list" = ""; then 3221 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3222 fi 3223 for depmode in $am_compiler_list; do 3224 # Setup a source with many dependencies, because some compilers 3225 # like to wrap large dependency lists on column 80 (with \), and 3226 # we should not choose a depcomp mode which is confused by this. 3227 # 3228 # We need to recreate these files for each test, as the compiler may 3229 # overwrite some of them when testing with obscure command lines. 3230 # This happens at least with the AIX C compiler. 3231 : > sub/conftest.c 3232 for i in 1 2 3 4 5 6; do 3233 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3234 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3235 # Solaris 8's {/usr,}/bin/sh. 3236 touch sub/conftst$i.h 3237 done 3238 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3239 3240 case $depmode in 3241 nosideeffect) 3242 # after this tag, mechanisms are not by side-effect, so they'll 3243 # only be used when explicitly requested 3244 if test "x$enable_dependency_tracking" = xyes; then 3245 continue 3246 else 3247 break 3248 fi 3249 ;; 3250 none) break ;; 3251 esac 3252 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3253 # mode. It turns out that the SunPro C++ compiler does not properly 3254 # handle `-M -o', and we need to detect this. 3255 if depmode=$depmode \ 3256 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3257 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3258 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3259 >/dev/null 2>conftest.err && 3260 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3261 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3262 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3263 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3264 # icc doesn't choke on unknown options, it will just issue warnings 3265 # or remarks (even with -Werror). So we grep stderr for any message 3266 # that says an option was ignored or not supported. 3267 # When given -MP, icc 7.0 and 7.1 complain thusly: 3268 # icc: Command line warning: ignoring option '-M'; no argument required 3269 # The diagnosis changed in icc 8.0: 3270 # icc: Command line remark: option '-MP' not supported 3271 if (grep 'ignoring option' conftest.err || 3272 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3273 am_cv_CXX_dependencies_compiler_type=$depmode 3274 break 3275 fi 3276 fi 3277 done 3278 3279 cd .. 3280 rm -rf conftest.dir 3281else 3282 am_cv_CXX_dependencies_compiler_type=none 3283fi 3284 3285fi 3286{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 3287echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 3288CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3289 3290 if 3291 test "x$enable_dependency_tracking" != xno \ 3292 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3293 am__fastdepCXX_TRUE= 3294 am__fastdepCXX_FALSE='#' 3295else 3296 am__fastdepCXX_TRUE='#' 3297 am__fastdepCXX_FALSE= 3298fi 3299 3300 3301# Check whether --enable-shared was given. 3302if test "${enable_shared+set}" = set; then 3303 enableval=$enable_shared; p=${PACKAGE-default} 3304 case $enableval in 3305 yes) enable_shared=yes ;; 3306 no) enable_shared=no ;; 3307 *) 3308 enable_shared=no 3309 # Look at the argument we got. We use all the common list separators. 3310 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3311 for pkg in $enableval; do 3312 IFS="$lt_save_ifs" 3313 if test "X$pkg" = "X$p"; then 3314 enable_shared=yes 3315 fi 3316 done 3317 IFS="$lt_save_ifs" 3318 ;; 3319 esac 3320else 3321 enable_shared=yes 3322fi 3323 3324 3325# Check whether --enable-static was given. 3326if test "${enable_static+set}" = set; then 3327 enableval=$enable_static; p=${PACKAGE-default} 3328 case $enableval in 3329 yes) enable_static=yes ;; 3330 no) enable_static=no ;; 3331 *) 3332 enable_static=no 3333 # Look at the argument we got. We use all the common list separators. 3334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3335 for pkg in $enableval; do 3336 IFS="$lt_save_ifs" 3337 if test "X$pkg" = "X$p"; then 3338 enable_static=yes 3339 fi 3340 done 3341 IFS="$lt_save_ifs" 3342 ;; 3343 esac 3344else 3345 enable_static=yes 3346fi 3347 3348 3349# Check whether --enable-fast-install was given. 3350if test "${enable_fast_install+set}" = set; then 3351 enableval=$enable_fast_install; p=${PACKAGE-default} 3352 case $enableval in 3353 yes) enable_fast_install=yes ;; 3354 no) enable_fast_install=no ;; 3355 *) 3356 enable_fast_install=no 3357 # Look at the argument we got. We use all the common list separators. 3358 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3359 for pkg in $enableval; do 3360 IFS="$lt_save_ifs" 3361 if test "X$pkg" = "X$p"; then 3362 enable_fast_install=yes 3363 fi 3364 done 3365 IFS="$lt_save_ifs" 3366 ;; 3367 esac 3368else 3369 enable_fast_install=yes 3370fi 3371 3372 3373# Make sure we can run config.sub. 3374$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3375 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3376echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3377 { (exit 1); exit 1; }; } 3378 3379{ echo "$as_me:$LINENO: checking build system type" >&5 3380echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3381if test "${ac_cv_build+set}" = set; then 3382 echo $ECHO_N "(cached) $ECHO_C" >&6 3383else 3384 ac_build_alias=$build_alias 3385test "x$ac_build_alias" = x && 3386 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3387test "x$ac_build_alias" = x && 3388 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3389echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3390 { (exit 1); exit 1; }; } 3391ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3392 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3393echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3394 { (exit 1); exit 1; }; } 3395 3396fi 3397{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3398echo "${ECHO_T}$ac_cv_build" >&6; } 3399case $ac_cv_build in 3400*-*-*) ;; 3401*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3402echo "$as_me: error: invalid value of canonical build" >&2;} 3403 { (exit 1); exit 1; }; };; 3404esac 3405build=$ac_cv_build 3406ac_save_IFS=$IFS; IFS='-' 3407set x $ac_cv_build 3408shift 3409build_cpu=$1 3410build_vendor=$2 3411shift; shift 3412# Remember, the first character of IFS is used to create $*, 3413# except with old shells: 3414build_os=$* 3415IFS=$ac_save_IFS 3416case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3417 3418 3419{ echo "$as_me:$LINENO: checking host system type" >&5 3420echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3421if test "${ac_cv_host+set}" = set; then 3422 echo $ECHO_N "(cached) $ECHO_C" >&6 3423else 3424 if test "x$host_alias" = x; then 3425 ac_cv_host=$ac_cv_build 3426else 3427 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3428 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3429echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3430 { (exit 1); exit 1; }; } 3431fi 3432 3433fi 3434{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3435echo "${ECHO_T}$ac_cv_host" >&6; } 3436case $ac_cv_host in 3437*-*-*) ;; 3438*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3439echo "$as_me: error: invalid value of canonical host" >&2;} 3440 { (exit 1); exit 1; }; };; 3441esac 3442host=$ac_cv_host 3443ac_save_IFS=$IFS; IFS='-' 3444set x $ac_cv_host 3445shift 3446host_cpu=$1 3447host_vendor=$2 3448shift; shift 3449# Remember, the first character of IFS is used to create $*, 3450# except with old shells: 3451host_os=$* 3452IFS=$ac_save_IFS 3453case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3454 3455 3456ac_ext=c 3457ac_cpp='$CPP $CPPFLAGS' 3458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3460ac_compiler_gnu=$ac_cv_c_compiler_gnu 3461if test -n "$ac_tool_prefix"; then 3462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3463set dummy ${ac_tool_prefix}gcc; ac_word=$2 3464{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3466if test "${ac_cv_prog_CC+set}" = set; then 3467 echo $ECHO_N "(cached) $ECHO_C" >&6 3468else 3469 if test -n "$CC"; then 3470 ac_cv_prog_CC="$CC" # Let the user override the test. 3471else 3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3473for as_dir in $PATH 3474do 3475 IFS=$as_save_IFS 3476 test -z "$as_dir" && as_dir=. 3477 for ac_exec_ext in '' $ac_executable_extensions; do 3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3479 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3481 break 2 3482 fi 3483done 3484done 3485IFS=$as_save_IFS 3486 3487fi 3488fi 3489CC=$ac_cv_prog_CC 3490if test -n "$CC"; then 3491 { echo "$as_me:$LINENO: result: $CC" >&5 3492echo "${ECHO_T}$CC" >&6; } 3493else 3494 { echo "$as_me:$LINENO: result: no" >&5 3495echo "${ECHO_T}no" >&6; } 3496fi 3497 3498 3499fi 3500if test -z "$ac_cv_prog_CC"; then 3501 ac_ct_CC=$CC 3502 # Extract the first word of "gcc", so it can be a program name with args. 3503set dummy gcc; ac_word=$2 3504{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3506if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3507 echo $ECHO_N "(cached) $ECHO_C" >&6 3508else 3509 if test -n "$ac_ct_CC"; then 3510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3511else 3512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3513for as_dir in $PATH 3514do 3515 IFS=$as_save_IFS 3516 test -z "$as_dir" && as_dir=. 3517 for ac_exec_ext in '' $ac_executable_extensions; do 3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3519 ac_cv_prog_ac_ct_CC="gcc" 3520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3521 break 2 3522 fi 3523done 3524done 3525IFS=$as_save_IFS 3526 3527fi 3528fi 3529ac_ct_CC=$ac_cv_prog_ac_ct_CC 3530if test -n "$ac_ct_CC"; then 3531 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3532echo "${ECHO_T}$ac_ct_CC" >&6; } 3533else 3534 { echo "$as_me:$LINENO: result: no" >&5 3535echo "${ECHO_T}no" >&6; } 3536fi 3537 3538 if test "x$ac_ct_CC" = x; then 3539 CC="" 3540 else 3541 case $cross_compiling:$ac_tool_warned in 3542yes:) 3543{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3544whose name does not start with the host triplet. If you think this 3545configuration is useful to you, please write to autoconf@gnu.org." >&5 3546echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3547whose name does not start with the host triplet. If you think this 3548configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3549ac_tool_warned=yes ;; 3550esac 3551 CC=$ac_ct_CC 3552 fi 3553else 3554 CC="$ac_cv_prog_CC" 3555fi 3556 3557if test -z "$CC"; then 3558 if test -n "$ac_tool_prefix"; then 3559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3560set dummy ${ac_tool_prefix}cc; ac_word=$2 3561{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3563if test "${ac_cv_prog_CC+set}" = set; then 3564 echo $ECHO_N "(cached) $ECHO_C" >&6 3565else 3566 if test -n "$CC"; then 3567 ac_cv_prog_CC="$CC" # Let the user override the test. 3568else 3569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3570for as_dir in $PATH 3571do 3572 IFS=$as_save_IFS 3573 test -z "$as_dir" && as_dir=. 3574 for ac_exec_ext in '' $ac_executable_extensions; do 3575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3576 ac_cv_prog_CC="${ac_tool_prefix}cc" 3577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3578 break 2 3579 fi 3580done 3581done 3582IFS=$as_save_IFS 3583 3584fi 3585fi 3586CC=$ac_cv_prog_CC 3587if test -n "$CC"; then 3588 { echo "$as_me:$LINENO: result: $CC" >&5 3589echo "${ECHO_T}$CC" >&6; } 3590else 3591 { echo "$as_me:$LINENO: result: no" >&5 3592echo "${ECHO_T}no" >&6; } 3593fi 3594 3595 3596 fi 3597fi 3598if test -z "$CC"; then 3599 # Extract the first word of "cc", so it can be a program name with args. 3600set dummy cc; ac_word=$2 3601{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3603if test "${ac_cv_prog_CC+set}" = set; then 3604 echo $ECHO_N "(cached) $ECHO_C" >&6 3605else 3606 if test -n "$CC"; then 3607 ac_cv_prog_CC="$CC" # Let the user override the test. 3608else 3609 ac_prog_rejected=no 3610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3611for as_dir in $PATH 3612do 3613 IFS=$as_save_IFS 3614 test -z "$as_dir" && as_dir=. 3615 for ac_exec_ext in '' $ac_executable_extensions; do 3616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3618 ac_prog_rejected=yes 3619 continue 3620 fi 3621 ac_cv_prog_CC="cc" 3622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3623 break 2 3624 fi 3625done 3626done 3627IFS=$as_save_IFS 3628 3629if test $ac_prog_rejected = yes; then 3630 # We found a bogon in the path, so make sure we never use it. 3631 set dummy $ac_cv_prog_CC 3632 shift 3633 if test $# != 0; then 3634 # We chose a different compiler from the bogus one. 3635 # However, it has the same basename, so the bogon will be chosen 3636 # first if we set CC to just the basename; use the full file name. 3637 shift 3638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3639 fi 3640fi 3641fi 3642fi 3643CC=$ac_cv_prog_CC 3644if test -n "$CC"; then 3645 { echo "$as_me:$LINENO: result: $CC" >&5 3646echo "${ECHO_T}$CC" >&6; } 3647else 3648 { echo "$as_me:$LINENO: result: no" >&5 3649echo "${ECHO_T}no" >&6; } 3650fi 3651 3652 3653fi 3654if test -z "$CC"; then 3655 if test -n "$ac_tool_prefix"; then 3656 for ac_prog in cl.exe 3657 do 3658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3659set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3660{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3662if test "${ac_cv_prog_CC+set}" = set; then 3663 echo $ECHO_N "(cached) $ECHO_C" >&6 3664else 3665 if test -n "$CC"; then 3666 ac_cv_prog_CC="$CC" # Let the user override the test. 3667else 3668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3669for as_dir in $PATH 3670do 3671 IFS=$as_save_IFS 3672 test -z "$as_dir" && as_dir=. 3673 for ac_exec_ext in '' $ac_executable_extensions; do 3674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3677 break 2 3678 fi 3679done 3680done 3681IFS=$as_save_IFS 3682 3683fi 3684fi 3685CC=$ac_cv_prog_CC 3686if test -n "$CC"; then 3687 { echo "$as_me:$LINENO: result: $CC" >&5 3688echo "${ECHO_T}$CC" >&6; } 3689else 3690 { echo "$as_me:$LINENO: result: no" >&5 3691echo "${ECHO_T}no" >&6; } 3692fi 3693 3694 3695 test -n "$CC" && break 3696 done 3697fi 3698if test -z "$CC"; then 3699 ac_ct_CC=$CC 3700 for ac_prog in cl.exe 3701do 3702 # Extract the first word of "$ac_prog", so it can be a program name with args. 3703set dummy $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_ac_ct_CC+set}" = set; then 3707 echo $ECHO_N "(cached) $ECHO_C" >&6 3708else 3709 if test -n "$ac_ct_CC"; then 3710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="$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 3729ac_ct_CC=$ac_cv_prog_ac_ct_CC 3730if test -n "$ac_ct_CC"; then 3731 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3732echo "${ECHO_T}$ac_ct_CC" >&6; } 3733else 3734 { echo "$as_me:$LINENO: result: no" >&5 3735echo "${ECHO_T}no" >&6; } 3736fi 3737 3738 3739 test -n "$ac_ct_CC" && break 3740done 3741 3742 if test "x$ac_ct_CC" = x; then 3743 CC="" 3744 else 3745 case $cross_compiling:$ac_tool_warned in 3746yes:) 3747{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3748whose name does not start with the host triplet. If you think this 3749configuration is useful to you, please write to autoconf@gnu.org." >&5 3750echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3751whose name does not start with the host triplet. If you think this 3752configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3753ac_tool_warned=yes ;; 3754esac 3755 CC=$ac_ct_CC 3756 fi 3757fi 3758 3759fi 3760 3761 3762test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3763See \`config.log' for more details." >&5 3764echo "$as_me: error: no acceptable C compiler found in \$PATH 3765See \`config.log' for more details." >&2;} 3766 { (exit 1); exit 1; }; } 3767 3768# Provide some information about the compiler. 3769echo "$as_me:$LINENO: checking for C compiler version" >&5 3770ac_compiler=`set X $ac_compile; echo $2` 3771{ (ac_try="$ac_compiler --version >&5" 3772case "(($ac_try" in 3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3774 *) ac_try_echo=$ac_try;; 3775esac 3776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3777 (eval "$ac_compiler --version >&5") 2>&5 3778 ac_status=$? 3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3780 (exit $ac_status); } 3781{ (ac_try="$ac_compiler -v >&5" 3782case "(($ac_try" in 3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3784 *) ac_try_echo=$ac_try;; 3785esac 3786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3787 (eval "$ac_compiler -v >&5") 2>&5 3788 ac_status=$? 3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3790 (exit $ac_status); } 3791{ (ac_try="$ac_compiler -V >&5" 3792case "(($ac_try" in 3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3794 *) ac_try_echo=$ac_try;; 3795esac 3796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3797 (eval "$ac_compiler -V >&5") 2>&5 3798 ac_status=$? 3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3800 (exit $ac_status); } 3801 3802{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3803echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3804if test "${ac_cv_c_compiler_gnu+set}" = set; then 3805 echo $ECHO_N "(cached) $ECHO_C" >&6 3806else 3807 cat >conftest.$ac_ext <<_ACEOF 3808/* confdefs.h. */ 3809_ACEOF 3810cat confdefs.h >>conftest.$ac_ext 3811cat >>conftest.$ac_ext <<_ACEOF 3812/* end confdefs.h. */ 3813 3814int 3815main () 3816{ 3817#ifndef __GNUC__ 3818 choke me 3819#endif 3820 3821 ; 3822 return 0; 3823} 3824_ACEOF 3825rm -f conftest.$ac_objext 3826if { (ac_try="$ac_compile" 3827case "(($ac_try" in 3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3829 *) ac_try_echo=$ac_try;; 3830esac 3831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3832 (eval "$ac_compile") 2>conftest.er1 3833 ac_status=$? 3834 grep -v '^ *+' conftest.er1 >conftest.err 3835 rm -f conftest.er1 3836 cat conftest.err >&5 3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3838 (exit $ac_status); } && { 3839 test -z "$ac_c_werror_flag" || 3840 test ! -s conftest.err 3841 } && test -s conftest.$ac_objext; then 3842 ac_compiler_gnu=yes 3843else 3844 echo "$as_me: failed program was:" >&5 3845sed 's/^/| /' conftest.$ac_ext >&5 3846 3847 ac_compiler_gnu=no 3848fi 3849 3850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3851ac_cv_c_compiler_gnu=$ac_compiler_gnu 3852 3853fi 3854{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3855echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3856GCC=`test $ac_compiler_gnu = yes && echo yes` 3857ac_test_CFLAGS=${CFLAGS+set} 3858ac_save_CFLAGS=$CFLAGS 3859{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3860echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3861if test "${ac_cv_prog_cc_g+set}" = set; then 3862 echo $ECHO_N "(cached) $ECHO_C" >&6 3863else 3864 ac_save_c_werror_flag=$ac_c_werror_flag 3865 ac_c_werror_flag=yes 3866 ac_cv_prog_cc_g=no 3867 CFLAGS="-g" 3868 cat >conftest.$ac_ext <<_ACEOF 3869/* confdefs.h. */ 3870_ACEOF 3871cat confdefs.h >>conftest.$ac_ext 3872cat >>conftest.$ac_ext <<_ACEOF 3873/* end confdefs.h. */ 3874 3875int 3876main () 3877{ 3878 3879 ; 3880 return 0; 3881} 3882_ACEOF 3883rm -f conftest.$ac_objext 3884if { (ac_try="$ac_compile" 3885case "(($ac_try" in 3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3887 *) ac_try_echo=$ac_try;; 3888esac 3889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3890 (eval "$ac_compile") 2>conftest.er1 3891 ac_status=$? 3892 grep -v '^ *+' conftest.er1 >conftest.err 3893 rm -f conftest.er1 3894 cat conftest.err >&5 3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3896 (exit $ac_status); } && { 3897 test -z "$ac_c_werror_flag" || 3898 test ! -s conftest.err 3899 } && test -s conftest.$ac_objext; then 3900 ac_cv_prog_cc_g=yes 3901else 3902 echo "$as_me: failed program was:" >&5 3903sed 's/^/| /' conftest.$ac_ext >&5 3904 3905 CFLAGS="" 3906 cat >conftest.$ac_ext <<_ACEOF 3907/* confdefs.h. */ 3908_ACEOF 3909cat confdefs.h >>conftest.$ac_ext 3910cat >>conftest.$ac_ext <<_ACEOF 3911/* end confdefs.h. */ 3912 3913int 3914main () 3915{ 3916 3917 ; 3918 return 0; 3919} 3920_ACEOF 3921rm -f conftest.$ac_objext 3922if { (ac_try="$ac_compile" 3923case "(($ac_try" in 3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3925 *) ac_try_echo=$ac_try;; 3926esac 3927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3928 (eval "$ac_compile") 2>conftest.er1 3929 ac_status=$? 3930 grep -v '^ *+' conftest.er1 >conftest.err 3931 rm -f conftest.er1 3932 cat conftest.err >&5 3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3934 (exit $ac_status); } && { 3935 test -z "$ac_c_werror_flag" || 3936 test ! -s conftest.err 3937 } && test -s conftest.$ac_objext; then 3938 : 3939else 3940 echo "$as_me: failed program was:" >&5 3941sed 's/^/| /' conftest.$ac_ext >&5 3942 3943 ac_c_werror_flag=$ac_save_c_werror_flag 3944 CFLAGS="-g" 3945 cat >conftest.$ac_ext <<_ACEOF 3946/* confdefs.h. */ 3947_ACEOF 3948cat confdefs.h >>conftest.$ac_ext 3949cat >>conftest.$ac_ext <<_ACEOF 3950/* end confdefs.h. */ 3951 3952int 3953main () 3954{ 3955 3956 ; 3957 return 0; 3958} 3959_ACEOF 3960rm -f conftest.$ac_objext 3961if { (ac_try="$ac_compile" 3962case "(($ac_try" in 3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3964 *) ac_try_echo=$ac_try;; 3965esac 3966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3967 (eval "$ac_compile") 2>conftest.er1 3968 ac_status=$? 3969 grep -v '^ *+' conftest.er1 >conftest.err 3970 rm -f conftest.er1 3971 cat conftest.err >&5 3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3973 (exit $ac_status); } && { 3974 test -z "$ac_c_werror_flag" || 3975 test ! -s conftest.err 3976 } && test -s conftest.$ac_objext; then 3977 ac_cv_prog_cc_g=yes 3978else 3979 echo "$as_me: failed program was:" >&5 3980sed 's/^/| /' conftest.$ac_ext >&5 3981 3982 3983fi 3984 3985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3986fi 3987 3988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3989fi 3990 3991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3992 ac_c_werror_flag=$ac_save_c_werror_flag 3993fi 3994{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3995echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3996if test "$ac_test_CFLAGS" = set; then 3997 CFLAGS=$ac_save_CFLAGS 3998elif test $ac_cv_prog_cc_g = yes; then 3999 if test "$GCC" = yes; then 4000 CFLAGS="-g -O2" 4001 else 4002 CFLAGS="-g" 4003 fi 4004else 4005 if test "$GCC" = yes; then 4006 CFLAGS="-O2" 4007 else 4008 CFLAGS= 4009 fi 4010fi 4011{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 4012echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 4013if test "${ac_cv_prog_cc_c89+set}" = set; then 4014 echo $ECHO_N "(cached) $ECHO_C" >&6 4015else 4016 ac_cv_prog_cc_c89=no 4017ac_save_CC=$CC 4018cat >conftest.$ac_ext <<_ACEOF 4019/* confdefs.h. */ 4020_ACEOF 4021cat confdefs.h >>conftest.$ac_ext 4022cat >>conftest.$ac_ext <<_ACEOF 4023/* end confdefs.h. */ 4024#include <stdarg.h> 4025#include <stdio.h> 4026#include <sys/types.h> 4027#include <sys/stat.h> 4028/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4029struct buf { int x; }; 4030FILE * (*rcsopen) (struct buf *, struct stat *, int); 4031static char *e (p, i) 4032 char **p; 4033 int i; 4034{ 4035 return p[i]; 4036} 4037static char *f (char * (*g) (char **, int), char **p, ...) 4038{ 4039 char *s; 4040 va_list v; 4041 va_start (v,p); 4042 s = g (p, va_arg (v,int)); 4043 va_end (v); 4044 return s; 4045} 4046 4047/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4048 function prototypes and stuff, but not '\xHH' hex character constants. 4049 These don't provoke an error unfortunately, instead are silently treated 4050 as 'x'. The following induces an error, until -std is added to get 4051 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4052 array size at least. It's necessary to write '\x00'==0 to get something 4053 that's true only with -std. */ 4054int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4055 4056/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4057 inside strings and character constants. */ 4058#define FOO(x) 'x' 4059int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4060 4061int test (int i, double x); 4062struct s1 {int (*f) (int a);}; 4063struct s2 {int (*f) (double a);}; 4064int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4065int argc; 4066char **argv; 4067int 4068main () 4069{ 4070return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4071 ; 4072 return 0; 4073} 4074_ACEOF 4075for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4076 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4077do 4078 CC="$ac_save_CC $ac_arg" 4079 rm -f conftest.$ac_objext 4080if { (ac_try="$ac_compile" 4081case "(($ac_try" in 4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4083 *) ac_try_echo=$ac_try;; 4084esac 4085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4086 (eval "$ac_compile") 2>conftest.er1 4087 ac_status=$? 4088 grep -v '^ *+' conftest.er1 >conftest.err 4089 rm -f conftest.er1 4090 cat conftest.err >&5 4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4092 (exit $ac_status); } && { 4093 test -z "$ac_c_werror_flag" || 4094 test ! -s conftest.err 4095 } && test -s conftest.$ac_objext; then 4096 ac_cv_prog_cc_c89=$ac_arg 4097else 4098 echo "$as_me: failed program was:" >&5 4099sed 's/^/| /' conftest.$ac_ext >&5 4100 4101 4102fi 4103 4104rm -f core conftest.err conftest.$ac_objext 4105 test "x$ac_cv_prog_cc_c89" != "xno" && break 4106done 4107rm -f conftest.$ac_ext 4108CC=$ac_save_CC 4109 4110fi 4111# AC_CACHE_VAL 4112case "x$ac_cv_prog_cc_c89" in 4113 x) 4114 { echo "$as_me:$LINENO: result: none needed" >&5 4115echo "${ECHO_T}none needed" >&6; } ;; 4116 xno) 4117 { echo "$as_me:$LINENO: result: unsupported" >&5 4118echo "${ECHO_T}unsupported" >&6; } ;; 4119 *) 4120 CC="$CC $ac_cv_prog_cc_c89" 4121 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4122echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 4123esac 4124 4125 4126ac_ext=c 4127ac_cpp='$CPP $CPPFLAGS' 4128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4130ac_compiler_gnu=$ac_cv_c_compiler_gnu 4131 4132depcc="$CC" am_compiler_list= 4133 4134{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 4135echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 4136if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4137 echo $ECHO_N "(cached) $ECHO_C" >&6 4138else 4139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4140 # We make a subdir and do the tests there. Otherwise we can end up 4141 # making bogus files that we don't know about and never remove. For 4142 # instance it was reported that on HP-UX the gcc test will end up 4143 # making a dummy file named `D' -- because `-MD' means `put the output 4144 # in D'. 4145 mkdir conftest.dir 4146 # Copy depcomp to subdir because otherwise we won't find it if we're 4147 # using a relative directory. 4148 cp "$am_depcomp" conftest.dir 4149 cd conftest.dir 4150 # We will build objects and dependencies in a subdirectory because 4151 # it helps to detect inapplicable dependency modes. For instance 4152 # both Tru64's cc and ICC support -MD to output dependencies as a 4153 # side effect of compilation, but ICC will put the dependencies in 4154 # the current directory while Tru64 will put them in the object 4155 # directory. 4156 mkdir sub 4157 4158 am_cv_CC_dependencies_compiler_type=none 4159 if test "$am_compiler_list" = ""; then 4160 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4161 fi 4162 for depmode in $am_compiler_list; do 4163 # Setup a source with many dependencies, because some compilers 4164 # like to wrap large dependency lists on column 80 (with \), and 4165 # we should not choose a depcomp mode which is confused by this. 4166 # 4167 # We need to recreate these files for each test, as the compiler may 4168 # overwrite some of them when testing with obscure command lines. 4169 # This happens at least with the AIX C compiler. 4170 : > sub/conftest.c 4171 for i in 1 2 3 4 5 6; do 4172 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4173 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4174 # Solaris 8's {/usr,}/bin/sh. 4175 touch sub/conftst$i.h 4176 done 4177 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4178 4179 case $depmode in 4180 nosideeffect) 4181 # after this tag, mechanisms are not by side-effect, so they'll 4182 # only be used when explicitly requested 4183 if test "x$enable_dependency_tracking" = xyes; then 4184 continue 4185 else 4186 break 4187 fi 4188 ;; 4189 none) break ;; 4190 esac 4191 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4192 # mode. It turns out that the SunPro C++ compiler does not properly 4193 # handle `-M -o', and we need to detect this. 4194 if depmode=$depmode \ 4195 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 4196 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4197 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 4198 >/dev/null 2>conftest.err && 4199 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4200 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4201 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 4202 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4203 # icc doesn't choke on unknown options, it will just issue warnings 4204 # or remarks (even with -Werror). So we grep stderr for any message 4205 # that says an option was ignored or not supported. 4206 # When given -MP, icc 7.0 and 7.1 complain thusly: 4207 # icc: Command line warning: ignoring option '-M'; no argument required 4208 # The diagnosis changed in icc 8.0: 4209 # icc: Command line remark: option '-MP' not supported 4210 if (grep 'ignoring option' conftest.err || 4211 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4212 am_cv_CC_dependencies_compiler_type=$depmode 4213 break 4214 fi 4215 fi 4216 done 4217 4218 cd .. 4219 rm -rf conftest.dir 4220else 4221 am_cv_CC_dependencies_compiler_type=none 4222fi 4223 4224fi 4225{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 4226echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 4227CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4228 4229 if 4230 test "x$enable_dependency_tracking" != xno \ 4231 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4232 am__fastdepCC_TRUE= 4233 am__fastdepCC_FALSE='#' 4234else 4235 am__fastdepCC_TRUE='#' 4236 am__fastdepCC_FALSE= 4237fi 4238 4239 4240{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 4241echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 4242if test "${lt_cv_path_SED+set}" = set; then 4243 echo $ECHO_N "(cached) $ECHO_C" >&6 4244else 4245 # Loop through the user's path and test for sed and gsed. 4246# Then use that list of sed's as ones to test for truncation. 4247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4248for as_dir in $PATH 4249do 4250 IFS=$as_save_IFS 4251 test -z "$as_dir" && as_dir=. 4252 for lt_ac_prog in sed gsed; do 4253 for ac_exec_ext in '' $ac_executable_extensions; do 4254 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 4255 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4256 fi 4257 done 4258 done 4259done 4260IFS=$as_save_IFS 4261lt_ac_max=0 4262lt_ac_count=0 4263# Add /usr/xpg4/bin/sed as it is typically found on Solaris 4264# along with /bin/sed that truncates output. 4265for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4266 test ! -f $lt_ac_sed && continue 4267 cat /dev/null > conftest.in 4268 lt_ac_count=0 4269 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4270 # Check for GNU sed and select it if it is found. 4271 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4272 lt_cv_path_SED=$lt_ac_sed 4273 break 4274 fi 4275 while true; do 4276 cat conftest.in conftest.in >conftest.tmp 4277 mv conftest.tmp conftest.in 4278 cp conftest.in conftest.nl 4279 echo >>conftest.nl 4280 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4281 cmp -s conftest.out conftest.nl || break 4282 # 10000 chars as input seems more than enough 4283 test $lt_ac_count -gt 10 && break 4284 lt_ac_count=`expr $lt_ac_count + 1` 4285 if test $lt_ac_count -gt $lt_ac_max; then 4286 lt_ac_max=$lt_ac_count 4287 lt_cv_path_SED=$lt_ac_sed 4288 fi 4289 done 4290done 4291 4292fi 4293 4294SED=$lt_cv_path_SED 4295 4296{ echo "$as_me:$LINENO: result: $SED" >&5 4297echo "${ECHO_T}$SED" >&6; } 4298 4299{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4300echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4301if test "${ac_cv_path_GREP+set}" = set; then 4302 echo $ECHO_N "(cached) $ECHO_C" >&6 4303else 4304 # Extract the first word of "grep ggrep" to use in msg output 4305if test -z "$GREP"; then 4306set dummy grep ggrep; ac_prog_name=$2 4307if test "${ac_cv_path_GREP+set}" = set; then 4308 echo $ECHO_N "(cached) $ECHO_C" >&6 4309else 4310 ac_path_GREP_found=false 4311# Loop through the user's path and test for each of PROGNAME-LIST 4312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4313for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4314do 4315 IFS=$as_save_IFS 4316 test -z "$as_dir" && as_dir=. 4317 for ac_prog in grep ggrep; do 4318 for ac_exec_ext in '' $ac_executable_extensions; do 4319 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4320 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4321 # Check for GNU ac_path_GREP and select it if it is found. 4322 # Check for GNU $ac_path_GREP 4323case `"$ac_path_GREP" --version 2>&1` in 4324*GNU*) 4325 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4326*) 4327 ac_count=0 4328 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4329 while : 4330 do 4331 cat "conftest.in" "conftest.in" >"conftest.tmp" 4332 mv "conftest.tmp" "conftest.in" 4333 cp "conftest.in" "conftest.nl" 4334 echo 'GREP' >> "conftest.nl" 4335 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4337 ac_count=`expr $ac_count + 1` 4338 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4339 # Best one so far, save it but keep looking for a better one 4340 ac_cv_path_GREP="$ac_path_GREP" 4341 ac_path_GREP_max=$ac_count 4342 fi 4343 # 10*(2^10) chars as input seems more than enough 4344 test $ac_count -gt 10 && break 4345 done 4346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4347esac 4348 4349 4350 $ac_path_GREP_found && break 3 4351 done 4352done 4353 4354done 4355IFS=$as_save_IFS 4356 4357 4358fi 4359 4360GREP="$ac_cv_path_GREP" 4361if test -z "$GREP"; then 4362 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4363echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4364 { (exit 1); exit 1; }; } 4365fi 4366 4367else 4368 ac_cv_path_GREP=$GREP 4369fi 4370 4371 4372fi 4373{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4374echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4375 GREP="$ac_cv_path_GREP" 4376 4377 4378{ echo "$as_me:$LINENO: checking for egrep" >&5 4379echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4380if test "${ac_cv_path_EGREP+set}" = set; then 4381 echo $ECHO_N "(cached) $ECHO_C" >&6 4382else 4383 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4384 then ac_cv_path_EGREP="$GREP -E" 4385 else 4386 # Extract the first word of "egrep" to use in msg output 4387if test -z "$EGREP"; then 4388set dummy egrep; ac_prog_name=$2 4389if test "${ac_cv_path_EGREP+set}" = set; then 4390 echo $ECHO_N "(cached) $ECHO_C" >&6 4391else 4392 ac_path_EGREP_found=false 4393# Loop through the user's path and test for each of PROGNAME-LIST 4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4395for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4396do 4397 IFS=$as_save_IFS 4398 test -z "$as_dir" && as_dir=. 4399 for ac_prog in egrep; do 4400 for ac_exec_ext in '' $ac_executable_extensions; do 4401 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4402 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4403 # Check for GNU ac_path_EGREP and select it if it is found. 4404 # Check for GNU $ac_path_EGREP 4405case `"$ac_path_EGREP" --version 2>&1` in 4406*GNU*) 4407 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4408*) 4409 ac_count=0 4410 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4411 while : 4412 do 4413 cat "conftest.in" "conftest.in" >"conftest.tmp" 4414 mv "conftest.tmp" "conftest.in" 4415 cp "conftest.in" "conftest.nl" 4416 echo 'EGREP' >> "conftest.nl" 4417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4419 ac_count=`expr $ac_count + 1` 4420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4421 # Best one so far, save it but keep looking for a better one 4422 ac_cv_path_EGREP="$ac_path_EGREP" 4423 ac_path_EGREP_max=$ac_count 4424 fi 4425 # 10*(2^10) chars as input seems more than enough 4426 test $ac_count -gt 10 && break 4427 done 4428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4429esac 4430 4431 4432 $ac_path_EGREP_found && break 3 4433 done 4434done 4435 4436done 4437IFS=$as_save_IFS 4438 4439 4440fi 4441 4442EGREP="$ac_cv_path_EGREP" 4443if test -z "$EGREP"; then 4444 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4445echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4446 { (exit 1); exit 1; }; } 4447fi 4448 4449else 4450 ac_cv_path_EGREP=$EGREP 4451fi 4452 4453 4454 fi 4455fi 4456{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4457echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4458 EGREP="$ac_cv_path_EGREP" 4459 4460 4461 4462# Check whether --with-gnu-ld was given. 4463if test "${with_gnu_ld+set}" = set; then 4464 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4465else 4466 with_gnu_ld=no 4467fi 4468 4469ac_prog=ld 4470if test "$GCC" = yes; then 4471 # Check if gcc -print-prog-name=ld gives a path. 4472 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4473echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4474 case $host in 4475 *-*-mingw*) 4476 # gcc leaves a trailing carriage return which upsets mingw 4477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4478 *) 4479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4480 esac 4481 case $ac_prog in 4482 # Accept absolute paths. 4483 [\\/]* | ?:[\\/]*) 4484 re_direlt='/[^/][^/]*/\.\./' 4485 # Canonicalize the pathname of ld 4486 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4487 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4488 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4489 done 4490 test -z "$LD" && LD="$ac_prog" 4491 ;; 4492 "") 4493 # If it fails, then pretend we aren't using GCC. 4494 ac_prog=ld 4495 ;; 4496 *) 4497 # If it is relative, then search for the first ld in PATH. 4498 with_gnu_ld=unknown 4499 ;; 4500 esac 4501elif test "$with_gnu_ld" = yes; then 4502 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4503echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4504else 4505 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4506echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4507fi 4508if test "${lt_cv_path_LD+set}" = set; then 4509 echo $ECHO_N "(cached) $ECHO_C" >&6 4510else 4511 if test -z "$LD"; then 4512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4513 for ac_dir in $PATH; do 4514 IFS="$lt_save_ifs" 4515 test -z "$ac_dir" && ac_dir=. 4516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4517 lt_cv_path_LD="$ac_dir/$ac_prog" 4518 # Check to see if the program is GNU ld. I'd rather use --version, 4519 # but apparently some variants of GNU ld only accept -v. 4520 # Break only if it was the GNU/non-GNU ld that we prefer. 4521 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4522 *GNU* | *'with BFD'*) 4523 test "$with_gnu_ld" != no && break 4524 ;; 4525 *) 4526 test "$with_gnu_ld" != yes && break 4527 ;; 4528 esac 4529 fi 4530 done 4531 IFS="$lt_save_ifs" 4532else 4533 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4534fi 4535fi 4536 4537LD="$lt_cv_path_LD" 4538if test -n "$LD"; then 4539 { echo "$as_me:$LINENO: result: $LD" >&5 4540echo "${ECHO_T}$LD" >&6; } 4541else 4542 { echo "$as_me:$LINENO: result: no" >&5 4543echo "${ECHO_T}no" >&6; } 4544fi 4545test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4546echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4547 { (exit 1); exit 1; }; } 4548{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4549echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4550if test "${lt_cv_prog_gnu_ld+set}" = set; then 4551 echo $ECHO_N "(cached) $ECHO_C" >&6 4552else 4553 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4554case `$LD -v 2>&1 </dev/null` in 4555*GNU* | *'with BFD'*) 4556 lt_cv_prog_gnu_ld=yes 4557 ;; 4558*) 4559 lt_cv_prog_gnu_ld=no 4560 ;; 4561esac 4562fi 4563{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4564echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4565with_gnu_ld=$lt_cv_prog_gnu_ld 4566 4567 4568{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4569echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4570if test "${lt_cv_ld_reload_flag+set}" = set; then 4571 echo $ECHO_N "(cached) $ECHO_C" >&6 4572else 4573 lt_cv_ld_reload_flag='-r' 4574fi 4575{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4576echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4577reload_flag=$lt_cv_ld_reload_flag 4578case $reload_flag in 4579"" | " "*) ;; 4580*) reload_flag=" $reload_flag" ;; 4581esac 4582reload_cmds='$LD$reload_flag -o $output$reload_objs' 4583case $host_os in 4584 darwin*) 4585 if test "$GCC" = yes; then 4586 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4587 else 4588 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4589 fi 4590 ;; 4591esac 4592 4593{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4594echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4595if test "${lt_cv_path_NM+set}" = set; then 4596 echo $ECHO_N "(cached) $ECHO_C" >&6 4597else 4598 if test -n "$NM"; then 4599 # Let the user override the test. 4600 lt_cv_path_NM="$NM" 4601else 4602 lt_nm_to_check="${ac_tool_prefix}nm" 4603 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4604 lt_nm_to_check="$lt_nm_to_check nm" 4605 fi 4606 for lt_tmp_nm in $lt_nm_to_check; do 4607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4608 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4609 IFS="$lt_save_ifs" 4610 test -z "$ac_dir" && ac_dir=. 4611 tmp_nm="$ac_dir/$lt_tmp_nm" 4612 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4613 # Check to see if the nm accepts a BSD-compat flag. 4614 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4615 # nm: unknown option "B" ignored 4616 # Tru64's nm complains that /dev/null is an invalid object file 4617 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4618 */dev/null* | *'Invalid file or object type'*) 4619 lt_cv_path_NM="$tmp_nm -B" 4620 break 4621 ;; 4622 *) 4623 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4624 */dev/null*) 4625 lt_cv_path_NM="$tmp_nm -p" 4626 break 4627 ;; 4628 *) 4629 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4630 continue # so that we can try to find one that supports BSD flags 4631 ;; 4632 esac 4633 ;; 4634 esac 4635 fi 4636 done 4637 IFS="$lt_save_ifs" 4638 done 4639 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4640fi 4641fi 4642{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4643echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4644NM="$lt_cv_path_NM" 4645 4646{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4647echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4648LN_S=$as_ln_s 4649if test "$LN_S" = "ln -s"; then 4650 { echo "$as_me:$LINENO: result: yes" >&5 4651echo "${ECHO_T}yes" >&6; } 4652else 4653 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4654echo "${ECHO_T}no, using $LN_S" >&6; } 4655fi 4656 4657{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4658echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4659if test "${lt_cv_deplibs_check_method+set}" = set; then 4660 echo $ECHO_N "(cached) $ECHO_C" >&6 4661else 4662 lt_cv_file_magic_cmd='$MAGIC_CMD' 4663lt_cv_file_magic_test_file= 4664lt_cv_deplibs_check_method='unknown' 4665# Need to set the preceding variable on all platforms that support 4666# interlibrary dependencies. 4667# 'none' -- dependencies not supported. 4668# `unknown' -- same as none, but documents that we really don't know. 4669# 'pass_all' -- all dependencies passed with no checks. 4670# 'test_compile' -- check by making test program. 4671# 'file_magic [[regex]]' -- check by looking for files in library path 4672# which responds to the $file_magic_cmd with a given extended regex. 4673# If you have `file' or equivalent on your system and you're not sure 4674# whether `pass_all' will *always* work, you probably want this one. 4675 4676case $host_os in 4677aix[4-9]*) 4678 lt_cv_deplibs_check_method=pass_all 4679 ;; 4680 4681beos*) 4682 lt_cv_deplibs_check_method=pass_all 4683 ;; 4684 4685bsdi[45]*) 4686 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4687 lt_cv_file_magic_cmd='/usr/bin/file -L' 4688 lt_cv_file_magic_test_file=/shlib/libc.so 4689 ;; 4690 4691cygwin*) 4692 # func_win32_libid is a shell function defined in ltmain.sh 4693 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4694 lt_cv_file_magic_cmd='func_win32_libid' 4695 ;; 4696 4697mingw* | pw32*) 4698 # Base MSYS/MinGW do not provide the 'file' command needed by 4699 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4700 # unless we find 'file', for example because we are cross-compiling. 4701 if ( file / ) >/dev/null 2>&1; then 4702 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4703 lt_cv_file_magic_cmd='func_win32_libid' 4704 else 4705 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4706 lt_cv_file_magic_cmd='$OBJDUMP -f' 4707 fi 4708 ;; 4709 4710darwin* | rhapsody*) 4711 lt_cv_deplibs_check_method=pass_all 4712 ;; 4713 4714freebsd* | dragonfly*) 4715 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4716 case $host_cpu in 4717 i*86 ) 4718 # Not sure whether the presence of OpenBSD here was a mistake. 4719 # Let's accept both of them until this is cleared up. 4720 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4721 lt_cv_file_magic_cmd=/usr/bin/file 4722 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4723 ;; 4724 esac 4725 else 4726 lt_cv_deplibs_check_method=pass_all 4727 fi 4728 ;; 4729 4730gnu*) 4731 lt_cv_deplibs_check_method=pass_all 4732 ;; 4733 4734hpux10.20* | hpux11*) 4735 lt_cv_file_magic_cmd=/usr/bin/file 4736 case $host_cpu in 4737 ia64*) 4738 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4739 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4740 ;; 4741 hppa*64*) 4742 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]' 4743 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4744 ;; 4745 *) 4746 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4747 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4748 ;; 4749 esac 4750 ;; 4751 4752interix[3-9]*) 4753 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4755 ;; 4756 4757irix5* | irix6* | nonstopux*) 4758 case $LD in 4759 *-32|*"-32 ") libmagic=32-bit;; 4760 *-n32|*"-n32 ") libmagic=N32;; 4761 *-64|*"-64 ") libmagic=64-bit;; 4762 *) libmagic=never-match;; 4763 esac 4764 lt_cv_deplibs_check_method=pass_all 4765 ;; 4766 4767# This must be Linux ELF. 4768linux* | k*bsd*-gnu) 4769 lt_cv_deplibs_check_method=pass_all 4770 ;; 4771 4772netbsd* | netbsdelf*-gnu) 4773 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4775 else 4776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4777 fi 4778 ;; 4779 4780newos6*) 4781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4782 lt_cv_file_magic_cmd=/usr/bin/file 4783 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4784 ;; 4785 4786nto-qnx*) 4787 lt_cv_deplibs_check_method=unknown 4788 ;; 4789 4790openbsd*) 4791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4793 else 4794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4795 fi 4796 ;; 4797 4798osf3* | osf4* | osf5*) 4799 lt_cv_deplibs_check_method=pass_all 4800 ;; 4801 4802rdos*) 4803 lt_cv_deplibs_check_method=pass_all 4804 ;; 4805 4806solaris*) 4807 lt_cv_deplibs_check_method=pass_all 4808 ;; 4809 4810sysv4 | sysv4.3*) 4811 case $host_vendor in 4812 motorola) 4813 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]' 4814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4815 ;; 4816 ncr) 4817 lt_cv_deplibs_check_method=pass_all 4818 ;; 4819 sequent) 4820 lt_cv_file_magic_cmd='/bin/file' 4821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4822 ;; 4823 sni) 4824 lt_cv_file_magic_cmd='/bin/file' 4825 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4826 lt_cv_file_magic_test_file=/lib/libc.so 4827 ;; 4828 siemens) 4829 lt_cv_deplibs_check_method=pass_all 4830 ;; 4831 pc) 4832 lt_cv_deplibs_check_method=pass_all 4833 ;; 4834 esac 4835 ;; 4836 4837sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4838 lt_cv_deplibs_check_method=pass_all 4839 ;; 4840esac 4841 4842fi 4843{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4844echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4845file_magic_cmd=$lt_cv_file_magic_cmd 4846deplibs_check_method=$lt_cv_deplibs_check_method 4847test -z "$deplibs_check_method" && deplibs_check_method=unknown 4848 4849 4850 4851 4852# If no C compiler was specified, use CC. 4853LTCC=${LTCC-"$CC"} 4854 4855# If no C compiler flags were specified, use CFLAGS. 4856LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4857 4858# Allow CC to be a program name with arguments. 4859compiler=$CC 4860 4861 4862# Check whether --enable-libtool-lock was given. 4863if test "${enable_libtool_lock+set}" = set; then 4864 enableval=$enable_libtool_lock; 4865fi 4866 4867test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4868 4869# Some flags need to be propagated to the compiler or linker for good 4870# libtool support. 4871case $host in 4872ia64-*-hpux*) 4873 # Find out which ABI we are using. 4874 echo 'int i;' > conftest.$ac_ext 4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4876 (eval $ac_compile) 2>&5 4877 ac_status=$? 4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4879 (exit $ac_status); }; then 4880 case `/usr/bin/file conftest.$ac_objext` in 4881 *ELF-32*) 4882 HPUX_IA64_MODE="32" 4883 ;; 4884 *ELF-64*) 4885 HPUX_IA64_MODE="64" 4886 ;; 4887 esac 4888 fi 4889 rm -rf conftest* 4890 ;; 4891*-*-irix6*) 4892 # Find out which ABI we are using. 4893 echo '#line 4893 "configure"' > conftest.$ac_ext 4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4895 (eval $ac_compile) 2>&5 4896 ac_status=$? 4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4898 (exit $ac_status); }; then 4899 if test "$lt_cv_prog_gnu_ld" = yes; then 4900 case `/usr/bin/file conftest.$ac_objext` in 4901 *32-bit*) 4902 LD="${LD-ld} -melf32bsmip" 4903 ;; 4904 *N32*) 4905 LD="${LD-ld} -melf32bmipn32" 4906 ;; 4907 *64-bit*) 4908 LD="${LD-ld} -melf64bmip" 4909 ;; 4910 esac 4911 else 4912 case `/usr/bin/file conftest.$ac_objext` in 4913 *32-bit*) 4914 LD="${LD-ld} -32" 4915 ;; 4916 *N32*) 4917 LD="${LD-ld} -n32" 4918 ;; 4919 *64-bit*) 4920 LD="${LD-ld} -64" 4921 ;; 4922 esac 4923 fi 4924 fi 4925 rm -rf conftest* 4926 ;; 4927 4928x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4929s390*-*linux*|sparc*-*linux*) 4930 # Find out which ABI we are using. 4931 echo 'int i;' > conftest.$ac_ext 4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4933 (eval $ac_compile) 2>&5 4934 ac_status=$? 4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4936 (exit $ac_status); }; then 4937 case `/usr/bin/file conftest.o` in 4938 *32-bit*) 4939 case $host in 4940 x86_64-*kfreebsd*-gnu) 4941 LD="${LD-ld} -m elf_i386_fbsd" 4942 ;; 4943 x86_64-*linux*) 4944 LD="${LD-ld} -m elf_i386" 4945 ;; 4946 ppc64-*linux*|powerpc64-*linux*) 4947 LD="${LD-ld} -m elf32ppclinux" 4948 ;; 4949 s390x-*linux*) 4950 LD="${LD-ld} -m elf_s390" 4951 ;; 4952 sparc64-*linux*) 4953 LD="${LD-ld} -m elf32_sparc" 4954 ;; 4955 esac 4956 ;; 4957 *64-bit*) 4958 case $host in 4959 x86_64-*kfreebsd*-gnu) 4960 LD="${LD-ld} -m elf_x86_64_fbsd" 4961 ;; 4962 x86_64-*linux*) 4963 LD="${LD-ld} -m elf_x86_64" 4964 ;; 4965 ppc*-*linux*|powerpc*-*linux*) 4966 LD="${LD-ld} -m elf64ppc" 4967 ;; 4968 s390*-*linux*) 4969 LD="${LD-ld} -m elf64_s390" 4970 ;; 4971 sparc*-*linux*) 4972 LD="${LD-ld} -m elf64_sparc" 4973 ;; 4974 esac 4975 ;; 4976 esac 4977 fi 4978 rm -rf conftest* 4979 ;; 4980 4981*-*-sco3.2v5*) 4982 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4983 SAVE_CFLAGS="$CFLAGS" 4984 CFLAGS="$CFLAGS -belf" 4985 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4986echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4987if test "${lt_cv_cc_needs_belf+set}" = set; then 4988 echo $ECHO_N "(cached) $ECHO_C" >&6 4989else 4990 ac_ext=c 4991ac_cpp='$CPP $CPPFLAGS' 4992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4994ac_compiler_gnu=$ac_cv_c_compiler_gnu 4995 4996 cat >conftest.$ac_ext <<_ACEOF 4997/* confdefs.h. */ 4998_ACEOF 4999cat confdefs.h >>conftest.$ac_ext 5000cat >>conftest.$ac_ext <<_ACEOF 5001/* end confdefs.h. */ 5002 5003int 5004main () 5005{ 5006 5007 ; 5008 return 0; 5009} 5010_ACEOF 5011rm -f conftest.$ac_objext conftest$ac_exeext 5012if { (ac_try="$ac_link" 5013case "(($ac_try" in 5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5015 *) ac_try_echo=$ac_try;; 5016esac 5017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5018 (eval "$ac_link") 2>conftest.er1 5019 ac_status=$? 5020 grep -v '^ *+' conftest.er1 >conftest.err 5021 rm -f conftest.er1 5022 cat conftest.err >&5 5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5024 (exit $ac_status); } && { 5025 test -z "$ac_c_werror_flag" || 5026 test ! -s conftest.err 5027 } && test -s conftest$ac_exeext && 5028 $as_test_x conftest$ac_exeext; then 5029 lt_cv_cc_needs_belf=yes 5030else 5031 echo "$as_me: failed program was:" >&5 5032sed 's/^/| /' conftest.$ac_ext >&5 5033 5034 lt_cv_cc_needs_belf=no 5035fi 5036 5037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5038 conftest$ac_exeext conftest.$ac_ext 5039 ac_ext=c 5040ac_cpp='$CPP $CPPFLAGS' 5041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5043ac_compiler_gnu=$ac_cv_c_compiler_gnu 5044 5045fi 5046{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5047echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 5048 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5049 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5050 CFLAGS="$SAVE_CFLAGS" 5051 fi 5052 ;; 5053sparc*-*solaris*) 5054 # Find out which ABI we are using. 5055 echo 'int i;' > conftest.$ac_ext 5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5057 (eval $ac_compile) 2>&5 5058 ac_status=$? 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5060 (exit $ac_status); }; then 5061 case `/usr/bin/file conftest.o` in 5062 *64-bit*) 5063 case $lt_cv_prog_gnu_ld in 5064 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5065 *) 5066 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5067 LD="${LD-ld} -64" 5068 fi 5069 ;; 5070 esac 5071 ;; 5072 esac 5073 fi 5074 rm -rf conftest* 5075 ;; 5076 5077 5078esac 5079 5080need_locks="$enable_libtool_lock" 5081 5082 5083ac_ext=c 5084ac_cpp='$CPP $CPPFLAGS' 5085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5087ac_compiler_gnu=$ac_cv_c_compiler_gnu 5088{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5089echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 5090# On Suns, sometimes $CPP names a directory. 5091if test -n "$CPP" && test -d "$CPP"; then 5092 CPP= 5093fi 5094if test -z "$CPP"; then 5095 if test "${ac_cv_prog_CPP+set}" = set; then 5096 echo $ECHO_N "(cached) $ECHO_C" >&6 5097else 5098 # Double quotes because CPP needs to be expanded 5099 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5100 do 5101 ac_preproc_ok=false 5102for ac_c_preproc_warn_flag in '' yes 5103do 5104 # Use a header file that comes with gcc, so configuring glibc 5105 # with a fresh cross-compiler works. 5106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5107 # <limits.h> exists even on freestanding compilers. 5108 # On the NeXT, cc -E runs the code through the compiler's parser, 5109 # not just through cpp. "Syntax error" is here to catch this case. 5110 cat >conftest.$ac_ext <<_ACEOF 5111/* confdefs.h. */ 5112_ACEOF 5113cat confdefs.h >>conftest.$ac_ext 5114cat >>conftest.$ac_ext <<_ACEOF 5115/* end confdefs.h. */ 5116#ifdef __STDC__ 5117# include <limits.h> 5118#else 5119# include <assert.h> 5120#endif 5121 Syntax error 5122_ACEOF 5123if { (ac_try="$ac_cpp conftest.$ac_ext" 5124case "(($ac_try" in 5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5126 *) ac_try_echo=$ac_try;; 5127esac 5128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5130 ac_status=$? 5131 grep -v '^ *+' conftest.er1 >conftest.err 5132 rm -f conftest.er1 5133 cat conftest.err >&5 5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5135 (exit $ac_status); } >/dev/null && { 5136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5137 test ! -s conftest.err 5138 }; then 5139 : 5140else 5141 echo "$as_me: failed program was:" >&5 5142sed 's/^/| /' conftest.$ac_ext >&5 5143 5144 # Broken: fails on valid input. 5145continue 5146fi 5147 5148rm -f conftest.err conftest.$ac_ext 5149 5150 # OK, works on sane cases. Now check whether nonexistent headers 5151 # can be detected and how. 5152 cat >conftest.$ac_ext <<_ACEOF 5153/* confdefs.h. */ 5154_ACEOF 5155cat confdefs.h >>conftest.$ac_ext 5156cat >>conftest.$ac_ext <<_ACEOF 5157/* end confdefs.h. */ 5158#include <ac_nonexistent.h> 5159_ACEOF 5160if { (ac_try="$ac_cpp conftest.$ac_ext" 5161case "(($ac_try" in 5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5163 *) ac_try_echo=$ac_try;; 5164esac 5165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5167 ac_status=$? 5168 grep -v '^ *+' conftest.er1 >conftest.err 5169 rm -f conftest.er1 5170 cat conftest.err >&5 5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5172 (exit $ac_status); } >/dev/null && { 5173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5174 test ! -s conftest.err 5175 }; then 5176 # Broken: success on invalid input. 5177continue 5178else 5179 echo "$as_me: failed program was:" >&5 5180sed 's/^/| /' conftest.$ac_ext >&5 5181 5182 # Passes both tests. 5183ac_preproc_ok=: 5184break 5185fi 5186 5187rm -f conftest.err conftest.$ac_ext 5188 5189done 5190# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5191rm -f conftest.err conftest.$ac_ext 5192if $ac_preproc_ok; then 5193 break 5194fi 5195 5196 done 5197 ac_cv_prog_CPP=$CPP 5198 5199fi 5200 CPP=$ac_cv_prog_CPP 5201else 5202 ac_cv_prog_CPP=$CPP 5203fi 5204{ echo "$as_me:$LINENO: result: $CPP" >&5 5205echo "${ECHO_T}$CPP" >&6; } 5206ac_preproc_ok=false 5207for ac_c_preproc_warn_flag in '' yes 5208do 5209 # Use a header file that comes with gcc, so configuring glibc 5210 # with a fresh cross-compiler works. 5211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5212 # <limits.h> exists even on freestanding compilers. 5213 # On the NeXT, cc -E runs the code through the compiler's parser, 5214 # not just through cpp. "Syntax error" is here to catch this case. 5215 cat >conftest.$ac_ext <<_ACEOF 5216/* confdefs.h. */ 5217_ACEOF 5218cat confdefs.h >>conftest.$ac_ext 5219cat >>conftest.$ac_ext <<_ACEOF 5220/* end confdefs.h. */ 5221#ifdef __STDC__ 5222# include <limits.h> 5223#else 5224# include <assert.h> 5225#endif 5226 Syntax error 5227_ACEOF 5228if { (ac_try="$ac_cpp conftest.$ac_ext" 5229case "(($ac_try" in 5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5231 *) ac_try_echo=$ac_try;; 5232esac 5233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5235 ac_status=$? 5236 grep -v '^ *+' conftest.er1 >conftest.err 5237 rm -f conftest.er1 5238 cat conftest.err >&5 5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5240 (exit $ac_status); } >/dev/null && { 5241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5242 test ! -s conftest.err 5243 }; then 5244 : 5245else 5246 echo "$as_me: failed program was:" >&5 5247sed 's/^/| /' conftest.$ac_ext >&5 5248 5249 # Broken: fails on valid input. 5250continue 5251fi 5252 5253rm -f conftest.err conftest.$ac_ext 5254 5255 # OK, works on sane cases. Now check whether nonexistent headers 5256 # can be detected and how. 5257 cat >conftest.$ac_ext <<_ACEOF 5258/* confdefs.h. */ 5259_ACEOF 5260cat confdefs.h >>conftest.$ac_ext 5261cat >>conftest.$ac_ext <<_ACEOF 5262/* end confdefs.h. */ 5263#include <ac_nonexistent.h> 5264_ACEOF 5265if { (ac_try="$ac_cpp conftest.$ac_ext" 5266case "(($ac_try" in 5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5268 *) ac_try_echo=$ac_try;; 5269esac 5270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5272 ac_status=$? 5273 grep -v '^ *+' conftest.er1 >conftest.err 5274 rm -f conftest.er1 5275 cat conftest.err >&5 5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5277 (exit $ac_status); } >/dev/null && { 5278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5279 test ! -s conftest.err 5280 }; then 5281 # Broken: success on invalid input. 5282continue 5283else 5284 echo "$as_me: failed program was:" >&5 5285sed 's/^/| /' conftest.$ac_ext >&5 5286 5287 # Passes both tests. 5288ac_preproc_ok=: 5289break 5290fi 5291 5292rm -f conftest.err conftest.$ac_ext 5293 5294done 5295# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5296rm -f conftest.err conftest.$ac_ext 5297if $ac_preproc_ok; then 5298 : 5299else 5300 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5301See \`config.log' for more details." >&5 5302echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5303See \`config.log' for more details." >&2;} 5304 { (exit 1); exit 1; }; } 5305fi 5306 5307ac_ext=c 5308ac_cpp='$CPP $CPPFLAGS' 5309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5311ac_compiler_gnu=$ac_cv_c_compiler_gnu 5312 5313 5314{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5315echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 5316if test "${ac_cv_header_stdc+set}" = set; then 5317 echo $ECHO_N "(cached) $ECHO_C" >&6 5318else 5319 cat >conftest.$ac_ext <<_ACEOF 5320/* confdefs.h. */ 5321_ACEOF 5322cat confdefs.h >>conftest.$ac_ext 5323cat >>conftest.$ac_ext <<_ACEOF 5324/* end confdefs.h. */ 5325#include <stdlib.h> 5326#include <stdarg.h> 5327#include <string.h> 5328#include <float.h> 5329 5330int 5331main () 5332{ 5333 5334 ; 5335 return 0; 5336} 5337_ACEOF 5338rm -f conftest.$ac_objext 5339if { (ac_try="$ac_compile" 5340case "(($ac_try" in 5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5342 *) ac_try_echo=$ac_try;; 5343esac 5344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5345 (eval "$ac_compile") 2>conftest.er1 5346 ac_status=$? 5347 grep -v '^ *+' conftest.er1 >conftest.err 5348 rm -f conftest.er1 5349 cat conftest.err >&5 5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5351 (exit $ac_status); } && { 5352 test -z "$ac_c_werror_flag" || 5353 test ! -s conftest.err 5354 } && test -s conftest.$ac_objext; then 5355 ac_cv_header_stdc=yes 5356else 5357 echo "$as_me: failed program was:" >&5 5358sed 's/^/| /' conftest.$ac_ext >&5 5359 5360 ac_cv_header_stdc=no 5361fi 5362 5363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5364 5365if test $ac_cv_header_stdc = yes; then 5366 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5367 cat >conftest.$ac_ext <<_ACEOF 5368/* confdefs.h. */ 5369_ACEOF 5370cat confdefs.h >>conftest.$ac_ext 5371cat >>conftest.$ac_ext <<_ACEOF 5372/* end confdefs.h. */ 5373#include <string.h> 5374 5375_ACEOF 5376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5377 $EGREP "memchr" >/dev/null 2>&1; then 5378 : 5379else 5380 ac_cv_header_stdc=no 5381fi 5382rm -f conftest* 5383 5384fi 5385 5386if test $ac_cv_header_stdc = yes; then 5387 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5388 cat >conftest.$ac_ext <<_ACEOF 5389/* confdefs.h. */ 5390_ACEOF 5391cat confdefs.h >>conftest.$ac_ext 5392cat >>conftest.$ac_ext <<_ACEOF 5393/* end confdefs.h. */ 5394#include <stdlib.h> 5395 5396_ACEOF 5397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5398 $EGREP "free" >/dev/null 2>&1; then 5399 : 5400else 5401 ac_cv_header_stdc=no 5402fi 5403rm -f conftest* 5404 5405fi 5406 5407if test $ac_cv_header_stdc = yes; then 5408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5409 if test "$cross_compiling" = yes; then 5410 : 5411else 5412 cat >conftest.$ac_ext <<_ACEOF 5413/* confdefs.h. */ 5414_ACEOF 5415cat confdefs.h >>conftest.$ac_ext 5416cat >>conftest.$ac_ext <<_ACEOF 5417/* end confdefs.h. */ 5418#include <ctype.h> 5419#include <stdlib.h> 5420#if ((' ' & 0x0FF) == 0x020) 5421# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5422# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5423#else 5424# define ISLOWER(c) \ 5425 (('a' <= (c) && (c) <= 'i') \ 5426 || ('j' <= (c) && (c) <= 'r') \ 5427 || ('s' <= (c) && (c) <= 'z')) 5428# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5429#endif 5430 5431#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5432int 5433main () 5434{ 5435 int i; 5436 for (i = 0; i < 256; i++) 5437 if (XOR (islower (i), ISLOWER (i)) 5438 || toupper (i) != TOUPPER (i)) 5439 return 2; 5440 return 0; 5441} 5442_ACEOF 5443rm -f conftest$ac_exeext 5444if { (ac_try="$ac_link" 5445case "(($ac_try" in 5446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5447 *) ac_try_echo=$ac_try;; 5448esac 5449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5450 (eval "$ac_link") 2>&5 5451 ac_status=$? 5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5454 { (case "(($ac_try" in 5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5456 *) ac_try_echo=$ac_try;; 5457esac 5458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5459 (eval "$ac_try") 2>&5 5460 ac_status=$? 5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5462 (exit $ac_status); }; }; then 5463 : 5464else 5465 echo "$as_me: program exited with status $ac_status" >&5 5466echo "$as_me: failed program was:" >&5 5467sed 's/^/| /' conftest.$ac_ext >&5 5468 5469( exit $ac_status ) 5470ac_cv_header_stdc=no 5471fi 5472rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5473fi 5474 5475 5476fi 5477fi 5478{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5479echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5480if test $ac_cv_header_stdc = yes; then 5481 5482cat >>confdefs.h <<\_ACEOF 5483#define STDC_HEADERS 1 5484_ACEOF 5485 5486fi 5487 5488# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5499 inttypes.h stdint.h unistd.h 5500do 5501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5502{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5503echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5505 echo $ECHO_N "(cached) $ECHO_C" >&6 5506else 5507 cat >conftest.$ac_ext <<_ACEOF 5508/* confdefs.h. */ 5509_ACEOF 5510cat confdefs.h >>conftest.$ac_ext 5511cat >>conftest.$ac_ext <<_ACEOF 5512/* end confdefs.h. */ 5513$ac_includes_default 5514 5515#include <$ac_header> 5516_ACEOF 5517rm -f conftest.$ac_objext 5518if { (ac_try="$ac_compile" 5519case "(($ac_try" in 5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5521 *) ac_try_echo=$ac_try;; 5522esac 5523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5524 (eval "$ac_compile") 2>conftest.er1 5525 ac_status=$? 5526 grep -v '^ *+' conftest.er1 >conftest.err 5527 rm -f conftest.er1 5528 cat conftest.err >&5 5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5530 (exit $ac_status); } && { 5531 test -z "$ac_c_werror_flag" || 5532 test ! -s conftest.err 5533 } && test -s conftest.$ac_objext; then 5534 eval "$as_ac_Header=yes" 5535else 5536 echo "$as_me: failed program was:" >&5 5537sed 's/^/| /' conftest.$ac_ext >&5 5538 5539 eval "$as_ac_Header=no" 5540fi 5541 5542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5543fi 5544ac_res=`eval echo '${'$as_ac_Header'}'` 5545 { echo "$as_me:$LINENO: result: $ac_res" >&5 5546echo "${ECHO_T}$ac_res" >&6; } 5547if test `eval echo '${'$as_ac_Header'}'` = yes; then 5548 cat >>confdefs.h <<_ACEOF 5549#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5550_ACEOF 5551 5552fi 5553 5554done 5555 5556 5557 5558for ac_header in dlfcn.h 5559do 5560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5562 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5565 echo $ECHO_N "(cached) $ECHO_C" >&6 5566fi 5567ac_res=`eval echo '${'$as_ac_Header'}'` 5568 { echo "$as_me:$LINENO: result: $ac_res" >&5 5569echo "${ECHO_T}$ac_res" >&6; } 5570else 5571 # Is the header compilable? 5572{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5573echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5574cat >conftest.$ac_ext <<_ACEOF 5575/* confdefs.h. */ 5576_ACEOF 5577cat confdefs.h >>conftest.$ac_ext 5578cat >>conftest.$ac_ext <<_ACEOF 5579/* end confdefs.h. */ 5580$ac_includes_default 5581#include <$ac_header> 5582_ACEOF 5583rm -f conftest.$ac_objext 5584if { (ac_try="$ac_compile" 5585case "(($ac_try" in 5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5587 *) ac_try_echo=$ac_try;; 5588esac 5589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5590 (eval "$ac_compile") 2>conftest.er1 5591 ac_status=$? 5592 grep -v '^ *+' conftest.er1 >conftest.err 5593 rm -f conftest.er1 5594 cat conftest.err >&5 5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5596 (exit $ac_status); } && { 5597 test -z "$ac_c_werror_flag" || 5598 test ! -s conftest.err 5599 } && test -s conftest.$ac_objext; then 5600 ac_header_compiler=yes 5601else 5602 echo "$as_me: failed program was:" >&5 5603sed 's/^/| /' conftest.$ac_ext >&5 5604 5605 ac_header_compiler=no 5606fi 5607 5608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5609{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5610echo "${ECHO_T}$ac_header_compiler" >&6; } 5611 5612# Is the header present? 5613{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5614echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5615cat >conftest.$ac_ext <<_ACEOF 5616/* confdefs.h. */ 5617_ACEOF 5618cat confdefs.h >>conftest.$ac_ext 5619cat >>conftest.$ac_ext <<_ACEOF 5620/* end confdefs.h. */ 5621#include <$ac_header> 5622_ACEOF 5623if { (ac_try="$ac_cpp conftest.$ac_ext" 5624case "(($ac_try" in 5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5626 *) ac_try_echo=$ac_try;; 5627esac 5628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5630 ac_status=$? 5631 grep -v '^ *+' conftest.er1 >conftest.err 5632 rm -f conftest.er1 5633 cat conftest.err >&5 5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5635 (exit $ac_status); } >/dev/null && { 5636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5637 test ! -s conftest.err 5638 }; then 5639 ac_header_preproc=yes 5640else 5641 echo "$as_me: failed program was:" >&5 5642sed 's/^/| /' conftest.$ac_ext >&5 5643 5644 ac_header_preproc=no 5645fi 5646 5647rm -f conftest.err conftest.$ac_ext 5648{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5649echo "${ECHO_T}$ac_header_preproc" >&6; } 5650 5651# So? What about this header? 5652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5653 yes:no: ) 5654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5658 ac_header_preproc=yes 5659 ;; 5660 no:yes:* ) 5661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5668echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5673 ( cat <<\_ASBOX 5674## -------------------------------------------- ## 5675## Report this to http://www.openldap.org/its/ ## 5676## -------------------------------------------- ## 5677_ASBOX 5678 ) | sed "s/^/$as_me: WARNING: /" >&2 5679 ;; 5680esac 5681{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5684 echo $ECHO_N "(cached) $ECHO_C" >&6 5685else 5686 eval "$as_ac_Header=\$ac_header_preproc" 5687fi 5688ac_res=`eval echo '${'$as_ac_Header'}'` 5689 { echo "$as_me:$LINENO: result: $ac_res" >&5 5690echo "${ECHO_T}$ac_res" >&6; } 5691 5692fi 5693if test `eval echo '${'$as_ac_Header'}'` = yes; then 5694 cat >>confdefs.h <<_ACEOF 5695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5696_ACEOF 5697 5698fi 5699 5700done 5701 5702 5703 5704if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5705 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5706 (test "X$CXX" != "Xg++"))) ; then 5707 ac_ext=cpp 5708ac_cpp='$CXXCPP $CPPFLAGS' 5709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5712{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5713echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5714if test -z "$CXXCPP"; then 5715 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5716 echo $ECHO_N "(cached) $ECHO_C" >&6 5717else 5718 # Double quotes because CXXCPP needs to be expanded 5719 for CXXCPP in "$CXX -E" "/lib/cpp" 5720 do 5721 ac_preproc_ok=false 5722for ac_cxx_preproc_warn_flag in '' yes 5723do 5724 # Use a header file that comes with gcc, so configuring glibc 5725 # with a fresh cross-compiler works. 5726 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5727 # <limits.h> exists even on freestanding compilers. 5728 # On the NeXT, cc -E runs the code through the compiler's parser, 5729 # not just through cpp. "Syntax error" is here to catch this case. 5730 cat >conftest.$ac_ext <<_ACEOF 5731/* confdefs.h. */ 5732_ACEOF 5733cat confdefs.h >>conftest.$ac_ext 5734cat >>conftest.$ac_ext <<_ACEOF 5735/* end confdefs.h. */ 5736#ifdef __STDC__ 5737# include <limits.h> 5738#else 5739# include <assert.h> 5740#endif 5741 Syntax error 5742_ACEOF 5743if { (ac_try="$ac_cpp conftest.$ac_ext" 5744case "(($ac_try" in 5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5746 *) ac_try_echo=$ac_try;; 5747esac 5748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5750 ac_status=$? 5751 grep -v '^ *+' conftest.er1 >conftest.err 5752 rm -f conftest.er1 5753 cat conftest.err >&5 5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5755 (exit $ac_status); } >/dev/null && { 5756 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5757 test ! -s conftest.err 5758 }; then 5759 : 5760else 5761 echo "$as_me: failed program was:" >&5 5762sed 's/^/| /' conftest.$ac_ext >&5 5763 5764 # Broken: fails on valid input. 5765continue 5766fi 5767 5768rm -f conftest.err conftest.$ac_ext 5769 5770 # OK, works on sane cases. Now check whether nonexistent headers 5771 # can be detected and how. 5772 cat >conftest.$ac_ext <<_ACEOF 5773/* confdefs.h. */ 5774_ACEOF 5775cat confdefs.h >>conftest.$ac_ext 5776cat >>conftest.$ac_ext <<_ACEOF 5777/* end confdefs.h. */ 5778#include <ac_nonexistent.h> 5779_ACEOF 5780if { (ac_try="$ac_cpp conftest.$ac_ext" 5781case "(($ac_try" in 5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5783 *) ac_try_echo=$ac_try;; 5784esac 5785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5787 ac_status=$? 5788 grep -v '^ *+' conftest.er1 >conftest.err 5789 rm -f conftest.er1 5790 cat conftest.err >&5 5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5792 (exit $ac_status); } >/dev/null && { 5793 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5794 test ! -s conftest.err 5795 }; then 5796 # Broken: success on invalid input. 5797continue 5798else 5799 echo "$as_me: failed program was:" >&5 5800sed 's/^/| /' conftest.$ac_ext >&5 5801 5802 # Passes both tests. 5803ac_preproc_ok=: 5804break 5805fi 5806 5807rm -f conftest.err conftest.$ac_ext 5808 5809done 5810# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5811rm -f conftest.err conftest.$ac_ext 5812if $ac_preproc_ok; then 5813 break 5814fi 5815 5816 done 5817 ac_cv_prog_CXXCPP=$CXXCPP 5818 5819fi 5820 CXXCPP=$ac_cv_prog_CXXCPP 5821else 5822 ac_cv_prog_CXXCPP=$CXXCPP 5823fi 5824{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5825echo "${ECHO_T}$CXXCPP" >&6; } 5826ac_preproc_ok=false 5827for ac_cxx_preproc_warn_flag in '' yes 5828do 5829 # Use a header file that comes with gcc, so configuring glibc 5830 # with a fresh cross-compiler works. 5831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5832 # <limits.h> exists even on freestanding compilers. 5833 # On the NeXT, cc -E runs the code through the compiler's parser, 5834 # not just through cpp. "Syntax error" is here to catch this case. 5835 cat >conftest.$ac_ext <<_ACEOF 5836/* confdefs.h. */ 5837_ACEOF 5838cat confdefs.h >>conftest.$ac_ext 5839cat >>conftest.$ac_ext <<_ACEOF 5840/* end confdefs.h. */ 5841#ifdef __STDC__ 5842# include <limits.h> 5843#else 5844# include <assert.h> 5845#endif 5846 Syntax error 5847_ACEOF 5848if { (ac_try="$ac_cpp conftest.$ac_ext" 5849case "(($ac_try" in 5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5851 *) ac_try_echo=$ac_try;; 5852esac 5853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5855 ac_status=$? 5856 grep -v '^ *+' conftest.er1 >conftest.err 5857 rm -f conftest.er1 5858 cat conftest.err >&5 5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5860 (exit $ac_status); } >/dev/null && { 5861 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5862 test ! -s conftest.err 5863 }; then 5864 : 5865else 5866 echo "$as_me: failed program was:" >&5 5867sed 's/^/| /' conftest.$ac_ext >&5 5868 5869 # Broken: fails on valid input. 5870continue 5871fi 5872 5873rm -f conftest.err conftest.$ac_ext 5874 5875 # OK, works on sane cases. Now check whether nonexistent headers 5876 # can be detected and how. 5877 cat >conftest.$ac_ext <<_ACEOF 5878/* confdefs.h. */ 5879_ACEOF 5880cat confdefs.h >>conftest.$ac_ext 5881cat >>conftest.$ac_ext <<_ACEOF 5882/* end confdefs.h. */ 5883#include <ac_nonexistent.h> 5884_ACEOF 5885if { (ac_try="$ac_cpp conftest.$ac_ext" 5886case "(($ac_try" in 5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5888 *) ac_try_echo=$ac_try;; 5889esac 5890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5892 ac_status=$? 5893 grep -v '^ *+' conftest.er1 >conftest.err 5894 rm -f conftest.er1 5895 cat conftest.err >&5 5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5897 (exit $ac_status); } >/dev/null && { 5898 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5899 test ! -s conftest.err 5900 }; then 5901 # Broken: success on invalid input. 5902continue 5903else 5904 echo "$as_me: failed program was:" >&5 5905sed 's/^/| /' conftest.$ac_ext >&5 5906 5907 # Passes both tests. 5908ac_preproc_ok=: 5909break 5910fi 5911 5912rm -f conftest.err conftest.$ac_ext 5913 5914done 5915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5916rm -f conftest.err conftest.$ac_ext 5917if $ac_preproc_ok; then 5918 : 5919else 5920 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5921See \`config.log' for more details." >&5 5922echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5923See \`config.log' for more details." >&2;} 5924 { (exit 1); exit 1; }; } 5925fi 5926 5927ac_ext=cpp 5928ac_cpp='$CXXCPP $CPPFLAGS' 5929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5932 5933fi 5934 5935 5936ac_ext=f 5937ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5938ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5939ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5940if test -n "$ac_tool_prefix"; then 5941 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5942 do 5943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5944set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5945{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5947if test "${ac_cv_prog_F77+set}" = set; then 5948 echo $ECHO_N "(cached) $ECHO_C" >&6 5949else 5950 if test -n "$F77"; then 5951 ac_cv_prog_F77="$F77" # Let the user override the test. 5952else 5953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5954for as_dir in $PATH 5955do 5956 IFS=$as_save_IFS 5957 test -z "$as_dir" && as_dir=. 5958 for ac_exec_ext in '' $ac_executable_extensions; do 5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5960 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5962 break 2 5963 fi 5964done 5965done 5966IFS=$as_save_IFS 5967 5968fi 5969fi 5970F77=$ac_cv_prog_F77 5971if test -n "$F77"; then 5972 { echo "$as_me:$LINENO: result: $F77" >&5 5973echo "${ECHO_T}$F77" >&6; } 5974else 5975 { echo "$as_me:$LINENO: result: no" >&5 5976echo "${ECHO_T}no" >&6; } 5977fi 5978 5979 5980 test -n "$F77" && break 5981 done 5982fi 5983if test -z "$F77"; then 5984 ac_ct_F77=$F77 5985 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 5986do 5987 # Extract the first word of "$ac_prog", so it can be a program name with args. 5988set dummy $ac_prog; ac_word=$2 5989{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5991if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5992 echo $ECHO_N "(cached) $ECHO_C" >&6 5993else 5994 if test -n "$ac_ct_F77"; then 5995 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5996else 5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5998for as_dir in $PATH 5999do 6000 IFS=$as_save_IFS 6001 test -z "$as_dir" && as_dir=. 6002 for ac_exec_ext in '' $ac_executable_extensions; do 6003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6004 ac_cv_prog_ac_ct_F77="$ac_prog" 6005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6006 break 2 6007 fi 6008done 6009done 6010IFS=$as_save_IFS 6011 6012fi 6013fi 6014ac_ct_F77=$ac_cv_prog_ac_ct_F77 6015if test -n "$ac_ct_F77"; then 6016 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6017echo "${ECHO_T}$ac_ct_F77" >&6; } 6018else 6019 { echo "$as_me:$LINENO: result: no" >&5 6020echo "${ECHO_T}no" >&6; } 6021fi 6022 6023 6024 test -n "$ac_ct_F77" && break 6025done 6026 6027 if test "x$ac_ct_F77" = x; then 6028 F77="" 6029 else 6030 case $cross_compiling:$ac_tool_warned in 6031yes:) 6032{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6033whose name does not start with the host triplet. If you think this 6034configuration is useful to you, please write to autoconf@gnu.org." >&5 6035echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6036whose name does not start with the host triplet. If you think this 6037configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6038ac_tool_warned=yes ;; 6039esac 6040 F77=$ac_ct_F77 6041 fi 6042fi 6043 6044 6045# Provide some information about the compiler. 6046echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6047ac_compiler=`set X $ac_compile; echo $2` 6048{ (ac_try="$ac_compiler --version >&5" 6049case "(($ac_try" in 6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6051 *) ac_try_echo=$ac_try;; 6052esac 6053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6054 (eval "$ac_compiler --version >&5") 2>&5 6055 ac_status=$? 6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6057 (exit $ac_status); } 6058{ (ac_try="$ac_compiler -v >&5" 6059case "(($ac_try" in 6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6061 *) ac_try_echo=$ac_try;; 6062esac 6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6064 (eval "$ac_compiler -v >&5") 2>&5 6065 ac_status=$? 6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6067 (exit $ac_status); } 6068{ (ac_try="$ac_compiler -V >&5" 6069case "(($ac_try" in 6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6071 *) ac_try_echo=$ac_try;; 6072esac 6073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6074 (eval "$ac_compiler -V >&5") 2>&5 6075 ac_status=$? 6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6077 (exit $ac_status); } 6078rm -f a.out 6079 6080# If we don't use `.F' as extension, the preprocessor is not run on the 6081# input file. (Note that this only needs to work for GNU compilers.) 6082ac_save_ext=$ac_ext 6083ac_ext=F 6084{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6085echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6086if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6087 echo $ECHO_N "(cached) $ECHO_C" >&6 6088else 6089 cat >conftest.$ac_ext <<_ACEOF 6090 program main 6091#ifndef __GNUC__ 6092 choke me 6093#endif 6094 6095 end 6096_ACEOF 6097rm -f conftest.$ac_objext 6098if { (ac_try="$ac_compile" 6099case "(($ac_try" in 6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6101 *) ac_try_echo=$ac_try;; 6102esac 6103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6104 (eval "$ac_compile") 2>conftest.er1 6105 ac_status=$? 6106 grep -v '^ *+' conftest.er1 >conftest.err 6107 rm -f conftest.er1 6108 cat conftest.err >&5 6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6110 (exit $ac_status); } && { 6111 test -z "$ac_f77_werror_flag" || 6112 test ! -s conftest.err 6113 } && test -s conftest.$ac_objext; then 6114 ac_compiler_gnu=yes 6115else 6116 echo "$as_me: failed program was:" >&5 6117sed 's/^/| /' conftest.$ac_ext >&5 6118 6119 ac_compiler_gnu=no 6120fi 6121 6122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6123ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6124 6125fi 6126{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6127echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6128ac_ext=$ac_save_ext 6129ac_test_FFLAGS=${FFLAGS+set} 6130ac_save_FFLAGS=$FFLAGS 6131FFLAGS= 6132{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6133echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6134if test "${ac_cv_prog_f77_g+set}" = set; then 6135 echo $ECHO_N "(cached) $ECHO_C" >&6 6136else 6137 FFLAGS=-g 6138cat >conftest.$ac_ext <<_ACEOF 6139 program main 6140 6141 end 6142_ACEOF 6143rm -f conftest.$ac_objext 6144if { (ac_try="$ac_compile" 6145case "(($ac_try" in 6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6147 *) ac_try_echo=$ac_try;; 6148esac 6149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6150 (eval "$ac_compile") 2>conftest.er1 6151 ac_status=$? 6152 grep -v '^ *+' conftest.er1 >conftest.err 6153 rm -f conftest.er1 6154 cat conftest.err >&5 6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6156 (exit $ac_status); } && { 6157 test -z "$ac_f77_werror_flag" || 6158 test ! -s conftest.err 6159 } && test -s conftest.$ac_objext; then 6160 ac_cv_prog_f77_g=yes 6161else 6162 echo "$as_me: failed program was:" >&5 6163sed 's/^/| /' conftest.$ac_ext >&5 6164 6165 ac_cv_prog_f77_g=no 6166fi 6167 6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6169 6170fi 6171{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6172echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6173if test "$ac_test_FFLAGS" = set; then 6174 FFLAGS=$ac_save_FFLAGS 6175elif test $ac_cv_prog_f77_g = yes; then 6176 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6177 FFLAGS="-g -O2" 6178 else 6179 FFLAGS="-g" 6180 fi 6181else 6182 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6183 FFLAGS="-O2" 6184 else 6185 FFLAGS= 6186 fi 6187fi 6188 6189G77=`test $ac_compiler_gnu = yes && echo yes` 6190ac_ext=c 6191ac_cpp='$CPP $CPPFLAGS' 6192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6194ac_compiler_gnu=$ac_cv_c_compiler_gnu 6195 6196 6197 6198# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6199# find the maximum length of command line arguments 6200{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6201echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6202if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6203 echo $ECHO_N "(cached) $ECHO_C" >&6 6204else 6205 i=0 6206 teststring="ABCD" 6207 6208 case $build_os in 6209 msdosdjgpp*) 6210 # On DJGPP, this test can blow up pretty badly due to problems in libc 6211 # (any single argument exceeding 2000 bytes causes a buffer overrun 6212 # during glob expansion). Even if it were fixed, the result of this 6213 # check would be larger than it should be. 6214 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6215 ;; 6216 6217 gnu*) 6218 # Under GNU Hurd, this test is not required because there is 6219 # no limit to the length of command line arguments. 6220 # Libtool will interpret -1 as no limit whatsoever 6221 lt_cv_sys_max_cmd_len=-1; 6222 ;; 6223 6224 cygwin* | mingw*) 6225 # On Win9x/ME, this test blows up -- it succeeds, but takes 6226 # about 5 minutes as the teststring grows exponentially. 6227 # Worse, since 9x/ME are not pre-emptively multitasking, 6228 # you end up with a "frozen" computer, even though with patience 6229 # the test eventually succeeds (with a max line length of 256k). 6230 # Instead, let's just punt: use the minimum linelength reported by 6231 # all of the supported platforms: 8192 (on NT/2K/XP). 6232 lt_cv_sys_max_cmd_len=8192; 6233 ;; 6234 6235 amigaos*) 6236 # On AmigaOS with pdksh, this test takes hours, literally. 6237 # So we just punt and use a minimum line length of 8192. 6238 lt_cv_sys_max_cmd_len=8192; 6239 ;; 6240 6241 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6242 # This has been around since 386BSD, at least. Likely further. 6243 if test -x /sbin/sysctl; then 6244 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6245 elif test -x /usr/sbin/sysctl; then 6246 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6247 else 6248 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6249 fi 6250 # And add a safety zone 6251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6253 ;; 6254 6255 interix*) 6256 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6257 lt_cv_sys_max_cmd_len=196608 6258 ;; 6259 6260 osf*) 6261 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6262 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6263 # nice to cause kernel panics so lets avoid the loop below. 6264 # First set a reasonable default. 6265 lt_cv_sys_max_cmd_len=16384 6266 # 6267 if test -x /sbin/sysconfig; then 6268 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6269 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6270 esac 6271 fi 6272 ;; 6273 sco3.2v5*) 6274 lt_cv_sys_max_cmd_len=102400 6275 ;; 6276 sysv5* | sco5v6* | sysv4.2uw2*) 6277 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6278 if test -n "$kargmax"; then 6279 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6280 else 6281 lt_cv_sys_max_cmd_len=32768 6282 fi 6283 ;; 6284 *) 6285 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6286 if test -n "$lt_cv_sys_max_cmd_len"; then 6287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6289 else 6290 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6291 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6292 = "XX$teststring") >/dev/null 2>&1 && 6293 new_result=`expr "X$teststring" : ".*" 2>&1` && 6294 lt_cv_sys_max_cmd_len=$new_result && 6295 test $i != 17 # 1/2 MB should be enough 6296 do 6297 i=`expr $i + 1` 6298 teststring=$teststring$teststring 6299 done 6300 teststring= 6301 # Add a significant safety factor because C++ compilers can tack on massive 6302 # amounts of additional arguments before passing them to the linker. 6303 # It appears as though 1/2 is a usable value. 6304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6305 fi 6306 ;; 6307 esac 6308 6309fi 6310 6311if test -n $lt_cv_sys_max_cmd_len ; then 6312 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6313echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6314else 6315 { echo "$as_me:$LINENO: result: none" >&5 6316echo "${ECHO_T}none" >&6; } 6317fi 6318 6319 6320 6321 6322 6323# Check for command to grab the raw symbol name followed by C symbol from nm. 6324{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6325echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6326if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6327 echo $ECHO_N "(cached) $ECHO_C" >&6 6328else 6329 6330# These are sane defaults that work on at least a few old systems. 6331# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6332 6333# Character class describing NM global symbol codes. 6334symcode='[BCDEGRST]' 6335 6336# Regexp to match symbols that can be accessed directly from C. 6337sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6338 6339# Transform an extracted symbol line into a proper C declaration 6340lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6341 6342# Transform an extracted symbol line into symbol name and symbol address 6343lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6344 6345# Define system-specific variables. 6346case $host_os in 6347aix*) 6348 symcode='[BCDT]' 6349 ;; 6350cygwin* | mingw* | pw32*) 6351 symcode='[ABCDGISTW]' 6352 ;; 6353hpux*) # Its linker distinguishes data from code symbols 6354 if test "$host_cpu" = ia64; then 6355 symcode='[ABCDEGRST]' 6356 fi 6357 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6358 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6359 ;; 6360linux* | k*bsd*-gnu) 6361 if test "$host_cpu" = ia64; then 6362 symcode='[ABCDGIRSTW]' 6363 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6364 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 6365 fi 6366 ;; 6367irix* | nonstopux*) 6368 symcode='[BCDEGRST]' 6369 ;; 6370osf*) 6371 symcode='[BCDEGQRST]' 6372 ;; 6373solaris*) 6374 symcode='[BDRT]' 6375 ;; 6376sco3.2v5*) 6377 symcode='[DT]' 6378 ;; 6379sysv4.2uw2*) 6380 symcode='[DT]' 6381 ;; 6382sysv5* | sco5v6* | unixware* | OpenUNIX*) 6383 symcode='[ABDT]' 6384 ;; 6385sysv4) 6386 symcode='[DFNSTU]' 6387 ;; 6388esac 6389 6390# Handle CRLF in mingw tool chain 6391opt_cr= 6392case $build_os in 6393mingw*) 6394 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6395 ;; 6396esac 6397 6398# If we're using GNU nm, then use its standard symbol codes. 6399case `$NM -V 2>&1` in 6400*GNU* | *'with BFD'*) 6401 symcode='[ABCDGIRSTW]' ;; 6402esac 6403 6404# Try without a prefix undercore, then with it. 6405for ac_symprfx in "" "_"; do 6406 6407 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6408 symxfrm="\\1 $ac_symprfx\\2 \\2" 6409 6410 # Write the raw and C identifiers. 6411 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6412 6413 # Check to see that the pipe works correctly. 6414 pipe_works=no 6415 6416 rm -f conftest* 6417 cat > conftest.$ac_ext <<EOF 6418#ifdef __cplusplus 6419extern "C" { 6420#endif 6421char nm_test_var; 6422void nm_test_func(){} 6423#ifdef __cplusplus 6424} 6425#endif 6426int main(){nm_test_var='a';nm_test_func();return(0);} 6427EOF 6428 6429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6430 (eval $ac_compile) 2>&5 6431 ac_status=$? 6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6433 (exit $ac_status); }; then 6434 # Now try to grab the symbols. 6435 nlist=conftest.nm 6436 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6437 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6438 ac_status=$? 6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6440 (exit $ac_status); } && test -s "$nlist"; then 6441 # Try sorting and uniquifying the output. 6442 if sort "$nlist" | uniq > "$nlist"T; then 6443 mv -f "$nlist"T "$nlist" 6444 else 6445 rm -f "$nlist"T 6446 fi 6447 6448 # Make sure that we snagged all the symbols we need. 6449 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6450 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6451 cat <<EOF > conftest.$ac_ext 6452#ifdef __cplusplus 6453extern "C" { 6454#endif 6455 6456EOF 6457 # Now generate the symbol file. 6458 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6459 6460 cat <<EOF >> conftest.$ac_ext 6461#if defined (__STDC__) && __STDC__ 6462# define lt_ptr_t void * 6463#else 6464# define lt_ptr_t char * 6465# define const 6466#endif 6467 6468/* The mapping between symbol names and symbols. */ 6469const struct { 6470 const char *name; 6471 lt_ptr_t address; 6472} 6473lt_preloaded_symbols[] = 6474{ 6475EOF 6476 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6477 cat <<\EOF >> conftest.$ac_ext 6478 {0, (lt_ptr_t) 0} 6479}; 6480 6481#ifdef __cplusplus 6482} 6483#endif 6484EOF 6485 # Now try linking the two files. 6486 mv conftest.$ac_objext conftstm.$ac_objext 6487 lt_save_LIBS="$LIBS" 6488 lt_save_CFLAGS="$CFLAGS" 6489 LIBS="conftstm.$ac_objext" 6490 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6492 (eval $ac_link) 2>&5 6493 ac_status=$? 6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6495 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6496 pipe_works=yes 6497 fi 6498 LIBS="$lt_save_LIBS" 6499 CFLAGS="$lt_save_CFLAGS" 6500 else 6501 echo "cannot find nm_test_func in $nlist" >&5 6502 fi 6503 else 6504 echo "cannot find nm_test_var in $nlist" >&5 6505 fi 6506 else 6507 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6508 fi 6509 else 6510 echo "$progname: failed program was:" >&5 6511 cat conftest.$ac_ext >&5 6512 fi 6513 rm -rf conftest* conftst* 6514 6515 # Do not use the global_symbol_pipe unless it works. 6516 if test "$pipe_works" = yes; then 6517 break 6518 else 6519 lt_cv_sys_global_symbol_pipe= 6520 fi 6521done 6522 6523fi 6524 6525if test -z "$lt_cv_sys_global_symbol_pipe"; then 6526 lt_cv_sys_global_symbol_to_cdecl= 6527fi 6528if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6529 { echo "$as_me:$LINENO: result: failed" >&5 6530echo "${ECHO_T}failed" >&6; } 6531else 6532 { echo "$as_me:$LINENO: result: ok" >&5 6533echo "${ECHO_T}ok" >&6; } 6534fi 6535 6536{ echo "$as_me:$LINENO: checking for objdir" >&5 6537echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6538if test "${lt_cv_objdir+set}" = set; then 6539 echo $ECHO_N "(cached) $ECHO_C" >&6 6540else 6541 rm -f .libs 2>/dev/null 6542mkdir .libs 2>/dev/null 6543if test -d .libs; then 6544 lt_cv_objdir=.libs 6545else 6546 # MS-DOS does not allow filenames that begin with a dot. 6547 lt_cv_objdir=_libs 6548fi 6549rmdir .libs 2>/dev/null 6550fi 6551{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6552echo "${ECHO_T}$lt_cv_objdir" >&6; } 6553objdir=$lt_cv_objdir 6554 6555 6556 6557 6558 6559case $host_os in 6560aix3*) 6561 # AIX sometimes has problems with the GCC collect2 program. For some 6562 # reason, if we set the COLLECT_NAMES environment variable, the problems 6563 # vanish in a puff of smoke. 6564 if test "X${COLLECT_NAMES+set}" != Xset; then 6565 COLLECT_NAMES= 6566 export COLLECT_NAMES 6567 fi 6568 ;; 6569esac 6570 6571# Sed substitution that helps us do robust quoting. It backslashifies 6572# metacharacters that are still active within double-quoted strings. 6573Xsed='sed -e 1s/^X//' 6574sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6575 6576# Same as above, but do not quote variable references. 6577double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6578 6579# Sed substitution to delay expansion of an escaped shell variable in a 6580# double_quote_subst'ed string. 6581delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6582 6583# Sed substitution to avoid accidental globbing in evaled expressions 6584no_glob_subst='s/\*/\\\*/g' 6585 6586# Constants: 6587rm="rm -f" 6588 6589# Global variables: 6590default_ofile=libtool 6591can_build_shared=yes 6592 6593# All known linkers require a `.a' archive for static linking (except MSVC, 6594# which needs '.lib'). 6595libext=a 6596ltmain="$ac_aux_dir/ltmain.sh" 6597ofile="$default_ofile" 6598with_gnu_ld="$lt_cv_prog_gnu_ld" 6599 6600if test -n "$ac_tool_prefix"; then 6601 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6602set dummy ${ac_tool_prefix}ar; ac_word=$2 6603{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6605if test "${ac_cv_prog_AR+set}" = set; then 6606 echo $ECHO_N "(cached) $ECHO_C" >&6 6607else 6608 if test -n "$AR"; then 6609 ac_cv_prog_AR="$AR" # Let the user override the test. 6610else 6611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6612for as_dir in $PATH 6613do 6614 IFS=$as_save_IFS 6615 test -z "$as_dir" && as_dir=. 6616 for ac_exec_ext in '' $ac_executable_extensions; do 6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6618 ac_cv_prog_AR="${ac_tool_prefix}ar" 6619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6620 break 2 6621 fi 6622done 6623done 6624IFS=$as_save_IFS 6625 6626fi 6627fi 6628AR=$ac_cv_prog_AR 6629if test -n "$AR"; then 6630 { echo "$as_me:$LINENO: result: $AR" >&5 6631echo "${ECHO_T}$AR" >&6; } 6632else 6633 { echo "$as_me:$LINENO: result: no" >&5 6634echo "${ECHO_T}no" >&6; } 6635fi 6636 6637 6638fi 6639if test -z "$ac_cv_prog_AR"; then 6640 ac_ct_AR=$AR 6641 # Extract the first word of "ar", so it can be a program name with args. 6642set dummy ar; ac_word=$2 6643{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6645if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6646 echo $ECHO_N "(cached) $ECHO_C" >&6 6647else 6648 if test -n "$ac_ct_AR"; then 6649 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6650else 6651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6652for as_dir in $PATH 6653do 6654 IFS=$as_save_IFS 6655 test -z "$as_dir" && as_dir=. 6656 for ac_exec_ext in '' $ac_executable_extensions; do 6657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6658 ac_cv_prog_ac_ct_AR="ar" 6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6660 break 2 6661 fi 6662done 6663done 6664IFS=$as_save_IFS 6665 6666fi 6667fi 6668ac_ct_AR=$ac_cv_prog_ac_ct_AR 6669if test -n "$ac_ct_AR"; then 6670 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6671echo "${ECHO_T}$ac_ct_AR" >&6; } 6672else 6673 { echo "$as_me:$LINENO: result: no" >&5 6674echo "${ECHO_T}no" >&6; } 6675fi 6676 6677 if test "x$ac_ct_AR" = x; then 6678 AR="false" 6679 else 6680 case $cross_compiling:$ac_tool_warned in 6681yes:) 6682{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6683whose name does not start with the host triplet. If you think this 6684configuration is useful to you, please write to autoconf@gnu.org." >&5 6685echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6686whose name does not start with the host triplet. If you think this 6687configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6688ac_tool_warned=yes ;; 6689esac 6690 AR=$ac_ct_AR 6691 fi 6692else 6693 AR="$ac_cv_prog_AR" 6694fi 6695 6696if test -n "$ac_tool_prefix"; then 6697 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6698set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6699{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6701if test "${ac_cv_prog_RANLIB+set}" = set; then 6702 echo $ECHO_N "(cached) $ECHO_C" >&6 6703else 6704 if test -n "$RANLIB"; then 6705 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6706else 6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6708for as_dir in $PATH 6709do 6710 IFS=$as_save_IFS 6711 test -z "$as_dir" && as_dir=. 6712 for ac_exec_ext in '' $ac_executable_extensions; do 6713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6714 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6716 break 2 6717 fi 6718done 6719done 6720IFS=$as_save_IFS 6721 6722fi 6723fi 6724RANLIB=$ac_cv_prog_RANLIB 6725if test -n "$RANLIB"; then 6726 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6727echo "${ECHO_T}$RANLIB" >&6; } 6728else 6729 { echo "$as_me:$LINENO: result: no" >&5 6730echo "${ECHO_T}no" >&6; } 6731fi 6732 6733 6734fi 6735if test -z "$ac_cv_prog_RANLIB"; then 6736 ac_ct_RANLIB=$RANLIB 6737 # Extract the first word of "ranlib", so it can be a program name with args. 6738set dummy ranlib; ac_word=$2 6739{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6741if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6742 echo $ECHO_N "(cached) $ECHO_C" >&6 6743else 6744 if test -n "$ac_ct_RANLIB"; then 6745 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6746else 6747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6748for as_dir in $PATH 6749do 6750 IFS=$as_save_IFS 6751 test -z "$as_dir" && as_dir=. 6752 for ac_exec_ext in '' $ac_executable_extensions; do 6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6754 ac_cv_prog_ac_ct_RANLIB="ranlib" 6755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6756 break 2 6757 fi 6758done 6759done 6760IFS=$as_save_IFS 6761 6762fi 6763fi 6764ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6765if test -n "$ac_ct_RANLIB"; then 6766 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6767echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6768else 6769 { echo "$as_me:$LINENO: result: no" >&5 6770echo "${ECHO_T}no" >&6; } 6771fi 6772 6773 if test "x$ac_ct_RANLIB" = x; then 6774 RANLIB=":" 6775 else 6776 case $cross_compiling:$ac_tool_warned in 6777yes:) 6778{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6779whose name does not start with the host triplet. If you think this 6780configuration is useful to you, please write to autoconf@gnu.org." >&5 6781echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6782whose name does not start with the host triplet. If you think this 6783configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6784ac_tool_warned=yes ;; 6785esac 6786 RANLIB=$ac_ct_RANLIB 6787 fi 6788else 6789 RANLIB="$ac_cv_prog_RANLIB" 6790fi 6791 6792if test -n "$ac_tool_prefix"; then 6793 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6794set dummy ${ac_tool_prefix}strip; ac_word=$2 6795{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6797if test "${ac_cv_prog_STRIP+set}" = set; then 6798 echo $ECHO_N "(cached) $ECHO_C" >&6 6799else 6800 if test -n "$STRIP"; then 6801 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6802else 6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6804for as_dir in $PATH 6805do 6806 IFS=$as_save_IFS 6807 test -z "$as_dir" && as_dir=. 6808 for ac_exec_ext in '' $ac_executable_extensions; do 6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6810 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6812 break 2 6813 fi 6814done 6815done 6816IFS=$as_save_IFS 6817 6818fi 6819fi 6820STRIP=$ac_cv_prog_STRIP 6821if test -n "$STRIP"; then 6822 { echo "$as_me:$LINENO: result: $STRIP" >&5 6823echo "${ECHO_T}$STRIP" >&6; } 6824else 6825 { echo "$as_me:$LINENO: result: no" >&5 6826echo "${ECHO_T}no" >&6; } 6827fi 6828 6829 6830fi 6831if test -z "$ac_cv_prog_STRIP"; then 6832 ac_ct_STRIP=$STRIP 6833 # Extract the first word of "strip", so it can be a program name with args. 6834set dummy strip; ac_word=$2 6835{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6837if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6838 echo $ECHO_N "(cached) $ECHO_C" >&6 6839else 6840 if test -n "$ac_ct_STRIP"; then 6841 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6842else 6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6844for as_dir in $PATH 6845do 6846 IFS=$as_save_IFS 6847 test -z "$as_dir" && as_dir=. 6848 for ac_exec_ext in '' $ac_executable_extensions; do 6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6850 ac_cv_prog_ac_ct_STRIP="strip" 6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6852 break 2 6853 fi 6854done 6855done 6856IFS=$as_save_IFS 6857 6858fi 6859fi 6860ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6861if test -n "$ac_ct_STRIP"; then 6862 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6863echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6864else 6865 { echo "$as_me:$LINENO: result: no" >&5 6866echo "${ECHO_T}no" >&6; } 6867fi 6868 6869 if test "x$ac_ct_STRIP" = x; then 6870 STRIP=":" 6871 else 6872 case $cross_compiling:$ac_tool_warned in 6873yes:) 6874{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6875whose name does not start with the host triplet. If you think this 6876configuration is useful to you, please write to autoconf@gnu.org." >&5 6877echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6878whose name does not start with the host triplet. If you think this 6879configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6880ac_tool_warned=yes ;; 6881esac 6882 STRIP=$ac_ct_STRIP 6883 fi 6884else 6885 STRIP="$ac_cv_prog_STRIP" 6886fi 6887 6888 6889old_CC="$CC" 6890old_CFLAGS="$CFLAGS" 6891 6892# Set sane defaults for various variables 6893test -z "$AR" && AR=ar 6894test -z "$AR_FLAGS" && AR_FLAGS=cru 6895test -z "$AS" && AS=as 6896test -z "$CC" && CC=cc 6897test -z "$LTCC" && LTCC=$CC 6898test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6899test -z "$DLLTOOL" && DLLTOOL=dlltool 6900test -z "$LD" && LD=ld 6901test -z "$LN_S" && LN_S="ln -s" 6902test -z "$MAGIC_CMD" && MAGIC_CMD=file 6903test -z "$NM" && NM=nm 6904test -z "$SED" && SED=sed 6905test -z "$OBJDUMP" && OBJDUMP=objdump 6906test -z "$RANLIB" && RANLIB=: 6907test -z "$STRIP" && STRIP=: 6908test -z "$ac_objext" && ac_objext=o 6909 6910# Determine commands to create old-style static archives. 6911old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6912old_postinstall_cmds='chmod 644 $oldlib' 6913old_postuninstall_cmds= 6914 6915if test -n "$RANLIB"; then 6916 case $host_os in 6917 openbsd*) 6918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6919 ;; 6920 *) 6921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6922 ;; 6923 esac 6924 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6925fi 6926 6927for cc_temp in $compiler""; do 6928 case $cc_temp in 6929 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6930 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6931 \-*) ;; 6932 *) break;; 6933 esac 6934done 6935cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6936 6937 6938# Only perform the check for file, if the check method requires it 6939case $deplibs_check_method in 6940file_magic*) 6941 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6942 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6943echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6944if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6945 echo $ECHO_N "(cached) $ECHO_C" >&6 6946else 6947 case $MAGIC_CMD in 6948[\\/*] | ?:[\\/]*) 6949 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6950 ;; 6951*) 6952 lt_save_MAGIC_CMD="$MAGIC_CMD" 6953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6954 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6955 for ac_dir in $ac_dummy; do 6956 IFS="$lt_save_ifs" 6957 test -z "$ac_dir" && ac_dir=. 6958 if test -f $ac_dir/${ac_tool_prefix}file; then 6959 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6960 if test -n "$file_magic_test_file"; then 6961 case $deplibs_check_method in 6962 "file_magic "*) 6963 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6965 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6966 $EGREP "$file_magic_regex" > /dev/null; then 6967 : 6968 else 6969 cat <<EOF 1>&2 6970 6971*** Warning: the command libtool uses to detect shared libraries, 6972*** $file_magic_cmd, produces output that libtool cannot recognize. 6973*** The result is that libtool may fail to recognize shared libraries 6974*** as such. This will affect the creation of libtool libraries that 6975*** depend on shared libraries, but programs linked with such libtool 6976*** libraries will work regardless of this problem. Nevertheless, you 6977*** may want to report the problem to your system manager and/or to 6978*** bug-libtool@gnu.org 6979 6980EOF 6981 fi ;; 6982 esac 6983 fi 6984 break 6985 fi 6986 done 6987 IFS="$lt_save_ifs" 6988 MAGIC_CMD="$lt_save_MAGIC_CMD" 6989 ;; 6990esac 6991fi 6992 6993MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6994if test -n "$MAGIC_CMD"; then 6995 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6996echo "${ECHO_T}$MAGIC_CMD" >&6; } 6997else 6998 { echo "$as_me:$LINENO: result: no" >&5 6999echo "${ECHO_T}no" >&6; } 7000fi 7001 7002if test -z "$lt_cv_path_MAGIC_CMD"; then 7003 if test -n "$ac_tool_prefix"; then 7004 { echo "$as_me:$LINENO: checking for file" >&5 7005echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7006if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7007 echo $ECHO_N "(cached) $ECHO_C" >&6 7008else 7009 case $MAGIC_CMD in 7010[\\/*] | ?:[\\/]*) 7011 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7012 ;; 7013*) 7014 lt_save_MAGIC_CMD="$MAGIC_CMD" 7015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7016 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7017 for ac_dir in $ac_dummy; do 7018 IFS="$lt_save_ifs" 7019 test -z "$ac_dir" && ac_dir=. 7020 if test -f $ac_dir/file; then 7021 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7022 if test -n "$file_magic_test_file"; then 7023 case $deplibs_check_method in 7024 "file_magic "*) 7025 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7027 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7028 $EGREP "$file_magic_regex" > /dev/null; then 7029 : 7030 else 7031 cat <<EOF 1>&2 7032 7033*** Warning: the command libtool uses to detect shared libraries, 7034*** $file_magic_cmd, produces output that libtool cannot recognize. 7035*** The result is that libtool may fail to recognize shared libraries 7036*** as such. This will affect the creation of libtool libraries that 7037*** depend on shared libraries, but programs linked with such libtool 7038*** libraries will work regardless of this problem. Nevertheless, you 7039*** may want to report the problem to your system manager and/or to 7040*** bug-libtool@gnu.org 7041 7042EOF 7043 fi ;; 7044 esac 7045 fi 7046 break 7047 fi 7048 done 7049 IFS="$lt_save_ifs" 7050 MAGIC_CMD="$lt_save_MAGIC_CMD" 7051 ;; 7052esac 7053fi 7054 7055MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7056if test -n "$MAGIC_CMD"; then 7057 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7058echo "${ECHO_T}$MAGIC_CMD" >&6; } 7059else 7060 { echo "$as_me:$LINENO: result: no" >&5 7061echo "${ECHO_T}no" >&6; } 7062fi 7063 7064 else 7065 MAGIC_CMD=: 7066 fi 7067fi 7068 7069 fi 7070 ;; 7071esac 7072 7073 7074 case $host_os in 7075 rhapsody* | darwin*) 7076 if test -n "$ac_tool_prefix"; then 7077 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7078set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7079{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7081if test "${ac_cv_prog_DSYMUTIL+set}" = set; then 7082 echo $ECHO_N "(cached) $ECHO_C" >&6 7083else 7084 if test -n "$DSYMUTIL"; then 7085 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7086else 7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7088for as_dir in $PATH 7089do 7090 IFS=$as_save_IFS 7091 test -z "$as_dir" && as_dir=. 7092 for ac_exec_ext in '' $ac_executable_extensions; do 7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7094 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7096 break 2 7097 fi 7098done 7099done 7100IFS=$as_save_IFS 7101 7102fi 7103fi 7104DSYMUTIL=$ac_cv_prog_DSYMUTIL 7105if test -n "$DSYMUTIL"; then 7106 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 7107echo "${ECHO_T}$DSYMUTIL" >&6; } 7108else 7109 { echo "$as_me:$LINENO: result: no" >&5 7110echo "${ECHO_T}no" >&6; } 7111fi 7112 7113 7114fi 7115if test -z "$ac_cv_prog_DSYMUTIL"; then 7116 ac_ct_DSYMUTIL=$DSYMUTIL 7117 # Extract the first word of "dsymutil", so it can be a program name with args. 7118set dummy dsymutil; ac_word=$2 7119{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7121if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then 7122 echo $ECHO_N "(cached) $ECHO_C" >&6 7123else 7124 if test -n "$ac_ct_DSYMUTIL"; then 7125 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7126else 7127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7128for as_dir in $PATH 7129do 7130 IFS=$as_save_IFS 7131 test -z "$as_dir" && as_dir=. 7132 for ac_exec_ext in '' $ac_executable_extensions; do 7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7134 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7136 break 2 7137 fi 7138done 7139done 7140IFS=$as_save_IFS 7141 7142fi 7143fi 7144ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7145if test -n "$ac_ct_DSYMUTIL"; then 7146 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 7147echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } 7148else 7149 { echo "$as_me:$LINENO: result: no" >&5 7150echo "${ECHO_T}no" >&6; } 7151fi 7152 7153 if test "x$ac_ct_DSYMUTIL" = x; then 7154 DSYMUTIL=":" 7155 else 7156 case $cross_compiling:$ac_tool_warned in 7157yes:) 7158{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7159whose name does not start with the host triplet. If you think this 7160configuration is useful to you, please write to autoconf@gnu.org." >&5 7161echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7162whose name does not start with the host triplet. If you think this 7163configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7164ac_tool_warned=yes ;; 7165esac 7166 DSYMUTIL=$ac_ct_DSYMUTIL 7167 fi 7168else 7169 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7170fi 7171 7172 if test -n "$ac_tool_prefix"; then 7173 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7174set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7175{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7177if test "${ac_cv_prog_NMEDIT+set}" = set; then 7178 echo $ECHO_N "(cached) $ECHO_C" >&6 7179else 7180 if test -n "$NMEDIT"; then 7181 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7182else 7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7184for as_dir in $PATH 7185do 7186 IFS=$as_save_IFS 7187 test -z "$as_dir" && as_dir=. 7188 for ac_exec_ext in '' $ac_executable_extensions; do 7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7190 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7192 break 2 7193 fi 7194done 7195done 7196IFS=$as_save_IFS 7197 7198fi 7199fi 7200NMEDIT=$ac_cv_prog_NMEDIT 7201if test -n "$NMEDIT"; then 7202 { echo "$as_me:$LINENO: result: $NMEDIT" >&5 7203echo "${ECHO_T}$NMEDIT" >&6; } 7204else 7205 { echo "$as_me:$LINENO: result: no" >&5 7206echo "${ECHO_T}no" >&6; } 7207fi 7208 7209 7210fi 7211if test -z "$ac_cv_prog_NMEDIT"; then 7212 ac_ct_NMEDIT=$NMEDIT 7213 # Extract the first word of "nmedit", so it can be a program name with args. 7214set dummy nmedit; ac_word=$2 7215{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7217if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then 7218 echo $ECHO_N "(cached) $ECHO_C" >&6 7219else 7220 if test -n "$ac_ct_NMEDIT"; then 7221 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7222else 7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7224for as_dir in $PATH 7225do 7226 IFS=$as_save_IFS 7227 test -z "$as_dir" && as_dir=. 7228 for ac_exec_ext in '' $ac_executable_extensions; do 7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7230 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7232 break 2 7233 fi 7234done 7235done 7236IFS=$as_save_IFS 7237 7238fi 7239fi 7240ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7241if test -n "$ac_ct_NMEDIT"; then 7242 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 7243echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } 7244else 7245 { echo "$as_me:$LINENO: result: no" >&5 7246echo "${ECHO_T}no" >&6; } 7247fi 7248 7249 if test "x$ac_ct_NMEDIT" = x; then 7250 NMEDIT=":" 7251 else 7252 case $cross_compiling:$ac_tool_warned in 7253yes:) 7254{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7255whose name does not start with the host triplet. If you think this 7256configuration is useful to you, please write to autoconf@gnu.org." >&5 7257echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7258whose name does not start with the host triplet. If you think this 7259configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7260ac_tool_warned=yes ;; 7261esac 7262 NMEDIT=$ac_ct_NMEDIT 7263 fi 7264else 7265 NMEDIT="$ac_cv_prog_NMEDIT" 7266fi 7267 7268 7269 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 7270echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } 7271if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7272 echo $ECHO_N "(cached) $ECHO_C" >&6 7273else 7274 lt_cv_apple_cc_single_mod=no 7275 if test -z "${LT_MULTI_MODULE}"; then 7276 # By default we will add the -single_module flag. You can override 7277 # by either setting the environment variable LT_MULTI_MODULE 7278 # non-empty at configure time, or by adding -multi_module to the 7279 # link flags. 7280 echo "int foo(void){return 1;}" > conftest.c 7281 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7282 -dynamiclib ${wl}-single_module conftest.c 7283 if test -f libconftest.dylib; then 7284 lt_cv_apple_cc_single_mod=yes 7285 rm -rf libconftest.dylib* 7286 fi 7287 rm conftest.c 7288 fi 7289fi 7290{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 7291echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } 7292 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 7293echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } 7294if test "${lt_cv_ld_exported_symbols_list+set}" = set; then 7295 echo $ECHO_N "(cached) $ECHO_C" >&6 7296else 7297 lt_cv_ld_exported_symbols_list=no 7298 save_LDFLAGS=$LDFLAGS 7299 echo "_main" > conftest.sym 7300 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7301 cat >conftest.$ac_ext <<_ACEOF 7302/* confdefs.h. */ 7303_ACEOF 7304cat confdefs.h >>conftest.$ac_ext 7305cat >>conftest.$ac_ext <<_ACEOF 7306/* end confdefs.h. */ 7307 7308int 7309main () 7310{ 7311 7312 ; 7313 return 0; 7314} 7315_ACEOF 7316rm -f conftest.$ac_objext conftest$ac_exeext 7317if { (ac_try="$ac_link" 7318case "(($ac_try" in 7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7320 *) ac_try_echo=$ac_try;; 7321esac 7322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7323 (eval "$ac_link") 2>conftest.er1 7324 ac_status=$? 7325 grep -v '^ *+' conftest.er1 >conftest.err 7326 rm -f conftest.er1 7327 cat conftest.err >&5 7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7329 (exit $ac_status); } && { 7330 test -z "$ac_c_werror_flag" || 7331 test ! -s conftest.err 7332 } && test -s conftest$ac_exeext && 7333 $as_test_x conftest$ac_exeext; then 7334 lt_cv_ld_exported_symbols_list=yes 7335else 7336 echo "$as_me: failed program was:" >&5 7337sed 's/^/| /' conftest.$ac_ext >&5 7338 7339 lt_cv_ld_exported_symbols_list=no 7340fi 7341 7342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7343 conftest$ac_exeext conftest.$ac_ext 7344 LDFLAGS="$save_LDFLAGS" 7345 7346fi 7347{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 7348echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } 7349 case $host_os in 7350 rhapsody* | darwin1.[0123]) 7351 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7352 darwin1.*) 7353 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7354 darwin*) 7355 # if running on 10.5 or later, the deployment target defaults 7356 # to the OS version, if on x86, and 10.4, the deployment 7357 # target defaults to 10.4. Don't you love it? 7358 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7359 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7360 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7361 10.[012]*) 7362 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7363 10.*) 7364 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7365 esac 7366 ;; 7367 esac 7368 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7369 _lt_dar_single_mod='$single_module' 7370 fi 7371 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7372 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7373 else 7374 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 7375 fi 7376 if test "$DSYMUTIL" != ":"; then 7377 _lt_dsymutil="~$DSYMUTIL \$lib || :" 7378 else 7379 _lt_dsymutil= 7380 fi 7381 ;; 7382 esac 7383 7384 7385enable_dlopen=no 7386enable_win32_dll=no 7387 7388# Check whether --enable-libtool-lock was given. 7389if test "${enable_libtool_lock+set}" = set; then 7390 enableval=$enable_libtool_lock; 7391fi 7392 7393test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7394 7395 7396# Check whether --with-pic was given. 7397if test "${with_pic+set}" = set; then 7398 withval=$with_pic; pic_mode="$withval" 7399else 7400 pic_mode=default 7401fi 7402 7403test -z "$pic_mode" && pic_mode=default 7404 7405# Use C for the default configuration in the libtool script 7406tagname= 7407lt_save_CC="$CC" 7408ac_ext=c 7409ac_cpp='$CPP $CPPFLAGS' 7410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7412ac_compiler_gnu=$ac_cv_c_compiler_gnu 7413 7414 7415# Source file extension for C test sources. 7416ac_ext=c 7417 7418# Object file extension for compiled C test sources. 7419objext=o 7420objext=$objext 7421 7422# Code to be used in simple compile tests 7423lt_simple_compile_test_code="int some_variable = 0;" 7424 7425# Code to be used in simple link tests 7426lt_simple_link_test_code='int main(){return(0);}' 7427 7428 7429# If no C compiler was specified, use CC. 7430LTCC=${LTCC-"$CC"} 7431 7432# If no C compiler flags were specified, use CFLAGS. 7433LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7434 7435# Allow CC to be a program name with arguments. 7436compiler=$CC 7437 7438 7439# save warnings/boilerplate of simple test code 7440ac_outfile=conftest.$ac_objext 7441echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7442eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7443_lt_compiler_boilerplate=`cat conftest.err` 7444$rm conftest* 7445 7446ac_outfile=conftest.$ac_objext 7447echo "$lt_simple_link_test_code" >conftest.$ac_ext 7448eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7449_lt_linker_boilerplate=`cat conftest.err` 7450$rm -r conftest* 7451 7452 7453 7454lt_prog_compiler_no_builtin_flag= 7455 7456if test "$GCC" = yes; then 7457 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7458 7459 7460{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7461echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7462if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7463 echo $ECHO_N "(cached) $ECHO_C" >&6 7464else 7465 lt_cv_prog_compiler_rtti_exceptions=no 7466 ac_outfile=conftest.$ac_objext 7467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7468 lt_compiler_flag="-fno-rtti -fno-exceptions" 7469 # Insert the option either (1) after the last *FLAGS variable, or 7470 # (2) before a word containing "conftest.", or (3) at the end. 7471 # Note that $ac_compile itself does not contain backslashes and begins 7472 # with a dollar sign (not a hyphen), so the echo should work correctly. 7473 # The option is referenced via a variable to avoid confusing sed. 7474 lt_compile=`echo "$ac_compile" | $SED \ 7475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7477 -e 's:$: $lt_compiler_flag:'` 7478 (eval echo "\"\$as_me:7478: $lt_compile\"" >&5) 7479 (eval "$lt_compile" 2>conftest.err) 7480 ac_status=$? 7481 cat conftest.err >&5 7482 echo "$as_me:7482: \$? = $ac_status" >&5 7483 if (exit $ac_status) && test -s "$ac_outfile"; then 7484 # The compiler can only warn and ignore the option if not recognized 7485 # So say no if there are warnings other than the usual output. 7486 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7489 lt_cv_prog_compiler_rtti_exceptions=yes 7490 fi 7491 fi 7492 $rm conftest* 7493 7494fi 7495{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7496echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7497 7498if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7499 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7500else 7501 : 7502fi 7503 7504fi 7505 7506lt_prog_compiler_wl= 7507lt_prog_compiler_pic= 7508lt_prog_compiler_static= 7509 7510{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7511echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7512 7513 if test "$GCC" = yes; then 7514 lt_prog_compiler_wl='-Wl,' 7515 lt_prog_compiler_static='-static' 7516 7517 case $host_os in 7518 aix*) 7519 # All AIX code is PIC. 7520 if test "$host_cpu" = ia64; then 7521 # AIX 5 now supports IA64 processor 7522 lt_prog_compiler_static='-Bstatic' 7523 fi 7524 ;; 7525 7526 amigaos*) 7527 # FIXME: we need at least 68020 code to build shared libraries, but 7528 # adding the `-m68020' flag to GCC prevents building anything better, 7529 # like `-m68040'. 7530 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7531 ;; 7532 7533 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7534 # PIC is the default for these OSes. 7535 ;; 7536 7537 mingw* | cygwin* | pw32* | os2*) 7538 # This hack is so that the source file can tell whether it is being 7539 # built for inclusion in a dll (and should export symbols for example). 7540 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7541 # (--disable-auto-import) libraries 7542 lt_prog_compiler_pic='-DDLL_EXPORT' 7543 ;; 7544 7545 darwin* | rhapsody*) 7546 # PIC is the default on this platform 7547 # Common symbols not allowed in MH_DYLIB files 7548 lt_prog_compiler_pic='-fno-common' 7549 ;; 7550 7551 interix[3-9]*) 7552 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7553 # Instead, we relocate shared libraries at runtime. 7554 ;; 7555 7556 msdosdjgpp*) 7557 # Just because we use GCC doesn't mean we suddenly get shared libraries 7558 # on systems that don't support them. 7559 lt_prog_compiler_can_build_shared=no 7560 enable_shared=no 7561 ;; 7562 7563 sysv4*MP*) 7564 if test -d /usr/nec; then 7565 lt_prog_compiler_pic=-Kconform_pic 7566 fi 7567 ;; 7568 7569 hpux*) 7570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7571 # not for PA HP-UX. 7572 case $host_cpu in 7573 hppa*64*|ia64*) 7574 # +Z the default 7575 ;; 7576 *) 7577 lt_prog_compiler_pic='-fPIC' 7578 ;; 7579 esac 7580 ;; 7581 7582 *) 7583 lt_prog_compiler_pic='-fPIC' 7584 ;; 7585 esac 7586 else 7587 # PORTME Check for flag to pass linker flags through the system compiler. 7588 case $host_os in 7589 aix*) 7590 lt_prog_compiler_wl='-Wl,' 7591 if test "$host_cpu" = ia64; then 7592 # AIX 5 now supports IA64 processor 7593 lt_prog_compiler_static='-Bstatic' 7594 else 7595 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7596 fi 7597 ;; 7598 darwin*) 7599 # PIC is the default on this platform 7600 # Common symbols not allowed in MH_DYLIB files 7601 case $cc_basename in 7602 xlc*) 7603 lt_prog_compiler_pic='-qnocommon' 7604 lt_prog_compiler_wl='-Wl,' 7605 ;; 7606 esac 7607 ;; 7608 7609 mingw* | cygwin* | pw32* | os2*) 7610 # This hack is so that the source file can tell whether it is being 7611 # built for inclusion in a dll (and should export symbols for example). 7612 lt_prog_compiler_pic='-DDLL_EXPORT' 7613 ;; 7614 7615 hpux9* | hpux10* | hpux11*) 7616 lt_prog_compiler_wl='-Wl,' 7617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7618 # not for PA HP-UX. 7619 case $host_cpu in 7620 hppa*64*|ia64*) 7621 # +Z the default 7622 ;; 7623 *) 7624 lt_prog_compiler_pic='+Z' 7625 ;; 7626 esac 7627 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7628 lt_prog_compiler_static='${wl}-a ${wl}archive' 7629 ;; 7630 7631 irix5* | irix6* | nonstopux*) 7632 lt_prog_compiler_wl='-Wl,' 7633 # PIC (with -KPIC) is the default. 7634 lt_prog_compiler_static='-non_shared' 7635 ;; 7636 7637 newsos6) 7638 lt_prog_compiler_pic='-KPIC' 7639 lt_prog_compiler_static='-Bstatic' 7640 ;; 7641 7642 linux* | k*bsd*-gnu) 7643 case $cc_basename in 7644 icc* | ecc*) 7645 lt_prog_compiler_wl='-Wl,' 7646 lt_prog_compiler_pic='-KPIC' 7647 lt_prog_compiler_static='-static' 7648 ;; 7649 pgcc* | pgf77* | pgf90* | pgf95*) 7650 # Portland Group compilers (*not* the Pentium gcc compiler, 7651 # which looks to be a dead project) 7652 lt_prog_compiler_wl='-Wl,' 7653 lt_prog_compiler_pic='-fpic' 7654 lt_prog_compiler_static='-Bstatic' 7655 ;; 7656 ccc*) 7657 lt_prog_compiler_wl='-Wl,' 7658 # All Alpha code is PIC. 7659 lt_prog_compiler_static='-non_shared' 7660 ;; 7661 *) 7662 case `$CC -V 2>&1 | sed 5q` in 7663 *Sun\ C*) 7664 # Sun C 5.9 7665 lt_prog_compiler_pic='-KPIC' 7666 lt_prog_compiler_static='-Bstatic' 7667 lt_prog_compiler_wl='-Wl,' 7668 ;; 7669 *Sun\ F*) 7670 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7671 lt_prog_compiler_pic='-KPIC' 7672 lt_prog_compiler_static='-Bstatic' 7673 lt_prog_compiler_wl='' 7674 ;; 7675 esac 7676 ;; 7677 esac 7678 ;; 7679 7680 osf3* | osf4* | osf5*) 7681 lt_prog_compiler_wl='-Wl,' 7682 # All OSF/1 code is PIC. 7683 lt_prog_compiler_static='-non_shared' 7684 ;; 7685 7686 rdos*) 7687 lt_prog_compiler_static='-non_shared' 7688 ;; 7689 7690 solaris*) 7691 lt_prog_compiler_pic='-KPIC' 7692 lt_prog_compiler_static='-Bstatic' 7693 case $cc_basename in 7694 f77* | f90* | f95*) 7695 lt_prog_compiler_wl='-Qoption ld ';; 7696 *) 7697 lt_prog_compiler_wl='-Wl,';; 7698 esac 7699 ;; 7700 7701 sunos4*) 7702 lt_prog_compiler_wl='-Qoption ld ' 7703 lt_prog_compiler_pic='-PIC' 7704 lt_prog_compiler_static='-Bstatic' 7705 ;; 7706 7707 sysv4 | sysv4.2uw2* | sysv4.3*) 7708 lt_prog_compiler_wl='-Wl,' 7709 lt_prog_compiler_pic='-KPIC' 7710 lt_prog_compiler_static='-Bstatic' 7711 ;; 7712 7713 sysv4*MP*) 7714 if test -d /usr/nec ;then 7715 lt_prog_compiler_pic='-Kconform_pic' 7716 lt_prog_compiler_static='-Bstatic' 7717 fi 7718 ;; 7719 7720 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7721 lt_prog_compiler_wl='-Wl,' 7722 lt_prog_compiler_pic='-KPIC' 7723 lt_prog_compiler_static='-Bstatic' 7724 ;; 7725 7726 unicos*) 7727 lt_prog_compiler_wl='-Wl,' 7728 lt_prog_compiler_can_build_shared=no 7729 ;; 7730 7731 uts4*) 7732 lt_prog_compiler_pic='-pic' 7733 lt_prog_compiler_static='-Bstatic' 7734 ;; 7735 7736 *) 7737 lt_prog_compiler_can_build_shared=no 7738 ;; 7739 esac 7740 fi 7741 7742{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7743echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7744 7745# 7746# Check to make sure the PIC flag actually works. 7747# 7748if test -n "$lt_prog_compiler_pic"; then 7749 7750{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7751echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7752if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 7753 echo $ECHO_N "(cached) $ECHO_C" >&6 7754else 7755 lt_cv_prog_compiler_pic_works=no 7756 ac_outfile=conftest.$ac_objext 7757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7758 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7759 # Insert the option either (1) after the last *FLAGS variable, or 7760 # (2) before a word containing "conftest.", or (3) at the end. 7761 # Note that $ac_compile itself does not contain backslashes and begins 7762 # with a dollar sign (not a hyphen), so the echo should work correctly. 7763 # The option is referenced via a variable to avoid confusing sed. 7764 lt_compile=`echo "$ac_compile" | $SED \ 7765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7767 -e 's:$: $lt_compiler_flag:'` 7768 (eval echo "\"\$as_me:7768: $lt_compile\"" >&5) 7769 (eval "$lt_compile" 2>conftest.err) 7770 ac_status=$? 7771 cat conftest.err >&5 7772 echo "$as_me:7772: \$? = $ac_status" >&5 7773 if (exit $ac_status) && test -s "$ac_outfile"; then 7774 # The compiler can only warn and ignore the option if not recognized 7775 # So say no if there are warnings other than the usual output. 7776 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7779 lt_cv_prog_compiler_pic_works=yes 7780 fi 7781 fi 7782 $rm conftest* 7783 7784fi 7785{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 7786echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } 7787 7788if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7789 case $lt_prog_compiler_pic in 7790 "" | " "*) ;; 7791 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7792 esac 7793else 7794 lt_prog_compiler_pic= 7795 lt_prog_compiler_can_build_shared=no 7796fi 7797 7798fi 7799case $host_os in 7800 # For platforms which do not support PIC, -DPIC is meaningless: 7801 *djgpp*) 7802 lt_prog_compiler_pic= 7803 ;; 7804 *) 7805 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7806 ;; 7807esac 7808 7809# 7810# Check to make sure the static flag actually works. 7811# 7812wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7813{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7814echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7815if test "${lt_cv_prog_compiler_static_works+set}" = set; then 7816 echo $ECHO_N "(cached) $ECHO_C" >&6 7817else 7818 lt_cv_prog_compiler_static_works=no 7819 save_LDFLAGS="$LDFLAGS" 7820 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7821 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7823 # The linker can only warn and ignore the option if not recognized 7824 # So say no if there are warnings 7825 if test -s conftest.err; then 7826 # Append any errors to the config.log. 7827 cat conftest.err 1>&5 7828 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7830 if diff conftest.exp conftest.er2 >/dev/null; then 7831 lt_cv_prog_compiler_static_works=yes 7832 fi 7833 else 7834 lt_cv_prog_compiler_static_works=yes 7835 fi 7836 fi 7837 $rm -r conftest* 7838 LDFLAGS="$save_LDFLAGS" 7839 7840fi 7841{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 7842echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } 7843 7844if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7845 : 7846else 7847 lt_prog_compiler_static= 7848fi 7849 7850 7851{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7852echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7853if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7854 echo $ECHO_N "(cached) $ECHO_C" >&6 7855else 7856 lt_cv_prog_compiler_c_o=no 7857 $rm -r conftest 2>/dev/null 7858 mkdir conftest 7859 cd conftest 7860 mkdir out 7861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7862 7863 lt_compiler_flag="-o out/conftest2.$ac_objext" 7864 # Insert the option either (1) after the last *FLAGS variable, or 7865 # (2) before a word containing "conftest.", or (3) at the end. 7866 # Note that $ac_compile itself does not contain backslashes and begins 7867 # with a dollar sign (not a hyphen), so the echo should work correctly. 7868 lt_compile=`echo "$ac_compile" | $SED \ 7869 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7871 -e 's:$: $lt_compiler_flag:'` 7872 (eval echo "\"\$as_me:7872: $lt_compile\"" >&5) 7873 (eval "$lt_compile" 2>out/conftest.err) 7874 ac_status=$? 7875 cat out/conftest.err >&5 7876 echo "$as_me:7876: \$? = $ac_status" >&5 7877 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7878 then 7879 # The compiler can only warn and ignore the option if not recognized 7880 # So say no if there are warnings 7881 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7882 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7883 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7884 lt_cv_prog_compiler_c_o=yes 7885 fi 7886 fi 7887 chmod u+w . 2>&5 7888 $rm conftest* 7889 # SGI C++ compiler will create directory out/ii_files/ for 7890 # template instantiation 7891 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7892 $rm out/* && rmdir out 7893 cd .. 7894 rmdir conftest 7895 $rm conftest* 7896 7897fi 7898{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7899echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7900 7901 7902hard_links="nottested" 7903if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7904 # do not overwrite the value of need_locks provided by the user 7905 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7906echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7907 hard_links=yes 7908 $rm conftest* 7909 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7910 touch conftest.a 7911 ln conftest.a conftest.b 2>&5 || hard_links=no 7912 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7913 { echo "$as_me:$LINENO: result: $hard_links" >&5 7914echo "${ECHO_T}$hard_links" >&6; } 7915 if test "$hard_links" = no; then 7916 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7917echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7918 need_locks=warn 7919 fi 7920else 7921 need_locks=no 7922fi 7923 7924{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7925echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7926 7927 runpath_var= 7928 allow_undefined_flag= 7929 enable_shared_with_static_runtimes=no 7930 archive_cmds= 7931 archive_expsym_cmds= 7932 old_archive_From_new_cmds= 7933 old_archive_from_expsyms_cmds= 7934 export_dynamic_flag_spec= 7935 whole_archive_flag_spec= 7936 thread_safe_flag_spec= 7937 hardcode_libdir_flag_spec= 7938 hardcode_libdir_flag_spec_ld= 7939 hardcode_libdir_separator= 7940 hardcode_direct=no 7941 hardcode_minus_L=no 7942 hardcode_shlibpath_var=unsupported 7943 link_all_deplibs=unknown 7944 hardcode_automatic=no 7945 module_cmds= 7946 module_expsym_cmds= 7947 always_export_symbols=no 7948 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7949 # include_expsyms should be a list of space-separated symbols to be *always* 7950 # included in the symbol list 7951 include_expsyms= 7952 # exclude_expsyms can be an extended regexp of symbols to exclude 7953 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7954 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7955 # as well as any symbol that contains `d'. 7956 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7957 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7958 # platforms (ab)use it in PIC code, but their linkers get confused if 7959 # the symbol is explicitly referenced. Since portable code cannot 7960 # rely on this symbol name, it's probably fine to never include it in 7961 # preloaded symbol tables. 7962 # Exclude shared library initialization/finalization symbols. 7963 extract_expsyms_cmds= 7964 # Just being paranoid about ensuring that cc_basename is set. 7965 for cc_temp in $compiler""; do 7966 case $cc_temp in 7967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7969 \-*) ;; 7970 *) break;; 7971 esac 7972done 7973cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7974 7975 case $host_os in 7976 cygwin* | mingw* | pw32*) 7977 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7978 # When not using gcc, we currently assume that we are using 7979 # Microsoft Visual C++. 7980 if test "$GCC" != yes; then 7981 with_gnu_ld=no 7982 fi 7983 ;; 7984 interix*) 7985 # we just hope/assume this is gcc and not c89 (= MSVC++) 7986 with_gnu_ld=yes 7987 ;; 7988 openbsd*) 7989 with_gnu_ld=no 7990 ;; 7991 esac 7992 7993 ld_shlibs=yes 7994 if test "$with_gnu_ld" = yes; then 7995 # If archive_cmds runs LD, not CC, wlarc should be empty 7996 wlarc='${wl}' 7997 7998 # Set some defaults for GNU ld with shared library support. These 7999 # are reset later if shared libraries are not supported. Putting them 8000 # here allows them to be overridden if necessary. 8001 runpath_var=LD_RUN_PATH 8002 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 8003 export_dynamic_flag_spec='${wl}--export-dynamic' 8004 # ancient GNU ld didn't support --whole-archive et. al. 8005 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 8006 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8007 else 8008 whole_archive_flag_spec= 8009 fi 8010 supports_anon_versioning=no 8011 case `$LD -v 2>/dev/null` in 8012 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8013 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8014 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8015 *\ 2.11.*) ;; # other 2.11 versions 8016 *) supports_anon_versioning=yes ;; 8017 esac 8018 8019 # See if GNU ld supports shared libraries. 8020 case $host_os in 8021 aix[3-9]*) 8022 # On AIX/PPC, the GNU linker is very broken 8023 if test "$host_cpu" != ia64; then 8024 ld_shlibs=no 8025 cat <<EOF 1>&2 8026 8027*** Warning: the GNU linker, at least up to release 2.9.1, is reported 8028*** to be unable to reliably create shared libraries on AIX. 8029*** Therefore, libtool is disabling shared libraries support. If you 8030*** really care for shared libraries, you may want to modify your PATH 8031*** so that a non-GNU linker is found, and then restart. 8032 8033EOF 8034 fi 8035 ;; 8036 8037 amigaos*) 8038 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)' 8039 hardcode_libdir_flag_spec='-L$libdir' 8040 hardcode_minus_L=yes 8041 8042 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8043 # that the semantics of dynamic libraries on AmigaOS, at least up 8044 # to version 4, is to share data among multiple programs linked 8045 # with the same dynamic library. Since this doesn't match the 8046 # behavior of shared libraries on other platforms, we can't use 8047 # them. 8048 ld_shlibs=no 8049 ;; 8050 8051 beos*) 8052 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8053 allow_undefined_flag=unsupported 8054 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8055 # support --undefined. This deserves some investigation. FIXME 8056 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8057 else 8058 ld_shlibs=no 8059 fi 8060 ;; 8061 8062 cygwin* | mingw* | pw32*) 8063 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8064 # as there is no search path for DLLs. 8065 hardcode_libdir_flag_spec='-L$libdir' 8066 allow_undefined_flag=unsupported 8067 always_export_symbols=no 8068 enable_shared_with_static_runtimes=yes 8069 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8070 8071 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 8072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8073 # If the export-symbols file already is a .def file (1st line 8074 # is EXPORTS), use it as is; otherwise, prepend... 8075 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8076 cp $export_symbols $output_objdir/$soname.def; 8077 else 8078 echo EXPORTS > $output_objdir/$soname.def; 8079 cat $export_symbols >> $output_objdir/$soname.def; 8080 fi~ 8081 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8082 else 8083 ld_shlibs=no 8084 fi 8085 ;; 8086 8087 interix[3-9]*) 8088 hardcode_direct=no 8089 hardcode_shlibpath_var=no 8090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8091 export_dynamic_flag_spec='${wl}-E' 8092 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8093 # Instead, shared libraries are loaded at an image base (0x10000000 by 8094 # default) and relocated if they conflict, which is a slow very memory 8095 # consuming and fragmenting process. To avoid this, we pick a random, 8096 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8097 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8099 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' 8100 ;; 8101 8102 gnu* | linux* | k*bsd*-gnu) 8103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8104 tmp_addflag= 8105 case $cc_basename,$host_cpu in 8106 pgcc*) # Portland Group C compiler 8107 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' 8108 tmp_addflag=' $pic_flag' 8109 ;; 8110 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8111 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' 8112 tmp_addflag=' $pic_flag -Mnomain' ;; 8113 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8114 tmp_addflag=' -i_dynamic' ;; 8115 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8116 tmp_addflag=' -i_dynamic -nofor_main' ;; 8117 ifc* | ifort*) # Intel Fortran compiler 8118 tmp_addflag=' -nofor_main' ;; 8119 esac 8120 case `$CC -V 2>&1 | sed 5q` in 8121 *Sun\ C*) # Sun C 5.9 8122 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' 8123 tmp_sharedflag='-G' ;; 8124 *Sun\ F*) # Sun Fortran 8.3 8125 tmp_sharedflag='-G' ;; 8126 *) 8127 tmp_sharedflag='-shared' ;; 8128 esac 8129 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8130 8131 if test $supports_anon_versioning = yes; then 8132 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8134 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8135 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8136 fi 8137 link_all_deplibs=no 8138 else 8139 ld_shlibs=no 8140 fi 8141 ;; 8142 8143 netbsd* | netbsdelf*-gnu) 8144 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8145 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8146 wlarc= 8147 else 8148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8150 fi 8151 ;; 8152 8153 solaris*) 8154 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8155 ld_shlibs=no 8156 cat <<EOF 1>&2 8157 8158*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8159*** create shared libraries on Solaris systems. Therefore, libtool 8160*** is disabling shared libraries support. We urge you to upgrade GNU 8161*** binutils to release 2.9.1 or newer. Another option is to modify 8162*** your PATH or compiler configuration so that the native linker is 8163*** used, and then restart. 8164 8165EOF 8166 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8168 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8169 else 8170 ld_shlibs=no 8171 fi 8172 ;; 8173 8174 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8175 case `$LD -v 2>&1` in 8176 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8177 ld_shlibs=no 8178 cat <<_LT_EOF 1>&2 8179 8180*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8181*** reliably create shared libraries on SCO systems. Therefore, libtool 8182*** is disabling shared libraries support. We urge you to upgrade GNU 8183*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8184*** your PATH or compiler configuration so that the native linker is 8185*** used, and then restart. 8186 8187_LT_EOF 8188 ;; 8189 *) 8190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8191 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8194 else 8195 ld_shlibs=no 8196 fi 8197 ;; 8198 esac 8199 ;; 8200 8201 sunos4*) 8202 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8203 wlarc= 8204 hardcode_direct=yes 8205 hardcode_shlibpath_var=no 8206 ;; 8207 8208 *) 8209 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8212 else 8213 ld_shlibs=no 8214 fi 8215 ;; 8216 esac 8217 8218 if test "$ld_shlibs" = no; then 8219 runpath_var= 8220 hardcode_libdir_flag_spec= 8221 export_dynamic_flag_spec= 8222 whole_archive_flag_spec= 8223 fi 8224 else 8225 # PORTME fill in a description of your system's linker (not GNU ld) 8226 case $host_os in 8227 aix3*) 8228 allow_undefined_flag=unsupported 8229 always_export_symbols=yes 8230 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' 8231 # Note: this linker hardcodes the directories in LIBPATH if there 8232 # are no directories specified by -L. 8233 hardcode_minus_L=yes 8234 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8235 # Neither direct hardcoding nor static linking is supported with a 8236 # broken collect2. 8237 hardcode_direct=unsupported 8238 fi 8239 ;; 8240 8241 aix[4-9]*) 8242 if test "$host_cpu" = ia64; then 8243 # On IA64, the linker does run time linking by default, so we don't 8244 # have to do anything special. 8245 aix_use_runtimelinking=no 8246 exp_sym_flag='-Bexport' 8247 no_entry_flag="" 8248 else 8249 # If we're using GNU nm, then we don't want the "-C" option. 8250 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8251 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8252 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' 8253 else 8254 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' 8255 fi 8256 aix_use_runtimelinking=no 8257 8258 # Test if we are trying to use run time linking or normal 8259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8260 # need to do runtime linking. 8261 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8262 for ld_flag in $LDFLAGS; do 8263 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8264 aix_use_runtimelinking=yes 8265 break 8266 fi 8267 done 8268 ;; 8269 esac 8270 8271 exp_sym_flag='-bexport' 8272 no_entry_flag='-bnoentry' 8273 fi 8274 8275 # When large executables or shared objects are built, AIX ld can 8276 # have problems creating the table of contents. If linking a library 8277 # or program results in "error TOC overflow" add -mminimal-toc to 8278 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8279 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8280 8281 archive_cmds='' 8282 hardcode_direct=yes 8283 hardcode_libdir_separator=':' 8284 link_all_deplibs=yes 8285 8286 if test "$GCC" = yes; then 8287 case $host_os in aix4.[012]|aix4.[012].*) 8288 # We only want to do this on AIX 4.2 and lower, the check 8289 # below for broken collect2 doesn't work under 4.3+ 8290 collect2name=`${CC} -print-prog-name=collect2` 8291 if test -f "$collect2name" && \ 8292 strings "$collect2name" | grep resolve_lib_name >/dev/null 8293 then 8294 # We have reworked collect2 8295 : 8296 else 8297 # We have old collect2 8298 hardcode_direct=unsupported 8299 # It fails to find uninstalled libraries when the uninstalled 8300 # path is not listed in the libpath. Setting hardcode_minus_L 8301 # to unsupported forces relinking 8302 hardcode_minus_L=yes 8303 hardcode_libdir_flag_spec='-L$libdir' 8304 hardcode_libdir_separator= 8305 fi 8306 ;; 8307 esac 8308 shared_flag='-shared' 8309 if test "$aix_use_runtimelinking" = yes; then 8310 shared_flag="$shared_flag "'${wl}-G' 8311 fi 8312 else 8313 # not using gcc 8314 if test "$host_cpu" = ia64; then 8315 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8316 # chokes on -Wl,-G. The following line is correct: 8317 shared_flag='-G' 8318 else 8319 if test "$aix_use_runtimelinking" = yes; then 8320 shared_flag='${wl}-G' 8321 else 8322 shared_flag='${wl}-bM:SRE' 8323 fi 8324 fi 8325 fi 8326 8327 # It seems that -bexpall does not export symbols beginning with 8328 # underscore (_), so it is better to generate a list of symbols to export. 8329 always_export_symbols=yes 8330 if test "$aix_use_runtimelinking" = yes; then 8331 # Warning - without using the other runtime loading flags (-brtl), 8332 # -berok will link without error, but may produce a broken library. 8333 allow_undefined_flag='-berok' 8334 # Determine the default libpath from the value encoded in an empty executable. 8335 cat >conftest.$ac_ext <<_ACEOF 8336/* confdefs.h. */ 8337_ACEOF 8338cat confdefs.h >>conftest.$ac_ext 8339cat >>conftest.$ac_ext <<_ACEOF 8340/* end confdefs.h. */ 8341 8342int 8343main () 8344{ 8345 8346 ; 8347 return 0; 8348} 8349_ACEOF 8350rm -f conftest.$ac_objext conftest$ac_exeext 8351if { (ac_try="$ac_link" 8352case "(($ac_try" in 8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8354 *) ac_try_echo=$ac_try;; 8355esac 8356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8357 (eval "$ac_link") 2>conftest.er1 8358 ac_status=$? 8359 grep -v '^ *+' conftest.er1 >conftest.err 8360 rm -f conftest.er1 8361 cat conftest.err >&5 8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8363 (exit $ac_status); } && { 8364 test -z "$ac_c_werror_flag" || 8365 test ! -s conftest.err 8366 } && test -s conftest$ac_exeext && 8367 $as_test_x conftest$ac_exeext; then 8368 8369lt_aix_libpath_sed=' 8370 /Import File Strings/,/^$/ { 8371 /^0/ { 8372 s/^0 *\(.*\)$/\1/ 8373 p 8374 } 8375 }' 8376aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8377# Check for a 64-bit object if we didn't find anything. 8378if test -z "$aix_libpath"; then 8379 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8380fi 8381else 8382 echo "$as_me: failed program was:" >&5 8383sed 's/^/| /' conftest.$ac_ext >&5 8384 8385 8386fi 8387 8388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8389 conftest$ac_exeext conftest.$ac_ext 8390if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8391 8392 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8393 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8394 else 8395 if test "$host_cpu" = ia64; then 8396 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8397 allow_undefined_flag="-z nodefs" 8398 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" 8399 else 8400 # Determine the default libpath from the value encoded in an empty executable. 8401 cat >conftest.$ac_ext <<_ACEOF 8402/* confdefs.h. */ 8403_ACEOF 8404cat confdefs.h >>conftest.$ac_ext 8405cat >>conftest.$ac_ext <<_ACEOF 8406/* end confdefs.h. */ 8407 8408int 8409main () 8410{ 8411 8412 ; 8413 return 0; 8414} 8415_ACEOF 8416rm -f conftest.$ac_objext conftest$ac_exeext 8417if { (ac_try="$ac_link" 8418case "(($ac_try" in 8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8420 *) ac_try_echo=$ac_try;; 8421esac 8422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8423 (eval "$ac_link") 2>conftest.er1 8424 ac_status=$? 8425 grep -v '^ *+' conftest.er1 >conftest.err 8426 rm -f conftest.er1 8427 cat conftest.err >&5 8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8429 (exit $ac_status); } && { 8430 test -z "$ac_c_werror_flag" || 8431 test ! -s conftest.err 8432 } && test -s conftest$ac_exeext && 8433 $as_test_x conftest$ac_exeext; then 8434 8435lt_aix_libpath_sed=' 8436 /Import File Strings/,/^$/ { 8437 /^0/ { 8438 s/^0 *\(.*\)$/\1/ 8439 p 8440 } 8441 }' 8442aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8443# Check for a 64-bit object if we didn't find anything. 8444if test -z "$aix_libpath"; then 8445 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8446fi 8447else 8448 echo "$as_me: failed program was:" >&5 8449sed 's/^/| /' conftest.$ac_ext >&5 8450 8451 8452fi 8453 8454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8455 conftest$ac_exeext conftest.$ac_ext 8456if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8457 8458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8459 # Warning - without using the other run time loading flags, 8460 # -berok will link without error, but may produce a broken library. 8461 no_undefined_flag=' ${wl}-bernotok' 8462 allow_undefined_flag=' ${wl}-berok' 8463 # Exported symbols can be pulled into shared objects from archives 8464 whole_archive_flag_spec='$convenience' 8465 archive_cmds_need_lc=yes 8466 # This is similar to how AIX traditionally builds its shared libraries. 8467 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' 8468 fi 8469 fi 8470 ;; 8471 8472 amigaos*) 8473 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)' 8474 hardcode_libdir_flag_spec='-L$libdir' 8475 hardcode_minus_L=yes 8476 # see comment about different semantics on the GNU ld section 8477 ld_shlibs=no 8478 ;; 8479 8480 bsdi[45]*) 8481 export_dynamic_flag_spec=-rdynamic 8482 ;; 8483 8484 cygwin* | mingw* | pw32*) 8485 # When not using gcc, we currently assume that we are using 8486 # Microsoft Visual C++. 8487 # hardcode_libdir_flag_spec is actually meaningless, as there is 8488 # no search path for DLLs. 8489 hardcode_libdir_flag_spec=' ' 8490 allow_undefined_flag=unsupported 8491 # Tell ltmain to make .lib files, not .a files. 8492 libext=lib 8493 # Tell ltmain to make .dll files, not .so files. 8494 shrext_cmds=".dll" 8495 # FIXME: Setting linknames here is a bad hack. 8496 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8497 # The linker will automatically build a .lib file if we build a DLL. 8498 old_archive_From_new_cmds='true' 8499 # FIXME: Should let the user specify the lib program. 8500 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8501 fix_srcfile_path='`cygpath -w "$srcfile"`' 8502 enable_shared_with_static_runtimes=yes 8503 ;; 8504 8505 darwin* | rhapsody*) 8506 case $host_os in 8507 rhapsody* | darwin1.[012]) 8508 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8509 ;; 8510 *) # Darwin 1.3 on 8511 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8512 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8513 else 8514 case ${MACOSX_DEPLOYMENT_TARGET} in 8515 10.[012]) 8516 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8517 ;; 8518 10.*) 8519 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8520 ;; 8521 esac 8522 fi 8523 ;; 8524 esac 8525 archive_cmds_need_lc=no 8526 hardcode_direct=no 8527 hardcode_automatic=yes 8528 hardcode_shlibpath_var=unsupported 8529 whole_archive_flag_spec='' 8530 link_all_deplibs=yes 8531 if test "$GCC" = yes ; then 8532 output_verbose_link_cmd='echo' 8533 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8534 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8535 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}" 8536 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}" 8537 else 8538 case $cc_basename in 8539 xlc*) 8540 output_verbose_link_cmd='echo' 8541 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8542 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8543 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8544 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8545 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8546 ;; 8547 *) 8548 ld_shlibs=no 8549 ;; 8550 esac 8551 fi 8552 ;; 8553 8554 dgux*) 8555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8556 hardcode_libdir_flag_spec='-L$libdir' 8557 hardcode_shlibpath_var=no 8558 ;; 8559 8560 freebsd1*) 8561 ld_shlibs=no 8562 ;; 8563 8564 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8565 # support. Future versions do this automatically, but an explicit c++rt0.o 8566 # does not break anything, and helps significantly (at the cost of a little 8567 # extra space). 8568 freebsd2.2*) 8569 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8570 hardcode_libdir_flag_spec='-R$libdir' 8571 hardcode_direct=yes 8572 hardcode_shlibpath_var=no 8573 ;; 8574 8575 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8576 freebsd2*) 8577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8578 hardcode_direct=yes 8579 hardcode_minus_L=yes 8580 hardcode_shlibpath_var=no 8581 ;; 8582 8583 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8584 freebsd* | dragonfly*) 8585 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8586 hardcode_libdir_flag_spec='-R$libdir' 8587 hardcode_direct=yes 8588 hardcode_shlibpath_var=no 8589 ;; 8590 8591 hpux9*) 8592 if test "$GCC" = yes; then 8593 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' 8594 else 8595 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' 8596 fi 8597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8598 hardcode_libdir_separator=: 8599 hardcode_direct=yes 8600 8601 # hardcode_minus_L: Not really in the search PATH, 8602 # but as the default location of the library. 8603 hardcode_minus_L=yes 8604 export_dynamic_flag_spec='${wl}-E' 8605 ;; 8606 8607 hpux10*) 8608 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8609 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8610 else 8611 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8612 fi 8613 if test "$with_gnu_ld" = no; then 8614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8615 hardcode_libdir_separator=: 8616 8617 hardcode_direct=yes 8618 export_dynamic_flag_spec='${wl}-E' 8619 8620 # hardcode_minus_L: Not really in the search PATH, 8621 # but as the default location of the library. 8622 hardcode_minus_L=yes 8623 fi 8624 ;; 8625 8626 hpux11*) 8627 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8628 case $host_cpu in 8629 hppa*64*) 8630 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8631 ;; 8632 ia64*) 8633 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8634 ;; 8635 *) 8636 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8637 ;; 8638 esac 8639 else 8640 case $host_cpu in 8641 hppa*64*) 8642 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8643 ;; 8644 ia64*) 8645 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8646 ;; 8647 *) 8648 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8649 ;; 8650 esac 8651 fi 8652 if test "$with_gnu_ld" = no; then 8653 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8654 hardcode_libdir_separator=: 8655 8656 case $host_cpu in 8657 hppa*64*|ia64*) 8658 hardcode_libdir_flag_spec_ld='+b $libdir' 8659 hardcode_direct=no 8660 hardcode_shlibpath_var=no 8661 ;; 8662 *) 8663 hardcode_direct=yes 8664 export_dynamic_flag_spec='${wl}-E' 8665 8666 # hardcode_minus_L: Not really in the search PATH, 8667 # but as the default location of the library. 8668 hardcode_minus_L=yes 8669 ;; 8670 esac 8671 fi 8672 ;; 8673 8674 irix5* | irix6* | nonstopux*) 8675 if test "$GCC" = yes; then 8676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8677 else 8678 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8679 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8680 fi 8681 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8682 hardcode_libdir_separator=: 8683 link_all_deplibs=yes 8684 ;; 8685 8686 netbsd* | netbsdelf*-gnu) 8687 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8688 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8689 else 8690 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8691 fi 8692 hardcode_libdir_flag_spec='-R$libdir' 8693 hardcode_direct=yes 8694 hardcode_shlibpath_var=no 8695 ;; 8696 8697 newsos6) 8698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8699 hardcode_direct=yes 8700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8701 hardcode_libdir_separator=: 8702 hardcode_shlibpath_var=no 8703 ;; 8704 8705 openbsd*) 8706 if test -f /usr/libexec/ld.so; then 8707 hardcode_direct=yes 8708 hardcode_shlibpath_var=no 8709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8711 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8712 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8713 export_dynamic_flag_spec='${wl}-E' 8714 else 8715 case $host_os in 8716 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8718 hardcode_libdir_flag_spec='-R$libdir' 8719 ;; 8720 *) 8721 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8722 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8723 ;; 8724 esac 8725 fi 8726 else 8727 ld_shlibs=no 8728 fi 8729 ;; 8730 8731 os2*) 8732 hardcode_libdir_flag_spec='-L$libdir' 8733 hardcode_minus_L=yes 8734 allow_undefined_flag=unsupported 8735 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' 8736 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8737 ;; 8738 8739 osf3*) 8740 if test "$GCC" = yes; then 8741 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8742 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8743 else 8744 allow_undefined_flag=' -expect_unresolved \*' 8745 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8746 fi 8747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8748 hardcode_libdir_separator=: 8749 ;; 8750 8751 osf4* | osf5*) # as osf3* with the addition of -msym flag 8752 if test "$GCC" = yes; then 8753 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8754 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8756 else 8757 allow_undefined_flag=' -expect_unresolved \*' 8758 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 8759 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8760 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 8761 8762 # Both c and cxx compiler support -rpath directly 8763 hardcode_libdir_flag_spec='-rpath $libdir' 8764 fi 8765 hardcode_libdir_separator=: 8766 ;; 8767 8768 solaris*) 8769 no_undefined_flag=' -z text' 8770 if test "$GCC" = yes; then 8771 wlarc='${wl}' 8772 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8773 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8774 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8775 else 8776 wlarc='' 8777 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8778 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8779 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8780 fi 8781 hardcode_libdir_flag_spec='-R$libdir' 8782 hardcode_shlibpath_var=no 8783 case $host_os in 8784 solaris2.[0-5] | solaris2.[0-5].*) ;; 8785 *) 8786 # The compiler driver will combine and reorder linker options, 8787 # but understands `-z linker_flag'. GCC discards it without `$wl', 8788 # but is careful enough not to reorder. 8789 # Supported since Solaris 2.6 (maybe 2.5.1?) 8790 if test "$GCC" = yes; then 8791 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8792 else 8793 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8794 fi 8795 ;; 8796 esac 8797 link_all_deplibs=yes 8798 ;; 8799 8800 sunos4*) 8801 if test "x$host_vendor" = xsequent; then 8802 # Use $CC to link under sequent, because it throws in some extra .o 8803 # files that make .init and .fini sections work. 8804 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8805 else 8806 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8807 fi 8808 hardcode_libdir_flag_spec='-L$libdir' 8809 hardcode_direct=yes 8810 hardcode_minus_L=yes 8811 hardcode_shlibpath_var=no 8812 ;; 8813 8814 sysv4) 8815 case $host_vendor in 8816 sni) 8817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8818 hardcode_direct=yes # is this really true??? 8819 ;; 8820 siemens) 8821 ## LD is ld it makes a PLAMLIB 8822 ## CC just makes a GrossModule. 8823 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8824 reload_cmds='$CC -r -o $output$reload_objs' 8825 hardcode_direct=no 8826 ;; 8827 motorola) 8828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8829 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8830 ;; 8831 esac 8832 runpath_var='LD_RUN_PATH' 8833 hardcode_shlibpath_var=no 8834 ;; 8835 8836 sysv4.3*) 8837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8838 hardcode_shlibpath_var=no 8839 export_dynamic_flag_spec='-Bexport' 8840 ;; 8841 8842 sysv4*MP*) 8843 if test -d /usr/nec; then 8844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8845 hardcode_shlibpath_var=no 8846 runpath_var=LD_RUN_PATH 8847 hardcode_runpath_var=yes 8848 ld_shlibs=yes 8849 fi 8850 ;; 8851 8852 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8853 no_undefined_flag='${wl}-z,text' 8854 archive_cmds_need_lc=no 8855 hardcode_shlibpath_var=no 8856 runpath_var='LD_RUN_PATH' 8857 8858 if test "$GCC" = yes; then 8859 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8860 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8861 else 8862 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8863 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8864 fi 8865 ;; 8866 8867 sysv5* | sco3.2v5* | sco5v6*) 8868 # Note: We can NOT use -z defs as we might desire, because we do not 8869 # link with -lc, and that would cause any symbols used from libc to 8870 # always be unresolved, which means just about no library would 8871 # ever link correctly. If we're not using GNU ld we use -z text 8872 # though, which does catch some bad symbols but isn't as heavy-handed 8873 # as -z defs. 8874 no_undefined_flag='${wl}-z,text' 8875 allow_undefined_flag='${wl}-z,nodefs' 8876 archive_cmds_need_lc=no 8877 hardcode_shlibpath_var=no 8878 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8879 hardcode_libdir_separator=':' 8880 link_all_deplibs=yes 8881 export_dynamic_flag_spec='${wl}-Bexport' 8882 runpath_var='LD_RUN_PATH' 8883 8884 if test "$GCC" = yes; then 8885 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8886 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8887 else 8888 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8889 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8890 fi 8891 ;; 8892 8893 uts4*) 8894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8895 hardcode_libdir_flag_spec='-L$libdir' 8896 hardcode_shlibpath_var=no 8897 ;; 8898 8899 *) 8900 ld_shlibs=no 8901 ;; 8902 esac 8903 fi 8904 8905{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8906echo "${ECHO_T}$ld_shlibs" >&6; } 8907test "$ld_shlibs" = no && can_build_shared=no 8908 8909# 8910# Do we need to explicitly link libc? 8911# 8912case "x$archive_cmds_need_lc" in 8913x|xyes) 8914 # Assume -lc should be added 8915 archive_cmds_need_lc=yes 8916 8917 if test "$enable_shared" = yes && test "$GCC" = yes; then 8918 case $archive_cmds in 8919 *'~'*) 8920 # FIXME: we may have to deal with multi-command sequences. 8921 ;; 8922 '$CC '*) 8923 # Test whether the compiler implicitly links with -lc since on some 8924 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8925 # to ld, don't add -lc before -lgcc. 8926 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8927echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8928 $rm conftest* 8929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8930 8931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8932 (eval $ac_compile) 2>&5 8933 ac_status=$? 8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8935 (exit $ac_status); } 2>conftest.err; then 8936 soname=conftest 8937 lib=conftest 8938 libobjs=conftest.$ac_objext 8939 deplibs= 8940 wl=$lt_prog_compiler_wl 8941 pic_flag=$lt_prog_compiler_pic 8942 compiler_flags=-v 8943 linker_flags=-v 8944 verstring= 8945 output_objdir=. 8946 libname=conftest 8947 lt_save_allow_undefined_flag=$allow_undefined_flag 8948 allow_undefined_flag= 8949 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8950 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8951 ac_status=$? 8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8953 (exit $ac_status); } 8954 then 8955 archive_cmds_need_lc=no 8956 else 8957 archive_cmds_need_lc=yes 8958 fi 8959 allow_undefined_flag=$lt_save_allow_undefined_flag 8960 else 8961 cat conftest.err 1>&5 8962 fi 8963 $rm conftest* 8964 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8965echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8966 ;; 8967 esac 8968 fi 8969 ;; 8970esac 8971 8972{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8973echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8974library_names_spec= 8975libname_spec='lib$name' 8976soname_spec= 8977shrext_cmds=".so" 8978postinstall_cmds= 8979postuninstall_cmds= 8980finish_cmds= 8981finish_eval= 8982shlibpath_var= 8983shlibpath_overrides_runpath=unknown 8984version_type=none 8985dynamic_linker="$host_os ld.so" 8986sys_lib_dlsearch_path_spec="/lib /usr/lib" 8987 8988if test "$GCC" = yes; then 8989 case $host_os in 8990 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8991 *) lt_awk_arg="/^libraries:/" ;; 8992 esac 8993 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8994 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 8995 # if the path contains ";" then we assume it to be the separator 8996 # otherwise default to the standard path separator (i.e. ":") - it is 8997 # assumed that no part of a normal pathname contains ";" but that should 8998 # okay in the real world where ";" in dirpaths is itself problematic. 8999 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9000 else 9001 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9002 fi 9003 # Ok, now we have the path, separated by spaces, we can step through it 9004 # and add multilib dir if necessary. 9005 lt_tmp_lt_search_path_spec= 9006 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9007 for lt_sys_path in $lt_search_path_spec; do 9008 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9009 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9010 else 9011 test -d "$lt_sys_path" && \ 9012 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9013 fi 9014 done 9015 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 9016BEGIN {RS=" "; FS="/|\n";} { 9017 lt_foo=""; 9018 lt_count=0; 9019 for (lt_i = NF; lt_i > 0; lt_i--) { 9020 if ($lt_i != "" && $lt_i != ".") { 9021 if ($lt_i == "..") { 9022 lt_count++; 9023 } else { 9024 if (lt_count == 0) { 9025 lt_foo="/" $lt_i lt_foo; 9026 } else { 9027 lt_count--; 9028 } 9029 } 9030 } 9031 } 9032 if (lt_foo != "") { lt_freq[lt_foo]++; } 9033 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9034}'` 9035 sys_lib_search_path_spec=`echo $lt_search_path_spec` 9036else 9037 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9038fi 9039need_lib_prefix=unknown 9040hardcode_into_libs=no 9041 9042# when you set need_version to no, make sure it does not cause -set_version 9043# flags to be left without arguments 9044need_version=unknown 9045 9046case $host_os in 9047aix3*) 9048 version_type=linux 9049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9050 shlibpath_var=LIBPATH 9051 9052 # AIX 3 has no versioning support, so we append a major version to the name. 9053 soname_spec='${libname}${release}${shared_ext}$major' 9054 ;; 9055 9056aix[4-9]*) 9057 version_type=linux 9058 need_lib_prefix=no 9059 need_version=no 9060 hardcode_into_libs=yes 9061 if test "$host_cpu" = ia64; then 9062 # AIX 5 supports IA64 9063 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9064 shlibpath_var=LD_LIBRARY_PATH 9065 else 9066 # With GCC up to 2.95.x, collect2 would create an import file 9067 # for dependence libraries. The import file would start with 9068 # the line `#! .'. This would cause the generated library to 9069 # depend on `.', always an invalid library. This was fixed in 9070 # development snapshots of GCC prior to 3.0. 9071 case $host_os in 9072 aix4 | aix4.[01] | aix4.[01].*) 9073 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9074 echo ' yes ' 9075 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 9076 : 9077 else 9078 can_build_shared=no 9079 fi 9080 ;; 9081 esac 9082 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9083 # soname into executable. Probably we can add versioning support to 9084 # collect2, so additional links can be useful in future. 9085 if test "$aix_use_runtimelinking" = yes; then 9086 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9087 # instead of lib<name>.a to let people know that these are not 9088 # typical AIX shared libraries. 9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9090 else 9091 # We preserve .a as extension for shared libraries through AIX4.2 9092 # and later when we are not doing run time linking. 9093 library_names_spec='${libname}${release}.a $libname.a' 9094 soname_spec='${libname}${release}${shared_ext}$major' 9095 fi 9096 shlibpath_var=LIBPATH 9097 fi 9098 ;; 9099 9100amigaos*) 9101 library_names_spec='$libname.ixlibrary $libname.a' 9102 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9103 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' 9104 ;; 9105 9106beos*) 9107 library_names_spec='${libname}${shared_ext}' 9108 dynamic_linker="$host_os ld.so" 9109 shlibpath_var=LIBRARY_PATH 9110 ;; 9111 9112bsdi[45]*) 9113 version_type=linux 9114 need_version=no 9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9116 soname_spec='${libname}${release}${shared_ext}$major' 9117 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9118 shlibpath_var=LD_LIBRARY_PATH 9119 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9120 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9121 # the default ld.so.conf also contains /usr/contrib/lib and 9122 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9123 # libtool to hard-code these into programs 9124 ;; 9125 9126cygwin* | mingw* | pw32*) 9127 version_type=windows 9128 shrext_cmds=".dll" 9129 need_version=no 9130 need_lib_prefix=no 9131 9132 case $GCC,$host_os in 9133 yes,cygwin* | yes,mingw* | yes,pw32*) 9134 library_names_spec='$libname.dll.a' 9135 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9136 postinstall_cmds='base_file=`basename \${file}`~ 9137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9138 dldir=$destdir/`dirname \$dlpath`~ 9139 test -d \$dldir || mkdir -p \$dldir~ 9140 $install_prog $dir/$dlname \$dldir/$dlname~ 9141 chmod a+x \$dldir/$dlname' 9142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9143 dlpath=$dir/\$dldll~ 9144 $rm \$dlpath' 9145 shlibpath_overrides_runpath=yes 9146 9147 case $host_os in 9148 cygwin*) 9149 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9150 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9151 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9152 ;; 9153 mingw*) 9154 # MinGW DLLs use traditional 'lib' prefix 9155 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9156 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9157 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9158 # It is most probably a Windows format PATH printed by 9159 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9160 # path with ; separators, and with drive letters. We can handle the 9161 # drive letters (cygwin fileutils understands them), so leave them, 9162 # especially as we might pass files found there to a mingw objdump, 9163 # which wouldn't understand a cygwinified path. Ahh. 9164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9165 else 9166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9167 fi 9168 ;; 9169 pw32*) 9170 # pw32 DLLs use 'pw' prefix rather than 'lib' 9171 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9172 ;; 9173 esac 9174 ;; 9175 9176 *) 9177 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9178 ;; 9179 esac 9180 dynamic_linker='Win32 ld.exe' 9181 # FIXME: first we should search . and the directory the executable is in 9182 shlibpath_var=PATH 9183 ;; 9184 9185darwin* | rhapsody*) 9186 dynamic_linker="$host_os dyld" 9187 version_type=darwin 9188 need_lib_prefix=no 9189 need_version=no 9190 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9191 soname_spec='${libname}${release}${major}$shared_ext' 9192 shlibpath_overrides_runpath=yes 9193 shlibpath_var=DYLD_LIBRARY_PATH 9194 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9195 9196 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9197 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9198 ;; 9199 9200dgux*) 9201 version_type=linux 9202 need_lib_prefix=no 9203 need_version=no 9204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9205 soname_spec='${libname}${release}${shared_ext}$major' 9206 shlibpath_var=LD_LIBRARY_PATH 9207 ;; 9208 9209freebsd1*) 9210 dynamic_linker=no 9211 ;; 9212 9213freebsd* | dragonfly*) 9214 # DragonFly does not have aout. When/if they implement a new 9215 # versioning mechanism, adjust this. 9216 if test -x /usr/bin/objformat; then 9217 objformat=`/usr/bin/objformat` 9218 else 9219 case $host_os in 9220 freebsd[123]*) objformat=aout ;; 9221 *) objformat=elf ;; 9222 esac 9223 fi 9224 version_type=freebsd-$objformat 9225 case $version_type in 9226 freebsd-elf*) 9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9228 need_version=no 9229 need_lib_prefix=no 9230 ;; 9231 freebsd-*) 9232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9233 need_version=yes 9234 ;; 9235 esac 9236 shlibpath_var=LD_LIBRARY_PATH 9237 case $host_os in 9238 freebsd2*) 9239 shlibpath_overrides_runpath=yes 9240 ;; 9241 freebsd3.[01]* | freebsdelf3.[01]*) 9242 shlibpath_overrides_runpath=yes 9243 hardcode_into_libs=yes 9244 ;; 9245 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9246 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9247 shlibpath_overrides_runpath=no 9248 hardcode_into_libs=yes 9249 ;; 9250 *) # from 4.6 on, and DragonFly 9251 shlibpath_overrides_runpath=yes 9252 hardcode_into_libs=yes 9253 ;; 9254 esac 9255 ;; 9256 9257gnu*) 9258 version_type=linux 9259 need_lib_prefix=no 9260 need_version=no 9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9262 soname_spec='${libname}${release}${shared_ext}$major' 9263 shlibpath_var=LD_LIBRARY_PATH 9264 hardcode_into_libs=yes 9265 ;; 9266 9267hpux9* | hpux10* | hpux11*) 9268 # Give a soname corresponding to the major version so that dld.sl refuses to 9269 # link against other versions. 9270 version_type=sunos 9271 need_lib_prefix=no 9272 need_version=no 9273 case $host_cpu in 9274 ia64*) 9275 shrext_cmds='.so' 9276 hardcode_into_libs=yes 9277 dynamic_linker="$host_os dld.so" 9278 shlibpath_var=LD_LIBRARY_PATH 9279 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9281 soname_spec='${libname}${release}${shared_ext}$major' 9282 if test "X$HPUX_IA64_MODE" = X32; then 9283 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9284 else 9285 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9286 fi 9287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9288 ;; 9289 hppa*64*) 9290 shrext_cmds='.sl' 9291 hardcode_into_libs=yes 9292 dynamic_linker="$host_os dld.sl" 9293 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9294 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9296 soname_spec='${libname}${release}${shared_ext}$major' 9297 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9298 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9299 ;; 9300 *) 9301 shrext_cmds='.sl' 9302 dynamic_linker="$host_os dld.sl" 9303 shlibpath_var=SHLIB_PATH 9304 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9306 soname_spec='${libname}${release}${shared_ext}$major' 9307 ;; 9308 esac 9309 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9310 postinstall_cmds='chmod 555 $lib' 9311 ;; 9312 9313interix[3-9]*) 9314 version_type=linux 9315 need_lib_prefix=no 9316 need_version=no 9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9318 soname_spec='${libname}${release}${shared_ext}$major' 9319 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9320 shlibpath_var=LD_LIBRARY_PATH 9321 shlibpath_overrides_runpath=no 9322 hardcode_into_libs=yes 9323 ;; 9324 9325irix5* | irix6* | nonstopux*) 9326 case $host_os in 9327 nonstopux*) version_type=nonstopux ;; 9328 *) 9329 if test "$lt_cv_prog_gnu_ld" = yes; then 9330 version_type=linux 9331 else 9332 version_type=irix 9333 fi ;; 9334 esac 9335 need_lib_prefix=no 9336 need_version=no 9337 soname_spec='${libname}${release}${shared_ext}$major' 9338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9339 case $host_os in 9340 irix5* | nonstopux*) 9341 libsuff= shlibsuff= 9342 ;; 9343 *) 9344 case $LD in # libtool.m4 will add one of these switches to LD 9345 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9346 libsuff= shlibsuff= libmagic=32-bit;; 9347 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9348 libsuff=32 shlibsuff=N32 libmagic=N32;; 9349 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9350 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9351 *) libsuff= shlibsuff= libmagic=never-match;; 9352 esac 9353 ;; 9354 esac 9355 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9356 shlibpath_overrides_runpath=no 9357 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9358 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9359 hardcode_into_libs=yes 9360 ;; 9361 9362# No shared lib support for Linux oldld, aout, or coff. 9363linux*oldld* | linux*aout* | linux*coff*) 9364 dynamic_linker=no 9365 ;; 9366 9367# This must be Linux ELF. 9368linux* | k*bsd*-gnu) 9369 version_type=linux 9370 need_lib_prefix=no 9371 need_version=no 9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9373 soname_spec='${libname}${release}${shared_ext}$major' 9374 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9375 shlibpath_var=LD_LIBRARY_PATH 9376 shlibpath_overrides_runpath=no 9377 # This implies no fast_install, which is unacceptable. 9378 # Some rework will be needed to allow for fast_install 9379 # before this can be enabled. 9380 hardcode_into_libs=yes 9381 9382 # Append ld.so.conf contents to the search path 9383 if test -f /etc/ld.so.conf; then 9384 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' ' '` 9385 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9386 fi 9387 9388 # We used to test for /lib/ld.so.1 and disable shared libraries on 9389 # powerpc, because MkLinux only supported shared libraries with the 9390 # GNU dynamic linker. Since this was broken with cross compilers, 9391 # most powerpc-linux boxes support dynamic linking these days and 9392 # people can always --disable-shared, the test was removed, and we 9393 # assume the GNU/Linux dynamic linker is in use. 9394 dynamic_linker='GNU/Linux ld.so' 9395 ;; 9396 9397netbsdelf*-gnu) 9398 version_type=linux 9399 need_lib_prefix=no 9400 need_version=no 9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9402 soname_spec='${libname}${release}${shared_ext}$major' 9403 shlibpath_var=LD_LIBRARY_PATH 9404 shlibpath_overrides_runpath=no 9405 hardcode_into_libs=yes 9406 dynamic_linker='NetBSD ld.elf_so' 9407 ;; 9408 9409netbsd*) 9410 version_type=sunos 9411 need_lib_prefix=no 9412 need_version=no 9413 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9416 dynamic_linker='NetBSD (a.out) ld.so' 9417 else 9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9419 soname_spec='${libname}${release}${shared_ext}$major' 9420 dynamic_linker='NetBSD ld.elf_so' 9421 fi 9422 shlibpath_var=LD_LIBRARY_PATH 9423 shlibpath_overrides_runpath=yes 9424 hardcode_into_libs=yes 9425 ;; 9426 9427newsos6) 9428 version_type=linux 9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9430 shlibpath_var=LD_LIBRARY_PATH 9431 shlibpath_overrides_runpath=yes 9432 ;; 9433 9434nto-qnx*) 9435 version_type=linux 9436 need_lib_prefix=no 9437 need_version=no 9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9439 soname_spec='${libname}${release}${shared_ext}$major' 9440 shlibpath_var=LD_LIBRARY_PATH 9441 shlibpath_overrides_runpath=yes 9442 ;; 9443 9444openbsd*) 9445 version_type=sunos 9446 sys_lib_dlsearch_path_spec="/usr/lib" 9447 need_lib_prefix=no 9448 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9449 case $host_os in 9450 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9451 *) need_version=no ;; 9452 esac 9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9455 shlibpath_var=LD_LIBRARY_PATH 9456 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9457 case $host_os in 9458 openbsd2.[89] | openbsd2.[89].*) 9459 shlibpath_overrides_runpath=no 9460 ;; 9461 *) 9462 shlibpath_overrides_runpath=yes 9463 ;; 9464 esac 9465 else 9466 shlibpath_overrides_runpath=yes 9467 fi 9468 ;; 9469 9470os2*) 9471 libname_spec='$name' 9472 shrext_cmds=".dll" 9473 need_lib_prefix=no 9474 library_names_spec='$libname${shared_ext} $libname.a' 9475 dynamic_linker='OS/2 ld.exe' 9476 shlibpath_var=LIBPATH 9477 ;; 9478 9479osf3* | osf4* | osf5*) 9480 version_type=osf 9481 need_lib_prefix=no 9482 need_version=no 9483 soname_spec='${libname}${release}${shared_ext}$major' 9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9485 shlibpath_var=LD_LIBRARY_PATH 9486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9488 ;; 9489 9490rdos*) 9491 dynamic_linker=no 9492 ;; 9493 9494solaris*) 9495 version_type=linux 9496 need_lib_prefix=no 9497 need_version=no 9498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9499 soname_spec='${libname}${release}${shared_ext}$major' 9500 shlibpath_var=LD_LIBRARY_PATH 9501 shlibpath_overrides_runpath=yes 9502 hardcode_into_libs=yes 9503 # ldd complains unless libraries are executable 9504 postinstall_cmds='chmod +x $lib' 9505 ;; 9506 9507sunos4*) 9508 version_type=sunos 9509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9510 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9511 shlibpath_var=LD_LIBRARY_PATH 9512 shlibpath_overrides_runpath=yes 9513 if test "$with_gnu_ld" = yes; then 9514 need_lib_prefix=no 9515 fi 9516 need_version=yes 9517 ;; 9518 9519sysv4 | sysv4.3*) 9520 version_type=linux 9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9522 soname_spec='${libname}${release}${shared_ext}$major' 9523 shlibpath_var=LD_LIBRARY_PATH 9524 case $host_vendor in 9525 sni) 9526 shlibpath_overrides_runpath=no 9527 need_lib_prefix=no 9528 export_dynamic_flag_spec='${wl}-Blargedynsym' 9529 runpath_var=LD_RUN_PATH 9530 ;; 9531 siemens) 9532 need_lib_prefix=no 9533 ;; 9534 motorola) 9535 need_lib_prefix=no 9536 need_version=no 9537 shlibpath_overrides_runpath=no 9538 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9539 ;; 9540 esac 9541 ;; 9542 9543sysv4*MP*) 9544 if test -d /usr/nec ;then 9545 version_type=linux 9546 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9547 soname_spec='$libname${shared_ext}.$major' 9548 shlibpath_var=LD_LIBRARY_PATH 9549 fi 9550 ;; 9551 9552sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9553 version_type=freebsd-elf 9554 need_lib_prefix=no 9555 need_version=no 9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9557 soname_spec='${libname}${release}${shared_ext}$major' 9558 shlibpath_var=LD_LIBRARY_PATH 9559 hardcode_into_libs=yes 9560 if test "$with_gnu_ld" = yes; then 9561 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9562 shlibpath_overrides_runpath=no 9563 else 9564 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9565 shlibpath_overrides_runpath=yes 9566 case $host_os in 9567 sco3.2v5*) 9568 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9569 ;; 9570 esac 9571 fi 9572 sys_lib_dlsearch_path_spec='/usr/lib' 9573 ;; 9574 9575uts4*) 9576 version_type=linux 9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9578 soname_spec='${libname}${release}${shared_ext}$major' 9579 shlibpath_var=LD_LIBRARY_PATH 9580 ;; 9581 9582*) 9583 dynamic_linker=no 9584 ;; 9585esac 9586{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9587echo "${ECHO_T}$dynamic_linker" >&6; } 9588test "$dynamic_linker" = no && can_build_shared=no 9589 9590if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9591 echo $ECHO_N "(cached) $ECHO_C" >&6 9592else 9593 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 9594fi 9595 9596sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9597if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9598 echo $ECHO_N "(cached) $ECHO_C" >&6 9599else 9600 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 9601fi 9602 9603sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9604 9605variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9606if test "$GCC" = yes; then 9607 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9608fi 9609 9610{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9611echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9612hardcode_action= 9613if test -n "$hardcode_libdir_flag_spec" || \ 9614 test -n "$runpath_var" || \ 9615 test "X$hardcode_automatic" = "Xyes" ; then 9616 9617 # We can hardcode non-existant directories. 9618 if test "$hardcode_direct" != no && 9619 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9620 # have to relink, otherwise we might link with an installed library 9621 # when we should be linking with a yet-to-be-installed one 9622 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9623 test "$hardcode_minus_L" != no; then 9624 # Linking always hardcodes the temporary library directory. 9625 hardcode_action=relink 9626 else 9627 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9628 hardcode_action=immediate 9629 fi 9630else 9631 # We cannot hardcode anything, or else we can only hardcode existing 9632 # directories. 9633 hardcode_action=unsupported 9634fi 9635{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9636echo "${ECHO_T}$hardcode_action" >&6; } 9637 9638if test "$hardcode_action" = relink; then 9639 # Fast installation is not supported 9640 enable_fast_install=no 9641elif test "$shlibpath_overrides_runpath" = yes || 9642 test "$enable_shared" = no; then 9643 # Fast installation is not necessary 9644 enable_fast_install=needless 9645fi 9646 9647striplib= 9648old_striplib= 9649{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9650echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9651if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9652 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9653 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9654 { echo "$as_me:$LINENO: result: yes" >&5 9655echo "${ECHO_T}yes" >&6; } 9656else 9657# FIXME - insert some real tests, host_os isn't really good enough 9658 case $host_os in 9659 darwin*) 9660 if test -n "$STRIP" ; then 9661 striplib="$STRIP -x" 9662 old_striplib="$STRIP -S" 9663 { echo "$as_me:$LINENO: result: yes" >&5 9664echo "${ECHO_T}yes" >&6; } 9665 else 9666 { echo "$as_me:$LINENO: result: no" >&5 9667echo "${ECHO_T}no" >&6; } 9668fi 9669 ;; 9670 *) 9671 { echo "$as_me:$LINENO: result: no" >&5 9672echo "${ECHO_T}no" >&6; } 9673 ;; 9674 esac 9675fi 9676 9677if test "x$enable_dlopen" != xyes; then 9678 enable_dlopen=unknown 9679 enable_dlopen_self=unknown 9680 enable_dlopen_self_static=unknown 9681else 9682 lt_cv_dlopen=no 9683 lt_cv_dlopen_libs= 9684 9685 case $host_os in 9686 beos*) 9687 lt_cv_dlopen="load_add_on" 9688 lt_cv_dlopen_libs= 9689 lt_cv_dlopen_self=yes 9690 ;; 9691 9692 mingw* | pw32*) 9693 lt_cv_dlopen="LoadLibrary" 9694 lt_cv_dlopen_libs= 9695 ;; 9696 9697 cygwin*) 9698 lt_cv_dlopen="dlopen" 9699 lt_cv_dlopen_libs= 9700 ;; 9701 9702 darwin*) 9703 # if libdl is installed we need to link against it 9704 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9705echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9706if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9707 echo $ECHO_N "(cached) $ECHO_C" >&6 9708else 9709 ac_check_lib_save_LIBS=$LIBS 9710LIBS="-ldl $LIBS" 9711cat >conftest.$ac_ext <<_ACEOF 9712/* confdefs.h. */ 9713_ACEOF 9714cat confdefs.h >>conftest.$ac_ext 9715cat >>conftest.$ac_ext <<_ACEOF 9716/* end confdefs.h. */ 9717 9718/* Override any GCC internal prototype to avoid an error. 9719 Use char because int might match the return type of a GCC 9720 builtin and then its argument prototype would still apply. */ 9721#ifdef __cplusplus 9722extern "C" 9723#endif 9724char dlopen (); 9725int 9726main () 9727{ 9728return dlopen (); 9729 ; 9730 return 0; 9731} 9732_ACEOF 9733rm -f conftest.$ac_objext conftest$ac_exeext 9734if { (ac_try="$ac_link" 9735case "(($ac_try" in 9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9737 *) ac_try_echo=$ac_try;; 9738esac 9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9740 (eval "$ac_link") 2>conftest.er1 9741 ac_status=$? 9742 grep -v '^ *+' conftest.er1 >conftest.err 9743 rm -f conftest.er1 9744 cat conftest.err >&5 9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9746 (exit $ac_status); } && { 9747 test -z "$ac_c_werror_flag" || 9748 test ! -s conftest.err 9749 } && test -s conftest$ac_exeext && 9750 $as_test_x conftest$ac_exeext; then 9751 ac_cv_lib_dl_dlopen=yes 9752else 9753 echo "$as_me: failed program was:" >&5 9754sed 's/^/| /' conftest.$ac_ext >&5 9755 9756 ac_cv_lib_dl_dlopen=no 9757fi 9758 9759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9760 conftest$ac_exeext conftest.$ac_ext 9761LIBS=$ac_check_lib_save_LIBS 9762fi 9763{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9764echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9765if test $ac_cv_lib_dl_dlopen = yes; then 9766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9767else 9768 9769 lt_cv_dlopen="dyld" 9770 lt_cv_dlopen_libs= 9771 lt_cv_dlopen_self=yes 9772 9773fi 9774 9775 ;; 9776 9777 *) 9778 { echo "$as_me:$LINENO: checking for shl_load" >&5 9779echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9780if test "${ac_cv_func_shl_load+set}" = set; then 9781 echo $ECHO_N "(cached) $ECHO_C" >&6 9782else 9783 cat >conftest.$ac_ext <<_ACEOF 9784/* confdefs.h. */ 9785_ACEOF 9786cat confdefs.h >>conftest.$ac_ext 9787cat >>conftest.$ac_ext <<_ACEOF 9788/* end confdefs.h. */ 9789/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9790 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9791#define shl_load innocuous_shl_load 9792 9793/* System header to define __stub macros and hopefully few prototypes, 9794 which can conflict with char shl_load (); below. 9795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9796 <limits.h> exists even on freestanding compilers. */ 9797 9798#ifdef __STDC__ 9799# include <limits.h> 9800#else 9801# include <assert.h> 9802#endif 9803 9804#undef shl_load 9805 9806/* Override any GCC internal prototype to avoid an error. 9807 Use char because int might match the return type of a GCC 9808 builtin and then its argument prototype would still apply. */ 9809#ifdef __cplusplus 9810extern "C" 9811#endif 9812char shl_load (); 9813/* The GNU C library defines this for functions which it implements 9814 to always fail with ENOSYS. Some functions are actually named 9815 something starting with __ and the normal name is an alias. */ 9816#if defined __stub_shl_load || defined __stub___shl_load 9817choke me 9818#endif 9819 9820int 9821main () 9822{ 9823return shl_load (); 9824 ; 9825 return 0; 9826} 9827_ACEOF 9828rm -f conftest.$ac_objext conftest$ac_exeext 9829if { (ac_try="$ac_link" 9830case "(($ac_try" in 9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9832 *) ac_try_echo=$ac_try;; 9833esac 9834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9835 (eval "$ac_link") 2>conftest.er1 9836 ac_status=$? 9837 grep -v '^ *+' conftest.er1 >conftest.err 9838 rm -f conftest.er1 9839 cat conftest.err >&5 9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9841 (exit $ac_status); } && { 9842 test -z "$ac_c_werror_flag" || 9843 test ! -s conftest.err 9844 } && test -s conftest$ac_exeext && 9845 $as_test_x conftest$ac_exeext; then 9846 ac_cv_func_shl_load=yes 9847else 9848 echo "$as_me: failed program was:" >&5 9849sed 's/^/| /' conftest.$ac_ext >&5 9850 9851 ac_cv_func_shl_load=no 9852fi 9853 9854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9855 conftest$ac_exeext conftest.$ac_ext 9856fi 9857{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9858echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9859if test $ac_cv_func_shl_load = yes; then 9860 lt_cv_dlopen="shl_load" 9861else 9862 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9863echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9864if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9865 echo $ECHO_N "(cached) $ECHO_C" >&6 9866else 9867 ac_check_lib_save_LIBS=$LIBS 9868LIBS="-ldld $LIBS" 9869cat >conftest.$ac_ext <<_ACEOF 9870/* confdefs.h. */ 9871_ACEOF 9872cat confdefs.h >>conftest.$ac_ext 9873cat >>conftest.$ac_ext <<_ACEOF 9874/* end confdefs.h. */ 9875 9876/* Override any GCC internal prototype to avoid an error. 9877 Use char because int might match the return type of a GCC 9878 builtin and then its argument prototype would still apply. */ 9879#ifdef __cplusplus 9880extern "C" 9881#endif 9882char shl_load (); 9883int 9884main () 9885{ 9886return shl_load (); 9887 ; 9888 return 0; 9889} 9890_ACEOF 9891rm -f conftest.$ac_objext conftest$ac_exeext 9892if { (ac_try="$ac_link" 9893case "(($ac_try" in 9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9895 *) ac_try_echo=$ac_try;; 9896esac 9897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9898 (eval "$ac_link") 2>conftest.er1 9899 ac_status=$? 9900 grep -v '^ *+' conftest.er1 >conftest.err 9901 rm -f conftest.er1 9902 cat conftest.err >&5 9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9904 (exit $ac_status); } && { 9905 test -z "$ac_c_werror_flag" || 9906 test ! -s conftest.err 9907 } && test -s conftest$ac_exeext && 9908 $as_test_x conftest$ac_exeext; then 9909 ac_cv_lib_dld_shl_load=yes 9910else 9911 echo "$as_me: failed program was:" >&5 9912sed 's/^/| /' conftest.$ac_ext >&5 9913 9914 ac_cv_lib_dld_shl_load=no 9915fi 9916 9917rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9918 conftest$ac_exeext conftest.$ac_ext 9919LIBS=$ac_check_lib_save_LIBS 9920fi 9921{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9922echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9923if test $ac_cv_lib_dld_shl_load = yes; then 9924 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 9925else 9926 { echo "$as_me:$LINENO: checking for dlopen" >&5 9927echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9928if test "${ac_cv_func_dlopen+set}" = set; then 9929 echo $ECHO_N "(cached) $ECHO_C" >&6 9930else 9931 cat >conftest.$ac_ext <<_ACEOF 9932/* confdefs.h. */ 9933_ACEOF 9934cat confdefs.h >>conftest.$ac_ext 9935cat >>conftest.$ac_ext <<_ACEOF 9936/* end confdefs.h. */ 9937/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9938 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9939#define dlopen innocuous_dlopen 9940 9941/* System header to define __stub macros and hopefully few prototypes, 9942 which can conflict with char dlopen (); below. 9943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9944 <limits.h> exists even on freestanding compilers. */ 9945 9946#ifdef __STDC__ 9947# include <limits.h> 9948#else 9949# include <assert.h> 9950#endif 9951 9952#undef dlopen 9953 9954/* Override any GCC internal prototype to avoid an error. 9955 Use char because int might match the return type of a GCC 9956 builtin and then its argument prototype would still apply. */ 9957#ifdef __cplusplus 9958extern "C" 9959#endif 9960char dlopen (); 9961/* The GNU C library defines this for functions which it implements 9962 to always fail with ENOSYS. Some functions are actually named 9963 something starting with __ and the normal name is an alias. */ 9964#if defined __stub_dlopen || defined __stub___dlopen 9965choke me 9966#endif 9967 9968int 9969main () 9970{ 9971return dlopen (); 9972 ; 9973 return 0; 9974} 9975_ACEOF 9976rm -f conftest.$ac_objext conftest$ac_exeext 9977if { (ac_try="$ac_link" 9978case "(($ac_try" in 9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9980 *) ac_try_echo=$ac_try;; 9981esac 9982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9983 (eval "$ac_link") 2>conftest.er1 9984 ac_status=$? 9985 grep -v '^ *+' conftest.er1 >conftest.err 9986 rm -f conftest.er1 9987 cat conftest.err >&5 9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9989 (exit $ac_status); } && { 9990 test -z "$ac_c_werror_flag" || 9991 test ! -s conftest.err 9992 } && test -s conftest$ac_exeext && 9993 $as_test_x conftest$ac_exeext; then 9994 ac_cv_func_dlopen=yes 9995else 9996 echo "$as_me: failed program was:" >&5 9997sed 's/^/| /' conftest.$ac_ext >&5 9998 9999 ac_cv_func_dlopen=no 10000fi 10001 10002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10003 conftest$ac_exeext conftest.$ac_ext 10004fi 10005{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10006echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 10007if test $ac_cv_func_dlopen = yes; then 10008 lt_cv_dlopen="dlopen" 10009else 10010 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 10011echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 10012if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10013 echo $ECHO_N "(cached) $ECHO_C" >&6 10014else 10015 ac_check_lib_save_LIBS=$LIBS 10016LIBS="-ldl $LIBS" 10017cat >conftest.$ac_ext <<_ACEOF 10018/* confdefs.h. */ 10019_ACEOF 10020cat confdefs.h >>conftest.$ac_ext 10021cat >>conftest.$ac_ext <<_ACEOF 10022/* end confdefs.h. */ 10023 10024/* Override any GCC internal prototype to avoid an error. 10025 Use char because int might match the return type of a GCC 10026 builtin and then its argument prototype would still apply. */ 10027#ifdef __cplusplus 10028extern "C" 10029#endif 10030char dlopen (); 10031int 10032main () 10033{ 10034return dlopen (); 10035 ; 10036 return 0; 10037} 10038_ACEOF 10039rm -f conftest.$ac_objext conftest$ac_exeext 10040if { (ac_try="$ac_link" 10041case "(($ac_try" in 10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10043 *) ac_try_echo=$ac_try;; 10044esac 10045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10046 (eval "$ac_link") 2>conftest.er1 10047 ac_status=$? 10048 grep -v '^ *+' conftest.er1 >conftest.err 10049 rm -f conftest.er1 10050 cat conftest.err >&5 10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10052 (exit $ac_status); } && { 10053 test -z "$ac_c_werror_flag" || 10054 test ! -s conftest.err 10055 } && test -s conftest$ac_exeext && 10056 $as_test_x conftest$ac_exeext; then 10057 ac_cv_lib_dl_dlopen=yes 10058else 10059 echo "$as_me: failed program was:" >&5 10060sed 's/^/| /' conftest.$ac_ext >&5 10061 10062 ac_cv_lib_dl_dlopen=no 10063fi 10064 10065rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10066 conftest$ac_exeext conftest.$ac_ext 10067LIBS=$ac_check_lib_save_LIBS 10068fi 10069{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10070echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10071if test $ac_cv_lib_dl_dlopen = yes; then 10072 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10073else 10074 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10075echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10076if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10077 echo $ECHO_N "(cached) $ECHO_C" >&6 10078else 10079 ac_check_lib_save_LIBS=$LIBS 10080LIBS="-lsvld $LIBS" 10081cat >conftest.$ac_ext <<_ACEOF 10082/* confdefs.h. */ 10083_ACEOF 10084cat confdefs.h >>conftest.$ac_ext 10085cat >>conftest.$ac_ext <<_ACEOF 10086/* end confdefs.h. */ 10087 10088/* Override any GCC internal prototype to avoid an error. 10089 Use char because int might match the return type of a GCC 10090 builtin and then its argument prototype would still apply. */ 10091#ifdef __cplusplus 10092extern "C" 10093#endif 10094char dlopen (); 10095int 10096main () 10097{ 10098return dlopen (); 10099 ; 10100 return 0; 10101} 10102_ACEOF 10103rm -f conftest.$ac_objext conftest$ac_exeext 10104if { (ac_try="$ac_link" 10105case "(($ac_try" in 10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10107 *) ac_try_echo=$ac_try;; 10108esac 10109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10110 (eval "$ac_link") 2>conftest.er1 10111 ac_status=$? 10112 grep -v '^ *+' conftest.er1 >conftest.err 10113 rm -f conftest.er1 10114 cat conftest.err >&5 10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10116 (exit $ac_status); } && { 10117 test -z "$ac_c_werror_flag" || 10118 test ! -s conftest.err 10119 } && test -s conftest$ac_exeext && 10120 $as_test_x conftest$ac_exeext; then 10121 ac_cv_lib_svld_dlopen=yes 10122else 10123 echo "$as_me: failed program was:" >&5 10124sed 's/^/| /' conftest.$ac_ext >&5 10125 10126 ac_cv_lib_svld_dlopen=no 10127fi 10128 10129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10130 conftest$ac_exeext conftest.$ac_ext 10131LIBS=$ac_check_lib_save_LIBS 10132fi 10133{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10134echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10135if test $ac_cv_lib_svld_dlopen = yes; then 10136 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10137else 10138 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10139echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10140if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10141 echo $ECHO_N "(cached) $ECHO_C" >&6 10142else 10143 ac_check_lib_save_LIBS=$LIBS 10144LIBS="-ldld $LIBS" 10145cat >conftest.$ac_ext <<_ACEOF 10146/* confdefs.h. */ 10147_ACEOF 10148cat confdefs.h >>conftest.$ac_ext 10149cat >>conftest.$ac_ext <<_ACEOF 10150/* end confdefs.h. */ 10151 10152/* Override any GCC internal prototype to avoid an error. 10153 Use char because int might match the return type of a GCC 10154 builtin and then its argument prototype would still apply. */ 10155#ifdef __cplusplus 10156extern "C" 10157#endif 10158char dld_link (); 10159int 10160main () 10161{ 10162return dld_link (); 10163 ; 10164 return 0; 10165} 10166_ACEOF 10167rm -f conftest.$ac_objext conftest$ac_exeext 10168if { (ac_try="$ac_link" 10169case "(($ac_try" in 10170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10171 *) ac_try_echo=$ac_try;; 10172esac 10173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10174 (eval "$ac_link") 2>conftest.er1 10175 ac_status=$? 10176 grep -v '^ *+' conftest.er1 >conftest.err 10177 rm -f conftest.er1 10178 cat conftest.err >&5 10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10180 (exit $ac_status); } && { 10181 test -z "$ac_c_werror_flag" || 10182 test ! -s conftest.err 10183 } && test -s conftest$ac_exeext && 10184 $as_test_x conftest$ac_exeext; then 10185 ac_cv_lib_dld_dld_link=yes 10186else 10187 echo "$as_me: failed program was:" >&5 10188sed 's/^/| /' conftest.$ac_ext >&5 10189 10190 ac_cv_lib_dld_dld_link=no 10191fi 10192 10193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10194 conftest$ac_exeext conftest.$ac_ext 10195LIBS=$ac_check_lib_save_LIBS 10196fi 10197{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10198echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10199if test $ac_cv_lib_dld_dld_link = yes; then 10200 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10201fi 10202 10203 10204fi 10205 10206 10207fi 10208 10209 10210fi 10211 10212 10213fi 10214 10215 10216fi 10217 10218 ;; 10219 esac 10220 10221 if test "x$lt_cv_dlopen" != xno; then 10222 enable_dlopen=yes 10223 else 10224 enable_dlopen=no 10225 fi 10226 10227 case $lt_cv_dlopen in 10228 dlopen) 10229 save_CPPFLAGS="$CPPFLAGS" 10230 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10231 10232 save_LDFLAGS="$LDFLAGS" 10233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10234 10235 save_LIBS="$LIBS" 10236 LIBS="$lt_cv_dlopen_libs $LIBS" 10237 10238 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10239echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10240if test "${lt_cv_dlopen_self+set}" = set; then 10241 echo $ECHO_N "(cached) $ECHO_C" >&6 10242else 10243 if test "$cross_compiling" = yes; then : 10244 lt_cv_dlopen_self=cross 10245else 10246 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10247 lt_status=$lt_dlunknown 10248 cat > conftest.$ac_ext <<EOF 10249#line 10249 "configure" 10250#include "confdefs.h" 10251 10252#if HAVE_DLFCN_H 10253#include <dlfcn.h> 10254#endif 10255 10256#include <stdio.h> 10257 10258#ifdef RTLD_GLOBAL 10259# define LT_DLGLOBAL RTLD_GLOBAL 10260#else 10261# ifdef DL_GLOBAL 10262# define LT_DLGLOBAL DL_GLOBAL 10263# else 10264# define LT_DLGLOBAL 0 10265# endif 10266#endif 10267 10268/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10269 find out it does not work in some platform. */ 10270#ifndef LT_DLLAZY_OR_NOW 10271# ifdef RTLD_LAZY 10272# define LT_DLLAZY_OR_NOW RTLD_LAZY 10273# else 10274# ifdef DL_LAZY 10275# define LT_DLLAZY_OR_NOW DL_LAZY 10276# else 10277# ifdef RTLD_NOW 10278# define LT_DLLAZY_OR_NOW RTLD_NOW 10279# else 10280# ifdef DL_NOW 10281# define LT_DLLAZY_OR_NOW DL_NOW 10282# else 10283# define LT_DLLAZY_OR_NOW 0 10284# endif 10285# endif 10286# endif 10287# endif 10288#endif 10289 10290#ifdef __cplusplus 10291extern "C" void exit (int); 10292#endif 10293 10294void fnord() { int i=42;} 10295int main () 10296{ 10297 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10298 int status = $lt_dlunknown; 10299 10300 if (self) 10301 { 10302 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10303 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10304 /* dlclose (self); */ 10305 } 10306 else 10307 puts (dlerror ()); 10308 10309 exit (status); 10310} 10311EOF 10312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10313 (eval $ac_link) 2>&5 10314 ac_status=$? 10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10316 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10317 (./conftest; exit; ) >&5 2>/dev/null 10318 lt_status=$? 10319 case x$lt_status in 10320 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10321 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10322 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10323 esac 10324 else : 10325 # compilation failed 10326 lt_cv_dlopen_self=no 10327 fi 10328fi 10329rm -fr conftest* 10330 10331 10332fi 10333{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10334echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10335 10336 if test "x$lt_cv_dlopen_self" = xyes; then 10337 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10338 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10339echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10340if test "${lt_cv_dlopen_self_static+set}" = set; then 10341 echo $ECHO_N "(cached) $ECHO_C" >&6 10342else 10343 if test "$cross_compiling" = yes; then : 10344 lt_cv_dlopen_self_static=cross 10345else 10346 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10347 lt_status=$lt_dlunknown 10348 cat > conftest.$ac_ext <<EOF 10349#line 10349 "configure" 10350#include "confdefs.h" 10351 10352#if HAVE_DLFCN_H 10353#include <dlfcn.h> 10354#endif 10355 10356#include <stdio.h> 10357 10358#ifdef RTLD_GLOBAL 10359# define LT_DLGLOBAL RTLD_GLOBAL 10360#else 10361# ifdef DL_GLOBAL 10362# define LT_DLGLOBAL DL_GLOBAL 10363# else 10364# define LT_DLGLOBAL 0 10365# endif 10366#endif 10367 10368/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10369 find out it does not work in some platform. */ 10370#ifndef LT_DLLAZY_OR_NOW 10371# ifdef RTLD_LAZY 10372# define LT_DLLAZY_OR_NOW RTLD_LAZY 10373# else 10374# ifdef DL_LAZY 10375# define LT_DLLAZY_OR_NOW DL_LAZY 10376# else 10377# ifdef RTLD_NOW 10378# define LT_DLLAZY_OR_NOW RTLD_NOW 10379# else 10380# ifdef DL_NOW 10381# define LT_DLLAZY_OR_NOW DL_NOW 10382# else 10383# define LT_DLLAZY_OR_NOW 0 10384# endif 10385# endif 10386# endif 10387# endif 10388#endif 10389 10390#ifdef __cplusplus 10391extern "C" void exit (int); 10392#endif 10393 10394void fnord() { int i=42;} 10395int main () 10396{ 10397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10398 int status = $lt_dlunknown; 10399 10400 if (self) 10401 { 10402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10403 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10404 /* dlclose (self); */ 10405 } 10406 else 10407 puts (dlerror ()); 10408 10409 exit (status); 10410} 10411EOF 10412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10413 (eval $ac_link) 2>&5 10414 ac_status=$? 10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10416 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10417 (./conftest; exit; ) >&5 2>/dev/null 10418 lt_status=$? 10419 case x$lt_status in 10420 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10421 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10422 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10423 esac 10424 else : 10425 # compilation failed 10426 lt_cv_dlopen_self_static=no 10427 fi 10428fi 10429rm -fr conftest* 10430 10431 10432fi 10433{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10434echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10435 fi 10436 10437 CPPFLAGS="$save_CPPFLAGS" 10438 LDFLAGS="$save_LDFLAGS" 10439 LIBS="$save_LIBS" 10440 ;; 10441 esac 10442 10443 case $lt_cv_dlopen_self in 10444 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10445 *) enable_dlopen_self=unknown ;; 10446 esac 10447 10448 case $lt_cv_dlopen_self_static in 10449 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10450 *) enable_dlopen_self_static=unknown ;; 10451 esac 10452fi 10453 10454 10455# Report which library types will actually be built 10456{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10457echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10458{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10459echo "${ECHO_T}$can_build_shared" >&6; } 10460 10461{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10462echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10463test "$can_build_shared" = "no" && enable_shared=no 10464 10465# On AIX, shared libraries and static libraries use the same namespace, and 10466# are all built from PIC. 10467case $host_os in 10468aix3*) 10469 test "$enable_shared" = yes && enable_static=no 10470 if test -n "$RANLIB"; then 10471 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10472 postinstall_cmds='$RANLIB $lib' 10473 fi 10474 ;; 10475 10476aix[4-9]*) 10477 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10478 test "$enable_shared" = yes && enable_static=no 10479 fi 10480 ;; 10481esac 10482{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10483echo "${ECHO_T}$enable_shared" >&6; } 10484 10485{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10486echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10487# Make sure either enable_shared or enable_static is yes. 10488test "$enable_shared" = yes || enable_static=yes 10489{ echo "$as_me:$LINENO: result: $enable_static" >&5 10490echo "${ECHO_T}$enable_static" >&6; } 10491 10492# The else clause should only fire when bootstrapping the 10493# libtool distribution, otherwise you forgot to ship ltmain.sh 10494# with your package, and you will get complaints that there are 10495# no rules to generate ltmain.sh. 10496if test -f "$ltmain"; then 10497 # See if we are running on zsh, and set the options which allow our commands through 10498 # without removal of \ escapes. 10499 if test -n "${ZSH_VERSION+set}" ; then 10500 setopt NO_GLOB_SUBST 10501 fi 10502 # Now quote all the things that may contain metacharacters while being 10503 # careful not to overquote the AC_SUBSTed values. We take copies of the 10504 # variables and quote the copies for generation of the libtool script. 10505 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10506 SED SHELL STRIP \ 10507 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10508 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10509 deplibs_check_method reload_flag reload_cmds need_locks \ 10510 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10511 lt_cv_sys_global_symbol_to_c_name_address \ 10512 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10513 old_postinstall_cmds old_postuninstall_cmds \ 10514 compiler \ 10515 CC \ 10516 LD \ 10517 lt_prog_compiler_wl \ 10518 lt_prog_compiler_pic \ 10519 lt_prog_compiler_static \ 10520 lt_prog_compiler_no_builtin_flag \ 10521 export_dynamic_flag_spec \ 10522 thread_safe_flag_spec \ 10523 whole_archive_flag_spec \ 10524 enable_shared_with_static_runtimes \ 10525 old_archive_cmds \ 10526 old_archive_from_new_cmds \ 10527 predep_objects \ 10528 postdep_objects \ 10529 predeps \ 10530 postdeps \ 10531 compiler_lib_search_path \ 10532 compiler_lib_search_dirs \ 10533 archive_cmds \ 10534 archive_expsym_cmds \ 10535 postinstall_cmds \ 10536 postuninstall_cmds \ 10537 old_archive_from_expsyms_cmds \ 10538 allow_undefined_flag \ 10539 no_undefined_flag \ 10540 export_symbols_cmds \ 10541 hardcode_libdir_flag_spec \ 10542 hardcode_libdir_flag_spec_ld \ 10543 hardcode_libdir_separator \ 10544 hardcode_automatic \ 10545 module_cmds \ 10546 module_expsym_cmds \ 10547 lt_cv_prog_compiler_c_o \ 10548 fix_srcfile_path \ 10549 exclude_expsyms \ 10550 include_expsyms; do 10551 10552 case $var in 10553 old_archive_cmds | \ 10554 old_archive_from_new_cmds | \ 10555 archive_cmds | \ 10556 archive_expsym_cmds | \ 10557 module_cmds | \ 10558 module_expsym_cmds | \ 10559 old_archive_from_expsyms_cmds | \ 10560 export_symbols_cmds | \ 10561 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10562 postinstall_cmds | postuninstall_cmds | \ 10563 old_postinstall_cmds | old_postuninstall_cmds | \ 10564 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10565 # Double-quote double-evaled strings. 10566 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10567 ;; 10568 *) 10569 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10570 ;; 10571 esac 10572 done 10573 10574 case $lt_echo in 10575 *'\$0 --fallback-echo"') 10576 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10577 ;; 10578 esac 10579 10580cfgfile="${ofile}T" 10581 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10582 $rm -f "$cfgfile" 10583 { echo "$as_me:$LINENO: creating $ofile" >&5 10584echo "$as_me: creating $ofile" >&6;} 10585 10586 cat <<__EOF__ >> "$cfgfile" 10587#! $SHELL 10588 10589# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10590# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10591# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10592# 10593# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10594# Free Software Foundation, Inc. 10595# 10596# This file is part of GNU Libtool: 10597# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10598# 10599# This program is free software; you can redistribute it and/or modify 10600# it under the terms of the GNU General Public License as published by 10601# the Free Software Foundation; either version 2 of the License, or 10602# (at your option) any later version. 10603# 10604# This program is distributed in the hope that it will be useful, but 10605# WITHOUT ANY WARRANTY; without even the implied warranty of 10606# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10607# General Public License for more details. 10608# 10609# You should have received a copy of the GNU General Public License 10610# along with this program; if not, write to the Free Software 10611# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10612# 10613# As a special exception to the GNU General Public License, if you 10614# distribute this file as part of a program that contains a 10615# configuration script generated by Autoconf, you may include it under 10616# the same distribution terms that you use for the rest of that program. 10617 10618# A sed program that does not truncate output. 10619SED=$lt_SED 10620 10621# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10622Xsed="$SED -e 1s/^X//" 10623 10624# The HP-UX ksh and POSIX shell print the target directory to stdout 10625# if CDPATH is set. 10626(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10627 10628# The names of the tagged configurations supported by this script. 10629available_tags= 10630 10631# ### BEGIN LIBTOOL CONFIG 10632 10633# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10634 10635# Shell to use when invoking shell scripts. 10636SHELL=$lt_SHELL 10637 10638# Whether or not to build shared libraries. 10639build_libtool_libs=$enable_shared 10640 10641# Whether or not to build static libraries. 10642build_old_libs=$enable_static 10643 10644# Whether or not to add -lc for building shared libraries. 10645build_libtool_need_lc=$archive_cmds_need_lc 10646 10647# Whether or not to disallow shared libs when runtime libs are static 10648allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10649 10650# Whether or not to optimize for fast installation. 10651fast_install=$enable_fast_install 10652 10653# The host system. 10654host_alias=$host_alias 10655host=$host 10656host_os=$host_os 10657 10658# The build system. 10659build_alias=$build_alias 10660build=$build 10661build_os=$build_os 10662 10663# An echo program that does not interpret backslashes. 10664echo=$lt_echo 10665 10666# The archiver. 10667AR=$lt_AR 10668AR_FLAGS=$lt_AR_FLAGS 10669 10670# A C compiler. 10671LTCC=$lt_LTCC 10672 10673# LTCC compiler flags. 10674LTCFLAGS=$lt_LTCFLAGS 10675 10676# A language-specific compiler. 10677CC=$lt_compiler 10678 10679# Is the compiler the GNU C compiler? 10680with_gcc=$GCC 10681 10682# An ERE matcher. 10683EGREP=$lt_EGREP 10684 10685# The linker used to build libraries. 10686LD=$lt_LD 10687 10688# Whether we need hard or soft links. 10689LN_S=$lt_LN_S 10690 10691# A BSD-compatible nm program. 10692NM=$lt_NM 10693 10694# A symbol stripping program 10695STRIP=$lt_STRIP 10696 10697# Used to examine libraries when file_magic_cmd begins "file" 10698MAGIC_CMD=$MAGIC_CMD 10699 10700# Used on cygwin: DLL creation program. 10701DLLTOOL="$DLLTOOL" 10702 10703# Used on cygwin: object dumper. 10704OBJDUMP="$OBJDUMP" 10705 10706# Used on cygwin: assembler. 10707AS="$AS" 10708 10709# The name of the directory that contains temporary libtool files. 10710objdir=$objdir 10711 10712# How to create reloadable object files. 10713reload_flag=$lt_reload_flag 10714reload_cmds=$lt_reload_cmds 10715 10716# How to pass a linker flag through the compiler. 10717wl=$lt_lt_prog_compiler_wl 10718 10719# Object file suffix (normally "o"). 10720objext="$ac_objext" 10721 10722# Old archive suffix (normally "a"). 10723libext="$libext" 10724 10725# Shared library suffix (normally ".so"). 10726shrext_cmds='$shrext_cmds' 10727 10728# Executable file suffix (normally ""). 10729exeext="$exeext" 10730 10731# Additional compiler flags for building library objects. 10732pic_flag=$lt_lt_prog_compiler_pic 10733pic_mode=$pic_mode 10734 10735# What is the maximum length of a command? 10736max_cmd_len=$lt_cv_sys_max_cmd_len 10737 10738# Does compiler simultaneously support -c and -o options? 10739compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10740 10741# Must we lock files when doing compilation? 10742need_locks=$lt_need_locks 10743 10744# Do we need the lib prefix for modules? 10745need_lib_prefix=$need_lib_prefix 10746 10747# Do we need a version for libraries? 10748need_version=$need_version 10749 10750# Whether dlopen is supported. 10751dlopen_support=$enable_dlopen 10752 10753# Whether dlopen of programs is supported. 10754dlopen_self=$enable_dlopen_self 10755 10756# Whether dlopen of statically linked programs is supported. 10757dlopen_self_static=$enable_dlopen_self_static 10758 10759# Compiler flag to prevent dynamic linking. 10760link_static_flag=$lt_lt_prog_compiler_static 10761 10762# Compiler flag to turn off builtin functions. 10763no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10764 10765# Compiler flag to allow reflexive dlopens. 10766export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10767 10768# Compiler flag to generate shared objects directly from archives. 10769whole_archive_flag_spec=$lt_whole_archive_flag_spec 10770 10771# Compiler flag to generate thread-safe objects. 10772thread_safe_flag_spec=$lt_thread_safe_flag_spec 10773 10774# Library versioning type. 10775version_type=$version_type 10776 10777# Format of library name prefix. 10778libname_spec=$lt_libname_spec 10779 10780# List of archive names. First name is the real one, the rest are links. 10781# The last name is the one that the linker finds with -lNAME. 10782library_names_spec=$lt_library_names_spec 10783 10784# The coded name of the library, if different from the real name. 10785soname_spec=$lt_soname_spec 10786 10787# Commands used to build and install an old-style archive. 10788RANLIB=$lt_RANLIB 10789old_archive_cmds=$lt_old_archive_cmds 10790old_postinstall_cmds=$lt_old_postinstall_cmds 10791old_postuninstall_cmds=$lt_old_postuninstall_cmds 10792 10793# Create an old-style archive from a shared archive. 10794old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10795 10796# Create a temporary old-style archive to link instead of a shared archive. 10797old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10798 10799# Commands used to build and install a shared archive. 10800archive_cmds=$lt_archive_cmds 10801archive_expsym_cmds=$lt_archive_expsym_cmds 10802postinstall_cmds=$lt_postinstall_cmds 10803postuninstall_cmds=$lt_postuninstall_cmds 10804 10805# Commands used to build a loadable module (assumed same as above if empty) 10806module_cmds=$lt_module_cmds 10807module_expsym_cmds=$lt_module_expsym_cmds 10808 10809# Commands to strip libraries. 10810old_striplib=$lt_old_striplib 10811striplib=$lt_striplib 10812 10813# Dependencies to place before the objects being linked to create a 10814# shared library. 10815predep_objects=$lt_predep_objects 10816 10817# Dependencies to place after the objects being linked to create a 10818# shared library. 10819postdep_objects=$lt_postdep_objects 10820 10821# Dependencies to place before the objects being linked to create a 10822# shared library. 10823predeps=$lt_predeps 10824 10825# Dependencies to place after the objects being linked to create a 10826# shared library. 10827postdeps=$lt_postdeps 10828 10829# The directories searched by this compiler when creating a shared 10830# library 10831compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 10832 10833# The library search path used internally by the compiler when linking 10834# a shared library. 10835compiler_lib_search_path=$lt_compiler_lib_search_path 10836 10837# Method to check whether dependent libraries are shared objects. 10838deplibs_check_method=$lt_deplibs_check_method 10839 10840# Command to use when deplibs_check_method == file_magic. 10841file_magic_cmd=$lt_file_magic_cmd 10842 10843# Flag that allows shared libraries with undefined symbols to be built. 10844allow_undefined_flag=$lt_allow_undefined_flag 10845 10846# Flag that forces no undefined symbols. 10847no_undefined_flag=$lt_no_undefined_flag 10848 10849# Commands used to finish a libtool library installation in a directory. 10850finish_cmds=$lt_finish_cmds 10851 10852# Same as above, but a single script fragment to be evaled but not shown. 10853finish_eval=$lt_finish_eval 10854 10855# Take the output of nm and produce a listing of raw symbols and C names. 10856global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10857 10858# Transform the output of nm in a proper C declaration 10859global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10860 10861# Transform the output of nm in a C name address pair 10862global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10863 10864# This is the shared library runtime path variable. 10865runpath_var=$runpath_var 10866 10867# This is the shared library path variable. 10868shlibpath_var=$shlibpath_var 10869 10870# Is shlibpath searched before the hard-coded library search path? 10871shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10872 10873# How to hardcode a shared library path into an executable. 10874hardcode_action=$hardcode_action 10875 10876# Whether we should hardcode library paths into libraries. 10877hardcode_into_libs=$hardcode_into_libs 10878 10879# Flag to hardcode \$libdir into a binary during linking. 10880# This must work even if \$libdir does not exist. 10881hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10882 10883# If ld is used when linking, flag to hardcode \$libdir into 10884# a binary during linking. This must work even if \$libdir does 10885# not exist. 10886hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10887 10888# Whether we need a single -rpath flag with a separated argument. 10889hardcode_libdir_separator=$lt_hardcode_libdir_separator 10890 10891# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10892# resulting binary. 10893hardcode_direct=$hardcode_direct 10894 10895# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10896# resulting binary. 10897hardcode_minus_L=$hardcode_minus_L 10898 10899# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10900# the resulting binary. 10901hardcode_shlibpath_var=$hardcode_shlibpath_var 10902 10903# Set to yes if building a shared library automatically hardcodes DIR into the library 10904# and all subsequent libraries and executables linked against it. 10905hardcode_automatic=$hardcode_automatic 10906 10907# Variables whose values should be saved in libtool wrapper scripts and 10908# restored at relink time. 10909variables_saved_for_relink="$variables_saved_for_relink" 10910 10911# Whether libtool must link a program against all its dependency libraries. 10912link_all_deplibs=$link_all_deplibs 10913 10914# Compile-time system search path for libraries 10915sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10916 10917# Run-time system search path for libraries 10918sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10919 10920# Fix the shell variable \$srcfile for the compiler. 10921fix_srcfile_path=$lt_fix_srcfile_path 10922 10923# Set to yes if exported symbols are required. 10924always_export_symbols=$always_export_symbols 10925 10926# The commands to list exported symbols. 10927export_symbols_cmds=$lt_export_symbols_cmds 10928 10929# The commands to extract the exported symbol list from a shared archive. 10930extract_expsyms_cmds=$lt_extract_expsyms_cmds 10931 10932# Symbols that should not be listed in the preloaded symbols. 10933exclude_expsyms=$lt_exclude_expsyms 10934 10935# Symbols that must always be exported. 10936include_expsyms=$lt_include_expsyms 10937 10938# ### END LIBTOOL CONFIG 10939 10940__EOF__ 10941 10942 10943 case $host_os in 10944 aix3*) 10945 cat <<\EOF >> "$cfgfile" 10946 10947# AIX sometimes has problems with the GCC collect2 program. For some 10948# reason, if we set the COLLECT_NAMES environment variable, the problems 10949# vanish in a puff of smoke. 10950if test "X${COLLECT_NAMES+set}" != Xset; then 10951 COLLECT_NAMES= 10952 export COLLECT_NAMES 10953fi 10954EOF 10955 ;; 10956 esac 10957 10958 # We use sed instead of cat because bash on DJGPP gets confused if 10959 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10960 # text mode, it properly converts lines to CR/LF. This bash problem 10961 # is reportedly fixed, but why not run on old versions too? 10962 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10963 10964 mv -f "$cfgfile" "$ofile" || \ 10965 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10966 chmod +x "$ofile" 10967 10968else 10969 # If there is no Makefile yet, we rely on a make rule to execute 10970 # `config.status --recheck' to rerun these tests and create the 10971 # libtool script then. 10972 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10973 if test -f "$ltmain_in"; then 10974 test -f Makefile && make "$ltmain" 10975 fi 10976fi 10977 10978 10979ac_ext=c 10980ac_cpp='$CPP $CPPFLAGS' 10981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10983ac_compiler_gnu=$ac_cv_c_compiler_gnu 10984 10985CC="$lt_save_CC" 10986 10987 10988# Check whether --with-tags was given. 10989if test "${with_tags+set}" = set; then 10990 withval=$with_tags; tagnames="$withval" 10991fi 10992 10993 10994if test -f "$ltmain" && test -n "$tagnames"; then 10995 if test ! -f "${ofile}"; then 10996 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10997echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10998 fi 10999 11000 if test -z "$LTCC"; then 11001 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11002 if test -z "$LTCC"; then 11003 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11004echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11005 else 11006 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11007echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11008 fi 11009 fi 11010 if test -z "$LTCFLAGS"; then 11011 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11012 fi 11013 11014 # Extract list of available tagged configurations in $ofile. 11015 # Note that this assumes the entire list is on one line. 11016 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11017 11018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11019 for tagname in $tagnames; do 11020 IFS="$lt_save_ifs" 11021 # Check whether tagname contains only valid characters 11022 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11023 "") ;; 11024 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11025echo "$as_me: error: invalid tag name: $tagname" >&2;} 11026 { (exit 1); exit 1; }; } 11027 ;; 11028 esac 11029 11030 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11031 then 11032 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11033echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11034 { (exit 1); exit 1; }; } 11035 fi 11036 11037 # Update the list of available tags. 11038 if test -n "$tagname"; then 11039 echo appending configuration tag \"$tagname\" to $ofile 11040 11041 case $tagname in 11042 CXX) 11043 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11044 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11045 (test "X$CXX" != "Xg++"))) ; then 11046 ac_ext=cpp 11047ac_cpp='$CXXCPP $CPPFLAGS' 11048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11051 11052 11053 11054 11055archive_cmds_need_lc_CXX=no 11056allow_undefined_flag_CXX= 11057always_export_symbols_CXX=no 11058archive_expsym_cmds_CXX= 11059export_dynamic_flag_spec_CXX= 11060hardcode_direct_CXX=no 11061hardcode_libdir_flag_spec_CXX= 11062hardcode_libdir_flag_spec_ld_CXX= 11063hardcode_libdir_separator_CXX= 11064hardcode_minus_L_CXX=no 11065hardcode_shlibpath_var_CXX=unsupported 11066hardcode_automatic_CXX=no 11067module_cmds_CXX= 11068module_expsym_cmds_CXX= 11069link_all_deplibs_CXX=unknown 11070old_archive_cmds_CXX=$old_archive_cmds 11071no_undefined_flag_CXX= 11072whole_archive_flag_spec_CXX= 11073enable_shared_with_static_runtimes_CXX=no 11074 11075# Dependencies to place before and after the object being linked: 11076predep_objects_CXX= 11077postdep_objects_CXX= 11078predeps_CXX= 11079postdeps_CXX= 11080compiler_lib_search_path_CXX= 11081compiler_lib_search_dirs_CXX= 11082 11083# Source file extension for C++ test sources. 11084ac_ext=cpp 11085 11086# Object file extension for compiled C++ test sources. 11087objext=o 11088objext_CXX=$objext 11089 11090# Code to be used in simple compile tests 11091lt_simple_compile_test_code="int some_variable = 0;" 11092 11093# Code to be used in simple link tests 11094lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11095 11096# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11097 11098# If no C compiler was specified, use CC. 11099LTCC=${LTCC-"$CC"} 11100 11101# If no C compiler flags were specified, use CFLAGS. 11102LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11103 11104# Allow CC to be a program name with arguments. 11105compiler=$CC 11106 11107 11108# save warnings/boilerplate of simple test code 11109ac_outfile=conftest.$ac_objext 11110echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11111eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11112_lt_compiler_boilerplate=`cat conftest.err` 11113$rm conftest* 11114 11115ac_outfile=conftest.$ac_objext 11116echo "$lt_simple_link_test_code" >conftest.$ac_ext 11117eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11118_lt_linker_boilerplate=`cat conftest.err` 11119$rm -r conftest* 11120 11121 11122# Allow CC to be a program name with arguments. 11123lt_save_CC=$CC 11124lt_save_LD=$LD 11125lt_save_GCC=$GCC 11126GCC=$GXX 11127lt_save_with_gnu_ld=$with_gnu_ld 11128lt_save_path_LD=$lt_cv_path_LD 11129if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11130 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11131else 11132 $as_unset lt_cv_prog_gnu_ld 11133fi 11134if test -n "${lt_cv_path_LDCXX+set}"; then 11135 lt_cv_path_LD=$lt_cv_path_LDCXX 11136else 11137 $as_unset lt_cv_path_LD 11138fi 11139test -z "${LDCXX+set}" || LD=$LDCXX 11140CC=${CXX-"c++"} 11141compiler=$CC 11142compiler_CXX=$CC 11143for cc_temp in $compiler""; do 11144 case $cc_temp in 11145 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11146 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11147 \-*) ;; 11148 *) break;; 11149 esac 11150done 11151cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11152 11153 11154# We don't want -fno-exception wen compiling C++ code, so set the 11155# no_builtin_flag separately 11156if test "$GXX" = yes; then 11157 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11158else 11159 lt_prog_compiler_no_builtin_flag_CXX= 11160fi 11161 11162if test "$GXX" = yes; then 11163 # Set up default GNU C++ configuration 11164 11165 11166# Check whether --with-gnu-ld was given. 11167if test "${with_gnu_ld+set}" = set; then 11168 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11169else 11170 with_gnu_ld=no 11171fi 11172 11173ac_prog=ld 11174if test "$GCC" = yes; then 11175 # Check if gcc -print-prog-name=ld gives a path. 11176 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11177echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11178 case $host in 11179 *-*-mingw*) 11180 # gcc leaves a trailing carriage return which upsets mingw 11181 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11182 *) 11183 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11184 esac 11185 case $ac_prog in 11186 # Accept absolute paths. 11187 [\\/]* | ?:[\\/]*) 11188 re_direlt='/[^/][^/]*/\.\./' 11189 # Canonicalize the pathname of ld 11190 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11191 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11192 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11193 done 11194 test -z "$LD" && LD="$ac_prog" 11195 ;; 11196 "") 11197 # If it fails, then pretend we aren't using GCC. 11198 ac_prog=ld 11199 ;; 11200 *) 11201 # If it is relative, then search for the first ld in PATH. 11202 with_gnu_ld=unknown 11203 ;; 11204 esac 11205elif test "$with_gnu_ld" = yes; then 11206 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11207echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11208else 11209 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11210echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11211fi 11212if test "${lt_cv_path_LD+set}" = set; then 11213 echo $ECHO_N "(cached) $ECHO_C" >&6 11214else 11215 if test -z "$LD"; then 11216 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11217 for ac_dir in $PATH; do 11218 IFS="$lt_save_ifs" 11219 test -z "$ac_dir" && ac_dir=. 11220 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11221 lt_cv_path_LD="$ac_dir/$ac_prog" 11222 # Check to see if the program is GNU ld. I'd rather use --version, 11223 # but apparently some variants of GNU ld only accept -v. 11224 # Break only if it was the GNU/non-GNU ld that we prefer. 11225 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11226 *GNU* | *'with BFD'*) 11227 test "$with_gnu_ld" != no && break 11228 ;; 11229 *) 11230 test "$with_gnu_ld" != yes && break 11231 ;; 11232 esac 11233 fi 11234 done 11235 IFS="$lt_save_ifs" 11236else 11237 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11238fi 11239fi 11240 11241LD="$lt_cv_path_LD" 11242if test -n "$LD"; then 11243 { echo "$as_me:$LINENO: result: $LD" >&5 11244echo "${ECHO_T}$LD" >&6; } 11245else 11246 { echo "$as_me:$LINENO: result: no" >&5 11247echo "${ECHO_T}no" >&6; } 11248fi 11249test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11250echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11251 { (exit 1); exit 1; }; } 11252{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11253echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11254if test "${lt_cv_prog_gnu_ld+set}" = set; then 11255 echo $ECHO_N "(cached) $ECHO_C" >&6 11256else 11257 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11258case `$LD -v 2>&1 </dev/null` in 11259*GNU* | *'with BFD'*) 11260 lt_cv_prog_gnu_ld=yes 11261 ;; 11262*) 11263 lt_cv_prog_gnu_ld=no 11264 ;; 11265esac 11266fi 11267{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11268echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11269with_gnu_ld=$lt_cv_prog_gnu_ld 11270 11271 11272 11273 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11274 # archiving commands below assume that GNU ld is being used. 11275 if test "$with_gnu_ld" = yes; then 11276 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11277 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' 11278 11279 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11280 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11281 11282 # If archive_cmds runs LD, not CC, wlarc should be empty 11283 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11284 # investigate it a little bit more. (MM) 11285 wlarc='${wl}' 11286 11287 # ancient GNU ld didn't support --whole-archive et. al. 11288 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11289 grep 'no-whole-archive' > /dev/null; then 11290 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11291 else 11292 whole_archive_flag_spec_CXX= 11293 fi 11294 else 11295 with_gnu_ld=no 11296 wlarc= 11297 11298 # A generic and very simple default shared library creation 11299 # command for GNU C++ for the case where it uses the native 11300 # linker, instead of GNU ld. If possible, this setting should 11301 # overridden to take advantage of the native linker features on 11302 # the platform it is being used on. 11303 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11304 fi 11305 11306 # Commands to make compiler produce verbose output that lists 11307 # what "hidden" libraries, object files and flags are used when 11308 # linking a shared library. 11309 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11310 11311else 11312 GXX=no 11313 with_gnu_ld=no 11314 wlarc= 11315fi 11316 11317# PORTME: fill in a description of your system's C++ link characteristics 11318{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11319echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11320ld_shlibs_CXX=yes 11321case $host_os in 11322 aix3*) 11323 # FIXME: insert proper C++ library support 11324 ld_shlibs_CXX=no 11325 ;; 11326 aix[4-9]*) 11327 if test "$host_cpu" = ia64; then 11328 # On IA64, the linker does run time linking by default, so we don't 11329 # have to do anything special. 11330 aix_use_runtimelinking=no 11331 exp_sym_flag='-Bexport' 11332 no_entry_flag="" 11333 else 11334 aix_use_runtimelinking=no 11335 11336 # Test if we are trying to use run time linking or normal 11337 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11338 # need to do runtime linking. 11339 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11340 for ld_flag in $LDFLAGS; do 11341 case $ld_flag in 11342 *-brtl*) 11343 aix_use_runtimelinking=yes 11344 break 11345 ;; 11346 esac 11347 done 11348 ;; 11349 esac 11350 11351 exp_sym_flag='-bexport' 11352 no_entry_flag='-bnoentry' 11353 fi 11354 11355 # When large executables or shared objects are built, AIX ld can 11356 # have problems creating the table of contents. If linking a library 11357 # or program results in "error TOC overflow" add -mminimal-toc to 11358 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11359 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11360 11361 archive_cmds_CXX='' 11362 hardcode_direct_CXX=yes 11363 hardcode_libdir_separator_CXX=':' 11364 link_all_deplibs_CXX=yes 11365 11366 if test "$GXX" = yes; then 11367 case $host_os in aix4.[012]|aix4.[012].*) 11368 # We only want to do this on AIX 4.2 and lower, the check 11369 # below for broken collect2 doesn't work under 4.3+ 11370 collect2name=`${CC} -print-prog-name=collect2` 11371 if test -f "$collect2name" && \ 11372 strings "$collect2name" | grep resolve_lib_name >/dev/null 11373 then 11374 # We have reworked collect2 11375 : 11376 else 11377 # We have old collect2 11378 hardcode_direct_CXX=unsupported 11379 # It fails to find uninstalled libraries when the uninstalled 11380 # path is not listed in the libpath. Setting hardcode_minus_L 11381 # to unsupported forces relinking 11382 hardcode_minus_L_CXX=yes 11383 hardcode_libdir_flag_spec_CXX='-L$libdir' 11384 hardcode_libdir_separator_CXX= 11385 fi 11386 ;; 11387 esac 11388 shared_flag='-shared' 11389 if test "$aix_use_runtimelinking" = yes; then 11390 shared_flag="$shared_flag "'${wl}-G' 11391 fi 11392 else 11393 # not using gcc 11394 if test "$host_cpu" = ia64; then 11395 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11396 # chokes on -Wl,-G. The following line is correct: 11397 shared_flag='-G' 11398 else 11399 if test "$aix_use_runtimelinking" = yes; then 11400 shared_flag='${wl}-G' 11401 else 11402 shared_flag='${wl}-bM:SRE' 11403 fi 11404 fi 11405 fi 11406 11407 # It seems that -bexpall does not export symbols beginning with 11408 # underscore (_), so it is better to generate a list of symbols to export. 11409 always_export_symbols_CXX=yes 11410 if test "$aix_use_runtimelinking" = yes; then 11411 # Warning - without using the other runtime loading flags (-brtl), 11412 # -berok will link without error, but may produce a broken library. 11413 allow_undefined_flag_CXX='-berok' 11414 # Determine the default libpath from the value encoded in an empty executable. 11415 cat >conftest.$ac_ext <<_ACEOF 11416/* confdefs.h. */ 11417_ACEOF 11418cat confdefs.h >>conftest.$ac_ext 11419cat >>conftest.$ac_ext <<_ACEOF 11420/* end confdefs.h. */ 11421 11422int 11423main () 11424{ 11425 11426 ; 11427 return 0; 11428} 11429_ACEOF 11430rm -f conftest.$ac_objext conftest$ac_exeext 11431if { (ac_try="$ac_link" 11432case "(($ac_try" in 11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11434 *) ac_try_echo=$ac_try;; 11435esac 11436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11437 (eval "$ac_link") 2>conftest.er1 11438 ac_status=$? 11439 grep -v '^ *+' conftest.er1 >conftest.err 11440 rm -f conftest.er1 11441 cat conftest.err >&5 11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11443 (exit $ac_status); } && { 11444 test -z "$ac_cxx_werror_flag" || 11445 test ! -s conftest.err 11446 } && test -s conftest$ac_exeext && 11447 $as_test_x conftest$ac_exeext; then 11448 11449lt_aix_libpath_sed=' 11450 /Import File Strings/,/^$/ { 11451 /^0/ { 11452 s/^0 *\(.*\)$/\1/ 11453 p 11454 } 11455 }' 11456aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11457# Check for a 64-bit object if we didn't find anything. 11458if test -z "$aix_libpath"; then 11459 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11460fi 11461else 11462 echo "$as_me: failed program was:" >&5 11463sed 's/^/| /' conftest.$ac_ext >&5 11464 11465 11466fi 11467 11468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11469 conftest$ac_exeext conftest.$ac_ext 11470if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11471 11472 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11473 11474 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11475 else 11476 if test "$host_cpu" = ia64; then 11477 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11478 allow_undefined_flag_CXX="-z nodefs" 11479 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" 11480 else 11481 # Determine the default libpath from the value encoded in an empty executable. 11482 cat >conftest.$ac_ext <<_ACEOF 11483/* confdefs.h. */ 11484_ACEOF 11485cat confdefs.h >>conftest.$ac_ext 11486cat >>conftest.$ac_ext <<_ACEOF 11487/* end confdefs.h. */ 11488 11489int 11490main () 11491{ 11492 11493 ; 11494 return 0; 11495} 11496_ACEOF 11497rm -f conftest.$ac_objext conftest$ac_exeext 11498if { (ac_try="$ac_link" 11499case "(($ac_try" in 11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11501 *) ac_try_echo=$ac_try;; 11502esac 11503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11504 (eval "$ac_link") 2>conftest.er1 11505 ac_status=$? 11506 grep -v '^ *+' conftest.er1 >conftest.err 11507 rm -f conftest.er1 11508 cat conftest.err >&5 11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11510 (exit $ac_status); } && { 11511 test -z "$ac_cxx_werror_flag" || 11512 test ! -s conftest.err 11513 } && test -s conftest$ac_exeext && 11514 $as_test_x conftest$ac_exeext; then 11515 11516lt_aix_libpath_sed=' 11517 /Import File Strings/,/^$/ { 11518 /^0/ { 11519 s/^0 *\(.*\)$/\1/ 11520 p 11521 } 11522 }' 11523aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11524# Check for a 64-bit object if we didn't find anything. 11525if test -z "$aix_libpath"; then 11526 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11527fi 11528else 11529 echo "$as_me: failed program was:" >&5 11530sed 's/^/| /' conftest.$ac_ext >&5 11531 11532 11533fi 11534 11535rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11536 conftest$ac_exeext conftest.$ac_ext 11537if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11538 11539 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11540 # Warning - without using the other run time loading flags, 11541 # -berok will link without error, but may produce a broken library. 11542 no_undefined_flag_CXX=' ${wl}-bernotok' 11543 allow_undefined_flag_CXX=' ${wl}-berok' 11544 # Exported symbols can be pulled into shared objects from archives 11545 whole_archive_flag_spec_CXX='$convenience' 11546 archive_cmds_need_lc_CXX=yes 11547 # This is similar to how AIX traditionally builds its shared libraries. 11548 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' 11549 fi 11550 fi 11551 ;; 11552 11553 beos*) 11554 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11555 allow_undefined_flag_CXX=unsupported 11556 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11557 # support --undefined. This deserves some investigation. FIXME 11558 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11559 else 11560 ld_shlibs_CXX=no 11561 fi 11562 ;; 11563 11564 chorus*) 11565 case $cc_basename in 11566 *) 11567 # FIXME: insert proper C++ library support 11568 ld_shlibs_CXX=no 11569 ;; 11570 esac 11571 ;; 11572 11573 cygwin* | mingw* | pw32*) 11574 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11575 # as there is no search path for DLLs. 11576 hardcode_libdir_flag_spec_CXX='-L$libdir' 11577 allow_undefined_flag_CXX=unsupported 11578 always_export_symbols_CXX=no 11579 enable_shared_with_static_runtimes_CXX=yes 11580 11581 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11582 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' 11583 # If the export-symbols file already is a .def file (1st line 11584 # is EXPORTS), use it as is; otherwise, prepend... 11585 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11586 cp $export_symbols $output_objdir/$soname.def; 11587 else 11588 echo EXPORTS > $output_objdir/$soname.def; 11589 cat $export_symbols >> $output_objdir/$soname.def; 11590 fi~ 11591 $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' 11592 else 11593 ld_shlibs_CXX=no 11594 fi 11595 ;; 11596 darwin* | rhapsody*) 11597 archive_cmds_need_lc_CXX=no 11598 hardcode_direct_CXX=no 11599 hardcode_automatic_CXX=yes 11600 hardcode_shlibpath_var_CXX=unsupported 11601 whole_archive_flag_spec_CXX='' 11602 link_all_deplibs_CXX=yes 11603 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11604 if test "$GXX" = yes ; then 11605 output_verbose_link_cmd='echo' 11606 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}" 11607 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11608 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}" 11609 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}" 11610 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11611 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}" 11612 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}" 11613 fi 11614 else 11615 case $cc_basename in 11616 xlc*) 11617 output_verbose_link_cmd='echo' 11618 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11619 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11620 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11621 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11622 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11623 ;; 11624 *) 11625 ld_shlibs_CXX=no 11626 ;; 11627 esac 11628 fi 11629 ;; 11630 11631 dgux*) 11632 case $cc_basename in 11633 ec++*) 11634 # FIXME: insert proper C++ library support 11635 ld_shlibs_CXX=no 11636 ;; 11637 ghcx*) 11638 # Green Hills C++ Compiler 11639 # FIXME: insert proper C++ library support 11640 ld_shlibs_CXX=no 11641 ;; 11642 *) 11643 # FIXME: insert proper C++ library support 11644 ld_shlibs_CXX=no 11645 ;; 11646 esac 11647 ;; 11648 freebsd[12]*) 11649 # C++ shared libraries reported to be fairly broken before switch to ELF 11650 ld_shlibs_CXX=no 11651 ;; 11652 freebsd-elf*) 11653 archive_cmds_need_lc_CXX=no 11654 ;; 11655 freebsd* | dragonfly*) 11656 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11657 # conventions 11658 ld_shlibs_CXX=yes 11659 ;; 11660 gnu*) 11661 ;; 11662 hpux9*) 11663 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11664 hardcode_libdir_separator_CXX=: 11665 export_dynamic_flag_spec_CXX='${wl}-E' 11666 hardcode_direct_CXX=yes 11667 hardcode_minus_L_CXX=yes # Not in the search PATH, 11668 # but as the default 11669 # location of the library. 11670 11671 case $cc_basename in 11672 CC*) 11673 # FIXME: insert proper C++ library support 11674 ld_shlibs_CXX=no 11675 ;; 11676 aCC*) 11677 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' 11678 # Commands to make compiler produce verbose output that lists 11679 # what "hidden" libraries, object files and flags are used when 11680 # linking a shared library. 11681 # 11682 # There doesn't appear to be a way to prevent this compiler from 11683 # explicitly linking system object files so we need to strip them 11684 # from the output so that they don't get included in the library 11685 # dependencies. 11686 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 $list' 11687 ;; 11688 *) 11689 if test "$GXX" = yes; then 11690 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' 11691 else 11692 # FIXME: insert proper C++ library support 11693 ld_shlibs_CXX=no 11694 fi 11695 ;; 11696 esac 11697 ;; 11698 hpux10*|hpux11*) 11699 if test $with_gnu_ld = no; then 11700 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11701 hardcode_libdir_separator_CXX=: 11702 11703 case $host_cpu in 11704 hppa*64*|ia64*) ;; 11705 *) 11706 export_dynamic_flag_spec_CXX='${wl}-E' 11707 ;; 11708 esac 11709 fi 11710 case $host_cpu in 11711 hppa*64*|ia64*) 11712 hardcode_direct_CXX=no 11713 hardcode_shlibpath_var_CXX=no 11714 ;; 11715 *) 11716 hardcode_direct_CXX=yes 11717 hardcode_minus_L_CXX=yes # Not in the search PATH, 11718 # but as the default 11719 # location of the library. 11720 ;; 11721 esac 11722 11723 case $cc_basename in 11724 CC*) 11725 # FIXME: insert proper C++ library support 11726 ld_shlibs_CXX=no 11727 ;; 11728 aCC*) 11729 case $host_cpu in 11730 hppa*64*) 11731 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11732 ;; 11733 ia64*) 11734 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11735 ;; 11736 *) 11737 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11738 ;; 11739 esac 11740 # Commands to make compiler produce verbose output that lists 11741 # what "hidden" libraries, object files and flags are used when 11742 # linking a shared library. 11743 # 11744 # There doesn't appear to be a way to prevent this compiler from 11745 # explicitly linking system object files so we need to strip them 11746 # from the output so that they don't get included in the library 11747 # dependencies. 11748 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 $list' 11749 ;; 11750 *) 11751 if test "$GXX" = yes; then 11752 if test $with_gnu_ld = no; then 11753 case $host_cpu in 11754 hppa*64*) 11755 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11756 ;; 11757 ia64*) 11758 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11759 ;; 11760 *) 11761 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' 11762 ;; 11763 esac 11764 fi 11765 else 11766 # FIXME: insert proper C++ library support 11767 ld_shlibs_CXX=no 11768 fi 11769 ;; 11770 esac 11771 ;; 11772 interix[3-9]*) 11773 hardcode_direct_CXX=no 11774 hardcode_shlibpath_var_CXX=no 11775 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11776 export_dynamic_flag_spec_CXX='${wl}-E' 11777 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11778 # Instead, shared libraries are loaded at an image base (0x10000000 by 11779 # default) and relocated if they conflict, which is a slow very memory 11780 # consuming and fragmenting process. To avoid this, we pick a random, 11781 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11782 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11783 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' 11784 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' 11785 ;; 11786 irix5* | irix6*) 11787 case $cc_basename in 11788 CC*) 11789 # SGI C++ 11790 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11791 11792 # Archives containing C++ object files must be created using 11793 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11794 # necessary to make sure instantiated templates are included 11795 # in the archive. 11796 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11797 ;; 11798 *) 11799 if test "$GXX" = yes; then 11800 if test "$with_gnu_ld" = no; then 11801 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 11802 else 11803 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 11804 fi 11805 fi 11806 link_all_deplibs_CXX=yes 11807 ;; 11808 esac 11809 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11810 hardcode_libdir_separator_CXX=: 11811 ;; 11812 linux* | k*bsd*-gnu) 11813 case $cc_basename in 11814 KCC*) 11815 # Kuck and Associates, Inc. (KAI) C++ Compiler 11816 11817 # KCC will only create a shared library if the output file 11818 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11819 # to its proper name (with version) after linking. 11820 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' 11821 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' 11822 # Commands to make compiler produce verbose output that lists 11823 # what "hidden" libraries, object files and flags are used when 11824 # linking a shared library. 11825 # 11826 # There doesn't appear to be a way to prevent this compiler from 11827 # explicitly linking system object files so we need to strip them 11828 # from the output so that they don't get included in the library 11829 # dependencies. 11830 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 $list' 11831 11832 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11833 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11834 11835 # Archives containing C++ object files must be created using 11836 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11837 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11838 ;; 11839 icpc*) 11840 # Intel C++ 11841 with_gnu_ld=yes 11842 # version 8.0 and above of icpc choke on multiply defined symbols 11843 # if we add $predep_objects and $postdep_objects, however 7.1 and 11844 # earlier do not add the objects themselves. 11845 case `$CC -V 2>&1` in 11846 *"Version 7."*) 11847 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11848 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' 11849 ;; 11850 *) # Version 8.0 or newer 11851 tmp_idyn= 11852 case $host_cpu in 11853 ia64*) tmp_idyn=' -i_dynamic';; 11854 esac 11855 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11856 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' 11857 ;; 11858 esac 11859 archive_cmds_need_lc_CXX=no 11860 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11861 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11862 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11863 ;; 11864 pgCC* | pgcpp*) 11865 # Portland Group C++ compiler 11866 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11867 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' 11868 11869 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11870 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11871 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' 11872 ;; 11873 cxx*) 11874 # Compaq C++ 11875 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11876 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' 11877 11878 runpath_var=LD_RUN_PATH 11879 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11880 hardcode_libdir_separator_CXX=: 11881 11882 # Commands to make compiler produce verbose output that lists 11883 # what "hidden" libraries, object files and flags are used when 11884 # linking a shared library. 11885 # 11886 # There doesn't appear to be a way to prevent this compiler from 11887 # explicitly linking system object files so we need to strip them 11888 # from the output so that they don't get included in the library 11889 # dependencies. 11890 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11891 ;; 11892 *) 11893 case `$CC -V 2>&1 | sed 5q` in 11894 *Sun\ C*) 11895 # Sun C++ 5.9 11896 no_undefined_flag_CXX=' -zdefs' 11897 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11898 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' 11899 hardcode_libdir_flag_spec_CXX='-R$libdir' 11900 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' 11901 11902 # Not sure whether something based on 11903 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11904 # would be better. 11905 output_verbose_link_cmd='echo' 11906 11907 # Archives containing C++ object files must be created using 11908 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11909 # necessary to make sure instantiated templates are included 11910 # in the archive. 11911 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11912 ;; 11913 esac 11914 ;; 11915 esac 11916 ;; 11917 lynxos*) 11918 # FIXME: insert proper C++ library support 11919 ld_shlibs_CXX=no 11920 ;; 11921 m88k*) 11922 # FIXME: insert proper C++ library support 11923 ld_shlibs_CXX=no 11924 ;; 11925 mvs*) 11926 case $cc_basename in 11927 cxx*) 11928 # FIXME: insert proper C++ library support 11929 ld_shlibs_CXX=no 11930 ;; 11931 *) 11932 # FIXME: insert proper C++ library support 11933 ld_shlibs_CXX=no 11934 ;; 11935 esac 11936 ;; 11937 netbsd* | netbsdelf*-gnu) 11938 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11939 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11940 wlarc= 11941 hardcode_libdir_flag_spec_CXX='-R$libdir' 11942 hardcode_direct_CXX=yes 11943 hardcode_shlibpath_var_CXX=no 11944 fi 11945 # Workaround some broken pre-1.5 toolchains 11946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11947 ;; 11948 openbsd2*) 11949 # C++ shared libraries are fairly broken 11950 ld_shlibs_CXX=no 11951 ;; 11952 openbsd*) 11953 if test -f /usr/libexec/ld.so; then 11954 hardcode_direct_CXX=yes 11955 hardcode_shlibpath_var_CXX=no 11956 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11957 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11958 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11959 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11960 export_dynamic_flag_spec_CXX='${wl}-E' 11961 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11962 fi 11963 output_verbose_link_cmd='echo' 11964 else 11965 ld_shlibs_CXX=no 11966 fi 11967 ;; 11968 osf3*) 11969 case $cc_basename in 11970 KCC*) 11971 # Kuck and Associates, Inc. (KAI) C++ Compiler 11972 11973 # KCC will only create a shared library if the output file 11974 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11975 # to its proper name (with version) after linking. 11976 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' 11977 11978 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11979 hardcode_libdir_separator_CXX=: 11980 11981 # Archives containing C++ object files must be created using 11982 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11983 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11984 11985 ;; 11986 RCC*) 11987 # Rational C++ 2.4.1 11988 # FIXME: insert proper C++ library support 11989 ld_shlibs_CXX=no 11990 ;; 11991 cxx*) 11992 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11993 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11994 11995 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11996 hardcode_libdir_separator_CXX=: 11997 11998 # Commands to make compiler produce verbose output that lists 11999 # what "hidden" libraries, object files and flags are used when 12000 # linking a shared library. 12001 # 12002 # There doesn't appear to be a way to prevent this compiler from 12003 # explicitly linking system object files so we need to strip them 12004 # from the output so that they don't get included in the library 12005 # dependencies. 12006 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12007 ;; 12008 *) 12009 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12010 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12011 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12012 12013 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12014 hardcode_libdir_separator_CXX=: 12015 12016 # Commands to make compiler produce verbose output that lists 12017 # what "hidden" libraries, object files and flags are used when 12018 # linking a shared library. 12019 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12020 12021 else 12022 # FIXME: insert proper C++ library support 12023 ld_shlibs_CXX=no 12024 fi 12025 ;; 12026 esac 12027 ;; 12028 osf4* | osf5*) 12029 case $cc_basename in 12030 KCC*) 12031 # Kuck and Associates, Inc. (KAI) C++ Compiler 12032 12033 # KCC will only create a shared library if the output file 12034 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12035 # to its proper name (with version) after linking. 12036 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' 12037 12038 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12039 hardcode_libdir_separator_CXX=: 12040 12041 # Archives containing C++ object files must be created using 12042 # the KAI C++ compiler. 12043 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12044 ;; 12045 RCC*) 12046 # Rational C++ 2.4.1 12047 # FIXME: insert proper C++ library support 12048 ld_shlibs_CXX=no 12049 ;; 12050 cxx*) 12051 allow_undefined_flag_CXX=' -expect_unresolved \*' 12052 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12053 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12054 echo "-hidden">> $lib.exp~ 12055 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 12056 $rm $lib.exp' 12057 12058 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12059 hardcode_libdir_separator_CXX=: 12060 12061 # Commands to make compiler produce verbose output that lists 12062 # what "hidden" libraries, object files and flags are used when 12063 # linking a shared library. 12064 # 12065 # There doesn't appear to be a way to prevent this compiler from 12066 # explicitly linking system object files so we need to strip them 12067 # from the output so that they don't get included in the library 12068 # dependencies. 12069 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12070 ;; 12071 *) 12072 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12073 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12074 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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12075 12076 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12077 hardcode_libdir_separator_CXX=: 12078 12079 # Commands to make compiler produce verbose output that lists 12080 # what "hidden" libraries, object files and flags are used when 12081 # linking a shared library. 12082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12083 12084 else 12085 # FIXME: insert proper C++ library support 12086 ld_shlibs_CXX=no 12087 fi 12088 ;; 12089 esac 12090 ;; 12091 psos*) 12092 # FIXME: insert proper C++ library support 12093 ld_shlibs_CXX=no 12094 ;; 12095 sunos4*) 12096 case $cc_basename in 12097 CC*) 12098 # Sun C++ 4.x 12099 # FIXME: insert proper C++ library support 12100 ld_shlibs_CXX=no 12101 ;; 12102 lcc*) 12103 # Lucid 12104 # FIXME: insert proper C++ library support 12105 ld_shlibs_CXX=no 12106 ;; 12107 *) 12108 # FIXME: insert proper C++ library support 12109 ld_shlibs_CXX=no 12110 ;; 12111 esac 12112 ;; 12113 solaris*) 12114 case $cc_basename in 12115 CC*) 12116 # Sun C++ 4.2, 5.x and Centerline C++ 12117 archive_cmds_need_lc_CXX=yes 12118 no_undefined_flag_CXX=' -zdefs' 12119 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12120 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12121 $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' 12122 12123 hardcode_libdir_flag_spec_CXX='-R$libdir' 12124 hardcode_shlibpath_var_CXX=no 12125 case $host_os in 12126 solaris2.[0-5] | solaris2.[0-5].*) ;; 12127 *) 12128 # The compiler driver will combine and reorder linker options, 12129 # but understands `-z linker_flag'. 12130 # Supported since Solaris 2.6 (maybe 2.5.1?) 12131 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12132 ;; 12133 esac 12134 link_all_deplibs_CXX=yes 12135 12136 output_verbose_link_cmd='echo' 12137 12138 # Archives containing C++ object files must be created using 12139 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12140 # necessary to make sure instantiated templates are included 12141 # in the archive. 12142 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12143 ;; 12144 gcx*) 12145 # Green Hills C++ Compiler 12146 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12147 12148 # The C++ compiler must be used to create the archive. 12149 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12150 ;; 12151 *) 12152 # GNU C++ compiler with Solaris linker 12153 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12154 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12155 if $CC --version | grep -v '^2\.7' > /dev/null; then 12156 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12157 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12158 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12159 12160 # Commands to make compiler produce verbose output that lists 12161 # what "hidden" libraries, object files and flags are used when 12162 # linking a shared library. 12163 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12164 else 12165 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12166 # platform. 12167 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12168 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12169 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12170 12171 # Commands to make compiler produce verbose output that lists 12172 # what "hidden" libraries, object files and flags are used when 12173 # linking a shared library. 12174 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12175 fi 12176 12177 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12178 case $host_os in 12179 solaris2.[0-5] | solaris2.[0-5].*) ;; 12180 *) 12181 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12182 ;; 12183 esac 12184 fi 12185 ;; 12186 esac 12187 ;; 12188 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12189 no_undefined_flag_CXX='${wl}-z,text' 12190 archive_cmds_need_lc_CXX=no 12191 hardcode_shlibpath_var_CXX=no 12192 runpath_var='LD_RUN_PATH' 12193 12194 case $cc_basename in 12195 CC*) 12196 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12197 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12198 ;; 12199 *) 12200 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12201 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12202 ;; 12203 esac 12204 ;; 12205 sysv5* | sco3.2v5* | sco5v6*) 12206 # Note: We can NOT use -z defs as we might desire, because we do not 12207 # link with -lc, and that would cause any symbols used from libc to 12208 # always be unresolved, which means just about no library would 12209 # ever link correctly. If we're not using GNU ld we use -z text 12210 # though, which does catch some bad symbols but isn't as heavy-handed 12211 # as -z defs. 12212 # For security reasons, it is highly recommended that you always 12213 # use absolute paths for naming shared libraries, and exclude the 12214 # DT_RUNPATH tag from executables and libraries. But doing so 12215 # requires that you compile everything twice, which is a pain. 12216 # So that behaviour is only enabled if SCOABSPATH is set to a 12217 # non-empty value in the environment. Most likely only useful for 12218 # creating official distributions of packages. 12219 # This is a hack until libtool officially supports absolute path 12220 # names for shared libraries. 12221 no_undefined_flag_CXX='${wl}-z,text' 12222 allow_undefined_flag_CXX='${wl}-z,nodefs' 12223 archive_cmds_need_lc_CXX=no 12224 hardcode_shlibpath_var_CXX=no 12225 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12226 hardcode_libdir_separator_CXX=':' 12227 link_all_deplibs_CXX=yes 12228 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12229 runpath_var='LD_RUN_PATH' 12230 12231 case $cc_basename in 12232 CC*) 12233 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12234 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12235 ;; 12236 *) 12237 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12238 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12239 ;; 12240 esac 12241 ;; 12242 tandem*) 12243 case $cc_basename in 12244 NCC*) 12245 # NonStop-UX NCC 3.20 12246 # FIXME: insert proper C++ library support 12247 ld_shlibs_CXX=no 12248 ;; 12249 *) 12250 # FIXME: insert proper C++ library support 12251 ld_shlibs_CXX=no 12252 ;; 12253 esac 12254 ;; 12255 vxworks*) 12256 # FIXME: insert proper C++ library support 12257 ld_shlibs_CXX=no 12258 ;; 12259 *) 12260 # FIXME: insert proper C++ library support 12261 ld_shlibs_CXX=no 12262 ;; 12263esac 12264{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12265echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12266test "$ld_shlibs_CXX" = no && can_build_shared=no 12267 12268GCC_CXX="$GXX" 12269LD_CXX="$LD" 12270 12271cat > conftest.$ac_ext <<EOF 12272class Foo 12273{ 12274public: 12275 Foo (void) { a = 0; } 12276private: 12277 int a; 12278}; 12279EOF 12280 12281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12282 (eval $ac_compile) 2>&5 12283 ac_status=$? 12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12285 (exit $ac_status); }; then 12286 # Parse the compiler output and extract the necessary 12287 # objects, libraries and library flags. 12288 12289 # Sentinel used to keep track of whether or not we are before 12290 # the conftest object file. 12291 pre_test_object_deps_done=no 12292 12293 # The `*' in the case matches for architectures that use `case' in 12294 # $output_verbose_cmd can trigger glob expansion during the loop 12295 # eval without this substitution. 12296 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12297 12298 for p in `eval $output_verbose_link_cmd`; do 12299 case $p in 12300 12301 -L* | -R* | -l*) 12302 # Some compilers place space between "-{L,R}" and the path. 12303 # Remove the space. 12304 if test $p = "-L" \ 12305 || test $p = "-R"; then 12306 prev=$p 12307 continue 12308 else 12309 prev= 12310 fi 12311 12312 if test "$pre_test_object_deps_done" = no; then 12313 case $p in 12314 -L* | -R*) 12315 # Internal compiler library paths should come after those 12316 # provided the user. The postdeps already come after the 12317 # user supplied libs so there is no need to process them. 12318 if test -z "$compiler_lib_search_path_CXX"; then 12319 compiler_lib_search_path_CXX="${prev}${p}" 12320 else 12321 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12322 fi 12323 ;; 12324 # The "-l" case would never come before the object being 12325 # linked, so don't bother handling this case. 12326 esac 12327 else 12328 if test -z "$postdeps_CXX"; then 12329 postdeps_CXX="${prev}${p}" 12330 else 12331 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12332 fi 12333 fi 12334 ;; 12335 12336 *.$objext) 12337 # This assumes that the test object file only shows up 12338 # once in the compiler output. 12339 if test "$p" = "conftest.$objext"; then 12340 pre_test_object_deps_done=yes 12341 continue 12342 fi 12343 12344 if test "$pre_test_object_deps_done" = no; then 12345 if test -z "$predep_objects_CXX"; then 12346 predep_objects_CXX="$p" 12347 else 12348 predep_objects_CXX="$predep_objects_CXX $p" 12349 fi 12350 else 12351 if test -z "$postdep_objects_CXX"; then 12352 postdep_objects_CXX="$p" 12353 else 12354 postdep_objects_CXX="$postdep_objects_CXX $p" 12355 fi 12356 fi 12357 ;; 12358 12359 *) ;; # Ignore the rest. 12360 12361 esac 12362 done 12363 12364 # Clean up. 12365 rm -f a.out a.exe 12366else 12367 echo "libtool.m4: error: problem compiling CXX test program" 12368fi 12369 12370$rm -f confest.$objext 12371 12372compiler_lib_search_dirs_CXX= 12373if test -n "$compiler_lib_search_path_CXX"; then 12374 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12375fi 12376 12377# PORTME: override above test on systems where it is broken 12378case $host_os in 12379interix[3-9]*) 12380 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12381 # hack all around it, let's just trust "g++" to DTRT. 12382 predep_objects_CXX= 12383 postdep_objects_CXX= 12384 postdeps_CXX= 12385 ;; 12386 12387linux*) 12388 case `$CC -V 2>&1 | sed 5q` in 12389 *Sun\ C*) 12390 # Sun C++ 5.9 12391 # 12392 # The more standards-conforming stlport4 library is 12393 # incompatible with the Cstd library. Avoid specifying 12394 # it if it's in CXXFLAGS. Ignore libCrun as 12395 # -library=stlport4 depends on it. 12396 case " $CXX $CXXFLAGS " in 12397 *" -library=stlport4 "*) 12398 solaris_use_stlport4=yes 12399 ;; 12400 esac 12401 if test "$solaris_use_stlport4" != yes; then 12402 postdeps_CXX='-library=Cstd -library=Crun' 12403 fi 12404 ;; 12405 esac 12406 ;; 12407 12408solaris*) 12409 case $cc_basename in 12410 CC*) 12411 # The more standards-conforming stlport4 library is 12412 # incompatible with the Cstd library. Avoid specifying 12413 # it if it's in CXXFLAGS. Ignore libCrun as 12414 # -library=stlport4 depends on it. 12415 case " $CXX $CXXFLAGS " in 12416 *" -library=stlport4 "*) 12417 solaris_use_stlport4=yes 12418 ;; 12419 esac 12420 12421 # Adding this requires a known-good setup of shared libraries for 12422 # Sun compiler versions before 5.6, else PIC objects from an old 12423 # archive will be linked into the output, leading to subtle bugs. 12424 if test "$solaris_use_stlport4" != yes; then 12425 postdeps_CXX='-library=Cstd -library=Crun' 12426 fi 12427 ;; 12428 esac 12429 ;; 12430esac 12431 12432case " $postdeps_CXX " in 12433*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12434esac 12435 12436lt_prog_compiler_wl_CXX= 12437lt_prog_compiler_pic_CXX= 12438lt_prog_compiler_static_CXX= 12439 12440{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12441echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12442 12443 # C++ specific cases for pic, static, wl, etc. 12444 if test "$GXX" = yes; then 12445 lt_prog_compiler_wl_CXX='-Wl,' 12446 lt_prog_compiler_static_CXX='-static' 12447 12448 case $host_os in 12449 aix*) 12450 # All AIX code is PIC. 12451 if test "$host_cpu" = ia64; then 12452 # AIX 5 now supports IA64 processor 12453 lt_prog_compiler_static_CXX='-Bstatic' 12454 fi 12455 ;; 12456 amigaos*) 12457 # FIXME: we need at least 68020 code to build shared libraries, but 12458 # adding the `-m68020' flag to GCC prevents building anything better, 12459 # like `-m68040'. 12460 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12461 ;; 12462 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12463 # PIC is the default for these OSes. 12464 ;; 12465 mingw* | cygwin* | os2* | pw32*) 12466 # This hack is so that the source file can tell whether it is being 12467 # built for inclusion in a dll (and should export symbols for example). 12468 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12469 # (--disable-auto-import) libraries 12470 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12471 ;; 12472 darwin* | rhapsody*) 12473 # PIC is the default on this platform 12474 # Common symbols not allowed in MH_DYLIB files 12475 lt_prog_compiler_pic_CXX='-fno-common' 12476 ;; 12477 *djgpp*) 12478 # DJGPP does not support shared libraries at all 12479 lt_prog_compiler_pic_CXX= 12480 ;; 12481 interix[3-9]*) 12482 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12483 # Instead, we relocate shared libraries at runtime. 12484 ;; 12485 sysv4*MP*) 12486 if test -d /usr/nec; then 12487 lt_prog_compiler_pic_CXX=-Kconform_pic 12488 fi 12489 ;; 12490 hpux*) 12491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12492 # not for PA HP-UX. 12493 case $host_cpu in 12494 hppa*64*|ia64*) 12495 ;; 12496 *) 12497 lt_prog_compiler_pic_CXX='-fPIC' 12498 ;; 12499 esac 12500 ;; 12501 *) 12502 lt_prog_compiler_pic_CXX='-fPIC' 12503 ;; 12504 esac 12505 else 12506 case $host_os in 12507 aix[4-9]*) 12508 # All AIX code is PIC. 12509 if test "$host_cpu" = ia64; then 12510 # AIX 5 now supports IA64 processor 12511 lt_prog_compiler_static_CXX='-Bstatic' 12512 else 12513 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12514 fi 12515 ;; 12516 chorus*) 12517 case $cc_basename in 12518 cxch68*) 12519 # Green Hills C++ Compiler 12520 # _LT_AC_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" 12521 ;; 12522 esac 12523 ;; 12524 darwin*) 12525 # PIC is the default on this platform 12526 # Common symbols not allowed in MH_DYLIB files 12527 case $cc_basename in 12528 xlc*) 12529 lt_prog_compiler_pic_CXX='-qnocommon' 12530 lt_prog_compiler_wl_CXX='-Wl,' 12531 ;; 12532 esac 12533 ;; 12534 dgux*) 12535 case $cc_basename in 12536 ec++*) 12537 lt_prog_compiler_pic_CXX='-KPIC' 12538 ;; 12539 ghcx*) 12540 # Green Hills C++ Compiler 12541 lt_prog_compiler_pic_CXX='-pic' 12542 ;; 12543 *) 12544 ;; 12545 esac 12546 ;; 12547 freebsd* | dragonfly*) 12548 # FreeBSD uses GNU C++ 12549 ;; 12550 hpux9* | hpux10* | hpux11*) 12551 case $cc_basename in 12552 CC*) 12553 lt_prog_compiler_wl_CXX='-Wl,' 12554 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12555 if test "$host_cpu" != ia64; then 12556 lt_prog_compiler_pic_CXX='+Z' 12557 fi 12558 ;; 12559 aCC*) 12560 lt_prog_compiler_wl_CXX='-Wl,' 12561 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12562 case $host_cpu in 12563 hppa*64*|ia64*) 12564 # +Z the default 12565 ;; 12566 *) 12567 lt_prog_compiler_pic_CXX='+Z' 12568 ;; 12569 esac 12570 ;; 12571 *) 12572 ;; 12573 esac 12574 ;; 12575 interix*) 12576 # This is c89, which is MS Visual C++ (no shared libs) 12577 # Anyone wants to do a port? 12578 ;; 12579 irix5* | irix6* | nonstopux*) 12580 case $cc_basename in 12581 CC*) 12582 lt_prog_compiler_wl_CXX='-Wl,' 12583 lt_prog_compiler_static_CXX='-non_shared' 12584 # CC pic flag -KPIC is the default. 12585 ;; 12586 *) 12587 ;; 12588 esac 12589 ;; 12590 linux* | k*bsd*-gnu) 12591 case $cc_basename in 12592 KCC*) 12593 # KAI C++ Compiler 12594 lt_prog_compiler_wl_CXX='--backend -Wl,' 12595 lt_prog_compiler_pic_CXX='-fPIC' 12596 ;; 12597 icpc* | ecpc*) 12598 # Intel C++ 12599 lt_prog_compiler_wl_CXX='-Wl,' 12600 lt_prog_compiler_pic_CXX='-KPIC' 12601 lt_prog_compiler_static_CXX='-static' 12602 ;; 12603 pgCC* | pgcpp*) 12604 # Portland Group C++ compiler. 12605 lt_prog_compiler_wl_CXX='-Wl,' 12606 lt_prog_compiler_pic_CXX='-fpic' 12607 lt_prog_compiler_static_CXX='-Bstatic' 12608 ;; 12609 cxx*) 12610 # Compaq C++ 12611 # Make sure the PIC flag is empty. It appears that all Alpha 12612 # Linux and Compaq Tru64 Unix objects are PIC. 12613 lt_prog_compiler_pic_CXX= 12614 lt_prog_compiler_static_CXX='-non_shared' 12615 ;; 12616 *) 12617 case `$CC -V 2>&1 | sed 5q` in 12618 *Sun\ C*) 12619 # Sun C++ 5.9 12620 lt_prog_compiler_pic_CXX='-KPIC' 12621 lt_prog_compiler_static_CXX='-Bstatic' 12622 lt_prog_compiler_wl_CXX='-Qoption ld ' 12623 ;; 12624 esac 12625 ;; 12626 esac 12627 ;; 12628 lynxos*) 12629 ;; 12630 m88k*) 12631 ;; 12632 mvs*) 12633 case $cc_basename in 12634 cxx*) 12635 lt_prog_compiler_pic_CXX='-W c,exportall' 12636 ;; 12637 *) 12638 ;; 12639 esac 12640 ;; 12641 netbsd* | netbsdelf*-gnu) 12642 ;; 12643 osf3* | osf4* | osf5*) 12644 case $cc_basename in 12645 KCC*) 12646 lt_prog_compiler_wl_CXX='--backend -Wl,' 12647 ;; 12648 RCC*) 12649 # Rational C++ 2.4.1 12650 lt_prog_compiler_pic_CXX='-pic' 12651 ;; 12652 cxx*) 12653 # Digital/Compaq C++ 12654 lt_prog_compiler_wl_CXX='-Wl,' 12655 # Make sure the PIC flag is empty. It appears that all Alpha 12656 # Linux and Compaq Tru64 Unix objects are PIC. 12657 lt_prog_compiler_pic_CXX= 12658 lt_prog_compiler_static_CXX='-non_shared' 12659 ;; 12660 *) 12661 ;; 12662 esac 12663 ;; 12664 psos*) 12665 ;; 12666 solaris*) 12667 case $cc_basename in 12668 CC*) 12669 # Sun C++ 4.2, 5.x and Centerline C++ 12670 lt_prog_compiler_pic_CXX='-KPIC' 12671 lt_prog_compiler_static_CXX='-Bstatic' 12672 lt_prog_compiler_wl_CXX='-Qoption ld ' 12673 ;; 12674 gcx*) 12675 # Green Hills C++ Compiler 12676 lt_prog_compiler_pic_CXX='-PIC' 12677 ;; 12678 *) 12679 ;; 12680 esac 12681 ;; 12682 sunos4*) 12683 case $cc_basename in 12684 CC*) 12685 # Sun C++ 4.x 12686 lt_prog_compiler_pic_CXX='-pic' 12687 lt_prog_compiler_static_CXX='-Bstatic' 12688 ;; 12689 lcc*) 12690 # Lucid 12691 lt_prog_compiler_pic_CXX='-pic' 12692 ;; 12693 *) 12694 ;; 12695 esac 12696 ;; 12697 tandem*) 12698 case $cc_basename in 12699 NCC*) 12700 # NonStop-UX NCC 3.20 12701 lt_prog_compiler_pic_CXX='-KPIC' 12702 ;; 12703 *) 12704 ;; 12705 esac 12706 ;; 12707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12708 case $cc_basename in 12709 CC*) 12710 lt_prog_compiler_wl_CXX='-Wl,' 12711 lt_prog_compiler_pic_CXX='-KPIC' 12712 lt_prog_compiler_static_CXX='-Bstatic' 12713 ;; 12714 esac 12715 ;; 12716 vxworks*) 12717 ;; 12718 *) 12719 lt_prog_compiler_can_build_shared_CXX=no 12720 ;; 12721 esac 12722 fi 12723 12724{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12725echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12726 12727# 12728# Check to make sure the PIC flag actually works. 12729# 12730if test -n "$lt_prog_compiler_pic_CXX"; then 12731 12732{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12733echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12734if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 12735 echo $ECHO_N "(cached) $ECHO_C" >&6 12736else 12737 lt_cv_prog_compiler_pic_works_CXX=no 12738 ac_outfile=conftest.$ac_objext 12739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12740 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12741 # Insert the option either (1) after the last *FLAGS variable, or 12742 # (2) before a word containing "conftest.", or (3) at the end. 12743 # Note that $ac_compile itself does not contain backslashes and begins 12744 # with a dollar sign (not a hyphen), so the echo should work correctly. 12745 # The option is referenced via a variable to avoid confusing sed. 12746 lt_compile=`echo "$ac_compile" | $SED \ 12747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12749 -e 's:$: $lt_compiler_flag:'` 12750 (eval echo "\"\$as_me:12750: $lt_compile\"" >&5) 12751 (eval "$lt_compile" 2>conftest.err) 12752 ac_status=$? 12753 cat conftest.err >&5 12754 echo "$as_me:12754: \$? = $ac_status" >&5 12755 if (exit $ac_status) && test -s "$ac_outfile"; then 12756 # The compiler can only warn and ignore the option if not recognized 12757 # So say no if there are warnings other than the usual output. 12758 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12761 lt_cv_prog_compiler_pic_works_CXX=yes 12762 fi 12763 fi 12764 $rm conftest* 12765 12766fi 12767{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12768echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12769 12770if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 12771 case $lt_prog_compiler_pic_CXX in 12772 "" | " "*) ;; 12773 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12774 esac 12775else 12776 lt_prog_compiler_pic_CXX= 12777 lt_prog_compiler_can_build_shared_CXX=no 12778fi 12779 12780fi 12781case $host_os in 12782 # For platforms which do not support PIC, -DPIC is meaningless: 12783 *djgpp*) 12784 lt_prog_compiler_pic_CXX= 12785 ;; 12786 *) 12787 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12788 ;; 12789esac 12790 12791# 12792# Check to make sure the static flag actually works. 12793# 12794wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12795{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12796echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12797if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 12798 echo $ECHO_N "(cached) $ECHO_C" >&6 12799else 12800 lt_cv_prog_compiler_static_works_CXX=no 12801 save_LDFLAGS="$LDFLAGS" 12802 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12803 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12804 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12805 # The linker can only warn and ignore the option if not recognized 12806 # So say no if there are warnings 12807 if test -s conftest.err; then 12808 # Append any errors to the config.log. 12809 cat conftest.err 1>&5 12810 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12812 if diff conftest.exp conftest.er2 >/dev/null; then 12813 lt_cv_prog_compiler_static_works_CXX=yes 12814 fi 12815 else 12816 lt_cv_prog_compiler_static_works_CXX=yes 12817 fi 12818 fi 12819 $rm -r conftest* 12820 LDFLAGS="$save_LDFLAGS" 12821 12822fi 12823{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 12824echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } 12825 12826if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 12827 : 12828else 12829 lt_prog_compiler_static_CXX= 12830fi 12831 12832 12833{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12834echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12835if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12836 echo $ECHO_N "(cached) $ECHO_C" >&6 12837else 12838 lt_cv_prog_compiler_c_o_CXX=no 12839 $rm -r conftest 2>/dev/null 12840 mkdir conftest 12841 cd conftest 12842 mkdir out 12843 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12844 12845 lt_compiler_flag="-o out/conftest2.$ac_objext" 12846 # Insert the option either (1) after the last *FLAGS variable, or 12847 # (2) before a word containing "conftest.", or (3) at the end. 12848 # Note that $ac_compile itself does not contain backslashes and begins 12849 # with a dollar sign (not a hyphen), so the echo should work correctly. 12850 lt_compile=`echo "$ac_compile" | $SED \ 12851 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12852 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12853 -e 's:$: $lt_compiler_flag:'` 12854 (eval echo "\"\$as_me:12854: $lt_compile\"" >&5) 12855 (eval "$lt_compile" 2>out/conftest.err) 12856 ac_status=$? 12857 cat out/conftest.err >&5 12858 echo "$as_me:12858: \$? = $ac_status" >&5 12859 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12860 then 12861 # The compiler can only warn and ignore the option if not recognized 12862 # So say no if there are warnings 12863 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12864 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12865 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12866 lt_cv_prog_compiler_c_o_CXX=yes 12867 fi 12868 fi 12869 chmod u+w . 2>&5 12870 $rm conftest* 12871 # SGI C++ compiler will create directory out/ii_files/ for 12872 # template instantiation 12873 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12874 $rm out/* && rmdir out 12875 cd .. 12876 rmdir conftest 12877 $rm conftest* 12878 12879fi 12880{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12881echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12882 12883 12884hard_links="nottested" 12885if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12886 # do not overwrite the value of need_locks provided by the user 12887 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12888echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12889 hard_links=yes 12890 $rm conftest* 12891 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12892 touch conftest.a 12893 ln conftest.a conftest.b 2>&5 || hard_links=no 12894 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12895 { echo "$as_me:$LINENO: result: $hard_links" >&5 12896echo "${ECHO_T}$hard_links" >&6; } 12897 if test "$hard_links" = no; then 12898 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12899echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12900 need_locks=warn 12901 fi 12902else 12903 need_locks=no 12904fi 12905 12906{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12907echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12908 12909 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12910 case $host_os in 12911 aix[4-9]*) 12912 # If we're using GNU nm, then we don't want the "-C" option. 12913 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12914 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12915 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' 12916 else 12917 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' 12918 fi 12919 ;; 12920 pw32*) 12921 export_symbols_cmds_CXX="$ltdll_cmds" 12922 ;; 12923 cygwin* | mingw*) 12924 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' 12925 ;; 12926 linux* | k*bsd*-gnu) 12927 link_all_deplibs_CXX=no 12928 ;; 12929 *) 12930 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12931 ;; 12932 esac 12933 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 12934 12935{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12936echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12937test "$ld_shlibs_CXX" = no && can_build_shared=no 12938 12939# 12940# Do we need to explicitly link libc? 12941# 12942case "x$archive_cmds_need_lc_CXX" in 12943x|xyes) 12944 # Assume -lc should be added 12945 archive_cmds_need_lc_CXX=yes 12946 12947 if test "$enable_shared" = yes && test "$GCC" = yes; then 12948 case $archive_cmds_CXX in 12949 *'~'*) 12950 # FIXME: we may have to deal with multi-command sequences. 12951 ;; 12952 '$CC '*) 12953 # Test whether the compiler implicitly links with -lc since on some 12954 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12955 # to ld, don't add -lc before -lgcc. 12956 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12957echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12958 $rm conftest* 12959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12960 12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12962 (eval $ac_compile) 2>&5 12963 ac_status=$? 12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12965 (exit $ac_status); } 2>conftest.err; then 12966 soname=conftest 12967 lib=conftest 12968 libobjs=conftest.$ac_objext 12969 deplibs= 12970 wl=$lt_prog_compiler_wl_CXX 12971 pic_flag=$lt_prog_compiler_pic_CXX 12972 compiler_flags=-v 12973 linker_flags=-v 12974 verstring= 12975 output_objdir=. 12976 libname=conftest 12977 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12978 allow_undefined_flag_CXX= 12979 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12980 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12981 ac_status=$? 12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12983 (exit $ac_status); } 12984 then 12985 archive_cmds_need_lc_CXX=no 12986 else 12987 archive_cmds_need_lc_CXX=yes 12988 fi 12989 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12990 else 12991 cat conftest.err 1>&5 12992 fi 12993 $rm conftest* 12994 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12995echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12996 ;; 12997 esac 12998 fi 12999 ;; 13000esac 13001 13002{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13003echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 13004library_names_spec= 13005libname_spec='lib$name' 13006soname_spec= 13007shrext_cmds=".so" 13008postinstall_cmds= 13009postuninstall_cmds= 13010finish_cmds= 13011finish_eval= 13012shlibpath_var= 13013shlibpath_overrides_runpath=unknown 13014version_type=none 13015dynamic_linker="$host_os ld.so" 13016sys_lib_dlsearch_path_spec="/lib /usr/lib" 13017 13018need_lib_prefix=unknown 13019hardcode_into_libs=no 13020 13021# when you set need_version to no, make sure it does not cause -set_version 13022# flags to be left without arguments 13023need_version=unknown 13024 13025case $host_os in 13026aix3*) 13027 version_type=linux 13028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13029 shlibpath_var=LIBPATH 13030 13031 # AIX 3 has no versioning support, so we append a major version to the name. 13032 soname_spec='${libname}${release}${shared_ext}$major' 13033 ;; 13034 13035aix[4-9]*) 13036 version_type=linux 13037 need_lib_prefix=no 13038 need_version=no 13039 hardcode_into_libs=yes 13040 if test "$host_cpu" = ia64; then 13041 # AIX 5 supports IA64 13042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13043 shlibpath_var=LD_LIBRARY_PATH 13044 else 13045 # With GCC up to 2.95.x, collect2 would create an import file 13046 # for dependence libraries. The import file would start with 13047 # the line `#! .'. This would cause the generated library to 13048 # depend on `.', always an invalid library. This was fixed in 13049 # development snapshots of GCC prior to 3.0. 13050 case $host_os in 13051 aix4 | aix4.[01] | aix4.[01].*) 13052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13053 echo ' yes ' 13054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13055 : 13056 else 13057 can_build_shared=no 13058 fi 13059 ;; 13060 esac 13061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13062 # soname into executable. Probably we can add versioning support to 13063 # collect2, so additional links can be useful in future. 13064 if test "$aix_use_runtimelinking" = yes; then 13065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13066 # instead of lib<name>.a to let people know that these are not 13067 # typical AIX shared libraries. 13068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13069 else 13070 # We preserve .a as extension for shared libraries through AIX4.2 13071 # and later when we are not doing run time linking. 13072 library_names_spec='${libname}${release}.a $libname.a' 13073 soname_spec='${libname}${release}${shared_ext}$major' 13074 fi 13075 shlibpath_var=LIBPATH 13076 fi 13077 ;; 13078 13079amigaos*) 13080 library_names_spec='$libname.ixlibrary $libname.a' 13081 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13082 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' 13083 ;; 13084 13085beos*) 13086 library_names_spec='${libname}${shared_ext}' 13087 dynamic_linker="$host_os ld.so" 13088 shlibpath_var=LIBRARY_PATH 13089 ;; 13090 13091bsdi[45]*) 13092 version_type=linux 13093 need_version=no 13094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13095 soname_spec='${libname}${release}${shared_ext}$major' 13096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13097 shlibpath_var=LD_LIBRARY_PATH 13098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13100 # the default ld.so.conf also contains /usr/contrib/lib and 13101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13102 # libtool to hard-code these into programs 13103 ;; 13104 13105cygwin* | mingw* | pw32*) 13106 version_type=windows 13107 shrext_cmds=".dll" 13108 need_version=no 13109 need_lib_prefix=no 13110 13111 case $GCC,$host_os in 13112 yes,cygwin* | yes,mingw* | yes,pw32*) 13113 library_names_spec='$libname.dll.a' 13114 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13115 postinstall_cmds='base_file=`basename \${file}`~ 13116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13117 dldir=$destdir/`dirname \$dlpath`~ 13118 test -d \$dldir || mkdir -p \$dldir~ 13119 $install_prog $dir/$dlname \$dldir/$dlname~ 13120 chmod a+x \$dldir/$dlname' 13121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13122 dlpath=$dir/\$dldll~ 13123 $rm \$dlpath' 13124 shlibpath_overrides_runpath=yes 13125 13126 case $host_os in 13127 cygwin*) 13128 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13130 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13131 ;; 13132 mingw*) 13133 # MinGW DLLs use traditional 'lib' prefix 13134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13135 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13136 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13137 # It is most probably a Windows format PATH printed by 13138 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13139 # path with ; separators, and with drive letters. We can handle the 13140 # drive letters (cygwin fileutils understands them), so leave them, 13141 # especially as we might pass files found there to a mingw objdump, 13142 # which wouldn't understand a cygwinified path. Ahh. 13143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13144 else 13145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13146 fi 13147 ;; 13148 pw32*) 13149 # pw32 DLLs use 'pw' prefix rather than 'lib' 13150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13151 ;; 13152 esac 13153 ;; 13154 13155 *) 13156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13157 ;; 13158 esac 13159 dynamic_linker='Win32 ld.exe' 13160 # FIXME: first we should search . and the directory the executable is in 13161 shlibpath_var=PATH 13162 ;; 13163 13164darwin* | rhapsody*) 13165 dynamic_linker="$host_os dyld" 13166 version_type=darwin 13167 need_lib_prefix=no 13168 need_version=no 13169 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13170 soname_spec='${libname}${release}${major}$shared_ext' 13171 shlibpath_overrides_runpath=yes 13172 shlibpath_var=DYLD_LIBRARY_PATH 13173 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13174 13175 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13176 ;; 13177 13178dgux*) 13179 version_type=linux 13180 need_lib_prefix=no 13181 need_version=no 13182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13183 soname_spec='${libname}${release}${shared_ext}$major' 13184 shlibpath_var=LD_LIBRARY_PATH 13185 ;; 13186 13187freebsd1*) 13188 dynamic_linker=no 13189 ;; 13190 13191freebsd* | dragonfly*) 13192 # DragonFly does not have aout. When/if they implement a new 13193 # versioning mechanism, adjust this. 13194 if test -x /usr/bin/objformat; then 13195 objformat=`/usr/bin/objformat` 13196 else 13197 case $host_os in 13198 freebsd[123]*) objformat=aout ;; 13199 *) objformat=elf ;; 13200 esac 13201 fi 13202 version_type=freebsd-$objformat 13203 case $version_type in 13204 freebsd-elf*) 13205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13206 need_version=no 13207 need_lib_prefix=no 13208 ;; 13209 freebsd-*) 13210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13211 need_version=yes 13212 ;; 13213 esac 13214 shlibpath_var=LD_LIBRARY_PATH 13215 case $host_os in 13216 freebsd2*) 13217 shlibpath_overrides_runpath=yes 13218 ;; 13219 freebsd3.[01]* | freebsdelf3.[01]*) 13220 shlibpath_overrides_runpath=yes 13221 hardcode_into_libs=yes 13222 ;; 13223 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13224 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13225 shlibpath_overrides_runpath=no 13226 hardcode_into_libs=yes 13227 ;; 13228 *) # from 4.6 on, and DragonFly 13229 shlibpath_overrides_runpath=yes 13230 hardcode_into_libs=yes 13231 ;; 13232 esac 13233 ;; 13234 13235gnu*) 13236 version_type=linux 13237 need_lib_prefix=no 13238 need_version=no 13239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13240 soname_spec='${libname}${release}${shared_ext}$major' 13241 shlibpath_var=LD_LIBRARY_PATH 13242 hardcode_into_libs=yes 13243 ;; 13244 13245hpux9* | hpux10* | hpux11*) 13246 # Give a soname corresponding to the major version so that dld.sl refuses to 13247 # link against other versions. 13248 version_type=sunos 13249 need_lib_prefix=no 13250 need_version=no 13251 case $host_cpu in 13252 ia64*) 13253 shrext_cmds='.so' 13254 hardcode_into_libs=yes 13255 dynamic_linker="$host_os dld.so" 13256 shlibpath_var=LD_LIBRARY_PATH 13257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13259 soname_spec='${libname}${release}${shared_ext}$major' 13260 if test "X$HPUX_IA64_MODE" = X32; then 13261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13262 else 13263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13264 fi 13265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13266 ;; 13267 hppa*64*) 13268 shrext_cmds='.sl' 13269 hardcode_into_libs=yes 13270 dynamic_linker="$host_os dld.sl" 13271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13274 soname_spec='${libname}${release}${shared_ext}$major' 13275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13277 ;; 13278 *) 13279 shrext_cmds='.sl' 13280 dynamic_linker="$host_os dld.sl" 13281 shlibpath_var=SHLIB_PATH 13282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13284 soname_spec='${libname}${release}${shared_ext}$major' 13285 ;; 13286 esac 13287 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13288 postinstall_cmds='chmod 555 $lib' 13289 ;; 13290 13291interix[3-9]*) 13292 version_type=linux 13293 need_lib_prefix=no 13294 need_version=no 13295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13296 soname_spec='${libname}${release}${shared_ext}$major' 13297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13298 shlibpath_var=LD_LIBRARY_PATH 13299 shlibpath_overrides_runpath=no 13300 hardcode_into_libs=yes 13301 ;; 13302 13303irix5* | irix6* | nonstopux*) 13304 case $host_os in 13305 nonstopux*) version_type=nonstopux ;; 13306 *) 13307 if test "$lt_cv_prog_gnu_ld" = yes; then 13308 version_type=linux 13309 else 13310 version_type=irix 13311 fi ;; 13312 esac 13313 need_lib_prefix=no 13314 need_version=no 13315 soname_spec='${libname}${release}${shared_ext}$major' 13316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13317 case $host_os in 13318 irix5* | nonstopux*) 13319 libsuff= shlibsuff= 13320 ;; 13321 *) 13322 case $LD in # libtool.m4 will add one of these switches to LD 13323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13324 libsuff= shlibsuff= libmagic=32-bit;; 13325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13326 libsuff=32 shlibsuff=N32 libmagic=N32;; 13327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13328 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13329 *) libsuff= shlibsuff= libmagic=never-match;; 13330 esac 13331 ;; 13332 esac 13333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13334 shlibpath_overrides_runpath=no 13335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13337 hardcode_into_libs=yes 13338 ;; 13339 13340# No shared lib support for Linux oldld, aout, or coff. 13341linux*oldld* | linux*aout* | linux*coff*) 13342 dynamic_linker=no 13343 ;; 13344 13345# This must be Linux ELF. 13346linux* | k*bsd*-gnu) 13347 version_type=linux 13348 need_lib_prefix=no 13349 need_version=no 13350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13351 soname_spec='${libname}${release}${shared_ext}$major' 13352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13353 shlibpath_var=LD_LIBRARY_PATH 13354 shlibpath_overrides_runpath=no 13355 # This implies no fast_install, which is unacceptable. 13356 # Some rework will be needed to allow for fast_install 13357 # before this can be enabled. 13358 hardcode_into_libs=yes 13359 13360 # Append ld.so.conf contents to the search path 13361 if test -f /etc/ld.so.conf; then 13362 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' ' '` 13363 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13364 fi 13365 13366 # We used to test for /lib/ld.so.1 and disable shared libraries on 13367 # powerpc, because MkLinux only supported shared libraries with the 13368 # GNU dynamic linker. Since this was broken with cross compilers, 13369 # most powerpc-linux boxes support dynamic linking these days and 13370 # people can always --disable-shared, the test was removed, and we 13371 # assume the GNU/Linux dynamic linker is in use. 13372 dynamic_linker='GNU/Linux ld.so' 13373 ;; 13374 13375netbsdelf*-gnu) 13376 version_type=linux 13377 need_lib_prefix=no 13378 need_version=no 13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13380 soname_spec='${libname}${release}${shared_ext}$major' 13381 shlibpath_var=LD_LIBRARY_PATH 13382 shlibpath_overrides_runpath=no 13383 hardcode_into_libs=yes 13384 dynamic_linker='NetBSD ld.elf_so' 13385 ;; 13386 13387netbsd*) 13388 version_type=sunos 13389 need_lib_prefix=no 13390 need_version=no 13391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13394 dynamic_linker='NetBSD (a.out) ld.so' 13395 else 13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13397 soname_spec='${libname}${release}${shared_ext}$major' 13398 dynamic_linker='NetBSD ld.elf_so' 13399 fi 13400 shlibpath_var=LD_LIBRARY_PATH 13401 shlibpath_overrides_runpath=yes 13402 hardcode_into_libs=yes 13403 ;; 13404 13405newsos6) 13406 version_type=linux 13407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13408 shlibpath_var=LD_LIBRARY_PATH 13409 shlibpath_overrides_runpath=yes 13410 ;; 13411 13412nto-qnx*) 13413 version_type=linux 13414 need_lib_prefix=no 13415 need_version=no 13416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13417 soname_spec='${libname}${release}${shared_ext}$major' 13418 shlibpath_var=LD_LIBRARY_PATH 13419 shlibpath_overrides_runpath=yes 13420 ;; 13421 13422openbsd*) 13423 version_type=sunos 13424 sys_lib_dlsearch_path_spec="/usr/lib" 13425 need_lib_prefix=no 13426 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13427 case $host_os in 13428 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13429 *) need_version=no ;; 13430 esac 13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13433 shlibpath_var=LD_LIBRARY_PATH 13434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13435 case $host_os in 13436 openbsd2.[89] | openbsd2.[89].*) 13437 shlibpath_overrides_runpath=no 13438 ;; 13439 *) 13440 shlibpath_overrides_runpath=yes 13441 ;; 13442 esac 13443 else 13444 shlibpath_overrides_runpath=yes 13445 fi 13446 ;; 13447 13448os2*) 13449 libname_spec='$name' 13450 shrext_cmds=".dll" 13451 need_lib_prefix=no 13452 library_names_spec='$libname${shared_ext} $libname.a' 13453 dynamic_linker='OS/2 ld.exe' 13454 shlibpath_var=LIBPATH 13455 ;; 13456 13457osf3* | osf4* | osf5*) 13458 version_type=osf 13459 need_lib_prefix=no 13460 need_version=no 13461 soname_spec='${libname}${release}${shared_ext}$major' 13462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13463 shlibpath_var=LD_LIBRARY_PATH 13464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13465 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13466 ;; 13467 13468rdos*) 13469 dynamic_linker=no 13470 ;; 13471 13472solaris*) 13473 version_type=linux 13474 need_lib_prefix=no 13475 need_version=no 13476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13477 soname_spec='${libname}${release}${shared_ext}$major' 13478 shlibpath_var=LD_LIBRARY_PATH 13479 shlibpath_overrides_runpath=yes 13480 hardcode_into_libs=yes 13481 # ldd complains unless libraries are executable 13482 postinstall_cmds='chmod +x $lib' 13483 ;; 13484 13485sunos4*) 13486 version_type=sunos 13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13489 shlibpath_var=LD_LIBRARY_PATH 13490 shlibpath_overrides_runpath=yes 13491 if test "$with_gnu_ld" = yes; then 13492 need_lib_prefix=no 13493 fi 13494 need_version=yes 13495 ;; 13496 13497sysv4 | sysv4.3*) 13498 version_type=linux 13499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13500 soname_spec='${libname}${release}${shared_ext}$major' 13501 shlibpath_var=LD_LIBRARY_PATH 13502 case $host_vendor in 13503 sni) 13504 shlibpath_overrides_runpath=no 13505 need_lib_prefix=no 13506 export_dynamic_flag_spec='${wl}-Blargedynsym' 13507 runpath_var=LD_RUN_PATH 13508 ;; 13509 siemens) 13510 need_lib_prefix=no 13511 ;; 13512 motorola) 13513 need_lib_prefix=no 13514 need_version=no 13515 shlibpath_overrides_runpath=no 13516 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13517 ;; 13518 esac 13519 ;; 13520 13521sysv4*MP*) 13522 if test -d /usr/nec ;then 13523 version_type=linux 13524 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13525 soname_spec='$libname${shared_ext}.$major' 13526 shlibpath_var=LD_LIBRARY_PATH 13527 fi 13528 ;; 13529 13530sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13531 version_type=freebsd-elf 13532 need_lib_prefix=no 13533 need_version=no 13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13535 soname_spec='${libname}${release}${shared_ext}$major' 13536 shlibpath_var=LD_LIBRARY_PATH 13537 hardcode_into_libs=yes 13538 if test "$with_gnu_ld" = yes; then 13539 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13540 shlibpath_overrides_runpath=no 13541 else 13542 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13543 shlibpath_overrides_runpath=yes 13544 case $host_os in 13545 sco3.2v5*) 13546 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13547 ;; 13548 esac 13549 fi 13550 sys_lib_dlsearch_path_spec='/usr/lib' 13551 ;; 13552 13553uts4*) 13554 version_type=linux 13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13556 soname_spec='${libname}${release}${shared_ext}$major' 13557 shlibpath_var=LD_LIBRARY_PATH 13558 ;; 13559 13560*) 13561 dynamic_linker=no 13562 ;; 13563esac 13564{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13565echo "${ECHO_T}$dynamic_linker" >&6; } 13566test "$dynamic_linker" = no && can_build_shared=no 13567 13568if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13569 echo $ECHO_N "(cached) $ECHO_C" >&6 13570else 13571 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 13572fi 13573 13574sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13575if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13576 echo $ECHO_N "(cached) $ECHO_C" >&6 13577else 13578 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 13579fi 13580 13581sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13582 13583variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13584if test "$GCC" = yes; then 13585 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13586fi 13587 13588{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13589echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13590hardcode_action_CXX= 13591if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13592 test -n "$runpath_var_CXX" || \ 13593 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13594 13595 # We can hardcode non-existant directories. 13596 if test "$hardcode_direct_CXX" != no && 13597 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13598 # have to relink, otherwise we might link with an installed library 13599 # when we should be linking with a yet-to-be-installed one 13600 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13601 test "$hardcode_minus_L_CXX" != no; then 13602 # Linking always hardcodes the temporary library directory. 13603 hardcode_action_CXX=relink 13604 else 13605 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13606 hardcode_action_CXX=immediate 13607 fi 13608else 13609 # We cannot hardcode anything, or else we can only hardcode existing 13610 # directories. 13611 hardcode_action_CXX=unsupported 13612fi 13613{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13614echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13615 13616if test "$hardcode_action_CXX" = relink; then 13617 # Fast installation is not supported 13618 enable_fast_install=no 13619elif test "$shlibpath_overrides_runpath" = yes || 13620 test "$enable_shared" = no; then 13621 # Fast installation is not necessary 13622 enable_fast_install=needless 13623fi 13624 13625 13626# The else clause should only fire when bootstrapping the 13627# libtool distribution, otherwise you forgot to ship ltmain.sh 13628# with your package, and you will get complaints that there are 13629# no rules to generate ltmain.sh. 13630if test -f "$ltmain"; then 13631 # See if we are running on zsh, and set the options which allow our commands through 13632 # without removal of \ escapes. 13633 if test -n "${ZSH_VERSION+set}" ; then 13634 setopt NO_GLOB_SUBST 13635 fi 13636 # Now quote all the things that may contain metacharacters while being 13637 # careful not to overquote the AC_SUBSTed values. We take copies of the 13638 # variables and quote the copies for generation of the libtool script. 13639 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13640 SED SHELL STRIP \ 13641 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13642 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13643 deplibs_check_method reload_flag reload_cmds need_locks \ 13644 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13645 lt_cv_sys_global_symbol_to_c_name_address \ 13646 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13647 old_postinstall_cmds old_postuninstall_cmds \ 13648 compiler_CXX \ 13649 CC_CXX \ 13650 LD_CXX \ 13651 lt_prog_compiler_wl_CXX \ 13652 lt_prog_compiler_pic_CXX \ 13653 lt_prog_compiler_static_CXX \ 13654 lt_prog_compiler_no_builtin_flag_CXX \ 13655 export_dynamic_flag_spec_CXX \ 13656 thread_safe_flag_spec_CXX \ 13657 whole_archive_flag_spec_CXX \ 13658 enable_shared_with_static_runtimes_CXX \ 13659 old_archive_cmds_CXX \ 13660 old_archive_from_new_cmds_CXX \ 13661 predep_objects_CXX \ 13662 postdep_objects_CXX \ 13663 predeps_CXX \ 13664 postdeps_CXX \ 13665 compiler_lib_search_path_CXX \ 13666 compiler_lib_search_dirs_CXX \ 13667 archive_cmds_CXX \ 13668 archive_expsym_cmds_CXX \ 13669 postinstall_cmds_CXX \ 13670 postuninstall_cmds_CXX \ 13671 old_archive_from_expsyms_cmds_CXX \ 13672 allow_undefined_flag_CXX \ 13673 no_undefined_flag_CXX \ 13674 export_symbols_cmds_CXX \ 13675 hardcode_libdir_flag_spec_CXX \ 13676 hardcode_libdir_flag_spec_ld_CXX \ 13677 hardcode_libdir_separator_CXX \ 13678 hardcode_automatic_CXX \ 13679 module_cmds_CXX \ 13680 module_expsym_cmds_CXX \ 13681 lt_cv_prog_compiler_c_o_CXX \ 13682 fix_srcfile_path_CXX \ 13683 exclude_expsyms_CXX \ 13684 include_expsyms_CXX; do 13685 13686 case $var in 13687 old_archive_cmds_CXX | \ 13688 old_archive_from_new_cmds_CXX | \ 13689 archive_cmds_CXX | \ 13690 archive_expsym_cmds_CXX | \ 13691 module_cmds_CXX | \ 13692 module_expsym_cmds_CXX | \ 13693 old_archive_from_expsyms_cmds_CXX | \ 13694 export_symbols_cmds_CXX | \ 13695 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13696 postinstall_cmds | postuninstall_cmds | \ 13697 old_postinstall_cmds | old_postuninstall_cmds | \ 13698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13699 # Double-quote double-evaled strings. 13700 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13701 ;; 13702 *) 13703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13704 ;; 13705 esac 13706 done 13707 13708 case $lt_echo in 13709 *'\$0 --fallback-echo"') 13710 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13711 ;; 13712 esac 13713 13714cfgfile="$ofile" 13715 13716 cat <<__EOF__ >> "$cfgfile" 13717# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13718 13719# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13720 13721# Shell to use when invoking shell scripts. 13722SHELL=$lt_SHELL 13723 13724# Whether or not to build shared libraries. 13725build_libtool_libs=$enable_shared 13726 13727# Whether or not to build static libraries. 13728build_old_libs=$enable_static 13729 13730# Whether or not to add -lc for building shared libraries. 13731build_libtool_need_lc=$archive_cmds_need_lc_CXX 13732 13733# Whether or not to disallow shared libs when runtime libs are static 13734allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13735 13736# Whether or not to optimize for fast installation. 13737fast_install=$enable_fast_install 13738 13739# The host system. 13740host_alias=$host_alias 13741host=$host 13742host_os=$host_os 13743 13744# The build system. 13745build_alias=$build_alias 13746build=$build 13747build_os=$build_os 13748 13749# An echo program that does not interpret backslashes. 13750echo=$lt_echo 13751 13752# The archiver. 13753AR=$lt_AR 13754AR_FLAGS=$lt_AR_FLAGS 13755 13756# A C compiler. 13757LTCC=$lt_LTCC 13758 13759# LTCC compiler flags. 13760LTCFLAGS=$lt_LTCFLAGS 13761 13762# A language-specific compiler. 13763CC=$lt_compiler_CXX 13764 13765# Is the compiler the GNU C compiler? 13766with_gcc=$GCC_CXX 13767 13768# An ERE matcher. 13769EGREP=$lt_EGREP 13770 13771# The linker used to build libraries. 13772LD=$lt_LD_CXX 13773 13774# Whether we need hard or soft links. 13775LN_S=$lt_LN_S 13776 13777# A BSD-compatible nm program. 13778NM=$lt_NM 13779 13780# A symbol stripping program 13781STRIP=$lt_STRIP 13782 13783# Used to examine libraries when file_magic_cmd begins "file" 13784MAGIC_CMD=$MAGIC_CMD 13785 13786# Used on cygwin: DLL creation program. 13787DLLTOOL="$DLLTOOL" 13788 13789# Used on cygwin: object dumper. 13790OBJDUMP="$OBJDUMP" 13791 13792# Used on cygwin: assembler. 13793AS="$AS" 13794 13795# The name of the directory that contains temporary libtool files. 13796objdir=$objdir 13797 13798# How to create reloadable object files. 13799reload_flag=$lt_reload_flag 13800reload_cmds=$lt_reload_cmds 13801 13802# How to pass a linker flag through the compiler. 13803wl=$lt_lt_prog_compiler_wl_CXX 13804 13805# Object file suffix (normally "o"). 13806objext="$ac_objext" 13807 13808# Old archive suffix (normally "a"). 13809libext="$libext" 13810 13811# Shared library suffix (normally ".so"). 13812shrext_cmds='$shrext_cmds' 13813 13814# Executable file suffix (normally ""). 13815exeext="$exeext" 13816 13817# Additional compiler flags for building library objects. 13818pic_flag=$lt_lt_prog_compiler_pic_CXX 13819pic_mode=$pic_mode 13820 13821# What is the maximum length of a command? 13822max_cmd_len=$lt_cv_sys_max_cmd_len 13823 13824# Does compiler simultaneously support -c and -o options? 13825compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13826 13827# Must we lock files when doing compilation? 13828need_locks=$lt_need_locks 13829 13830# Do we need the lib prefix for modules? 13831need_lib_prefix=$need_lib_prefix 13832 13833# Do we need a version for libraries? 13834need_version=$need_version 13835 13836# Whether dlopen is supported. 13837dlopen_support=$enable_dlopen 13838 13839# Whether dlopen of programs is supported. 13840dlopen_self=$enable_dlopen_self 13841 13842# Whether dlopen of statically linked programs is supported. 13843dlopen_self_static=$enable_dlopen_self_static 13844 13845# Compiler flag to prevent dynamic linking. 13846link_static_flag=$lt_lt_prog_compiler_static_CXX 13847 13848# Compiler flag to turn off builtin functions. 13849no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13850 13851# Compiler flag to allow reflexive dlopens. 13852export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13853 13854# Compiler flag to generate shared objects directly from archives. 13855whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13856 13857# Compiler flag to generate thread-safe objects. 13858thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13859 13860# Library versioning type. 13861version_type=$version_type 13862 13863# Format of library name prefix. 13864libname_spec=$lt_libname_spec 13865 13866# List of archive names. First name is the real one, the rest are links. 13867# The last name is the one that the linker finds with -lNAME. 13868library_names_spec=$lt_library_names_spec 13869 13870# The coded name of the library, if different from the real name. 13871soname_spec=$lt_soname_spec 13872 13873# Commands used to build and install an old-style archive. 13874RANLIB=$lt_RANLIB 13875old_archive_cmds=$lt_old_archive_cmds_CXX 13876old_postinstall_cmds=$lt_old_postinstall_cmds 13877old_postuninstall_cmds=$lt_old_postuninstall_cmds 13878 13879# Create an old-style archive from a shared archive. 13880old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13881 13882# Create a temporary old-style archive to link instead of a shared archive. 13883old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13884 13885# Commands used to build and install a shared archive. 13886archive_cmds=$lt_archive_cmds_CXX 13887archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13888postinstall_cmds=$lt_postinstall_cmds 13889postuninstall_cmds=$lt_postuninstall_cmds 13890 13891# Commands used to build a loadable module (assumed same as above if empty) 13892module_cmds=$lt_module_cmds_CXX 13893module_expsym_cmds=$lt_module_expsym_cmds_CXX 13894 13895# Commands to strip libraries. 13896old_striplib=$lt_old_striplib 13897striplib=$lt_striplib 13898 13899# Dependencies to place before the objects being linked to create a 13900# shared library. 13901predep_objects=$lt_predep_objects_CXX 13902 13903# Dependencies to place after the objects being linked to create a 13904# shared library. 13905postdep_objects=$lt_postdep_objects_CXX 13906 13907# Dependencies to place before the objects being linked to create a 13908# shared library. 13909predeps=$lt_predeps_CXX 13910 13911# Dependencies to place after the objects being linked to create a 13912# shared library. 13913postdeps=$lt_postdeps_CXX 13914 13915# The directories searched by this compiler when creating a shared 13916# library 13917compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 13918 13919# The library search path used internally by the compiler when linking 13920# a shared library. 13921compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13922 13923# Method to check whether dependent libraries are shared objects. 13924deplibs_check_method=$lt_deplibs_check_method 13925 13926# Command to use when deplibs_check_method == file_magic. 13927file_magic_cmd=$lt_file_magic_cmd 13928 13929# Flag that allows shared libraries with undefined symbols to be built. 13930allow_undefined_flag=$lt_allow_undefined_flag_CXX 13931 13932# Flag that forces no undefined symbols. 13933no_undefined_flag=$lt_no_undefined_flag_CXX 13934 13935# Commands used to finish a libtool library installation in a directory. 13936finish_cmds=$lt_finish_cmds 13937 13938# Same as above, but a single script fragment to be evaled but not shown. 13939finish_eval=$lt_finish_eval 13940 13941# Take the output of nm and produce a listing of raw symbols and C names. 13942global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13943 13944# Transform the output of nm in a proper C declaration 13945global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13946 13947# Transform the output of nm in a C name address pair 13948global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13949 13950# This is the shared library runtime path variable. 13951runpath_var=$runpath_var 13952 13953# This is the shared library path variable. 13954shlibpath_var=$shlibpath_var 13955 13956# Is shlibpath searched before the hard-coded library search path? 13957shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13958 13959# How to hardcode a shared library path into an executable. 13960hardcode_action=$hardcode_action_CXX 13961 13962# Whether we should hardcode library paths into libraries. 13963hardcode_into_libs=$hardcode_into_libs 13964 13965# Flag to hardcode \$libdir into a binary during linking. 13966# This must work even if \$libdir does not exist. 13967hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13968 13969# If ld is used when linking, flag to hardcode \$libdir into 13970# a binary during linking. This must work even if \$libdir does 13971# not exist. 13972hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13973 13974# Whether we need a single -rpath flag with a separated argument. 13975hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13976 13977# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13978# resulting binary. 13979hardcode_direct=$hardcode_direct_CXX 13980 13981# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13982# resulting binary. 13983hardcode_minus_L=$hardcode_minus_L_CXX 13984 13985# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13986# the resulting binary. 13987hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13988 13989# Set to yes if building a shared library automatically hardcodes DIR into the library 13990# and all subsequent libraries and executables linked against it. 13991hardcode_automatic=$hardcode_automatic_CXX 13992 13993# Variables whose values should be saved in libtool wrapper scripts and 13994# restored at relink time. 13995variables_saved_for_relink="$variables_saved_for_relink" 13996 13997# Whether libtool must link a program against all its dependency libraries. 13998link_all_deplibs=$link_all_deplibs_CXX 13999 14000# Compile-time system search path for libraries 14001sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14002 14003# Run-time system search path for libraries 14004sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14005 14006# Fix the shell variable \$srcfile for the compiler. 14007fix_srcfile_path=$lt_fix_srcfile_path 14008 14009# Set to yes if exported symbols are required. 14010always_export_symbols=$always_export_symbols_CXX 14011 14012# The commands to list exported symbols. 14013export_symbols_cmds=$lt_export_symbols_cmds_CXX 14014 14015# The commands to extract the exported symbol list from a shared archive. 14016extract_expsyms_cmds=$lt_extract_expsyms_cmds 14017 14018# Symbols that should not be listed in the preloaded symbols. 14019exclude_expsyms=$lt_exclude_expsyms_CXX 14020 14021# Symbols that must always be exported. 14022include_expsyms=$lt_include_expsyms_CXX 14023 14024# ### END LIBTOOL TAG CONFIG: $tagname 14025 14026__EOF__ 14027 14028 14029else 14030 # If there is no Makefile yet, we rely on a make rule to execute 14031 # `config.status --recheck' to rerun these tests and create the 14032 # libtool script then. 14033 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14034 if test -f "$ltmain_in"; then 14035 test -f Makefile && make "$ltmain" 14036 fi 14037fi 14038 14039 14040ac_ext=c 14041ac_cpp='$CPP $CPPFLAGS' 14042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14044ac_compiler_gnu=$ac_cv_c_compiler_gnu 14045 14046CC=$lt_save_CC 14047LDCXX=$LD 14048LD=$lt_save_LD 14049GCC=$lt_save_GCC 14050with_gnu_ldcxx=$with_gnu_ld 14051with_gnu_ld=$lt_save_with_gnu_ld 14052lt_cv_path_LDCXX=$lt_cv_path_LD 14053lt_cv_path_LD=$lt_save_path_LD 14054lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14055lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14056 14057 else 14058 tagname="" 14059 fi 14060 ;; 14061 14062 F77) 14063 if test -n "$F77" && test "X$F77" != "Xno"; then 14064 14065ac_ext=f 14066ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14067ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14068ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14069 14070 14071archive_cmds_need_lc_F77=no 14072allow_undefined_flag_F77= 14073always_export_symbols_F77=no 14074archive_expsym_cmds_F77= 14075export_dynamic_flag_spec_F77= 14076hardcode_direct_F77=no 14077hardcode_libdir_flag_spec_F77= 14078hardcode_libdir_flag_spec_ld_F77= 14079hardcode_libdir_separator_F77= 14080hardcode_minus_L_F77=no 14081hardcode_automatic_F77=no 14082module_cmds_F77= 14083module_expsym_cmds_F77= 14084link_all_deplibs_F77=unknown 14085old_archive_cmds_F77=$old_archive_cmds 14086no_undefined_flag_F77= 14087whole_archive_flag_spec_F77= 14088enable_shared_with_static_runtimes_F77=no 14089 14090# Source file extension for f77 test sources. 14091ac_ext=f 14092 14093# Object file extension for compiled f77 test sources. 14094objext=o 14095objext_F77=$objext 14096 14097# Code to be used in simple compile tests 14098lt_simple_compile_test_code="\ 14099 subroutine t 14100 return 14101 end 14102" 14103 14104# Code to be used in simple link tests 14105lt_simple_link_test_code="\ 14106 program t 14107 end 14108" 14109 14110# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14111 14112# If no C compiler was specified, use CC. 14113LTCC=${LTCC-"$CC"} 14114 14115# If no C compiler flags were specified, use CFLAGS. 14116LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14117 14118# Allow CC to be a program name with arguments. 14119compiler=$CC 14120 14121 14122# save warnings/boilerplate of simple test code 14123ac_outfile=conftest.$ac_objext 14124echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14125eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14126_lt_compiler_boilerplate=`cat conftest.err` 14127$rm conftest* 14128 14129ac_outfile=conftest.$ac_objext 14130echo "$lt_simple_link_test_code" >conftest.$ac_ext 14131eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14132_lt_linker_boilerplate=`cat conftest.err` 14133$rm -r conftest* 14134 14135 14136# Allow CC to be a program name with arguments. 14137lt_save_CC="$CC" 14138CC=${F77-"f77"} 14139compiler=$CC 14140compiler_F77=$CC 14141for cc_temp in $compiler""; do 14142 case $cc_temp in 14143 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14144 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14145 \-*) ;; 14146 *) break;; 14147 esac 14148done 14149cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14150 14151 14152{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14153echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14154{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14155echo "${ECHO_T}$can_build_shared" >&6; } 14156 14157{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14158echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14159test "$can_build_shared" = "no" && enable_shared=no 14160 14161# On AIX, shared libraries and static libraries use the same namespace, and 14162# are all built from PIC. 14163case $host_os in 14164aix3*) 14165 test "$enable_shared" = yes && enable_static=no 14166 if test -n "$RANLIB"; then 14167 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14168 postinstall_cmds='$RANLIB $lib' 14169 fi 14170 ;; 14171aix[4-9]*) 14172 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14173 test "$enable_shared" = yes && enable_static=no 14174 fi 14175 ;; 14176esac 14177{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14178echo "${ECHO_T}$enable_shared" >&6; } 14179 14180{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14181echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14182# Make sure either enable_shared or enable_static is yes. 14183test "$enable_shared" = yes || enable_static=yes 14184{ echo "$as_me:$LINENO: result: $enable_static" >&5 14185echo "${ECHO_T}$enable_static" >&6; } 14186 14187GCC_F77="$G77" 14188LD_F77="$LD" 14189 14190lt_prog_compiler_wl_F77= 14191lt_prog_compiler_pic_F77= 14192lt_prog_compiler_static_F77= 14193 14194{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14195echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14196 14197 if test "$GCC" = yes; then 14198 lt_prog_compiler_wl_F77='-Wl,' 14199 lt_prog_compiler_static_F77='-static' 14200 14201 case $host_os in 14202 aix*) 14203 # All AIX code is PIC. 14204 if test "$host_cpu" = ia64; then 14205 # AIX 5 now supports IA64 processor 14206 lt_prog_compiler_static_F77='-Bstatic' 14207 fi 14208 ;; 14209 14210 amigaos*) 14211 # FIXME: we need at least 68020 code to build shared libraries, but 14212 # adding the `-m68020' flag to GCC prevents building anything better, 14213 # like `-m68040'. 14214 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14215 ;; 14216 14217 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14218 # PIC is the default for these OSes. 14219 ;; 14220 14221 mingw* | cygwin* | pw32* | os2*) 14222 # This hack is so that the source file can tell whether it is being 14223 # built for inclusion in a dll (and should export symbols for example). 14224 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14225 # (--disable-auto-import) libraries 14226 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14227 ;; 14228 14229 darwin* | rhapsody*) 14230 # PIC is the default on this platform 14231 # Common symbols not allowed in MH_DYLIB files 14232 lt_prog_compiler_pic_F77='-fno-common' 14233 ;; 14234 14235 interix[3-9]*) 14236 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14237 # Instead, we relocate shared libraries at runtime. 14238 ;; 14239 14240 msdosdjgpp*) 14241 # Just because we use GCC doesn't mean we suddenly get shared libraries 14242 # on systems that don't support them. 14243 lt_prog_compiler_can_build_shared_F77=no 14244 enable_shared=no 14245 ;; 14246 14247 sysv4*MP*) 14248 if test -d /usr/nec; then 14249 lt_prog_compiler_pic_F77=-Kconform_pic 14250 fi 14251 ;; 14252 14253 hpux*) 14254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14255 # not for PA HP-UX. 14256 case $host_cpu in 14257 hppa*64*|ia64*) 14258 # +Z the default 14259 ;; 14260 *) 14261 lt_prog_compiler_pic_F77='-fPIC' 14262 ;; 14263 esac 14264 ;; 14265 14266 *) 14267 lt_prog_compiler_pic_F77='-fPIC' 14268 ;; 14269 esac 14270 else 14271 # PORTME Check for flag to pass linker flags through the system compiler. 14272 case $host_os in 14273 aix*) 14274 lt_prog_compiler_wl_F77='-Wl,' 14275 if test "$host_cpu" = ia64; then 14276 # AIX 5 now supports IA64 processor 14277 lt_prog_compiler_static_F77='-Bstatic' 14278 else 14279 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14280 fi 14281 ;; 14282 darwin*) 14283 # PIC is the default on this platform 14284 # Common symbols not allowed in MH_DYLIB files 14285 case $cc_basename in 14286 xlc*) 14287 lt_prog_compiler_pic_F77='-qnocommon' 14288 lt_prog_compiler_wl_F77='-Wl,' 14289 ;; 14290 esac 14291 ;; 14292 14293 mingw* | cygwin* | pw32* | os2*) 14294 # This hack is so that the source file can tell whether it is being 14295 # built for inclusion in a dll (and should export symbols for example). 14296 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14297 ;; 14298 14299 hpux9* | hpux10* | hpux11*) 14300 lt_prog_compiler_wl_F77='-Wl,' 14301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14302 # not for PA HP-UX. 14303 case $host_cpu in 14304 hppa*64*|ia64*) 14305 # +Z the default 14306 ;; 14307 *) 14308 lt_prog_compiler_pic_F77='+Z' 14309 ;; 14310 esac 14311 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14312 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14313 ;; 14314 14315 irix5* | irix6* | nonstopux*) 14316 lt_prog_compiler_wl_F77='-Wl,' 14317 # PIC (with -KPIC) is the default. 14318 lt_prog_compiler_static_F77='-non_shared' 14319 ;; 14320 14321 newsos6) 14322 lt_prog_compiler_pic_F77='-KPIC' 14323 lt_prog_compiler_static_F77='-Bstatic' 14324 ;; 14325 14326 linux* | k*bsd*-gnu) 14327 case $cc_basename in 14328 icc* | ecc*) 14329 lt_prog_compiler_wl_F77='-Wl,' 14330 lt_prog_compiler_pic_F77='-KPIC' 14331 lt_prog_compiler_static_F77='-static' 14332 ;; 14333 pgcc* | pgf77* | pgf90* | pgf95*) 14334 # Portland Group compilers (*not* the Pentium gcc compiler, 14335 # which looks to be a dead project) 14336 lt_prog_compiler_wl_F77='-Wl,' 14337 lt_prog_compiler_pic_F77='-fpic' 14338 lt_prog_compiler_static_F77='-Bstatic' 14339 ;; 14340 ccc*) 14341 lt_prog_compiler_wl_F77='-Wl,' 14342 # All Alpha code is PIC. 14343 lt_prog_compiler_static_F77='-non_shared' 14344 ;; 14345 *) 14346 case `$CC -V 2>&1 | sed 5q` in 14347 *Sun\ C*) 14348 # Sun C 5.9 14349 lt_prog_compiler_pic_F77='-KPIC' 14350 lt_prog_compiler_static_F77='-Bstatic' 14351 lt_prog_compiler_wl_F77='-Wl,' 14352 ;; 14353 *Sun\ F*) 14354 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14355 lt_prog_compiler_pic_F77='-KPIC' 14356 lt_prog_compiler_static_F77='-Bstatic' 14357 lt_prog_compiler_wl_F77='' 14358 ;; 14359 esac 14360 ;; 14361 esac 14362 ;; 14363 14364 osf3* | osf4* | osf5*) 14365 lt_prog_compiler_wl_F77='-Wl,' 14366 # All OSF/1 code is PIC. 14367 lt_prog_compiler_static_F77='-non_shared' 14368 ;; 14369 14370 rdos*) 14371 lt_prog_compiler_static_F77='-non_shared' 14372 ;; 14373 14374 solaris*) 14375 lt_prog_compiler_pic_F77='-KPIC' 14376 lt_prog_compiler_static_F77='-Bstatic' 14377 case $cc_basename in 14378 f77* | f90* | f95*) 14379 lt_prog_compiler_wl_F77='-Qoption ld ';; 14380 *) 14381 lt_prog_compiler_wl_F77='-Wl,';; 14382 esac 14383 ;; 14384 14385 sunos4*) 14386 lt_prog_compiler_wl_F77='-Qoption ld ' 14387 lt_prog_compiler_pic_F77='-PIC' 14388 lt_prog_compiler_static_F77='-Bstatic' 14389 ;; 14390 14391 sysv4 | sysv4.2uw2* | sysv4.3*) 14392 lt_prog_compiler_wl_F77='-Wl,' 14393 lt_prog_compiler_pic_F77='-KPIC' 14394 lt_prog_compiler_static_F77='-Bstatic' 14395 ;; 14396 14397 sysv4*MP*) 14398 if test -d /usr/nec ;then 14399 lt_prog_compiler_pic_F77='-Kconform_pic' 14400 lt_prog_compiler_static_F77='-Bstatic' 14401 fi 14402 ;; 14403 14404 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14405 lt_prog_compiler_wl_F77='-Wl,' 14406 lt_prog_compiler_pic_F77='-KPIC' 14407 lt_prog_compiler_static_F77='-Bstatic' 14408 ;; 14409 14410 unicos*) 14411 lt_prog_compiler_wl_F77='-Wl,' 14412 lt_prog_compiler_can_build_shared_F77=no 14413 ;; 14414 14415 uts4*) 14416 lt_prog_compiler_pic_F77='-pic' 14417 lt_prog_compiler_static_F77='-Bstatic' 14418 ;; 14419 14420 *) 14421 lt_prog_compiler_can_build_shared_F77=no 14422 ;; 14423 esac 14424 fi 14425 14426{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14427echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14428 14429# 14430# Check to make sure the PIC flag actually works. 14431# 14432if test -n "$lt_prog_compiler_pic_F77"; then 14433 14434{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14435echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14436if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14437 echo $ECHO_N "(cached) $ECHO_C" >&6 14438else 14439 lt_cv_prog_compiler_pic_works_F77=no 14440 ac_outfile=conftest.$ac_objext 14441 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14442 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14443 # Insert the option either (1) after the last *FLAGS variable, or 14444 # (2) before a word containing "conftest.", or (3) at the end. 14445 # Note that $ac_compile itself does not contain backslashes and begins 14446 # with a dollar sign (not a hyphen), so the echo should work correctly. 14447 # The option is referenced via a variable to avoid confusing sed. 14448 lt_compile=`echo "$ac_compile" | $SED \ 14449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14451 -e 's:$: $lt_compiler_flag:'` 14452 (eval echo "\"\$as_me:14452: $lt_compile\"" >&5) 14453 (eval "$lt_compile" 2>conftest.err) 14454 ac_status=$? 14455 cat conftest.err >&5 14456 echo "$as_me:14456: \$? = $ac_status" >&5 14457 if (exit $ac_status) && test -s "$ac_outfile"; then 14458 # The compiler can only warn and ignore the option if not recognized 14459 # So say no if there are warnings other than the usual output. 14460 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14461 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14462 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14463 lt_cv_prog_compiler_pic_works_F77=yes 14464 fi 14465 fi 14466 $rm conftest* 14467 14468fi 14469{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14470echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } 14471 14472if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14473 case $lt_prog_compiler_pic_F77 in 14474 "" | " "*) ;; 14475 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14476 esac 14477else 14478 lt_prog_compiler_pic_F77= 14479 lt_prog_compiler_can_build_shared_F77=no 14480fi 14481 14482fi 14483case $host_os in 14484 # For platforms which do not support PIC, -DPIC is meaningless: 14485 *djgpp*) 14486 lt_prog_compiler_pic_F77= 14487 ;; 14488 *) 14489 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14490 ;; 14491esac 14492 14493# 14494# Check to make sure the static flag actually works. 14495# 14496wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14497{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14498echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14499if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14500 echo $ECHO_N "(cached) $ECHO_C" >&6 14501else 14502 lt_cv_prog_compiler_static_works_F77=no 14503 save_LDFLAGS="$LDFLAGS" 14504 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14505 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14506 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14507 # The linker can only warn and ignore the option if not recognized 14508 # So say no if there are warnings 14509 if test -s conftest.err; then 14510 # Append any errors to the config.log. 14511 cat conftest.err 1>&5 14512 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14514 if diff conftest.exp conftest.er2 >/dev/null; then 14515 lt_cv_prog_compiler_static_works_F77=yes 14516 fi 14517 else 14518 lt_cv_prog_compiler_static_works_F77=yes 14519 fi 14520 fi 14521 $rm -r conftest* 14522 LDFLAGS="$save_LDFLAGS" 14523 14524fi 14525{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14526echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } 14527 14528if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14529 : 14530else 14531 lt_prog_compiler_static_F77= 14532fi 14533 14534 14535{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14536echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14537if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14538 echo $ECHO_N "(cached) $ECHO_C" >&6 14539else 14540 lt_cv_prog_compiler_c_o_F77=no 14541 $rm -r conftest 2>/dev/null 14542 mkdir conftest 14543 cd conftest 14544 mkdir out 14545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14546 14547 lt_compiler_flag="-o out/conftest2.$ac_objext" 14548 # Insert the option either (1) after the last *FLAGS variable, or 14549 # (2) before a word containing "conftest.", or (3) at the end. 14550 # Note that $ac_compile itself does not contain backslashes and begins 14551 # with a dollar sign (not a hyphen), so the echo should work correctly. 14552 lt_compile=`echo "$ac_compile" | $SED \ 14553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14555 -e 's:$: $lt_compiler_flag:'` 14556 (eval echo "\"\$as_me:14556: $lt_compile\"" >&5) 14557 (eval "$lt_compile" 2>out/conftest.err) 14558 ac_status=$? 14559 cat out/conftest.err >&5 14560 echo "$as_me:14560: \$? = $ac_status" >&5 14561 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14562 then 14563 # The compiler can only warn and ignore the option if not recognized 14564 # So say no if there are warnings 14565 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14566 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14567 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14568 lt_cv_prog_compiler_c_o_F77=yes 14569 fi 14570 fi 14571 chmod u+w . 2>&5 14572 $rm conftest* 14573 # SGI C++ compiler will create directory out/ii_files/ for 14574 # template instantiation 14575 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14576 $rm out/* && rmdir out 14577 cd .. 14578 rmdir conftest 14579 $rm conftest* 14580 14581fi 14582{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14583echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14584 14585 14586hard_links="nottested" 14587if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14588 # do not overwrite the value of need_locks provided by the user 14589 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14590echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14591 hard_links=yes 14592 $rm conftest* 14593 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14594 touch conftest.a 14595 ln conftest.a conftest.b 2>&5 || hard_links=no 14596 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14597 { echo "$as_me:$LINENO: result: $hard_links" >&5 14598echo "${ECHO_T}$hard_links" >&6; } 14599 if test "$hard_links" = no; then 14600 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14601echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14602 need_locks=warn 14603 fi 14604else 14605 need_locks=no 14606fi 14607 14608{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14609echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14610 14611 runpath_var= 14612 allow_undefined_flag_F77= 14613 enable_shared_with_static_runtimes_F77=no 14614 archive_cmds_F77= 14615 archive_expsym_cmds_F77= 14616 old_archive_From_new_cmds_F77= 14617 old_archive_from_expsyms_cmds_F77= 14618 export_dynamic_flag_spec_F77= 14619 whole_archive_flag_spec_F77= 14620 thread_safe_flag_spec_F77= 14621 hardcode_libdir_flag_spec_F77= 14622 hardcode_libdir_flag_spec_ld_F77= 14623 hardcode_libdir_separator_F77= 14624 hardcode_direct_F77=no 14625 hardcode_minus_L_F77=no 14626 hardcode_shlibpath_var_F77=unsupported 14627 link_all_deplibs_F77=unknown 14628 hardcode_automatic_F77=no 14629 module_cmds_F77= 14630 module_expsym_cmds_F77= 14631 always_export_symbols_F77=no 14632 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14633 # include_expsyms should be a list of space-separated symbols to be *always* 14634 # included in the symbol list 14635 include_expsyms_F77= 14636 # exclude_expsyms can be an extended regexp of symbols to exclude 14637 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14638 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14639 # as well as any symbol that contains `d'. 14640 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14641 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14642 # platforms (ab)use it in PIC code, but their linkers get confused if 14643 # the symbol is explicitly referenced. Since portable code cannot 14644 # rely on this symbol name, it's probably fine to never include it in 14645 # preloaded symbol tables. 14646 # Exclude shared library initialization/finalization symbols. 14647 extract_expsyms_cmds= 14648 # Just being paranoid about ensuring that cc_basename is set. 14649 for cc_temp in $compiler""; do 14650 case $cc_temp in 14651 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14652 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14653 \-*) ;; 14654 *) break;; 14655 esac 14656done 14657cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14658 14659 case $host_os in 14660 cygwin* | mingw* | pw32*) 14661 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14662 # When not using gcc, we currently assume that we are using 14663 # Microsoft Visual C++. 14664 if test "$GCC" != yes; then 14665 with_gnu_ld=no 14666 fi 14667 ;; 14668 interix*) 14669 # we just hope/assume this is gcc and not c89 (= MSVC++) 14670 with_gnu_ld=yes 14671 ;; 14672 openbsd*) 14673 with_gnu_ld=no 14674 ;; 14675 esac 14676 14677 ld_shlibs_F77=yes 14678 if test "$with_gnu_ld" = yes; then 14679 # If archive_cmds runs LD, not CC, wlarc should be empty 14680 wlarc='${wl}' 14681 14682 # Set some defaults for GNU ld with shared library support. These 14683 # are reset later if shared libraries are not supported. Putting them 14684 # here allows them to be overridden if necessary. 14685 runpath_var=LD_RUN_PATH 14686 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14687 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14688 # ancient GNU ld didn't support --whole-archive et. al. 14689 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14690 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14691 else 14692 whole_archive_flag_spec_F77= 14693 fi 14694 supports_anon_versioning=no 14695 case `$LD -v 2>/dev/null` in 14696 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14697 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14698 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14699 *\ 2.11.*) ;; # other 2.11 versions 14700 *) supports_anon_versioning=yes ;; 14701 esac 14702 14703 # See if GNU ld supports shared libraries. 14704 case $host_os in 14705 aix[3-9]*) 14706 # On AIX/PPC, the GNU linker is very broken 14707 if test "$host_cpu" != ia64; then 14708 ld_shlibs_F77=no 14709 cat <<EOF 1>&2 14710 14711*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14712*** to be unable to reliably create shared libraries on AIX. 14713*** Therefore, libtool is disabling shared libraries support. If you 14714*** really care for shared libraries, you may want to modify your PATH 14715*** so that a non-GNU linker is found, and then restart. 14716 14717EOF 14718 fi 14719 ;; 14720 14721 amigaos*) 14722 archive_cmds_F77='$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)' 14723 hardcode_libdir_flag_spec_F77='-L$libdir' 14724 hardcode_minus_L_F77=yes 14725 14726 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14727 # that the semantics of dynamic libraries on AmigaOS, at least up 14728 # to version 4, is to share data among multiple programs linked 14729 # with the same dynamic library. Since this doesn't match the 14730 # behavior of shared libraries on other platforms, we can't use 14731 # them. 14732 ld_shlibs_F77=no 14733 ;; 14734 14735 beos*) 14736 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14737 allow_undefined_flag_F77=unsupported 14738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14739 # support --undefined. This deserves some investigation. FIXME 14740 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14741 else 14742 ld_shlibs_F77=no 14743 fi 14744 ;; 14745 14746 cygwin* | mingw* | pw32*) 14747 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14748 # as there is no search path for DLLs. 14749 hardcode_libdir_flag_spec_F77='-L$libdir' 14750 allow_undefined_flag_F77=unsupported 14751 always_export_symbols_F77=no 14752 enable_shared_with_static_runtimes_F77=yes 14753 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14754 14755 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14756 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14757 # If the export-symbols file already is a .def file (1st line 14758 # is EXPORTS), use it as is; otherwise, prepend... 14759 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14760 cp $export_symbols $output_objdir/$soname.def; 14761 else 14762 echo EXPORTS > $output_objdir/$soname.def; 14763 cat $export_symbols >> $output_objdir/$soname.def; 14764 fi~ 14765 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14766 else 14767 ld_shlibs_F77=no 14768 fi 14769 ;; 14770 14771 interix[3-9]*) 14772 hardcode_direct_F77=no 14773 hardcode_shlibpath_var_F77=no 14774 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14775 export_dynamic_flag_spec_F77='${wl}-E' 14776 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14777 # Instead, shared libraries are loaded at an image base (0x10000000 by 14778 # default) and relocated if they conflict, which is a slow very memory 14779 # consuming and fragmenting process. To avoid this, we pick a random, 14780 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14781 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14782 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14783 archive_expsym_cmds_F77='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' 14784 ;; 14785 14786 gnu* | linux* | k*bsd*-gnu) 14787 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14788 tmp_addflag= 14789 case $cc_basename,$host_cpu in 14790 pgcc*) # Portland Group C compiler 14791 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14792 tmp_addflag=' $pic_flag' 14793 ;; 14794 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14795 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14796 tmp_addflag=' $pic_flag -Mnomain' ;; 14797 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14798 tmp_addflag=' -i_dynamic' ;; 14799 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14800 tmp_addflag=' -i_dynamic -nofor_main' ;; 14801 ifc* | ifort*) # Intel Fortran compiler 14802 tmp_addflag=' -nofor_main' ;; 14803 esac 14804 case `$CC -V 2>&1 | sed 5q` in 14805 *Sun\ C*) # Sun C 5.9 14806 whole_archive_flag_spec_F77='${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' 14807 tmp_sharedflag='-G' ;; 14808 *Sun\ F*) # Sun Fortran 8.3 14809 tmp_sharedflag='-G' ;; 14810 *) 14811 tmp_sharedflag='-shared' ;; 14812 esac 14813 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14814 14815 if test $supports_anon_versioning = yes; then 14816 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14818 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14819 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14820 fi 14821 link_all_deplibs_F77=no 14822 else 14823 ld_shlibs_F77=no 14824 fi 14825 ;; 14826 14827 netbsd* | netbsdelf*-gnu) 14828 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14829 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14830 wlarc= 14831 else 14832 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14833 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14834 fi 14835 ;; 14836 14837 solaris*) 14838 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14839 ld_shlibs_F77=no 14840 cat <<EOF 1>&2 14841 14842*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14843*** create shared libraries on Solaris systems. Therefore, libtool 14844*** is disabling shared libraries support. We urge you to upgrade GNU 14845*** binutils to release 2.9.1 or newer. Another option is to modify 14846*** your PATH or compiler configuration so that the native linker is 14847*** used, and then restart. 14848 14849EOF 14850 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14851 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14852 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14853 else 14854 ld_shlibs_F77=no 14855 fi 14856 ;; 14857 14858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14859 case `$LD -v 2>&1` in 14860 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14861 ld_shlibs_F77=no 14862 cat <<_LT_EOF 1>&2 14863 14864*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14865*** reliably create shared libraries on SCO systems. Therefore, libtool 14866*** is disabling shared libraries support. We urge you to upgrade GNU 14867*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14868*** your PATH or compiler configuration so that the native linker is 14869*** used, and then restart. 14870 14871_LT_EOF 14872 ;; 14873 *) 14874 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14875 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14876 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14877 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14878 else 14879 ld_shlibs_F77=no 14880 fi 14881 ;; 14882 esac 14883 ;; 14884 14885 sunos4*) 14886 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14887 wlarc= 14888 hardcode_direct_F77=yes 14889 hardcode_shlibpath_var_F77=no 14890 ;; 14891 14892 *) 14893 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14894 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14895 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14896 else 14897 ld_shlibs_F77=no 14898 fi 14899 ;; 14900 esac 14901 14902 if test "$ld_shlibs_F77" = no; then 14903 runpath_var= 14904 hardcode_libdir_flag_spec_F77= 14905 export_dynamic_flag_spec_F77= 14906 whole_archive_flag_spec_F77= 14907 fi 14908 else 14909 # PORTME fill in a description of your system's linker (not GNU ld) 14910 case $host_os in 14911 aix3*) 14912 allow_undefined_flag_F77=unsupported 14913 always_export_symbols_F77=yes 14914 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 14915 # Note: this linker hardcodes the directories in LIBPATH if there 14916 # are no directories specified by -L. 14917 hardcode_minus_L_F77=yes 14918 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14919 # Neither direct hardcoding nor static linking is supported with a 14920 # broken collect2. 14921 hardcode_direct_F77=unsupported 14922 fi 14923 ;; 14924 14925 aix[4-9]*) 14926 if test "$host_cpu" = ia64; then 14927 # On IA64, the linker does run time linking by default, so we don't 14928 # have to do anything special. 14929 aix_use_runtimelinking=no 14930 exp_sym_flag='-Bexport' 14931 no_entry_flag="" 14932 else 14933 # If we're using GNU nm, then we don't want the "-C" option. 14934 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14935 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14936 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14937 else 14938 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14939 fi 14940 aix_use_runtimelinking=no 14941 14942 # Test if we are trying to use run time linking or normal 14943 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14944 # need to do runtime linking. 14945 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14946 for ld_flag in $LDFLAGS; do 14947 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14948 aix_use_runtimelinking=yes 14949 break 14950 fi 14951 done 14952 ;; 14953 esac 14954 14955 exp_sym_flag='-bexport' 14956 no_entry_flag='-bnoentry' 14957 fi 14958 14959 # When large executables or shared objects are built, AIX ld can 14960 # have problems creating the table of contents. If linking a library 14961 # or program results in "error TOC overflow" add -mminimal-toc to 14962 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14963 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14964 14965 archive_cmds_F77='' 14966 hardcode_direct_F77=yes 14967 hardcode_libdir_separator_F77=':' 14968 link_all_deplibs_F77=yes 14969 14970 if test "$GCC" = yes; then 14971 case $host_os in aix4.[012]|aix4.[012].*) 14972 # We only want to do this on AIX 4.2 and lower, the check 14973 # below for broken collect2 doesn't work under 4.3+ 14974 collect2name=`${CC} -print-prog-name=collect2` 14975 if test -f "$collect2name" && \ 14976 strings "$collect2name" | grep resolve_lib_name >/dev/null 14977 then 14978 # We have reworked collect2 14979 : 14980 else 14981 # We have old collect2 14982 hardcode_direct_F77=unsupported 14983 # It fails to find uninstalled libraries when the uninstalled 14984 # path is not listed in the libpath. Setting hardcode_minus_L 14985 # to unsupported forces relinking 14986 hardcode_minus_L_F77=yes 14987 hardcode_libdir_flag_spec_F77='-L$libdir' 14988 hardcode_libdir_separator_F77= 14989 fi 14990 ;; 14991 esac 14992 shared_flag='-shared' 14993 if test "$aix_use_runtimelinking" = yes; then 14994 shared_flag="$shared_flag "'${wl}-G' 14995 fi 14996 else 14997 # not using gcc 14998 if test "$host_cpu" = ia64; then 14999 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15000 # chokes on -Wl,-G. The following line is correct: 15001 shared_flag='-G' 15002 else 15003 if test "$aix_use_runtimelinking" = yes; then 15004 shared_flag='${wl}-G' 15005 else 15006 shared_flag='${wl}-bM:SRE' 15007 fi 15008 fi 15009 fi 15010 15011 # It seems that -bexpall does not export symbols beginning with 15012 # underscore (_), so it is better to generate a list of symbols to export. 15013 always_export_symbols_F77=yes 15014 if test "$aix_use_runtimelinking" = yes; then 15015 # Warning - without using the other runtime loading flags (-brtl), 15016 # -berok will link without error, but may produce a broken library. 15017 allow_undefined_flag_F77='-berok' 15018 # Determine the default libpath from the value encoded in an empty executable. 15019 cat >conftest.$ac_ext <<_ACEOF 15020 program main 15021 15022 end 15023_ACEOF 15024rm -f conftest.$ac_objext conftest$ac_exeext 15025if { (ac_try="$ac_link" 15026case "(($ac_try" in 15027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15028 *) ac_try_echo=$ac_try;; 15029esac 15030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15031 (eval "$ac_link") 2>conftest.er1 15032 ac_status=$? 15033 grep -v '^ *+' conftest.er1 >conftest.err 15034 rm -f conftest.er1 15035 cat conftest.err >&5 15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15037 (exit $ac_status); } && { 15038 test -z "$ac_f77_werror_flag" || 15039 test ! -s conftest.err 15040 } && test -s conftest$ac_exeext && 15041 $as_test_x conftest$ac_exeext; then 15042 15043lt_aix_libpath_sed=' 15044 /Import File Strings/,/^$/ { 15045 /^0/ { 15046 s/^0 *\(.*\)$/\1/ 15047 p 15048 } 15049 }' 15050aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15051# Check for a 64-bit object if we didn't find anything. 15052if test -z "$aix_libpath"; then 15053 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15054fi 15055else 15056 echo "$as_me: failed program was:" >&5 15057sed 's/^/| /' conftest.$ac_ext >&5 15058 15059 15060fi 15061 15062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15063 conftest$ac_exeext conftest.$ac_ext 15064if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15065 15066 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15067 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15068 else 15069 if test "$host_cpu" = ia64; then 15070 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15071 allow_undefined_flag_F77="-z nodefs" 15072 archive_expsym_cmds_F77="\$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" 15073 else 15074 # Determine the default libpath from the value encoded in an empty executable. 15075 cat >conftest.$ac_ext <<_ACEOF 15076 program main 15077 15078 end 15079_ACEOF 15080rm -f conftest.$ac_objext conftest$ac_exeext 15081if { (ac_try="$ac_link" 15082case "(($ac_try" in 15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15084 *) ac_try_echo=$ac_try;; 15085esac 15086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15087 (eval "$ac_link") 2>conftest.er1 15088 ac_status=$? 15089 grep -v '^ *+' conftest.er1 >conftest.err 15090 rm -f conftest.er1 15091 cat conftest.err >&5 15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15093 (exit $ac_status); } && { 15094 test -z "$ac_f77_werror_flag" || 15095 test ! -s conftest.err 15096 } && test -s conftest$ac_exeext && 15097 $as_test_x conftest$ac_exeext; then 15098 15099lt_aix_libpath_sed=' 15100 /Import File Strings/,/^$/ { 15101 /^0/ { 15102 s/^0 *\(.*\)$/\1/ 15103 p 15104 } 15105 }' 15106aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15107# Check for a 64-bit object if we didn't find anything. 15108if test -z "$aix_libpath"; then 15109 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15110fi 15111else 15112 echo "$as_me: failed program was:" >&5 15113sed 's/^/| /' conftest.$ac_ext >&5 15114 15115 15116fi 15117 15118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15119 conftest$ac_exeext conftest.$ac_ext 15120if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15121 15122 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15123 # Warning - without using the other run time loading flags, 15124 # -berok will link without error, but may produce a broken library. 15125 no_undefined_flag_F77=' ${wl}-bernotok' 15126 allow_undefined_flag_F77=' ${wl}-berok' 15127 # Exported symbols can be pulled into shared objects from archives 15128 whole_archive_flag_spec_F77='$convenience' 15129 archive_cmds_need_lc_F77=yes 15130 # This is similar to how AIX traditionally builds its shared libraries. 15131 archive_expsym_cmds_F77="\$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' 15132 fi 15133 fi 15134 ;; 15135 15136 amigaos*) 15137 archive_cmds_F77='$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)' 15138 hardcode_libdir_flag_spec_F77='-L$libdir' 15139 hardcode_minus_L_F77=yes 15140 # see comment about different semantics on the GNU ld section 15141 ld_shlibs_F77=no 15142 ;; 15143 15144 bsdi[45]*) 15145 export_dynamic_flag_spec_F77=-rdynamic 15146 ;; 15147 15148 cygwin* | mingw* | pw32*) 15149 # When not using gcc, we currently assume that we are using 15150 # Microsoft Visual C++. 15151 # hardcode_libdir_flag_spec is actually meaningless, as there is 15152 # no search path for DLLs. 15153 hardcode_libdir_flag_spec_F77=' ' 15154 allow_undefined_flag_F77=unsupported 15155 # Tell ltmain to make .lib files, not .a files. 15156 libext=lib 15157 # Tell ltmain to make .dll files, not .so files. 15158 shrext_cmds=".dll" 15159 # FIXME: Setting linknames here is a bad hack. 15160 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15161 # The linker will automatically build a .lib file if we build a DLL. 15162 old_archive_From_new_cmds_F77='true' 15163 # FIXME: Should let the user specify the lib program. 15164 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15165 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15166 enable_shared_with_static_runtimes_F77=yes 15167 ;; 15168 15169 darwin* | rhapsody*) 15170 case $host_os in 15171 rhapsody* | darwin1.[012]) 15172 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15173 ;; 15174 *) # Darwin 1.3 on 15175 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15176 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15177 else 15178 case ${MACOSX_DEPLOYMENT_TARGET} in 15179 10.[012]) 15180 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15181 ;; 15182 10.*) 15183 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15184 ;; 15185 esac 15186 fi 15187 ;; 15188 esac 15189 archive_cmds_need_lc_F77=no 15190 hardcode_direct_F77=no 15191 hardcode_automatic_F77=yes 15192 hardcode_shlibpath_var_F77=unsupported 15193 whole_archive_flag_spec_F77='' 15194 link_all_deplibs_F77=yes 15195 if test "$GCC" = yes ; then 15196 output_verbose_link_cmd='echo' 15197 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15198 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15199 archive_expsym_cmds_F77="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}" 15200 module_expsym_cmds_F77="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}" 15201 else 15202 case $cc_basename in 15203 xlc*) 15204 output_verbose_link_cmd='echo' 15205 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15206 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15207 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15208 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15209 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15210 ;; 15211 *) 15212 ld_shlibs_F77=no 15213 ;; 15214 esac 15215 fi 15216 ;; 15217 15218 dgux*) 15219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15220 hardcode_libdir_flag_spec_F77='-L$libdir' 15221 hardcode_shlibpath_var_F77=no 15222 ;; 15223 15224 freebsd1*) 15225 ld_shlibs_F77=no 15226 ;; 15227 15228 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15229 # support. Future versions do this automatically, but an explicit c++rt0.o 15230 # does not break anything, and helps significantly (at the cost of a little 15231 # extra space). 15232 freebsd2.2*) 15233 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15234 hardcode_libdir_flag_spec_F77='-R$libdir' 15235 hardcode_direct_F77=yes 15236 hardcode_shlibpath_var_F77=no 15237 ;; 15238 15239 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15240 freebsd2*) 15241 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15242 hardcode_direct_F77=yes 15243 hardcode_minus_L_F77=yes 15244 hardcode_shlibpath_var_F77=no 15245 ;; 15246 15247 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15248 freebsd* | dragonfly*) 15249 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15250 hardcode_libdir_flag_spec_F77='-R$libdir' 15251 hardcode_direct_F77=yes 15252 hardcode_shlibpath_var_F77=no 15253 ;; 15254 15255 hpux9*) 15256 if test "$GCC" = yes; then 15257 archive_cmds_F77='$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' 15258 else 15259 archive_cmds_F77='$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' 15260 fi 15261 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15262 hardcode_libdir_separator_F77=: 15263 hardcode_direct_F77=yes 15264 15265 # hardcode_minus_L: Not really in the search PATH, 15266 # but as the default location of the library. 15267 hardcode_minus_L_F77=yes 15268 export_dynamic_flag_spec_F77='${wl}-E' 15269 ;; 15270 15271 hpux10*) 15272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15273 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15274 else 15275 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15276 fi 15277 if test "$with_gnu_ld" = no; then 15278 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15279 hardcode_libdir_separator_F77=: 15280 15281 hardcode_direct_F77=yes 15282 export_dynamic_flag_spec_F77='${wl}-E' 15283 15284 # hardcode_minus_L: Not really in the search PATH, 15285 # but as the default location of the library. 15286 hardcode_minus_L_F77=yes 15287 fi 15288 ;; 15289 15290 hpux11*) 15291 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15292 case $host_cpu in 15293 hppa*64*) 15294 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15295 ;; 15296 ia64*) 15297 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15298 ;; 15299 *) 15300 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15301 ;; 15302 esac 15303 else 15304 case $host_cpu in 15305 hppa*64*) 15306 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15307 ;; 15308 ia64*) 15309 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15310 ;; 15311 *) 15312 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15313 ;; 15314 esac 15315 fi 15316 if test "$with_gnu_ld" = no; then 15317 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15318 hardcode_libdir_separator_F77=: 15319 15320 case $host_cpu in 15321 hppa*64*|ia64*) 15322 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15323 hardcode_direct_F77=no 15324 hardcode_shlibpath_var_F77=no 15325 ;; 15326 *) 15327 hardcode_direct_F77=yes 15328 export_dynamic_flag_spec_F77='${wl}-E' 15329 15330 # hardcode_minus_L: Not really in the search PATH, 15331 # but as the default location of the library. 15332 hardcode_minus_L_F77=yes 15333 ;; 15334 esac 15335 fi 15336 ;; 15337 15338 irix5* | irix6* | nonstopux*) 15339 if test "$GCC" = yes; then 15340 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15341 else 15342 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15343 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15344 fi 15345 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15346 hardcode_libdir_separator_F77=: 15347 link_all_deplibs_F77=yes 15348 ;; 15349 15350 netbsd* | netbsdelf*-gnu) 15351 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15352 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15353 else 15354 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15355 fi 15356 hardcode_libdir_flag_spec_F77='-R$libdir' 15357 hardcode_direct_F77=yes 15358 hardcode_shlibpath_var_F77=no 15359 ;; 15360 15361 newsos6) 15362 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15363 hardcode_direct_F77=yes 15364 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15365 hardcode_libdir_separator_F77=: 15366 hardcode_shlibpath_var_F77=no 15367 ;; 15368 15369 openbsd*) 15370 if test -f /usr/libexec/ld.so; then 15371 hardcode_direct_F77=yes 15372 hardcode_shlibpath_var_F77=no 15373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15374 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15375 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15376 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15377 export_dynamic_flag_spec_F77='${wl}-E' 15378 else 15379 case $host_os in 15380 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15381 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15382 hardcode_libdir_flag_spec_F77='-R$libdir' 15383 ;; 15384 *) 15385 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15386 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15387 ;; 15388 esac 15389 fi 15390 else 15391 ld_shlibs_F77=no 15392 fi 15393 ;; 15394 15395 os2*) 15396 hardcode_libdir_flag_spec_F77='-L$libdir' 15397 hardcode_minus_L_F77=yes 15398 allow_undefined_flag_F77=unsupported 15399 archive_cmds_F77='$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' 15400 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15401 ;; 15402 15403 osf3*) 15404 if test "$GCC" = yes; then 15405 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15406 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15407 else 15408 allow_undefined_flag_F77=' -expect_unresolved \*' 15409 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15410 fi 15411 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15412 hardcode_libdir_separator_F77=: 15413 ;; 15414 15415 osf4* | osf5*) # as osf3* with the addition of -msym flag 15416 if test "$GCC" = yes; then 15417 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15418 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15419 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15420 else 15421 allow_undefined_flag_F77=' -expect_unresolved \*' 15422 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15423 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15424 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 15425 15426 # Both c and cxx compiler support -rpath directly 15427 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15428 fi 15429 hardcode_libdir_separator_F77=: 15430 ;; 15431 15432 solaris*) 15433 no_undefined_flag_F77=' -z text' 15434 if test "$GCC" = yes; then 15435 wlarc='${wl}' 15436 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15437 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15438 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15439 else 15440 wlarc='' 15441 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15442 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15443 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15444 fi 15445 hardcode_libdir_flag_spec_F77='-R$libdir' 15446 hardcode_shlibpath_var_F77=no 15447 case $host_os in 15448 solaris2.[0-5] | solaris2.[0-5].*) ;; 15449 *) 15450 # The compiler driver will combine and reorder linker options, 15451 # but understands `-z linker_flag'. GCC discards it without `$wl', 15452 # but is careful enough not to reorder. 15453 # Supported since Solaris 2.6 (maybe 2.5.1?) 15454 if test "$GCC" = yes; then 15455 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15456 else 15457 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15458 fi 15459 ;; 15460 esac 15461 link_all_deplibs_F77=yes 15462 ;; 15463 15464 sunos4*) 15465 if test "x$host_vendor" = xsequent; then 15466 # Use $CC to link under sequent, because it throws in some extra .o 15467 # files that make .init and .fini sections work. 15468 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15469 else 15470 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15471 fi 15472 hardcode_libdir_flag_spec_F77='-L$libdir' 15473 hardcode_direct_F77=yes 15474 hardcode_minus_L_F77=yes 15475 hardcode_shlibpath_var_F77=no 15476 ;; 15477 15478 sysv4) 15479 case $host_vendor in 15480 sni) 15481 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15482 hardcode_direct_F77=yes # is this really true??? 15483 ;; 15484 siemens) 15485 ## LD is ld it makes a PLAMLIB 15486 ## CC just makes a GrossModule. 15487 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15488 reload_cmds_F77='$CC -r -o $output$reload_objs' 15489 hardcode_direct_F77=no 15490 ;; 15491 motorola) 15492 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15493 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15494 ;; 15495 esac 15496 runpath_var='LD_RUN_PATH' 15497 hardcode_shlibpath_var_F77=no 15498 ;; 15499 15500 sysv4.3*) 15501 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15502 hardcode_shlibpath_var_F77=no 15503 export_dynamic_flag_spec_F77='-Bexport' 15504 ;; 15505 15506 sysv4*MP*) 15507 if test -d /usr/nec; then 15508 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15509 hardcode_shlibpath_var_F77=no 15510 runpath_var=LD_RUN_PATH 15511 hardcode_runpath_var=yes 15512 ld_shlibs_F77=yes 15513 fi 15514 ;; 15515 15516 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15517 no_undefined_flag_F77='${wl}-z,text' 15518 archive_cmds_need_lc_F77=no 15519 hardcode_shlibpath_var_F77=no 15520 runpath_var='LD_RUN_PATH' 15521 15522 if test "$GCC" = yes; then 15523 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15524 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15525 else 15526 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15527 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15528 fi 15529 ;; 15530 15531 sysv5* | sco3.2v5* | sco5v6*) 15532 # Note: We can NOT use -z defs as we might desire, because we do not 15533 # link with -lc, and that would cause any symbols used from libc to 15534 # always be unresolved, which means just about no library would 15535 # ever link correctly. If we're not using GNU ld we use -z text 15536 # though, which does catch some bad symbols but isn't as heavy-handed 15537 # as -z defs. 15538 no_undefined_flag_F77='${wl}-z,text' 15539 allow_undefined_flag_F77='${wl}-z,nodefs' 15540 archive_cmds_need_lc_F77=no 15541 hardcode_shlibpath_var_F77=no 15542 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15543 hardcode_libdir_separator_F77=':' 15544 link_all_deplibs_F77=yes 15545 export_dynamic_flag_spec_F77='${wl}-Bexport' 15546 runpath_var='LD_RUN_PATH' 15547 15548 if test "$GCC" = yes; then 15549 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15550 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15551 else 15552 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15553 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15554 fi 15555 ;; 15556 15557 uts4*) 15558 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15559 hardcode_libdir_flag_spec_F77='-L$libdir' 15560 hardcode_shlibpath_var_F77=no 15561 ;; 15562 15563 *) 15564 ld_shlibs_F77=no 15565 ;; 15566 esac 15567 fi 15568 15569{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15570echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15571test "$ld_shlibs_F77" = no && can_build_shared=no 15572 15573# 15574# Do we need to explicitly link libc? 15575# 15576case "x$archive_cmds_need_lc_F77" in 15577x|xyes) 15578 # Assume -lc should be added 15579 archive_cmds_need_lc_F77=yes 15580 15581 if test "$enable_shared" = yes && test "$GCC" = yes; then 15582 case $archive_cmds_F77 in 15583 *'~'*) 15584 # FIXME: we may have to deal with multi-command sequences. 15585 ;; 15586 '$CC '*) 15587 # Test whether the compiler implicitly links with -lc since on some 15588 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15589 # to ld, don't add -lc before -lgcc. 15590 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15591echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15592 $rm conftest* 15593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15594 15595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15596 (eval $ac_compile) 2>&5 15597 ac_status=$? 15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15599 (exit $ac_status); } 2>conftest.err; then 15600 soname=conftest 15601 lib=conftest 15602 libobjs=conftest.$ac_objext 15603 deplibs= 15604 wl=$lt_prog_compiler_wl_F77 15605 pic_flag=$lt_prog_compiler_pic_F77 15606 compiler_flags=-v 15607 linker_flags=-v 15608 verstring= 15609 output_objdir=. 15610 libname=conftest 15611 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15612 allow_undefined_flag_F77= 15613 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15614 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15615 ac_status=$? 15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15617 (exit $ac_status); } 15618 then 15619 archive_cmds_need_lc_F77=no 15620 else 15621 archive_cmds_need_lc_F77=yes 15622 fi 15623 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15624 else 15625 cat conftest.err 1>&5 15626 fi 15627 $rm conftest* 15628 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15629echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15630 ;; 15631 esac 15632 fi 15633 ;; 15634esac 15635 15636{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15637echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15638library_names_spec= 15639libname_spec='lib$name' 15640soname_spec= 15641shrext_cmds=".so" 15642postinstall_cmds= 15643postuninstall_cmds= 15644finish_cmds= 15645finish_eval= 15646shlibpath_var= 15647shlibpath_overrides_runpath=unknown 15648version_type=none 15649dynamic_linker="$host_os ld.so" 15650sys_lib_dlsearch_path_spec="/lib /usr/lib" 15651 15652need_lib_prefix=unknown 15653hardcode_into_libs=no 15654 15655# when you set need_version to no, make sure it does not cause -set_version 15656# flags to be left without arguments 15657need_version=unknown 15658 15659case $host_os in 15660aix3*) 15661 version_type=linux 15662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15663 shlibpath_var=LIBPATH 15664 15665 # AIX 3 has no versioning support, so we append a major version to the name. 15666 soname_spec='${libname}${release}${shared_ext}$major' 15667 ;; 15668 15669aix[4-9]*) 15670 version_type=linux 15671 need_lib_prefix=no 15672 need_version=no 15673 hardcode_into_libs=yes 15674 if test "$host_cpu" = ia64; then 15675 # AIX 5 supports IA64 15676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15677 shlibpath_var=LD_LIBRARY_PATH 15678 else 15679 # With GCC up to 2.95.x, collect2 would create an import file 15680 # for dependence libraries. The import file would start with 15681 # the line `#! .'. This would cause the generated library to 15682 # depend on `.', always an invalid library. This was fixed in 15683 # development snapshots of GCC prior to 3.0. 15684 case $host_os in 15685 aix4 | aix4.[01] | aix4.[01].*) 15686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15687 echo ' yes ' 15688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15689 : 15690 else 15691 can_build_shared=no 15692 fi 15693 ;; 15694 esac 15695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15696 # soname into executable. Probably we can add versioning support to 15697 # collect2, so additional links can be useful in future. 15698 if test "$aix_use_runtimelinking" = yes; then 15699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15700 # instead of lib<name>.a to let people know that these are not 15701 # typical AIX shared libraries. 15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15703 else 15704 # We preserve .a as extension for shared libraries through AIX4.2 15705 # and later when we are not doing run time linking. 15706 library_names_spec='${libname}${release}.a $libname.a' 15707 soname_spec='${libname}${release}${shared_ext}$major' 15708 fi 15709 shlibpath_var=LIBPATH 15710 fi 15711 ;; 15712 15713amigaos*) 15714 library_names_spec='$libname.ixlibrary $libname.a' 15715 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15716 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' 15717 ;; 15718 15719beos*) 15720 library_names_spec='${libname}${shared_ext}' 15721 dynamic_linker="$host_os ld.so" 15722 shlibpath_var=LIBRARY_PATH 15723 ;; 15724 15725bsdi[45]*) 15726 version_type=linux 15727 need_version=no 15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15729 soname_spec='${libname}${release}${shared_ext}$major' 15730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15731 shlibpath_var=LD_LIBRARY_PATH 15732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15734 # the default ld.so.conf also contains /usr/contrib/lib and 15735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15736 # libtool to hard-code these into programs 15737 ;; 15738 15739cygwin* | mingw* | pw32*) 15740 version_type=windows 15741 shrext_cmds=".dll" 15742 need_version=no 15743 need_lib_prefix=no 15744 15745 case $GCC,$host_os in 15746 yes,cygwin* | yes,mingw* | yes,pw32*) 15747 library_names_spec='$libname.dll.a' 15748 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15749 postinstall_cmds='base_file=`basename \${file}`~ 15750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15751 dldir=$destdir/`dirname \$dlpath`~ 15752 test -d \$dldir || mkdir -p \$dldir~ 15753 $install_prog $dir/$dlname \$dldir/$dlname~ 15754 chmod a+x \$dldir/$dlname' 15755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15756 dlpath=$dir/\$dldll~ 15757 $rm \$dlpath' 15758 shlibpath_overrides_runpath=yes 15759 15760 case $host_os in 15761 cygwin*) 15762 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15765 ;; 15766 mingw*) 15767 # MinGW DLLs use traditional 'lib' prefix 15768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15771 # It is most probably a Windows format PATH printed by 15772 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15773 # path with ; separators, and with drive letters. We can handle the 15774 # drive letters (cygwin fileutils understands them), so leave them, 15775 # especially as we might pass files found there to a mingw objdump, 15776 # which wouldn't understand a cygwinified path. Ahh. 15777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15778 else 15779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15780 fi 15781 ;; 15782 pw32*) 15783 # pw32 DLLs use 'pw' prefix rather than 'lib' 15784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15785 ;; 15786 esac 15787 ;; 15788 15789 *) 15790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15791 ;; 15792 esac 15793 dynamic_linker='Win32 ld.exe' 15794 # FIXME: first we should search . and the directory the executable is in 15795 shlibpath_var=PATH 15796 ;; 15797 15798darwin* | rhapsody*) 15799 dynamic_linker="$host_os dyld" 15800 version_type=darwin 15801 need_lib_prefix=no 15802 need_version=no 15803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15804 soname_spec='${libname}${release}${major}$shared_ext' 15805 shlibpath_overrides_runpath=yes 15806 shlibpath_var=DYLD_LIBRARY_PATH 15807 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15808 15809 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15810 ;; 15811 15812dgux*) 15813 version_type=linux 15814 need_lib_prefix=no 15815 need_version=no 15816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15817 soname_spec='${libname}${release}${shared_ext}$major' 15818 shlibpath_var=LD_LIBRARY_PATH 15819 ;; 15820 15821freebsd1*) 15822 dynamic_linker=no 15823 ;; 15824 15825freebsd* | dragonfly*) 15826 # DragonFly does not have aout. When/if they implement a new 15827 # versioning mechanism, adjust this. 15828 if test -x /usr/bin/objformat; then 15829 objformat=`/usr/bin/objformat` 15830 else 15831 case $host_os in 15832 freebsd[123]*) objformat=aout ;; 15833 *) objformat=elf ;; 15834 esac 15835 fi 15836 version_type=freebsd-$objformat 15837 case $version_type in 15838 freebsd-elf*) 15839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15840 need_version=no 15841 need_lib_prefix=no 15842 ;; 15843 freebsd-*) 15844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15845 need_version=yes 15846 ;; 15847 esac 15848 shlibpath_var=LD_LIBRARY_PATH 15849 case $host_os in 15850 freebsd2*) 15851 shlibpath_overrides_runpath=yes 15852 ;; 15853 freebsd3.[01]* | freebsdelf3.[01]*) 15854 shlibpath_overrides_runpath=yes 15855 hardcode_into_libs=yes 15856 ;; 15857 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15858 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15859 shlibpath_overrides_runpath=no 15860 hardcode_into_libs=yes 15861 ;; 15862 *) # from 4.6 on, and DragonFly 15863 shlibpath_overrides_runpath=yes 15864 hardcode_into_libs=yes 15865 ;; 15866 esac 15867 ;; 15868 15869gnu*) 15870 version_type=linux 15871 need_lib_prefix=no 15872 need_version=no 15873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15874 soname_spec='${libname}${release}${shared_ext}$major' 15875 shlibpath_var=LD_LIBRARY_PATH 15876 hardcode_into_libs=yes 15877 ;; 15878 15879hpux9* | hpux10* | hpux11*) 15880 # Give a soname corresponding to the major version so that dld.sl refuses to 15881 # link against other versions. 15882 version_type=sunos 15883 need_lib_prefix=no 15884 need_version=no 15885 case $host_cpu in 15886 ia64*) 15887 shrext_cmds='.so' 15888 hardcode_into_libs=yes 15889 dynamic_linker="$host_os dld.so" 15890 shlibpath_var=LD_LIBRARY_PATH 15891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15893 soname_spec='${libname}${release}${shared_ext}$major' 15894 if test "X$HPUX_IA64_MODE" = X32; then 15895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15896 else 15897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15898 fi 15899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15900 ;; 15901 hppa*64*) 15902 shrext_cmds='.sl' 15903 hardcode_into_libs=yes 15904 dynamic_linker="$host_os dld.sl" 15905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15908 soname_spec='${libname}${release}${shared_ext}$major' 15909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15911 ;; 15912 *) 15913 shrext_cmds='.sl' 15914 dynamic_linker="$host_os dld.sl" 15915 shlibpath_var=SHLIB_PATH 15916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15918 soname_spec='${libname}${release}${shared_ext}$major' 15919 ;; 15920 esac 15921 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15922 postinstall_cmds='chmod 555 $lib' 15923 ;; 15924 15925interix[3-9]*) 15926 version_type=linux 15927 need_lib_prefix=no 15928 need_version=no 15929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15930 soname_spec='${libname}${release}${shared_ext}$major' 15931 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15932 shlibpath_var=LD_LIBRARY_PATH 15933 shlibpath_overrides_runpath=no 15934 hardcode_into_libs=yes 15935 ;; 15936 15937irix5* | irix6* | nonstopux*) 15938 case $host_os in 15939 nonstopux*) version_type=nonstopux ;; 15940 *) 15941 if test "$lt_cv_prog_gnu_ld" = yes; then 15942 version_type=linux 15943 else 15944 version_type=irix 15945 fi ;; 15946 esac 15947 need_lib_prefix=no 15948 need_version=no 15949 soname_spec='${libname}${release}${shared_ext}$major' 15950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15951 case $host_os in 15952 irix5* | nonstopux*) 15953 libsuff= shlibsuff= 15954 ;; 15955 *) 15956 case $LD in # libtool.m4 will add one of these switches to LD 15957 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15958 libsuff= shlibsuff= libmagic=32-bit;; 15959 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15960 libsuff=32 shlibsuff=N32 libmagic=N32;; 15961 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15962 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15963 *) libsuff= shlibsuff= libmagic=never-match;; 15964 esac 15965 ;; 15966 esac 15967 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15968 shlibpath_overrides_runpath=no 15969 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15970 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15971 hardcode_into_libs=yes 15972 ;; 15973 15974# No shared lib support for Linux oldld, aout, or coff. 15975linux*oldld* | linux*aout* | linux*coff*) 15976 dynamic_linker=no 15977 ;; 15978 15979# This must be Linux ELF. 15980linux* | k*bsd*-gnu) 15981 version_type=linux 15982 need_lib_prefix=no 15983 need_version=no 15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15985 soname_spec='${libname}${release}${shared_ext}$major' 15986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15987 shlibpath_var=LD_LIBRARY_PATH 15988 shlibpath_overrides_runpath=no 15989 # This implies no fast_install, which is unacceptable. 15990 # Some rework will be needed to allow for fast_install 15991 # before this can be enabled. 15992 hardcode_into_libs=yes 15993 15994 # Append ld.so.conf contents to the search path 15995 if test -f /etc/ld.so.conf; then 15996 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' ' '` 15997 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15998 fi 15999 16000 # We used to test for /lib/ld.so.1 and disable shared libraries on 16001 # powerpc, because MkLinux only supported shared libraries with the 16002 # GNU dynamic linker. Since this was broken with cross compilers, 16003 # most powerpc-linux boxes support dynamic linking these days and 16004 # people can always --disable-shared, the test was removed, and we 16005 # assume the GNU/Linux dynamic linker is in use. 16006 dynamic_linker='GNU/Linux ld.so' 16007 ;; 16008 16009netbsdelf*-gnu) 16010 version_type=linux 16011 need_lib_prefix=no 16012 need_version=no 16013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16014 soname_spec='${libname}${release}${shared_ext}$major' 16015 shlibpath_var=LD_LIBRARY_PATH 16016 shlibpath_overrides_runpath=no 16017 hardcode_into_libs=yes 16018 dynamic_linker='NetBSD ld.elf_so' 16019 ;; 16020 16021netbsd*) 16022 version_type=sunos 16023 need_lib_prefix=no 16024 need_version=no 16025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16028 dynamic_linker='NetBSD (a.out) ld.so' 16029 else 16030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16031 soname_spec='${libname}${release}${shared_ext}$major' 16032 dynamic_linker='NetBSD ld.elf_so' 16033 fi 16034 shlibpath_var=LD_LIBRARY_PATH 16035 shlibpath_overrides_runpath=yes 16036 hardcode_into_libs=yes 16037 ;; 16038 16039newsos6) 16040 version_type=linux 16041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16042 shlibpath_var=LD_LIBRARY_PATH 16043 shlibpath_overrides_runpath=yes 16044 ;; 16045 16046nto-qnx*) 16047 version_type=linux 16048 need_lib_prefix=no 16049 need_version=no 16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16051 soname_spec='${libname}${release}${shared_ext}$major' 16052 shlibpath_var=LD_LIBRARY_PATH 16053 shlibpath_overrides_runpath=yes 16054 ;; 16055 16056openbsd*) 16057 version_type=sunos 16058 sys_lib_dlsearch_path_spec="/usr/lib" 16059 need_lib_prefix=no 16060 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16061 case $host_os in 16062 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16063 *) need_version=no ;; 16064 esac 16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16067 shlibpath_var=LD_LIBRARY_PATH 16068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16069 case $host_os in 16070 openbsd2.[89] | openbsd2.[89].*) 16071 shlibpath_overrides_runpath=no 16072 ;; 16073 *) 16074 shlibpath_overrides_runpath=yes 16075 ;; 16076 esac 16077 else 16078 shlibpath_overrides_runpath=yes 16079 fi 16080 ;; 16081 16082os2*) 16083 libname_spec='$name' 16084 shrext_cmds=".dll" 16085 need_lib_prefix=no 16086 library_names_spec='$libname${shared_ext} $libname.a' 16087 dynamic_linker='OS/2 ld.exe' 16088 shlibpath_var=LIBPATH 16089 ;; 16090 16091osf3* | osf4* | osf5*) 16092 version_type=osf 16093 need_lib_prefix=no 16094 need_version=no 16095 soname_spec='${libname}${release}${shared_ext}$major' 16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16097 shlibpath_var=LD_LIBRARY_PATH 16098 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16099 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16100 ;; 16101 16102rdos*) 16103 dynamic_linker=no 16104 ;; 16105 16106solaris*) 16107 version_type=linux 16108 need_lib_prefix=no 16109 need_version=no 16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16111 soname_spec='${libname}${release}${shared_ext}$major' 16112 shlibpath_var=LD_LIBRARY_PATH 16113 shlibpath_overrides_runpath=yes 16114 hardcode_into_libs=yes 16115 # ldd complains unless libraries are executable 16116 postinstall_cmds='chmod +x $lib' 16117 ;; 16118 16119sunos4*) 16120 version_type=sunos 16121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16122 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16123 shlibpath_var=LD_LIBRARY_PATH 16124 shlibpath_overrides_runpath=yes 16125 if test "$with_gnu_ld" = yes; then 16126 need_lib_prefix=no 16127 fi 16128 need_version=yes 16129 ;; 16130 16131sysv4 | sysv4.3*) 16132 version_type=linux 16133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16134 soname_spec='${libname}${release}${shared_ext}$major' 16135 shlibpath_var=LD_LIBRARY_PATH 16136 case $host_vendor in 16137 sni) 16138 shlibpath_overrides_runpath=no 16139 need_lib_prefix=no 16140 export_dynamic_flag_spec='${wl}-Blargedynsym' 16141 runpath_var=LD_RUN_PATH 16142 ;; 16143 siemens) 16144 need_lib_prefix=no 16145 ;; 16146 motorola) 16147 need_lib_prefix=no 16148 need_version=no 16149 shlibpath_overrides_runpath=no 16150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16151 ;; 16152 esac 16153 ;; 16154 16155sysv4*MP*) 16156 if test -d /usr/nec ;then 16157 version_type=linux 16158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16159 soname_spec='$libname${shared_ext}.$major' 16160 shlibpath_var=LD_LIBRARY_PATH 16161 fi 16162 ;; 16163 16164sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16165 version_type=freebsd-elf 16166 need_lib_prefix=no 16167 need_version=no 16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16169 soname_spec='${libname}${release}${shared_ext}$major' 16170 shlibpath_var=LD_LIBRARY_PATH 16171 hardcode_into_libs=yes 16172 if test "$with_gnu_ld" = yes; then 16173 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16174 shlibpath_overrides_runpath=no 16175 else 16176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16177 shlibpath_overrides_runpath=yes 16178 case $host_os in 16179 sco3.2v5*) 16180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16181 ;; 16182 esac 16183 fi 16184 sys_lib_dlsearch_path_spec='/usr/lib' 16185 ;; 16186 16187uts4*) 16188 version_type=linux 16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16190 soname_spec='${libname}${release}${shared_ext}$major' 16191 shlibpath_var=LD_LIBRARY_PATH 16192 ;; 16193 16194*) 16195 dynamic_linker=no 16196 ;; 16197esac 16198{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16199echo "${ECHO_T}$dynamic_linker" >&6; } 16200test "$dynamic_linker" = no && can_build_shared=no 16201 16202if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16203 echo $ECHO_N "(cached) $ECHO_C" >&6 16204else 16205 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 16206fi 16207 16208sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16209if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16210 echo $ECHO_N "(cached) $ECHO_C" >&6 16211else 16212 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 16213fi 16214 16215sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16216 16217variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16218if test "$GCC" = yes; then 16219 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16220fi 16221 16222{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16223echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16224hardcode_action_F77= 16225if test -n "$hardcode_libdir_flag_spec_F77" || \ 16226 test -n "$runpath_var_F77" || \ 16227 test "X$hardcode_automatic_F77" = "Xyes" ; then 16228 16229 # We can hardcode non-existant directories. 16230 if test "$hardcode_direct_F77" != no && 16231 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16232 # have to relink, otherwise we might link with an installed library 16233 # when we should be linking with a yet-to-be-installed one 16234 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16235 test "$hardcode_minus_L_F77" != no; then 16236 # Linking always hardcodes the temporary library directory. 16237 hardcode_action_F77=relink 16238 else 16239 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16240 hardcode_action_F77=immediate 16241 fi 16242else 16243 # We cannot hardcode anything, or else we can only hardcode existing 16244 # directories. 16245 hardcode_action_F77=unsupported 16246fi 16247{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16248echo "${ECHO_T}$hardcode_action_F77" >&6; } 16249 16250if test "$hardcode_action_F77" = relink; then 16251 # Fast installation is not supported 16252 enable_fast_install=no 16253elif test "$shlibpath_overrides_runpath" = yes || 16254 test "$enable_shared" = no; then 16255 # Fast installation is not necessary 16256 enable_fast_install=needless 16257fi 16258 16259 16260# The else clause should only fire when bootstrapping the 16261# libtool distribution, otherwise you forgot to ship ltmain.sh 16262# with your package, and you will get complaints that there are 16263# no rules to generate ltmain.sh. 16264if test -f "$ltmain"; then 16265 # See if we are running on zsh, and set the options which allow our commands through 16266 # without removal of \ escapes. 16267 if test -n "${ZSH_VERSION+set}" ; then 16268 setopt NO_GLOB_SUBST 16269 fi 16270 # Now quote all the things that may contain metacharacters while being 16271 # careful not to overquote the AC_SUBSTed values. We take copies of the 16272 # variables and quote the copies for generation of the libtool script. 16273 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16274 SED SHELL STRIP \ 16275 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16276 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16277 deplibs_check_method reload_flag reload_cmds need_locks \ 16278 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16279 lt_cv_sys_global_symbol_to_c_name_address \ 16280 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16281 old_postinstall_cmds old_postuninstall_cmds \ 16282 compiler_F77 \ 16283 CC_F77 \ 16284 LD_F77 \ 16285 lt_prog_compiler_wl_F77 \ 16286 lt_prog_compiler_pic_F77 \ 16287 lt_prog_compiler_static_F77 \ 16288 lt_prog_compiler_no_builtin_flag_F77 \ 16289 export_dynamic_flag_spec_F77 \ 16290 thread_safe_flag_spec_F77 \ 16291 whole_archive_flag_spec_F77 \ 16292 enable_shared_with_static_runtimes_F77 \ 16293 old_archive_cmds_F77 \ 16294 old_archive_from_new_cmds_F77 \ 16295 predep_objects_F77 \ 16296 postdep_objects_F77 \ 16297 predeps_F77 \ 16298 postdeps_F77 \ 16299 compiler_lib_search_path_F77 \ 16300 compiler_lib_search_dirs_F77 \ 16301 archive_cmds_F77 \ 16302 archive_expsym_cmds_F77 \ 16303 postinstall_cmds_F77 \ 16304 postuninstall_cmds_F77 \ 16305 old_archive_from_expsyms_cmds_F77 \ 16306 allow_undefined_flag_F77 \ 16307 no_undefined_flag_F77 \ 16308 export_symbols_cmds_F77 \ 16309 hardcode_libdir_flag_spec_F77 \ 16310 hardcode_libdir_flag_spec_ld_F77 \ 16311 hardcode_libdir_separator_F77 \ 16312 hardcode_automatic_F77 \ 16313 module_cmds_F77 \ 16314 module_expsym_cmds_F77 \ 16315 lt_cv_prog_compiler_c_o_F77 \ 16316 fix_srcfile_path_F77 \ 16317 exclude_expsyms_F77 \ 16318 include_expsyms_F77; do 16319 16320 case $var in 16321 old_archive_cmds_F77 | \ 16322 old_archive_from_new_cmds_F77 | \ 16323 archive_cmds_F77 | \ 16324 archive_expsym_cmds_F77 | \ 16325 module_cmds_F77 | \ 16326 module_expsym_cmds_F77 | \ 16327 old_archive_from_expsyms_cmds_F77 | \ 16328 export_symbols_cmds_F77 | \ 16329 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16330 postinstall_cmds | postuninstall_cmds | \ 16331 old_postinstall_cmds | old_postuninstall_cmds | \ 16332 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16333 # Double-quote double-evaled strings. 16334 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16335 ;; 16336 *) 16337 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16338 ;; 16339 esac 16340 done 16341 16342 case $lt_echo in 16343 *'\$0 --fallback-echo"') 16344 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16345 ;; 16346 esac 16347 16348cfgfile="$ofile" 16349 16350 cat <<__EOF__ >> "$cfgfile" 16351# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16352 16353# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16354 16355# Shell to use when invoking shell scripts. 16356SHELL=$lt_SHELL 16357 16358# Whether or not to build shared libraries. 16359build_libtool_libs=$enable_shared 16360 16361# Whether or not to build static libraries. 16362build_old_libs=$enable_static 16363 16364# Whether or not to add -lc for building shared libraries. 16365build_libtool_need_lc=$archive_cmds_need_lc_F77 16366 16367# Whether or not to disallow shared libs when runtime libs are static 16368allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16369 16370# Whether or not to optimize for fast installation. 16371fast_install=$enable_fast_install 16372 16373# The host system. 16374host_alias=$host_alias 16375host=$host 16376host_os=$host_os 16377 16378# The build system. 16379build_alias=$build_alias 16380build=$build 16381build_os=$build_os 16382 16383# An echo program that does not interpret backslashes. 16384echo=$lt_echo 16385 16386# The archiver. 16387AR=$lt_AR 16388AR_FLAGS=$lt_AR_FLAGS 16389 16390# A C compiler. 16391LTCC=$lt_LTCC 16392 16393# LTCC compiler flags. 16394LTCFLAGS=$lt_LTCFLAGS 16395 16396# A language-specific compiler. 16397CC=$lt_compiler_F77 16398 16399# Is the compiler the GNU C compiler? 16400with_gcc=$GCC_F77 16401 16402# An ERE matcher. 16403EGREP=$lt_EGREP 16404 16405# The linker used to build libraries. 16406LD=$lt_LD_F77 16407 16408# Whether we need hard or soft links. 16409LN_S=$lt_LN_S 16410 16411# A BSD-compatible nm program. 16412NM=$lt_NM 16413 16414# A symbol stripping program 16415STRIP=$lt_STRIP 16416 16417# Used to examine libraries when file_magic_cmd begins "file" 16418MAGIC_CMD=$MAGIC_CMD 16419 16420# Used on cygwin: DLL creation program. 16421DLLTOOL="$DLLTOOL" 16422 16423# Used on cygwin: object dumper. 16424OBJDUMP="$OBJDUMP" 16425 16426# Used on cygwin: assembler. 16427AS="$AS" 16428 16429# The name of the directory that contains temporary libtool files. 16430objdir=$objdir 16431 16432# How to create reloadable object files. 16433reload_flag=$lt_reload_flag 16434reload_cmds=$lt_reload_cmds 16435 16436# How to pass a linker flag through the compiler. 16437wl=$lt_lt_prog_compiler_wl_F77 16438 16439# Object file suffix (normally "o"). 16440objext="$ac_objext" 16441 16442# Old archive suffix (normally "a"). 16443libext="$libext" 16444 16445# Shared library suffix (normally ".so"). 16446shrext_cmds='$shrext_cmds' 16447 16448# Executable file suffix (normally ""). 16449exeext="$exeext" 16450 16451# Additional compiler flags for building library objects. 16452pic_flag=$lt_lt_prog_compiler_pic_F77 16453pic_mode=$pic_mode 16454 16455# What is the maximum length of a command? 16456max_cmd_len=$lt_cv_sys_max_cmd_len 16457 16458# Does compiler simultaneously support -c and -o options? 16459compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16460 16461# Must we lock files when doing compilation? 16462need_locks=$lt_need_locks 16463 16464# Do we need the lib prefix for modules? 16465need_lib_prefix=$need_lib_prefix 16466 16467# Do we need a version for libraries? 16468need_version=$need_version 16469 16470# Whether dlopen is supported. 16471dlopen_support=$enable_dlopen 16472 16473# Whether dlopen of programs is supported. 16474dlopen_self=$enable_dlopen_self 16475 16476# Whether dlopen of statically linked programs is supported. 16477dlopen_self_static=$enable_dlopen_self_static 16478 16479# Compiler flag to prevent dynamic linking. 16480link_static_flag=$lt_lt_prog_compiler_static_F77 16481 16482# Compiler flag to turn off builtin functions. 16483no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16484 16485# Compiler flag to allow reflexive dlopens. 16486export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16487 16488# Compiler flag to generate shared objects directly from archives. 16489whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16490 16491# Compiler flag to generate thread-safe objects. 16492thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16493 16494# Library versioning type. 16495version_type=$version_type 16496 16497# Format of library name prefix. 16498libname_spec=$lt_libname_spec 16499 16500# List of archive names. First name is the real one, the rest are links. 16501# The last name is the one that the linker finds with -lNAME. 16502library_names_spec=$lt_library_names_spec 16503 16504# The coded name of the library, if different from the real name. 16505soname_spec=$lt_soname_spec 16506 16507# Commands used to build and install an old-style archive. 16508RANLIB=$lt_RANLIB 16509old_archive_cmds=$lt_old_archive_cmds_F77 16510old_postinstall_cmds=$lt_old_postinstall_cmds 16511old_postuninstall_cmds=$lt_old_postuninstall_cmds 16512 16513# Create an old-style archive from a shared archive. 16514old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16515 16516# Create a temporary old-style archive to link instead of a shared archive. 16517old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16518 16519# Commands used to build and install a shared archive. 16520archive_cmds=$lt_archive_cmds_F77 16521archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16522postinstall_cmds=$lt_postinstall_cmds 16523postuninstall_cmds=$lt_postuninstall_cmds 16524 16525# Commands used to build a loadable module (assumed same as above if empty) 16526module_cmds=$lt_module_cmds_F77 16527module_expsym_cmds=$lt_module_expsym_cmds_F77 16528 16529# Commands to strip libraries. 16530old_striplib=$lt_old_striplib 16531striplib=$lt_striplib 16532 16533# Dependencies to place before the objects being linked to create a 16534# shared library. 16535predep_objects=$lt_predep_objects_F77 16536 16537# Dependencies to place after the objects being linked to create a 16538# shared library. 16539postdep_objects=$lt_postdep_objects_F77 16540 16541# Dependencies to place before the objects being linked to create a 16542# shared library. 16543predeps=$lt_predeps_F77 16544 16545# Dependencies to place after the objects being linked to create a 16546# shared library. 16547postdeps=$lt_postdeps_F77 16548 16549# The directories searched by this compiler when creating a shared 16550# library 16551compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 16552 16553# The library search path used internally by the compiler when linking 16554# a shared library. 16555compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16556 16557# Method to check whether dependent libraries are shared objects. 16558deplibs_check_method=$lt_deplibs_check_method 16559 16560# Command to use when deplibs_check_method == file_magic. 16561file_magic_cmd=$lt_file_magic_cmd 16562 16563# Flag that allows shared libraries with undefined symbols to be built. 16564allow_undefined_flag=$lt_allow_undefined_flag_F77 16565 16566# Flag that forces no undefined symbols. 16567no_undefined_flag=$lt_no_undefined_flag_F77 16568 16569# Commands used to finish a libtool library installation in a directory. 16570finish_cmds=$lt_finish_cmds 16571 16572# Same as above, but a single script fragment to be evaled but not shown. 16573finish_eval=$lt_finish_eval 16574 16575# Take the output of nm and produce a listing of raw symbols and C names. 16576global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16577 16578# Transform the output of nm in a proper C declaration 16579global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16580 16581# Transform the output of nm in a C name address pair 16582global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16583 16584# This is the shared library runtime path variable. 16585runpath_var=$runpath_var 16586 16587# This is the shared library path variable. 16588shlibpath_var=$shlibpath_var 16589 16590# Is shlibpath searched before the hard-coded library search path? 16591shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16592 16593# How to hardcode a shared library path into an executable. 16594hardcode_action=$hardcode_action_F77 16595 16596# Whether we should hardcode library paths into libraries. 16597hardcode_into_libs=$hardcode_into_libs 16598 16599# Flag to hardcode \$libdir into a binary during linking. 16600# This must work even if \$libdir does not exist. 16601hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16602 16603# If ld is used when linking, flag to hardcode \$libdir into 16604# a binary during linking. This must work even if \$libdir does 16605# not exist. 16606hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16607 16608# Whether we need a single -rpath flag with a separated argument. 16609hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16610 16611# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16612# resulting binary. 16613hardcode_direct=$hardcode_direct_F77 16614 16615# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16616# resulting binary. 16617hardcode_minus_L=$hardcode_minus_L_F77 16618 16619# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16620# the resulting binary. 16621hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16622 16623# Set to yes if building a shared library automatically hardcodes DIR into the library 16624# and all subsequent libraries and executables linked against it. 16625hardcode_automatic=$hardcode_automatic_F77 16626 16627# Variables whose values should be saved in libtool wrapper scripts and 16628# restored at relink time. 16629variables_saved_for_relink="$variables_saved_for_relink" 16630 16631# Whether libtool must link a program against all its dependency libraries. 16632link_all_deplibs=$link_all_deplibs_F77 16633 16634# Compile-time system search path for libraries 16635sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16636 16637# Run-time system search path for libraries 16638sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16639 16640# Fix the shell variable \$srcfile for the compiler. 16641fix_srcfile_path=$lt_fix_srcfile_path 16642 16643# Set to yes if exported symbols are required. 16644always_export_symbols=$always_export_symbols_F77 16645 16646# The commands to list exported symbols. 16647export_symbols_cmds=$lt_export_symbols_cmds_F77 16648 16649# The commands to extract the exported symbol list from a shared archive. 16650extract_expsyms_cmds=$lt_extract_expsyms_cmds 16651 16652# Symbols that should not be listed in the preloaded symbols. 16653exclude_expsyms=$lt_exclude_expsyms_F77 16654 16655# Symbols that must always be exported. 16656include_expsyms=$lt_include_expsyms_F77 16657 16658# ### END LIBTOOL TAG CONFIG: $tagname 16659 16660__EOF__ 16661 16662 16663else 16664 # If there is no Makefile yet, we rely on a make rule to execute 16665 # `config.status --recheck' to rerun these tests and create the 16666 # libtool script then. 16667 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16668 if test -f "$ltmain_in"; then 16669 test -f Makefile && make "$ltmain" 16670 fi 16671fi 16672 16673 16674ac_ext=c 16675ac_cpp='$CPP $CPPFLAGS' 16676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16678ac_compiler_gnu=$ac_cv_c_compiler_gnu 16679 16680CC="$lt_save_CC" 16681 16682 else 16683 tagname="" 16684 fi 16685 ;; 16686 16687 GCJ) 16688 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16689 16690 16691# Source file extension for Java test sources. 16692ac_ext=java 16693 16694# Object file extension for compiled Java test sources. 16695objext=o 16696objext_GCJ=$objext 16697 16698# Code to be used in simple compile tests 16699lt_simple_compile_test_code="class foo {}" 16700 16701# Code to be used in simple link tests 16702lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16703 16704# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16705 16706# If no C compiler was specified, use CC. 16707LTCC=${LTCC-"$CC"} 16708 16709# If no C compiler flags were specified, use CFLAGS. 16710LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16711 16712# Allow CC to be a program name with arguments. 16713compiler=$CC 16714 16715 16716# save warnings/boilerplate of simple test code 16717ac_outfile=conftest.$ac_objext 16718echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16719eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16720_lt_compiler_boilerplate=`cat conftest.err` 16721$rm conftest* 16722 16723ac_outfile=conftest.$ac_objext 16724echo "$lt_simple_link_test_code" >conftest.$ac_ext 16725eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16726_lt_linker_boilerplate=`cat conftest.err` 16727$rm -r conftest* 16728 16729 16730# Allow CC to be a program name with arguments. 16731lt_save_CC="$CC" 16732CC=${GCJ-"gcj"} 16733compiler=$CC 16734compiler_GCJ=$CC 16735for cc_temp in $compiler""; do 16736 case $cc_temp in 16737 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16738 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16739 \-*) ;; 16740 *) break;; 16741 esac 16742done 16743cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16744 16745 16746# GCJ did not exist at the time GCC didn't implicitly link libc in. 16747archive_cmds_need_lc_GCJ=no 16748 16749old_archive_cmds_GCJ=$old_archive_cmds 16750 16751 16752lt_prog_compiler_no_builtin_flag_GCJ= 16753 16754if test "$GCC" = yes; then 16755 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16756 16757 16758{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16759echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16760if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16761 echo $ECHO_N "(cached) $ECHO_C" >&6 16762else 16763 lt_cv_prog_compiler_rtti_exceptions=no 16764 ac_outfile=conftest.$ac_objext 16765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16766 lt_compiler_flag="-fno-rtti -fno-exceptions" 16767 # Insert the option either (1) after the last *FLAGS variable, or 16768 # (2) before a word containing "conftest.", or (3) at the end. 16769 # Note that $ac_compile itself does not contain backslashes and begins 16770 # with a dollar sign (not a hyphen), so the echo should work correctly. 16771 # The option is referenced via a variable to avoid confusing sed. 16772 lt_compile=`echo "$ac_compile" | $SED \ 16773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16775 -e 's:$: $lt_compiler_flag:'` 16776 (eval echo "\"\$as_me:16776: $lt_compile\"" >&5) 16777 (eval "$lt_compile" 2>conftest.err) 16778 ac_status=$? 16779 cat conftest.err >&5 16780 echo "$as_me:16780: \$? = $ac_status" >&5 16781 if (exit $ac_status) && test -s "$ac_outfile"; then 16782 # The compiler can only warn and ignore the option if not recognized 16783 # So say no if there are warnings other than the usual output. 16784 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16786 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16787 lt_cv_prog_compiler_rtti_exceptions=yes 16788 fi 16789 fi 16790 $rm conftest* 16791 16792fi 16793{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16794echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16795 16796if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16797 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16798else 16799 : 16800fi 16801 16802fi 16803 16804lt_prog_compiler_wl_GCJ= 16805lt_prog_compiler_pic_GCJ= 16806lt_prog_compiler_static_GCJ= 16807 16808{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16809echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16810 16811 if test "$GCC" = yes; then 16812 lt_prog_compiler_wl_GCJ='-Wl,' 16813 lt_prog_compiler_static_GCJ='-static' 16814 16815 case $host_os in 16816 aix*) 16817 # All AIX code is PIC. 16818 if test "$host_cpu" = ia64; then 16819 # AIX 5 now supports IA64 processor 16820 lt_prog_compiler_static_GCJ='-Bstatic' 16821 fi 16822 ;; 16823 16824 amigaos*) 16825 # FIXME: we need at least 68020 code to build shared libraries, but 16826 # adding the `-m68020' flag to GCC prevents building anything better, 16827 # like `-m68040'. 16828 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16829 ;; 16830 16831 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16832 # PIC is the default for these OSes. 16833 ;; 16834 16835 mingw* | cygwin* | pw32* | os2*) 16836 # This hack is so that the source file can tell whether it is being 16837 # built for inclusion in a dll (and should export symbols for example). 16838 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16839 # (--disable-auto-import) libraries 16840 16841 ;; 16842 16843 darwin* | rhapsody*) 16844 # PIC is the default on this platform 16845 # Common symbols not allowed in MH_DYLIB files 16846 lt_prog_compiler_pic_GCJ='-fno-common' 16847 ;; 16848 16849 interix[3-9]*) 16850 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16851 # Instead, we relocate shared libraries at runtime. 16852 ;; 16853 16854 msdosdjgpp*) 16855 # Just because we use GCC doesn't mean we suddenly get shared libraries 16856 # on systems that don't support them. 16857 lt_prog_compiler_can_build_shared_GCJ=no 16858 enable_shared=no 16859 ;; 16860 16861 sysv4*MP*) 16862 if test -d /usr/nec; then 16863 lt_prog_compiler_pic_GCJ=-Kconform_pic 16864 fi 16865 ;; 16866 16867 hpux*) 16868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16869 # not for PA HP-UX. 16870 case $host_cpu in 16871 hppa*64*|ia64*) 16872 # +Z the default 16873 ;; 16874 *) 16875 lt_prog_compiler_pic_GCJ='-fPIC' 16876 ;; 16877 esac 16878 ;; 16879 16880 *) 16881 lt_prog_compiler_pic_GCJ='-fPIC' 16882 ;; 16883 esac 16884 else 16885 # PORTME Check for flag to pass linker flags through the system compiler. 16886 case $host_os in 16887 aix*) 16888 lt_prog_compiler_wl_GCJ='-Wl,' 16889 if test "$host_cpu" = ia64; then 16890 # AIX 5 now supports IA64 processor 16891 lt_prog_compiler_static_GCJ='-Bstatic' 16892 else 16893 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16894 fi 16895 ;; 16896 darwin*) 16897 # PIC is the default on this platform 16898 # Common symbols not allowed in MH_DYLIB files 16899 case $cc_basename in 16900 xlc*) 16901 lt_prog_compiler_pic_GCJ='-qnocommon' 16902 lt_prog_compiler_wl_GCJ='-Wl,' 16903 ;; 16904 esac 16905 ;; 16906 16907 mingw* | cygwin* | pw32* | os2*) 16908 # This hack is so that the source file can tell whether it is being 16909 # built for inclusion in a dll (and should export symbols for example). 16910 16911 ;; 16912 16913 hpux9* | hpux10* | hpux11*) 16914 lt_prog_compiler_wl_GCJ='-Wl,' 16915 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16916 # not for PA HP-UX. 16917 case $host_cpu in 16918 hppa*64*|ia64*) 16919 # +Z the default 16920 ;; 16921 *) 16922 lt_prog_compiler_pic_GCJ='+Z' 16923 ;; 16924 esac 16925 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16926 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16927 ;; 16928 16929 irix5* | irix6* | nonstopux*) 16930 lt_prog_compiler_wl_GCJ='-Wl,' 16931 # PIC (with -KPIC) is the default. 16932 lt_prog_compiler_static_GCJ='-non_shared' 16933 ;; 16934 16935 newsos6) 16936 lt_prog_compiler_pic_GCJ='-KPIC' 16937 lt_prog_compiler_static_GCJ='-Bstatic' 16938 ;; 16939 16940 linux* | k*bsd*-gnu) 16941 case $cc_basename in 16942 icc* | ecc*) 16943 lt_prog_compiler_wl_GCJ='-Wl,' 16944 lt_prog_compiler_pic_GCJ='-KPIC' 16945 lt_prog_compiler_static_GCJ='-static' 16946 ;; 16947 pgcc* | pgf77* | pgf90* | pgf95*) 16948 # Portland Group compilers (*not* the Pentium gcc compiler, 16949 # which looks to be a dead project) 16950 lt_prog_compiler_wl_GCJ='-Wl,' 16951 lt_prog_compiler_pic_GCJ='-fpic' 16952 lt_prog_compiler_static_GCJ='-Bstatic' 16953 ;; 16954 ccc*) 16955 lt_prog_compiler_wl_GCJ='-Wl,' 16956 # All Alpha code is PIC. 16957 lt_prog_compiler_static_GCJ='-non_shared' 16958 ;; 16959 *) 16960 case `$CC -V 2>&1 | sed 5q` in 16961 *Sun\ C*) 16962 # Sun C 5.9 16963 lt_prog_compiler_pic_GCJ='-KPIC' 16964 lt_prog_compiler_static_GCJ='-Bstatic' 16965 lt_prog_compiler_wl_GCJ='-Wl,' 16966 ;; 16967 *Sun\ F*) 16968 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16969 lt_prog_compiler_pic_GCJ='-KPIC' 16970 lt_prog_compiler_static_GCJ='-Bstatic' 16971 lt_prog_compiler_wl_GCJ='' 16972 ;; 16973 esac 16974 ;; 16975 esac 16976 ;; 16977 16978 osf3* | osf4* | osf5*) 16979 lt_prog_compiler_wl_GCJ='-Wl,' 16980 # All OSF/1 code is PIC. 16981 lt_prog_compiler_static_GCJ='-non_shared' 16982 ;; 16983 16984 rdos*) 16985 lt_prog_compiler_static_GCJ='-non_shared' 16986 ;; 16987 16988 solaris*) 16989 lt_prog_compiler_pic_GCJ='-KPIC' 16990 lt_prog_compiler_static_GCJ='-Bstatic' 16991 case $cc_basename in 16992 f77* | f90* | f95*) 16993 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16994 *) 16995 lt_prog_compiler_wl_GCJ='-Wl,';; 16996 esac 16997 ;; 16998 16999 sunos4*) 17000 lt_prog_compiler_wl_GCJ='-Qoption ld ' 17001 lt_prog_compiler_pic_GCJ='-PIC' 17002 lt_prog_compiler_static_GCJ='-Bstatic' 17003 ;; 17004 17005 sysv4 | sysv4.2uw2* | sysv4.3*) 17006 lt_prog_compiler_wl_GCJ='-Wl,' 17007 lt_prog_compiler_pic_GCJ='-KPIC' 17008 lt_prog_compiler_static_GCJ='-Bstatic' 17009 ;; 17010 17011 sysv4*MP*) 17012 if test -d /usr/nec ;then 17013 lt_prog_compiler_pic_GCJ='-Kconform_pic' 17014 lt_prog_compiler_static_GCJ='-Bstatic' 17015 fi 17016 ;; 17017 17018 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17019 lt_prog_compiler_wl_GCJ='-Wl,' 17020 lt_prog_compiler_pic_GCJ='-KPIC' 17021 lt_prog_compiler_static_GCJ='-Bstatic' 17022 ;; 17023 17024 unicos*) 17025 lt_prog_compiler_wl_GCJ='-Wl,' 17026 lt_prog_compiler_can_build_shared_GCJ=no 17027 ;; 17028 17029 uts4*) 17030 lt_prog_compiler_pic_GCJ='-pic' 17031 lt_prog_compiler_static_GCJ='-Bstatic' 17032 ;; 17033 17034 *) 17035 lt_prog_compiler_can_build_shared_GCJ=no 17036 ;; 17037 esac 17038 fi 17039 17040{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 17041echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 17042 17043# 17044# Check to make sure the PIC flag actually works. 17045# 17046if test -n "$lt_prog_compiler_pic_GCJ"; then 17047 17048{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 17049echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 17050if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then 17051 echo $ECHO_N "(cached) $ECHO_C" >&6 17052else 17053 lt_cv_prog_compiler_pic_works_GCJ=no 17054 ac_outfile=conftest.$ac_objext 17055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17056 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 17057 # Insert the option either (1) after the last *FLAGS variable, or 17058 # (2) before a word containing "conftest.", or (3) at the end. 17059 # Note that $ac_compile itself does not contain backslashes and begins 17060 # with a dollar sign (not a hyphen), so the echo should work correctly. 17061 # The option is referenced via a variable to avoid confusing sed. 17062 lt_compile=`echo "$ac_compile" | $SED \ 17063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17065 -e 's:$: $lt_compiler_flag:'` 17066 (eval echo "\"\$as_me:17066: $lt_compile\"" >&5) 17067 (eval "$lt_compile" 2>conftest.err) 17068 ac_status=$? 17069 cat conftest.err >&5 17070 echo "$as_me:17070: \$? = $ac_status" >&5 17071 if (exit $ac_status) && test -s "$ac_outfile"; then 17072 # The compiler can only warn and ignore the option if not recognized 17073 # So say no if there are warnings other than the usual output. 17074 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 17075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17076 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17077 lt_cv_prog_compiler_pic_works_GCJ=yes 17078 fi 17079 fi 17080 $rm conftest* 17081 17082fi 17083{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 17084echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; } 17085 17086if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then 17087 case $lt_prog_compiler_pic_GCJ in 17088 "" | " "*) ;; 17089 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 17090 esac 17091else 17092 lt_prog_compiler_pic_GCJ= 17093 lt_prog_compiler_can_build_shared_GCJ=no 17094fi 17095 17096fi 17097case $host_os in 17098 # For platforms which do not support PIC, -DPIC is meaningless: 17099 *djgpp*) 17100 lt_prog_compiler_pic_GCJ= 17101 ;; 17102 *) 17103 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 17104 ;; 17105esac 17106 17107# 17108# Check to make sure the static flag actually works. 17109# 17110wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17111{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17112echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17113if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then 17114 echo $ECHO_N "(cached) $ECHO_C" >&6 17115else 17116 lt_cv_prog_compiler_static_works_GCJ=no 17117 save_LDFLAGS="$LDFLAGS" 17118 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17119 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17121 # The linker can only warn and ignore the option if not recognized 17122 # So say no if there are warnings 17123 if test -s conftest.err; then 17124 # Append any errors to the config.log. 17125 cat conftest.err 1>&5 17126 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17128 if diff conftest.exp conftest.er2 >/dev/null; then 17129 lt_cv_prog_compiler_static_works_GCJ=yes 17130 fi 17131 else 17132 lt_cv_prog_compiler_static_works_GCJ=yes 17133 fi 17134 fi 17135 $rm -r conftest* 17136 LDFLAGS="$save_LDFLAGS" 17137 17138fi 17139{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 17140echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; } 17141 17142if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then 17143 : 17144else 17145 lt_prog_compiler_static_GCJ= 17146fi 17147 17148 17149{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17150echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17151if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17152 echo $ECHO_N "(cached) $ECHO_C" >&6 17153else 17154 lt_cv_prog_compiler_c_o_GCJ=no 17155 $rm -r conftest 2>/dev/null 17156 mkdir conftest 17157 cd conftest 17158 mkdir out 17159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17160 17161 lt_compiler_flag="-o out/conftest2.$ac_objext" 17162 # Insert the option either (1) after the last *FLAGS variable, or 17163 # (2) before a word containing "conftest.", or (3) at the end. 17164 # Note that $ac_compile itself does not contain backslashes and begins 17165 # with a dollar sign (not a hyphen), so the echo should work correctly. 17166 lt_compile=`echo "$ac_compile" | $SED \ 17167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17169 -e 's:$: $lt_compiler_flag:'` 17170 (eval echo "\"\$as_me:17170: $lt_compile\"" >&5) 17171 (eval "$lt_compile" 2>out/conftest.err) 17172 ac_status=$? 17173 cat out/conftest.err >&5 17174 echo "$as_me:17174: \$? = $ac_status" >&5 17175 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17176 then 17177 # The compiler can only warn and ignore the option if not recognized 17178 # So say no if there are warnings 17179 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17182 lt_cv_prog_compiler_c_o_GCJ=yes 17183 fi 17184 fi 17185 chmod u+w . 2>&5 17186 $rm conftest* 17187 # SGI C++ compiler will create directory out/ii_files/ for 17188 # template instantiation 17189 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17190 $rm out/* && rmdir out 17191 cd .. 17192 rmdir conftest 17193 $rm conftest* 17194 17195fi 17196{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17197echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17198 17199 17200hard_links="nottested" 17201if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17202 # do not overwrite the value of need_locks provided by the user 17203 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17204echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17205 hard_links=yes 17206 $rm conftest* 17207 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17208 touch conftest.a 17209 ln conftest.a conftest.b 2>&5 || hard_links=no 17210 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17211 { echo "$as_me:$LINENO: result: $hard_links" >&5 17212echo "${ECHO_T}$hard_links" >&6; } 17213 if test "$hard_links" = no; then 17214 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17215echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17216 need_locks=warn 17217 fi 17218else 17219 need_locks=no 17220fi 17221 17222{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17223echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17224 17225 runpath_var= 17226 allow_undefined_flag_GCJ= 17227 enable_shared_with_static_runtimes_GCJ=no 17228 archive_cmds_GCJ= 17229 archive_expsym_cmds_GCJ= 17230 old_archive_From_new_cmds_GCJ= 17231 old_archive_from_expsyms_cmds_GCJ= 17232 export_dynamic_flag_spec_GCJ= 17233 whole_archive_flag_spec_GCJ= 17234 thread_safe_flag_spec_GCJ= 17235 hardcode_libdir_flag_spec_GCJ= 17236 hardcode_libdir_flag_spec_ld_GCJ= 17237 hardcode_libdir_separator_GCJ= 17238 hardcode_direct_GCJ=no 17239 hardcode_minus_L_GCJ=no 17240 hardcode_shlibpath_var_GCJ=unsupported 17241 link_all_deplibs_GCJ=unknown 17242 hardcode_automatic_GCJ=no 17243 module_cmds_GCJ= 17244 module_expsym_cmds_GCJ= 17245 always_export_symbols_GCJ=no 17246 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17247 # include_expsyms should be a list of space-separated symbols to be *always* 17248 # included in the symbol list 17249 include_expsyms_GCJ= 17250 # exclude_expsyms can be an extended regexp of symbols to exclude 17251 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17252 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17253 # as well as any symbol that contains `d'. 17254 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17255 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17256 # platforms (ab)use it in PIC code, but their linkers get confused if 17257 # the symbol is explicitly referenced. Since portable code cannot 17258 # rely on this symbol name, it's probably fine to never include it in 17259 # preloaded symbol tables. 17260 # Exclude shared library initialization/finalization symbols. 17261 extract_expsyms_cmds= 17262 # Just being paranoid about ensuring that cc_basename is set. 17263 for cc_temp in $compiler""; do 17264 case $cc_temp in 17265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17267 \-*) ;; 17268 *) break;; 17269 esac 17270done 17271cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17272 17273 case $host_os in 17274 cygwin* | mingw* | pw32*) 17275 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17276 # When not using gcc, we currently assume that we are using 17277 # Microsoft Visual C++. 17278 if test "$GCC" != yes; then 17279 with_gnu_ld=no 17280 fi 17281 ;; 17282 interix*) 17283 # we just hope/assume this is gcc and not c89 (= MSVC++) 17284 with_gnu_ld=yes 17285 ;; 17286 openbsd*) 17287 with_gnu_ld=no 17288 ;; 17289 esac 17290 17291 ld_shlibs_GCJ=yes 17292 if test "$with_gnu_ld" = yes; then 17293 # If archive_cmds runs LD, not CC, wlarc should be empty 17294 wlarc='${wl}' 17295 17296 # Set some defaults for GNU ld with shared library support. These 17297 # are reset later if shared libraries are not supported. Putting them 17298 # here allows them to be overridden if necessary. 17299 runpath_var=LD_RUN_PATH 17300 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17301 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17302 # ancient GNU ld didn't support --whole-archive et. al. 17303 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17304 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17305 else 17306 whole_archive_flag_spec_GCJ= 17307 fi 17308 supports_anon_versioning=no 17309 case `$LD -v 2>/dev/null` in 17310 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17311 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17312 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17313 *\ 2.11.*) ;; # other 2.11 versions 17314 *) supports_anon_versioning=yes ;; 17315 esac 17316 17317 # See if GNU ld supports shared libraries. 17318 case $host_os in 17319 aix[3-9]*) 17320 # On AIX/PPC, the GNU linker is very broken 17321 if test "$host_cpu" != ia64; then 17322 ld_shlibs_GCJ=no 17323 cat <<EOF 1>&2 17324 17325*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17326*** to be unable to reliably create shared libraries on AIX. 17327*** Therefore, libtool is disabling shared libraries support. If you 17328*** really care for shared libraries, you may want to modify your PATH 17329*** so that a non-GNU linker is found, and then restart. 17330 17331EOF 17332 fi 17333 ;; 17334 17335 amigaos*) 17336 archive_cmds_GCJ='$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)' 17337 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17338 hardcode_minus_L_GCJ=yes 17339 17340 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17341 # that the semantics of dynamic libraries on AmigaOS, at least up 17342 # to version 4, is to share data among multiple programs linked 17343 # with the same dynamic library. Since this doesn't match the 17344 # behavior of shared libraries on other platforms, we can't use 17345 # them. 17346 ld_shlibs_GCJ=no 17347 ;; 17348 17349 beos*) 17350 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17351 allow_undefined_flag_GCJ=unsupported 17352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17353 # support --undefined. This deserves some investigation. FIXME 17354 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17355 else 17356 ld_shlibs_GCJ=no 17357 fi 17358 ;; 17359 17360 cygwin* | mingw* | pw32*) 17361 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17362 # as there is no search path for DLLs. 17363 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17364 allow_undefined_flag_GCJ=unsupported 17365 always_export_symbols_GCJ=no 17366 enable_shared_with_static_runtimes_GCJ=yes 17367 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17368 17369 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17370 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17371 # If the export-symbols file already is a .def file (1st line 17372 # is EXPORTS), use it as is; otherwise, prepend... 17373 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17374 cp $export_symbols $output_objdir/$soname.def; 17375 else 17376 echo EXPORTS > $output_objdir/$soname.def; 17377 cat $export_symbols >> $output_objdir/$soname.def; 17378 fi~ 17379 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17380 else 17381 ld_shlibs_GCJ=no 17382 fi 17383 ;; 17384 17385 interix[3-9]*) 17386 hardcode_direct_GCJ=no 17387 hardcode_shlibpath_var_GCJ=no 17388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17389 export_dynamic_flag_spec_GCJ='${wl}-E' 17390 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17391 # Instead, shared libraries are loaded at an image base (0x10000000 by 17392 # default) and relocated if they conflict, which is a slow very memory 17393 # consuming and fragmenting process. To avoid this, we pick a random, 17394 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17395 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17396 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 17397 archive_expsym_cmds_GCJ='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' 17398 ;; 17399 17400 gnu* | linux* | k*bsd*-gnu) 17401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17402 tmp_addflag= 17403 case $cc_basename,$host_cpu in 17404 pgcc*) # Portland Group C compiler 17405 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17406 tmp_addflag=' $pic_flag' 17407 ;; 17408 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17409 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 17410 tmp_addflag=' $pic_flag -Mnomain' ;; 17411 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17412 tmp_addflag=' -i_dynamic' ;; 17413 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17414 tmp_addflag=' -i_dynamic -nofor_main' ;; 17415 ifc* | ifort*) # Intel Fortran compiler 17416 tmp_addflag=' -nofor_main' ;; 17417 esac 17418 case `$CC -V 2>&1 | sed 5q` in 17419 *Sun\ C*) # Sun C 5.9 17420 whole_archive_flag_spec_GCJ='${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' 17421 tmp_sharedflag='-G' ;; 17422 *Sun\ F*) # Sun Fortran 8.3 17423 tmp_sharedflag='-G' ;; 17424 *) 17425 tmp_sharedflag='-shared' ;; 17426 esac 17427 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17428 17429 if test $supports_anon_versioning = yes; then 17430 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17431 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17432 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17433 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17434 fi 17435 link_all_deplibs_GCJ=no 17436 else 17437 ld_shlibs_GCJ=no 17438 fi 17439 ;; 17440 17441 netbsd* | netbsdelf*-gnu) 17442 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17443 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17444 wlarc= 17445 else 17446 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17447 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17448 fi 17449 ;; 17450 17451 solaris*) 17452 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17453 ld_shlibs_GCJ=no 17454 cat <<EOF 1>&2 17455 17456*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17457*** create shared libraries on Solaris systems. Therefore, libtool 17458*** is disabling shared libraries support. We urge you to upgrade GNU 17459*** binutils to release 2.9.1 or newer. Another option is to modify 17460*** your PATH or compiler configuration so that the native linker is 17461*** used, and then restart. 17462 17463EOF 17464 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17465 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17466 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17467 else 17468 ld_shlibs_GCJ=no 17469 fi 17470 ;; 17471 17472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17473 case `$LD -v 2>&1` in 17474 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17475 ld_shlibs_GCJ=no 17476 cat <<_LT_EOF 1>&2 17477 17478*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17479*** reliably create shared libraries on SCO systems. Therefore, libtool 17480*** is disabling shared libraries support. We urge you to upgrade GNU 17481*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17482*** your PATH or compiler configuration so that the native linker is 17483*** used, and then restart. 17484 17485_LT_EOF 17486 ;; 17487 *) 17488 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17489 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17490 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17491 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17492 else 17493 ld_shlibs_GCJ=no 17494 fi 17495 ;; 17496 esac 17497 ;; 17498 17499 sunos4*) 17500 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17501 wlarc= 17502 hardcode_direct_GCJ=yes 17503 hardcode_shlibpath_var_GCJ=no 17504 ;; 17505 17506 *) 17507 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17508 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17509 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17510 else 17511 ld_shlibs_GCJ=no 17512 fi 17513 ;; 17514 esac 17515 17516 if test "$ld_shlibs_GCJ" = no; then 17517 runpath_var= 17518 hardcode_libdir_flag_spec_GCJ= 17519 export_dynamic_flag_spec_GCJ= 17520 whole_archive_flag_spec_GCJ= 17521 fi 17522 else 17523 # PORTME fill in a description of your system's linker (not GNU ld) 17524 case $host_os in 17525 aix3*) 17526 allow_undefined_flag_GCJ=unsupported 17527 always_export_symbols_GCJ=yes 17528 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 17529 # Note: this linker hardcodes the directories in LIBPATH if there 17530 # are no directories specified by -L. 17531 hardcode_minus_L_GCJ=yes 17532 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17533 # Neither direct hardcoding nor static linking is supported with a 17534 # broken collect2. 17535 hardcode_direct_GCJ=unsupported 17536 fi 17537 ;; 17538 17539 aix[4-9]*) 17540 if test "$host_cpu" = ia64; then 17541 # On IA64, the linker does run time linking by default, so we don't 17542 # have to do anything special. 17543 aix_use_runtimelinking=no 17544 exp_sym_flag='-Bexport' 17545 no_entry_flag="" 17546 else 17547 # If we're using GNU nm, then we don't want the "-C" option. 17548 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17549 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17550 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17551 else 17552 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 17553 fi 17554 aix_use_runtimelinking=no 17555 17556 # Test if we are trying to use run time linking or normal 17557 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17558 # need to do runtime linking. 17559 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17560 for ld_flag in $LDFLAGS; do 17561 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17562 aix_use_runtimelinking=yes 17563 break 17564 fi 17565 done 17566 ;; 17567 esac 17568 17569 exp_sym_flag='-bexport' 17570 no_entry_flag='-bnoentry' 17571 fi 17572 17573 # When large executables or shared objects are built, AIX ld can 17574 # have problems creating the table of contents. If linking a library 17575 # or program results in "error TOC overflow" add -mminimal-toc to 17576 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17577 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17578 17579 archive_cmds_GCJ='' 17580 hardcode_direct_GCJ=yes 17581 hardcode_libdir_separator_GCJ=':' 17582 link_all_deplibs_GCJ=yes 17583 17584 if test "$GCC" = yes; then 17585 case $host_os in aix4.[012]|aix4.[012].*) 17586 # We only want to do this on AIX 4.2 and lower, the check 17587 # below for broken collect2 doesn't work under 4.3+ 17588 collect2name=`${CC} -print-prog-name=collect2` 17589 if test -f "$collect2name" && \ 17590 strings "$collect2name" | grep resolve_lib_name >/dev/null 17591 then 17592 # We have reworked collect2 17593 : 17594 else 17595 # We have old collect2 17596 hardcode_direct_GCJ=unsupported 17597 # It fails to find uninstalled libraries when the uninstalled 17598 # path is not listed in the libpath. Setting hardcode_minus_L 17599 # to unsupported forces relinking 17600 hardcode_minus_L_GCJ=yes 17601 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17602 hardcode_libdir_separator_GCJ= 17603 fi 17604 ;; 17605 esac 17606 shared_flag='-shared' 17607 if test "$aix_use_runtimelinking" = yes; then 17608 shared_flag="$shared_flag "'${wl}-G' 17609 fi 17610 else 17611 # not using gcc 17612 if test "$host_cpu" = ia64; then 17613 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17614 # chokes on -Wl,-G. The following line is correct: 17615 shared_flag='-G' 17616 else 17617 if test "$aix_use_runtimelinking" = yes; then 17618 shared_flag='${wl}-G' 17619 else 17620 shared_flag='${wl}-bM:SRE' 17621 fi 17622 fi 17623 fi 17624 17625 # It seems that -bexpall does not export symbols beginning with 17626 # underscore (_), so it is better to generate a list of symbols to export. 17627 always_export_symbols_GCJ=yes 17628 if test "$aix_use_runtimelinking" = yes; then 17629 # Warning - without using the other runtime loading flags (-brtl), 17630 # -berok will link without error, but may produce a broken library. 17631 allow_undefined_flag_GCJ='-berok' 17632 # Determine the default libpath from the value encoded in an empty executable. 17633 cat >conftest.$ac_ext <<_ACEOF 17634/* confdefs.h. */ 17635_ACEOF 17636cat confdefs.h >>conftest.$ac_ext 17637cat >>conftest.$ac_ext <<_ACEOF 17638/* end confdefs.h. */ 17639 17640int 17641main () 17642{ 17643 17644 ; 17645 return 0; 17646} 17647_ACEOF 17648rm -f conftest.$ac_objext conftest$ac_exeext 17649if { (ac_try="$ac_link" 17650case "(($ac_try" in 17651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17652 *) ac_try_echo=$ac_try;; 17653esac 17654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17655 (eval "$ac_link") 2>conftest.er1 17656 ac_status=$? 17657 grep -v '^ *+' conftest.er1 >conftest.err 17658 rm -f conftest.er1 17659 cat conftest.err >&5 17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17661 (exit $ac_status); } && { 17662 test -z "$ac_c_werror_flag" || 17663 test ! -s conftest.err 17664 } && test -s conftest$ac_exeext && 17665 $as_test_x conftest$ac_exeext; then 17666 17667lt_aix_libpath_sed=' 17668 /Import File Strings/,/^$/ { 17669 /^0/ { 17670 s/^0 *\(.*\)$/\1/ 17671 p 17672 } 17673 }' 17674aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17675# Check for a 64-bit object if we didn't find anything. 17676if test -z "$aix_libpath"; then 17677 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17678fi 17679else 17680 echo "$as_me: failed program was:" >&5 17681sed 's/^/| /' conftest.$ac_ext >&5 17682 17683 17684fi 17685 17686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17687 conftest$ac_exeext conftest.$ac_ext 17688if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17689 17690 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17691 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 17692 else 17693 if test "$host_cpu" = ia64; then 17694 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17695 allow_undefined_flag_GCJ="-z nodefs" 17696 archive_expsym_cmds_GCJ="\$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" 17697 else 17698 # Determine the default libpath from the value encoded in an empty executable. 17699 cat >conftest.$ac_ext <<_ACEOF 17700/* confdefs.h. */ 17701_ACEOF 17702cat confdefs.h >>conftest.$ac_ext 17703cat >>conftest.$ac_ext <<_ACEOF 17704/* end confdefs.h. */ 17705 17706int 17707main () 17708{ 17709 17710 ; 17711 return 0; 17712} 17713_ACEOF 17714rm -f conftest.$ac_objext conftest$ac_exeext 17715if { (ac_try="$ac_link" 17716case "(($ac_try" in 17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17718 *) ac_try_echo=$ac_try;; 17719esac 17720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17721 (eval "$ac_link") 2>conftest.er1 17722 ac_status=$? 17723 grep -v '^ *+' conftest.er1 >conftest.err 17724 rm -f conftest.er1 17725 cat conftest.err >&5 17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17727 (exit $ac_status); } && { 17728 test -z "$ac_c_werror_flag" || 17729 test ! -s conftest.err 17730 } && test -s conftest$ac_exeext && 17731 $as_test_x conftest$ac_exeext; then 17732 17733lt_aix_libpath_sed=' 17734 /Import File Strings/,/^$/ { 17735 /^0/ { 17736 s/^0 *\(.*\)$/\1/ 17737 p 17738 } 17739 }' 17740aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17741# Check for a 64-bit object if we didn't find anything. 17742if test -z "$aix_libpath"; then 17743 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17744fi 17745else 17746 echo "$as_me: failed program was:" >&5 17747sed 's/^/| /' conftest.$ac_ext >&5 17748 17749 17750fi 17751 17752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17753 conftest$ac_exeext conftest.$ac_ext 17754if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17755 17756 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17757 # Warning - without using the other run time loading flags, 17758 # -berok will link without error, but may produce a broken library. 17759 no_undefined_flag_GCJ=' ${wl}-bernotok' 17760 allow_undefined_flag_GCJ=' ${wl}-berok' 17761 # Exported symbols can be pulled into shared objects from archives 17762 whole_archive_flag_spec_GCJ='$convenience' 17763 archive_cmds_need_lc_GCJ=yes 17764 # This is similar to how AIX traditionally builds its shared libraries. 17765 archive_expsym_cmds_GCJ="\$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' 17766 fi 17767 fi 17768 ;; 17769 17770 amigaos*) 17771 archive_cmds_GCJ='$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)' 17772 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17773 hardcode_minus_L_GCJ=yes 17774 # see comment about different semantics on the GNU ld section 17775 ld_shlibs_GCJ=no 17776 ;; 17777 17778 bsdi[45]*) 17779 export_dynamic_flag_spec_GCJ=-rdynamic 17780 ;; 17781 17782 cygwin* | mingw* | pw32*) 17783 # When not using gcc, we currently assume that we are using 17784 # Microsoft Visual C++. 17785 # hardcode_libdir_flag_spec is actually meaningless, as there is 17786 # no search path for DLLs. 17787 hardcode_libdir_flag_spec_GCJ=' ' 17788 allow_undefined_flag_GCJ=unsupported 17789 # Tell ltmain to make .lib files, not .a files. 17790 libext=lib 17791 # Tell ltmain to make .dll files, not .so files. 17792 shrext_cmds=".dll" 17793 # FIXME: Setting linknames here is a bad hack. 17794 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17795 # The linker will automatically build a .lib file if we build a DLL. 17796 old_archive_From_new_cmds_GCJ='true' 17797 # FIXME: Should let the user specify the lib program. 17798 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17799 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17800 enable_shared_with_static_runtimes_GCJ=yes 17801 ;; 17802 17803 darwin* | rhapsody*) 17804 case $host_os in 17805 rhapsody* | darwin1.[012]) 17806 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17807 ;; 17808 *) # Darwin 1.3 on 17809 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17810 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17811 else 17812 case ${MACOSX_DEPLOYMENT_TARGET} in 17813 10.[012]) 17814 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17815 ;; 17816 10.*) 17817 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17818 ;; 17819 esac 17820 fi 17821 ;; 17822 esac 17823 archive_cmds_need_lc_GCJ=no 17824 hardcode_direct_GCJ=no 17825 hardcode_automatic_GCJ=yes 17826 hardcode_shlibpath_var_GCJ=unsupported 17827 whole_archive_flag_spec_GCJ='' 17828 link_all_deplibs_GCJ=yes 17829 if test "$GCC" = yes ; then 17830 output_verbose_link_cmd='echo' 17831 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 17832 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 17833 archive_expsym_cmds_GCJ="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}" 17834 module_expsym_cmds_GCJ="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}" 17835 else 17836 case $cc_basename in 17837 xlc*) 17838 output_verbose_link_cmd='echo' 17839 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17840 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17841 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17842 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17843 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17844 ;; 17845 *) 17846 ld_shlibs_GCJ=no 17847 ;; 17848 esac 17849 fi 17850 ;; 17851 17852 dgux*) 17853 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17854 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17855 hardcode_shlibpath_var_GCJ=no 17856 ;; 17857 17858 freebsd1*) 17859 ld_shlibs_GCJ=no 17860 ;; 17861 17862 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17863 # support. Future versions do this automatically, but an explicit c++rt0.o 17864 # does not break anything, and helps significantly (at the cost of a little 17865 # extra space). 17866 freebsd2.2*) 17867 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17868 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17869 hardcode_direct_GCJ=yes 17870 hardcode_shlibpath_var_GCJ=no 17871 ;; 17872 17873 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17874 freebsd2*) 17875 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17876 hardcode_direct_GCJ=yes 17877 hardcode_minus_L_GCJ=yes 17878 hardcode_shlibpath_var_GCJ=no 17879 ;; 17880 17881 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17882 freebsd* | dragonfly*) 17883 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17884 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17885 hardcode_direct_GCJ=yes 17886 hardcode_shlibpath_var_GCJ=no 17887 ;; 17888 17889 hpux9*) 17890 if test "$GCC" = yes; then 17891 archive_cmds_GCJ='$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' 17892 else 17893 archive_cmds_GCJ='$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' 17894 fi 17895 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17896 hardcode_libdir_separator_GCJ=: 17897 hardcode_direct_GCJ=yes 17898 17899 # hardcode_minus_L: Not really in the search PATH, 17900 # but as the default location of the library. 17901 hardcode_minus_L_GCJ=yes 17902 export_dynamic_flag_spec_GCJ='${wl}-E' 17903 ;; 17904 17905 hpux10*) 17906 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17907 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17908 else 17909 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17910 fi 17911 if test "$with_gnu_ld" = no; then 17912 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17913 hardcode_libdir_separator_GCJ=: 17914 17915 hardcode_direct_GCJ=yes 17916 export_dynamic_flag_spec_GCJ='${wl}-E' 17917 17918 # hardcode_minus_L: Not really in the search PATH, 17919 # but as the default location of the library. 17920 hardcode_minus_L_GCJ=yes 17921 fi 17922 ;; 17923 17924 hpux11*) 17925 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17926 case $host_cpu in 17927 hppa*64*) 17928 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17929 ;; 17930 ia64*) 17931 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17932 ;; 17933 *) 17934 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17935 ;; 17936 esac 17937 else 17938 case $host_cpu in 17939 hppa*64*) 17940 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17941 ;; 17942 ia64*) 17943 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17944 ;; 17945 *) 17946 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17947 ;; 17948 esac 17949 fi 17950 if test "$with_gnu_ld" = no; then 17951 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17952 hardcode_libdir_separator_GCJ=: 17953 17954 case $host_cpu in 17955 hppa*64*|ia64*) 17956 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17957 hardcode_direct_GCJ=no 17958 hardcode_shlibpath_var_GCJ=no 17959 ;; 17960 *) 17961 hardcode_direct_GCJ=yes 17962 export_dynamic_flag_spec_GCJ='${wl}-E' 17963 17964 # hardcode_minus_L: Not really in the search PATH, 17965 # but as the default location of the library. 17966 hardcode_minus_L_GCJ=yes 17967 ;; 17968 esac 17969 fi 17970 ;; 17971 17972 irix5* | irix6* | nonstopux*) 17973 if test "$GCC" = yes; then 17974 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17975 else 17976 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17977 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17978 fi 17979 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17980 hardcode_libdir_separator_GCJ=: 17981 link_all_deplibs_GCJ=yes 17982 ;; 17983 17984 netbsd* | netbsdelf*-gnu) 17985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17986 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17987 else 17988 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17989 fi 17990 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17991 hardcode_direct_GCJ=yes 17992 hardcode_shlibpath_var_GCJ=no 17993 ;; 17994 17995 newsos6) 17996 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17997 hardcode_direct_GCJ=yes 17998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17999 hardcode_libdir_separator_GCJ=: 18000 hardcode_shlibpath_var_GCJ=no 18001 ;; 18002 18003 openbsd*) 18004 if test -f /usr/libexec/ld.so; then 18005 hardcode_direct_GCJ=yes 18006 hardcode_shlibpath_var_GCJ=no 18007 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18008 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18009 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 18010 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18011 export_dynamic_flag_spec_GCJ='${wl}-E' 18012 else 18013 case $host_os in 18014 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 18015 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 18016 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18017 ;; 18018 *) 18019 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 18020 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 18021 ;; 18022 esac 18023 fi 18024 else 18025 ld_shlibs_GCJ=no 18026 fi 18027 ;; 18028 18029 os2*) 18030 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18031 hardcode_minus_L_GCJ=yes 18032 allow_undefined_flag_GCJ=unsupported 18033 archive_cmds_GCJ='$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' 18034 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 18035 ;; 18036 18037 osf3*) 18038 if test "$GCC" = yes; then 18039 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18040 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18041 else 18042 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18043 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18044 fi 18045 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18046 hardcode_libdir_separator_GCJ=: 18047 ;; 18048 18049 osf4* | osf5*) # as osf3* with the addition of -msym flag 18050 if test "$GCC" = yes; then 18051 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 18052 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 18053 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 18054 else 18055 allow_undefined_flag_GCJ=' -expect_unresolved \*' 18056 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 18057 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 18058 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 18059 18060 # Both c and cxx compiler support -rpath directly 18061 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 18062 fi 18063 hardcode_libdir_separator_GCJ=: 18064 ;; 18065 18066 solaris*) 18067 no_undefined_flag_GCJ=' -z text' 18068 if test "$GCC" = yes; then 18069 wlarc='${wl}' 18070 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 18071 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18072 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 18073 else 18074 wlarc='' 18075 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 18076 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 18077 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 18078 fi 18079 hardcode_libdir_flag_spec_GCJ='-R$libdir' 18080 hardcode_shlibpath_var_GCJ=no 18081 case $host_os in 18082 solaris2.[0-5] | solaris2.[0-5].*) ;; 18083 *) 18084 # The compiler driver will combine and reorder linker options, 18085 # but understands `-z linker_flag'. GCC discards it without `$wl', 18086 # but is careful enough not to reorder. 18087 # Supported since Solaris 2.6 (maybe 2.5.1?) 18088 if test "$GCC" = yes; then 18089 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 18090 else 18091 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 18092 fi 18093 ;; 18094 esac 18095 link_all_deplibs_GCJ=yes 18096 ;; 18097 18098 sunos4*) 18099 if test "x$host_vendor" = xsequent; then 18100 # Use $CC to link under sequent, because it throws in some extra .o 18101 # files that make .init and .fini sections work. 18102 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 18103 else 18104 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 18105 fi 18106 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18107 hardcode_direct_GCJ=yes 18108 hardcode_minus_L_GCJ=yes 18109 hardcode_shlibpath_var_GCJ=no 18110 ;; 18111 18112 sysv4) 18113 case $host_vendor in 18114 sni) 18115 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18116 hardcode_direct_GCJ=yes # is this really true??? 18117 ;; 18118 siemens) 18119 ## LD is ld it makes a PLAMLIB 18120 ## CC just makes a GrossModule. 18121 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18122 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18123 hardcode_direct_GCJ=no 18124 ;; 18125 motorola) 18126 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18127 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18128 ;; 18129 esac 18130 runpath_var='LD_RUN_PATH' 18131 hardcode_shlibpath_var_GCJ=no 18132 ;; 18133 18134 sysv4.3*) 18135 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18136 hardcode_shlibpath_var_GCJ=no 18137 export_dynamic_flag_spec_GCJ='-Bexport' 18138 ;; 18139 18140 sysv4*MP*) 18141 if test -d /usr/nec; then 18142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18143 hardcode_shlibpath_var_GCJ=no 18144 runpath_var=LD_RUN_PATH 18145 hardcode_runpath_var=yes 18146 ld_shlibs_GCJ=yes 18147 fi 18148 ;; 18149 18150 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 18151 no_undefined_flag_GCJ='${wl}-z,text' 18152 archive_cmds_need_lc_GCJ=no 18153 hardcode_shlibpath_var_GCJ=no 18154 runpath_var='LD_RUN_PATH' 18155 18156 if test "$GCC" = yes; then 18157 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18158 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18159 else 18160 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18161 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18162 fi 18163 ;; 18164 18165 sysv5* | sco3.2v5* | sco5v6*) 18166 # Note: We can NOT use -z defs as we might desire, because we do not 18167 # link with -lc, and that would cause any symbols used from libc to 18168 # always be unresolved, which means just about no library would 18169 # ever link correctly. If we're not using GNU ld we use -z text 18170 # though, which does catch some bad symbols but isn't as heavy-handed 18171 # as -z defs. 18172 no_undefined_flag_GCJ='${wl}-z,text' 18173 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18174 archive_cmds_need_lc_GCJ=no 18175 hardcode_shlibpath_var_GCJ=no 18176 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18177 hardcode_libdir_separator_GCJ=':' 18178 link_all_deplibs_GCJ=yes 18179 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18180 runpath_var='LD_RUN_PATH' 18181 18182 if test "$GCC" = yes; then 18183 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18184 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18185 else 18186 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18187 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18188 fi 18189 ;; 18190 18191 uts4*) 18192 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18193 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18194 hardcode_shlibpath_var_GCJ=no 18195 ;; 18196 18197 *) 18198 ld_shlibs_GCJ=no 18199 ;; 18200 esac 18201 fi 18202 18203{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18204echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18205test "$ld_shlibs_GCJ" = no && can_build_shared=no 18206 18207# 18208# Do we need to explicitly link libc? 18209# 18210case "x$archive_cmds_need_lc_GCJ" in 18211x|xyes) 18212 # Assume -lc should be added 18213 archive_cmds_need_lc_GCJ=yes 18214 18215 if test "$enable_shared" = yes && test "$GCC" = yes; then 18216 case $archive_cmds_GCJ in 18217 *'~'*) 18218 # FIXME: we may have to deal with multi-command sequences. 18219 ;; 18220 '$CC '*) 18221 # Test whether the compiler implicitly links with -lc since on some 18222 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18223 # to ld, don't add -lc before -lgcc. 18224 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18225echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18226 $rm conftest* 18227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 18228 18229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18230 (eval $ac_compile) 2>&5 18231 ac_status=$? 18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18233 (exit $ac_status); } 2>conftest.err; then 18234 soname=conftest 18235 lib=conftest 18236 libobjs=conftest.$ac_objext 18237 deplibs= 18238 wl=$lt_prog_compiler_wl_GCJ 18239 pic_flag=$lt_prog_compiler_pic_GCJ 18240 compiler_flags=-v 18241 linker_flags=-v 18242 verstring= 18243 output_objdir=. 18244 libname=conftest 18245 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18246 allow_undefined_flag_GCJ= 18247 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18248 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18249 ac_status=$? 18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18251 (exit $ac_status); } 18252 then 18253 archive_cmds_need_lc_GCJ=no 18254 else 18255 archive_cmds_need_lc_GCJ=yes 18256 fi 18257 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18258 else 18259 cat conftest.err 1>&5 18260 fi 18261 $rm conftest* 18262 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18263echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18264 ;; 18265 esac 18266 fi 18267 ;; 18268esac 18269 18270{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18271echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18272library_names_spec= 18273libname_spec='lib$name' 18274soname_spec= 18275shrext_cmds=".so" 18276postinstall_cmds= 18277postuninstall_cmds= 18278finish_cmds= 18279finish_eval= 18280shlibpath_var= 18281shlibpath_overrides_runpath=unknown 18282version_type=none 18283dynamic_linker="$host_os ld.so" 18284sys_lib_dlsearch_path_spec="/lib /usr/lib" 18285 18286need_lib_prefix=unknown 18287hardcode_into_libs=no 18288 18289# when you set need_version to no, make sure it does not cause -set_version 18290# flags to be left without arguments 18291need_version=unknown 18292 18293case $host_os in 18294aix3*) 18295 version_type=linux 18296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18297 shlibpath_var=LIBPATH 18298 18299 # AIX 3 has no versioning support, so we append a major version to the name. 18300 soname_spec='${libname}${release}${shared_ext}$major' 18301 ;; 18302 18303aix[4-9]*) 18304 version_type=linux 18305 need_lib_prefix=no 18306 need_version=no 18307 hardcode_into_libs=yes 18308 if test "$host_cpu" = ia64; then 18309 # AIX 5 supports IA64 18310 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18311 shlibpath_var=LD_LIBRARY_PATH 18312 else 18313 # With GCC up to 2.95.x, collect2 would create an import file 18314 # for dependence libraries. The import file would start with 18315 # the line `#! .'. This would cause the generated library to 18316 # depend on `.', always an invalid library. This was fixed in 18317 # development snapshots of GCC prior to 3.0. 18318 case $host_os in 18319 aix4 | aix4.[01] | aix4.[01].*) 18320 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18321 echo ' yes ' 18322 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18323 : 18324 else 18325 can_build_shared=no 18326 fi 18327 ;; 18328 esac 18329 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18330 # soname into executable. Probably we can add versioning support to 18331 # collect2, so additional links can be useful in future. 18332 if test "$aix_use_runtimelinking" = yes; then 18333 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18334 # instead of lib<name>.a to let people know that these are not 18335 # typical AIX shared libraries. 18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18337 else 18338 # We preserve .a as extension for shared libraries through AIX4.2 18339 # and later when we are not doing run time linking. 18340 library_names_spec='${libname}${release}.a $libname.a' 18341 soname_spec='${libname}${release}${shared_ext}$major' 18342 fi 18343 shlibpath_var=LIBPATH 18344 fi 18345 ;; 18346 18347amigaos*) 18348 library_names_spec='$libname.ixlibrary $libname.a' 18349 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18350 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' 18351 ;; 18352 18353beos*) 18354 library_names_spec='${libname}${shared_ext}' 18355 dynamic_linker="$host_os ld.so" 18356 shlibpath_var=LIBRARY_PATH 18357 ;; 18358 18359bsdi[45]*) 18360 version_type=linux 18361 need_version=no 18362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18363 soname_spec='${libname}${release}${shared_ext}$major' 18364 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18365 shlibpath_var=LD_LIBRARY_PATH 18366 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18367 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18368 # the default ld.so.conf also contains /usr/contrib/lib and 18369 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18370 # libtool to hard-code these into programs 18371 ;; 18372 18373cygwin* | mingw* | pw32*) 18374 version_type=windows 18375 shrext_cmds=".dll" 18376 need_version=no 18377 need_lib_prefix=no 18378 18379 case $GCC,$host_os in 18380 yes,cygwin* | yes,mingw* | yes,pw32*) 18381 library_names_spec='$libname.dll.a' 18382 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18383 postinstall_cmds='base_file=`basename \${file}`~ 18384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18385 dldir=$destdir/`dirname \$dlpath`~ 18386 test -d \$dldir || mkdir -p \$dldir~ 18387 $install_prog $dir/$dlname \$dldir/$dlname~ 18388 chmod a+x \$dldir/$dlname' 18389 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18390 dlpath=$dir/\$dldll~ 18391 $rm \$dlpath' 18392 shlibpath_overrides_runpath=yes 18393 18394 case $host_os in 18395 cygwin*) 18396 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18397 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18398 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18399 ;; 18400 mingw*) 18401 # MinGW DLLs use traditional 'lib' prefix 18402 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18403 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18404 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18405 # It is most probably a Windows format PATH printed by 18406 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18407 # path with ; separators, and with drive letters. We can handle the 18408 # drive letters (cygwin fileutils understands them), so leave them, 18409 # especially as we might pass files found there to a mingw objdump, 18410 # which wouldn't understand a cygwinified path. Ahh. 18411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18412 else 18413 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18414 fi 18415 ;; 18416 pw32*) 18417 # pw32 DLLs use 'pw' prefix rather than 'lib' 18418 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18419 ;; 18420 esac 18421 ;; 18422 18423 *) 18424 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18425 ;; 18426 esac 18427 dynamic_linker='Win32 ld.exe' 18428 # FIXME: first we should search . and the directory the executable is in 18429 shlibpath_var=PATH 18430 ;; 18431 18432darwin* | rhapsody*) 18433 dynamic_linker="$host_os dyld" 18434 version_type=darwin 18435 need_lib_prefix=no 18436 need_version=no 18437 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18438 soname_spec='${libname}${release}${major}$shared_ext' 18439 shlibpath_overrides_runpath=yes 18440 shlibpath_var=DYLD_LIBRARY_PATH 18441 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18442 18443 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18444 ;; 18445 18446dgux*) 18447 version_type=linux 18448 need_lib_prefix=no 18449 need_version=no 18450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18451 soname_spec='${libname}${release}${shared_ext}$major' 18452 shlibpath_var=LD_LIBRARY_PATH 18453 ;; 18454 18455freebsd1*) 18456 dynamic_linker=no 18457 ;; 18458 18459freebsd* | dragonfly*) 18460 # DragonFly does not have aout. When/if they implement a new 18461 # versioning mechanism, adjust this. 18462 if test -x /usr/bin/objformat; then 18463 objformat=`/usr/bin/objformat` 18464 else 18465 case $host_os in 18466 freebsd[123]*) objformat=aout ;; 18467 *) objformat=elf ;; 18468 esac 18469 fi 18470 version_type=freebsd-$objformat 18471 case $version_type in 18472 freebsd-elf*) 18473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18474 need_version=no 18475 need_lib_prefix=no 18476 ;; 18477 freebsd-*) 18478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18479 need_version=yes 18480 ;; 18481 esac 18482 shlibpath_var=LD_LIBRARY_PATH 18483 case $host_os in 18484 freebsd2*) 18485 shlibpath_overrides_runpath=yes 18486 ;; 18487 freebsd3.[01]* | freebsdelf3.[01]*) 18488 shlibpath_overrides_runpath=yes 18489 hardcode_into_libs=yes 18490 ;; 18491 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18492 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18493 shlibpath_overrides_runpath=no 18494 hardcode_into_libs=yes 18495 ;; 18496 *) # from 4.6 on, and DragonFly 18497 shlibpath_overrides_runpath=yes 18498 hardcode_into_libs=yes 18499 ;; 18500 esac 18501 ;; 18502 18503gnu*) 18504 version_type=linux 18505 need_lib_prefix=no 18506 need_version=no 18507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18508 soname_spec='${libname}${release}${shared_ext}$major' 18509 shlibpath_var=LD_LIBRARY_PATH 18510 hardcode_into_libs=yes 18511 ;; 18512 18513hpux9* | hpux10* | hpux11*) 18514 # Give a soname corresponding to the major version so that dld.sl refuses to 18515 # link against other versions. 18516 version_type=sunos 18517 need_lib_prefix=no 18518 need_version=no 18519 case $host_cpu in 18520 ia64*) 18521 shrext_cmds='.so' 18522 hardcode_into_libs=yes 18523 dynamic_linker="$host_os dld.so" 18524 shlibpath_var=LD_LIBRARY_PATH 18525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18527 soname_spec='${libname}${release}${shared_ext}$major' 18528 if test "X$HPUX_IA64_MODE" = X32; then 18529 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18530 else 18531 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18532 fi 18533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18534 ;; 18535 hppa*64*) 18536 shrext_cmds='.sl' 18537 hardcode_into_libs=yes 18538 dynamic_linker="$host_os dld.sl" 18539 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18542 soname_spec='${libname}${release}${shared_ext}$major' 18543 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18545 ;; 18546 *) 18547 shrext_cmds='.sl' 18548 dynamic_linker="$host_os dld.sl" 18549 shlibpath_var=SHLIB_PATH 18550 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18552 soname_spec='${libname}${release}${shared_ext}$major' 18553 ;; 18554 esac 18555 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18556 postinstall_cmds='chmod 555 $lib' 18557 ;; 18558 18559interix[3-9]*) 18560 version_type=linux 18561 need_lib_prefix=no 18562 need_version=no 18563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18564 soname_spec='${libname}${release}${shared_ext}$major' 18565 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18566 shlibpath_var=LD_LIBRARY_PATH 18567 shlibpath_overrides_runpath=no 18568 hardcode_into_libs=yes 18569 ;; 18570 18571irix5* | irix6* | nonstopux*) 18572 case $host_os in 18573 nonstopux*) version_type=nonstopux ;; 18574 *) 18575 if test "$lt_cv_prog_gnu_ld" = yes; then 18576 version_type=linux 18577 else 18578 version_type=irix 18579 fi ;; 18580 esac 18581 need_lib_prefix=no 18582 need_version=no 18583 soname_spec='${libname}${release}${shared_ext}$major' 18584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18585 case $host_os in 18586 irix5* | nonstopux*) 18587 libsuff= shlibsuff= 18588 ;; 18589 *) 18590 case $LD in # libtool.m4 will add one of these switches to LD 18591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18592 libsuff= shlibsuff= libmagic=32-bit;; 18593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18594 libsuff=32 shlibsuff=N32 libmagic=N32;; 18595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18596 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18597 *) libsuff= shlibsuff= libmagic=never-match;; 18598 esac 18599 ;; 18600 esac 18601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18602 shlibpath_overrides_runpath=no 18603 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18604 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18605 hardcode_into_libs=yes 18606 ;; 18607 18608# No shared lib support for Linux oldld, aout, or coff. 18609linux*oldld* | linux*aout* | linux*coff*) 18610 dynamic_linker=no 18611 ;; 18612 18613# This must be Linux ELF. 18614linux* | k*bsd*-gnu) 18615 version_type=linux 18616 need_lib_prefix=no 18617 need_version=no 18618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18619 soname_spec='${libname}${release}${shared_ext}$major' 18620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18621 shlibpath_var=LD_LIBRARY_PATH 18622 shlibpath_overrides_runpath=no 18623 # This implies no fast_install, which is unacceptable. 18624 # Some rework will be needed to allow for fast_install 18625 # before this can be enabled. 18626 hardcode_into_libs=yes 18627 18628 # Append ld.so.conf contents to the search path 18629 if test -f /etc/ld.so.conf; then 18630 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' ' '` 18631 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18632 fi 18633 18634 # We used to test for /lib/ld.so.1 and disable shared libraries on 18635 # powerpc, because MkLinux only supported shared libraries with the 18636 # GNU dynamic linker. Since this was broken with cross compilers, 18637 # most powerpc-linux boxes support dynamic linking these days and 18638 # people can always --disable-shared, the test was removed, and we 18639 # assume the GNU/Linux dynamic linker is in use. 18640 dynamic_linker='GNU/Linux ld.so' 18641 ;; 18642 18643netbsdelf*-gnu) 18644 version_type=linux 18645 need_lib_prefix=no 18646 need_version=no 18647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18648 soname_spec='${libname}${release}${shared_ext}$major' 18649 shlibpath_var=LD_LIBRARY_PATH 18650 shlibpath_overrides_runpath=no 18651 hardcode_into_libs=yes 18652 dynamic_linker='NetBSD ld.elf_so' 18653 ;; 18654 18655netbsd*) 18656 version_type=sunos 18657 need_lib_prefix=no 18658 need_version=no 18659 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18662 dynamic_linker='NetBSD (a.out) ld.so' 18663 else 18664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18665 soname_spec='${libname}${release}${shared_ext}$major' 18666 dynamic_linker='NetBSD ld.elf_so' 18667 fi 18668 shlibpath_var=LD_LIBRARY_PATH 18669 shlibpath_overrides_runpath=yes 18670 hardcode_into_libs=yes 18671 ;; 18672 18673newsos6) 18674 version_type=linux 18675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18676 shlibpath_var=LD_LIBRARY_PATH 18677 shlibpath_overrides_runpath=yes 18678 ;; 18679 18680nto-qnx*) 18681 version_type=linux 18682 need_lib_prefix=no 18683 need_version=no 18684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18685 soname_spec='${libname}${release}${shared_ext}$major' 18686 shlibpath_var=LD_LIBRARY_PATH 18687 shlibpath_overrides_runpath=yes 18688 ;; 18689 18690openbsd*) 18691 version_type=sunos 18692 sys_lib_dlsearch_path_spec="/usr/lib" 18693 need_lib_prefix=no 18694 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18695 case $host_os in 18696 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18697 *) need_version=no ;; 18698 esac 18699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18701 shlibpath_var=LD_LIBRARY_PATH 18702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18703 case $host_os in 18704 openbsd2.[89] | openbsd2.[89].*) 18705 shlibpath_overrides_runpath=no 18706 ;; 18707 *) 18708 shlibpath_overrides_runpath=yes 18709 ;; 18710 esac 18711 else 18712 shlibpath_overrides_runpath=yes 18713 fi 18714 ;; 18715 18716os2*) 18717 libname_spec='$name' 18718 shrext_cmds=".dll" 18719 need_lib_prefix=no 18720 library_names_spec='$libname${shared_ext} $libname.a' 18721 dynamic_linker='OS/2 ld.exe' 18722 shlibpath_var=LIBPATH 18723 ;; 18724 18725osf3* | osf4* | osf5*) 18726 version_type=osf 18727 need_lib_prefix=no 18728 need_version=no 18729 soname_spec='${libname}${release}${shared_ext}$major' 18730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18731 shlibpath_var=LD_LIBRARY_PATH 18732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18734 ;; 18735 18736rdos*) 18737 dynamic_linker=no 18738 ;; 18739 18740solaris*) 18741 version_type=linux 18742 need_lib_prefix=no 18743 need_version=no 18744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18745 soname_spec='${libname}${release}${shared_ext}$major' 18746 shlibpath_var=LD_LIBRARY_PATH 18747 shlibpath_overrides_runpath=yes 18748 hardcode_into_libs=yes 18749 # ldd complains unless libraries are executable 18750 postinstall_cmds='chmod +x $lib' 18751 ;; 18752 18753sunos4*) 18754 version_type=sunos 18755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18757 shlibpath_var=LD_LIBRARY_PATH 18758 shlibpath_overrides_runpath=yes 18759 if test "$with_gnu_ld" = yes; then 18760 need_lib_prefix=no 18761 fi 18762 need_version=yes 18763 ;; 18764 18765sysv4 | sysv4.3*) 18766 version_type=linux 18767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18768 soname_spec='${libname}${release}${shared_ext}$major' 18769 shlibpath_var=LD_LIBRARY_PATH 18770 case $host_vendor in 18771 sni) 18772 shlibpath_overrides_runpath=no 18773 need_lib_prefix=no 18774 export_dynamic_flag_spec='${wl}-Blargedynsym' 18775 runpath_var=LD_RUN_PATH 18776 ;; 18777 siemens) 18778 need_lib_prefix=no 18779 ;; 18780 motorola) 18781 need_lib_prefix=no 18782 need_version=no 18783 shlibpath_overrides_runpath=no 18784 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18785 ;; 18786 esac 18787 ;; 18788 18789sysv4*MP*) 18790 if test -d /usr/nec ;then 18791 version_type=linux 18792 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18793 soname_spec='$libname${shared_ext}.$major' 18794 shlibpath_var=LD_LIBRARY_PATH 18795 fi 18796 ;; 18797 18798sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18799 version_type=freebsd-elf 18800 need_lib_prefix=no 18801 need_version=no 18802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18803 soname_spec='${libname}${release}${shared_ext}$major' 18804 shlibpath_var=LD_LIBRARY_PATH 18805 hardcode_into_libs=yes 18806 if test "$with_gnu_ld" = yes; then 18807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18808 shlibpath_overrides_runpath=no 18809 else 18810 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18811 shlibpath_overrides_runpath=yes 18812 case $host_os in 18813 sco3.2v5*) 18814 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18815 ;; 18816 esac 18817 fi 18818 sys_lib_dlsearch_path_spec='/usr/lib' 18819 ;; 18820 18821uts4*) 18822 version_type=linux 18823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18824 soname_spec='${libname}${release}${shared_ext}$major' 18825 shlibpath_var=LD_LIBRARY_PATH 18826 ;; 18827 18828*) 18829 dynamic_linker=no 18830 ;; 18831esac 18832{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18833echo "${ECHO_T}$dynamic_linker" >&6; } 18834test "$dynamic_linker" = no && can_build_shared=no 18835 18836if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 18837 echo $ECHO_N "(cached) $ECHO_C" >&6 18838else 18839 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" 18840fi 18841 18842sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 18843if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 18844 echo $ECHO_N "(cached) $ECHO_C" >&6 18845else 18846 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" 18847fi 18848 18849sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 18850 18851variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18852if test "$GCC" = yes; then 18853 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18854fi 18855 18856{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18857echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18858hardcode_action_GCJ= 18859if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18860 test -n "$runpath_var_GCJ" || \ 18861 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18862 18863 # We can hardcode non-existant directories. 18864 if test "$hardcode_direct_GCJ" != no && 18865 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18866 # have to relink, otherwise we might link with an installed library 18867 # when we should be linking with a yet-to-be-installed one 18868 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18869 test "$hardcode_minus_L_GCJ" != no; then 18870 # Linking always hardcodes the temporary library directory. 18871 hardcode_action_GCJ=relink 18872 else 18873 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18874 hardcode_action_GCJ=immediate 18875 fi 18876else 18877 # We cannot hardcode anything, or else we can only hardcode existing 18878 # directories. 18879 hardcode_action_GCJ=unsupported 18880fi 18881{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18882echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18883 18884if test "$hardcode_action_GCJ" = relink; then 18885 # Fast installation is not supported 18886 enable_fast_install=no 18887elif test "$shlibpath_overrides_runpath" = yes || 18888 test "$enable_shared" = no; then 18889 # Fast installation is not necessary 18890 enable_fast_install=needless 18891fi 18892 18893 18894# The else clause should only fire when bootstrapping the 18895# libtool distribution, otherwise you forgot to ship ltmain.sh 18896# with your package, and you will get complaints that there are 18897# no rules to generate ltmain.sh. 18898if test -f "$ltmain"; then 18899 # See if we are running on zsh, and set the options which allow our commands through 18900 # without removal of \ escapes. 18901 if test -n "${ZSH_VERSION+set}" ; then 18902 setopt NO_GLOB_SUBST 18903 fi 18904 # Now quote all the things that may contain metacharacters while being 18905 # careful not to overquote the AC_SUBSTed values. We take copies of the 18906 # variables and quote the copies for generation of the libtool script. 18907 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18908 SED SHELL STRIP \ 18909 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18910 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18911 deplibs_check_method reload_flag reload_cmds need_locks \ 18912 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18913 lt_cv_sys_global_symbol_to_c_name_address \ 18914 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18915 old_postinstall_cmds old_postuninstall_cmds \ 18916 compiler_GCJ \ 18917 CC_GCJ \ 18918 LD_GCJ \ 18919 lt_prog_compiler_wl_GCJ \ 18920 lt_prog_compiler_pic_GCJ \ 18921 lt_prog_compiler_static_GCJ \ 18922 lt_prog_compiler_no_builtin_flag_GCJ \ 18923 export_dynamic_flag_spec_GCJ \ 18924 thread_safe_flag_spec_GCJ \ 18925 whole_archive_flag_spec_GCJ \ 18926 enable_shared_with_static_runtimes_GCJ \ 18927 old_archive_cmds_GCJ \ 18928 old_archive_from_new_cmds_GCJ \ 18929 predep_objects_GCJ \ 18930 postdep_objects_GCJ \ 18931 predeps_GCJ \ 18932 postdeps_GCJ \ 18933 compiler_lib_search_path_GCJ \ 18934 compiler_lib_search_dirs_GCJ \ 18935 archive_cmds_GCJ \ 18936 archive_expsym_cmds_GCJ \ 18937 postinstall_cmds_GCJ \ 18938 postuninstall_cmds_GCJ \ 18939 old_archive_from_expsyms_cmds_GCJ \ 18940 allow_undefined_flag_GCJ \ 18941 no_undefined_flag_GCJ \ 18942 export_symbols_cmds_GCJ \ 18943 hardcode_libdir_flag_spec_GCJ \ 18944 hardcode_libdir_flag_spec_ld_GCJ \ 18945 hardcode_libdir_separator_GCJ \ 18946 hardcode_automatic_GCJ \ 18947 module_cmds_GCJ \ 18948 module_expsym_cmds_GCJ \ 18949 lt_cv_prog_compiler_c_o_GCJ \ 18950 fix_srcfile_path_GCJ \ 18951 exclude_expsyms_GCJ \ 18952 include_expsyms_GCJ; do 18953 18954 case $var in 18955 old_archive_cmds_GCJ | \ 18956 old_archive_from_new_cmds_GCJ | \ 18957 archive_cmds_GCJ | \ 18958 archive_expsym_cmds_GCJ | \ 18959 module_cmds_GCJ | \ 18960 module_expsym_cmds_GCJ | \ 18961 old_archive_from_expsyms_cmds_GCJ | \ 18962 export_symbols_cmds_GCJ | \ 18963 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18964 postinstall_cmds | postuninstall_cmds | \ 18965 old_postinstall_cmds | old_postuninstall_cmds | \ 18966 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18967 # Double-quote double-evaled strings. 18968 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18969 ;; 18970 *) 18971 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18972 ;; 18973 esac 18974 done 18975 18976 case $lt_echo in 18977 *'\$0 --fallback-echo"') 18978 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18979 ;; 18980 esac 18981 18982cfgfile="$ofile" 18983 18984 cat <<__EOF__ >> "$cfgfile" 18985# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18986 18987# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18988 18989# Shell to use when invoking shell scripts. 18990SHELL=$lt_SHELL 18991 18992# Whether or not to build shared libraries. 18993build_libtool_libs=$enable_shared 18994 18995# Whether or not to build static libraries. 18996build_old_libs=$enable_static 18997 18998# Whether or not to add -lc for building shared libraries. 18999build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19000 19001# Whether or not to disallow shared libs when runtime libs are static 19002allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19003 19004# Whether or not to optimize for fast installation. 19005fast_install=$enable_fast_install 19006 19007# The host system. 19008host_alias=$host_alias 19009host=$host 19010host_os=$host_os 19011 19012# The build system. 19013build_alias=$build_alias 19014build=$build 19015build_os=$build_os 19016 19017# An echo program that does not interpret backslashes. 19018echo=$lt_echo 19019 19020# The archiver. 19021AR=$lt_AR 19022AR_FLAGS=$lt_AR_FLAGS 19023 19024# A C compiler. 19025LTCC=$lt_LTCC 19026 19027# LTCC compiler flags. 19028LTCFLAGS=$lt_LTCFLAGS 19029 19030# A language-specific compiler. 19031CC=$lt_compiler_GCJ 19032 19033# Is the compiler the GNU C compiler? 19034with_gcc=$GCC_GCJ 19035 19036# An ERE matcher. 19037EGREP=$lt_EGREP 19038 19039# The linker used to build libraries. 19040LD=$lt_LD_GCJ 19041 19042# Whether we need hard or soft links. 19043LN_S=$lt_LN_S 19044 19045# A BSD-compatible nm program. 19046NM=$lt_NM 19047 19048# A symbol stripping program 19049STRIP=$lt_STRIP 19050 19051# Used to examine libraries when file_magic_cmd begins "file" 19052MAGIC_CMD=$MAGIC_CMD 19053 19054# Used on cygwin: DLL creation program. 19055DLLTOOL="$DLLTOOL" 19056 19057# Used on cygwin: object dumper. 19058OBJDUMP="$OBJDUMP" 19059 19060# Used on cygwin: assembler. 19061AS="$AS" 19062 19063# The name of the directory that contains temporary libtool files. 19064objdir=$objdir 19065 19066# How to create reloadable object files. 19067reload_flag=$lt_reload_flag 19068reload_cmds=$lt_reload_cmds 19069 19070# How to pass a linker flag through the compiler. 19071wl=$lt_lt_prog_compiler_wl_GCJ 19072 19073# Object file suffix (normally "o"). 19074objext="$ac_objext" 19075 19076# Old archive suffix (normally "a"). 19077libext="$libext" 19078 19079# Shared library suffix (normally ".so"). 19080shrext_cmds='$shrext_cmds' 19081 19082# Executable file suffix (normally ""). 19083exeext="$exeext" 19084 19085# Additional compiler flags for building library objects. 19086pic_flag=$lt_lt_prog_compiler_pic_GCJ 19087pic_mode=$pic_mode 19088 19089# What is the maximum length of a command? 19090max_cmd_len=$lt_cv_sys_max_cmd_len 19091 19092# Does compiler simultaneously support -c and -o options? 19093compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19094 19095# Must we lock files when doing compilation? 19096need_locks=$lt_need_locks 19097 19098# Do we need the lib prefix for modules? 19099need_lib_prefix=$need_lib_prefix 19100 19101# Do we need a version for libraries? 19102need_version=$need_version 19103 19104# Whether dlopen is supported. 19105dlopen_support=$enable_dlopen 19106 19107# Whether dlopen of programs is supported. 19108dlopen_self=$enable_dlopen_self 19109 19110# Whether dlopen of statically linked programs is supported. 19111dlopen_self_static=$enable_dlopen_self_static 19112 19113# Compiler flag to prevent dynamic linking. 19114link_static_flag=$lt_lt_prog_compiler_static_GCJ 19115 19116# Compiler flag to turn off builtin functions. 19117no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19118 19119# Compiler flag to allow reflexive dlopens. 19120export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19121 19122# Compiler flag to generate shared objects directly from archives. 19123whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19124 19125# Compiler flag to generate thread-safe objects. 19126thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19127 19128# Library versioning type. 19129version_type=$version_type 19130 19131# Format of library name prefix. 19132libname_spec=$lt_libname_spec 19133 19134# List of archive names. First name is the real one, the rest are links. 19135# The last name is the one that the linker finds with -lNAME. 19136library_names_spec=$lt_library_names_spec 19137 19138# The coded name of the library, if different from the real name. 19139soname_spec=$lt_soname_spec 19140 19141# Commands used to build and install an old-style archive. 19142RANLIB=$lt_RANLIB 19143old_archive_cmds=$lt_old_archive_cmds_GCJ 19144old_postinstall_cmds=$lt_old_postinstall_cmds 19145old_postuninstall_cmds=$lt_old_postuninstall_cmds 19146 19147# Create an old-style archive from a shared archive. 19148old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19149 19150# Create a temporary old-style archive to link instead of a shared archive. 19151old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19152 19153# Commands used to build and install a shared archive. 19154archive_cmds=$lt_archive_cmds_GCJ 19155archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19156postinstall_cmds=$lt_postinstall_cmds 19157postuninstall_cmds=$lt_postuninstall_cmds 19158 19159# Commands used to build a loadable module (assumed same as above if empty) 19160module_cmds=$lt_module_cmds_GCJ 19161module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19162 19163# Commands to strip libraries. 19164old_striplib=$lt_old_striplib 19165striplib=$lt_striplib 19166 19167# Dependencies to place before the objects being linked to create a 19168# shared library. 19169predep_objects=$lt_predep_objects_GCJ 19170 19171# Dependencies to place after the objects being linked to create a 19172# shared library. 19173postdep_objects=$lt_postdep_objects_GCJ 19174 19175# Dependencies to place before the objects being linked to create a 19176# shared library. 19177predeps=$lt_predeps_GCJ 19178 19179# Dependencies to place after the objects being linked to create a 19180# shared library. 19181postdeps=$lt_postdeps_GCJ 19182 19183# The directories searched by this compiler when creating a shared 19184# library 19185compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ 19186 19187# The library search path used internally by the compiler when linking 19188# a shared library. 19189compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19190 19191# Method to check whether dependent libraries are shared objects. 19192deplibs_check_method=$lt_deplibs_check_method 19193 19194# Command to use when deplibs_check_method == file_magic. 19195file_magic_cmd=$lt_file_magic_cmd 19196 19197# Flag that allows shared libraries with undefined symbols to be built. 19198allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19199 19200# Flag that forces no undefined symbols. 19201no_undefined_flag=$lt_no_undefined_flag_GCJ 19202 19203# Commands used to finish a libtool library installation in a directory. 19204finish_cmds=$lt_finish_cmds 19205 19206# Same as above, but a single script fragment to be evaled but not shown. 19207finish_eval=$lt_finish_eval 19208 19209# Take the output of nm and produce a listing of raw symbols and C names. 19210global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19211 19212# Transform the output of nm in a proper C declaration 19213global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19214 19215# Transform the output of nm in a C name address pair 19216global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19217 19218# This is the shared library runtime path variable. 19219runpath_var=$runpath_var 19220 19221# This is the shared library path variable. 19222shlibpath_var=$shlibpath_var 19223 19224# Is shlibpath searched before the hard-coded library search path? 19225shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19226 19227# How to hardcode a shared library path into an executable. 19228hardcode_action=$hardcode_action_GCJ 19229 19230# Whether we should hardcode library paths into libraries. 19231hardcode_into_libs=$hardcode_into_libs 19232 19233# Flag to hardcode \$libdir into a binary during linking. 19234# This must work even if \$libdir does not exist. 19235hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19236 19237# If ld is used when linking, flag to hardcode \$libdir into 19238# a binary during linking. This must work even if \$libdir does 19239# not exist. 19240hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19241 19242# Whether we need a single -rpath flag with a separated argument. 19243hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19244 19245# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19246# resulting binary. 19247hardcode_direct=$hardcode_direct_GCJ 19248 19249# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19250# resulting binary. 19251hardcode_minus_L=$hardcode_minus_L_GCJ 19252 19253# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19254# the resulting binary. 19255hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19256 19257# Set to yes if building a shared library automatically hardcodes DIR into the library 19258# and all subsequent libraries and executables linked against it. 19259hardcode_automatic=$hardcode_automatic_GCJ 19260 19261# Variables whose values should be saved in libtool wrapper scripts and 19262# restored at relink time. 19263variables_saved_for_relink="$variables_saved_for_relink" 19264 19265# Whether libtool must link a program against all its dependency libraries. 19266link_all_deplibs=$link_all_deplibs_GCJ 19267 19268# Compile-time system search path for libraries 19269sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19270 19271# Run-time system search path for libraries 19272sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19273 19274# Fix the shell variable \$srcfile for the compiler. 19275fix_srcfile_path=$lt_fix_srcfile_path 19276 19277# Set to yes if exported symbols are required. 19278always_export_symbols=$always_export_symbols_GCJ 19279 19280# The commands to list exported symbols. 19281export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19282 19283# The commands to extract the exported symbol list from a shared archive. 19284extract_expsyms_cmds=$lt_extract_expsyms_cmds 19285 19286# Symbols that should not be listed in the preloaded symbols. 19287exclude_expsyms=$lt_exclude_expsyms_GCJ 19288 19289# Symbols that must always be exported. 19290include_expsyms=$lt_include_expsyms_GCJ 19291 19292# ### END LIBTOOL TAG CONFIG: $tagname 19293 19294__EOF__ 19295 19296 19297else 19298 # If there is no Makefile yet, we rely on a make rule to execute 19299 # `config.status --recheck' to rerun these tests and create the 19300 # libtool script then. 19301 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19302 if test -f "$ltmain_in"; then 19303 test -f Makefile && make "$ltmain" 19304 fi 19305fi 19306 19307 19308ac_ext=c 19309ac_cpp='$CPP $CPPFLAGS' 19310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19312ac_compiler_gnu=$ac_cv_c_compiler_gnu 19313 19314CC="$lt_save_CC" 19315 19316 else 19317 tagname="" 19318 fi 19319 ;; 19320 19321 RC) 19322 19323 19324# Source file extension for RC test sources. 19325ac_ext=rc 19326 19327# Object file extension for compiled RC test sources. 19328objext=o 19329objext_RC=$objext 19330 19331# Code to be used in simple compile tests 19332lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 19333 19334# Code to be used in simple link tests 19335lt_simple_link_test_code="$lt_simple_compile_test_code" 19336 19337# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19338 19339# If no C compiler was specified, use CC. 19340LTCC=${LTCC-"$CC"} 19341 19342# If no C compiler flags were specified, use CFLAGS. 19343LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19344 19345# Allow CC to be a program name with arguments. 19346compiler=$CC 19347 19348 19349# save warnings/boilerplate of simple test code 19350ac_outfile=conftest.$ac_objext 19351echo "$lt_simple_compile_test_code" >conftest.$ac_ext 19352eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19353_lt_compiler_boilerplate=`cat conftest.err` 19354$rm conftest* 19355 19356ac_outfile=conftest.$ac_objext 19357echo "$lt_simple_link_test_code" >conftest.$ac_ext 19358eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19359_lt_linker_boilerplate=`cat conftest.err` 19360$rm -r conftest* 19361 19362 19363# Allow CC to be a program name with arguments. 19364lt_save_CC="$CC" 19365CC=${RC-"windres"} 19366compiler=$CC 19367compiler_RC=$CC 19368for cc_temp in $compiler""; do 19369 case $cc_temp in 19370 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19371 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19372 \-*) ;; 19373 *) break;; 19374 esac 19375done 19376cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19377 19378lt_cv_prog_compiler_c_o_RC=yes 19379 19380# The else clause should only fire when bootstrapping the 19381# libtool distribution, otherwise you forgot to ship ltmain.sh 19382# with your package, and you will get complaints that there are 19383# no rules to generate ltmain.sh. 19384if test -f "$ltmain"; then 19385 # See if we are running on zsh, and set the options which allow our commands through 19386 # without removal of \ escapes. 19387 if test -n "${ZSH_VERSION+set}" ; then 19388 setopt NO_GLOB_SUBST 19389 fi 19390 # Now quote all the things that may contain metacharacters while being 19391 # careful not to overquote the AC_SUBSTed values. We take copies of the 19392 # variables and quote the copies for generation of the libtool script. 19393 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19394 SED SHELL STRIP \ 19395 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19396 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19397 deplibs_check_method reload_flag reload_cmds need_locks \ 19398 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19399 lt_cv_sys_global_symbol_to_c_name_address \ 19400 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19401 old_postinstall_cmds old_postuninstall_cmds \ 19402 compiler_RC \ 19403 CC_RC \ 19404 LD_RC \ 19405 lt_prog_compiler_wl_RC \ 19406 lt_prog_compiler_pic_RC \ 19407 lt_prog_compiler_static_RC \ 19408 lt_prog_compiler_no_builtin_flag_RC \ 19409 export_dynamic_flag_spec_RC \ 19410 thread_safe_flag_spec_RC \ 19411 whole_archive_flag_spec_RC \ 19412 enable_shared_with_static_runtimes_RC \ 19413 old_archive_cmds_RC \ 19414 old_archive_from_new_cmds_RC \ 19415 predep_objects_RC \ 19416 postdep_objects_RC \ 19417 predeps_RC \ 19418 postdeps_RC \ 19419 compiler_lib_search_path_RC \ 19420 compiler_lib_search_dirs_RC \ 19421 archive_cmds_RC \ 19422 archive_expsym_cmds_RC \ 19423 postinstall_cmds_RC \ 19424 postuninstall_cmds_RC \ 19425 old_archive_from_expsyms_cmds_RC \ 19426 allow_undefined_flag_RC \ 19427 no_undefined_flag_RC \ 19428 export_symbols_cmds_RC \ 19429 hardcode_libdir_flag_spec_RC \ 19430 hardcode_libdir_flag_spec_ld_RC \ 19431 hardcode_libdir_separator_RC \ 19432 hardcode_automatic_RC \ 19433 module_cmds_RC \ 19434 module_expsym_cmds_RC \ 19435 lt_cv_prog_compiler_c_o_RC \ 19436 fix_srcfile_path_RC \ 19437 exclude_expsyms_RC \ 19438 include_expsyms_RC; do 19439 19440 case $var in 19441 old_archive_cmds_RC | \ 19442 old_archive_from_new_cmds_RC | \ 19443 archive_cmds_RC | \ 19444 archive_expsym_cmds_RC | \ 19445 module_cmds_RC | \ 19446 module_expsym_cmds_RC | \ 19447 old_archive_from_expsyms_cmds_RC | \ 19448 export_symbols_cmds_RC | \ 19449 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19450 postinstall_cmds | postuninstall_cmds | \ 19451 old_postinstall_cmds | old_postuninstall_cmds | \ 19452 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19453 # Double-quote double-evaled strings. 19454 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19455 ;; 19456 *) 19457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19458 ;; 19459 esac 19460 done 19461 19462 case $lt_echo in 19463 *'\$0 --fallback-echo"') 19464 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19465 ;; 19466 esac 19467 19468cfgfile="$ofile" 19469 19470 cat <<__EOF__ >> "$cfgfile" 19471# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19472 19473# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19474 19475# Shell to use when invoking shell scripts. 19476SHELL=$lt_SHELL 19477 19478# Whether or not to build shared libraries. 19479build_libtool_libs=$enable_shared 19480 19481# Whether or not to build static libraries. 19482build_old_libs=$enable_static 19483 19484# Whether or not to add -lc for building shared libraries. 19485build_libtool_need_lc=$archive_cmds_need_lc_RC 19486 19487# Whether or not to disallow shared libs when runtime libs are static 19488allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19489 19490# Whether or not to optimize for fast installation. 19491fast_install=$enable_fast_install 19492 19493# The host system. 19494host_alias=$host_alias 19495host=$host 19496host_os=$host_os 19497 19498# The build system. 19499build_alias=$build_alias 19500build=$build 19501build_os=$build_os 19502 19503# An echo program that does not interpret backslashes. 19504echo=$lt_echo 19505 19506# The archiver. 19507AR=$lt_AR 19508AR_FLAGS=$lt_AR_FLAGS 19509 19510# A C compiler. 19511LTCC=$lt_LTCC 19512 19513# LTCC compiler flags. 19514LTCFLAGS=$lt_LTCFLAGS 19515 19516# A language-specific compiler. 19517CC=$lt_compiler_RC 19518 19519# Is the compiler the GNU C compiler? 19520with_gcc=$GCC_RC 19521 19522# An ERE matcher. 19523EGREP=$lt_EGREP 19524 19525# The linker used to build libraries. 19526LD=$lt_LD_RC 19527 19528# Whether we need hard or soft links. 19529LN_S=$lt_LN_S 19530 19531# A BSD-compatible nm program. 19532NM=$lt_NM 19533 19534# A symbol stripping program 19535STRIP=$lt_STRIP 19536 19537# Used to examine libraries when file_magic_cmd begins "file" 19538MAGIC_CMD=$MAGIC_CMD 19539 19540# Used on cygwin: DLL creation program. 19541DLLTOOL="$DLLTOOL" 19542 19543# Used on cygwin: object dumper. 19544OBJDUMP="$OBJDUMP" 19545 19546# Used on cygwin: assembler. 19547AS="$AS" 19548 19549# The name of the directory that contains temporary libtool files. 19550objdir=$objdir 19551 19552# How to create reloadable object files. 19553reload_flag=$lt_reload_flag 19554reload_cmds=$lt_reload_cmds 19555 19556# How to pass a linker flag through the compiler. 19557wl=$lt_lt_prog_compiler_wl_RC 19558 19559# Object file suffix (normally "o"). 19560objext="$ac_objext" 19561 19562# Old archive suffix (normally "a"). 19563libext="$libext" 19564 19565# Shared library suffix (normally ".so"). 19566shrext_cmds='$shrext_cmds' 19567 19568# Executable file suffix (normally ""). 19569exeext="$exeext" 19570 19571# Additional compiler flags for building library objects. 19572pic_flag=$lt_lt_prog_compiler_pic_RC 19573pic_mode=$pic_mode 19574 19575# What is the maximum length of a command? 19576max_cmd_len=$lt_cv_sys_max_cmd_len 19577 19578# Does compiler simultaneously support -c and -o options? 19579compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19580 19581# Must we lock files when doing compilation? 19582need_locks=$lt_need_locks 19583 19584# Do we need the lib prefix for modules? 19585need_lib_prefix=$need_lib_prefix 19586 19587# Do we need a version for libraries? 19588need_version=$need_version 19589 19590# Whether dlopen is supported. 19591dlopen_support=$enable_dlopen 19592 19593# Whether dlopen of programs is supported. 19594dlopen_self=$enable_dlopen_self 19595 19596# Whether dlopen of statically linked programs is supported. 19597dlopen_self_static=$enable_dlopen_self_static 19598 19599# Compiler flag to prevent dynamic linking. 19600link_static_flag=$lt_lt_prog_compiler_static_RC 19601 19602# Compiler flag to turn off builtin functions. 19603no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19604 19605# Compiler flag to allow reflexive dlopens. 19606export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19607 19608# Compiler flag to generate shared objects directly from archives. 19609whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19610 19611# Compiler flag to generate thread-safe objects. 19612thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19613 19614# Library versioning type. 19615version_type=$version_type 19616 19617# Format of library name prefix. 19618libname_spec=$lt_libname_spec 19619 19620# List of archive names. First name is the real one, the rest are links. 19621# The last name is the one that the linker finds with -lNAME. 19622library_names_spec=$lt_library_names_spec 19623 19624# The coded name of the library, if different from the real name. 19625soname_spec=$lt_soname_spec 19626 19627# Commands used to build and install an old-style archive. 19628RANLIB=$lt_RANLIB 19629old_archive_cmds=$lt_old_archive_cmds_RC 19630old_postinstall_cmds=$lt_old_postinstall_cmds 19631old_postuninstall_cmds=$lt_old_postuninstall_cmds 19632 19633# Create an old-style archive from a shared archive. 19634old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19635 19636# Create a temporary old-style archive to link instead of a shared archive. 19637old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19638 19639# Commands used to build and install a shared archive. 19640archive_cmds=$lt_archive_cmds_RC 19641archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19642postinstall_cmds=$lt_postinstall_cmds 19643postuninstall_cmds=$lt_postuninstall_cmds 19644 19645# Commands used to build a loadable module (assumed same as above if empty) 19646module_cmds=$lt_module_cmds_RC 19647module_expsym_cmds=$lt_module_expsym_cmds_RC 19648 19649# Commands to strip libraries. 19650old_striplib=$lt_old_striplib 19651striplib=$lt_striplib 19652 19653# Dependencies to place before the objects being linked to create a 19654# shared library. 19655predep_objects=$lt_predep_objects_RC 19656 19657# Dependencies to place after the objects being linked to create a 19658# shared library. 19659postdep_objects=$lt_postdep_objects_RC 19660 19661# Dependencies to place before the objects being linked to create a 19662# shared library. 19663predeps=$lt_predeps_RC 19664 19665# Dependencies to place after the objects being linked to create a 19666# shared library. 19667postdeps=$lt_postdeps_RC 19668 19669# The directories searched by this compiler when creating a shared 19670# library 19671compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC 19672 19673# The library search path used internally by the compiler when linking 19674# a shared library. 19675compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19676 19677# Method to check whether dependent libraries are shared objects. 19678deplibs_check_method=$lt_deplibs_check_method 19679 19680# Command to use when deplibs_check_method == file_magic. 19681file_magic_cmd=$lt_file_magic_cmd 19682 19683# Flag that allows shared libraries with undefined symbols to be built. 19684allow_undefined_flag=$lt_allow_undefined_flag_RC 19685 19686# Flag that forces no undefined symbols. 19687no_undefined_flag=$lt_no_undefined_flag_RC 19688 19689# Commands used to finish a libtool library installation in a directory. 19690finish_cmds=$lt_finish_cmds 19691 19692# Same as above, but a single script fragment to be evaled but not shown. 19693finish_eval=$lt_finish_eval 19694 19695# Take the output of nm and produce a listing of raw symbols and C names. 19696global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19697 19698# Transform the output of nm in a proper C declaration 19699global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19700 19701# Transform the output of nm in a C name address pair 19702global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19703 19704# This is the shared library runtime path variable. 19705runpath_var=$runpath_var 19706 19707# This is the shared library path variable. 19708shlibpath_var=$shlibpath_var 19709 19710# Is shlibpath searched before the hard-coded library search path? 19711shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19712 19713# How to hardcode a shared library path into an executable. 19714hardcode_action=$hardcode_action_RC 19715 19716# Whether we should hardcode library paths into libraries. 19717hardcode_into_libs=$hardcode_into_libs 19718 19719# Flag to hardcode \$libdir into a binary during linking. 19720# This must work even if \$libdir does not exist. 19721hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19722 19723# If ld is used when linking, flag to hardcode \$libdir into 19724# a binary during linking. This must work even if \$libdir does 19725# not exist. 19726hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19727 19728# Whether we need a single -rpath flag with a separated argument. 19729hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19730 19731# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19732# resulting binary. 19733hardcode_direct=$hardcode_direct_RC 19734 19735# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19736# resulting binary. 19737hardcode_minus_L=$hardcode_minus_L_RC 19738 19739# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19740# the resulting binary. 19741hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19742 19743# Set to yes if building a shared library automatically hardcodes DIR into the library 19744# and all subsequent libraries and executables linked against it. 19745hardcode_automatic=$hardcode_automatic_RC 19746 19747# Variables whose values should be saved in libtool wrapper scripts and 19748# restored at relink time. 19749variables_saved_for_relink="$variables_saved_for_relink" 19750 19751# Whether libtool must link a program against all its dependency libraries. 19752link_all_deplibs=$link_all_deplibs_RC 19753 19754# Compile-time system search path for libraries 19755sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19756 19757# Run-time system search path for libraries 19758sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19759 19760# Fix the shell variable \$srcfile for the compiler. 19761fix_srcfile_path=$lt_fix_srcfile_path 19762 19763# Set to yes if exported symbols are required. 19764always_export_symbols=$always_export_symbols_RC 19765 19766# The commands to list exported symbols. 19767export_symbols_cmds=$lt_export_symbols_cmds_RC 19768 19769# The commands to extract the exported symbol list from a shared archive. 19770extract_expsyms_cmds=$lt_extract_expsyms_cmds 19771 19772# Symbols that should not be listed in the preloaded symbols. 19773exclude_expsyms=$lt_exclude_expsyms_RC 19774 19775# Symbols that must always be exported. 19776include_expsyms=$lt_include_expsyms_RC 19777 19778# ### END LIBTOOL TAG CONFIG: $tagname 19779 19780__EOF__ 19781 19782 19783else 19784 # If there is no Makefile yet, we rely on a make rule to execute 19785 # `config.status --recheck' to rerun these tests and create the 19786 # libtool script then. 19787 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19788 if test -f "$ltmain_in"; then 19789 test -f Makefile && make "$ltmain" 19790 fi 19791fi 19792 19793 19794ac_ext=c 19795ac_cpp='$CPP $CPPFLAGS' 19796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19798ac_compiler_gnu=$ac_cv_c_compiler_gnu 19799 19800CC="$lt_save_CC" 19801 19802 ;; 19803 19804 *) 19805 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19806echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19807 { (exit 1); exit 1; }; } 19808 ;; 19809 esac 19810 19811 # Append the new tag name to the list of available tags. 19812 if test -n "$tagname" ; then 19813 available_tags="$available_tags $tagname" 19814 fi 19815 fi 19816 done 19817 IFS="$lt_save_ifs" 19818 19819 # Now substitute the updated list of available tags. 19820 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19821 mv "${ofile}T" "$ofile" 19822 chmod +x "$ofile" 19823 else 19824 rm -f "${ofile}T" 19825 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19826echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19827 { (exit 1); exit 1; }; } 19828 fi 19829fi 19830 19831 19832 19833# This can be used to rebuild libtool when needed 19834LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19835 19836# Always use our own libtool. 19837LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19838 19839# Prevent multiple expansion 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857 19858 19859 19860# Check whether --enable-debug was given. 19861if test "${enable_debug+set}" = set; then 19862 enableval=$enable_debug; 19863 CXXFLAGS="-g -O0 -Wall" 19864 19865cat >>confdefs.h <<\_ACEOF 19866#define WITH_DEBUG 19867_ACEOF 19868 19869 19870fi 19871 19872 19873 19874# Check whether --with-libldap was given. 19875if test "${with_libldap+set}" = set; then 19876 withval=$with_libldap; 19877 LIBS="-L$with_libldap $LIBS " 19878 19879else 19880 19881 LIBS="-L/usr/local/lib $LIBS " 19882 19883 19884fi 19885 19886 19887 19888# Check whether --with-ldap-includes was given. 19889if test "${with_ldap_includes+set}" = set; then 19890 withval=$with_ldap_includes; 19891 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS " 19892 19893else 19894 19895 CPPFLAGS="-I/usr/local/include $CPPFLAGS " 19896 19897 19898fi 19899 19900 19901{ echo "$as_me:$LINENO: checking for main in -lresolv" >&5 19902echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; } 19903if test "${ac_cv_lib_resolv_main+set}" = set; then 19904 echo $ECHO_N "(cached) $ECHO_C" >&6 19905else 19906 ac_check_lib_save_LIBS=$LIBS 19907LIBS="-lresolv $LIBS" 19908cat >conftest.$ac_ext <<_ACEOF 19909/* confdefs.h. */ 19910_ACEOF 19911cat confdefs.h >>conftest.$ac_ext 19912cat >>conftest.$ac_ext <<_ACEOF 19913/* end confdefs.h. */ 19914 19915 19916int 19917main () 19918{ 19919return main (); 19920 ; 19921 return 0; 19922} 19923_ACEOF 19924rm -f conftest.$ac_objext conftest$ac_exeext 19925if { (ac_try="$ac_link" 19926case "(($ac_try" in 19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19928 *) ac_try_echo=$ac_try;; 19929esac 19930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19931 (eval "$ac_link") 2>conftest.er1 19932 ac_status=$? 19933 grep -v '^ *+' conftest.er1 >conftest.err 19934 rm -f conftest.er1 19935 cat conftest.err >&5 19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19937 (exit $ac_status); } && { 19938 test -z "$ac_c_werror_flag" || 19939 test ! -s conftest.err 19940 } && test -s conftest$ac_exeext && 19941 $as_test_x conftest$ac_exeext; then 19942 ac_cv_lib_resolv_main=yes 19943else 19944 echo "$as_me: failed program was:" >&5 19945sed 's/^/| /' conftest.$ac_ext >&5 19946 19947 ac_cv_lib_resolv_main=no 19948fi 19949 19950rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 19951 conftest$ac_exeext conftest.$ac_ext 19952LIBS=$ac_check_lib_save_LIBS 19953fi 19954{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5 19955echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; } 19956if test $ac_cv_lib_resolv_main = yes; then 19957 cat >>confdefs.h <<_ACEOF 19958#define HAVE_LIBRESOLV 1 19959_ACEOF 19960 19961 LIBS="-lresolv $LIBS" 19962 19963fi 19964 19965{ echo "$as_me:$LINENO: checking for ber_strdup in -llber" >&5 19966echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6; } 19967if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then 19968 echo $ECHO_N "(cached) $ECHO_C" >&6 19969else 19970 ac_check_lib_save_LIBS=$LIBS 19971LIBS="-llber $LIBS" 19972cat >conftest.$ac_ext <<_ACEOF 19973/* confdefs.h. */ 19974_ACEOF 19975cat confdefs.h >>conftest.$ac_ext 19976cat >>conftest.$ac_ext <<_ACEOF 19977/* end confdefs.h. */ 19978 19979/* Override any GCC internal prototype to avoid an error. 19980 Use char because int might match the return type of a GCC 19981 builtin and then its argument prototype would still apply. */ 19982#ifdef __cplusplus 19983extern "C" 19984#endif 19985char ber_strdup (); 19986int 19987main () 19988{ 19989return ber_strdup (); 19990 ; 19991 return 0; 19992} 19993_ACEOF 19994rm -f conftest.$ac_objext conftest$ac_exeext 19995if { (ac_try="$ac_link" 19996case "(($ac_try" in 19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19998 *) ac_try_echo=$ac_try;; 19999esac 20000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20001 (eval "$ac_link") 2>conftest.er1 20002 ac_status=$? 20003 grep -v '^ *+' conftest.er1 >conftest.err 20004 rm -f conftest.er1 20005 cat conftest.err >&5 20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20007 (exit $ac_status); } && { 20008 test -z "$ac_c_werror_flag" || 20009 test ! -s conftest.err 20010 } && test -s conftest$ac_exeext && 20011 $as_test_x conftest$ac_exeext; then 20012 ac_cv_lib_lber_ber_strdup=yes 20013else 20014 echo "$as_me: failed program was:" >&5 20015sed 's/^/| /' conftest.$ac_ext >&5 20016 20017 ac_cv_lib_lber_ber_strdup=no 20018fi 20019 20020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20021 conftest$ac_exeext conftest.$ac_ext 20022LIBS=$ac_check_lib_save_LIBS 20023fi 20024{ echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_strdup" >&5 20025echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6; } 20026if test $ac_cv_lib_lber_ber_strdup = yes; then 20027 20028 : 20029 20030else 20031 20032 echo " didn't find ber_strdup in liblber !"; 20033 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries"; 20034 echo " or try the --with-libldap option."; 20035 exit 20036 20037fi 20038 20039{ echo "$as_me:$LINENO: checking for ldap_add_ext in -lldap" >&5 20040echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6; } 20041if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then 20042 echo $ECHO_N "(cached) $ECHO_C" >&6 20043else 20044 ac_check_lib_save_LIBS=$LIBS 20045LIBS="-lldap 20046 -llber 20047 $LIBS" 20048cat >conftest.$ac_ext <<_ACEOF 20049/* confdefs.h. */ 20050_ACEOF 20051cat confdefs.h >>conftest.$ac_ext 20052cat >>conftest.$ac_ext <<_ACEOF 20053/* end confdefs.h. */ 20054 20055/* Override any GCC internal prototype to avoid an error. 20056 Use char because int might match the return type of a GCC 20057 builtin and then its argument prototype would still apply. */ 20058#ifdef __cplusplus 20059extern "C" 20060#endif 20061char ldap_add_ext (); 20062int 20063main () 20064{ 20065return ldap_add_ext (); 20066 ; 20067 return 0; 20068} 20069_ACEOF 20070rm -f conftest.$ac_objext conftest$ac_exeext 20071if { (ac_try="$ac_link" 20072case "(($ac_try" in 20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20074 *) ac_try_echo=$ac_try;; 20075esac 20076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20077 (eval "$ac_link") 2>conftest.er1 20078 ac_status=$? 20079 grep -v '^ *+' conftest.er1 >conftest.err 20080 rm -f conftest.er1 20081 cat conftest.err >&5 20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20083 (exit $ac_status); } && { 20084 test -z "$ac_c_werror_flag" || 20085 test ! -s conftest.err 20086 } && test -s conftest$ac_exeext && 20087 $as_test_x conftest$ac_exeext; then 20088 ac_cv_lib_ldap_ldap_add_ext=yes 20089else 20090 echo "$as_me: failed program was:" >&5 20091sed 's/^/| /' conftest.$ac_ext >&5 20092 20093 ac_cv_lib_ldap_ldap_add_ext=no 20094fi 20095 20096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 20097 conftest$ac_exeext conftest.$ac_ext 20098LIBS=$ac_check_lib_save_LIBS 20099fi 20100{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_add_ext" >&5 20101echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6; } 20102if test $ac_cv_lib_ldap_ldap_add_ext = yes; then 20103 20104 : 20105 20106else 20107 20108 echo " didn't find ldap_add_ext in libldap !"; 20109 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries"; 20110 echo " or try the --with-libldap option."; 20111 exit 20112 20113fi 20114 20115{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 20116echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } 20117if test "${ac_cv_header_time+set}" = set; then 20118 echo $ECHO_N "(cached) $ECHO_C" >&6 20119else 20120 cat >conftest.$ac_ext <<_ACEOF 20121/* confdefs.h. */ 20122_ACEOF 20123cat confdefs.h >>conftest.$ac_ext 20124cat >>conftest.$ac_ext <<_ACEOF 20125/* end confdefs.h. */ 20126#include <sys/types.h> 20127#include <sys/time.h> 20128#include <time.h> 20129 20130int 20131main () 20132{ 20133if ((struct tm *) 0) 20134return 0; 20135 ; 20136 return 0; 20137} 20138_ACEOF 20139rm -f conftest.$ac_objext 20140if { (ac_try="$ac_compile" 20141case "(($ac_try" in 20142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20143 *) ac_try_echo=$ac_try;; 20144esac 20145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20146 (eval "$ac_compile") 2>conftest.er1 20147 ac_status=$? 20148 grep -v '^ *+' conftest.er1 >conftest.err 20149 rm -f conftest.er1 20150 cat conftest.err >&5 20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20152 (exit $ac_status); } && { 20153 test -z "$ac_c_werror_flag" || 20154 test ! -s conftest.err 20155 } && test -s conftest.$ac_objext; then 20156 ac_cv_header_time=yes 20157else 20158 echo "$as_me: failed program was:" >&5 20159sed 's/^/| /' conftest.$ac_ext >&5 20160 20161 ac_cv_header_time=no 20162fi 20163 20164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20165fi 20166{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 20167echo "${ECHO_T}$ac_cv_header_time" >&6; } 20168if test $ac_cv_header_time = yes; then 20169 20170cat >>confdefs.h <<\_ACEOF 20171#define TIME_WITH_SYS_TIME 1 20172_ACEOF 20173 20174fi 20175 20176 20177 20178for ac_header in termios.h ldap.h 20179do 20180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20182 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20185 echo $ECHO_N "(cached) $ECHO_C" >&6 20186fi 20187ac_res=`eval echo '${'$as_ac_Header'}'` 20188 { echo "$as_me:$LINENO: result: $ac_res" >&5 20189echo "${ECHO_T}$ac_res" >&6; } 20190else 20191 # Is the header compilable? 20192{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20193echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20194cat >conftest.$ac_ext <<_ACEOF 20195/* confdefs.h. */ 20196_ACEOF 20197cat confdefs.h >>conftest.$ac_ext 20198cat >>conftest.$ac_ext <<_ACEOF 20199/* end confdefs.h. */ 20200$ac_includes_default 20201#include <$ac_header> 20202_ACEOF 20203rm -f conftest.$ac_objext 20204if { (ac_try="$ac_compile" 20205case "(($ac_try" in 20206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20207 *) ac_try_echo=$ac_try;; 20208esac 20209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20210 (eval "$ac_compile") 2>conftest.er1 20211 ac_status=$? 20212 grep -v '^ *+' conftest.er1 >conftest.err 20213 rm -f conftest.er1 20214 cat conftest.err >&5 20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20216 (exit $ac_status); } && { 20217 test -z "$ac_c_werror_flag" || 20218 test ! -s conftest.err 20219 } && test -s conftest.$ac_objext; then 20220 ac_header_compiler=yes 20221else 20222 echo "$as_me: failed program was:" >&5 20223sed 's/^/| /' conftest.$ac_ext >&5 20224 20225 ac_header_compiler=no 20226fi 20227 20228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20229{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20230echo "${ECHO_T}$ac_header_compiler" >&6; } 20231 20232# Is the header present? 20233{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20235cat >conftest.$ac_ext <<_ACEOF 20236/* confdefs.h. */ 20237_ACEOF 20238cat confdefs.h >>conftest.$ac_ext 20239cat >>conftest.$ac_ext <<_ACEOF 20240/* end confdefs.h. */ 20241#include <$ac_header> 20242_ACEOF 20243if { (ac_try="$ac_cpp conftest.$ac_ext" 20244case "(($ac_try" in 20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20246 *) ac_try_echo=$ac_try;; 20247esac 20248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20250 ac_status=$? 20251 grep -v '^ *+' conftest.er1 >conftest.err 20252 rm -f conftest.er1 20253 cat conftest.err >&5 20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20255 (exit $ac_status); } >/dev/null && { 20256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20257 test ! -s conftest.err 20258 }; then 20259 ac_header_preproc=yes 20260else 20261 echo "$as_me: failed program was:" >&5 20262sed 's/^/| /' conftest.$ac_ext >&5 20263 20264 ac_header_preproc=no 20265fi 20266 20267rm -f conftest.err conftest.$ac_ext 20268{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20269echo "${ECHO_T}$ac_header_preproc" >&6; } 20270 20271# So? What about this header? 20272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20273 yes:no: ) 20274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20277echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20278 ac_header_preproc=yes 20279 ;; 20280 no:yes:* ) 20281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20282echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20284echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20286echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20288echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20290echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20292echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20293 ( cat <<\_ASBOX 20294## -------------------------------------------- ## 20295## Report this to http://www.openldap.org/its/ ## 20296## -------------------------------------------- ## 20297_ASBOX 20298 ) | sed "s/^/$as_me: WARNING: /" >&2 20299 ;; 20300esac 20301{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20304 echo $ECHO_N "(cached) $ECHO_C" >&6 20305else 20306 eval "$as_ac_Header=\$ac_header_preproc" 20307fi 20308ac_res=`eval echo '${'$as_ac_Header'}'` 20309 { echo "$as_me:$LINENO: result: $ac_res" >&5 20310echo "${ECHO_T}$ac_res" >&6; } 20311 20312fi 20313if test `eval echo '${'$as_ac_Header'}'` = yes; then 20314 cat >>confdefs.h <<_ACEOF 20315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20316_ACEOF 20317 20318fi 20319 20320done 20321 20322cat >conftest.$ac_ext <<_ACEOF 20323/* confdefs.h. */ 20324_ACEOF 20325cat confdefs.h >>conftest.$ac_ext 20326cat >>conftest.$ac_ext <<_ACEOF 20327/* end confdefs.h. */ 20328#include <ldap.h> 20329 20330_ACEOF 20331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20332 $EGREP "ldap_add_ext" >/dev/null 2>&1; then 20333 20334 : 20335 20336else 20337 20338 echo " didn't find ldap_add_ext in ldap.h!"; 20339 echo " Check for the right version (>= 2.0) of the OpenLDAP includes"; 20340 echo " or try --with-ldap-includes option."; 20341 exit 20342 20343fi 20344rm -f conftest* 20345 20346if test "${ac_cv_header_lber_h+set}" = set; then 20347 { echo "$as_me:$LINENO: checking for lber.h" >&5 20348echo $ECHO_N "checking for lber.h... $ECHO_C" >&6; } 20349if test "${ac_cv_header_lber_h+set}" = set; then 20350 echo $ECHO_N "(cached) $ECHO_C" >&6 20351fi 20352{ echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5 20353echo "${ECHO_T}$ac_cv_header_lber_h" >&6; } 20354else 20355 # Is the header compilable? 20356{ echo "$as_me:$LINENO: checking lber.h usability" >&5 20357echo $ECHO_N "checking lber.h usability... $ECHO_C" >&6; } 20358cat >conftest.$ac_ext <<_ACEOF 20359/* confdefs.h. */ 20360_ACEOF 20361cat confdefs.h >>conftest.$ac_ext 20362cat >>conftest.$ac_ext <<_ACEOF 20363/* end confdefs.h. */ 20364$ac_includes_default 20365#include <lber.h> 20366_ACEOF 20367rm -f conftest.$ac_objext 20368if { (ac_try="$ac_compile" 20369case "(($ac_try" in 20370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20371 *) ac_try_echo=$ac_try;; 20372esac 20373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20374 (eval "$ac_compile") 2>conftest.er1 20375 ac_status=$? 20376 grep -v '^ *+' conftest.er1 >conftest.err 20377 rm -f conftest.er1 20378 cat conftest.err >&5 20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20380 (exit $ac_status); } && { 20381 test -z "$ac_c_werror_flag" || 20382 test ! -s conftest.err 20383 } && test -s conftest.$ac_objext; then 20384 ac_header_compiler=yes 20385else 20386 echo "$as_me: failed program was:" >&5 20387sed 's/^/| /' conftest.$ac_ext >&5 20388 20389 ac_header_compiler=no 20390fi 20391 20392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20393{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20394echo "${ECHO_T}$ac_header_compiler" >&6; } 20395 20396# Is the header present? 20397{ echo "$as_me:$LINENO: checking lber.h presence" >&5 20398echo $ECHO_N "checking lber.h presence... $ECHO_C" >&6; } 20399cat >conftest.$ac_ext <<_ACEOF 20400/* confdefs.h. */ 20401_ACEOF 20402cat confdefs.h >>conftest.$ac_ext 20403cat >>conftest.$ac_ext <<_ACEOF 20404/* end confdefs.h. */ 20405#include <lber.h> 20406_ACEOF 20407if { (ac_try="$ac_cpp conftest.$ac_ext" 20408case "(($ac_try" in 20409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20410 *) ac_try_echo=$ac_try;; 20411esac 20412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20414 ac_status=$? 20415 grep -v '^ *+' conftest.er1 >conftest.err 20416 rm -f conftest.er1 20417 cat conftest.err >&5 20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20419 (exit $ac_status); } >/dev/null && { 20420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 20421 test ! -s conftest.err 20422 }; then 20423 ac_header_preproc=yes 20424else 20425 echo "$as_me: failed program was:" >&5 20426sed 's/^/| /' conftest.$ac_ext >&5 20427 20428 ac_header_preproc=no 20429fi 20430 20431rm -f conftest.err conftest.$ac_ext 20432{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20433echo "${ECHO_T}$ac_header_preproc" >&6; } 20434 20435# So? What about this header? 20436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20437 yes:no: ) 20438 { echo "$as_me:$LINENO: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&5 20439echo "$as_me: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20440 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the compiler's result" >&5 20441echo "$as_me: WARNING: lber.h: proceeding with the compiler's result" >&2;} 20442 ac_header_preproc=yes 20443 ;; 20444 no:yes:* ) 20445 { echo "$as_me:$LINENO: WARNING: lber.h: present but cannot be compiled" >&5 20446echo "$as_me: WARNING: lber.h: present but cannot be compiled" >&2;} 20447 { echo "$as_me:$LINENO: WARNING: lber.h: check for missing prerequisite headers?" >&5 20448echo "$as_me: WARNING: lber.h: check for missing prerequisite headers?" >&2;} 20449 { echo "$as_me:$LINENO: WARNING: lber.h: see the Autoconf documentation" >&5 20450echo "$as_me: WARNING: lber.h: see the Autoconf documentation" >&2;} 20451 { echo "$as_me:$LINENO: WARNING: lber.h: section \"Present But Cannot Be Compiled\"" >&5 20452echo "$as_me: WARNING: lber.h: section \"Present But Cannot Be Compiled\"" >&2;} 20453 { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5 20454echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;} 20455 { echo "$as_me:$LINENO: WARNING: lber.h: in the future, the compiler will take precedence" >&5 20456echo "$as_me: WARNING: lber.h: in the future, the compiler will take precedence" >&2;} 20457 ( cat <<\_ASBOX 20458## -------------------------------------------- ## 20459## Report this to http://www.openldap.org/its/ ## 20460## -------------------------------------------- ## 20461_ASBOX 20462 ) | sed "s/^/$as_me: WARNING: /" >&2 20463 ;; 20464esac 20465{ echo "$as_me:$LINENO: checking for lber.h" >&5 20466echo $ECHO_N "checking for lber.h... $ECHO_C" >&6; } 20467if test "${ac_cv_header_lber_h+set}" = set; then 20468 echo $ECHO_N "(cached) $ECHO_C" >&6 20469else 20470 ac_cv_header_lber_h=$ac_header_preproc 20471fi 20472{ echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5 20473echo "${ECHO_T}$ac_cv_header_lber_h" >&6; } 20474 20475fi 20476 20477 20478cat >conftest.$ac_ext <<_ACEOF 20479/* confdefs.h. */ 20480_ACEOF 20481cat confdefs.h >>conftest.$ac_ext 20482cat >>conftest.$ac_ext <<_ACEOF 20483/* end confdefs.h. */ 20484#include <lber.h> 20485 20486_ACEOF 20487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20488 $EGREP "ber_strdup" >/dev/null 2>&1; then 20489 20490 : 20491 20492else 20493 20494 echo " didn't find ber_strdup in lber.h!"; 20495 echo " Check for the right version (>= 2.0) of the OpenLDAP includes"; 20496 echo " or try --with-ldap-includes option."; 20497 exit 20498 20499fi 20500rm -f conftest* 20501 20502 20503 20504 20505ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile" 20506 20507cat >confcache <<\_ACEOF 20508# This file is a shell script that caches the results of configure 20509# tests run on this system so they can be shared between configure 20510# scripts and configure runs, see configure's option --config-cache. 20511# It is not useful on other systems. If it contains results you don't 20512# want to keep, you may remove or edit it. 20513# 20514# config.status only pays attention to the cache file if you give it 20515# the --recheck option to rerun configure. 20516# 20517# `ac_cv_env_foo' variables (set or unset) will be overridden when 20518# loading this file, other *unset* `ac_cv_foo' will be assigned the 20519# following values. 20520 20521_ACEOF 20522 20523# The following way of writing the cache mishandles newlines in values, 20524# but we know of no workaround that is simple, portable, and efficient. 20525# So, we kill variables containing newlines. 20526# Ultrix sh set writes to stderr and can't be redirected directly, 20527# and sets the high bit in the cache file unless we assign to the vars. 20528( 20529 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20530 eval ac_val=\$$ac_var 20531 case $ac_val in #( 20532 *${as_nl}*) 20533 case $ac_var in #( 20534 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20535echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20536 esac 20537 case $ac_var in #( 20538 _ | IFS | as_nl) ;; #( 20539 *) $as_unset $ac_var ;; 20540 esac ;; 20541 esac 20542 done 20543 20544 (set) 2>&1 | 20545 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20546 *${as_nl}ac_space=\ *) 20547 # `set' does not quote correctly, so add quotes (double-quote 20548 # substitution turns \\\\ into \\, and sed turns \\ into \). 20549 sed -n \ 20550 "s/'/'\\\\''/g; 20551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20552 ;; #( 20553 *) 20554 # `set' quotes correctly as required by POSIX, so do not add quotes. 20555 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20556 ;; 20557 esac | 20558 sort 20559) | 20560 sed ' 20561 /^ac_cv_env_/b end 20562 t clear 20563 :clear 20564 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20565 t end 20566 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20567 :end' >>confcache 20568if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20569 if test -w "$cache_file"; then 20570 test "x$cache_file" != "x/dev/null" && 20571 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 20572echo "$as_me: updating cache $cache_file" >&6;} 20573 cat confcache >$cache_file 20574 else 20575 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20576echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20577 fi 20578fi 20579rm -f confcache 20580 20581test "x$prefix" = xNONE && prefix=$ac_default_prefix 20582# Let make expand exec_prefix. 20583test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20584 20585DEFS=-DHAVE_CONFIG_H 20586 20587ac_libobjs= 20588ac_ltlibobjs= 20589for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20590 # 1. Remove the extension, and $U if already installed. 20591 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20592 ac_i=`echo "$ac_i" | sed "$ac_script"` 20593 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20594 # will be set to the directory where LIBOBJS objects are built. 20595 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20596 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20597done 20598LIBOBJS=$ac_libobjs 20599 20600LTLIBOBJS=$ac_ltlibobjs 20601 20602 20603if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20604 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20605Usually this means the macro was only invoked conditionally." >&5 20606echo "$as_me: error: conditional \"AMDEP\" was never defined. 20607Usually this means the macro was only invoked conditionally." >&2;} 20608 { (exit 1); exit 1; }; } 20609fi 20610if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20611 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20612Usually this means the macro was only invoked conditionally." >&5 20613echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20614Usually this means the macro was only invoked conditionally." >&2;} 20615 { (exit 1); exit 1; }; } 20616fi 20617if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20618 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20619Usually this means the macro was only invoked conditionally." >&5 20620echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20621Usually this means the macro was only invoked conditionally." >&2;} 20622 { (exit 1); exit 1; }; } 20623fi 20624 20625: ${CONFIG_STATUS=./config.status} 20626ac_clean_files_save=$ac_clean_files 20627ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20628{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20629echo "$as_me: creating $CONFIG_STATUS" >&6;} 20630cat >$CONFIG_STATUS <<_ACEOF 20631#! $SHELL 20632# Generated by $as_me. 20633# Run this file to recreate the current configuration. 20634# Compiler output produced by configure, useful for debugging 20635# configure, is in config.log if it exists. 20636 20637debug=false 20638ac_cs_recheck=false 20639ac_cs_silent=false 20640SHELL=\${CONFIG_SHELL-$SHELL} 20641_ACEOF 20642 20643cat >>$CONFIG_STATUS <<\_ACEOF 20644## --------------------- ## 20645## M4sh Initialization. ## 20646## --------------------- ## 20647 20648# Be more Bourne compatible 20649DUALCASE=1; export DUALCASE # for MKS sh 20650if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20651 emulate sh 20652 NULLCMD=: 20653 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20654 # is contrary to our usage. Disable this feature. 20655 alias -g '${1+"$@"}'='"$@"' 20656 setopt NO_GLOB_SUBST 20657else 20658 case `(set -o) 2>/dev/null` in 20659 *posix*) set -o posix ;; 20660esac 20661 20662fi 20663 20664 20665 20666 20667# PATH needs CR 20668# Avoid depending upon Character Ranges. 20669as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20670as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20671as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20672as_cr_digits='0123456789' 20673as_cr_alnum=$as_cr_Letters$as_cr_digits 20674 20675# The user is always right. 20676if test "${PATH_SEPARATOR+set}" != set; then 20677 echo "#! /bin/sh" >conf$$.sh 20678 echo "exit 0" >>conf$$.sh 20679 chmod +x conf$$.sh 20680 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20681 PATH_SEPARATOR=';' 20682 else 20683 PATH_SEPARATOR=: 20684 fi 20685 rm -f conf$$.sh 20686fi 20687 20688# Support unset when possible. 20689if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20690 as_unset=unset 20691else 20692 as_unset=false 20693fi 20694 20695 20696# IFS 20697# We need space, tab and new line, in precisely that order. Quoting is 20698# there to prevent editors from complaining about space-tab. 20699# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20700# splitting by setting IFS to empty value.) 20701as_nl=' 20702' 20703IFS=" "" $as_nl" 20704 20705# Find who we are. Look in the path if we contain no directory separator. 20706case $0 in 20707 *[\\/]* ) as_myself=$0 ;; 20708 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20709for as_dir in $PATH 20710do 20711 IFS=$as_save_IFS 20712 test -z "$as_dir" && as_dir=. 20713 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20714done 20715IFS=$as_save_IFS 20716 20717 ;; 20718esac 20719# We did not find ourselves, most probably we were run as `sh COMMAND' 20720# in which case we are not to be found in the path. 20721if test "x$as_myself" = x; then 20722 as_myself=$0 20723fi 20724if test ! -f "$as_myself"; then 20725 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20726 { (exit 1); exit 1; } 20727fi 20728 20729# Work around bugs in pre-3.0 UWIN ksh. 20730for as_var in ENV MAIL MAILPATH 20731do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20732done 20733PS1='$ ' 20734PS2='> ' 20735PS4='+ ' 20736 20737# NLS nuisances. 20738for as_var in \ 20739 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20740 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20741 LC_TELEPHONE LC_TIME 20742do 20743 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20744 eval $as_var=C; export $as_var 20745 else 20746 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20747 fi 20748done 20749 20750# Required to use basename. 20751if expr a : '\(a\)' >/dev/null 2>&1 && 20752 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20753 as_expr=expr 20754else 20755 as_expr=false 20756fi 20757 20758if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20759 as_basename=basename 20760else 20761 as_basename=false 20762fi 20763 20764 20765# Name of the executable. 20766as_me=`$as_basename -- "$0" || 20767$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20768 X"$0" : 'X\(//\)$' \| \ 20769 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20770echo X/"$0" | 20771 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20772 s//\1/ 20773 q 20774 } 20775 /^X\/\(\/\/\)$/{ 20776 s//\1/ 20777 q 20778 } 20779 /^X\/\(\/\).*/{ 20780 s//\1/ 20781 q 20782 } 20783 s/.*/./; q'` 20784 20785# CDPATH. 20786$as_unset CDPATH 20787 20788 20789 20790 as_lineno_1=$LINENO 20791 as_lineno_2=$LINENO 20792 test "x$as_lineno_1" != "x$as_lineno_2" && 20793 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 20794 20795 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20796 # uniformly replaced by the line number. The first 'sed' inserts a 20797 # line-number line after each line using $LINENO; the second 'sed' 20798 # does the real work. The second script uses 'N' to pair each 20799 # line-number line with the line containing $LINENO, and appends 20800 # trailing '-' during substitution so that $LINENO is not a special 20801 # case at line end. 20802 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20803 # scripts with optimization help from Paolo Bonzini. Blame Lee 20804 # E. McMahon (1931-1989) for sed's syntax. :-) 20805 sed -n ' 20806 p 20807 /[$]LINENO/= 20808 ' <$as_myself | 20809 sed ' 20810 s/[$]LINENO.*/&-/ 20811 t lineno 20812 b 20813 :lineno 20814 N 20815 :loop 20816 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 20817 t loop 20818 s/-\n.*// 20819 ' >$as_me.lineno && 20820 chmod +x "$as_me.lineno" || 20821 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 20822 { (exit 1); exit 1; }; } 20823 20824 # Don't try to exec as it changes $[0], causing all sort of problems 20825 # (the dirname of $[0] is not the place where we might find the 20826 # original and so on. Autoconf is especially sensitive to this). 20827 . "./$as_me.lineno" 20828 # Exit status is that of the last command. 20829 exit 20830} 20831 20832 20833if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20834 as_dirname=dirname 20835else 20836 as_dirname=false 20837fi 20838 20839ECHO_C= ECHO_N= ECHO_T= 20840case `echo -n x` in 20841-n*) 20842 case `echo 'x\c'` in 20843 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20844 *) ECHO_C='\c';; 20845 esac;; 20846*) 20847 ECHO_N='-n';; 20848esac 20849 20850if expr a : '\(a\)' >/dev/null 2>&1 && 20851 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20852 as_expr=expr 20853else 20854 as_expr=false 20855fi 20856 20857rm -f conf$$ conf$$.exe conf$$.file 20858if test -d conf$$.dir; then 20859 rm -f conf$$.dir/conf$$.file 20860else 20861 rm -f conf$$.dir 20862 mkdir conf$$.dir 20863fi 20864echo >conf$$.file 20865if ln -s conf$$.file conf$$ 2>/dev/null; then 20866 as_ln_s='ln -s' 20867 # ... but there are two gotchas: 20868 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20869 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20870 # In both cases, we have to default to `cp -p'. 20871 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20872 as_ln_s='cp -p' 20873elif ln conf$$.file conf$$ 2>/dev/null; then 20874 as_ln_s=ln 20875else 20876 as_ln_s='cp -p' 20877fi 20878rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20879rmdir conf$$.dir 2>/dev/null 20880 20881if mkdir -p . 2>/dev/null; then 20882 as_mkdir_p=: 20883else 20884 test -d ./-p && rmdir ./-p 20885 as_mkdir_p=false 20886fi 20887 20888if test -x / >/dev/null 2>&1; then 20889 as_test_x='test -x' 20890else 20891 if ls -dL / >/dev/null 2>&1; then 20892 as_ls_L_option=L 20893 else 20894 as_ls_L_option= 20895 fi 20896 as_test_x=' 20897 eval sh -c '\'' 20898 if test -d "$1"; then 20899 test -d "$1/."; 20900 else 20901 case $1 in 20902 -*)set "./$1";; 20903 esac; 20904 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 20905 ???[sx]*):;;*)false;;esac;fi 20906 '\'' sh 20907 ' 20908fi 20909as_executable_p=$as_test_x 20910 20911# Sed expression to map a string onto a valid CPP name. 20912as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20913 20914# Sed expression to map a string onto a valid variable name. 20915as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20916 20917 20918exec 6>&1 20919 20920# Save the log message, to keep $[0] and so on meaningful, and to 20921# report actual input values of CONFIG_FILES etc. instead of their 20922# values after options handling. 20923ac_log=" 20924This file was extended by ldapcpplib $as_me , which was 20925generated by GNU Autoconf 2.61. Invocation command line was 20926 20927 CONFIG_FILES = $CONFIG_FILES 20928 CONFIG_HEADERS = $CONFIG_HEADERS 20929 CONFIG_LINKS = $CONFIG_LINKS 20930 CONFIG_COMMANDS = $CONFIG_COMMANDS 20931 $ $0 $@ 20932 20933on `(hostname || uname -n) 2>/dev/null | sed 1q` 20934" 20935 20936_ACEOF 20937 20938cat >>$CONFIG_STATUS <<_ACEOF 20939# Files that config.status was made for. 20940config_files="$ac_config_files" 20941config_headers="$ac_config_headers" 20942config_commands="$ac_config_commands" 20943 20944_ACEOF 20945 20946cat >>$CONFIG_STATUS <<\_ACEOF 20947ac_cs_usage="\ 20948\`$as_me' instantiates files from templates according to the 20949current configuration. 20950 20951Usage: $0 [OPTIONS] [FILE]... 20952 20953 -h, --help print this help, then exit 20954 -V, --version print version number and configuration settings, then exit 20955 -q, --quiet do not print progress messages 20956 -d, --debug don't remove temporary files 20957 --recheck update $as_me by reconfiguring in the same conditions 20958 --file=FILE[:TEMPLATE] 20959 instantiate the configuration file FILE 20960 --header=FILE[:TEMPLATE] 20961 instantiate the configuration header FILE 20962 20963Configuration files: 20964$config_files 20965 20966Configuration headers: 20967$config_headers 20968 20969Configuration commands: 20970$config_commands 20971 20972Report bugs to <bug-autoconf@gnu.org>." 20973 20974_ACEOF 20975cat >>$CONFIG_STATUS <<_ACEOF 20976ac_cs_version="\\ 20977ldapcpplib config.status 20978configured by $0, generated by GNU Autoconf 2.61, 20979 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 20980 20981Copyright (C) 2006 Free Software Foundation, Inc. 20982This config.status script is free software; the Free Software Foundation 20983gives unlimited permission to copy, distribute and modify it." 20984 20985ac_pwd='$ac_pwd' 20986srcdir='$srcdir' 20987INSTALL='$INSTALL' 20988MKDIR_P='$MKDIR_P' 20989_ACEOF 20990 20991cat >>$CONFIG_STATUS <<\_ACEOF 20992# If no file are specified by the user, then we need to provide default 20993# value. By we need to know if files were specified by the user. 20994ac_need_defaults=: 20995while test $# != 0 20996do 20997 case $1 in 20998 --*=*) 20999 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21000 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21001 ac_shift=: 21002 ;; 21003 *) 21004 ac_option=$1 21005 ac_optarg=$2 21006 ac_shift=shift 21007 ;; 21008 esac 21009 21010 case $ac_option in 21011 # Handling of the options. 21012 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21013 ac_cs_recheck=: ;; 21014 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21015 echo "$ac_cs_version"; exit ;; 21016 --debug | --debu | --deb | --de | --d | -d ) 21017 debug=: ;; 21018 --file | --fil | --fi | --f ) 21019 $ac_shift 21020 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21021 ac_need_defaults=false;; 21022 --header | --heade | --head | --hea ) 21023 $ac_shift 21024 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21025 ac_need_defaults=false;; 21026 --he | --h) 21027 # Conflict between --help and --header 21028 { echo "$as_me: error: ambiguous option: $1 21029Try \`$0 --help' for more information." >&2 21030 { (exit 1); exit 1; }; };; 21031 --help | --hel | -h ) 21032 echo "$ac_cs_usage"; exit ;; 21033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21034 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21035 ac_cs_silent=: ;; 21036 21037 # This is an error. 21038 -*) { echo "$as_me: error: unrecognized option: $1 21039Try \`$0 --help' for more information." >&2 21040 { (exit 1); exit 1; }; } ;; 21041 21042 *) ac_config_targets="$ac_config_targets $1" 21043 ac_need_defaults=false ;; 21044 21045 esac 21046 shift 21047done 21048 21049ac_configure_extra_args= 21050 21051if $ac_cs_silent; then 21052 exec 6>/dev/null 21053 ac_configure_extra_args="$ac_configure_extra_args --silent" 21054fi 21055 21056_ACEOF 21057cat >>$CONFIG_STATUS <<_ACEOF 21058if \$ac_cs_recheck; then 21059 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21060 CONFIG_SHELL=$SHELL 21061 export CONFIG_SHELL 21062 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21063fi 21064 21065_ACEOF 21066cat >>$CONFIG_STATUS <<\_ACEOF 21067exec 5>>config.log 21068{ 21069 echo 21070 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21071## Running $as_me. ## 21072_ASBOX 21073 echo "$ac_log" 21074} >&5 21075 21076_ACEOF 21077cat >>$CONFIG_STATUS <<_ACEOF 21078# 21079# INIT-COMMANDS 21080# 21081AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21082 21083_ACEOF 21084 21085cat >>$CONFIG_STATUS <<\_ACEOF 21086 21087# Handling of arguments. 21088for ac_config_target in $ac_config_targets 21089do 21090 case $ac_config_target in 21091 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 21092 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21093 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21094 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21095 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 21096 21097 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21098echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21099 { (exit 1); exit 1; }; };; 21100 esac 21101done 21102 21103 21104# If the user did not use the arguments to specify the items to instantiate, 21105# then the envvar interface is used. Set only those that are not. 21106# We use the long form for the default assignment because of an extremely 21107# bizarre bug on SunOS 4.1.3. 21108if $ac_need_defaults; then 21109 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21110 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21111 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21112fi 21113 21114# Have a temporary directory for convenience. Make it in the build tree 21115# simply because there is no reason against having it here, and in addition, 21116# creating and moving files from /tmp can sometimes cause problems. 21117# Hook for its removal unless debugging. 21118# Note that there is a small window in which the directory will not be cleaned: 21119# after its creation but before its name has been assigned to `$tmp'. 21120$debug || 21121{ 21122 tmp= 21123 trap 'exit_status=$? 21124 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21125' 0 21126 trap '{ (exit 1); exit 1; }' 1 2 13 15 21127} 21128# Create a (secure) tmp directory for tmp files. 21129 21130{ 21131 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21132 test -n "$tmp" && test -d "$tmp" 21133} || 21134{ 21135 tmp=./conf$$-$RANDOM 21136 (umask 077 && mkdir "$tmp") 21137} || 21138{ 21139 echo "$me: cannot create a temporary directory in ." >&2 21140 { (exit 1); exit 1; } 21141} 21142 21143# 21144# Set up the sed scripts for CONFIG_FILES section. 21145# 21146 21147# No need to generate the scripts if there are no CONFIG_FILES. 21148# This happens for instance when ./config.status config.h 21149if test -n "$CONFIG_FILES"; then 21150 21151_ACEOF 21152 21153 21154 21155ac_delim='%!_!# ' 21156for ac_last_try in false false false false false :; do 21157 cat >conf$$subs.sed <<_ACEOF 21158SHELL!$SHELL$ac_delim 21159PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21160PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21161PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21162PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21163PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21164PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21165exec_prefix!$exec_prefix$ac_delim 21166prefix!$prefix$ac_delim 21167program_transform_name!$program_transform_name$ac_delim 21168bindir!$bindir$ac_delim 21169sbindir!$sbindir$ac_delim 21170libexecdir!$libexecdir$ac_delim 21171datarootdir!$datarootdir$ac_delim 21172datadir!$datadir$ac_delim 21173sysconfdir!$sysconfdir$ac_delim 21174sharedstatedir!$sharedstatedir$ac_delim 21175localstatedir!$localstatedir$ac_delim 21176includedir!$includedir$ac_delim 21177oldincludedir!$oldincludedir$ac_delim 21178docdir!$docdir$ac_delim 21179infodir!$infodir$ac_delim 21180htmldir!$htmldir$ac_delim 21181dvidir!$dvidir$ac_delim 21182pdfdir!$pdfdir$ac_delim 21183psdir!$psdir$ac_delim 21184libdir!$libdir$ac_delim 21185localedir!$localedir$ac_delim 21186mandir!$mandir$ac_delim 21187DEFS!$DEFS$ac_delim 21188ECHO_C!$ECHO_C$ac_delim 21189ECHO_N!$ECHO_N$ac_delim 21190ECHO_T!$ECHO_T$ac_delim 21191LIBS!$LIBS$ac_delim 21192build_alias!$build_alias$ac_delim 21193host_alias!$host_alias$ac_delim 21194target_alias!$target_alias$ac_delim 21195INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21196INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21197INSTALL_DATA!$INSTALL_DATA$ac_delim 21198am__isrc!$am__isrc$ac_delim 21199CYGPATH_W!$CYGPATH_W$ac_delim 21200PACKAGE!$PACKAGE$ac_delim 21201VERSION!$VERSION$ac_delim 21202ACLOCAL!$ACLOCAL$ac_delim 21203AUTOCONF!$AUTOCONF$ac_delim 21204AUTOMAKE!$AUTOMAKE$ac_delim 21205AUTOHEADER!$AUTOHEADER$ac_delim 21206MAKEINFO!$MAKEINFO$ac_delim 21207install_sh!$install_sh$ac_delim 21208STRIP!$STRIP$ac_delim 21209INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21210mkdir_p!$mkdir_p$ac_delim 21211AWK!$AWK$ac_delim 21212SET_MAKE!$SET_MAKE$ac_delim 21213am__leading_dot!$am__leading_dot$ac_delim 21214AMTAR!$AMTAR$ac_delim 21215am__tar!$am__tar$ac_delim 21216am__untar!$am__untar$ac_delim 21217OPENLDAP_CPP_API_VERSION!$OPENLDAP_CPP_API_VERSION$ac_delim 21218CXX!$CXX$ac_delim 21219CXXFLAGS!$CXXFLAGS$ac_delim 21220LDFLAGS!$LDFLAGS$ac_delim 21221CPPFLAGS!$CPPFLAGS$ac_delim 21222ac_ct_CXX!$ac_ct_CXX$ac_delim 21223EXEEXT!$EXEEXT$ac_delim 21224OBJEXT!$OBJEXT$ac_delim 21225DEPDIR!$DEPDIR$ac_delim 21226am__include!$am__include$ac_delim 21227am__quote!$am__quote$ac_delim 21228AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21229AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21230AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21231CXXDEPMODE!$CXXDEPMODE$ac_delim 21232am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21233am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21234build!$build$ac_delim 21235build_cpu!$build_cpu$ac_delim 21236build_vendor!$build_vendor$ac_delim 21237build_os!$build_os$ac_delim 21238host!$host$ac_delim 21239host_cpu!$host_cpu$ac_delim 21240host_vendor!$host_vendor$ac_delim 21241host_os!$host_os$ac_delim 21242CC!$CC$ac_delim 21243CFLAGS!$CFLAGS$ac_delim 21244ac_ct_CC!$ac_ct_CC$ac_delim 21245CCDEPMODE!$CCDEPMODE$ac_delim 21246am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21247am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21248SED!$SED$ac_delim 21249GREP!$GREP$ac_delim 21250EGREP!$EGREP$ac_delim 21251LN_S!$LN_S$ac_delim 21252ECHO!$ECHO$ac_delim 21253AR!$AR$ac_delim 21254RANLIB!$RANLIB$ac_delim 21255_ACEOF 21256 21257 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21258 break 21259 elif $ac_last_try; then 21260 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21261echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21262 { (exit 1); exit 1; }; } 21263 else 21264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21265 fi 21266done 21267 21268ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21269if test -n "$ac_eof"; then 21270 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21271 ac_eof=`expr $ac_eof + 1` 21272fi 21273 21274cat >>$CONFIG_STATUS <<_ACEOF 21275cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21276/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21277_ACEOF 21278sed ' 21279s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21280s/^/s,@/; s/!/@,|#_!!_#|/ 21281:n 21282t n 21283s/'"$ac_delim"'$/,g/; t 21284s/$/\\/; p 21285N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21286' >>$CONFIG_STATUS <conf$$subs.sed 21287rm -f conf$$subs.sed 21288cat >>$CONFIG_STATUS <<_ACEOF 21289CEOF$ac_eof 21290_ACEOF 21291 21292 21293ac_delim='%!_!# ' 21294for ac_last_try in false false false false false :; do 21295 cat >conf$$subs.sed <<_ACEOF 21296DSYMUTIL!$DSYMUTIL$ac_delim 21297NMEDIT!$NMEDIT$ac_delim 21298CPP!$CPP$ac_delim 21299CXXCPP!$CXXCPP$ac_delim 21300F77!$F77$ac_delim 21301FFLAGS!$FFLAGS$ac_delim 21302ac_ct_F77!$ac_ct_F77$ac_delim 21303LIBTOOL!$LIBTOOL$ac_delim 21304LIBOBJS!$LIBOBJS$ac_delim 21305LTLIBOBJS!$LTLIBOBJS$ac_delim 21306_ACEOF 21307 21308 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then 21309 break 21310 elif $ac_last_try; then 21311 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21312echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21313 { (exit 1); exit 1; }; } 21314 else 21315 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21316 fi 21317done 21318 21319ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21320if test -n "$ac_eof"; then 21321 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21322 ac_eof=`expr $ac_eof + 1` 21323fi 21324 21325cat >>$CONFIG_STATUS <<_ACEOF 21326cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21327/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21328_ACEOF 21329sed ' 21330s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21331s/^/s,@/; s/!/@,|#_!!_#|/ 21332:n 21333t n 21334s/'"$ac_delim"'$/,g/; t 21335s/$/\\/; p 21336N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21337' >>$CONFIG_STATUS <conf$$subs.sed 21338rm -f conf$$subs.sed 21339cat >>$CONFIG_STATUS <<_ACEOF 21340:end 21341s/|#_!!_#|//g 21342CEOF$ac_eof 21343_ACEOF 21344 21345 21346# VPATH may cause trouble with some makes, so we remove $(srcdir), 21347# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21348# trailing colons and then remove the whole line if VPATH becomes empty 21349# (actually we leave an empty line to preserve line numbers). 21350if test "x$srcdir" = x.; then 21351 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21352s/:*\$(srcdir):*/:/ 21353s/:*\${srcdir}:*/:/ 21354s/:*@srcdir@:*/:/ 21355s/^\([^=]*=[ ]*\):*/\1/ 21356s/:*$// 21357s/^[^=]*=[ ]*$// 21358}' 21359fi 21360 21361cat >>$CONFIG_STATUS <<\_ACEOF 21362fi # test -n "$CONFIG_FILES" 21363 21364 21365for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 21366do 21367 case $ac_tag in 21368 :[FHLC]) ac_mode=$ac_tag; continue;; 21369 esac 21370 case $ac_mode$ac_tag in 21371 :[FHL]*:*);; 21372 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21373echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21374 { (exit 1); exit 1; }; };; 21375 :[FH]-) ac_tag=-:-;; 21376 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21377 esac 21378 ac_save_IFS=$IFS 21379 IFS=: 21380 set x $ac_tag 21381 IFS=$ac_save_IFS 21382 shift 21383 ac_file=$1 21384 shift 21385 21386 case $ac_mode in 21387 :L) ac_source=$1;; 21388 :[FH]) 21389 ac_file_inputs= 21390 for ac_f 21391 do 21392 case $ac_f in 21393 -) ac_f="$tmp/stdin";; 21394 *) # Look for the file first in the build tree, then in the source tree 21395 # (if the path is not absolute). The absolute path cannot be DOS-style, 21396 # because $ac_f cannot contain `:'. 21397 test -f "$ac_f" || 21398 case $ac_f in 21399 [\\/$]*) false;; 21400 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21401 esac || 21402 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21403echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21404 { (exit 1); exit 1; }; };; 21405 esac 21406 ac_file_inputs="$ac_file_inputs $ac_f" 21407 done 21408 21409 # Let's still pretend it is `configure' which instantiates (i.e., don't 21410 # use $as_me), people would be surprised to read: 21411 # /* config.h. Generated by config.status. */ 21412 configure_input="Generated from "`IFS=: 21413 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21414 if test x"$ac_file" != x-; then 21415 configure_input="$ac_file. $configure_input" 21416 { echo "$as_me:$LINENO: creating $ac_file" >&5 21417echo "$as_me: creating $ac_file" >&6;} 21418 fi 21419 21420 case $ac_tag in 21421 *:-:* | *:-) cat >"$tmp/stdin";; 21422 esac 21423 ;; 21424 esac 21425 21426 ac_dir=`$as_dirname -- "$ac_file" || 21427$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21428 X"$ac_file" : 'X\(//\)[^/]' \| \ 21429 X"$ac_file" : 'X\(//\)$' \| \ 21430 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21431echo X"$ac_file" | 21432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21433 s//\1/ 21434 q 21435 } 21436 /^X\(\/\/\)[^/].*/{ 21437 s//\1/ 21438 q 21439 } 21440 /^X\(\/\/\)$/{ 21441 s//\1/ 21442 q 21443 } 21444 /^X\(\/\).*/{ 21445 s//\1/ 21446 q 21447 } 21448 s/.*/./; q'` 21449 { as_dir="$ac_dir" 21450 case $as_dir in #( 21451 -*) as_dir=./$as_dir;; 21452 esac 21453 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21454 as_dirs= 21455 while :; do 21456 case $as_dir in #( 21457 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21458 *) as_qdir=$as_dir;; 21459 esac 21460 as_dirs="'$as_qdir' $as_dirs" 21461 as_dir=`$as_dirname -- "$as_dir" || 21462$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21463 X"$as_dir" : 'X\(//\)[^/]' \| \ 21464 X"$as_dir" : 'X\(//\)$' \| \ 21465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21466echo X"$as_dir" | 21467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21468 s//\1/ 21469 q 21470 } 21471 /^X\(\/\/\)[^/].*/{ 21472 s//\1/ 21473 q 21474 } 21475 /^X\(\/\/\)$/{ 21476 s//\1/ 21477 q 21478 } 21479 /^X\(\/\).*/{ 21480 s//\1/ 21481 q 21482 } 21483 s/.*/./; q'` 21484 test -d "$as_dir" && break 21485 done 21486 test -z "$as_dirs" || eval "mkdir $as_dirs" 21487 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21488echo "$as_me: error: cannot create directory $as_dir" >&2;} 21489 { (exit 1); exit 1; }; }; } 21490 ac_builddir=. 21491 21492case "$ac_dir" in 21493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21494*) 21495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21496 # A ".." for each directory in $ac_dir_suffix. 21497 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21498 case $ac_top_builddir_sub in 21499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21501 esac ;; 21502esac 21503ac_abs_top_builddir=$ac_pwd 21504ac_abs_builddir=$ac_pwd$ac_dir_suffix 21505# for backward compatibility: 21506ac_top_builddir=$ac_top_build_prefix 21507 21508case $srcdir in 21509 .) # We are building in place. 21510 ac_srcdir=. 21511 ac_top_srcdir=$ac_top_builddir_sub 21512 ac_abs_top_srcdir=$ac_pwd ;; 21513 [\\/]* | ?:[\\/]* ) # Absolute name. 21514 ac_srcdir=$srcdir$ac_dir_suffix; 21515 ac_top_srcdir=$srcdir 21516 ac_abs_top_srcdir=$srcdir ;; 21517 *) # Relative name. 21518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21519 ac_top_srcdir=$ac_top_build_prefix$srcdir 21520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21521esac 21522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21523 21524 21525 case $ac_mode in 21526 :F) 21527 # 21528 # CONFIG_FILE 21529 # 21530 21531 case $INSTALL in 21532 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21533 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21534 esac 21535 ac_MKDIR_P=$MKDIR_P 21536 case $MKDIR_P in 21537 [\\/$]* | ?:[\\/]* ) ;; 21538 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21539 esac 21540_ACEOF 21541 21542cat >>$CONFIG_STATUS <<\_ACEOF 21543# If the template does not know about datarootdir, expand it. 21544# FIXME: This hack should be removed a few years after 2.60. 21545ac_datarootdir_hack=; ac_datarootdir_seen= 21546 21547case `sed -n '/datarootdir/ { 21548 p 21549 q 21550} 21551/@datadir@/p 21552/@docdir@/p 21553/@infodir@/p 21554/@localedir@/p 21555/@mandir@/p 21556' $ac_file_inputs` in 21557*datarootdir*) ac_datarootdir_seen=yes;; 21558*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21559 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21560echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21561_ACEOF 21562cat >>$CONFIG_STATUS <<_ACEOF 21563 ac_datarootdir_hack=' 21564 s&@datadir@&$datadir&g 21565 s&@docdir@&$docdir&g 21566 s&@infodir@&$infodir&g 21567 s&@localedir@&$localedir&g 21568 s&@mandir@&$mandir&g 21569 s&\\\${datarootdir}&$datarootdir&g' ;; 21570esac 21571_ACEOF 21572 21573# Neutralize VPATH when `$srcdir' = `.'. 21574# Shell code in configure.ac might set extrasub. 21575# FIXME: do we really want to maintain this feature? 21576cat >>$CONFIG_STATUS <<_ACEOF 21577 sed "$ac_vpsub 21578$extrasub 21579_ACEOF 21580cat >>$CONFIG_STATUS <<\_ACEOF 21581:t 21582/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21583s&@configure_input@&$configure_input&;t t 21584s&@top_builddir@&$ac_top_builddir_sub&;t t 21585s&@srcdir@&$ac_srcdir&;t t 21586s&@abs_srcdir@&$ac_abs_srcdir&;t t 21587s&@top_srcdir@&$ac_top_srcdir&;t t 21588s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21589s&@builddir@&$ac_builddir&;t t 21590s&@abs_builddir@&$ac_abs_builddir&;t t 21591s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21592s&@INSTALL@&$ac_INSTALL&;t t 21593s&@MKDIR_P@&$ac_MKDIR_P&;t t 21594$ac_datarootdir_hack 21595" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 21596 21597test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21598 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21599 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21600 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21601which seems to be undefined. Please make sure it is defined." >&5 21602echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21603which seems to be undefined. Please make sure it is defined." >&2;} 21604 21605 rm -f "$tmp/stdin" 21606 case $ac_file in 21607 -) cat "$tmp/out"; rm -f "$tmp/out";; 21608 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 21609 esac 21610 ;; 21611 :H) 21612 # 21613 # CONFIG_HEADER 21614 # 21615_ACEOF 21616 21617# Transform confdefs.h into a sed script `conftest.defines', that 21618# substitutes the proper values into config.h.in to produce config.h. 21619rm -f conftest.defines conftest.tail 21620# First, append a space to every undef/define line, to ease matching. 21621echo 's/$/ /' >conftest.defines 21622# Then, protect against being on the right side of a sed subst, or in 21623# an unquoted here document, in config.status. If some macros were 21624# called several times there might be several #defines for the same 21625# symbol, which is useless. But do not sort them, since the last 21626# AC_DEFINE must be honored. 21627ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21628# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 21629# NAME is the cpp macro being defined, VALUE is the value it is being given. 21630# PARAMS is the parameter list in the macro definition--in most cases, it's 21631# just an empty string. 21632ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 21633ac_dB='\\)[ (].*,\\1define\\2' 21634ac_dC=' ' 21635ac_dD=' ,' 21636 21637uniq confdefs.h | 21638 sed -n ' 21639 t rset 21640 :rset 21641 s/^[ ]*#[ ]*define[ ][ ]*// 21642 t ok 21643 d 21644 :ok 21645 s/[\\&,]/\\&/g 21646 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 21647 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 21648 ' >>conftest.defines 21649 21650# Remove the space that was appended to ease matching. 21651# Then replace #undef with comments. This is necessary, for 21652# example, in the case of _POSIX_SOURCE, which is predefined and required 21653# on some systems where configure will not decide to define it. 21654# (The regexp can be short, since the line contains either #define or #undef.) 21655echo 's/ $// 21656s,^[ #]*u.*,/* & */,' >>conftest.defines 21657 21658# Break up conftest.defines: 21659ac_max_sed_lines=50 21660 21661# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 21662# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 21663# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 21664# et cetera. 21665ac_in='$ac_file_inputs' 21666ac_out='"$tmp/out1"' 21667ac_nxt='"$tmp/out2"' 21668 21669while : 21670do 21671 # Write a here document: 21672 cat >>$CONFIG_STATUS <<_ACEOF 21673 # First, check the format of the line: 21674 cat >"\$tmp/defines.sed" <<\\CEOF 21675/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 21676/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 21677b 21678:def 21679_ACEOF 21680 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 21681 echo 'CEOF 21682 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 21683 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 21684 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 21685 grep . conftest.tail >/dev/null || break 21686 rm -f conftest.defines 21687 mv conftest.tail conftest.defines 21688done 21689rm -f conftest.defines conftest.tail 21690 21691echo "ac_result=$ac_in" >>$CONFIG_STATUS 21692cat >>$CONFIG_STATUS <<\_ACEOF 21693 if test x"$ac_file" != x-; then 21694 echo "/* $configure_input */" >"$tmp/config.h" 21695 cat "$ac_result" >>"$tmp/config.h" 21696 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 21697 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21698echo "$as_me: $ac_file is unchanged" >&6;} 21699 else 21700 rm -f $ac_file 21701 mv "$tmp/config.h" $ac_file 21702 fi 21703 else 21704 echo "/* $configure_input */" 21705 cat "$ac_result" 21706 fi 21707 rm -f "$tmp/out12" 21708# Compute $ac_file's index in $config_headers. 21709_am_arg=$ac_file 21710_am_stamp_count=1 21711for _am_header in $config_headers :; do 21712 case $_am_header in 21713 $_am_arg | $_am_arg:* ) 21714 break ;; 21715 * ) 21716 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21717 esac 21718done 21719echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21720$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21721 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21722 X"$_am_arg" : 'X\(//\)$' \| \ 21723 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21724echo X"$_am_arg" | 21725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21726 s//\1/ 21727 q 21728 } 21729 /^X\(\/\/\)[^/].*/{ 21730 s//\1/ 21731 q 21732 } 21733 /^X\(\/\/\)$/{ 21734 s//\1/ 21735 q 21736 } 21737 /^X\(\/\).*/{ 21738 s//\1/ 21739 q 21740 } 21741 s/.*/./; q'`/stamp-h$_am_stamp_count 21742 ;; 21743 21744 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 21745echo "$as_me: executing $ac_file commands" >&6;} 21746 ;; 21747 esac 21748 21749 21750 case $ac_file$ac_mode in 21751 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21752 # Strip MF so we end up with the name of the file. 21753 mf=`echo "$mf" | sed -e 's/:.*$//'` 21754 # Check whether this is an Automake generated Makefile or not. 21755 # We used to match only the files named `Makefile.in', but 21756 # some people rename them; so instead we look at the file content. 21757 # Grep'ing the first line is not enough: some people post-process 21758 # each Makefile.in and add a new line on top of each file to say so. 21759 # Grep'ing the whole file is not good either: AIX grep has a line 21760 # limit of 2048, but all sed's we know have understand at least 4000. 21761 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21762 dirpart=`$as_dirname -- "$mf" || 21763$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21764 X"$mf" : 'X\(//\)[^/]' \| \ 21765 X"$mf" : 'X\(//\)$' \| \ 21766 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21767echo X"$mf" | 21768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21769 s//\1/ 21770 q 21771 } 21772 /^X\(\/\/\)[^/].*/{ 21773 s//\1/ 21774 q 21775 } 21776 /^X\(\/\/\)$/{ 21777 s//\1/ 21778 q 21779 } 21780 /^X\(\/\).*/{ 21781 s//\1/ 21782 q 21783 } 21784 s/.*/./; q'` 21785 else 21786 continue 21787 fi 21788 # Extract the definition of DEPDIR, am__include, and am__quote 21789 # from the Makefile without running `make'. 21790 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21791 test -z "$DEPDIR" && continue 21792 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21793 test -z "am__include" && continue 21794 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21795 # When using ansi2knr, U may be empty or an underscore; expand it 21796 U=`sed -n 's/^U = //p' < "$mf"` 21797 # Find all dependency output files, they are included files with 21798 # $(DEPDIR) in their names. We invoke sed twice because it is the 21799 # simplest approach to changing $(DEPDIR) to its actual value in the 21800 # expansion. 21801 for file in `sed -n " 21802 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21803 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21804 # Make sure the directory exists. 21805 test -f "$dirpart/$file" && continue 21806 fdir=`$as_dirname -- "$file" || 21807$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21808 X"$file" : 'X\(//\)[^/]' \| \ 21809 X"$file" : 'X\(//\)$' \| \ 21810 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21811echo X"$file" | 21812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21813 s//\1/ 21814 q 21815 } 21816 /^X\(\/\/\)[^/].*/{ 21817 s//\1/ 21818 q 21819 } 21820 /^X\(\/\/\)$/{ 21821 s//\1/ 21822 q 21823 } 21824 /^X\(\/\).*/{ 21825 s//\1/ 21826 q 21827 } 21828 s/.*/./; q'` 21829 { as_dir=$dirpart/$fdir 21830 case $as_dir in #( 21831 -*) as_dir=./$as_dir;; 21832 esac 21833 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21834 as_dirs= 21835 while :; do 21836 case $as_dir in #( 21837 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21838 *) as_qdir=$as_dir;; 21839 esac 21840 as_dirs="'$as_qdir' $as_dirs" 21841 as_dir=`$as_dirname -- "$as_dir" || 21842$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21843 X"$as_dir" : 'X\(//\)[^/]' \| \ 21844 X"$as_dir" : 'X\(//\)$' \| \ 21845 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21846echo X"$as_dir" | 21847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21848 s//\1/ 21849 q 21850 } 21851 /^X\(\/\/\)[^/].*/{ 21852 s//\1/ 21853 q 21854 } 21855 /^X\(\/\/\)$/{ 21856 s//\1/ 21857 q 21858 } 21859 /^X\(\/\).*/{ 21860 s//\1/ 21861 q 21862 } 21863 s/.*/./; q'` 21864 test -d "$as_dir" && break 21865 done 21866 test -z "$as_dirs" || eval "mkdir $as_dirs" 21867 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21868echo "$as_me: error: cannot create directory $as_dir" >&2;} 21869 { (exit 1); exit 1; }; }; } 21870 # echo "creating $dirpart/$file" 21871 echo '# dummy' > "$dirpart/$file" 21872 done 21873done 21874 ;; 21875 21876 esac 21877done # for ac_tag 21878 21879 21880{ (exit 0); exit 0; } 21881_ACEOF 21882chmod +x $CONFIG_STATUS 21883ac_clean_files=$ac_clean_files_save 21884 21885 21886# configure is writing to config.log, and then calls config.status. 21887# config.status does its own redirection, appending to config.log. 21888# Unfortunately, on DOS this fails, as config.log is still kept open 21889# by configure, so config.status won't be able to write to it; its 21890# output is simply discarded. So we exec the FD to /dev/null, 21891# effectively closing config.log, so it can be properly (re)opened and 21892# appended to by config.status. When coming back to configure, we 21893# need to make the FD available again. 21894if test "$no_create" != yes; then 21895 ac_cs_success=: 21896 ac_config_status_args= 21897 test "$silent" = yes && 21898 ac_config_status_args="$ac_config_status_args --quiet" 21899 exec 5>/dev/null 21900 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21901 exec 5>>config.log 21902 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21903 # would make configure fail if this is the last instruction. 21904 $ac_cs_success || { (exit 1); exit 1; } 21905fi 21906 21907