1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552 553# Check that we are running under the correct shell. 554SHELL=${CONFIG_SHELL-/bin/sh} 555 556case X$ECHO in 557X*--fallback-echo) 558 # Remove one level of quotation (which was required for Make). 559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 560 ;; 561esac 562 563echo=${ECHO-echo} 564if test "X$1" = X--no-reexec; then 565 # Discard the --no-reexec flag, and continue. 566 shift 567elif test "X$1" = X--fallback-echo; then 568 # Avoid inline document here, it may be left over 569 : 570elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 571 # Yippee, $echo works! 572 : 573else 574 # Restart under the correct shell. 575 exec $SHELL "$0" --no-reexec ${1+"$@"} 576fi 577 578if test "X$1" = X--fallback-echo; then 579 # used as fallback echo 580 shift 581 cat <<EOF 582$* 583EOF 584 exit 0 585fi 586 587# The HP-UX ksh and POSIX shell print the target directory to stdout 588# if CDPATH is set. 589(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 590 591if test -z "$ECHO"; then 592if test "X${echo_test_string+set}" != Xset; then 593# find a string as large as possible, as long as the shell can cope with it 594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 596 if (echo_test_string=`eval $cmd`) 2>/dev/null && 597 echo_test_string=`eval $cmd` && 598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 599 then 600 break 601 fi 602 done 603fi 604 605if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 607 test "X$echo_testing_string" = "X$echo_test_string"; then 608 : 609else 610 # The Solaris, AIX, and Digital Unix default echo programs unquote 611 # backslashes. This makes it impossible to quote backslashes using 612 # echo "$something" | sed 's/\\/\\\\/g' 613 # 614 # So, first we look for a working echo in the user's PATH. 615 616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 617 for dir in $PATH /usr/ucb; do 618 IFS="$lt_save_ifs" 619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 622 test "X$echo_testing_string" = "X$echo_test_string"; then 623 echo="$dir/echo" 624 break 625 fi 626 done 627 IFS="$lt_save_ifs" 628 629 if test "X$echo" = Xecho; then 630 # We didn't find a better echo, so look for alternatives. 631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 633 test "X$echo_testing_string" = "X$echo_test_string"; then 634 # This shell has a builtin print -r that does the trick. 635 echo='print -r' 636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 637 test "X$CONFIG_SHELL" != X/bin/ksh; then 638 # If we have ksh, try running configure again with it. 639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 640 export ORIGINAL_CONFIG_SHELL 641 CONFIG_SHELL=/bin/ksh 642 export CONFIG_SHELL 643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 644 else 645 # Try using printf. 646 echo='printf %s\n' 647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 649 test "X$echo_testing_string" = "X$echo_test_string"; then 650 # Cool, printf works 651 : 652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 653 test "X$echo_testing_string" = 'X\t' && 654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 655 test "X$echo_testing_string" = "X$echo_test_string"; then 656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 657 export CONFIG_SHELL 658 SHELL="$CONFIG_SHELL" 659 export SHELL 660 echo="$CONFIG_SHELL $0 --fallback-echo" 661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 662 test "X$echo_testing_string" = 'X\t' && 663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 664 test "X$echo_testing_string" = "X$echo_test_string"; then 665 echo="$CONFIG_SHELL $0 --fallback-echo" 666 else 667 # maybe with a smaller string... 668 prev=: 669 670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 672 then 673 break 674 fi 675 prev="$cmd" 676 done 677 678 if test "$prev" != 'sed 50q "$0"'; then 679 echo_test_string=`eval $prev` 680 export echo_test_string 681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 682 else 683 # Oops. We lost completely, so just stick with echo. 684 echo=echo 685 fi 686 fi 687 fi 688 fi 689fi 690fi 691 692# Copy echo and quote the copy suitably for passing to libtool from 693# the Makefile, instead of quoting the original, which is used later. 694ECHO=$echo 695if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 697fi 698 699 700 701 702tagnames=${tagnames+${tagnames},}CXX 703 704tagnames=${tagnames+${tagnames},}F77 705 706exec 7<&0 </dev/null 6>&1 707 708# Name of the host. 709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 710# so uname gets run too. 711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 712 713# 714# Initializations. 715# 716ac_default_prefix=/usr/local 717ac_clean_files= 718ac_config_libobj_dir=. 719LIBOBJS= 720cross_compiling=no 721subdirs= 722MFLAGS= 723MAKEFLAGS= 724SHELL=${CONFIG_SHELL-/bin/sh} 725 726# Identity of this package. 727PACKAGE_NAME= 728PACKAGE_TARNAME= 729PACKAGE_VERSION= 730PACKAGE_STRING= 731PACKAGE_BUGREPORT= 732 733ac_unique_file="configure.ac" 734# Factoring default headers for most tests. 735ac_includes_default="\ 736#include <stdio.h> 737#ifdef HAVE_SYS_TYPES_H 738# include <sys/types.h> 739#endif 740#ifdef HAVE_SYS_STAT_H 741# include <sys/stat.h> 742#endif 743#ifdef STDC_HEADERS 744# include <stdlib.h> 745# include <stddef.h> 746#else 747# ifdef HAVE_STDLIB_H 748# include <stdlib.h> 749# endif 750#endif 751#ifdef HAVE_STRING_H 752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 753# include <memory.h> 754# endif 755# include <string.h> 756#endif 757#ifdef HAVE_STRINGS_H 758# include <strings.h> 759#endif 760#ifdef HAVE_INTTYPES_H 761# include <inttypes.h> 762#endif 763#ifdef HAVE_STDINT_H 764# include <stdint.h> 765#endif 766#ifdef HAVE_UNISTD_H 767# include <unistd.h> 768#endif" 769 770ac_subst_vars='SHELL 771PATH_SEPARATOR 772PACKAGE_NAME 773PACKAGE_TARNAME 774PACKAGE_VERSION 775PACKAGE_STRING 776PACKAGE_BUGREPORT 777exec_prefix 778prefix 779program_transform_name 780bindir 781sbindir 782libexecdir 783datarootdir 784datadir 785sysconfdir 786sharedstatedir 787localstatedir 788includedir 789oldincludedir 790docdir 791infodir 792htmldir 793dvidir 794pdfdir 795psdir 796libdir 797localedir 798mandir 799DEFS 800ECHO_C 801ECHO_N 802ECHO_T 803LIBS 804build_alias 805host_alias 806target_alias 807INSTALL_PROGRAM 808INSTALL_SCRIPT 809INSTALL_DATA 810am__isrc 811CYGPATH_W 812PACKAGE 813VERSION 814ACLOCAL 815AUTOCONF 816AUTOMAKE 817AUTOHEADER 818MAKEINFO 819install_sh 820STRIP 821INSTALL_STRIP_PROGRAM 822mkdir_p 823AWK 824SET_MAKE 825am__leading_dot 826AMTAR 827am__tar 828am__untar 829CC 830CFLAGS 831LDFLAGS 832CPPFLAGS 833ac_ct_CC 834EXEEXT 835OBJEXT 836DEPDIR 837am__include 838am__quote 839AMDEP_TRUE 840AMDEP_FALSE 841AMDEPBACKSLASH 842CCDEPMODE 843am__fastdepCC_TRUE 844am__fastdepCC_FALSE 845build 846build_cpu 847build_vendor 848build_os 849host 850host_cpu 851host_vendor 852host_os 853SED 854GREP 855EGREP 856LN_S 857ECHO 858AR 859RANLIB 860CPP 861CXX 862CXXFLAGS 863ac_ct_CXX 864CXXDEPMODE 865am__fastdepCXX_TRUE 866am__fastdepCXX_FALSE 867CXXCPP 868F77 869FFLAGS 870ac_ct_F77 871LIBTOOL 872LIBRPATHX 873LTLIBRPATHX 874LIBRPATHX_PREFIX 875LIBRPATHY 876LTLIBRPATHY 877LIBRPATHY_PREFIX 878global_top_auxdir 879LIBOBJS 880LTLIBOBJS' 881ac_subst_files='' 882 ac_precious_vars='build_alias 883host_alias 884target_alias 885CC 886CFLAGS 887LDFLAGS 888LIBS 889CPPFLAGS 890CPP 891CXX 892CXXFLAGS 893CCC 894CXXCPP 895F77 896FFLAGS' 897 898 899# Initialize some variables set by options. 900ac_init_help= 901ac_init_version=false 902# The variables have the same names as the options, with 903# dashes changed to underlines. 904cache_file=/dev/null 905exec_prefix=NONE 906no_create= 907no_recursion= 908prefix=NONE 909program_prefix=NONE 910program_suffix=NONE 911program_transform_name=s,x,x, 912silent= 913site= 914srcdir= 915verbose= 916x_includes=NONE 917x_libraries=NONE 918 919# Installation directory options. 920# These are left unexpanded so users can "make install exec_prefix=/foo" 921# and all the variables that are supposed to be based on exec_prefix 922# by default will actually change. 923# Use braces instead of parens because sh, perl, etc. also accept them. 924# (The list follows the same order as the GNU Coding Standards.) 925bindir='${exec_prefix}/bin' 926sbindir='${exec_prefix}/sbin' 927libexecdir='${exec_prefix}/libexec' 928datarootdir='${prefix}/share' 929datadir='${datarootdir}' 930sysconfdir='${prefix}/etc' 931sharedstatedir='${prefix}/com' 932localstatedir='${prefix}/var' 933includedir='${prefix}/include' 934oldincludedir='/usr/include' 935docdir='${datarootdir}/doc/${PACKAGE}' 936infodir='${datarootdir}/info' 937htmldir='${docdir}' 938dvidir='${docdir}' 939pdfdir='${docdir}' 940psdir='${docdir}' 941libdir='${exec_prefix}/lib' 942localedir='${datarootdir}/locale' 943mandir='${datarootdir}/man' 944 945ac_prev= 946ac_dashdash= 947for ac_option 948do 949 # If the previous option needs an argument, assign it. 950 if test -n "$ac_prev"; then 951 eval $ac_prev=\$ac_option 952 ac_prev= 953 continue 954 fi 955 956 case $ac_option in 957 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 958 *) ac_optarg=yes ;; 959 esac 960 961 # Accept the important Cygnus configure options, so we can diagnose typos. 962 963 case $ac_dashdash$ac_option in 964 --) 965 ac_dashdash=yes ;; 966 967 -bindir | --bindir | --bindi | --bind | --bin | --bi) 968 ac_prev=bindir ;; 969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 970 bindir=$ac_optarg ;; 971 972 -build | --build | --buil | --bui | --bu) 973 ac_prev=build_alias ;; 974 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 975 build_alias=$ac_optarg ;; 976 977 -cache-file | --cache-file | --cache-fil | --cache-fi \ 978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 979 ac_prev=cache_file ;; 980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 982 cache_file=$ac_optarg ;; 983 984 --config-cache | -C) 985 cache_file=config.cache ;; 986 987 -datadir | --datadir | --datadi | --datad) 988 ac_prev=datadir ;; 989 -datadir=* | --datadir=* | --datadi=* | --datad=*) 990 datadir=$ac_optarg ;; 991 992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 993 | --dataroo | --dataro | --datar) 994 ac_prev=datarootdir ;; 995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 997 datarootdir=$ac_optarg ;; 998 999 -disable-* | --disable-*) 1000 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1001 # Reject names that are not valid shell variable names. 1002 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1003 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1004 { (exit 1); exit 1; }; } 1005 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1006 eval enable_$ac_feature=no ;; 1007 1008 -docdir | --docdir | --docdi | --doc | --do) 1009 ac_prev=docdir ;; 1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1011 docdir=$ac_optarg ;; 1012 1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1014 ac_prev=dvidir ;; 1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1016 dvidir=$ac_optarg ;; 1017 1018 -enable-* | --enable-*) 1019 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1020 # Reject names that are not valid shell variable names. 1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1023 { (exit 1); exit 1; }; } 1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 1025 eval enable_$ac_feature=\$ac_optarg ;; 1026 1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1029 | --exec | --exe | --ex) 1030 ac_prev=exec_prefix ;; 1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1033 | --exec=* | --exe=* | --ex=*) 1034 exec_prefix=$ac_optarg ;; 1035 1036 -gas | --gas | --ga | --g) 1037 # Obsolete; use --with-gas. 1038 with_gas=yes ;; 1039 1040 -help | --help | --hel | --he | -h) 1041 ac_init_help=long ;; 1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1043 ac_init_help=recursive ;; 1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1045 ac_init_help=short ;; 1046 1047 -host | --host | --hos | --ho) 1048 ac_prev=host_alias ;; 1049 -host=* | --host=* | --hos=* | --ho=*) 1050 host_alias=$ac_optarg ;; 1051 1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1053 ac_prev=htmldir ;; 1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1055 | --ht=*) 1056 htmldir=$ac_optarg ;; 1057 1058 -includedir | --includedir | --includedi | --included | --include \ 1059 | --includ | --inclu | --incl | --inc) 1060 ac_prev=includedir ;; 1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1062 | --includ=* | --inclu=* | --incl=* | --inc=*) 1063 includedir=$ac_optarg ;; 1064 1065 -infodir | --infodir | --infodi | --infod | --info | --inf) 1066 ac_prev=infodir ;; 1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1068 infodir=$ac_optarg ;; 1069 1070 -libdir | --libdir | --libdi | --libd) 1071 ac_prev=libdir ;; 1072 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1073 libdir=$ac_optarg ;; 1074 1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1076 | --libexe | --libex | --libe) 1077 ac_prev=libexecdir ;; 1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1079 | --libexe=* | --libex=* | --libe=*) 1080 libexecdir=$ac_optarg ;; 1081 1082 -localedir | --localedir | --localedi | --localed | --locale) 1083 ac_prev=localedir ;; 1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1085 localedir=$ac_optarg ;; 1086 1087 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1088 | --localstate | --localstat | --localsta | --localst | --locals) 1089 ac_prev=localstatedir ;; 1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1092 localstatedir=$ac_optarg ;; 1093 1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1095 ac_prev=mandir ;; 1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1097 mandir=$ac_optarg ;; 1098 1099 -nfp | --nfp | --nf) 1100 # Obsolete; use --without-fp. 1101 with_fp=no ;; 1102 1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1104 | --no-cr | --no-c | -n) 1105 no_create=yes ;; 1106 1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1109 no_recursion=yes ;; 1110 1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1113 | --oldin | --oldi | --old | --ol | --o) 1114 ac_prev=oldincludedir ;; 1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1118 oldincludedir=$ac_optarg ;; 1119 1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1121 ac_prev=prefix ;; 1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1123 prefix=$ac_optarg ;; 1124 1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1126 | --program-pre | --program-pr | --program-p) 1127 ac_prev=program_prefix ;; 1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1130 program_prefix=$ac_optarg ;; 1131 1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1133 | --program-suf | --program-su | --program-s) 1134 ac_prev=program_suffix ;; 1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1137 program_suffix=$ac_optarg ;; 1138 1139 -program-transform-name | --program-transform-name \ 1140 | --program-transform-nam | --program-transform-na \ 1141 | --program-transform-n | --program-transform- \ 1142 | --program-transform | --program-transfor \ 1143 | --program-transfo | --program-transf \ 1144 | --program-trans | --program-tran \ 1145 | --progr-tra | --program-tr | --program-t) 1146 ac_prev=program_transform_name ;; 1147 -program-transform-name=* | --program-transform-name=* \ 1148 | --program-transform-nam=* | --program-transform-na=* \ 1149 | --program-transform-n=* | --program-transform-=* \ 1150 | --program-transform=* | --program-transfor=* \ 1151 | --program-transfo=* | --program-transf=* \ 1152 | --program-trans=* | --program-tran=* \ 1153 | --progr-tra=* | --program-tr=* | --program-t=*) 1154 program_transform_name=$ac_optarg ;; 1155 1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1157 ac_prev=pdfdir ;; 1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1159 pdfdir=$ac_optarg ;; 1160 1161 -psdir | --psdir | --psdi | --psd | --ps) 1162 ac_prev=psdir ;; 1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1164 psdir=$ac_optarg ;; 1165 1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1167 | -silent | --silent | --silen | --sile | --sil) 1168 silent=yes ;; 1169 1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1171 ac_prev=sbindir ;; 1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1173 | --sbi=* | --sb=*) 1174 sbindir=$ac_optarg ;; 1175 1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1178 | --sharedst | --shareds | --shared | --share | --shar \ 1179 | --sha | --sh) 1180 ac_prev=sharedstatedir ;; 1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1184 | --sha=* | --sh=*) 1185 sharedstatedir=$ac_optarg ;; 1186 1187 -site | --site | --sit) 1188 ac_prev=site ;; 1189 -site=* | --site=* | --sit=*) 1190 site=$ac_optarg ;; 1191 1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1193 ac_prev=srcdir ;; 1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1195 srcdir=$ac_optarg ;; 1196 1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1198 | --syscon | --sysco | --sysc | --sys | --sy) 1199 ac_prev=sysconfdir ;; 1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1202 sysconfdir=$ac_optarg ;; 1203 1204 -target | --target | --targe | --targ | --tar | --ta | --t) 1205 ac_prev=target_alias ;; 1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1207 target_alias=$ac_optarg ;; 1208 1209 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1210 verbose=yes ;; 1211 1212 -version | --version | --versio | --versi | --vers | -V) 1213 ac_init_version=: ;; 1214 1215 -with-* | --with-*) 1216 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1217 # Reject names that are not valid shell variable names. 1218 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1219 { echo "$as_me: error: invalid package name: $ac_package" >&2 1220 { (exit 1); exit 1; }; } 1221 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1222 eval with_$ac_package=\$ac_optarg ;; 1223 1224 -without-* | --without-*) 1225 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1226 # Reject names that are not valid shell variable names. 1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1228 { echo "$as_me: error: invalid package name: $ac_package" >&2 1229 { (exit 1); exit 1; }; } 1230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1231 eval with_$ac_package=no ;; 1232 1233 --x) 1234 # Obsolete; use --with-x. 1235 with_x=yes ;; 1236 1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1238 | --x-incl | --x-inc | --x-in | --x-i) 1239 ac_prev=x_includes ;; 1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1242 x_includes=$ac_optarg ;; 1243 1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1246 ac_prev=x_libraries ;; 1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1249 x_libraries=$ac_optarg ;; 1250 1251 -*) { echo "$as_me: error: unrecognized option: $ac_option 1252Try \`$0 --help' for more information." >&2 1253 { (exit 1); exit 1; }; } 1254 ;; 1255 1256 *=*) 1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1258 # Reject names that are not valid shell variable names. 1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1260 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1261 { (exit 1); exit 1; }; } 1262 eval $ac_envvar=\$ac_optarg 1263 export $ac_envvar ;; 1264 1265 *) 1266 # FIXME: should be removed in autoconf 3.0. 1267 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1269 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1271 ;; 1272 1273 esac 1274done 1275 1276if test -n "$ac_prev"; then 1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1278 { echo "$as_me: error: missing argument to $ac_option" >&2 1279 { (exit 1); exit 1; }; } 1280fi 1281 1282# Be sure to have absolute directory names. 1283for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1284 datadir sysconfdir sharedstatedir localstatedir includedir \ 1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1286 libdir localedir mandir 1287do 1288 eval ac_val=\$$ac_var 1289 case $ac_val in 1290 [\\/$]* | ?:[\\/]* ) continue;; 1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1292 esac 1293 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1294 { (exit 1); exit 1; }; } 1295done 1296 1297# There might be people who depend on the old broken behavior: `$host' 1298# used to hold the argument of --host etc. 1299# FIXME: To remove some day. 1300build=$build_alias 1301host=$host_alias 1302target=$target_alias 1303 1304# FIXME: To remove some day. 1305if test "x$host_alias" != x; then 1306 if test "x$build_alias" = x; then 1307 cross_compiling=maybe 1308 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1309 If a cross compiler is detected then cross compile mode will be used." >&2 1310 elif test "x$build_alias" != "x$host_alias"; then 1311 cross_compiling=yes 1312 fi 1313fi 1314 1315ac_tool_prefix= 1316test -n "$host_alias" && ac_tool_prefix=$host_alias- 1317 1318test "$silent" = yes && exec 6>/dev/null 1319 1320 1321ac_pwd=`pwd` && test -n "$ac_pwd" && 1322ac_ls_di=`ls -di .` && 1323ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1324 { echo "$as_me: error: Working directory cannot be determined" >&2 1325 { (exit 1); exit 1; }; } 1326test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1327 { echo "$as_me: error: pwd does not report name of working directory" >&2 1328 { (exit 1); exit 1; }; } 1329 1330 1331# Find the source files, if location was not specified. 1332if test -z "$srcdir"; then 1333 ac_srcdir_defaulted=yes 1334 # Try the directory containing this script, then the parent directory. 1335 ac_confdir=`$as_dirname -- "$0" || 1336$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1337 X"$0" : 'X\(//\)[^/]' \| \ 1338 X"$0" : 'X\(//\)$' \| \ 1339 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1340echo X"$0" | 1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\/\)[^/].*/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\/\)$/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\).*/{ 1354 s//\1/ 1355 q 1356 } 1357 s/.*/./; q'` 1358 srcdir=$ac_confdir 1359 if test ! -r "$srcdir/$ac_unique_file"; then 1360 srcdir=.. 1361 fi 1362else 1363 ac_srcdir_defaulted=no 1364fi 1365if test ! -r "$srcdir/$ac_unique_file"; then 1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1367 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1368 { (exit 1); exit 1; }; } 1369fi 1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1371ac_abs_confdir=`( 1372 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1373 { (exit 1); exit 1; }; } 1374 pwd)` 1375# When building in place, set srcdir=. 1376if test "$ac_abs_confdir" = "$ac_pwd"; then 1377 srcdir=. 1378fi 1379# Remove unnecessary trailing slashes from srcdir. 1380# Double slashes in file names in object file debugging info 1381# mess up M-x gdb in Emacs. 1382case $srcdir in 1383*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1384esac 1385for ac_var in $ac_precious_vars; do 1386 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_env_${ac_var}_value=\$${ac_var} 1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1389 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1390done 1391 1392# 1393# Report the --help message. 1394# 1395if test "$ac_init_help" = "long"; then 1396 # Omit some internal or obsolete options to make the list less imposing. 1397 # This message is too long to be a string in the A/UX 3.1 sh. 1398 cat <<_ACEOF 1399\`configure' configures this package to adapt to many kinds of systems. 1400 1401Usage: $0 [OPTION]... [VAR=VALUE]... 1402 1403To assign environment variables (e.g., CC, CFLAGS...), specify them as 1404VAR=VALUE. See below for descriptions of some of the useful variables. 1405 1406Defaults for the options are specified in brackets. 1407 1408Configuration: 1409 -h, --help display this help and exit 1410 --help=short display options specific to this package 1411 --help=recursive display the short help of all the included packages 1412 -V, --version display version information and exit 1413 -q, --quiet, --silent do not print \`checking...' messages 1414 --cache-file=FILE cache test results in FILE [disabled] 1415 -C, --config-cache alias for \`--cache-file=config.cache' 1416 -n, --no-create do not create output files 1417 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1418 1419Installation directories: 1420 --prefix=PREFIX install architecture-independent files in PREFIX 1421 [$ac_default_prefix] 1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1423 [PREFIX] 1424 1425By default, \`make install' will install all the files in 1426\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1427an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1428for instance \`--prefix=\$HOME'. 1429 1430For better control, use the options below. 1431 1432Fine tuning of the installation directories: 1433 --bindir=DIR user executables [EPREFIX/bin] 1434 --sbindir=DIR system admin executables [EPREFIX/sbin] 1435 --libexecdir=DIR program executables [EPREFIX/libexec] 1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1439 --libdir=DIR object code libraries [EPREFIX/lib] 1440 --includedir=DIR C header files [PREFIX/include] 1441 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1444 --infodir=DIR info documentation [DATAROOTDIR/info] 1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1446 --mandir=DIR man documentation [DATAROOTDIR/man] 1447 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1448 --htmldir=DIR html documentation [DOCDIR] 1449 --dvidir=DIR dvi documentation [DOCDIR] 1450 --pdfdir=DIR pdf documentation [DOCDIR] 1451 --psdir=DIR ps documentation [DOCDIR] 1452_ACEOF 1453 1454 cat <<\_ACEOF 1455 1456Program names: 1457 --program-prefix=PREFIX prepend PREFIX to installed program names 1458 --program-suffix=SUFFIX append SUFFIX to installed program names 1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1460 1461System types: 1462 --build=BUILD configure for building on BUILD [guessed] 1463 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1464_ACEOF 1465fi 1466 1467if test -n "$ac_init_help"; then 1468 1469 cat <<\_ACEOF 1470 1471Optional Features: 1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1474 --disable-dependency-tracking speeds up one-time build 1475 --enable-dependency-tracking do not reject slow dependency extractors 1476 --enable-shared[=PKGS] build shared libraries [default=yes] 1477 --enable-static[=PKGS] build static libraries [default=yes] 1478 --enable-fast-install[=PKGS] 1479 optimize for fast installation [default=yes] 1480 --disable-libtool-lock avoid locking (might break parallel builds) 1481 --disable-rpath do not hardcode runtime library paths 1482 1483Optional Packages: 1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1487 --with-pic try to use only PIC/non-PIC objects [default=use 1488 both] 1489 --with-tags[=TAGS] include additional configurations [automatic] 1490 --with-gnu-ld assume the C compiler uses GNU ld default=no 1491 --with-librpathx-prefix[=DIR] search for librpathx in DIR/include and DIR/lib 1492 --without-librpathx-prefix don't search for librpathx in includedir and libdir 1493 --with-librpathy-prefix[=DIR] search for librpathy in DIR/include and DIR/lib 1494 --without-librpathy-prefix don't search for librpathy in includedir and libdir 1495 1496Some influential environment variables: 1497 CC C compiler command 1498 CFLAGS C compiler flags 1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1500 nonstandard directory <lib dir> 1501 LIBS libraries to pass to the linker, e.g. -l<library> 1502 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1503 you have headers in a nonstandard directory <include dir> 1504 CPP C preprocessor 1505 CXX C++ compiler command 1506 CXXFLAGS C++ compiler flags 1507 CXXCPP C++ preprocessor 1508 F77 Fortran 77 compiler command 1509 FFLAGS Fortran 77 compiler flags 1510 1511Use these variables to override the choices made by `configure' or to help 1512it to find libraries and programs with nonstandard names/locations. 1513 1514_ACEOF 1515ac_status=$? 1516fi 1517 1518if test "$ac_init_help" = "recursive"; then 1519 # If there are subdirs, report their specific --help. 1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1521 test -d "$ac_dir" || continue 1522 ac_builddir=. 1523 1524case "$ac_dir" in 1525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1526*) 1527 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1528 # A ".." for each directory in $ac_dir_suffix. 1529 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1530 case $ac_top_builddir_sub in 1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1533 esac ;; 1534esac 1535ac_abs_top_builddir=$ac_pwd 1536ac_abs_builddir=$ac_pwd$ac_dir_suffix 1537# for backward compatibility: 1538ac_top_builddir=$ac_top_build_prefix 1539 1540case $srcdir in 1541 .) # We are building in place. 1542 ac_srcdir=. 1543 ac_top_srcdir=$ac_top_builddir_sub 1544 ac_abs_top_srcdir=$ac_pwd ;; 1545 [\\/]* | ?:[\\/]* ) # Absolute name. 1546 ac_srcdir=$srcdir$ac_dir_suffix; 1547 ac_top_srcdir=$srcdir 1548 ac_abs_top_srcdir=$srcdir ;; 1549 *) # Relative name. 1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1551 ac_top_srcdir=$ac_top_build_prefix$srcdir 1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1553esac 1554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1555 1556 cd "$ac_dir" || { ac_status=$?; continue; } 1557 # Check for guested configure. 1558 if test -f "$ac_srcdir/configure.gnu"; then 1559 echo && 1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1561 elif test -f "$ac_srcdir/configure"; then 1562 echo && 1563 $SHELL "$ac_srcdir/configure" --help=recursive 1564 else 1565 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1566 fi || ac_status=$? 1567 cd "$ac_pwd" || { ac_status=$?; break; } 1568 done 1569fi 1570 1571test -n "$ac_init_help" && exit $ac_status 1572if $ac_init_version; then 1573 cat <<\_ACEOF 1574configure 1575generated by GNU Autoconf 2.61 1576 1577Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15782002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1579This configure script is free software; the Free Software Foundation 1580gives unlimited permission to copy, distribute and modify it. 1581_ACEOF 1582 exit 1583fi 1584cat >config.log <<_ACEOF 1585This file contains any messages produced by compilers while 1586running configure, to aid debugging if configure makes a mistake. 1587 1588It was created by $as_me, which was 1589generated by GNU Autoconf 2.61. Invocation command line was 1590 1591 $ $0 $@ 1592 1593_ACEOF 1594exec 5>>config.log 1595{ 1596cat <<_ASUNAME 1597## --------- ## 1598## Platform. ## 1599## --------- ## 1600 1601hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1602uname -m = `(uname -m) 2>/dev/null || echo unknown` 1603uname -r = `(uname -r) 2>/dev/null || echo unknown` 1604uname -s = `(uname -s) 2>/dev/null || echo unknown` 1605uname -v = `(uname -v) 2>/dev/null || echo unknown` 1606 1607/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1608/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1609 1610/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1611/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1612/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1613/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1614/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1615/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1616/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1617 1618_ASUNAME 1619 1620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1621for as_dir in $PATH 1622do 1623 IFS=$as_save_IFS 1624 test -z "$as_dir" && as_dir=. 1625 echo "PATH: $as_dir" 1626done 1627IFS=$as_save_IFS 1628 1629} >&5 1630 1631cat >&5 <<_ACEOF 1632 1633 1634## ----------- ## 1635## Core tests. ## 1636## ----------- ## 1637 1638_ACEOF 1639 1640 1641# Keep a trace of the command line. 1642# Strip out --no-create and --no-recursion so they do not pile up. 1643# Strip out --silent because we don't want to record it for future runs. 1644# Also quote any args containing shell meta-characters. 1645# Make two passes to allow for proper duplicate-argument suppression. 1646ac_configure_args= 1647ac_configure_args0= 1648ac_configure_args1= 1649ac_must_keep_next=false 1650for ac_pass in 1 2 1651do 1652 for ac_arg 1653 do 1654 case $ac_arg in 1655 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1657 | -silent | --silent | --silen | --sile | --sil) 1658 continue ;; 1659 *\'*) 1660 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1661 esac 1662 case $ac_pass in 1663 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1664 2) 1665 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1666 if test $ac_must_keep_next = true; then 1667 ac_must_keep_next=false # Got value, back to normal. 1668 else 1669 case $ac_arg in 1670 *=* | --config-cache | -C | -disable-* | --disable-* \ 1671 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1672 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1673 | -with-* | --with-* | -without-* | --without-* | --x) 1674 case "$ac_configure_args0 " in 1675 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1676 esac 1677 ;; 1678 -* ) ac_must_keep_next=true ;; 1679 esac 1680 fi 1681 ac_configure_args="$ac_configure_args '$ac_arg'" 1682 ;; 1683 esac 1684 done 1685done 1686$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1687$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1688 1689# When interrupted or exit'd, cleanup temporary files, and complete 1690# config.log. We remove comments because anyway the quotes in there 1691# would cause problems or look ugly. 1692# WARNING: Use '\'' to represent an apostrophe within the trap. 1693# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1694trap 'exit_status=$? 1695 # Save into config.log some information that might help in debugging. 1696 { 1697 echo 1698 1699 cat <<\_ASBOX 1700## ---------------- ## 1701## Cache variables. ## 1702## ---------------- ## 1703_ASBOX 1704 echo 1705 # The following way of writing the cache mishandles newlines in values, 1706( 1707 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1708 eval ac_val=\$$ac_var 1709 case $ac_val in #( 1710 *${as_nl}*) 1711 case $ac_var in #( 1712 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1713echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1714 esac 1715 case $ac_var in #( 1716 _ | IFS | as_nl) ;; #( 1717 *) $as_unset $ac_var ;; 1718 esac ;; 1719 esac 1720 done 1721 (set) 2>&1 | 1722 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1723 *${as_nl}ac_space=\ *) 1724 sed -n \ 1725 "s/'\''/'\''\\\\'\'''\''/g; 1726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1727 ;; #( 1728 *) 1729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1730 ;; 1731 esac | 1732 sort 1733) 1734 echo 1735 1736 cat <<\_ASBOX 1737## ----------------- ## 1738## Output variables. ## 1739## ----------------- ## 1740_ASBOX 1741 echo 1742 for ac_var in $ac_subst_vars 1743 do 1744 eval ac_val=\$$ac_var 1745 case $ac_val in 1746 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1747 esac 1748 echo "$ac_var='\''$ac_val'\''" 1749 done | sort 1750 echo 1751 1752 if test -n "$ac_subst_files"; then 1753 cat <<\_ASBOX 1754## ------------------- ## 1755## File substitutions. ## 1756## ------------------- ## 1757_ASBOX 1758 echo 1759 for ac_var in $ac_subst_files 1760 do 1761 eval ac_val=\$$ac_var 1762 case $ac_val in 1763 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1764 esac 1765 echo "$ac_var='\''$ac_val'\''" 1766 done | sort 1767 echo 1768 fi 1769 1770 if test -s confdefs.h; then 1771 cat <<\_ASBOX 1772## ----------- ## 1773## confdefs.h. ## 1774## ----------- ## 1775_ASBOX 1776 echo 1777 cat confdefs.h 1778 echo 1779 fi 1780 test "$ac_signal" != 0 && 1781 echo "$as_me: caught signal $ac_signal" 1782 echo "$as_me: exit $exit_status" 1783 } >&5 1784 rm -f core *.core core.conftest.* && 1785 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1786 exit $exit_status 1787' 0 1788for ac_signal in 1 2 13 15; do 1789 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1790done 1791ac_signal=0 1792 1793# confdefs.h avoids OS command line length limits that DEFS can exceed. 1794rm -f -r conftest* confdefs.h 1795 1796# Predefined preprocessor variables. 1797 1798cat >>confdefs.h <<_ACEOF 1799#define PACKAGE_NAME "$PACKAGE_NAME" 1800_ACEOF 1801 1802 1803cat >>confdefs.h <<_ACEOF 1804#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1805_ACEOF 1806 1807 1808cat >>confdefs.h <<_ACEOF 1809#define PACKAGE_VERSION "$PACKAGE_VERSION" 1810_ACEOF 1811 1812 1813cat >>confdefs.h <<_ACEOF 1814#define PACKAGE_STRING "$PACKAGE_STRING" 1815_ACEOF 1816 1817 1818cat >>confdefs.h <<_ACEOF 1819#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1820_ACEOF 1821 1822 1823# Let the site file select an alternate cache file if it wants to. 1824# Prefer explicitly selected file to automatically selected ones. 1825if test -n "$CONFIG_SITE"; then 1826 set x "$CONFIG_SITE" 1827elif test "x$prefix" != xNONE; then 1828 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1829else 1830 set x "$ac_default_prefix/share/config.site" \ 1831 "$ac_default_prefix/etc/config.site" 1832fi 1833shift 1834for ac_site_file 1835do 1836 if test -r "$ac_site_file"; then 1837 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1838echo "$as_me: loading site script $ac_site_file" >&6;} 1839 sed 's/^/| /' "$ac_site_file" >&5 1840 . "$ac_site_file" 1841 fi 1842done 1843 1844if test -r "$cache_file"; then 1845 # Some versions of bash will fail to source /dev/null (special 1846 # files actually), so we avoid doing that. 1847 if test -f "$cache_file"; then 1848 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1849echo "$as_me: loading cache $cache_file" >&6;} 1850 case $cache_file in 1851 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1852 *) . "./$cache_file";; 1853 esac 1854 fi 1855else 1856 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1857echo "$as_me: creating cache $cache_file" >&6;} 1858 >$cache_file 1859fi 1860 1861# Check that the precious variables saved in the cache have kept the same 1862# value. 1863ac_cache_corrupted=false 1864for ac_var in $ac_precious_vars; do 1865 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1866 eval ac_new_set=\$ac_env_${ac_var}_set 1867 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1868 eval ac_new_val=\$ac_env_${ac_var}_value 1869 case $ac_old_set,$ac_new_set in 1870 set,) 1871 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1872echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1873 ac_cache_corrupted=: ;; 1874 ,set) 1875 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1876echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1877 ac_cache_corrupted=: ;; 1878 ,);; 1879 *) 1880 if test "x$ac_old_val" != "x$ac_new_val"; then 1881 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1882echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1883 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1884echo "$as_me: former value: $ac_old_val" >&2;} 1885 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1886echo "$as_me: current value: $ac_new_val" >&2;} 1887 ac_cache_corrupted=: 1888 fi;; 1889 esac 1890 # Pass precious variables to config.status. 1891 if test "$ac_new_set" = set; then 1892 case $ac_new_val in 1893 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1894 *) ac_arg=$ac_var=$ac_new_val ;; 1895 esac 1896 case " $ac_configure_args " in 1897 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1898 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1899 esac 1900 fi 1901done 1902if $ac_cache_corrupted; then 1903 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1904echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1905 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1906echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1907 { (exit 1); exit 1; }; } 1908fi 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926ac_ext=c 1927ac_cpp='$CPP $CPPFLAGS' 1928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1930ac_compiler_gnu=$ac_cv_c_compiler_gnu 1931 1932 1933ac_aux_dir= 1934for ac_dir in ../../../build-aux "$srcdir"/../../../build-aux; do 1935 if test -f "$ac_dir/install-sh"; then 1936 ac_aux_dir=$ac_dir 1937 ac_install_sh="$ac_aux_dir/install-sh -c" 1938 break 1939 elif test -f "$ac_dir/install.sh"; then 1940 ac_aux_dir=$ac_dir 1941 ac_install_sh="$ac_aux_dir/install.sh -c" 1942 break 1943 elif test -f "$ac_dir/shtool"; then 1944 ac_aux_dir=$ac_dir 1945 ac_install_sh="$ac_aux_dir/shtool install -c" 1946 break 1947 fi 1948done 1949if test -z "$ac_aux_dir"; then 1950 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&5 1951echo "$as_me: error: cannot find install-sh or install.sh in ../../../build-aux \"$srcdir\"/../../../build-aux" >&2;} 1952 { (exit 1); exit 1; }; } 1953fi 1954 1955# These three variables are undocumented and unsupported, 1956# and are intended to be withdrawn in a future Autoconf release. 1957# They can cause serious problems if a builder's source tree is in a directory 1958# whose full name contains unusual characters. 1959ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1960ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1961ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1962 1963 1964am__api_version='1.10' 1965 1966# Find a good install program. We prefer a C program (faster), 1967# so one script is as good as another. But avoid the broken or 1968# incompatible versions: 1969# SysV /etc/install, /usr/sbin/install 1970# SunOS /usr/etc/install 1971# IRIX /sbin/install 1972# AIX /bin/install 1973# AmigaOS /C/install, which installs bootblocks on floppy discs 1974# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1975# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1976# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1977# OS/2's system install, which has a completely different semantic 1978# ./install, which can be erroneously created by make from ./install.sh. 1979{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1980echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1981if test -z "$INSTALL"; then 1982if test "${ac_cv_path_install+set}" = set; then 1983 echo $ECHO_N "(cached) $ECHO_C" >&6 1984else 1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1986for as_dir in $PATH 1987do 1988 IFS=$as_save_IFS 1989 test -z "$as_dir" && as_dir=. 1990 # Account for people who put trailing slashes in PATH elements. 1991case $as_dir/ in 1992 ./ | .// | /cC/* | \ 1993 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1994 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1995 /usr/ucb/* ) ;; 1996 *) 1997 # OSF1 and SCO ODT 3.0 have their own names for install. 1998 # Don't use installbsd from OSF since it installs stuff as root 1999 # by default. 2000 for ac_prog in ginstall scoinst install; do 2001 for ac_exec_ext in '' $ac_executable_extensions; do 2002 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2003 if test $ac_prog = install && 2004 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2005 # AIX install. It has an incompatible calling convention. 2006 : 2007 elif test $ac_prog = install && 2008 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2009 # program-specific install script used by HP pwplus--don't use. 2010 : 2011 else 2012 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2013 break 3 2014 fi 2015 fi 2016 done 2017 done 2018 ;; 2019esac 2020done 2021IFS=$as_save_IFS 2022 2023 2024fi 2025 if test "${ac_cv_path_install+set}" = set; then 2026 INSTALL=$ac_cv_path_install 2027 else 2028 # As a last resort, use the slow shell script. Don't cache a 2029 # value for INSTALL within a source directory, because that will 2030 # break other packages using the cache if that directory is 2031 # removed, or if the value is a relative name. 2032 INSTALL=$ac_install_sh 2033 fi 2034fi 2035{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2036echo "${ECHO_T}$INSTALL" >&6; } 2037 2038# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2039# It thinks the first close brace ends the variable substitution. 2040test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2041 2042test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2043 2044test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2045 2046{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2047echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2048# Just in case 2049sleep 1 2050echo timestamp > conftest.file 2051# Do `set' in a subshell so we don't clobber the current shell's 2052# arguments. Must try -L first in case configure is actually a 2053# symlink; some systems play weird games with the mod time of symlinks 2054# (eg FreeBSD returns the mod time of the symlink's containing 2055# directory). 2056if ( 2057 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2058 if test "$*" = "X"; then 2059 # -L didn't work. 2060 set X `ls -t $srcdir/configure conftest.file` 2061 fi 2062 rm -f conftest.file 2063 if test "$*" != "X $srcdir/configure conftest.file" \ 2064 && test "$*" != "X conftest.file $srcdir/configure"; then 2065 2066 # If neither matched, then we have a broken ls. This can happen 2067 # if, for instance, CONFIG_SHELL is bash and it inherits a 2068 # broken ls alias from the environment. This has actually 2069 # happened. Such a system could not be considered "sane". 2070 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2071alias in your environment" >&5 2072echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2073alias in your environment" >&2;} 2074 { (exit 1); exit 1; }; } 2075 fi 2076 2077 test "$2" = conftest.file 2078 ) 2079then 2080 # Ok. 2081 : 2082else 2083 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2084Check your system clock" >&5 2085echo "$as_me: error: newly created file is older than distributed files! 2086Check your system clock" >&2;} 2087 { (exit 1); exit 1; }; } 2088fi 2089{ echo "$as_me:$LINENO: result: yes" >&5 2090echo "${ECHO_T}yes" >&6; } 2091test "$program_prefix" != NONE && 2092 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2093# Use a double $ so make ignores it. 2094test "$program_suffix" != NONE && 2095 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2096# Double any \ or $. echo might interpret backslashes. 2097# By default was `s,x,x', remove it if useless. 2098cat <<\_ACEOF >conftest.sed 2099s/[\\$]/&&/g;s/;s,x,x,$// 2100_ACEOF 2101program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2102rm -f conftest.sed 2103 2104# expand $ac_aux_dir to an absolute path 2105am_aux_dir=`cd $ac_aux_dir && pwd` 2106 2107test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2108# Use eval to expand $SHELL 2109if eval "$MISSING --run true"; then 2110 am_missing_run="$MISSING --run " 2111else 2112 am_missing_run= 2113 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2114echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2115fi 2116 2117{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2118echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } 2119if test -z "$MKDIR_P"; then 2120 if test "${ac_cv_path_mkdir+set}" = set; then 2121 echo $ECHO_N "(cached) $ECHO_C" >&6 2122else 2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2124for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2125do 2126 IFS=$as_save_IFS 2127 test -z "$as_dir" && as_dir=. 2128 for ac_prog in mkdir gmkdir; do 2129 for ac_exec_ext in '' $ac_executable_extensions; do 2130 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2131 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2132 'mkdir (GNU coreutils) '* | \ 2133 'mkdir (coreutils) '* | \ 2134 'mkdir (fileutils) '4.1*) 2135 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2136 break 3;; 2137 esac 2138 done 2139 done 2140done 2141IFS=$as_save_IFS 2142 2143fi 2144 2145 if test "${ac_cv_path_mkdir+set}" = set; then 2146 MKDIR_P="$ac_cv_path_mkdir -p" 2147 else 2148 # As a last resort, use the slow shell script. Don't cache a 2149 # value for MKDIR_P within a source directory, because that will 2150 # break other packages using the cache if that directory is 2151 # removed, or if the value is a relative name. 2152 test -d ./--version && rmdir ./--version 2153 MKDIR_P="$ac_install_sh -d" 2154 fi 2155fi 2156{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2157echo "${ECHO_T}$MKDIR_P" >&6; } 2158 2159mkdir_p="$MKDIR_P" 2160case $mkdir_p in 2161 [\\/$]* | ?:[\\/]*) ;; 2162 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2163esac 2164 2165for ac_prog in gawk mawk nawk awk 2166do 2167 # Extract the first word of "$ac_prog", so it can be a program name with args. 2168set dummy $ac_prog; ac_word=$2 2169{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2171if test "${ac_cv_prog_AWK+set}" = set; then 2172 echo $ECHO_N "(cached) $ECHO_C" >&6 2173else 2174 if test -n "$AWK"; then 2175 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2176else 2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2178for as_dir in $PATH 2179do 2180 IFS=$as_save_IFS 2181 test -z "$as_dir" && as_dir=. 2182 for ac_exec_ext in '' $ac_executable_extensions; do 2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2184 ac_cv_prog_AWK="$ac_prog" 2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2186 break 2 2187 fi 2188done 2189done 2190IFS=$as_save_IFS 2191 2192fi 2193fi 2194AWK=$ac_cv_prog_AWK 2195if test -n "$AWK"; then 2196 { echo "$as_me:$LINENO: result: $AWK" >&5 2197echo "${ECHO_T}$AWK" >&6; } 2198else 2199 { echo "$as_me:$LINENO: result: no" >&5 2200echo "${ECHO_T}no" >&6; } 2201fi 2202 2203 2204 test -n "$AWK" && break 2205done 2206 2207{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2208echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2209set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2210if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2211 echo $ECHO_N "(cached) $ECHO_C" >&6 2212else 2213 cat >conftest.make <<\_ACEOF 2214SHELL = /bin/sh 2215all: 2216 @echo '@@@%%%=$(MAKE)=@@@%%%' 2217_ACEOF 2218# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2219case `${MAKE-make} -f conftest.make 2>/dev/null` in 2220 *@@@%%%=?*=@@@%%%*) 2221 eval ac_cv_prog_make_${ac_make}_set=yes;; 2222 *) 2223 eval ac_cv_prog_make_${ac_make}_set=no;; 2224esac 2225rm -f conftest.make 2226fi 2227if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2228 { echo "$as_me:$LINENO: result: yes" >&5 2229echo "${ECHO_T}yes" >&6; } 2230 SET_MAKE= 2231else 2232 { echo "$as_me:$LINENO: result: no" >&5 2233echo "${ECHO_T}no" >&6; } 2234 SET_MAKE="MAKE=${MAKE-make}" 2235fi 2236 2237rm -rf .tst 2>/dev/null 2238mkdir .tst 2>/dev/null 2239if test -d .tst; then 2240 am__leading_dot=. 2241else 2242 am__leading_dot=_ 2243fi 2244rmdir .tst 2>/dev/null 2245 2246if test "`cd $srcdir && pwd`" != "`pwd`"; then 2247 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2248 # is not polluted with repeated "-I." 2249 am__isrc=' -I$(srcdir)' 2250 # test to see if srcdir already configured 2251 if test -f $srcdir/config.status; then 2252 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2253echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2254 { (exit 1); exit 1; }; } 2255 fi 2256fi 2257 2258# test whether we have cygpath 2259if test -z "$CYGPATH_W"; then 2260 if (cygpath --version) >/dev/null 2>/dev/null; then 2261 CYGPATH_W='cygpath -w' 2262 else 2263 CYGPATH_W=echo 2264 fi 2265fi 2266 2267 2268# Define the identity of the package. 2269 PACKAGE=gettext_rpathz 2270 VERSION=0 2271 2272 2273cat >>confdefs.h <<_ACEOF 2274#define PACKAGE "$PACKAGE" 2275_ACEOF 2276 2277 2278cat >>confdefs.h <<_ACEOF 2279#define VERSION "$VERSION" 2280_ACEOF 2281 2282# Some tools Automake needs. 2283 2284ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2285 2286 2287AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2288 2289 2290AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2291 2292 2293AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2294 2295 2296MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2297 2298install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 2299 2300# Installed binaries are usually stripped using `strip' when the user 2301# run `make install-strip'. However `strip' might not be the right 2302# tool to use in cross-compilation environments, therefore Automake 2303# will honor the `STRIP' environment variable to overrule this program. 2304if test "$cross_compiling" != no; then 2305 if test -n "$ac_tool_prefix"; then 2306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2307set dummy ${ac_tool_prefix}strip; ac_word=$2 2308{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2310if test "${ac_cv_prog_STRIP+set}" = set; then 2311 echo $ECHO_N "(cached) $ECHO_C" >&6 2312else 2313 if test -n "$STRIP"; then 2314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2315else 2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2317for as_dir in $PATH 2318do 2319 IFS=$as_save_IFS 2320 test -z "$as_dir" && as_dir=. 2321 for ac_exec_ext in '' $ac_executable_extensions; do 2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2323 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2325 break 2 2326 fi 2327done 2328done 2329IFS=$as_save_IFS 2330 2331fi 2332fi 2333STRIP=$ac_cv_prog_STRIP 2334if test -n "$STRIP"; then 2335 { echo "$as_me:$LINENO: result: $STRIP" >&5 2336echo "${ECHO_T}$STRIP" >&6; } 2337else 2338 { echo "$as_me:$LINENO: result: no" >&5 2339echo "${ECHO_T}no" >&6; } 2340fi 2341 2342 2343fi 2344if test -z "$ac_cv_prog_STRIP"; then 2345 ac_ct_STRIP=$STRIP 2346 # Extract the first word of "strip", so it can be a program name with args. 2347set dummy strip; ac_word=$2 2348{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2350if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2351 echo $ECHO_N "(cached) $ECHO_C" >&6 2352else 2353 if test -n "$ac_ct_STRIP"; then 2354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2355else 2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2357for as_dir in $PATH 2358do 2359 IFS=$as_save_IFS 2360 test -z "$as_dir" && as_dir=. 2361 for ac_exec_ext in '' $ac_executable_extensions; do 2362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2363 ac_cv_prog_ac_ct_STRIP="strip" 2364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2365 break 2 2366 fi 2367done 2368done 2369IFS=$as_save_IFS 2370 2371fi 2372fi 2373ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2374if test -n "$ac_ct_STRIP"; then 2375 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2376echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2377else 2378 { echo "$as_me:$LINENO: result: no" >&5 2379echo "${ECHO_T}no" >&6; } 2380fi 2381 2382 if test "x$ac_ct_STRIP" = x; then 2383 STRIP=":" 2384 else 2385 case $cross_compiling:$ac_tool_warned in 2386yes:) 2387{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2388whose name does not start with the host triplet. If you think this 2389configuration is useful to you, please write to autoconf@gnu.org." >&5 2390echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2391whose name does not start with the host triplet. If you think this 2392configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2393ac_tool_warned=yes ;; 2394esac 2395 STRIP=$ac_ct_STRIP 2396 fi 2397else 2398 STRIP="$ac_cv_prog_STRIP" 2399fi 2400 2401fi 2402INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2403 2404# We need awk for the "check" target. The system "awk" is bad on 2405# some platforms. 2406# Always define AMTAR for backward compatibility. 2407 2408AMTAR=${AMTAR-"${am_missing_run}tar"} 2409 2410am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2411 2412 2413 2414 2415 2416ac_ext=c 2417ac_cpp='$CPP $CPPFLAGS' 2418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2420ac_compiler_gnu=$ac_cv_c_compiler_gnu 2421if test -n "$ac_tool_prefix"; then 2422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2423set dummy ${ac_tool_prefix}gcc; ac_word=$2 2424{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2426if test "${ac_cv_prog_CC+set}" = set; then 2427 echo $ECHO_N "(cached) $ECHO_C" >&6 2428else 2429 if test -n "$CC"; then 2430 ac_cv_prog_CC="$CC" # Let the user override the test. 2431else 2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2433for as_dir in $PATH 2434do 2435 IFS=$as_save_IFS 2436 test -z "$as_dir" && as_dir=. 2437 for ac_exec_ext in '' $ac_executable_extensions; do 2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2439 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2441 break 2 2442 fi 2443done 2444done 2445IFS=$as_save_IFS 2446 2447fi 2448fi 2449CC=$ac_cv_prog_CC 2450if test -n "$CC"; then 2451 { echo "$as_me:$LINENO: result: $CC" >&5 2452echo "${ECHO_T}$CC" >&6; } 2453else 2454 { echo "$as_me:$LINENO: result: no" >&5 2455echo "${ECHO_T}no" >&6; } 2456fi 2457 2458 2459fi 2460if test -z "$ac_cv_prog_CC"; then 2461 ac_ct_CC=$CC 2462 # Extract the first word of "gcc", so it can be a program name with args. 2463set dummy gcc; ac_word=$2 2464{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2467 echo $ECHO_N "(cached) $ECHO_C" >&6 2468else 2469 if test -n "$ac_ct_CC"; then 2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2471else 2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473for as_dir in $PATH 2474do 2475 IFS=$as_save_IFS 2476 test -z "$as_dir" && as_dir=. 2477 for ac_exec_ext in '' $ac_executable_extensions; do 2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2479 ac_cv_prog_ac_ct_CC="gcc" 2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2481 break 2 2482 fi 2483done 2484done 2485IFS=$as_save_IFS 2486 2487fi 2488fi 2489ac_ct_CC=$ac_cv_prog_ac_ct_CC 2490if test -n "$ac_ct_CC"; then 2491 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2492echo "${ECHO_T}$ac_ct_CC" >&6; } 2493else 2494 { echo "$as_me:$LINENO: result: no" >&5 2495echo "${ECHO_T}no" >&6; } 2496fi 2497 2498 if test "x$ac_ct_CC" = x; then 2499 CC="" 2500 else 2501 case $cross_compiling:$ac_tool_warned in 2502yes:) 2503{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2504whose name does not start with the host triplet. If you think this 2505configuration is useful to you, please write to autoconf@gnu.org." >&5 2506echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2507whose name does not start with the host triplet. If you think this 2508configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2509ac_tool_warned=yes ;; 2510esac 2511 CC=$ac_ct_CC 2512 fi 2513else 2514 CC="$ac_cv_prog_CC" 2515fi 2516 2517if test -z "$CC"; then 2518 if test -n "$ac_tool_prefix"; then 2519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2520set dummy ${ac_tool_prefix}cc; ac_word=$2 2521{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2523if test "${ac_cv_prog_CC+set}" = set; then 2524 echo $ECHO_N "(cached) $ECHO_C" >&6 2525else 2526 if test -n "$CC"; then 2527 ac_cv_prog_CC="$CC" # Let the user override the test. 2528else 2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2530for as_dir in $PATH 2531do 2532 IFS=$as_save_IFS 2533 test -z "$as_dir" && as_dir=. 2534 for ac_exec_ext in '' $ac_executable_extensions; do 2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2536 ac_cv_prog_CC="${ac_tool_prefix}cc" 2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2538 break 2 2539 fi 2540done 2541done 2542IFS=$as_save_IFS 2543 2544fi 2545fi 2546CC=$ac_cv_prog_CC 2547if test -n "$CC"; then 2548 { echo "$as_me:$LINENO: result: $CC" >&5 2549echo "${ECHO_T}$CC" >&6; } 2550else 2551 { echo "$as_me:$LINENO: result: no" >&5 2552echo "${ECHO_T}no" >&6; } 2553fi 2554 2555 2556 fi 2557fi 2558if test -z "$CC"; then 2559 # Extract the first word of "cc", so it can be a program name with args. 2560set dummy cc; ac_word=$2 2561{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2563if test "${ac_cv_prog_CC+set}" = set; then 2564 echo $ECHO_N "(cached) $ECHO_C" >&6 2565else 2566 if test -n "$CC"; then 2567 ac_cv_prog_CC="$CC" # Let the user override the test. 2568else 2569 ac_prog_rejected=no 2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2571for as_dir in $PATH 2572do 2573 IFS=$as_save_IFS 2574 test -z "$as_dir" && as_dir=. 2575 for ac_exec_ext in '' $ac_executable_extensions; do 2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2578 ac_prog_rejected=yes 2579 continue 2580 fi 2581 ac_cv_prog_CC="cc" 2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2583 break 2 2584 fi 2585done 2586done 2587IFS=$as_save_IFS 2588 2589if test $ac_prog_rejected = yes; then 2590 # We found a bogon in the path, so make sure we never use it. 2591 set dummy $ac_cv_prog_CC 2592 shift 2593 if test $# != 0; then 2594 # We chose a different compiler from the bogus one. 2595 # However, it has the same basename, so the bogon will be chosen 2596 # first if we set CC to just the basename; use the full file name. 2597 shift 2598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2599 fi 2600fi 2601fi 2602fi 2603CC=$ac_cv_prog_CC 2604if test -n "$CC"; then 2605 { echo "$as_me:$LINENO: result: $CC" >&5 2606echo "${ECHO_T}$CC" >&6; } 2607else 2608 { echo "$as_me:$LINENO: result: no" >&5 2609echo "${ECHO_T}no" >&6; } 2610fi 2611 2612 2613fi 2614if test -z "$CC"; then 2615 if test -n "$ac_tool_prefix"; then 2616 for ac_prog in cl.exe 2617 do 2618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2619set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2620{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2622if test "${ac_cv_prog_CC+set}" = set; then 2623 echo $ECHO_N "(cached) $ECHO_C" >&6 2624else 2625 if test -n "$CC"; then 2626 ac_cv_prog_CC="$CC" # Let the user override the test. 2627else 2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629for as_dir in $PATH 2630do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_exec_ext in '' $ac_executable_extensions; do 2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2637 break 2 2638 fi 2639done 2640done 2641IFS=$as_save_IFS 2642 2643fi 2644fi 2645CC=$ac_cv_prog_CC 2646if test -n "$CC"; then 2647 { echo "$as_me:$LINENO: result: $CC" >&5 2648echo "${ECHO_T}$CC" >&6; } 2649else 2650 { echo "$as_me:$LINENO: result: no" >&5 2651echo "${ECHO_T}no" >&6; } 2652fi 2653 2654 2655 test -n "$CC" && break 2656 done 2657fi 2658if test -z "$CC"; then 2659 ac_ct_CC=$CC 2660 for ac_prog in cl.exe 2661do 2662 # Extract the first word of "$ac_prog", so it can be a program name with args. 2663set dummy $ac_prog; ac_word=$2 2664{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2666if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2667 echo $ECHO_N "(cached) $ECHO_C" >&6 2668else 2669 if test -n "$ac_ct_CC"; then 2670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2671else 2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2673for as_dir in $PATH 2674do 2675 IFS=$as_save_IFS 2676 test -z "$as_dir" && as_dir=. 2677 for ac_exec_ext in '' $ac_executable_extensions; do 2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2679 ac_cv_prog_ac_ct_CC="$ac_prog" 2680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2681 break 2 2682 fi 2683done 2684done 2685IFS=$as_save_IFS 2686 2687fi 2688fi 2689ac_ct_CC=$ac_cv_prog_ac_ct_CC 2690if test -n "$ac_ct_CC"; then 2691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2692echo "${ECHO_T}$ac_ct_CC" >&6; } 2693else 2694 { echo "$as_me:$LINENO: result: no" >&5 2695echo "${ECHO_T}no" >&6; } 2696fi 2697 2698 2699 test -n "$ac_ct_CC" && break 2700done 2701 2702 if test "x$ac_ct_CC" = x; then 2703 CC="" 2704 else 2705 case $cross_compiling:$ac_tool_warned in 2706yes:) 2707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2708whose name does not start with the host triplet. If you think this 2709configuration is useful to you, please write to autoconf@gnu.org." >&5 2710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2711whose name does not start with the host triplet. If you think this 2712configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2713ac_tool_warned=yes ;; 2714esac 2715 CC=$ac_ct_CC 2716 fi 2717fi 2718 2719fi 2720 2721 2722test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2723See \`config.log' for more details." >&5 2724echo "$as_me: error: no acceptable C compiler found in \$PATH 2725See \`config.log' for more details." >&2;} 2726 { (exit 1); exit 1; }; } 2727 2728# Provide some information about the compiler. 2729echo "$as_me:$LINENO: checking for C compiler version" >&5 2730ac_compiler=`set X $ac_compile; echo $2` 2731{ (ac_try="$ac_compiler --version >&5" 2732case "(($ac_try" in 2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2734 *) ac_try_echo=$ac_try;; 2735esac 2736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2737 (eval "$ac_compiler --version >&5") 2>&5 2738 ac_status=$? 2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2740 (exit $ac_status); } 2741{ (ac_try="$ac_compiler -v >&5" 2742case "(($ac_try" in 2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2744 *) ac_try_echo=$ac_try;; 2745esac 2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2747 (eval "$ac_compiler -v >&5") 2>&5 2748 ac_status=$? 2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2750 (exit $ac_status); } 2751{ (ac_try="$ac_compiler -V >&5" 2752case "(($ac_try" in 2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2754 *) ac_try_echo=$ac_try;; 2755esac 2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2757 (eval "$ac_compiler -V >&5") 2>&5 2758 ac_status=$? 2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2760 (exit $ac_status); } 2761 2762cat >conftest.$ac_ext <<_ACEOF 2763/* confdefs.h. */ 2764_ACEOF 2765cat confdefs.h >>conftest.$ac_ext 2766cat >>conftest.$ac_ext <<_ACEOF 2767/* end confdefs.h. */ 2768 2769int 2770main () 2771{ 2772 2773 ; 2774 return 0; 2775} 2776_ACEOF 2777ac_clean_files_save=$ac_clean_files 2778ac_clean_files="$ac_clean_files a.out a.exe b.out" 2779# Try to create an executable without -o first, disregard a.out. 2780# It will help us diagnose broken compilers, and finding out an intuition 2781# of exeext. 2782{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2783echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2784ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2785# 2786# List of possible output files, starting from the most likely. 2787# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2788# only as a last resort. b.out is created by i960 compilers. 2789ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2790# 2791# The IRIX 6 linker writes into existing files which may not be 2792# executable, retaining their permissions. Remove them first so a 2793# subsequent execution test works. 2794ac_rmfiles= 2795for ac_file in $ac_files 2796do 2797 case $ac_file in 2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2799 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2800 esac 2801done 2802rm -f $ac_rmfiles 2803 2804if { (ac_try="$ac_link_default" 2805case "(($ac_try" in 2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2807 *) ac_try_echo=$ac_try;; 2808esac 2809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2810 (eval "$ac_link_default") 2>&5 2811 ac_status=$? 2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2813 (exit $ac_status); }; then 2814 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2815# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2816# in a Makefile. We should not override ac_cv_exeext if it was cached, 2817# so that the user can short-circuit this test for compilers unknown to 2818# Autoconf. 2819for ac_file in $ac_files '' 2820do 2821 test -f "$ac_file" || continue 2822 case $ac_file in 2823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2824 ;; 2825 [ab].out ) 2826 # We found the default executable, but exeext='' is most 2827 # certainly right. 2828 break;; 2829 *.* ) 2830 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2831 then :; else 2832 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2833 fi 2834 # We set ac_cv_exeext here because the later test for it is not 2835 # safe: cross compilers may not add the suffix if given an `-o' 2836 # argument, so we may need to know it at that point already. 2837 # Even if this section looks crufty: it has the advantage of 2838 # actually working. 2839 break;; 2840 * ) 2841 break;; 2842 esac 2843done 2844test "$ac_cv_exeext" = no && ac_cv_exeext= 2845 2846else 2847 ac_file='' 2848fi 2849 2850{ echo "$as_me:$LINENO: result: $ac_file" >&5 2851echo "${ECHO_T}$ac_file" >&6; } 2852if test -z "$ac_file"; then 2853 echo "$as_me: failed program was:" >&5 2854sed 's/^/| /' conftest.$ac_ext >&5 2855 2856{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2857See \`config.log' for more details." >&5 2858echo "$as_me: error: C compiler cannot create executables 2859See \`config.log' for more details." >&2;} 2860 { (exit 77); exit 77; }; } 2861fi 2862 2863ac_exeext=$ac_cv_exeext 2864 2865# Check that the compiler produces executables we can run. If not, either 2866# the compiler is broken, or we cross compile. 2867{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2868echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2869# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2870# If not cross compiling, check that we can run a simple program. 2871if test "$cross_compiling" != yes; then 2872 if { ac_try='./$ac_file' 2873 { (case "(($ac_try" in 2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2875 *) ac_try_echo=$ac_try;; 2876esac 2877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2878 (eval "$ac_try") 2>&5 2879 ac_status=$? 2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2881 (exit $ac_status); }; }; then 2882 cross_compiling=no 2883 else 2884 if test "$cross_compiling" = maybe; then 2885 cross_compiling=yes 2886 else 2887 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2888If you meant to cross compile, use \`--host'. 2889See \`config.log' for more details." >&5 2890echo "$as_me: error: cannot run C compiled programs. 2891If you meant to cross compile, use \`--host'. 2892See \`config.log' for more details." >&2;} 2893 { (exit 1); exit 1; }; } 2894 fi 2895 fi 2896fi 2897{ echo "$as_me:$LINENO: result: yes" >&5 2898echo "${ECHO_T}yes" >&6; } 2899 2900rm -f a.out a.exe conftest$ac_cv_exeext b.out 2901ac_clean_files=$ac_clean_files_save 2902# Check that the compiler produces executables we can run. If not, either 2903# the compiler is broken, or we cross compile. 2904{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2905echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2906{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2907echo "${ECHO_T}$cross_compiling" >&6; } 2908 2909{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2910echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2911if { (ac_try="$ac_link" 2912case "(($ac_try" in 2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2914 *) ac_try_echo=$ac_try;; 2915esac 2916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2917 (eval "$ac_link") 2>&5 2918 ac_status=$? 2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2920 (exit $ac_status); }; then 2921 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2922# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2923# work properly (i.e., refer to `conftest.exe'), while it won't with 2924# `rm'. 2925for ac_file in conftest.exe conftest conftest.*; do 2926 test -f "$ac_file" || continue 2927 case $ac_file in 2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2929 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2930 break;; 2931 * ) break;; 2932 esac 2933done 2934else 2935 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2936See \`config.log' for more details." >&5 2937echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2938See \`config.log' for more details." >&2;} 2939 { (exit 1); exit 1; }; } 2940fi 2941 2942rm -f conftest$ac_cv_exeext 2943{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2944echo "${ECHO_T}$ac_cv_exeext" >&6; } 2945 2946rm -f conftest.$ac_ext 2947EXEEXT=$ac_cv_exeext 2948ac_exeext=$EXEEXT 2949{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2950echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2951if test "${ac_cv_objext+set}" = set; then 2952 echo $ECHO_N "(cached) $ECHO_C" >&6 2953else 2954 cat >conftest.$ac_ext <<_ACEOF 2955/* confdefs.h. */ 2956_ACEOF 2957cat confdefs.h >>conftest.$ac_ext 2958cat >>conftest.$ac_ext <<_ACEOF 2959/* end confdefs.h. */ 2960 2961int 2962main () 2963{ 2964 2965 ; 2966 return 0; 2967} 2968_ACEOF 2969rm -f conftest.o conftest.obj 2970if { (ac_try="$ac_compile" 2971case "(($ac_try" in 2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2973 *) ac_try_echo=$ac_try;; 2974esac 2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2976 (eval "$ac_compile") 2>&5 2977 ac_status=$? 2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2979 (exit $ac_status); }; then 2980 for ac_file in conftest.o conftest.obj conftest.*; do 2981 test -f "$ac_file" || continue; 2982 case $ac_file in 2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2984 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2985 break;; 2986 esac 2987done 2988else 2989 echo "$as_me: failed program was:" >&5 2990sed 's/^/| /' conftest.$ac_ext >&5 2991 2992{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2993See \`config.log' for more details." >&5 2994echo "$as_me: error: cannot compute suffix of object files: cannot compile 2995See \`config.log' for more details." >&2;} 2996 { (exit 1); exit 1; }; } 2997fi 2998 2999rm -f conftest.$ac_cv_objext conftest.$ac_ext 3000fi 3001{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3002echo "${ECHO_T}$ac_cv_objext" >&6; } 3003OBJEXT=$ac_cv_objext 3004ac_objext=$OBJEXT 3005{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3006echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3007if test "${ac_cv_c_compiler_gnu+set}" = set; then 3008 echo $ECHO_N "(cached) $ECHO_C" >&6 3009else 3010 cat >conftest.$ac_ext <<_ACEOF 3011/* confdefs.h. */ 3012_ACEOF 3013cat confdefs.h >>conftest.$ac_ext 3014cat >>conftest.$ac_ext <<_ACEOF 3015/* end confdefs.h. */ 3016 3017int 3018main () 3019{ 3020#ifndef __GNUC__ 3021 choke me 3022#endif 3023 3024 ; 3025 return 0; 3026} 3027_ACEOF 3028rm -f conftest.$ac_objext 3029if { (ac_try="$ac_compile" 3030case "(($ac_try" in 3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3032 *) ac_try_echo=$ac_try;; 3033esac 3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3035 (eval "$ac_compile") 2>conftest.er1 3036 ac_status=$? 3037 grep -v '^ *+' conftest.er1 >conftest.err 3038 rm -f conftest.er1 3039 cat conftest.err >&5 3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3041 (exit $ac_status); } && { 3042 test -z "$ac_c_werror_flag" || 3043 test ! -s conftest.err 3044 } && test -s conftest.$ac_objext; then 3045 ac_compiler_gnu=yes 3046else 3047 echo "$as_me: failed program was:" >&5 3048sed 's/^/| /' conftest.$ac_ext >&5 3049 3050 ac_compiler_gnu=no 3051fi 3052 3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3054ac_cv_c_compiler_gnu=$ac_compiler_gnu 3055 3056fi 3057{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3058echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3059GCC=`test $ac_compiler_gnu = yes && echo yes` 3060ac_test_CFLAGS=${CFLAGS+set} 3061ac_save_CFLAGS=$CFLAGS 3062{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3063echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3064if test "${ac_cv_prog_cc_g+set}" = set; then 3065 echo $ECHO_N "(cached) $ECHO_C" >&6 3066else 3067 ac_save_c_werror_flag=$ac_c_werror_flag 3068 ac_c_werror_flag=yes 3069 ac_cv_prog_cc_g=no 3070 CFLAGS="-g" 3071 cat >conftest.$ac_ext <<_ACEOF 3072/* confdefs.h. */ 3073_ACEOF 3074cat confdefs.h >>conftest.$ac_ext 3075cat >>conftest.$ac_ext <<_ACEOF 3076/* end confdefs.h. */ 3077 3078int 3079main () 3080{ 3081 3082 ; 3083 return 0; 3084} 3085_ACEOF 3086rm -f conftest.$ac_objext 3087if { (ac_try="$ac_compile" 3088case "(($ac_try" in 3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3090 *) ac_try_echo=$ac_try;; 3091esac 3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3093 (eval "$ac_compile") 2>conftest.er1 3094 ac_status=$? 3095 grep -v '^ *+' conftest.er1 >conftest.err 3096 rm -f conftest.er1 3097 cat conftest.err >&5 3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3099 (exit $ac_status); } && { 3100 test -z "$ac_c_werror_flag" || 3101 test ! -s conftest.err 3102 } && test -s conftest.$ac_objext; then 3103 ac_cv_prog_cc_g=yes 3104else 3105 echo "$as_me: failed program was:" >&5 3106sed 's/^/| /' conftest.$ac_ext >&5 3107 3108 CFLAGS="" 3109 cat >conftest.$ac_ext <<_ACEOF 3110/* confdefs.h. */ 3111_ACEOF 3112cat confdefs.h >>conftest.$ac_ext 3113cat >>conftest.$ac_ext <<_ACEOF 3114/* end confdefs.h. */ 3115 3116int 3117main () 3118{ 3119 3120 ; 3121 return 0; 3122} 3123_ACEOF 3124rm -f conftest.$ac_objext 3125if { (ac_try="$ac_compile" 3126case "(($ac_try" in 3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3128 *) ac_try_echo=$ac_try;; 3129esac 3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3131 (eval "$ac_compile") 2>conftest.er1 3132 ac_status=$? 3133 grep -v '^ *+' conftest.er1 >conftest.err 3134 rm -f conftest.er1 3135 cat conftest.err >&5 3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3137 (exit $ac_status); } && { 3138 test -z "$ac_c_werror_flag" || 3139 test ! -s conftest.err 3140 } && test -s conftest.$ac_objext; then 3141 : 3142else 3143 echo "$as_me: failed program was:" >&5 3144sed 's/^/| /' conftest.$ac_ext >&5 3145 3146 ac_c_werror_flag=$ac_save_c_werror_flag 3147 CFLAGS="-g" 3148 cat >conftest.$ac_ext <<_ACEOF 3149/* confdefs.h. */ 3150_ACEOF 3151cat confdefs.h >>conftest.$ac_ext 3152cat >>conftest.$ac_ext <<_ACEOF 3153/* end confdefs.h. */ 3154 3155int 3156main () 3157{ 3158 3159 ; 3160 return 0; 3161} 3162_ACEOF 3163rm -f conftest.$ac_objext 3164if { (ac_try="$ac_compile" 3165case "(($ac_try" in 3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3167 *) ac_try_echo=$ac_try;; 3168esac 3169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3170 (eval "$ac_compile") 2>conftest.er1 3171 ac_status=$? 3172 grep -v '^ *+' conftest.er1 >conftest.err 3173 rm -f conftest.er1 3174 cat conftest.err >&5 3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3176 (exit $ac_status); } && { 3177 test -z "$ac_c_werror_flag" || 3178 test ! -s conftest.err 3179 } && test -s conftest.$ac_objext; then 3180 ac_cv_prog_cc_g=yes 3181else 3182 echo "$as_me: failed program was:" >&5 3183sed 's/^/| /' conftest.$ac_ext >&5 3184 3185 3186fi 3187 3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3189fi 3190 3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3192fi 3193 3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3195 ac_c_werror_flag=$ac_save_c_werror_flag 3196fi 3197{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3198echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3199if test "$ac_test_CFLAGS" = set; then 3200 CFLAGS=$ac_save_CFLAGS 3201elif test $ac_cv_prog_cc_g = yes; then 3202 if test "$GCC" = yes; then 3203 CFLAGS="-g -O2" 3204 else 3205 CFLAGS="-g" 3206 fi 3207else 3208 if test "$GCC" = yes; then 3209 CFLAGS="-O2" 3210 else 3211 CFLAGS= 3212 fi 3213fi 3214{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3215echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3216if test "${ac_cv_prog_cc_c89+set}" = set; then 3217 echo $ECHO_N "(cached) $ECHO_C" >&6 3218else 3219 ac_cv_prog_cc_c89=no 3220ac_save_CC=$CC 3221cat >conftest.$ac_ext <<_ACEOF 3222/* confdefs.h. */ 3223_ACEOF 3224cat confdefs.h >>conftest.$ac_ext 3225cat >>conftest.$ac_ext <<_ACEOF 3226/* end confdefs.h. */ 3227#include <stdarg.h> 3228#include <stdio.h> 3229#include <sys/types.h> 3230#include <sys/stat.h> 3231/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3232struct buf { int x; }; 3233FILE * (*rcsopen) (struct buf *, struct stat *, int); 3234static char *e (p, i) 3235 char **p; 3236 int i; 3237{ 3238 return p[i]; 3239} 3240static char *f (char * (*g) (char **, int), char **p, ...) 3241{ 3242 char *s; 3243 va_list v; 3244 va_start (v,p); 3245 s = g (p, va_arg (v,int)); 3246 va_end (v); 3247 return s; 3248} 3249 3250/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3251 function prototypes and stuff, but not '\xHH' hex character constants. 3252 These don't provoke an error unfortunately, instead are silently treated 3253 as 'x'. The following induces an error, until -std is added to get 3254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3255 array size at least. It's necessary to write '\x00'==0 to get something 3256 that's true only with -std. */ 3257int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3258 3259/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3260 inside strings and character constants. */ 3261#define FOO(x) 'x' 3262int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3263 3264int test (int i, double x); 3265struct s1 {int (*f) (int a);}; 3266struct s2 {int (*f) (double a);}; 3267int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3268int argc; 3269char **argv; 3270int 3271main () 3272{ 3273return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3274 ; 3275 return 0; 3276} 3277_ACEOF 3278for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3280do 3281 CC="$ac_save_CC $ac_arg" 3282 rm -f conftest.$ac_objext 3283if { (ac_try="$ac_compile" 3284case "(($ac_try" in 3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3286 *) ac_try_echo=$ac_try;; 3287esac 3288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3289 (eval "$ac_compile") 2>conftest.er1 3290 ac_status=$? 3291 grep -v '^ *+' conftest.er1 >conftest.err 3292 rm -f conftest.er1 3293 cat conftest.err >&5 3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3295 (exit $ac_status); } && { 3296 test -z "$ac_c_werror_flag" || 3297 test ! -s conftest.err 3298 } && test -s conftest.$ac_objext; then 3299 ac_cv_prog_cc_c89=$ac_arg 3300else 3301 echo "$as_me: failed program was:" >&5 3302sed 's/^/| /' conftest.$ac_ext >&5 3303 3304 3305fi 3306 3307rm -f core conftest.err conftest.$ac_objext 3308 test "x$ac_cv_prog_cc_c89" != "xno" && break 3309done 3310rm -f conftest.$ac_ext 3311CC=$ac_save_CC 3312 3313fi 3314# AC_CACHE_VAL 3315case "x$ac_cv_prog_cc_c89" in 3316 x) 3317 { echo "$as_me:$LINENO: result: none needed" >&5 3318echo "${ECHO_T}none needed" >&6; } ;; 3319 xno) 3320 { echo "$as_me:$LINENO: result: unsupported" >&5 3321echo "${ECHO_T}unsupported" >&6; } ;; 3322 *) 3323 CC="$CC $ac_cv_prog_cc_c89" 3324 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3325echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3326esac 3327 3328 3329ac_ext=c 3330ac_cpp='$CPP $CPPFLAGS' 3331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3333ac_compiler_gnu=$ac_cv_c_compiler_gnu 3334DEPDIR="${am__leading_dot}deps" 3335 3336ac_config_commands="$ac_config_commands depfiles" 3337 3338 3339am_make=${MAKE-make} 3340cat > confinc << 'END' 3341am__doit: 3342 @echo done 3343.PHONY: am__doit 3344END 3345# If we don't find an include directive, just comment out the code. 3346{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3347echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3348am__include="#" 3349am__quote= 3350_am_result=none 3351# First try GNU make style include. 3352echo "include confinc" > confmf 3353# We grep out `Entering directory' and `Leaving directory' 3354# messages which can occur if `w' ends up in MAKEFLAGS. 3355# In particular we don't look at `^make:' because GNU make might 3356# be invoked under some other name (usually "gmake"), in which 3357# case it prints its new name instead of `make'. 3358if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3359 am__include=include 3360 am__quote= 3361 _am_result=GNU 3362fi 3363# Now try BSD make style include. 3364if test "$am__include" = "#"; then 3365 echo '.include "confinc"' > confmf 3366 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3367 am__include=.include 3368 am__quote="\"" 3369 _am_result=BSD 3370 fi 3371fi 3372 3373 3374{ echo "$as_me:$LINENO: result: $_am_result" >&5 3375echo "${ECHO_T}$_am_result" >&6; } 3376rm -f confinc confmf 3377 3378# Check whether --enable-dependency-tracking was given. 3379if test "${enable_dependency_tracking+set}" = set; then 3380 enableval=$enable_dependency_tracking; 3381fi 3382 3383if test "x$enable_dependency_tracking" != xno; then 3384 am_depcomp="$ac_aux_dir/depcomp" 3385 AMDEPBACKSLASH='\' 3386fi 3387 if test "x$enable_dependency_tracking" != xno; then 3388 AMDEP_TRUE= 3389 AMDEP_FALSE='#' 3390else 3391 AMDEP_TRUE='#' 3392 AMDEP_FALSE= 3393fi 3394 3395 3396 3397depcc="$CC" am_compiler_list= 3398 3399{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3400echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3401if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3402 echo $ECHO_N "(cached) $ECHO_C" >&6 3403else 3404 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3405 # We make a subdir and do the tests there. Otherwise we can end up 3406 # making bogus files that we don't know about and never remove. For 3407 # instance it was reported that on HP-UX the gcc test will end up 3408 # making a dummy file named `D' -- because `-MD' means `put the output 3409 # in D'. 3410 mkdir conftest.dir 3411 # Copy depcomp to subdir because otherwise we won't find it if we're 3412 # using a relative directory. 3413 cp "$am_depcomp" conftest.dir 3414 cd conftest.dir 3415 # We will build objects and dependencies in a subdirectory because 3416 # it helps to detect inapplicable dependency modes. For instance 3417 # both Tru64's cc and ICC support -MD to output dependencies as a 3418 # side effect of compilation, but ICC will put the dependencies in 3419 # the current directory while Tru64 will put them in the object 3420 # directory. 3421 mkdir sub 3422 3423 am_cv_CC_dependencies_compiler_type=none 3424 if test "$am_compiler_list" = ""; then 3425 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3426 fi 3427 for depmode in $am_compiler_list; do 3428 # Setup a source with many dependencies, because some compilers 3429 # like to wrap large dependency lists on column 80 (with \), and 3430 # we should not choose a depcomp mode which is confused by this. 3431 # 3432 # We need to recreate these files for each test, as the compiler may 3433 # overwrite some of them when testing with obscure command lines. 3434 # This happens at least with the AIX C compiler. 3435 : > sub/conftest.c 3436 for i in 1 2 3 4 5 6; do 3437 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3438 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3439 # Solaris 8's {/usr,}/bin/sh. 3440 touch sub/conftst$i.h 3441 done 3442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3443 3444 case $depmode in 3445 nosideeffect) 3446 # after this tag, mechanisms are not by side-effect, so they'll 3447 # only be used when explicitly requested 3448 if test "x$enable_dependency_tracking" = xyes; then 3449 continue 3450 else 3451 break 3452 fi 3453 ;; 3454 none) break ;; 3455 esac 3456 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3457 # mode. It turns out that the SunPro C++ compiler does not properly 3458 # handle `-M -o', and we need to detect this. 3459 if depmode=$depmode \ 3460 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3461 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3462 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3463 >/dev/null 2>conftest.err && 3464 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3465 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3466 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3467 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3468 # icc doesn't choke on unknown options, it will just issue warnings 3469 # or remarks (even with -Werror). So we grep stderr for any message 3470 # that says an option was ignored or not supported. 3471 # When given -MP, icc 7.0 and 7.1 complain thusly: 3472 # icc: Command line warning: ignoring option '-M'; no argument required 3473 # The diagnosis changed in icc 8.0: 3474 # icc: Command line remark: option '-MP' not supported 3475 if (grep 'ignoring option' conftest.err || 3476 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3477 am_cv_CC_dependencies_compiler_type=$depmode 3478 break 3479 fi 3480 fi 3481 done 3482 3483 cd .. 3484 rm -rf conftest.dir 3485else 3486 am_cv_CC_dependencies_compiler_type=none 3487fi 3488 3489fi 3490{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3491echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3492CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3493 3494 if 3495 test "x$enable_dependency_tracking" != xno \ 3496 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3497 am__fastdepCC_TRUE= 3498 am__fastdepCC_FALSE='#' 3499else 3500 am__fastdepCC_TRUE='#' 3501 am__fastdepCC_FALSE= 3502fi 3503 3504 3505# Check whether --enable-shared was given. 3506if test "${enable_shared+set}" = set; then 3507 enableval=$enable_shared; p=${PACKAGE-default} 3508 case $enableval in 3509 yes) enable_shared=yes ;; 3510 no) enable_shared=no ;; 3511 *) 3512 enable_shared=no 3513 # Look at the argument we got. We use all the common list separators. 3514 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3515 for pkg in $enableval; do 3516 IFS="$lt_save_ifs" 3517 if test "X$pkg" = "X$p"; then 3518 enable_shared=yes 3519 fi 3520 done 3521 IFS="$lt_save_ifs" 3522 ;; 3523 esac 3524else 3525 enable_shared=yes 3526fi 3527 3528 3529# Check whether --enable-static was given. 3530if test "${enable_static+set}" = set; then 3531 enableval=$enable_static; p=${PACKAGE-default} 3532 case $enableval in 3533 yes) enable_static=yes ;; 3534 no) enable_static=no ;; 3535 *) 3536 enable_static=no 3537 # Look at the argument we got. We use all the common list separators. 3538 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3539 for pkg in $enableval; do 3540 IFS="$lt_save_ifs" 3541 if test "X$pkg" = "X$p"; then 3542 enable_static=yes 3543 fi 3544 done 3545 IFS="$lt_save_ifs" 3546 ;; 3547 esac 3548else 3549 enable_static=yes 3550fi 3551 3552 3553# Check whether --enable-fast-install was given. 3554if test "${enable_fast_install+set}" = set; then 3555 enableval=$enable_fast_install; p=${PACKAGE-default} 3556 case $enableval in 3557 yes) enable_fast_install=yes ;; 3558 no) enable_fast_install=no ;; 3559 *) 3560 enable_fast_install=no 3561 # Look at the argument we got. We use all the common list separators. 3562 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3563 for pkg in $enableval; do 3564 IFS="$lt_save_ifs" 3565 if test "X$pkg" = "X$p"; then 3566 enable_fast_install=yes 3567 fi 3568 done 3569 IFS="$lt_save_ifs" 3570 ;; 3571 esac 3572else 3573 enable_fast_install=yes 3574fi 3575 3576 3577# Make sure we can run config.sub. 3578$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3579 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3580echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3581 { (exit 1); exit 1; }; } 3582 3583{ echo "$as_me:$LINENO: checking build system type" >&5 3584echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3585if test "${ac_cv_build+set}" = set; then 3586 echo $ECHO_N "(cached) $ECHO_C" >&6 3587else 3588 ac_build_alias=$build_alias 3589test "x$ac_build_alias" = x && 3590 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3591test "x$ac_build_alias" = x && 3592 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3593echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3594 { (exit 1); exit 1; }; } 3595ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3596 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3597echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3598 { (exit 1); exit 1; }; } 3599 3600fi 3601{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3602echo "${ECHO_T}$ac_cv_build" >&6; } 3603case $ac_cv_build in 3604*-*-*) ;; 3605*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3606echo "$as_me: error: invalid value of canonical build" >&2;} 3607 { (exit 1); exit 1; }; };; 3608esac 3609build=$ac_cv_build 3610ac_save_IFS=$IFS; IFS='-' 3611set x $ac_cv_build 3612shift 3613build_cpu=$1 3614build_vendor=$2 3615shift; shift 3616# Remember, the first character of IFS is used to create $*, 3617# except with old shells: 3618build_os=$* 3619IFS=$ac_save_IFS 3620case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3621 3622 3623{ echo "$as_me:$LINENO: checking host system type" >&5 3624echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3625if test "${ac_cv_host+set}" = set; then 3626 echo $ECHO_N "(cached) $ECHO_C" >&6 3627else 3628 if test "x$host_alias" = x; then 3629 ac_cv_host=$ac_cv_build 3630else 3631 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3632 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3633echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3634 { (exit 1); exit 1; }; } 3635fi 3636 3637fi 3638{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3639echo "${ECHO_T}$ac_cv_host" >&6; } 3640case $ac_cv_host in 3641*-*-*) ;; 3642*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3643echo "$as_me: error: invalid value of canonical host" >&2;} 3644 { (exit 1); exit 1; }; };; 3645esac 3646host=$ac_cv_host 3647ac_save_IFS=$IFS; IFS='-' 3648set x $ac_cv_host 3649shift 3650host_cpu=$1 3651host_vendor=$2 3652shift; shift 3653# Remember, the first character of IFS is used to create $*, 3654# except with old shells: 3655host_os=$* 3656IFS=$ac_save_IFS 3657case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3658 3659 3660{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3661echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3662if test "${lt_cv_path_SED+set}" = set; then 3663 echo $ECHO_N "(cached) $ECHO_C" >&6 3664else 3665 # Loop through the user's path and test for sed and gsed. 3666# Then use that list of sed's as ones to test for truncation. 3667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3668for as_dir in $PATH 3669do 3670 IFS=$as_save_IFS 3671 test -z "$as_dir" && as_dir=. 3672 for lt_ac_prog in sed gsed; do 3673 for ac_exec_ext in '' $ac_executable_extensions; do 3674 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 3675 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3676 fi 3677 done 3678 done 3679done 3680IFS=$as_save_IFS 3681lt_ac_max=0 3682lt_ac_count=0 3683# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3684# along with /bin/sed that truncates output. 3685for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3686 test ! -f $lt_ac_sed && continue 3687 cat /dev/null > conftest.in 3688 lt_ac_count=0 3689 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3690 # Check for GNU sed and select it if it is found. 3691 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3692 lt_cv_path_SED=$lt_ac_sed 3693 break 3694 fi 3695 while true; do 3696 cat conftest.in conftest.in >conftest.tmp 3697 mv conftest.tmp conftest.in 3698 cp conftest.in conftest.nl 3699 echo >>conftest.nl 3700 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3701 cmp -s conftest.out conftest.nl || break 3702 # 10000 chars as input seems more than enough 3703 test $lt_ac_count -gt 10 && break 3704 lt_ac_count=`expr $lt_ac_count + 1` 3705 if test $lt_ac_count -gt $lt_ac_max; then 3706 lt_ac_max=$lt_ac_count 3707 lt_cv_path_SED=$lt_ac_sed 3708 fi 3709 done 3710done 3711 3712fi 3713 3714SED=$lt_cv_path_SED 3715 3716{ echo "$as_me:$LINENO: result: $SED" >&5 3717echo "${ECHO_T}$SED" >&6; } 3718 3719{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3720echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3721if test "${ac_cv_path_GREP+set}" = set; then 3722 echo $ECHO_N "(cached) $ECHO_C" >&6 3723else 3724 # Extract the first word of "grep ggrep" to use in msg output 3725if test -z "$GREP"; then 3726set dummy grep ggrep; ac_prog_name=$2 3727if test "${ac_cv_path_GREP+set}" = set; then 3728 echo $ECHO_N "(cached) $ECHO_C" >&6 3729else 3730 ac_path_GREP_found=false 3731# Loop through the user's path and test for each of PROGNAME-LIST 3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3733for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3734do 3735 IFS=$as_save_IFS 3736 test -z "$as_dir" && as_dir=. 3737 for ac_prog in grep ggrep; do 3738 for ac_exec_ext in '' $ac_executable_extensions; do 3739 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3740 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3741 # Check for GNU ac_path_GREP and select it if it is found. 3742 # Check for GNU $ac_path_GREP 3743case `"$ac_path_GREP" --version 2>&1` in 3744*GNU*) 3745 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3746*) 3747 ac_count=0 3748 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3749 while : 3750 do 3751 cat "conftest.in" "conftest.in" >"conftest.tmp" 3752 mv "conftest.tmp" "conftest.in" 3753 cp "conftest.in" "conftest.nl" 3754 echo 'GREP' >> "conftest.nl" 3755 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3757 ac_count=`expr $ac_count + 1` 3758 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3759 # Best one so far, save it but keep looking for a better one 3760 ac_cv_path_GREP="$ac_path_GREP" 3761 ac_path_GREP_max=$ac_count 3762 fi 3763 # 10*(2^10) chars as input seems more than enough 3764 test $ac_count -gt 10 && break 3765 done 3766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3767esac 3768 3769 3770 $ac_path_GREP_found && break 3 3771 done 3772done 3773 3774done 3775IFS=$as_save_IFS 3776 3777 3778fi 3779 3780GREP="$ac_cv_path_GREP" 3781if test -z "$GREP"; then 3782 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3783echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3784 { (exit 1); exit 1; }; } 3785fi 3786 3787else 3788 ac_cv_path_GREP=$GREP 3789fi 3790 3791 3792fi 3793{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3794echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3795 GREP="$ac_cv_path_GREP" 3796 3797 3798{ echo "$as_me:$LINENO: checking for egrep" >&5 3799echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3800if test "${ac_cv_path_EGREP+set}" = set; then 3801 echo $ECHO_N "(cached) $ECHO_C" >&6 3802else 3803 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3804 then ac_cv_path_EGREP="$GREP -E" 3805 else 3806 # Extract the first word of "egrep" to use in msg output 3807if test -z "$EGREP"; then 3808set dummy egrep; ac_prog_name=$2 3809if test "${ac_cv_path_EGREP+set}" = set; then 3810 echo $ECHO_N "(cached) $ECHO_C" >&6 3811else 3812 ac_path_EGREP_found=false 3813# Loop through the user's path and test for each of PROGNAME-LIST 3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3815for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3816do 3817 IFS=$as_save_IFS 3818 test -z "$as_dir" && as_dir=. 3819 for ac_prog in egrep; do 3820 for ac_exec_ext in '' $ac_executable_extensions; do 3821 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3822 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3823 # Check for GNU ac_path_EGREP and select it if it is found. 3824 # Check for GNU $ac_path_EGREP 3825case `"$ac_path_EGREP" --version 2>&1` in 3826*GNU*) 3827 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3828*) 3829 ac_count=0 3830 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3831 while : 3832 do 3833 cat "conftest.in" "conftest.in" >"conftest.tmp" 3834 mv "conftest.tmp" "conftest.in" 3835 cp "conftest.in" "conftest.nl" 3836 echo 'EGREP' >> "conftest.nl" 3837 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3839 ac_count=`expr $ac_count + 1` 3840 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3841 # Best one so far, save it but keep looking for a better one 3842 ac_cv_path_EGREP="$ac_path_EGREP" 3843 ac_path_EGREP_max=$ac_count 3844 fi 3845 # 10*(2^10) chars as input seems more than enough 3846 test $ac_count -gt 10 && break 3847 done 3848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3849esac 3850 3851 3852 $ac_path_EGREP_found && break 3 3853 done 3854done 3855 3856done 3857IFS=$as_save_IFS 3858 3859 3860fi 3861 3862EGREP="$ac_cv_path_EGREP" 3863if test -z "$EGREP"; then 3864 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3865echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3866 { (exit 1); exit 1; }; } 3867fi 3868 3869else 3870 ac_cv_path_EGREP=$EGREP 3871fi 3872 3873 3874 fi 3875fi 3876{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3877echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3878 EGREP="$ac_cv_path_EGREP" 3879 3880 3881 3882# Check whether --with-gnu-ld was given. 3883if test "${with_gnu_ld+set}" = set; then 3884 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3885else 3886 with_gnu_ld=no 3887fi 3888 3889ac_prog=ld 3890if test "$GCC" = yes; then 3891 # Check if gcc -print-prog-name=ld gives a path. 3892 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3893echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 3894 case $host in 3895 *-*-mingw*) 3896 # gcc leaves a trailing carriage return which upsets mingw 3897 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3898 *) 3899 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3900 esac 3901 case $ac_prog in 3902 # Accept absolute paths. 3903 [\\/]* | ?:[\\/]*) 3904 re_direlt='/[^/][^/]*/\.\./' 3905 # Canonicalize the pathname of ld 3906 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3907 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3908 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3909 done 3910 test -z "$LD" && LD="$ac_prog" 3911 ;; 3912 "") 3913 # If it fails, then pretend we aren't using GCC. 3914 ac_prog=ld 3915 ;; 3916 *) 3917 # If it is relative, then search for the first ld in PATH. 3918 with_gnu_ld=unknown 3919 ;; 3920 esac 3921elif test "$with_gnu_ld" = yes; then 3922 { echo "$as_me:$LINENO: checking for GNU ld" >&5 3923echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 3924else 3925 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3926echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 3927fi 3928if test "${lt_cv_path_LD+set}" = set; then 3929 echo $ECHO_N "(cached) $ECHO_C" >&6 3930else 3931 if test -z "$LD"; then 3932 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3933 for ac_dir in $PATH; do 3934 IFS="$lt_save_ifs" 3935 test -z "$ac_dir" && ac_dir=. 3936 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3937 lt_cv_path_LD="$ac_dir/$ac_prog" 3938 # Check to see if the program is GNU ld. I'd rather use --version, 3939 # but apparently some variants of GNU ld only accept -v. 3940 # Break only if it was the GNU/non-GNU ld that we prefer. 3941 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3942 *GNU* | *'with BFD'*) 3943 test "$with_gnu_ld" != no && break 3944 ;; 3945 *) 3946 test "$with_gnu_ld" != yes && break 3947 ;; 3948 esac 3949 fi 3950 done 3951 IFS="$lt_save_ifs" 3952else 3953 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3954fi 3955fi 3956 3957LD="$lt_cv_path_LD" 3958if test -n "$LD"; then 3959 { echo "$as_me:$LINENO: result: $LD" >&5 3960echo "${ECHO_T}$LD" >&6; } 3961else 3962 { echo "$as_me:$LINENO: result: no" >&5 3963echo "${ECHO_T}no" >&6; } 3964fi 3965test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3966echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3967 { (exit 1); exit 1; }; } 3968{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3969echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 3970if test "${lt_cv_prog_gnu_ld+set}" = set; then 3971 echo $ECHO_N "(cached) $ECHO_C" >&6 3972else 3973 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3974case `$LD -v 2>&1 </dev/null` in 3975*GNU* | *'with BFD'*) 3976 lt_cv_prog_gnu_ld=yes 3977 ;; 3978*) 3979 lt_cv_prog_gnu_ld=no 3980 ;; 3981esac 3982fi 3983{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3984echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 3985with_gnu_ld=$lt_cv_prog_gnu_ld 3986 3987 3988{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3989echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 3990if test "${lt_cv_ld_reload_flag+set}" = set; then 3991 echo $ECHO_N "(cached) $ECHO_C" >&6 3992else 3993 lt_cv_ld_reload_flag='-r' 3994fi 3995{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3996echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 3997reload_flag=$lt_cv_ld_reload_flag 3998case $reload_flag in 3999"" | " "*) ;; 4000*) reload_flag=" $reload_flag" ;; 4001esac 4002reload_cmds='$LD$reload_flag -o $output$reload_objs' 4003case $host_os in 4004 darwin*) 4005 if test "$GCC" = yes; then 4006 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4007 else 4008 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4009 fi 4010 ;; 4011esac 4012 4013{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4014echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4015if test "${lt_cv_path_NM+set}" = set; then 4016 echo $ECHO_N "(cached) $ECHO_C" >&6 4017else 4018 if test -n "$NM"; then 4019 # Let the user override the test. 4020 lt_cv_path_NM="$NM" 4021else 4022 lt_nm_to_check="${ac_tool_prefix}nm" 4023 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4024 lt_nm_to_check="$lt_nm_to_check nm" 4025 fi 4026 for lt_tmp_nm in $lt_nm_to_check; do 4027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4028 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4029 IFS="$lt_save_ifs" 4030 test -z "$ac_dir" && ac_dir=. 4031 tmp_nm="$ac_dir/$lt_tmp_nm" 4032 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4033 # Check to see if the nm accepts a BSD-compat flag. 4034 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4035 # nm: unknown option "B" ignored 4036 # Tru64's nm complains that /dev/null is an invalid object file 4037 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4038 */dev/null* | *'Invalid file or object type'*) 4039 lt_cv_path_NM="$tmp_nm -B" 4040 break 4041 ;; 4042 *) 4043 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4044 */dev/null*) 4045 lt_cv_path_NM="$tmp_nm -p" 4046 break 4047 ;; 4048 *) 4049 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4050 continue # so that we can try to find one that supports BSD flags 4051 ;; 4052 esac 4053 ;; 4054 esac 4055 fi 4056 done 4057 IFS="$lt_save_ifs" 4058 done 4059 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4060fi 4061fi 4062{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4063echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4064NM="$lt_cv_path_NM" 4065 4066{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4067echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4068LN_S=$as_ln_s 4069if test "$LN_S" = "ln -s"; then 4070 { echo "$as_me:$LINENO: result: yes" >&5 4071echo "${ECHO_T}yes" >&6; } 4072else 4073 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4074echo "${ECHO_T}no, using $LN_S" >&6; } 4075fi 4076 4077{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4078echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } 4079if test "${lt_cv_deplibs_check_method+set}" = set; then 4080 echo $ECHO_N "(cached) $ECHO_C" >&6 4081else 4082 lt_cv_file_magic_cmd='$MAGIC_CMD' 4083lt_cv_file_magic_test_file= 4084lt_cv_deplibs_check_method='unknown' 4085# Need to set the preceding variable on all platforms that support 4086# interlibrary dependencies. 4087# 'none' -- dependencies not supported. 4088# `unknown' -- same as none, but documents that we really don't know. 4089# 'pass_all' -- all dependencies passed with no checks. 4090# 'test_compile' -- check by making test program. 4091# 'file_magic [[regex]]' -- check by looking for files in library path 4092# which responds to the $file_magic_cmd with a given extended regex. 4093# If you have `file' or equivalent on your system and you're not sure 4094# whether `pass_all' will *always* work, you probably want this one. 4095 4096case $host_os in 4097aix4* | aix5*) 4098 lt_cv_deplibs_check_method=pass_all 4099 ;; 4100 4101beos*) 4102 lt_cv_deplibs_check_method=pass_all 4103 ;; 4104 4105bsdi[45]*) 4106 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4107 lt_cv_file_magic_cmd='/usr/bin/file -L' 4108 lt_cv_file_magic_test_file=/shlib/libc.so 4109 ;; 4110 4111cygwin*) 4112 # func_win32_libid is a shell function defined in ltmain.sh 4113 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4114 lt_cv_file_magic_cmd='func_win32_libid' 4115 ;; 4116 4117mingw* | pw32*) 4118 # Base MSYS/MinGW do not provide the 'file' command needed by 4119 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4120 # unless we find 'file', for example because we are cross-compiling. 4121 if ( file / ) >/dev/null 2>&1; then 4122 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4123 lt_cv_file_magic_cmd='func_win32_libid' 4124 else 4125 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4126 lt_cv_file_magic_cmd='$OBJDUMP -f' 4127 fi 4128 ;; 4129 4130darwin* | rhapsody*) 4131 lt_cv_deplibs_check_method=pass_all 4132 ;; 4133 4134freebsd* | dragonfly*) 4135 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4136 case $host_cpu in 4137 i*86 ) 4138 # Not sure whether the presence of OpenBSD here was a mistake. 4139 # Let's accept both of them until this is cleared up. 4140 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4141 lt_cv_file_magic_cmd=/usr/bin/file 4142 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4143 ;; 4144 esac 4145 else 4146 lt_cv_deplibs_check_method=pass_all 4147 fi 4148 ;; 4149 4150gnu*) 4151 lt_cv_deplibs_check_method=pass_all 4152 ;; 4153 4154hpux10.20* | hpux11*) 4155 lt_cv_file_magic_cmd=/usr/bin/file 4156 case $host_cpu in 4157 ia64*) 4158 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4159 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4160 ;; 4161 hppa*64*) 4162 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]' 4163 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4164 ;; 4165 *) 4166 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4167 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4168 ;; 4169 esac 4170 ;; 4171 4172interix[3-9]*) 4173 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4175 ;; 4176 4177irix5* | irix6* | nonstopux*) 4178 case $LD in 4179 *-32|*"-32 ") libmagic=32-bit;; 4180 *-n32|*"-n32 ") libmagic=N32;; 4181 *-64|*"-64 ") libmagic=64-bit;; 4182 *) libmagic=never-match;; 4183 esac 4184 lt_cv_deplibs_check_method=pass_all 4185 ;; 4186 4187# This must be Linux ELF. 4188linux* | k*bsd*-gnu) 4189 lt_cv_deplibs_check_method=pass_all 4190 ;; 4191 4192netbsd*) 4193 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4195 else 4196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4197 fi 4198 ;; 4199 4200newos6*) 4201 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4202 lt_cv_file_magic_cmd=/usr/bin/file 4203 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4204 ;; 4205 4206nto-qnx*) 4207 lt_cv_deplibs_check_method=unknown 4208 ;; 4209 4210openbsd*) 4211 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4213 else 4214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4215 fi 4216 ;; 4217 4218osf3* | osf4* | osf5*) 4219 lt_cv_deplibs_check_method=pass_all 4220 ;; 4221 4222rdos*) 4223 lt_cv_deplibs_check_method=pass_all 4224 ;; 4225 4226solaris*) 4227 lt_cv_deplibs_check_method=pass_all 4228 ;; 4229 4230sysv4 | sysv4.3*) 4231 case $host_vendor in 4232 motorola) 4233 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]' 4234 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4235 ;; 4236 ncr) 4237 lt_cv_deplibs_check_method=pass_all 4238 ;; 4239 sequent) 4240 lt_cv_file_magic_cmd='/bin/file' 4241 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4242 ;; 4243 sni) 4244 lt_cv_file_magic_cmd='/bin/file' 4245 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4246 lt_cv_file_magic_test_file=/lib/libc.so 4247 ;; 4248 siemens) 4249 lt_cv_deplibs_check_method=pass_all 4250 ;; 4251 pc) 4252 lt_cv_deplibs_check_method=pass_all 4253 ;; 4254 esac 4255 ;; 4256 4257sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4258 lt_cv_deplibs_check_method=pass_all 4259 ;; 4260esac 4261 4262fi 4263{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4264echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4265file_magic_cmd=$lt_cv_file_magic_cmd 4266deplibs_check_method=$lt_cv_deplibs_check_method 4267test -z "$deplibs_check_method" && deplibs_check_method=unknown 4268 4269 4270 4271 4272# If no C compiler was specified, use CC. 4273LTCC=${LTCC-"$CC"} 4274 4275# If no C compiler flags were specified, use CFLAGS. 4276LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4277 4278# Allow CC to be a program name with arguments. 4279compiler=$CC 4280 4281 4282# Check whether --enable-libtool-lock was given. 4283if test "${enable_libtool_lock+set}" = set; then 4284 enableval=$enable_libtool_lock; 4285fi 4286 4287test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4288 4289# Some flags need to be propagated to the compiler or linker for good 4290# libtool support. 4291case $host in 4292ia64-*-hpux*) 4293 # Find out which ABI we are using. 4294 echo 'int i;' > conftest.$ac_ext 4295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4296 (eval $ac_compile) 2>&5 4297 ac_status=$? 4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4299 (exit $ac_status); }; then 4300 case `/usr/bin/file conftest.$ac_objext` in 4301 *ELF-32*) 4302 HPUX_IA64_MODE="32" 4303 ;; 4304 *ELF-64*) 4305 HPUX_IA64_MODE="64" 4306 ;; 4307 esac 4308 fi 4309 rm -rf conftest* 4310 ;; 4311*-*-irix6*) 4312 # Find out which ABI we are using. 4313 echo '#line 4313 "configure"' > conftest.$ac_ext 4314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4315 (eval $ac_compile) 2>&5 4316 ac_status=$? 4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4318 (exit $ac_status); }; then 4319 if test "$lt_cv_prog_gnu_ld" = yes; then 4320 case `/usr/bin/file conftest.$ac_objext` in 4321 *32-bit*) 4322 LD="${LD-ld} -melf32bsmip" 4323 ;; 4324 *N32*) 4325 LD="${LD-ld} -melf32bmipn32" 4326 ;; 4327 *64-bit*) 4328 LD="${LD-ld} -melf64bmip" 4329 ;; 4330 esac 4331 else 4332 case `/usr/bin/file conftest.$ac_objext` in 4333 *32-bit*) 4334 LD="${LD-ld} -32" 4335 ;; 4336 *N32*) 4337 LD="${LD-ld} -n32" 4338 ;; 4339 *64-bit*) 4340 LD="${LD-ld} -64" 4341 ;; 4342 esac 4343 fi 4344 fi 4345 rm -rf conftest* 4346 ;; 4347 4348x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 4349s390*-*linux*|sparc*-*linux*) 4350 # Find out which ABI we are using. 4351 echo 'int i;' > conftest.$ac_ext 4352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4353 (eval $ac_compile) 2>&5 4354 ac_status=$? 4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4356 (exit $ac_status); }; then 4357 case `/usr/bin/file conftest.o` in 4358 *32-bit*) 4359 case $host in 4360 x86_64-*kfreebsd*-gnu) 4361 LD="${LD-ld} -m elf_i386_fbsd" 4362 ;; 4363 x86_64-*linux*) 4364 LD="${LD-ld} -m elf_i386" 4365 ;; 4366 ppc64-*linux*|powerpc64-*linux*) 4367 LD="${LD-ld} -m elf32ppclinux" 4368 ;; 4369 s390x-*linux*) 4370 LD="${LD-ld} -m elf_s390" 4371 ;; 4372 sparc64-*linux*) 4373 LD="${LD-ld} -m elf32_sparc" 4374 ;; 4375 esac 4376 ;; 4377 *64-bit*) 4378 case $host in 4379 x86_64-*kfreebsd*-gnu) 4380 LD="${LD-ld} -m elf_x86_64_fbsd" 4381 ;; 4382 x86_64-*linux*) 4383 LD="${LD-ld} -m elf_x86_64" 4384 ;; 4385 ppc*-*linux*|powerpc*-*linux*) 4386 LD="${LD-ld} -m elf64ppc" 4387 ;; 4388 s390*-*linux*) 4389 LD="${LD-ld} -m elf64_s390" 4390 ;; 4391 sparc*-*linux*) 4392 LD="${LD-ld} -m elf64_sparc" 4393 ;; 4394 esac 4395 ;; 4396 esac 4397 fi 4398 rm -rf conftest* 4399 ;; 4400 4401*-*-sco3.2v5*) 4402 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4403 SAVE_CFLAGS="$CFLAGS" 4404 CFLAGS="$CFLAGS -belf" 4405 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4406echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4407if test "${lt_cv_cc_needs_belf+set}" = set; then 4408 echo $ECHO_N "(cached) $ECHO_C" >&6 4409else 4410 ac_ext=c 4411ac_cpp='$CPP $CPPFLAGS' 4412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4414ac_compiler_gnu=$ac_cv_c_compiler_gnu 4415 4416 cat >conftest.$ac_ext <<_ACEOF 4417/* confdefs.h. */ 4418_ACEOF 4419cat confdefs.h >>conftest.$ac_ext 4420cat >>conftest.$ac_ext <<_ACEOF 4421/* end confdefs.h. */ 4422 4423int 4424main () 4425{ 4426 4427 ; 4428 return 0; 4429} 4430_ACEOF 4431rm -f conftest.$ac_objext conftest$ac_exeext 4432if { (ac_try="$ac_link" 4433case "(($ac_try" in 4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4435 *) ac_try_echo=$ac_try;; 4436esac 4437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4438 (eval "$ac_link") 2>conftest.er1 4439 ac_status=$? 4440 grep -v '^ *+' conftest.er1 >conftest.err 4441 rm -f conftest.er1 4442 cat conftest.err >&5 4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4444 (exit $ac_status); } && { 4445 test -z "$ac_c_werror_flag" || 4446 test ! -s conftest.err 4447 } && test -s conftest$ac_exeext && 4448 $as_test_x conftest$ac_exeext; then 4449 lt_cv_cc_needs_belf=yes 4450else 4451 echo "$as_me: failed program was:" >&5 4452sed 's/^/| /' conftest.$ac_ext >&5 4453 4454 lt_cv_cc_needs_belf=no 4455fi 4456 4457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4458 conftest$ac_exeext conftest.$ac_ext 4459 ac_ext=c 4460ac_cpp='$CPP $CPPFLAGS' 4461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4463ac_compiler_gnu=$ac_cv_c_compiler_gnu 4464 4465fi 4466{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4467echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4468 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4469 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4470 CFLAGS="$SAVE_CFLAGS" 4471 fi 4472 ;; 4473sparc*-*solaris*) 4474 # Find out which ABI we are using. 4475 echo 'int i;' > conftest.$ac_ext 4476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4477 (eval $ac_compile) 2>&5 4478 ac_status=$? 4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4480 (exit $ac_status); }; then 4481 case `/usr/bin/file conftest.o` in 4482 *64-bit*) 4483 case $lt_cv_prog_gnu_ld in 4484 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4485 *) LD="${LD-ld} -64" ;; 4486 esac 4487 ;; 4488 esac 4489 fi 4490 rm -rf conftest* 4491 ;; 4492 4493 4494esac 4495 4496need_locks="$enable_libtool_lock" 4497 4498 4499ac_ext=c 4500ac_cpp='$CPP $CPPFLAGS' 4501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4503ac_compiler_gnu=$ac_cv_c_compiler_gnu 4504{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4505echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4506# On Suns, sometimes $CPP names a directory. 4507if test -n "$CPP" && test -d "$CPP"; then 4508 CPP= 4509fi 4510if test -z "$CPP"; then 4511 if test "${ac_cv_prog_CPP+set}" = set; then 4512 echo $ECHO_N "(cached) $ECHO_C" >&6 4513else 4514 # Double quotes because CPP needs to be expanded 4515 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4516 do 4517 ac_preproc_ok=false 4518for ac_c_preproc_warn_flag in '' yes 4519do 4520 # Use a header file that comes with gcc, so configuring glibc 4521 # with a fresh cross-compiler works. 4522 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4523 # <limits.h> exists even on freestanding compilers. 4524 # On the NeXT, cc -E runs the code through the compiler's parser, 4525 # not just through cpp. "Syntax error" is here to catch this case. 4526 cat >conftest.$ac_ext <<_ACEOF 4527/* confdefs.h. */ 4528_ACEOF 4529cat confdefs.h >>conftest.$ac_ext 4530cat >>conftest.$ac_ext <<_ACEOF 4531/* end confdefs.h. */ 4532#ifdef __STDC__ 4533# include <limits.h> 4534#else 4535# include <assert.h> 4536#endif 4537 Syntax error 4538_ACEOF 4539if { (ac_try="$ac_cpp conftest.$ac_ext" 4540case "(($ac_try" in 4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4542 *) ac_try_echo=$ac_try;; 4543esac 4544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4546 ac_status=$? 4547 grep -v '^ *+' conftest.er1 >conftest.err 4548 rm -f conftest.er1 4549 cat conftest.err >&5 4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4551 (exit $ac_status); } >/dev/null && { 4552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4553 test ! -s conftest.err 4554 }; then 4555 : 4556else 4557 echo "$as_me: failed program was:" >&5 4558sed 's/^/| /' conftest.$ac_ext >&5 4559 4560 # Broken: fails on valid input. 4561continue 4562fi 4563 4564rm -f conftest.err conftest.$ac_ext 4565 4566 # OK, works on sane cases. Now check whether nonexistent headers 4567 # can be detected and how. 4568 cat >conftest.$ac_ext <<_ACEOF 4569/* confdefs.h. */ 4570_ACEOF 4571cat confdefs.h >>conftest.$ac_ext 4572cat >>conftest.$ac_ext <<_ACEOF 4573/* end confdefs.h. */ 4574#include <ac_nonexistent.h> 4575_ACEOF 4576if { (ac_try="$ac_cpp conftest.$ac_ext" 4577case "(($ac_try" in 4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4579 *) ac_try_echo=$ac_try;; 4580esac 4581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4583 ac_status=$? 4584 grep -v '^ *+' conftest.er1 >conftest.err 4585 rm -f conftest.er1 4586 cat conftest.err >&5 4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4588 (exit $ac_status); } >/dev/null && { 4589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4590 test ! -s conftest.err 4591 }; then 4592 # Broken: success on invalid input. 4593continue 4594else 4595 echo "$as_me: failed program was:" >&5 4596sed 's/^/| /' conftest.$ac_ext >&5 4597 4598 # Passes both tests. 4599ac_preproc_ok=: 4600break 4601fi 4602 4603rm -f conftest.err conftest.$ac_ext 4604 4605done 4606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4607rm -f conftest.err conftest.$ac_ext 4608if $ac_preproc_ok; then 4609 break 4610fi 4611 4612 done 4613 ac_cv_prog_CPP=$CPP 4614 4615fi 4616 CPP=$ac_cv_prog_CPP 4617else 4618 ac_cv_prog_CPP=$CPP 4619fi 4620{ echo "$as_me:$LINENO: result: $CPP" >&5 4621echo "${ECHO_T}$CPP" >&6; } 4622ac_preproc_ok=false 4623for ac_c_preproc_warn_flag in '' yes 4624do 4625 # Use a header file that comes with gcc, so configuring glibc 4626 # with a fresh cross-compiler works. 4627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4628 # <limits.h> exists even on freestanding compilers. 4629 # On the NeXT, cc -E runs the code through the compiler's parser, 4630 # not just through cpp. "Syntax error" is here to catch this case. 4631 cat >conftest.$ac_ext <<_ACEOF 4632/* confdefs.h. */ 4633_ACEOF 4634cat confdefs.h >>conftest.$ac_ext 4635cat >>conftest.$ac_ext <<_ACEOF 4636/* end confdefs.h. */ 4637#ifdef __STDC__ 4638# include <limits.h> 4639#else 4640# include <assert.h> 4641#endif 4642 Syntax error 4643_ACEOF 4644if { (ac_try="$ac_cpp conftest.$ac_ext" 4645case "(($ac_try" in 4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4647 *) ac_try_echo=$ac_try;; 4648esac 4649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4651 ac_status=$? 4652 grep -v '^ *+' conftest.er1 >conftest.err 4653 rm -f conftest.er1 4654 cat conftest.err >&5 4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4656 (exit $ac_status); } >/dev/null && { 4657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4658 test ! -s conftest.err 4659 }; then 4660 : 4661else 4662 echo "$as_me: failed program was:" >&5 4663sed 's/^/| /' conftest.$ac_ext >&5 4664 4665 # Broken: fails on valid input. 4666continue 4667fi 4668 4669rm -f conftest.err conftest.$ac_ext 4670 4671 # OK, works on sane cases. Now check whether nonexistent headers 4672 # can be detected and how. 4673 cat >conftest.$ac_ext <<_ACEOF 4674/* confdefs.h. */ 4675_ACEOF 4676cat confdefs.h >>conftest.$ac_ext 4677cat >>conftest.$ac_ext <<_ACEOF 4678/* end confdefs.h. */ 4679#include <ac_nonexistent.h> 4680_ACEOF 4681if { (ac_try="$ac_cpp conftest.$ac_ext" 4682case "(($ac_try" in 4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4684 *) ac_try_echo=$ac_try;; 4685esac 4686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4688 ac_status=$? 4689 grep -v '^ *+' conftest.er1 >conftest.err 4690 rm -f conftest.er1 4691 cat conftest.err >&5 4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4693 (exit $ac_status); } >/dev/null && { 4694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4695 test ! -s conftest.err 4696 }; then 4697 # Broken: success on invalid input. 4698continue 4699else 4700 echo "$as_me: failed program was:" >&5 4701sed 's/^/| /' conftest.$ac_ext >&5 4702 4703 # Passes both tests. 4704ac_preproc_ok=: 4705break 4706fi 4707 4708rm -f conftest.err conftest.$ac_ext 4709 4710done 4711# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4712rm -f conftest.err conftest.$ac_ext 4713if $ac_preproc_ok; then 4714 : 4715else 4716 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4717See \`config.log' for more details." >&5 4718echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4719See \`config.log' for more details." >&2;} 4720 { (exit 1); exit 1; }; } 4721fi 4722 4723ac_ext=c 4724ac_cpp='$CPP $CPPFLAGS' 4725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4727ac_compiler_gnu=$ac_cv_c_compiler_gnu 4728 4729 4730{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4731echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4732if test "${ac_cv_header_stdc+set}" = set; then 4733 echo $ECHO_N "(cached) $ECHO_C" >&6 4734else 4735 cat >conftest.$ac_ext <<_ACEOF 4736/* confdefs.h. */ 4737_ACEOF 4738cat confdefs.h >>conftest.$ac_ext 4739cat >>conftest.$ac_ext <<_ACEOF 4740/* end confdefs.h. */ 4741#include <stdlib.h> 4742#include <stdarg.h> 4743#include <string.h> 4744#include <float.h> 4745 4746int 4747main () 4748{ 4749 4750 ; 4751 return 0; 4752} 4753_ACEOF 4754rm -f conftest.$ac_objext 4755if { (ac_try="$ac_compile" 4756case "(($ac_try" in 4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4758 *) ac_try_echo=$ac_try;; 4759esac 4760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4761 (eval "$ac_compile") 2>conftest.er1 4762 ac_status=$? 4763 grep -v '^ *+' conftest.er1 >conftest.err 4764 rm -f conftest.er1 4765 cat conftest.err >&5 4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4767 (exit $ac_status); } && { 4768 test -z "$ac_c_werror_flag" || 4769 test ! -s conftest.err 4770 } && test -s conftest.$ac_objext; then 4771 ac_cv_header_stdc=yes 4772else 4773 echo "$as_me: failed program was:" >&5 4774sed 's/^/| /' conftest.$ac_ext >&5 4775 4776 ac_cv_header_stdc=no 4777fi 4778 4779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4780 4781if test $ac_cv_header_stdc = yes; then 4782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4783 cat >conftest.$ac_ext <<_ACEOF 4784/* confdefs.h. */ 4785_ACEOF 4786cat confdefs.h >>conftest.$ac_ext 4787cat >>conftest.$ac_ext <<_ACEOF 4788/* end confdefs.h. */ 4789#include <string.h> 4790 4791_ACEOF 4792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4793 $EGREP "memchr" >/dev/null 2>&1; then 4794 : 4795else 4796 ac_cv_header_stdc=no 4797fi 4798rm -f conftest* 4799 4800fi 4801 4802if test $ac_cv_header_stdc = yes; then 4803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4804 cat >conftest.$ac_ext <<_ACEOF 4805/* confdefs.h. */ 4806_ACEOF 4807cat confdefs.h >>conftest.$ac_ext 4808cat >>conftest.$ac_ext <<_ACEOF 4809/* end confdefs.h. */ 4810#include <stdlib.h> 4811 4812_ACEOF 4813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4814 $EGREP "free" >/dev/null 2>&1; then 4815 : 4816else 4817 ac_cv_header_stdc=no 4818fi 4819rm -f conftest* 4820 4821fi 4822 4823if test $ac_cv_header_stdc = yes; then 4824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4825 if test "$cross_compiling" = yes; then 4826 : 4827else 4828 cat >conftest.$ac_ext <<_ACEOF 4829/* confdefs.h. */ 4830_ACEOF 4831cat confdefs.h >>conftest.$ac_ext 4832cat >>conftest.$ac_ext <<_ACEOF 4833/* end confdefs.h. */ 4834#include <ctype.h> 4835#include <stdlib.h> 4836#if ((' ' & 0x0FF) == 0x020) 4837# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4838# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4839#else 4840# define ISLOWER(c) \ 4841 (('a' <= (c) && (c) <= 'i') \ 4842 || ('j' <= (c) && (c) <= 'r') \ 4843 || ('s' <= (c) && (c) <= 'z')) 4844# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4845#endif 4846 4847#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4848int 4849main () 4850{ 4851 int i; 4852 for (i = 0; i < 256; i++) 4853 if (XOR (islower (i), ISLOWER (i)) 4854 || toupper (i) != TOUPPER (i)) 4855 return 2; 4856 return 0; 4857} 4858_ACEOF 4859rm -f conftest$ac_exeext 4860if { (ac_try="$ac_link" 4861case "(($ac_try" in 4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4863 *) ac_try_echo=$ac_try;; 4864esac 4865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4866 (eval "$ac_link") 2>&5 4867 ac_status=$? 4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4870 { (case "(($ac_try" in 4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4872 *) ac_try_echo=$ac_try;; 4873esac 4874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4875 (eval "$ac_try") 2>&5 4876 ac_status=$? 4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4878 (exit $ac_status); }; }; then 4879 : 4880else 4881 echo "$as_me: program exited with status $ac_status" >&5 4882echo "$as_me: failed program was:" >&5 4883sed 's/^/| /' conftest.$ac_ext >&5 4884 4885( exit $ac_status ) 4886ac_cv_header_stdc=no 4887fi 4888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4889fi 4890 4891 4892fi 4893fi 4894{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4895echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 4896if test $ac_cv_header_stdc = yes; then 4897 4898cat >>confdefs.h <<\_ACEOF 4899#define STDC_HEADERS 1 4900_ACEOF 4901 4902fi 4903 4904# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4915 inttypes.h stdint.h unistd.h 4916do 4917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4918{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4921 echo $ECHO_N "(cached) $ECHO_C" >&6 4922else 4923 cat >conftest.$ac_ext <<_ACEOF 4924/* confdefs.h. */ 4925_ACEOF 4926cat confdefs.h >>conftest.$ac_ext 4927cat >>conftest.$ac_ext <<_ACEOF 4928/* end confdefs.h. */ 4929$ac_includes_default 4930 4931#include <$ac_header> 4932_ACEOF 4933rm -f conftest.$ac_objext 4934if { (ac_try="$ac_compile" 4935case "(($ac_try" in 4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4937 *) ac_try_echo=$ac_try;; 4938esac 4939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4940 (eval "$ac_compile") 2>conftest.er1 4941 ac_status=$? 4942 grep -v '^ *+' conftest.er1 >conftest.err 4943 rm -f conftest.er1 4944 cat conftest.err >&5 4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4946 (exit $ac_status); } && { 4947 test -z "$ac_c_werror_flag" || 4948 test ! -s conftest.err 4949 } && test -s conftest.$ac_objext; then 4950 eval "$as_ac_Header=yes" 4951else 4952 echo "$as_me: failed program was:" >&5 4953sed 's/^/| /' conftest.$ac_ext >&5 4954 4955 eval "$as_ac_Header=no" 4956fi 4957 4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4959fi 4960ac_res=`eval echo '${'$as_ac_Header'}'` 4961 { echo "$as_me:$LINENO: result: $ac_res" >&5 4962echo "${ECHO_T}$ac_res" >&6; } 4963if test `eval echo '${'$as_ac_Header'}'` = yes; then 4964 cat >>confdefs.h <<_ACEOF 4965#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4966_ACEOF 4967 4968fi 4969 4970done 4971 4972 4973 4974for ac_header in dlfcn.h 4975do 4976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4978 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4981 echo $ECHO_N "(cached) $ECHO_C" >&6 4982fi 4983ac_res=`eval echo '${'$as_ac_Header'}'` 4984 { echo "$as_me:$LINENO: result: $ac_res" >&5 4985echo "${ECHO_T}$ac_res" >&6; } 4986else 4987 # Is the header compilable? 4988{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 4989echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4990cat >conftest.$ac_ext <<_ACEOF 4991/* confdefs.h. */ 4992_ACEOF 4993cat confdefs.h >>conftest.$ac_ext 4994cat >>conftest.$ac_ext <<_ACEOF 4995/* end confdefs.h. */ 4996$ac_includes_default 4997#include <$ac_header> 4998_ACEOF 4999rm -f conftest.$ac_objext 5000if { (ac_try="$ac_compile" 5001case "(($ac_try" in 5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5003 *) ac_try_echo=$ac_try;; 5004esac 5005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5006 (eval "$ac_compile") 2>conftest.er1 5007 ac_status=$? 5008 grep -v '^ *+' conftest.er1 >conftest.err 5009 rm -f conftest.er1 5010 cat conftest.err >&5 5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5012 (exit $ac_status); } && { 5013 test -z "$ac_c_werror_flag" || 5014 test ! -s conftest.err 5015 } && test -s conftest.$ac_objext; then 5016 ac_header_compiler=yes 5017else 5018 echo "$as_me: failed program was:" >&5 5019sed 's/^/| /' conftest.$ac_ext >&5 5020 5021 ac_header_compiler=no 5022fi 5023 5024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5025{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5026echo "${ECHO_T}$ac_header_compiler" >&6; } 5027 5028# Is the header present? 5029{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5031cat >conftest.$ac_ext <<_ACEOF 5032/* confdefs.h. */ 5033_ACEOF 5034cat confdefs.h >>conftest.$ac_ext 5035cat >>conftest.$ac_ext <<_ACEOF 5036/* end confdefs.h. */ 5037#include <$ac_header> 5038_ACEOF 5039if { (ac_try="$ac_cpp conftest.$ac_ext" 5040case "(($ac_try" in 5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5042 *) ac_try_echo=$ac_try;; 5043esac 5044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5046 ac_status=$? 5047 grep -v '^ *+' conftest.er1 >conftest.err 5048 rm -f conftest.er1 5049 cat conftest.err >&5 5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5051 (exit $ac_status); } >/dev/null && { 5052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5053 test ! -s conftest.err 5054 }; then 5055 ac_header_preproc=yes 5056else 5057 echo "$as_me: failed program was:" >&5 5058sed 's/^/| /' conftest.$ac_ext >&5 5059 5060 ac_header_preproc=no 5061fi 5062 5063rm -f conftest.err conftest.$ac_ext 5064{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5065echo "${ECHO_T}$ac_header_preproc" >&6; } 5066 5067# So? What about this header? 5068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5069 yes:no: ) 5070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5071echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5073echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5074 ac_header_preproc=yes 5075 ;; 5076 no:yes:* ) 5077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5080echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5082echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5084echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5086echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5088echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5089 5090 ;; 5091esac 5092{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5095 echo $ECHO_N "(cached) $ECHO_C" >&6 5096else 5097 eval "$as_ac_Header=\$ac_header_preproc" 5098fi 5099ac_res=`eval echo '${'$as_ac_Header'}'` 5100 { echo "$as_me:$LINENO: result: $ac_res" >&5 5101echo "${ECHO_T}$ac_res" >&6; } 5102 5103fi 5104if test `eval echo '${'$as_ac_Header'}'` = yes; then 5105 cat >>confdefs.h <<_ACEOF 5106#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5107_ACEOF 5108 5109fi 5110 5111done 5112 5113ac_ext=cpp 5114ac_cpp='$CXXCPP $CPPFLAGS' 5115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5118if test -z "$CXX"; then 5119 if test -n "$CCC"; then 5120 CXX=$CCC 5121 else 5122 if test -n "$ac_tool_prefix"; then 5123 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5124 do 5125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5126set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5127{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5129if test "${ac_cv_prog_CXX+set}" = set; then 5130 echo $ECHO_N "(cached) $ECHO_C" >&6 5131else 5132 if test -n "$CXX"; then 5133 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5134else 5135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5136for as_dir in $PATH 5137do 5138 IFS=$as_save_IFS 5139 test -z "$as_dir" && as_dir=. 5140 for ac_exec_ext in '' $ac_executable_extensions; do 5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5142 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5144 break 2 5145 fi 5146done 5147done 5148IFS=$as_save_IFS 5149 5150fi 5151fi 5152CXX=$ac_cv_prog_CXX 5153if test -n "$CXX"; then 5154 { echo "$as_me:$LINENO: result: $CXX" >&5 5155echo "${ECHO_T}$CXX" >&6; } 5156else 5157 { echo "$as_me:$LINENO: result: no" >&5 5158echo "${ECHO_T}no" >&6; } 5159fi 5160 5161 5162 test -n "$CXX" && break 5163 done 5164fi 5165if test -z "$CXX"; then 5166 ac_ct_CXX=$CXX 5167 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5168do 5169 # Extract the first word of "$ac_prog", so it can be a program name with args. 5170set dummy $ac_prog; ac_word=$2 5171{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5173if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5174 echo $ECHO_N "(cached) $ECHO_C" >&6 5175else 5176 if test -n "$ac_ct_CXX"; then 5177 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5178else 5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5180for as_dir in $PATH 5181do 5182 IFS=$as_save_IFS 5183 test -z "$as_dir" && as_dir=. 5184 for ac_exec_ext in '' $ac_executable_extensions; do 5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5186 ac_cv_prog_ac_ct_CXX="$ac_prog" 5187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5188 break 2 5189 fi 5190done 5191done 5192IFS=$as_save_IFS 5193 5194fi 5195fi 5196ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5197if test -n "$ac_ct_CXX"; then 5198 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5199echo "${ECHO_T}$ac_ct_CXX" >&6; } 5200else 5201 { echo "$as_me:$LINENO: result: no" >&5 5202echo "${ECHO_T}no" >&6; } 5203fi 5204 5205 5206 test -n "$ac_ct_CXX" && break 5207done 5208 5209 if test "x$ac_ct_CXX" = x; then 5210 CXX="g++" 5211 else 5212 case $cross_compiling:$ac_tool_warned in 5213yes:) 5214{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5215whose name does not start with the host triplet. If you think this 5216configuration is useful to you, please write to autoconf@gnu.org." >&5 5217echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5218whose name does not start with the host triplet. If you think this 5219configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5220ac_tool_warned=yes ;; 5221esac 5222 CXX=$ac_ct_CXX 5223 fi 5224fi 5225 5226 fi 5227fi 5228# Provide some information about the compiler. 5229echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5230ac_compiler=`set X $ac_compile; echo $2` 5231{ (ac_try="$ac_compiler --version >&5" 5232case "(($ac_try" in 5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5234 *) ac_try_echo=$ac_try;; 5235esac 5236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5237 (eval "$ac_compiler --version >&5") 2>&5 5238 ac_status=$? 5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5240 (exit $ac_status); } 5241{ (ac_try="$ac_compiler -v >&5" 5242case "(($ac_try" in 5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5244 *) ac_try_echo=$ac_try;; 5245esac 5246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5247 (eval "$ac_compiler -v >&5") 2>&5 5248 ac_status=$? 5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5250 (exit $ac_status); } 5251{ (ac_try="$ac_compiler -V >&5" 5252case "(($ac_try" in 5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5254 *) ac_try_echo=$ac_try;; 5255esac 5256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5257 (eval "$ac_compiler -V >&5") 2>&5 5258 ac_status=$? 5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5260 (exit $ac_status); } 5261 5262{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5263echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5264if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5265 echo $ECHO_N "(cached) $ECHO_C" >&6 5266else 5267 cat >conftest.$ac_ext <<_ACEOF 5268/* confdefs.h. */ 5269_ACEOF 5270cat confdefs.h >>conftest.$ac_ext 5271cat >>conftest.$ac_ext <<_ACEOF 5272/* end confdefs.h. */ 5273 5274int 5275main () 5276{ 5277#ifndef __GNUC__ 5278 choke me 5279#endif 5280 5281 ; 5282 return 0; 5283} 5284_ACEOF 5285rm -f conftest.$ac_objext 5286if { (ac_try="$ac_compile" 5287case "(($ac_try" in 5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5289 *) ac_try_echo=$ac_try;; 5290esac 5291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5292 (eval "$ac_compile") 2>conftest.er1 5293 ac_status=$? 5294 grep -v '^ *+' conftest.er1 >conftest.err 5295 rm -f conftest.er1 5296 cat conftest.err >&5 5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5298 (exit $ac_status); } && { 5299 test -z "$ac_cxx_werror_flag" || 5300 test ! -s conftest.err 5301 } && test -s conftest.$ac_objext; then 5302 ac_compiler_gnu=yes 5303else 5304 echo "$as_me: failed program was:" >&5 5305sed 's/^/| /' conftest.$ac_ext >&5 5306 5307 ac_compiler_gnu=no 5308fi 5309 5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5311ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5312 5313fi 5314{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5315echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5316GXX=`test $ac_compiler_gnu = yes && echo yes` 5317ac_test_CXXFLAGS=${CXXFLAGS+set} 5318ac_save_CXXFLAGS=$CXXFLAGS 5319{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5320echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5321if test "${ac_cv_prog_cxx_g+set}" = set; then 5322 echo $ECHO_N "(cached) $ECHO_C" >&6 5323else 5324 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5325 ac_cxx_werror_flag=yes 5326 ac_cv_prog_cxx_g=no 5327 CXXFLAGS="-g" 5328 cat >conftest.$ac_ext <<_ACEOF 5329/* confdefs.h. */ 5330_ACEOF 5331cat confdefs.h >>conftest.$ac_ext 5332cat >>conftest.$ac_ext <<_ACEOF 5333/* end confdefs.h. */ 5334 5335int 5336main () 5337{ 5338 5339 ; 5340 return 0; 5341} 5342_ACEOF 5343rm -f conftest.$ac_objext 5344if { (ac_try="$ac_compile" 5345case "(($ac_try" in 5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5347 *) ac_try_echo=$ac_try;; 5348esac 5349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5350 (eval "$ac_compile") 2>conftest.er1 5351 ac_status=$? 5352 grep -v '^ *+' conftest.er1 >conftest.err 5353 rm -f conftest.er1 5354 cat conftest.err >&5 5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5356 (exit $ac_status); } && { 5357 test -z "$ac_cxx_werror_flag" || 5358 test ! -s conftest.err 5359 } && test -s conftest.$ac_objext; then 5360 ac_cv_prog_cxx_g=yes 5361else 5362 echo "$as_me: failed program was:" >&5 5363sed 's/^/| /' conftest.$ac_ext >&5 5364 5365 CXXFLAGS="" 5366 cat >conftest.$ac_ext <<_ACEOF 5367/* confdefs.h. */ 5368_ACEOF 5369cat confdefs.h >>conftest.$ac_ext 5370cat >>conftest.$ac_ext <<_ACEOF 5371/* end confdefs.h. */ 5372 5373int 5374main () 5375{ 5376 5377 ; 5378 return 0; 5379} 5380_ACEOF 5381rm -f conftest.$ac_objext 5382if { (ac_try="$ac_compile" 5383case "(($ac_try" in 5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5385 *) ac_try_echo=$ac_try;; 5386esac 5387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5388 (eval "$ac_compile") 2>conftest.er1 5389 ac_status=$? 5390 grep -v '^ *+' conftest.er1 >conftest.err 5391 rm -f conftest.er1 5392 cat conftest.err >&5 5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5394 (exit $ac_status); } && { 5395 test -z "$ac_cxx_werror_flag" || 5396 test ! -s conftest.err 5397 } && test -s conftest.$ac_objext; then 5398 : 5399else 5400 echo "$as_me: failed program was:" >&5 5401sed 's/^/| /' conftest.$ac_ext >&5 5402 5403 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5404 CXXFLAGS="-g" 5405 cat >conftest.$ac_ext <<_ACEOF 5406/* confdefs.h. */ 5407_ACEOF 5408cat confdefs.h >>conftest.$ac_ext 5409cat >>conftest.$ac_ext <<_ACEOF 5410/* end confdefs.h. */ 5411 5412int 5413main () 5414{ 5415 5416 ; 5417 return 0; 5418} 5419_ACEOF 5420rm -f conftest.$ac_objext 5421if { (ac_try="$ac_compile" 5422case "(($ac_try" in 5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5424 *) ac_try_echo=$ac_try;; 5425esac 5426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5427 (eval "$ac_compile") 2>conftest.er1 5428 ac_status=$? 5429 grep -v '^ *+' conftest.er1 >conftest.err 5430 rm -f conftest.er1 5431 cat conftest.err >&5 5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5433 (exit $ac_status); } && { 5434 test -z "$ac_cxx_werror_flag" || 5435 test ! -s conftest.err 5436 } && test -s conftest.$ac_objext; then 5437 ac_cv_prog_cxx_g=yes 5438else 5439 echo "$as_me: failed program was:" >&5 5440sed 's/^/| /' conftest.$ac_ext >&5 5441 5442 5443fi 5444 5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5446fi 5447 5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5449fi 5450 5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5452 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5453fi 5454{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5455echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5456if test "$ac_test_CXXFLAGS" = set; then 5457 CXXFLAGS=$ac_save_CXXFLAGS 5458elif test $ac_cv_prog_cxx_g = yes; then 5459 if test "$GXX" = yes; then 5460 CXXFLAGS="-g -O2" 5461 else 5462 CXXFLAGS="-g" 5463 fi 5464else 5465 if test "$GXX" = yes; then 5466 CXXFLAGS="-O2" 5467 else 5468 CXXFLAGS= 5469 fi 5470fi 5471ac_ext=cpp 5472ac_cpp='$CXXCPP $CPPFLAGS' 5473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5476 5477depcc="$CXX" am_compiler_list= 5478 5479{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5480echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5481if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5482 echo $ECHO_N "(cached) $ECHO_C" >&6 5483else 5484 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5485 # We make a subdir and do the tests there. Otherwise we can end up 5486 # making bogus files that we don't know about and never remove. For 5487 # instance it was reported that on HP-UX the gcc test will end up 5488 # making a dummy file named `D' -- because `-MD' means `put the output 5489 # in D'. 5490 mkdir conftest.dir 5491 # Copy depcomp to subdir because otherwise we won't find it if we're 5492 # using a relative directory. 5493 cp "$am_depcomp" conftest.dir 5494 cd conftest.dir 5495 # We will build objects and dependencies in a subdirectory because 5496 # it helps to detect inapplicable dependency modes. For instance 5497 # both Tru64's cc and ICC support -MD to output dependencies as a 5498 # side effect of compilation, but ICC will put the dependencies in 5499 # the current directory while Tru64 will put them in the object 5500 # directory. 5501 mkdir sub 5502 5503 am_cv_CXX_dependencies_compiler_type=none 5504 if test "$am_compiler_list" = ""; then 5505 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5506 fi 5507 for depmode in $am_compiler_list; do 5508 # Setup a source with many dependencies, because some compilers 5509 # like to wrap large dependency lists on column 80 (with \), and 5510 # we should not choose a depcomp mode which is confused by this. 5511 # 5512 # We need to recreate these files for each test, as the compiler may 5513 # overwrite some of them when testing with obscure command lines. 5514 # This happens at least with the AIX C compiler. 5515 : > sub/conftest.c 5516 for i in 1 2 3 4 5 6; do 5517 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5518 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5519 # Solaris 8's {/usr,}/bin/sh. 5520 touch sub/conftst$i.h 5521 done 5522 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5523 5524 case $depmode in 5525 nosideeffect) 5526 # after this tag, mechanisms are not by side-effect, so they'll 5527 # only be used when explicitly requested 5528 if test "x$enable_dependency_tracking" = xyes; then 5529 continue 5530 else 5531 break 5532 fi 5533 ;; 5534 none) break ;; 5535 esac 5536 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5537 # mode. It turns out that the SunPro C++ compiler does not properly 5538 # handle `-M -o', and we need to detect this. 5539 if depmode=$depmode \ 5540 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5541 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5542 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5543 >/dev/null 2>conftest.err && 5544 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5545 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5546 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5547 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5548 # icc doesn't choke on unknown options, it will just issue warnings 5549 # or remarks (even with -Werror). So we grep stderr for any message 5550 # that says an option was ignored or not supported. 5551 # When given -MP, icc 7.0 and 7.1 complain thusly: 5552 # icc: Command line warning: ignoring option '-M'; no argument required 5553 # The diagnosis changed in icc 8.0: 5554 # icc: Command line remark: option '-MP' not supported 5555 if (grep 'ignoring option' conftest.err || 5556 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5557 am_cv_CXX_dependencies_compiler_type=$depmode 5558 break 5559 fi 5560 fi 5561 done 5562 5563 cd .. 5564 rm -rf conftest.dir 5565else 5566 am_cv_CXX_dependencies_compiler_type=none 5567fi 5568 5569fi 5570{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5571echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5572CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5573 5574 if 5575 test "x$enable_dependency_tracking" != xno \ 5576 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5577 am__fastdepCXX_TRUE= 5578 am__fastdepCXX_FALSE='#' 5579else 5580 am__fastdepCXX_TRUE='#' 5581 am__fastdepCXX_FALSE= 5582fi 5583 5584 5585 5586 5587if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5588 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5589 (test "X$CXX" != "Xg++"))) ; then 5590 ac_ext=cpp 5591ac_cpp='$CXXCPP $CPPFLAGS' 5592ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5593ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5594ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5595{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5596echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5597if test -z "$CXXCPP"; then 5598 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5599 echo $ECHO_N "(cached) $ECHO_C" >&6 5600else 5601 # Double quotes because CXXCPP needs to be expanded 5602 for CXXCPP in "$CXX -E" "/lib/cpp" 5603 do 5604 ac_preproc_ok=false 5605for ac_cxx_preproc_warn_flag in '' yes 5606do 5607 # Use a header file that comes with gcc, so configuring glibc 5608 # with a fresh cross-compiler works. 5609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5610 # <limits.h> exists even on freestanding compilers. 5611 # On the NeXT, cc -E runs the code through the compiler's parser, 5612 # not just through cpp. "Syntax error" is here to catch this case. 5613 cat >conftest.$ac_ext <<_ACEOF 5614/* confdefs.h. */ 5615_ACEOF 5616cat confdefs.h >>conftest.$ac_ext 5617cat >>conftest.$ac_ext <<_ACEOF 5618/* end confdefs.h. */ 5619#ifdef __STDC__ 5620# include <limits.h> 5621#else 5622# include <assert.h> 5623#endif 5624 Syntax error 5625_ACEOF 5626if { (ac_try="$ac_cpp conftest.$ac_ext" 5627case "(($ac_try" in 5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5629 *) ac_try_echo=$ac_try;; 5630esac 5631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5633 ac_status=$? 5634 grep -v '^ *+' conftest.er1 >conftest.err 5635 rm -f conftest.er1 5636 cat conftest.err >&5 5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5638 (exit $ac_status); } >/dev/null && { 5639 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5640 test ! -s conftest.err 5641 }; then 5642 : 5643else 5644 echo "$as_me: failed program was:" >&5 5645sed 's/^/| /' conftest.$ac_ext >&5 5646 5647 # Broken: fails on valid input. 5648continue 5649fi 5650 5651rm -f conftest.err conftest.$ac_ext 5652 5653 # OK, works on sane cases. Now check whether nonexistent headers 5654 # can be detected and how. 5655 cat >conftest.$ac_ext <<_ACEOF 5656/* confdefs.h. */ 5657_ACEOF 5658cat confdefs.h >>conftest.$ac_ext 5659cat >>conftest.$ac_ext <<_ACEOF 5660/* end confdefs.h. */ 5661#include <ac_nonexistent.h> 5662_ACEOF 5663if { (ac_try="$ac_cpp conftest.$ac_ext" 5664case "(($ac_try" in 5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5666 *) ac_try_echo=$ac_try;; 5667esac 5668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5670 ac_status=$? 5671 grep -v '^ *+' conftest.er1 >conftest.err 5672 rm -f conftest.er1 5673 cat conftest.err >&5 5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5675 (exit $ac_status); } >/dev/null && { 5676 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5677 test ! -s conftest.err 5678 }; then 5679 # Broken: success on invalid input. 5680continue 5681else 5682 echo "$as_me: failed program was:" >&5 5683sed 's/^/| /' conftest.$ac_ext >&5 5684 5685 # Passes both tests. 5686ac_preproc_ok=: 5687break 5688fi 5689 5690rm -f conftest.err conftest.$ac_ext 5691 5692done 5693# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5694rm -f conftest.err conftest.$ac_ext 5695if $ac_preproc_ok; then 5696 break 5697fi 5698 5699 done 5700 ac_cv_prog_CXXCPP=$CXXCPP 5701 5702fi 5703 CXXCPP=$ac_cv_prog_CXXCPP 5704else 5705 ac_cv_prog_CXXCPP=$CXXCPP 5706fi 5707{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5708echo "${ECHO_T}$CXXCPP" >&6; } 5709ac_preproc_ok=false 5710for ac_cxx_preproc_warn_flag in '' yes 5711do 5712 # Use a header file that comes with gcc, so configuring glibc 5713 # with a fresh cross-compiler works. 5714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5715 # <limits.h> exists even on freestanding compilers. 5716 # On the NeXT, cc -E runs the code through the compiler's parser, 5717 # not just through cpp. "Syntax error" is here to catch this case. 5718 cat >conftest.$ac_ext <<_ACEOF 5719/* confdefs.h. */ 5720_ACEOF 5721cat confdefs.h >>conftest.$ac_ext 5722cat >>conftest.$ac_ext <<_ACEOF 5723/* end confdefs.h. */ 5724#ifdef __STDC__ 5725# include <limits.h> 5726#else 5727# include <assert.h> 5728#endif 5729 Syntax error 5730_ACEOF 5731if { (ac_try="$ac_cpp conftest.$ac_ext" 5732case "(($ac_try" in 5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5734 *) ac_try_echo=$ac_try;; 5735esac 5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5738 ac_status=$? 5739 grep -v '^ *+' conftest.er1 >conftest.err 5740 rm -f conftest.er1 5741 cat conftest.err >&5 5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5743 (exit $ac_status); } >/dev/null && { 5744 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5745 test ! -s conftest.err 5746 }; then 5747 : 5748else 5749 echo "$as_me: failed program was:" >&5 5750sed 's/^/| /' conftest.$ac_ext >&5 5751 5752 # Broken: fails on valid input. 5753continue 5754fi 5755 5756rm -f conftest.err conftest.$ac_ext 5757 5758 # OK, works on sane cases. Now check whether nonexistent headers 5759 # can be detected and how. 5760 cat >conftest.$ac_ext <<_ACEOF 5761/* confdefs.h. */ 5762_ACEOF 5763cat confdefs.h >>conftest.$ac_ext 5764cat >>conftest.$ac_ext <<_ACEOF 5765/* end confdefs.h. */ 5766#include <ac_nonexistent.h> 5767_ACEOF 5768if { (ac_try="$ac_cpp conftest.$ac_ext" 5769case "(($ac_try" in 5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5771 *) ac_try_echo=$ac_try;; 5772esac 5773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5775 ac_status=$? 5776 grep -v '^ *+' conftest.er1 >conftest.err 5777 rm -f conftest.er1 5778 cat conftest.err >&5 5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5780 (exit $ac_status); } >/dev/null && { 5781 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5782 test ! -s conftest.err 5783 }; then 5784 # Broken: success on invalid input. 5785continue 5786else 5787 echo "$as_me: failed program was:" >&5 5788sed 's/^/| /' conftest.$ac_ext >&5 5789 5790 # Passes both tests. 5791ac_preproc_ok=: 5792break 5793fi 5794 5795rm -f conftest.err conftest.$ac_ext 5796 5797done 5798# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5799rm -f conftest.err conftest.$ac_ext 5800if $ac_preproc_ok; then 5801 : 5802else 5803 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5804See \`config.log' for more details." >&5 5805echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5806See \`config.log' for more details." >&2;} 5807 { (exit 1); exit 1; }; } 5808fi 5809 5810ac_ext=cpp 5811ac_cpp='$CXXCPP $CPPFLAGS' 5812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5815 5816fi 5817 5818 5819ac_ext=f 5820ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5821ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5822ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5823if test -n "$ac_tool_prefix"; then 5824 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 5825 do 5826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5827set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5828{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5830if test "${ac_cv_prog_F77+set}" = set; then 5831 echo $ECHO_N "(cached) $ECHO_C" >&6 5832else 5833 if test -n "$F77"; then 5834 ac_cv_prog_F77="$F77" # Let the user override the test. 5835else 5836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5837for as_dir in $PATH 5838do 5839 IFS=$as_save_IFS 5840 test -z "$as_dir" && as_dir=. 5841 for ac_exec_ext in '' $ac_executable_extensions; do 5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5843 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5845 break 2 5846 fi 5847done 5848done 5849IFS=$as_save_IFS 5850 5851fi 5852fi 5853F77=$ac_cv_prog_F77 5854if test -n "$F77"; then 5855 { echo "$as_me:$LINENO: result: $F77" >&5 5856echo "${ECHO_T}$F77" >&6; } 5857else 5858 { echo "$as_me:$LINENO: result: no" >&5 5859echo "${ECHO_T}no" >&6; } 5860fi 5861 5862 5863 test -n "$F77" && break 5864 done 5865fi 5866if test -z "$F77"; then 5867 ac_ct_F77=$F77 5868 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 5869do 5870 # Extract the first word of "$ac_prog", so it can be a program name with args. 5871set dummy $ac_prog; ac_word=$2 5872{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5874if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5875 echo $ECHO_N "(cached) $ECHO_C" >&6 5876else 5877 if test -n "$ac_ct_F77"; then 5878 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5879else 5880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5881for as_dir in $PATH 5882do 5883 IFS=$as_save_IFS 5884 test -z "$as_dir" && as_dir=. 5885 for ac_exec_ext in '' $ac_executable_extensions; do 5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5887 ac_cv_prog_ac_ct_F77="$ac_prog" 5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5889 break 2 5890 fi 5891done 5892done 5893IFS=$as_save_IFS 5894 5895fi 5896fi 5897ac_ct_F77=$ac_cv_prog_ac_ct_F77 5898if test -n "$ac_ct_F77"; then 5899 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5900echo "${ECHO_T}$ac_ct_F77" >&6; } 5901else 5902 { echo "$as_me:$LINENO: result: no" >&5 5903echo "${ECHO_T}no" >&6; } 5904fi 5905 5906 5907 test -n "$ac_ct_F77" && break 5908done 5909 5910 if test "x$ac_ct_F77" = x; then 5911 F77="" 5912 else 5913 case $cross_compiling:$ac_tool_warned in 5914yes:) 5915{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5916whose name does not start with the host triplet. If you think this 5917configuration is useful to you, please write to autoconf@gnu.org." >&5 5918echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5919whose name does not start with the host triplet. If you think this 5920configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5921ac_tool_warned=yes ;; 5922esac 5923 F77=$ac_ct_F77 5924 fi 5925fi 5926 5927 5928# Provide some information about the compiler. 5929echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 5930ac_compiler=`set X $ac_compile; echo $2` 5931{ (ac_try="$ac_compiler --version >&5" 5932case "(($ac_try" in 5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5934 *) ac_try_echo=$ac_try;; 5935esac 5936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5937 (eval "$ac_compiler --version >&5") 2>&5 5938 ac_status=$? 5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5940 (exit $ac_status); } 5941{ (ac_try="$ac_compiler -v >&5" 5942case "(($ac_try" in 5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5944 *) ac_try_echo=$ac_try;; 5945esac 5946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5947 (eval "$ac_compiler -v >&5") 2>&5 5948 ac_status=$? 5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5950 (exit $ac_status); } 5951{ (ac_try="$ac_compiler -V >&5" 5952case "(($ac_try" in 5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5954 *) ac_try_echo=$ac_try;; 5955esac 5956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5957 (eval "$ac_compiler -V >&5") 2>&5 5958 ac_status=$? 5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5960 (exit $ac_status); } 5961rm -f a.out 5962 5963# If we don't use `.F' as extension, the preprocessor is not run on the 5964# input file. (Note that this only needs to work for GNU compilers.) 5965ac_save_ext=$ac_ext 5966ac_ext=F 5967{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5968echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 5969if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5970 echo $ECHO_N "(cached) $ECHO_C" >&6 5971else 5972 cat >conftest.$ac_ext <<_ACEOF 5973 program main 5974#ifndef __GNUC__ 5975 choke me 5976#endif 5977 5978 end 5979_ACEOF 5980rm -f conftest.$ac_objext 5981if { (ac_try="$ac_compile" 5982case "(($ac_try" in 5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5984 *) ac_try_echo=$ac_try;; 5985esac 5986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5987 (eval "$ac_compile") 2>conftest.er1 5988 ac_status=$? 5989 grep -v '^ *+' conftest.er1 >conftest.err 5990 rm -f conftest.er1 5991 cat conftest.err >&5 5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5993 (exit $ac_status); } && { 5994 test -z "$ac_f77_werror_flag" || 5995 test ! -s conftest.err 5996 } && test -s conftest.$ac_objext; then 5997 ac_compiler_gnu=yes 5998else 5999 echo "$as_me: failed program was:" >&5 6000sed 's/^/| /' conftest.$ac_ext >&5 6001 6002 ac_compiler_gnu=no 6003fi 6004 6005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6006ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6007 6008fi 6009{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6010echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6011ac_ext=$ac_save_ext 6012ac_test_FFLAGS=${FFLAGS+set} 6013ac_save_FFLAGS=$FFLAGS 6014FFLAGS= 6015{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6016echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6017if test "${ac_cv_prog_f77_g+set}" = set; then 6018 echo $ECHO_N "(cached) $ECHO_C" >&6 6019else 6020 FFLAGS=-g 6021cat >conftest.$ac_ext <<_ACEOF 6022 program main 6023 6024 end 6025_ACEOF 6026rm -f conftest.$ac_objext 6027if { (ac_try="$ac_compile" 6028case "(($ac_try" in 6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6030 *) ac_try_echo=$ac_try;; 6031esac 6032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6033 (eval "$ac_compile") 2>conftest.er1 6034 ac_status=$? 6035 grep -v '^ *+' conftest.er1 >conftest.err 6036 rm -f conftest.er1 6037 cat conftest.err >&5 6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6039 (exit $ac_status); } && { 6040 test -z "$ac_f77_werror_flag" || 6041 test ! -s conftest.err 6042 } && test -s conftest.$ac_objext; then 6043 ac_cv_prog_f77_g=yes 6044else 6045 echo "$as_me: failed program was:" >&5 6046sed 's/^/| /' conftest.$ac_ext >&5 6047 6048 ac_cv_prog_f77_g=no 6049fi 6050 6051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6052 6053fi 6054{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6055echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6056if test "$ac_test_FFLAGS" = set; then 6057 FFLAGS=$ac_save_FFLAGS 6058elif test $ac_cv_prog_f77_g = yes; then 6059 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6060 FFLAGS="-g -O2" 6061 else 6062 FFLAGS="-g" 6063 fi 6064else 6065 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6066 FFLAGS="-O2" 6067 else 6068 FFLAGS= 6069 fi 6070fi 6071 6072G77=`test $ac_compiler_gnu = yes && echo yes` 6073ac_ext=c 6074ac_cpp='$CPP $CPPFLAGS' 6075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6077ac_compiler_gnu=$ac_cv_c_compiler_gnu 6078 6079 6080 6081# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6082 6083# find the maximum length of command line arguments 6084{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6085echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6086if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6087 echo $ECHO_N "(cached) $ECHO_C" >&6 6088else 6089 i=0 6090 teststring="ABCD" 6091 6092 case $build_os in 6093 msdosdjgpp*) 6094 # On DJGPP, this test can blow up pretty badly due to problems in libc 6095 # (any single argument exceeding 2000 bytes causes a buffer overrun 6096 # during glob expansion). Even if it were fixed, the result of this 6097 # check would be larger than it should be. 6098 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6099 ;; 6100 6101 gnu*) 6102 # Under GNU Hurd, this test is not required because there is 6103 # no limit to the length of command line arguments. 6104 # Libtool will interpret -1 as no limit whatsoever 6105 lt_cv_sys_max_cmd_len=-1; 6106 ;; 6107 6108 cygwin* | mingw*) 6109 # On Win9x/ME, this test blows up -- it succeeds, but takes 6110 # about 5 minutes as the teststring grows exponentially. 6111 # Worse, since 9x/ME are not pre-emptively multitasking, 6112 # you end up with a "frozen" computer, even though with patience 6113 # the test eventually succeeds (with a max line length of 256k). 6114 # Instead, let's just punt: use the minimum linelength reported by 6115 # all of the supported platforms: 8192 (on NT/2K/XP). 6116 lt_cv_sys_max_cmd_len=8192; 6117 ;; 6118 6119 amigaos*) 6120 # On AmigaOS with pdksh, this test takes hours, literally. 6121 # So we just punt and use a minimum line length of 8192. 6122 lt_cv_sys_max_cmd_len=8192; 6123 ;; 6124 6125 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6126 # This has been around since 386BSD, at least. Likely further. 6127 if test -x /sbin/sysctl; then 6128 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6129 elif test -x /usr/sbin/sysctl; then 6130 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6131 else 6132 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6133 fi 6134 # And add a safety zone 6135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6137 ;; 6138 6139 interix*) 6140 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6141 lt_cv_sys_max_cmd_len=196608 6142 ;; 6143 6144 osf*) 6145 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6146 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6147 # nice to cause kernel panics so lets avoid the loop below. 6148 # First set a reasonable default. 6149 lt_cv_sys_max_cmd_len=16384 6150 # 6151 if test -x /sbin/sysconfig; then 6152 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6153 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6154 esac 6155 fi 6156 ;; 6157 sco3.2v5*) 6158 lt_cv_sys_max_cmd_len=102400 6159 ;; 6160 sysv5* | sco5v6* | sysv4.2uw2*) 6161 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6162 if test -n "$kargmax"; then 6163 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6164 else 6165 lt_cv_sys_max_cmd_len=32768 6166 fi 6167 ;; 6168 *) 6169 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6170 if test -n "$lt_cv_sys_max_cmd_len"; then 6171 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6172 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6173 else 6174 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6175 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6176 = "XX$teststring") >/dev/null 2>&1 && 6177 new_result=`expr "X$teststring" : ".*" 2>&1` && 6178 lt_cv_sys_max_cmd_len=$new_result && 6179 test $i != 17 # 1/2 MB should be enough 6180 do 6181 i=`expr $i + 1` 6182 teststring=$teststring$teststring 6183 done 6184 teststring= 6185 # Add a significant safety factor because C++ compilers can tack on massive 6186 # amounts of additional arguments before passing them to the linker. 6187 # It appears as though 1/2 is a usable value. 6188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6189 fi 6190 ;; 6191 esac 6192 6193fi 6194 6195if test -n $lt_cv_sys_max_cmd_len ; then 6196 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6197echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6198else 6199 { echo "$as_me:$LINENO: result: none" >&5 6200echo "${ECHO_T}none" >&6; } 6201fi 6202 6203 6204 6205 6206 6207# Check for command to grab the raw symbol name followed by C symbol from nm. 6208{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6209echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6210if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6211 echo $ECHO_N "(cached) $ECHO_C" >&6 6212else 6213 6214# These are sane defaults that work on at least a few old systems. 6215# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6216 6217# Character class describing NM global symbol codes. 6218symcode='[BCDEGRST]' 6219 6220# Regexp to match symbols that can be accessed directly from C. 6221sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6222 6223# Transform an extracted symbol line into a proper C declaration 6224lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6225 6226# Transform an extracted symbol line into symbol name and symbol address 6227lt_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'" 6228 6229# Define system-specific variables. 6230case $host_os in 6231aix*) 6232 symcode='[BCDT]' 6233 ;; 6234cygwin* | mingw* | pw32*) 6235 symcode='[ABCDGISTW]' 6236 ;; 6237hpux*) # Its linker distinguishes data from code symbols 6238 if test "$host_cpu" = ia64; then 6239 symcode='[ABCDEGRST]' 6240 fi 6241 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6242 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'" 6243 ;; 6244linux* | k*bsd*-gnu) 6245 if test "$host_cpu" = ia64; then 6246 symcode='[ABCDGIRSTW]' 6247 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6248 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'" 6249 fi 6250 ;; 6251irix* | nonstopux*) 6252 symcode='[BCDEGRST]' 6253 ;; 6254osf*) 6255 symcode='[BCDEGQRST]' 6256 ;; 6257solaris*) 6258 symcode='[BDRT]' 6259 ;; 6260sco3.2v5*) 6261 symcode='[DT]' 6262 ;; 6263sysv4.2uw2*) 6264 symcode='[DT]' 6265 ;; 6266sysv5* | sco5v6* | unixware* | OpenUNIX*) 6267 symcode='[ABDT]' 6268 ;; 6269sysv4) 6270 symcode='[DFNSTU]' 6271 ;; 6272esac 6273 6274# Handle CRLF in mingw tool chain 6275opt_cr= 6276case $build_os in 6277mingw*) 6278 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6279 ;; 6280esac 6281 6282# If we're using GNU nm, then use its standard symbol codes. 6283case `$NM -V 2>&1` in 6284*GNU* | *'with BFD'*) 6285 symcode='[ABCDGIRSTW]' ;; 6286esac 6287 6288# Try without a prefix undercore, then with it. 6289for ac_symprfx in "" "_"; do 6290 6291 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6292 symxfrm="\\1 $ac_symprfx\\2 \\2" 6293 6294 # Write the raw and C identifiers. 6295 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6296 6297 # Check to see that the pipe works correctly. 6298 pipe_works=no 6299 6300 rm -f conftest* 6301 cat > conftest.$ac_ext <<EOF 6302#ifdef __cplusplus 6303extern "C" { 6304#endif 6305char nm_test_var; 6306void nm_test_func(){} 6307#ifdef __cplusplus 6308} 6309#endif 6310int main(){nm_test_var='a';nm_test_func();return(0);} 6311EOF 6312 6313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6314 (eval $ac_compile) 2>&5 6315 ac_status=$? 6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6317 (exit $ac_status); }; then 6318 # Now try to grab the symbols. 6319 nlist=conftest.nm 6320 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6321 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6322 ac_status=$? 6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6324 (exit $ac_status); } && test -s "$nlist"; then 6325 # Try sorting and uniquifying the output. 6326 if sort "$nlist" | uniq > "$nlist"T; then 6327 mv -f "$nlist"T "$nlist" 6328 else 6329 rm -f "$nlist"T 6330 fi 6331 6332 # Make sure that we snagged all the symbols we need. 6333 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6334 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6335 cat <<EOF > conftest.$ac_ext 6336#ifdef __cplusplus 6337extern "C" { 6338#endif 6339 6340EOF 6341 # Now generate the symbol file. 6342 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6343 6344 cat <<EOF >> conftest.$ac_ext 6345#if defined (__STDC__) && __STDC__ 6346# define lt_ptr_t void * 6347#else 6348# define lt_ptr_t char * 6349# define const 6350#endif 6351 6352/* The mapping between symbol names and symbols. */ 6353const struct { 6354 const char *name; 6355 lt_ptr_t address; 6356} 6357lt_preloaded_symbols[] = 6358{ 6359EOF 6360 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6361 cat <<\EOF >> conftest.$ac_ext 6362 {0, (lt_ptr_t) 0} 6363}; 6364 6365#ifdef __cplusplus 6366} 6367#endif 6368EOF 6369 # Now try linking the two files. 6370 mv conftest.$ac_objext conftstm.$ac_objext 6371 lt_save_LIBS="$LIBS" 6372 lt_save_CFLAGS="$CFLAGS" 6373 LIBS="conftstm.$ac_objext" 6374 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6376 (eval $ac_link) 2>&5 6377 ac_status=$? 6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6379 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6380 pipe_works=yes 6381 fi 6382 LIBS="$lt_save_LIBS" 6383 CFLAGS="$lt_save_CFLAGS" 6384 else 6385 echo "cannot find nm_test_func in $nlist" >&5 6386 fi 6387 else 6388 echo "cannot find nm_test_var in $nlist" >&5 6389 fi 6390 else 6391 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6392 fi 6393 else 6394 echo "$progname: failed program was:" >&5 6395 cat conftest.$ac_ext >&5 6396 fi 6397 rm -f conftest* conftst* 6398 6399 # Do not use the global_symbol_pipe unless it works. 6400 if test "$pipe_works" = yes; then 6401 break 6402 else 6403 lt_cv_sys_global_symbol_pipe= 6404 fi 6405done 6406 6407fi 6408 6409if test -z "$lt_cv_sys_global_symbol_pipe"; then 6410 lt_cv_sys_global_symbol_to_cdecl= 6411fi 6412if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6413 { echo "$as_me:$LINENO: result: failed" >&5 6414echo "${ECHO_T}failed" >&6; } 6415else 6416 { echo "$as_me:$LINENO: result: ok" >&5 6417echo "${ECHO_T}ok" >&6; } 6418fi 6419 6420{ echo "$as_me:$LINENO: checking for objdir" >&5 6421echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6422if test "${lt_cv_objdir+set}" = set; then 6423 echo $ECHO_N "(cached) $ECHO_C" >&6 6424else 6425 rm -f .libs 2>/dev/null 6426mkdir .libs 2>/dev/null 6427if test -d .libs; then 6428 lt_cv_objdir=.libs 6429else 6430 # MS-DOS does not allow filenames that begin with a dot. 6431 lt_cv_objdir=_libs 6432fi 6433rmdir .libs 2>/dev/null 6434fi 6435{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6436echo "${ECHO_T}$lt_cv_objdir" >&6; } 6437objdir=$lt_cv_objdir 6438 6439 6440 6441 6442 6443case $host_os in 6444aix3*) 6445 # AIX sometimes has problems with the GCC collect2 program. For some 6446 # reason, if we set the COLLECT_NAMES environment variable, the problems 6447 # vanish in a puff of smoke. 6448 if test "X${COLLECT_NAMES+set}" != Xset; then 6449 COLLECT_NAMES= 6450 export COLLECT_NAMES 6451 fi 6452 ;; 6453esac 6454 6455# Sed substitution that helps us do robust quoting. It backslashifies 6456# metacharacters that are still active within double-quoted strings. 6457Xsed='sed -e 1s/^X//' 6458sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6459 6460# Same as above, but do not quote variable references. 6461double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6462 6463# Sed substitution to delay expansion of an escaped shell variable in a 6464# double_quote_subst'ed string. 6465delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6466 6467# Sed substitution to avoid accidental globbing in evaled expressions 6468no_glob_subst='s/\*/\\\*/g' 6469 6470# Constants: 6471rm="rm -f" 6472 6473# Global variables: 6474default_ofile=libtool 6475can_build_shared=yes 6476 6477# All known linkers require a `.a' archive for static linking (except MSVC, 6478# which needs '.lib'). 6479libext=a 6480ltmain="$ac_aux_dir/ltmain.sh" 6481ofile="$default_ofile" 6482with_gnu_ld="$lt_cv_prog_gnu_ld" 6483 6484if test -n "$ac_tool_prefix"; then 6485 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6486set dummy ${ac_tool_prefix}ar; ac_word=$2 6487{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6489if test "${ac_cv_prog_AR+set}" = set; then 6490 echo $ECHO_N "(cached) $ECHO_C" >&6 6491else 6492 if test -n "$AR"; then 6493 ac_cv_prog_AR="$AR" # Let the user override the test. 6494else 6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6496for as_dir in $PATH 6497do 6498 IFS=$as_save_IFS 6499 test -z "$as_dir" && as_dir=. 6500 for ac_exec_ext in '' $ac_executable_extensions; do 6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6502 ac_cv_prog_AR="${ac_tool_prefix}ar" 6503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6504 break 2 6505 fi 6506done 6507done 6508IFS=$as_save_IFS 6509 6510fi 6511fi 6512AR=$ac_cv_prog_AR 6513if test -n "$AR"; then 6514 { echo "$as_me:$LINENO: result: $AR" >&5 6515echo "${ECHO_T}$AR" >&6; } 6516else 6517 { echo "$as_me:$LINENO: result: no" >&5 6518echo "${ECHO_T}no" >&6; } 6519fi 6520 6521 6522fi 6523if test -z "$ac_cv_prog_AR"; then 6524 ac_ct_AR=$AR 6525 # Extract the first word of "ar", so it can be a program name with args. 6526set dummy ar; ac_word=$2 6527{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6529if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6530 echo $ECHO_N "(cached) $ECHO_C" >&6 6531else 6532 if test -n "$ac_ct_AR"; then 6533 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6534else 6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6536for as_dir in $PATH 6537do 6538 IFS=$as_save_IFS 6539 test -z "$as_dir" && as_dir=. 6540 for ac_exec_ext in '' $ac_executable_extensions; do 6541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6542 ac_cv_prog_ac_ct_AR="ar" 6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6544 break 2 6545 fi 6546done 6547done 6548IFS=$as_save_IFS 6549 6550fi 6551fi 6552ac_ct_AR=$ac_cv_prog_ac_ct_AR 6553if test -n "$ac_ct_AR"; then 6554 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6555echo "${ECHO_T}$ac_ct_AR" >&6; } 6556else 6557 { echo "$as_me:$LINENO: result: no" >&5 6558echo "${ECHO_T}no" >&6; } 6559fi 6560 6561 if test "x$ac_ct_AR" = x; then 6562 AR="false" 6563 else 6564 case $cross_compiling:$ac_tool_warned in 6565yes:) 6566{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6567whose name does not start with the host triplet. If you think this 6568configuration is useful to you, please write to autoconf@gnu.org." >&5 6569echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6570whose name does not start with the host triplet. If you think this 6571configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6572ac_tool_warned=yes ;; 6573esac 6574 AR=$ac_ct_AR 6575 fi 6576else 6577 AR="$ac_cv_prog_AR" 6578fi 6579 6580if test -n "$ac_tool_prefix"; then 6581 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6582set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6583{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6585if test "${ac_cv_prog_RANLIB+set}" = set; then 6586 echo $ECHO_N "(cached) $ECHO_C" >&6 6587else 6588 if test -n "$RANLIB"; then 6589 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6590else 6591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6592for as_dir in $PATH 6593do 6594 IFS=$as_save_IFS 6595 test -z "$as_dir" && as_dir=. 6596 for ac_exec_ext in '' $ac_executable_extensions; do 6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6598 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6600 break 2 6601 fi 6602done 6603done 6604IFS=$as_save_IFS 6605 6606fi 6607fi 6608RANLIB=$ac_cv_prog_RANLIB 6609if test -n "$RANLIB"; then 6610 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6611echo "${ECHO_T}$RANLIB" >&6; } 6612else 6613 { echo "$as_me:$LINENO: result: no" >&5 6614echo "${ECHO_T}no" >&6; } 6615fi 6616 6617 6618fi 6619if test -z "$ac_cv_prog_RANLIB"; then 6620 ac_ct_RANLIB=$RANLIB 6621 # Extract the first word of "ranlib", so it can be a program name with args. 6622set dummy ranlib; ac_word=$2 6623{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6625if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6626 echo $ECHO_N "(cached) $ECHO_C" >&6 6627else 6628 if test -n "$ac_ct_RANLIB"; then 6629 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6630else 6631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6632for as_dir in $PATH 6633do 6634 IFS=$as_save_IFS 6635 test -z "$as_dir" && as_dir=. 6636 for ac_exec_ext in '' $ac_executable_extensions; do 6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6638 ac_cv_prog_ac_ct_RANLIB="ranlib" 6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6640 break 2 6641 fi 6642done 6643done 6644IFS=$as_save_IFS 6645 6646fi 6647fi 6648ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6649if test -n "$ac_ct_RANLIB"; then 6650 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6651echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6652else 6653 { echo "$as_me:$LINENO: result: no" >&5 6654echo "${ECHO_T}no" >&6; } 6655fi 6656 6657 if test "x$ac_ct_RANLIB" = x; then 6658 RANLIB=":" 6659 else 6660 case $cross_compiling:$ac_tool_warned in 6661yes:) 6662{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6663whose name does not start with the host triplet. If you think this 6664configuration is useful to you, please write to autoconf@gnu.org." >&5 6665echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6666whose name does not start with the host triplet. If you think this 6667configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6668ac_tool_warned=yes ;; 6669esac 6670 RANLIB=$ac_ct_RANLIB 6671 fi 6672else 6673 RANLIB="$ac_cv_prog_RANLIB" 6674fi 6675 6676if test -n "$ac_tool_prefix"; then 6677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6678set dummy ${ac_tool_prefix}strip; ac_word=$2 6679{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6681if test "${ac_cv_prog_STRIP+set}" = set; then 6682 echo $ECHO_N "(cached) $ECHO_C" >&6 6683else 6684 if test -n "$STRIP"; then 6685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6686else 6687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6688for as_dir in $PATH 6689do 6690 IFS=$as_save_IFS 6691 test -z "$as_dir" && as_dir=. 6692 for ac_exec_ext in '' $ac_executable_extensions; do 6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6694 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6696 break 2 6697 fi 6698done 6699done 6700IFS=$as_save_IFS 6701 6702fi 6703fi 6704STRIP=$ac_cv_prog_STRIP 6705if test -n "$STRIP"; then 6706 { echo "$as_me:$LINENO: result: $STRIP" >&5 6707echo "${ECHO_T}$STRIP" >&6; } 6708else 6709 { echo "$as_me:$LINENO: result: no" >&5 6710echo "${ECHO_T}no" >&6; } 6711fi 6712 6713 6714fi 6715if test -z "$ac_cv_prog_STRIP"; then 6716 ac_ct_STRIP=$STRIP 6717 # Extract the first word of "strip", so it can be a program name with args. 6718set dummy strip; ac_word=$2 6719{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6721if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6722 echo $ECHO_N "(cached) $ECHO_C" >&6 6723else 6724 if test -n "$ac_ct_STRIP"; then 6725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6726else 6727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6728for as_dir in $PATH 6729do 6730 IFS=$as_save_IFS 6731 test -z "$as_dir" && as_dir=. 6732 for ac_exec_ext in '' $ac_executable_extensions; do 6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6734 ac_cv_prog_ac_ct_STRIP="strip" 6735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6736 break 2 6737 fi 6738done 6739done 6740IFS=$as_save_IFS 6741 6742fi 6743fi 6744ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6745if test -n "$ac_ct_STRIP"; then 6746 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6747echo "${ECHO_T}$ac_ct_STRIP" >&6; } 6748else 6749 { echo "$as_me:$LINENO: result: no" >&5 6750echo "${ECHO_T}no" >&6; } 6751fi 6752 6753 if test "x$ac_ct_STRIP" = x; then 6754 STRIP=":" 6755 else 6756 case $cross_compiling:$ac_tool_warned in 6757yes:) 6758{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6759whose name does not start with the host triplet. If you think this 6760configuration is useful to you, please write to autoconf@gnu.org." >&5 6761echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6762whose name does not start with the host triplet. If you think this 6763configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6764ac_tool_warned=yes ;; 6765esac 6766 STRIP=$ac_ct_STRIP 6767 fi 6768else 6769 STRIP="$ac_cv_prog_STRIP" 6770fi 6771 6772 6773old_CC="$CC" 6774old_CFLAGS="$CFLAGS" 6775 6776# Set sane defaults for various variables 6777test -z "$AR" && AR=ar 6778test -z "$AR_FLAGS" && AR_FLAGS=cru 6779test -z "$AS" && AS=as 6780test -z "$CC" && CC=cc 6781test -z "$LTCC" && LTCC=$CC 6782test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6783test -z "$DLLTOOL" && DLLTOOL=dlltool 6784test -z "$LD" && LD=ld 6785test -z "$LN_S" && LN_S="ln -s" 6786test -z "$MAGIC_CMD" && MAGIC_CMD=file 6787test -z "$NM" && NM=nm 6788test -z "$SED" && SED=sed 6789test -z "$OBJDUMP" && OBJDUMP=objdump 6790test -z "$RANLIB" && RANLIB=: 6791test -z "$STRIP" && STRIP=: 6792test -z "$ac_objext" && ac_objext=o 6793 6794# Determine commands to create old-style static archives. 6795old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6796old_postinstall_cmds='chmod 644 $oldlib' 6797old_postuninstall_cmds= 6798 6799if test -n "$RANLIB"; then 6800 case $host_os in 6801 openbsd*) 6802 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6803 ;; 6804 *) 6805 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6806 ;; 6807 esac 6808 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6809fi 6810 6811for cc_temp in $compiler""; do 6812 case $cc_temp in 6813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6815 \-*) ;; 6816 *) break;; 6817 esac 6818done 6819cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6820 6821 6822# Only perform the check for file, if the check method requires it 6823case $deplibs_check_method in 6824file_magic*) 6825 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6826 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6827echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 6828if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6829 echo $ECHO_N "(cached) $ECHO_C" >&6 6830else 6831 case $MAGIC_CMD in 6832[\\/*] | ?:[\\/]*) 6833 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6834 ;; 6835*) 6836 lt_save_MAGIC_CMD="$MAGIC_CMD" 6837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6838 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6839 for ac_dir in $ac_dummy; do 6840 IFS="$lt_save_ifs" 6841 test -z "$ac_dir" && ac_dir=. 6842 if test -f $ac_dir/${ac_tool_prefix}file; then 6843 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6844 if test -n "$file_magic_test_file"; then 6845 case $deplibs_check_method in 6846 "file_magic "*) 6847 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6849 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6850 $EGREP "$file_magic_regex" > /dev/null; then 6851 : 6852 else 6853 cat <<EOF 1>&2 6854 6855*** Warning: the command libtool uses to detect shared libraries, 6856*** $file_magic_cmd, produces output that libtool cannot recognize. 6857*** The result is that libtool may fail to recognize shared libraries 6858*** as such. This will affect the creation of libtool libraries that 6859*** depend on shared libraries, but programs linked with such libtool 6860*** libraries will work regardless of this problem. Nevertheless, you 6861*** may want to report the problem to your system manager and/or to 6862*** bug-libtool@gnu.org 6863 6864EOF 6865 fi ;; 6866 esac 6867 fi 6868 break 6869 fi 6870 done 6871 IFS="$lt_save_ifs" 6872 MAGIC_CMD="$lt_save_MAGIC_CMD" 6873 ;; 6874esac 6875fi 6876 6877MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6878if test -n "$MAGIC_CMD"; then 6879 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6880echo "${ECHO_T}$MAGIC_CMD" >&6; } 6881else 6882 { echo "$as_me:$LINENO: result: no" >&5 6883echo "${ECHO_T}no" >&6; } 6884fi 6885 6886if test -z "$lt_cv_path_MAGIC_CMD"; then 6887 if test -n "$ac_tool_prefix"; then 6888 { echo "$as_me:$LINENO: checking for file" >&5 6889echo $ECHO_N "checking for file... $ECHO_C" >&6; } 6890if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6891 echo $ECHO_N "(cached) $ECHO_C" >&6 6892else 6893 case $MAGIC_CMD in 6894[\\/*] | ?:[\\/]*) 6895 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6896 ;; 6897*) 6898 lt_save_MAGIC_CMD="$MAGIC_CMD" 6899 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6900 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6901 for ac_dir in $ac_dummy; do 6902 IFS="$lt_save_ifs" 6903 test -z "$ac_dir" && ac_dir=. 6904 if test -f $ac_dir/file; then 6905 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6906 if test -n "$file_magic_test_file"; then 6907 case $deplibs_check_method in 6908 "file_magic "*) 6909 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6910 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6911 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6912 $EGREP "$file_magic_regex" > /dev/null; then 6913 : 6914 else 6915 cat <<EOF 1>&2 6916 6917*** Warning: the command libtool uses to detect shared libraries, 6918*** $file_magic_cmd, produces output that libtool cannot recognize. 6919*** The result is that libtool may fail to recognize shared libraries 6920*** as such. This will affect the creation of libtool libraries that 6921*** depend on shared libraries, but programs linked with such libtool 6922*** libraries will work regardless of this problem. Nevertheless, you 6923*** may want to report the problem to your system manager and/or to 6924*** bug-libtool@gnu.org 6925 6926EOF 6927 fi ;; 6928 esac 6929 fi 6930 break 6931 fi 6932 done 6933 IFS="$lt_save_ifs" 6934 MAGIC_CMD="$lt_save_MAGIC_CMD" 6935 ;; 6936esac 6937fi 6938 6939MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6940if test -n "$MAGIC_CMD"; then 6941 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6942echo "${ECHO_T}$MAGIC_CMD" >&6; } 6943else 6944 { echo "$as_me:$LINENO: result: no" >&5 6945echo "${ECHO_T}no" >&6; } 6946fi 6947 6948 else 6949 MAGIC_CMD=: 6950 fi 6951fi 6952 6953 fi 6954 ;; 6955esac 6956 6957enable_dlopen=no 6958enable_win32_dll=no 6959 6960# Check whether --enable-libtool-lock was given. 6961if test "${enable_libtool_lock+set}" = set; then 6962 enableval=$enable_libtool_lock; 6963fi 6964 6965test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6966 6967 6968# Check whether --with-pic was given. 6969if test "${with_pic+set}" = set; then 6970 withval=$with_pic; pic_mode="$withval" 6971else 6972 pic_mode=default 6973fi 6974 6975test -z "$pic_mode" && pic_mode=default 6976 6977# Use C for the default configuration in the libtool script 6978tagname= 6979lt_save_CC="$CC" 6980ac_ext=c 6981ac_cpp='$CPP $CPPFLAGS' 6982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6984ac_compiler_gnu=$ac_cv_c_compiler_gnu 6985 6986 6987# Source file extension for C test sources. 6988ac_ext=c 6989 6990# Object file extension for compiled C test sources. 6991objext=o 6992objext=$objext 6993 6994# Code to be used in simple compile tests 6995lt_simple_compile_test_code="int some_variable = 0;" 6996 6997# Code to be used in simple link tests 6998lt_simple_link_test_code='int main(){return(0);}' 6999 7000 7001# If no C compiler was specified, use CC. 7002LTCC=${LTCC-"$CC"} 7003 7004# If no C compiler flags were specified, use CFLAGS. 7005LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7006 7007# Allow CC to be a program name with arguments. 7008compiler=$CC 7009 7010 7011# save warnings/boilerplate of simple test code 7012ac_outfile=conftest.$ac_objext 7013echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7014eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7015_lt_compiler_boilerplate=`cat conftest.err` 7016$rm conftest* 7017 7018ac_outfile=conftest.$ac_objext 7019echo "$lt_simple_link_test_code" >conftest.$ac_ext 7020eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7021_lt_linker_boilerplate=`cat conftest.err` 7022$rm conftest* 7023 7024 7025 7026lt_prog_compiler_no_builtin_flag= 7027 7028if test "$GCC" = yes; then 7029 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7030 7031 7032{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7033echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7034if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7035 echo $ECHO_N "(cached) $ECHO_C" >&6 7036else 7037 lt_cv_prog_compiler_rtti_exceptions=no 7038 ac_outfile=conftest.$ac_objext 7039 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7040 lt_compiler_flag="-fno-rtti -fno-exceptions" 7041 # Insert the option either (1) after the last *FLAGS variable, or 7042 # (2) before a word containing "conftest.", or (3) at the end. 7043 # Note that $ac_compile itself does not contain backslashes and begins 7044 # with a dollar sign (not a hyphen), so the echo should work correctly. 7045 # The option is referenced via a variable to avoid confusing sed. 7046 lt_compile=`echo "$ac_compile" | $SED \ 7047 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7049 -e 's:$: $lt_compiler_flag:'` 7050 (eval echo "\"\$as_me:7050: $lt_compile\"" >&5) 7051 (eval "$lt_compile" 2>conftest.err) 7052 ac_status=$? 7053 cat conftest.err >&5 7054 echo "$as_me:7054: \$? = $ac_status" >&5 7055 if (exit $ac_status) && test -s "$ac_outfile"; then 7056 # The compiler can only warn and ignore the option if not recognized 7057 # So say no if there are warnings other than the usual output. 7058 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7059 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7060 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7061 lt_cv_prog_compiler_rtti_exceptions=yes 7062 fi 7063 fi 7064 $rm conftest* 7065 7066fi 7067{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7068echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7069 7070if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7071 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7072else 7073 : 7074fi 7075 7076fi 7077 7078lt_prog_compiler_wl= 7079lt_prog_compiler_pic= 7080lt_prog_compiler_static= 7081 7082{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7083echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7084 7085 if test "$GCC" = yes; then 7086 lt_prog_compiler_wl='-Wl,' 7087 lt_prog_compiler_static='-static' 7088 7089 case $host_os in 7090 aix*) 7091 # All AIX code is PIC. 7092 if test "$host_cpu" = ia64; then 7093 # AIX 5 now supports IA64 processor 7094 lt_prog_compiler_static='-Bstatic' 7095 fi 7096 ;; 7097 7098 amigaos*) 7099 # FIXME: we need at least 68020 code to build shared libraries, but 7100 # adding the `-m68020' flag to GCC prevents building anything better, 7101 # like `-m68040'. 7102 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7103 ;; 7104 7105 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7106 # PIC is the default for these OSes. 7107 ;; 7108 7109 mingw* | cygwin* | pw32* | os2*) 7110 # This hack is so that the source file can tell whether it is being 7111 # built for inclusion in a dll (and should export symbols for example). 7112 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7113 # (--disable-auto-import) libraries 7114 lt_prog_compiler_pic='-DDLL_EXPORT' 7115 ;; 7116 7117 darwin* | rhapsody*) 7118 # PIC is the default on this platform 7119 # Common symbols not allowed in MH_DYLIB files 7120 lt_prog_compiler_pic='-fno-common' 7121 ;; 7122 7123 interix[3-9]*) 7124 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7125 # Instead, we relocate shared libraries at runtime. 7126 ;; 7127 7128 msdosdjgpp*) 7129 # Just because we use GCC doesn't mean we suddenly get shared libraries 7130 # on systems that don't support them. 7131 lt_prog_compiler_can_build_shared=no 7132 enable_shared=no 7133 ;; 7134 7135 sysv4*MP*) 7136 if test -d /usr/nec; then 7137 lt_prog_compiler_pic=-Kconform_pic 7138 fi 7139 ;; 7140 7141 hpux*) 7142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7143 # not for PA HP-UX. 7144 case $host_cpu in 7145 hppa*64*|ia64*) 7146 # +Z the default 7147 ;; 7148 *) 7149 lt_prog_compiler_pic='-fPIC' 7150 ;; 7151 esac 7152 ;; 7153 7154 *) 7155 lt_prog_compiler_pic='-fPIC' 7156 ;; 7157 esac 7158 else 7159 # PORTME Check for flag to pass linker flags through the system compiler. 7160 case $host_os in 7161 aix*) 7162 lt_prog_compiler_wl='-Wl,' 7163 if test "$host_cpu" = ia64; then 7164 # AIX 5 now supports IA64 processor 7165 lt_prog_compiler_static='-Bstatic' 7166 else 7167 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7168 fi 7169 ;; 7170 darwin*) 7171 # PIC is the default on this platform 7172 # Common symbols not allowed in MH_DYLIB files 7173 case $cc_basename in 7174 xlc*) 7175 lt_prog_compiler_pic='-qnocommon' 7176 lt_prog_compiler_wl='-Wl,' 7177 ;; 7178 esac 7179 ;; 7180 7181 mingw* | cygwin* | pw32* | os2*) 7182 # This hack is so that the source file can tell whether it is being 7183 # built for inclusion in a dll (and should export symbols for example). 7184 lt_prog_compiler_pic='-DDLL_EXPORT' 7185 ;; 7186 7187 hpux9* | hpux10* | hpux11*) 7188 lt_prog_compiler_wl='-Wl,' 7189 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7190 # not for PA HP-UX. 7191 case $host_cpu in 7192 hppa*64*|ia64*) 7193 # +Z the default 7194 ;; 7195 *) 7196 lt_prog_compiler_pic='+Z' 7197 ;; 7198 esac 7199 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7200 lt_prog_compiler_static='${wl}-a ${wl}archive' 7201 ;; 7202 7203 irix5* | irix6* | nonstopux*) 7204 lt_prog_compiler_wl='-Wl,' 7205 # PIC (with -KPIC) is the default. 7206 lt_prog_compiler_static='-non_shared' 7207 ;; 7208 7209 newsos6) 7210 lt_prog_compiler_pic='-KPIC' 7211 lt_prog_compiler_static='-Bstatic' 7212 ;; 7213 7214 linux* | k*bsd*-gnu) 7215 case $cc_basename in 7216 icc* | ecc*) 7217 lt_prog_compiler_wl='-Wl,' 7218 lt_prog_compiler_pic='-KPIC' 7219 lt_prog_compiler_static='-static' 7220 ;; 7221 pgcc* | pgf77* | pgf90* | pgf95*) 7222 # Portland Group compilers (*not* the Pentium gcc compiler, 7223 # which looks to be a dead project) 7224 lt_prog_compiler_wl='-Wl,' 7225 lt_prog_compiler_pic='-fpic' 7226 lt_prog_compiler_static='-Bstatic' 7227 ;; 7228 ccc*) 7229 lt_prog_compiler_wl='-Wl,' 7230 # All Alpha code is PIC. 7231 lt_prog_compiler_static='-non_shared' 7232 ;; 7233 como) 7234 lt_prog_compiler_wl='-lopt=' 7235 ;; 7236 *) 7237 case `$CC -V 2>&1 | sed 5q` in 7238 *Sun\ C*) 7239 # Sun C 5.9 7240 lt_prog_compiler_pic='-KPIC' 7241 lt_prog_compiler_static='-Bstatic' 7242 lt_prog_compiler_wl='-Wl,' 7243 ;; 7244 *Sun\ F*) 7245 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7246 lt_prog_compiler_pic='-KPIC' 7247 lt_prog_compiler_static='-Bstatic' 7248 lt_prog_compiler_wl='' 7249 ;; 7250 esac 7251 ;; 7252 esac 7253 ;; 7254 7255 osf3* | osf4* | osf5*) 7256 lt_prog_compiler_wl='-Wl,' 7257 # All OSF/1 code is PIC. 7258 lt_prog_compiler_static='-non_shared' 7259 ;; 7260 7261 rdos*) 7262 lt_prog_compiler_static='-non_shared' 7263 ;; 7264 7265 solaris*) 7266 lt_prog_compiler_pic='-KPIC' 7267 lt_prog_compiler_static='-Bstatic' 7268 case $cc_basename in 7269 f77* | f90* | f95*) 7270 lt_prog_compiler_wl='-Qoption ld ';; 7271 *) 7272 lt_prog_compiler_wl='-Wl,';; 7273 esac 7274 ;; 7275 7276 sunos4*) 7277 lt_prog_compiler_wl='-Qoption ld ' 7278 lt_prog_compiler_pic='-PIC' 7279 lt_prog_compiler_static='-Bstatic' 7280 ;; 7281 7282 sysv4 | sysv4.2uw2* | sysv4.3*) 7283 lt_prog_compiler_wl='-Wl,' 7284 lt_prog_compiler_pic='-KPIC' 7285 lt_prog_compiler_static='-Bstatic' 7286 ;; 7287 7288 sysv4*MP*) 7289 if test -d /usr/nec ;then 7290 lt_prog_compiler_pic='-Kconform_pic' 7291 lt_prog_compiler_static='-Bstatic' 7292 fi 7293 ;; 7294 7295 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7296 lt_prog_compiler_wl='-Wl,' 7297 lt_prog_compiler_pic='-KPIC' 7298 lt_prog_compiler_static='-Bstatic' 7299 ;; 7300 7301 unicos*) 7302 lt_prog_compiler_wl='-Wl,' 7303 lt_prog_compiler_can_build_shared=no 7304 ;; 7305 7306 uts4*) 7307 lt_prog_compiler_pic='-pic' 7308 lt_prog_compiler_static='-Bstatic' 7309 ;; 7310 7311 *) 7312 lt_prog_compiler_can_build_shared=no 7313 ;; 7314 esac 7315 fi 7316 7317{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7318echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7319 7320# 7321# Check to make sure the PIC flag actually works. 7322# 7323if test -n "$lt_prog_compiler_pic"; then 7324 7325{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7326echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7327if test "${lt_prog_compiler_pic_works+set}" = set; then 7328 echo $ECHO_N "(cached) $ECHO_C" >&6 7329else 7330 lt_prog_compiler_pic_works=no 7331 ac_outfile=conftest.$ac_objext 7332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7333 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7334 # Insert the option either (1) after the last *FLAGS variable, or 7335 # (2) before a word containing "conftest.", or (3) at the end. 7336 # Note that $ac_compile itself does not contain backslashes and begins 7337 # with a dollar sign (not a hyphen), so the echo should work correctly. 7338 # The option is referenced via a variable to avoid confusing sed. 7339 lt_compile=`echo "$ac_compile" | $SED \ 7340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7342 -e 's:$: $lt_compiler_flag:'` 7343 (eval echo "\"\$as_me:7343: $lt_compile\"" >&5) 7344 (eval "$lt_compile" 2>conftest.err) 7345 ac_status=$? 7346 cat conftest.err >&5 7347 echo "$as_me:7347: \$? = $ac_status" >&5 7348 if (exit $ac_status) && test -s "$ac_outfile"; then 7349 # The compiler can only warn and ignore the option if not recognized 7350 # So say no if there are warnings other than the usual output. 7351 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7352 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7353 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7354 lt_prog_compiler_pic_works=yes 7355 fi 7356 fi 7357 $rm conftest* 7358 7359fi 7360{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7361echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7362 7363if test x"$lt_prog_compiler_pic_works" = xyes; then 7364 case $lt_prog_compiler_pic in 7365 "" | " "*) ;; 7366 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7367 esac 7368else 7369 lt_prog_compiler_pic= 7370 lt_prog_compiler_can_build_shared=no 7371fi 7372 7373fi 7374case $host_os in 7375 # For platforms which do not support PIC, -DPIC is meaningless: 7376 *djgpp*) 7377 lt_prog_compiler_pic= 7378 ;; 7379 *) 7380 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7381 ;; 7382esac 7383 7384# 7385# Check to make sure the static flag actually works. 7386# 7387wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7388{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7389echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7390if test "${lt_prog_compiler_static_works+set}" = set; then 7391 echo $ECHO_N "(cached) $ECHO_C" >&6 7392else 7393 lt_prog_compiler_static_works=no 7394 save_LDFLAGS="$LDFLAGS" 7395 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7396 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7397 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7398 # The linker can only warn and ignore the option if not recognized 7399 # So say no if there are warnings 7400 if test -s conftest.err; then 7401 # Append any errors to the config.log. 7402 cat conftest.err 1>&5 7403 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7405 if diff conftest.exp conftest.er2 >/dev/null; then 7406 lt_prog_compiler_static_works=yes 7407 fi 7408 else 7409 lt_prog_compiler_static_works=yes 7410 fi 7411 fi 7412 $rm conftest* 7413 LDFLAGS="$save_LDFLAGS" 7414 7415fi 7416{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7417echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7418 7419if test x"$lt_prog_compiler_static_works" = xyes; then 7420 : 7421else 7422 lt_prog_compiler_static= 7423fi 7424 7425 7426{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7427echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7428if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7429 echo $ECHO_N "(cached) $ECHO_C" >&6 7430else 7431 lt_cv_prog_compiler_c_o=no 7432 $rm -r conftest 2>/dev/null 7433 mkdir conftest 7434 cd conftest 7435 mkdir out 7436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7437 7438 lt_compiler_flag="-o out/conftest2.$ac_objext" 7439 # Insert the option either (1) after the last *FLAGS variable, or 7440 # (2) before a word containing "conftest.", or (3) at the end. 7441 # Note that $ac_compile itself does not contain backslashes and begins 7442 # with a dollar sign (not a hyphen), so the echo should work correctly. 7443 lt_compile=`echo "$ac_compile" | $SED \ 7444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7446 -e 's:$: $lt_compiler_flag:'` 7447 (eval echo "\"\$as_me:7447: $lt_compile\"" >&5) 7448 (eval "$lt_compile" 2>out/conftest.err) 7449 ac_status=$? 7450 cat out/conftest.err >&5 7451 echo "$as_me:7451: \$? = $ac_status" >&5 7452 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7453 then 7454 # The compiler can only warn and ignore the option if not recognized 7455 # So say no if there are warnings 7456 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7457 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7458 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7459 lt_cv_prog_compiler_c_o=yes 7460 fi 7461 fi 7462 chmod u+w . 2>&5 7463 $rm conftest* 7464 # SGI C++ compiler will create directory out/ii_files/ for 7465 # template instantiation 7466 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7467 $rm out/* && rmdir out 7468 cd .. 7469 rmdir conftest 7470 $rm conftest* 7471 7472fi 7473{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7474echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7475 7476 7477hard_links="nottested" 7478if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7479 # do not overwrite the value of need_locks provided by the user 7480 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7481echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7482 hard_links=yes 7483 $rm conftest* 7484 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7485 touch conftest.a 7486 ln conftest.a conftest.b 2>&5 || hard_links=no 7487 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7488 { echo "$as_me:$LINENO: result: $hard_links" >&5 7489echo "${ECHO_T}$hard_links" >&6; } 7490 if test "$hard_links" = no; then 7491 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7492echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7493 need_locks=warn 7494 fi 7495else 7496 need_locks=no 7497fi 7498 7499{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7500echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7501 7502 runpath_var= 7503 allow_undefined_flag= 7504 enable_shared_with_static_runtimes=no 7505 archive_cmds= 7506 archive_expsym_cmds= 7507 old_archive_From_new_cmds= 7508 old_archive_from_expsyms_cmds= 7509 export_dynamic_flag_spec= 7510 whole_archive_flag_spec= 7511 thread_safe_flag_spec= 7512 hardcode_libdir_flag_spec= 7513 hardcode_libdir_flag_spec_ld= 7514 hardcode_libdir_separator= 7515 hardcode_direct=no 7516 hardcode_minus_L=no 7517 hardcode_shlibpath_var=unsupported 7518 link_all_deplibs=unknown 7519 hardcode_automatic=no 7520 module_cmds= 7521 module_expsym_cmds= 7522 always_export_symbols=no 7523 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7524 # include_expsyms should be a list of space-separated symbols to be *always* 7525 # included in the symbol list 7526 include_expsyms= 7527 # exclude_expsyms can be an extended regexp of symbols to exclude 7528 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7529 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7530 # as well as any symbol that contains `d'. 7531 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7532 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7533 # platforms (ab)use it in PIC code, but their linkers get confused if 7534 # the symbol is explicitly referenced. Since portable code cannot 7535 # rely on this symbol name, it's probably fine to never include it in 7536 # preloaded symbol tables. 7537 extract_expsyms_cmds= 7538 # Just being paranoid about ensuring that cc_basename is set. 7539 for cc_temp in $compiler""; do 7540 case $cc_temp in 7541 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7542 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7543 \-*) ;; 7544 *) break;; 7545 esac 7546done 7547cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7548 7549 case $host_os in 7550 cygwin* | mingw* | pw32*) 7551 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7552 # When not using gcc, we currently assume that we are using 7553 # Microsoft Visual C++. 7554 if test "$GCC" != yes; then 7555 with_gnu_ld=no 7556 fi 7557 ;; 7558 interix*) 7559 # we just hope/assume this is gcc and not c89 (= MSVC++) 7560 with_gnu_ld=yes 7561 ;; 7562 openbsd*) 7563 with_gnu_ld=no 7564 ;; 7565 esac 7566 7567 ld_shlibs=yes 7568 if test "$with_gnu_ld" = yes; then 7569 # If archive_cmds runs LD, not CC, wlarc should be empty 7570 wlarc='${wl}' 7571 7572 # Set some defaults for GNU ld with shared library support. These 7573 # are reset later if shared libraries are not supported. Putting them 7574 # here allows them to be overridden if necessary. 7575 runpath_var=LD_RUN_PATH 7576 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7577 export_dynamic_flag_spec='${wl}--export-dynamic' 7578 # ancient GNU ld didn't support --whole-archive et. al. 7579 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7580 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7581 else 7582 whole_archive_flag_spec= 7583 fi 7584 supports_anon_versioning=no 7585 case `$LD -v 2>/dev/null` in 7586 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7587 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7588 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7589 *\ 2.11.*) ;; # other 2.11 versions 7590 *) supports_anon_versioning=yes ;; 7591 esac 7592 7593 # See if GNU ld supports shared libraries. 7594 case $host_os in 7595 aix3* | aix4* | aix5*) 7596 # On AIX/PPC, the GNU linker is very broken 7597 if test "$host_cpu" != ia64; then 7598 ld_shlibs=no 7599 cat <<EOF 1>&2 7600 7601*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7602*** to be unable to reliably create shared libraries on AIX. 7603*** Therefore, libtool is disabling shared libraries support. If you 7604*** really care for shared libraries, you may want to modify your PATH 7605*** so that a non-GNU linker is found, and then restart. 7606 7607EOF 7608 fi 7609 ;; 7610 7611 amigaos*) 7612 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)' 7613 hardcode_libdir_flag_spec='-L$libdir' 7614 hardcode_minus_L=yes 7615 7616 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7617 # that the semantics of dynamic libraries on AmigaOS, at least up 7618 # to version 4, is to share data among multiple programs linked 7619 # with the same dynamic library. Since this doesn't match the 7620 # behavior of shared libraries on other platforms, we can't use 7621 # them. 7622 ld_shlibs=no 7623 ;; 7624 7625 beos*) 7626 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7627 allow_undefined_flag=unsupported 7628 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7629 # support --undefined. This deserves some investigation. FIXME 7630 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7631 else 7632 ld_shlibs=no 7633 fi 7634 ;; 7635 7636 cygwin* | mingw* | pw32*) 7637 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7638 # as there is no search path for DLLs. 7639 hardcode_libdir_flag_spec='-L$libdir' 7640 allow_undefined_flag=unsupported 7641 always_export_symbols=no 7642 enable_shared_with_static_runtimes=yes 7643 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7644 7645 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7647 # If the export-symbols file already is a .def file (1st line 7648 # is EXPORTS), use it as is; otherwise, prepend... 7649 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7650 cp $export_symbols $output_objdir/$soname.def; 7651 else 7652 echo EXPORTS > $output_objdir/$soname.def; 7653 cat $export_symbols >> $output_objdir/$soname.def; 7654 fi~ 7655 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7656 else 7657 ld_shlibs=no 7658 fi 7659 ;; 7660 7661 interix[3-9]*) 7662 hardcode_direct=no 7663 hardcode_shlibpath_var=no 7664 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7665 export_dynamic_flag_spec='${wl}-E' 7666 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7667 # Instead, shared libraries are loaded at an image base (0x10000000 by 7668 # default) and relocated if they conflict, which is a slow very memory 7669 # consuming and fragmenting process. To avoid this, we pick a random, 7670 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7671 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7672 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7673 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' 7674 ;; 7675 7676 gnu* | linux* | k*bsd*-gnu) 7677 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7678 tmp_addflag= 7679 case $cc_basename,$host_cpu in 7680 pgcc*) # Portland Group C compiler 7681 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' 7682 tmp_addflag=' $pic_flag' 7683 ;; 7684 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7685 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' 7686 tmp_addflag=' $pic_flag -Mnomain' ;; 7687 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7688 tmp_addflag=' -i_dynamic' ;; 7689 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7690 tmp_addflag=' -i_dynamic -nofor_main' ;; 7691 ifc* | ifort*) # Intel Fortran compiler 7692 tmp_addflag=' -nofor_main' ;; 7693 esac 7694 case `$CC -V 2>&1 | sed 5q` in 7695 *Sun\ C*) # Sun C 5.9 7696 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' 7697 tmp_sharedflag='-G' ;; 7698 *Sun\ F*) # Sun Fortran 8.3 7699 tmp_sharedflag='-G' ;; 7700 *) 7701 tmp_sharedflag='-shared' ;; 7702 esac 7703 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7704 7705 if test $supports_anon_versioning = yes; then 7706 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7707 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7708 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7709 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7710 fi 7711 else 7712 ld_shlibs=no 7713 fi 7714 ;; 7715 7716 netbsd*) 7717 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7718 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7719 wlarc= 7720 else 7721 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7722 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7723 fi 7724 ;; 7725 7726 solaris*) 7727 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7728 ld_shlibs=no 7729 cat <<EOF 1>&2 7730 7731*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7732*** create shared libraries on Solaris systems. Therefore, libtool 7733*** is disabling shared libraries support. We urge you to upgrade GNU 7734*** binutils to release 2.9.1 or newer. Another option is to modify 7735*** your PATH or compiler configuration so that the native linker is 7736*** used, and then restart. 7737 7738EOF 7739 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7742 else 7743 ld_shlibs=no 7744 fi 7745 ;; 7746 7747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7748 case `$LD -v 2>&1` in 7749 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7750 ld_shlibs=no 7751 cat <<_LT_EOF 1>&2 7752 7753*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7754*** reliably create shared libraries on SCO systems. Therefore, libtool 7755*** is disabling shared libraries support. We urge you to upgrade GNU 7756*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7757*** your PATH or compiler configuration so that the native linker is 7758*** used, and then restart. 7759 7760_LT_EOF 7761 ;; 7762 *) 7763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7764 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 7765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 7766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 7767 else 7768 ld_shlibs=no 7769 fi 7770 ;; 7771 esac 7772 ;; 7773 7774 sunos4*) 7775 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7776 wlarc= 7777 hardcode_direct=yes 7778 hardcode_shlibpath_var=no 7779 ;; 7780 7781 *) 7782 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7785 else 7786 ld_shlibs=no 7787 fi 7788 ;; 7789 esac 7790 7791 if test "$ld_shlibs" = no; then 7792 runpath_var= 7793 hardcode_libdir_flag_spec= 7794 export_dynamic_flag_spec= 7795 whole_archive_flag_spec= 7796 fi 7797 else 7798 # PORTME fill in a description of your system's linker (not GNU ld) 7799 case $host_os in 7800 aix3*) 7801 allow_undefined_flag=unsupported 7802 always_export_symbols=yes 7803 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' 7804 # Note: this linker hardcodes the directories in LIBPATH if there 7805 # are no directories specified by -L. 7806 hardcode_minus_L=yes 7807 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7808 # Neither direct hardcoding nor static linking is supported with a 7809 # broken collect2. 7810 hardcode_direct=unsupported 7811 fi 7812 ;; 7813 7814 aix4* | aix5*) 7815 if test "$host_cpu" = ia64; then 7816 # On IA64, the linker does run time linking by default, so we don't 7817 # have to do anything special. 7818 aix_use_runtimelinking=no 7819 exp_sym_flag='-Bexport' 7820 no_entry_flag="" 7821 else 7822 # If we're using GNU nm, then we don't want the "-C" option. 7823 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7824 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7825 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' 7826 else 7827 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' 7828 fi 7829 aix_use_runtimelinking=no 7830 7831 # Test if we are trying to use run time linking or normal 7832 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7833 # need to do runtime linking. 7834 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7835 for ld_flag in $LDFLAGS; do 7836 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7837 aix_use_runtimelinking=yes 7838 break 7839 fi 7840 done 7841 ;; 7842 esac 7843 7844 exp_sym_flag='-bexport' 7845 no_entry_flag='-bnoentry' 7846 fi 7847 7848 # When large executables or shared objects are built, AIX ld can 7849 # have problems creating the table of contents. If linking a library 7850 # or program results in "error TOC overflow" add -mminimal-toc to 7851 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7852 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7853 7854 archive_cmds='' 7855 hardcode_direct=yes 7856 hardcode_libdir_separator=':' 7857 link_all_deplibs=yes 7858 7859 if test "$GCC" = yes; then 7860 case $host_os in aix4.[012]|aix4.[012].*) 7861 # We only want to do this on AIX 4.2 and lower, the check 7862 # below for broken collect2 doesn't work under 4.3+ 7863 collect2name=`${CC} -print-prog-name=collect2` 7864 if test -f "$collect2name" && \ 7865 strings "$collect2name" | grep resolve_lib_name >/dev/null 7866 then 7867 # We have reworked collect2 7868 : 7869 else 7870 # We have old collect2 7871 hardcode_direct=unsupported 7872 # It fails to find uninstalled libraries when the uninstalled 7873 # path is not listed in the libpath. Setting hardcode_minus_L 7874 # to unsupported forces relinking 7875 hardcode_minus_L=yes 7876 hardcode_libdir_flag_spec='-L$libdir' 7877 hardcode_libdir_separator= 7878 fi 7879 ;; 7880 esac 7881 shared_flag='-shared' 7882 if test "$aix_use_runtimelinking" = yes; then 7883 shared_flag="$shared_flag "'${wl}-G' 7884 fi 7885 else 7886 # not using gcc 7887 if test "$host_cpu" = ia64; then 7888 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7889 # chokes on -Wl,-G. The following line is correct: 7890 shared_flag='-G' 7891 else 7892 if test "$aix_use_runtimelinking" = yes; then 7893 shared_flag='${wl}-G' 7894 else 7895 shared_flag='${wl}-bM:SRE' 7896 fi 7897 fi 7898 fi 7899 7900 # It seems that -bexpall does not export symbols beginning with 7901 # underscore (_), so it is better to generate a list of symbols to export. 7902 always_export_symbols=yes 7903 if test "$aix_use_runtimelinking" = yes; then 7904 # Warning - without using the other runtime loading flags (-brtl), 7905 # -berok will link without error, but may produce a broken library. 7906 allow_undefined_flag='-berok' 7907 # Determine the default libpath from the value encoded in an empty executable. 7908 cat >conftest.$ac_ext <<_ACEOF 7909/* confdefs.h. */ 7910_ACEOF 7911cat confdefs.h >>conftest.$ac_ext 7912cat >>conftest.$ac_ext <<_ACEOF 7913/* end confdefs.h. */ 7914 7915int 7916main () 7917{ 7918 7919 ; 7920 return 0; 7921} 7922_ACEOF 7923rm -f conftest.$ac_objext conftest$ac_exeext 7924if { (ac_try="$ac_link" 7925case "(($ac_try" in 7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7927 *) ac_try_echo=$ac_try;; 7928esac 7929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7930 (eval "$ac_link") 2>conftest.er1 7931 ac_status=$? 7932 grep -v '^ *+' conftest.er1 >conftest.err 7933 rm -f conftest.er1 7934 cat conftest.err >&5 7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7936 (exit $ac_status); } && { 7937 test -z "$ac_c_werror_flag" || 7938 test ! -s conftest.err 7939 } && test -s conftest$ac_exeext && 7940 $as_test_x conftest$ac_exeext; then 7941 7942lt_aix_libpath_sed=' 7943 /Import File Strings/,/^$/ { 7944 /^0/ { 7945 s/^0 *\(.*\)$/\1/ 7946 p 7947 } 7948 }' 7949aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7950# Check for a 64-bit object if we didn't find anything. 7951if test -z "$aix_libpath"; then 7952 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7953fi 7954else 7955 echo "$as_me: failed program was:" >&5 7956sed 's/^/| /' conftest.$ac_ext >&5 7957 7958 7959fi 7960 7961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7962 conftest$ac_exeext conftest.$ac_ext 7963if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7964 7965 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7966 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" 7967 else 7968 if test "$host_cpu" = ia64; then 7969 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7970 allow_undefined_flag="-z nodefs" 7971 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" 7972 else 7973 # Determine the default libpath from the value encoded in an empty executable. 7974 cat >conftest.$ac_ext <<_ACEOF 7975/* confdefs.h. */ 7976_ACEOF 7977cat confdefs.h >>conftest.$ac_ext 7978cat >>conftest.$ac_ext <<_ACEOF 7979/* end confdefs.h. */ 7980 7981int 7982main () 7983{ 7984 7985 ; 7986 return 0; 7987} 7988_ACEOF 7989rm -f conftest.$ac_objext conftest$ac_exeext 7990if { (ac_try="$ac_link" 7991case "(($ac_try" in 7992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7993 *) ac_try_echo=$ac_try;; 7994esac 7995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7996 (eval "$ac_link") 2>conftest.er1 7997 ac_status=$? 7998 grep -v '^ *+' conftest.er1 >conftest.err 7999 rm -f conftest.er1 8000 cat conftest.err >&5 8001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8002 (exit $ac_status); } && { 8003 test -z "$ac_c_werror_flag" || 8004 test ! -s conftest.err 8005 } && test -s conftest$ac_exeext && 8006 $as_test_x conftest$ac_exeext; then 8007 8008lt_aix_libpath_sed=' 8009 /Import File Strings/,/^$/ { 8010 /^0/ { 8011 s/^0 *\(.*\)$/\1/ 8012 p 8013 } 8014 }' 8015aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8016# Check for a 64-bit object if we didn't find anything. 8017if test -z "$aix_libpath"; then 8018 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8019fi 8020else 8021 echo "$as_me: failed program was:" >&5 8022sed 's/^/| /' conftest.$ac_ext >&5 8023 8024 8025fi 8026 8027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8028 conftest$ac_exeext conftest.$ac_ext 8029if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8030 8031 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8032 # Warning - without using the other run time loading flags, 8033 # -berok will link without error, but may produce a broken library. 8034 no_undefined_flag=' ${wl}-bernotok' 8035 allow_undefined_flag=' ${wl}-berok' 8036 # Exported symbols can be pulled into shared objects from archives 8037 whole_archive_flag_spec='$convenience' 8038 archive_cmds_need_lc=yes 8039 # This is similar to how AIX traditionally builds its shared libraries. 8040 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' 8041 fi 8042 fi 8043 ;; 8044 8045 amigaos*) 8046 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)' 8047 hardcode_libdir_flag_spec='-L$libdir' 8048 hardcode_minus_L=yes 8049 # see comment about different semantics on the GNU ld section 8050 ld_shlibs=no 8051 ;; 8052 8053 bsdi[45]*) 8054 export_dynamic_flag_spec=-rdynamic 8055 ;; 8056 8057 cygwin* | mingw* | pw32*) 8058 # When not using gcc, we currently assume that we are using 8059 # Microsoft Visual C++. 8060 # hardcode_libdir_flag_spec is actually meaningless, as there is 8061 # no search path for DLLs. 8062 hardcode_libdir_flag_spec=' ' 8063 allow_undefined_flag=unsupported 8064 # Tell ltmain to make .lib files, not .a files. 8065 libext=lib 8066 # Tell ltmain to make .dll files, not .so files. 8067 shrext_cmds=".dll" 8068 # FIXME: Setting linknames here is a bad hack. 8069 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8070 # The linker will automatically build a .lib file if we build a DLL. 8071 old_archive_From_new_cmds='true' 8072 # FIXME: Should let the user specify the lib program. 8073 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8074 fix_srcfile_path='`cygpath -w "$srcfile"`' 8075 enable_shared_with_static_runtimes=yes 8076 ;; 8077 8078 darwin* | rhapsody*) 8079 case $host_os in 8080 rhapsody* | darwin1.[012]) 8081 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8082 ;; 8083 *) # Darwin 1.3 on 8084 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8085 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8086 else 8087 case ${MACOSX_DEPLOYMENT_TARGET} in 8088 10.[012]) 8089 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8090 ;; 8091 10.*) 8092 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8093 ;; 8094 esac 8095 fi 8096 ;; 8097 esac 8098 archive_cmds_need_lc=no 8099 hardcode_direct=no 8100 hardcode_automatic=yes 8101 hardcode_shlibpath_var=unsupported 8102 whole_archive_flag_spec='' 8103 link_all_deplibs=yes 8104 if test "$GCC" = yes ; then 8105 output_verbose_link_cmd='echo' 8106 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8107 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8108 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8109 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8110 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}' 8111 else 8112 case $cc_basename in 8113 xlc*) 8114 output_verbose_link_cmd='echo' 8115 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8116 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8117 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8118 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}' 8119 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}' 8120 ;; 8121 *) 8122 ld_shlibs=no 8123 ;; 8124 esac 8125 fi 8126 ;; 8127 8128 dgux*) 8129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8130 hardcode_libdir_flag_spec='-L$libdir' 8131 hardcode_shlibpath_var=no 8132 ;; 8133 8134 freebsd1*) 8135 ld_shlibs=no 8136 ;; 8137 8138 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8139 # support. Future versions do this automatically, but an explicit c++rt0.o 8140 # does not break anything, and helps significantly (at the cost of a little 8141 # extra space). 8142 freebsd2.2*) 8143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8144 hardcode_libdir_flag_spec='-R$libdir' 8145 hardcode_direct=yes 8146 hardcode_shlibpath_var=no 8147 ;; 8148 8149 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8150 freebsd2*) 8151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8152 hardcode_direct=yes 8153 hardcode_minus_L=yes 8154 hardcode_shlibpath_var=no 8155 ;; 8156 8157 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8158 freebsd* | dragonfly*) 8159 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8160 hardcode_libdir_flag_spec='-R$libdir' 8161 hardcode_direct=yes 8162 hardcode_shlibpath_var=no 8163 ;; 8164 8165 hpux9*) 8166 if test "$GCC" = yes; then 8167 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' 8168 else 8169 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' 8170 fi 8171 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8172 hardcode_libdir_separator=: 8173 hardcode_direct=yes 8174 8175 # hardcode_minus_L: Not really in the search PATH, 8176 # but as the default location of the library. 8177 hardcode_minus_L=yes 8178 export_dynamic_flag_spec='${wl}-E' 8179 ;; 8180 8181 hpux10*) 8182 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8183 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8184 else 8185 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8186 fi 8187 if test "$with_gnu_ld" = no; then 8188 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8189 hardcode_libdir_separator=: 8190 8191 hardcode_direct=yes 8192 export_dynamic_flag_spec='${wl}-E' 8193 8194 # hardcode_minus_L: Not really in the search PATH, 8195 # but as the default location of the library. 8196 hardcode_minus_L=yes 8197 fi 8198 ;; 8199 8200 hpux11*) 8201 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8202 case $host_cpu in 8203 hppa*64*) 8204 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8205 ;; 8206 ia64*) 8207 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8208 ;; 8209 *) 8210 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8211 ;; 8212 esac 8213 else 8214 case $host_cpu in 8215 hppa*64*) 8216 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8217 ;; 8218 ia64*) 8219 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8220 ;; 8221 *) 8222 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8223 ;; 8224 esac 8225 fi 8226 if test "$with_gnu_ld" = no; then 8227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8228 hardcode_libdir_separator=: 8229 8230 case $host_cpu in 8231 hppa*64*|ia64*) 8232 hardcode_libdir_flag_spec_ld='+b $libdir' 8233 hardcode_direct=no 8234 hardcode_shlibpath_var=no 8235 ;; 8236 *) 8237 hardcode_direct=yes 8238 export_dynamic_flag_spec='${wl}-E' 8239 8240 # hardcode_minus_L: Not really in the search PATH, 8241 # but as the default location of the library. 8242 hardcode_minus_L=yes 8243 ;; 8244 esac 8245 fi 8246 ;; 8247 8248 irix5* | irix6* | nonstopux*) 8249 if test "$GCC" = yes; then 8250 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' 8251 else 8252 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' 8253 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8254 fi 8255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8256 hardcode_libdir_separator=: 8257 link_all_deplibs=yes 8258 ;; 8259 8260 netbsd*) 8261 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8263 else 8264 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8265 fi 8266 hardcode_libdir_flag_spec='-R$libdir' 8267 hardcode_direct=yes 8268 hardcode_shlibpath_var=no 8269 ;; 8270 8271 newsos6) 8272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8273 hardcode_direct=yes 8274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8275 hardcode_libdir_separator=: 8276 hardcode_shlibpath_var=no 8277 ;; 8278 8279 openbsd*) 8280 if test -f /usr/libexec/ld.so; then 8281 hardcode_direct=yes 8282 hardcode_shlibpath_var=no 8283 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8284 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8285 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8287 export_dynamic_flag_spec='${wl}-E' 8288 else 8289 case $host_os in 8290 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8291 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8292 hardcode_libdir_flag_spec='-R$libdir' 8293 ;; 8294 *) 8295 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8296 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8297 ;; 8298 esac 8299 fi 8300 else 8301 ld_shlibs=no 8302 fi 8303 ;; 8304 8305 os2*) 8306 hardcode_libdir_flag_spec='-L$libdir' 8307 hardcode_minus_L=yes 8308 allow_undefined_flag=unsupported 8309 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' 8310 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8311 ;; 8312 8313 osf3*) 8314 if test "$GCC" = yes; then 8315 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8316 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' 8317 else 8318 allow_undefined_flag=' -expect_unresolved \*' 8319 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' 8320 fi 8321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8322 hardcode_libdir_separator=: 8323 ;; 8324 8325 osf4* | osf5*) # as osf3* with the addition of -msym flag 8326 if test "$GCC" = yes; then 8327 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8328 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' 8329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8330 else 8331 allow_undefined_flag=' -expect_unresolved \*' 8332 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' 8333 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8334 $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' 8335 8336 # Both c and cxx compiler support -rpath directly 8337 hardcode_libdir_flag_spec='-rpath $libdir' 8338 fi 8339 hardcode_libdir_separator=: 8340 ;; 8341 8342 solaris*) 8343 no_undefined_flag=' -z text' 8344 if test "$GCC" = yes; then 8345 wlarc='${wl}' 8346 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8347 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8348 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8349 else 8350 wlarc='' 8351 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8352 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8353 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8354 fi 8355 hardcode_libdir_flag_spec='-R$libdir' 8356 hardcode_shlibpath_var=no 8357 case $host_os in 8358 solaris2.[0-5] | solaris2.[0-5].*) ;; 8359 *) 8360 # The compiler driver will combine and reorder linker options, 8361 # but understands `-z linker_flag'. GCC discards it without `$wl', 8362 # but is careful enough not to reorder. 8363 # Supported since Solaris 2.6 (maybe 2.5.1?) 8364 if test "$GCC" = yes; then 8365 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8366 else 8367 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8368 fi 8369 ;; 8370 esac 8371 link_all_deplibs=yes 8372 ;; 8373 8374 sunos4*) 8375 if test "x$host_vendor" = xsequent; then 8376 # Use $CC to link under sequent, because it throws in some extra .o 8377 # files that make .init and .fini sections work. 8378 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8379 else 8380 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8381 fi 8382 hardcode_libdir_flag_spec='-L$libdir' 8383 hardcode_direct=yes 8384 hardcode_minus_L=yes 8385 hardcode_shlibpath_var=no 8386 ;; 8387 8388 sysv4) 8389 case $host_vendor in 8390 sni) 8391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8392 hardcode_direct=yes # is this really true??? 8393 ;; 8394 siemens) 8395 ## LD is ld it makes a PLAMLIB 8396 ## CC just makes a GrossModule. 8397 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8398 reload_cmds='$CC -r -o $output$reload_objs' 8399 hardcode_direct=no 8400 ;; 8401 motorola) 8402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8403 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8404 ;; 8405 esac 8406 runpath_var='LD_RUN_PATH' 8407 hardcode_shlibpath_var=no 8408 ;; 8409 8410 sysv4.3*) 8411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8412 hardcode_shlibpath_var=no 8413 export_dynamic_flag_spec='-Bexport' 8414 ;; 8415 8416 sysv4*MP*) 8417 if test -d /usr/nec; then 8418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8419 hardcode_shlibpath_var=no 8420 runpath_var=LD_RUN_PATH 8421 hardcode_runpath_var=yes 8422 ld_shlibs=yes 8423 fi 8424 ;; 8425 8426 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8427 no_undefined_flag='${wl}-z,text' 8428 archive_cmds_need_lc=no 8429 hardcode_shlibpath_var=no 8430 runpath_var='LD_RUN_PATH' 8431 8432 if test "$GCC" = yes; then 8433 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8434 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8435 else 8436 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8437 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8438 fi 8439 ;; 8440 8441 sysv5* | sco3.2v5* | sco5v6*) 8442 # Note: We can NOT use -z defs as we might desire, because we do not 8443 # link with -lc, and that would cause any symbols used from libc to 8444 # always be unresolved, which means just about no library would 8445 # ever link correctly. If we're not using GNU ld we use -z text 8446 # though, which does catch some bad symbols but isn't as heavy-handed 8447 # as -z defs. 8448 no_undefined_flag='${wl}-z,text' 8449 allow_undefined_flag='${wl}-z,nodefs' 8450 archive_cmds_need_lc=no 8451 hardcode_shlibpath_var=no 8452 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8453 hardcode_libdir_separator=':' 8454 link_all_deplibs=yes 8455 export_dynamic_flag_spec='${wl}-Bexport' 8456 runpath_var='LD_RUN_PATH' 8457 8458 if test "$GCC" = yes; then 8459 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8460 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8461 else 8462 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8463 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8464 fi 8465 ;; 8466 8467 uts4*) 8468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8469 hardcode_libdir_flag_spec='-L$libdir' 8470 hardcode_shlibpath_var=no 8471 ;; 8472 8473 *) 8474 ld_shlibs=no 8475 ;; 8476 esac 8477 fi 8478 8479{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8480echo "${ECHO_T}$ld_shlibs" >&6; } 8481test "$ld_shlibs" = no && can_build_shared=no 8482 8483# 8484# Do we need to explicitly link libc? 8485# 8486case "x$archive_cmds_need_lc" in 8487x|xyes) 8488 # Assume -lc should be added 8489 archive_cmds_need_lc=yes 8490 8491 if test "$enable_shared" = yes && test "$GCC" = yes; then 8492 case $archive_cmds in 8493 *'~'*) 8494 # FIXME: we may have to deal with multi-command sequences. 8495 ;; 8496 '$CC '*) 8497 # Test whether the compiler implicitly links with -lc since on some 8498 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8499 # to ld, don't add -lc before -lgcc. 8500 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8501echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8502 $rm conftest* 8503 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8504 8505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8506 (eval $ac_compile) 2>&5 8507 ac_status=$? 8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8509 (exit $ac_status); } 2>conftest.err; then 8510 soname=conftest 8511 lib=conftest 8512 libobjs=conftest.$ac_objext 8513 deplibs= 8514 wl=$lt_prog_compiler_wl 8515 pic_flag=$lt_prog_compiler_pic 8516 compiler_flags=-v 8517 linker_flags=-v 8518 verstring= 8519 output_objdir=. 8520 libname=conftest 8521 lt_save_allow_undefined_flag=$allow_undefined_flag 8522 allow_undefined_flag= 8523 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8524 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8525 ac_status=$? 8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8527 (exit $ac_status); } 8528 then 8529 archive_cmds_need_lc=no 8530 else 8531 archive_cmds_need_lc=yes 8532 fi 8533 allow_undefined_flag=$lt_save_allow_undefined_flag 8534 else 8535 cat conftest.err 1>&5 8536 fi 8537 $rm conftest* 8538 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8539echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8540 ;; 8541 esac 8542 fi 8543 ;; 8544esac 8545 8546{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8547echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8548library_names_spec= 8549libname_spec='lib$name' 8550soname_spec= 8551shrext_cmds=".so" 8552postinstall_cmds= 8553postuninstall_cmds= 8554finish_cmds= 8555finish_eval= 8556shlibpath_var= 8557shlibpath_overrides_runpath=unknown 8558version_type=none 8559dynamic_linker="$host_os ld.so" 8560sys_lib_dlsearch_path_spec="/lib /usr/lib" 8561 8562if test "$GCC" = yes; then 8563 case $host_os in 8564 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8565 *) lt_awk_arg="/^libraries:/" ;; 8566 esac 8567 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8568 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 8569 # if the path contains ";" then we assume it to be the separator 8570 # otherwise default to the standard path separator (i.e. ":") - it is 8571 # assumed that no part of a normal pathname contains ";" but that should 8572 # okay in the real world where ";" in dirpaths is itself problematic. 8573 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8574 else 8575 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8576 fi 8577 # Ok, now we have the path, separated by spaces, we can step through it 8578 # and add multilib dir if necessary. 8579 lt_tmp_lt_search_path_spec= 8580 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8581 for lt_sys_path in $lt_search_path_spec; do 8582 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8583 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8584 else 8585 test -d "$lt_sys_path" && \ 8586 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8587 fi 8588 done 8589 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 8590BEGIN {RS=" "; FS="/|\n";} { 8591 lt_foo=""; 8592 lt_count=0; 8593 for (lt_i = NF; lt_i > 0; lt_i--) { 8594 if ($lt_i != "" && $lt_i != ".") { 8595 if ($lt_i == "..") { 8596 lt_count++; 8597 } else { 8598 if (lt_count == 0) { 8599 lt_foo="/" $lt_i lt_foo; 8600 } else { 8601 lt_count--; 8602 } 8603 } 8604 } 8605 } 8606 if (lt_foo != "") { lt_freq[lt_foo]++; } 8607 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8608}'` 8609 sys_lib_search_path_spec=`echo $lt_search_path_spec` 8610else 8611 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8612fi 8613need_lib_prefix=unknown 8614hardcode_into_libs=no 8615 8616# when you set need_version to no, make sure it does not cause -set_version 8617# flags to be left without arguments 8618need_version=unknown 8619 8620case $host_os in 8621aix3*) 8622 version_type=linux 8623 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8624 shlibpath_var=LIBPATH 8625 8626 # AIX 3 has no versioning support, so we append a major version to the name. 8627 soname_spec='${libname}${release}${shared_ext}$major' 8628 ;; 8629 8630aix4* | aix5*) 8631 version_type=linux 8632 need_lib_prefix=no 8633 need_version=no 8634 hardcode_into_libs=yes 8635 if test "$host_cpu" = ia64; then 8636 # AIX 5 supports IA64 8637 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8638 shlibpath_var=LD_LIBRARY_PATH 8639 else 8640 # With GCC up to 2.95.x, collect2 would create an import file 8641 # for dependence libraries. The import file would start with 8642 # the line `#! .'. This would cause the generated library to 8643 # depend on `.', always an invalid library. This was fixed in 8644 # development snapshots of GCC prior to 3.0. 8645 case $host_os in 8646 aix4 | aix4.[01] | aix4.[01].*) 8647 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8648 echo ' yes ' 8649 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8650 : 8651 else 8652 can_build_shared=no 8653 fi 8654 ;; 8655 esac 8656 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8657 # soname into executable. Probably we can add versioning support to 8658 # collect2, so additional links can be useful in future. 8659 if test "$aix_use_runtimelinking" = yes; then 8660 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8661 # instead of lib<name>.a to let people know that these are not 8662 # typical AIX shared libraries. 8663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8664 else 8665 # We preserve .a as extension for shared libraries through AIX4.2 8666 # and later when we are not doing run time linking. 8667 library_names_spec='${libname}${release}.a $libname.a' 8668 soname_spec='${libname}${release}${shared_ext}$major' 8669 fi 8670 shlibpath_var=LIBPATH 8671 fi 8672 ;; 8673 8674amigaos*) 8675 library_names_spec='$libname.ixlibrary $libname.a' 8676 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8677 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' 8678 ;; 8679 8680beos*) 8681 library_names_spec='${libname}${shared_ext}' 8682 dynamic_linker="$host_os ld.so" 8683 shlibpath_var=LIBRARY_PATH 8684 ;; 8685 8686bsdi[45]*) 8687 version_type=linux 8688 need_version=no 8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8690 soname_spec='${libname}${release}${shared_ext}$major' 8691 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8692 shlibpath_var=LD_LIBRARY_PATH 8693 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8694 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8695 # the default ld.so.conf also contains /usr/contrib/lib and 8696 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8697 # libtool to hard-code these into programs 8698 ;; 8699 8700cygwin* | mingw* | pw32*) 8701 version_type=windows 8702 shrext_cmds=".dll" 8703 need_version=no 8704 need_lib_prefix=no 8705 8706 case $GCC,$host_os in 8707 yes,cygwin* | yes,mingw* | yes,pw32*) 8708 library_names_spec='$libname.dll.a' 8709 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8710 postinstall_cmds='base_file=`basename \${file}`~ 8711 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8712 dldir=$destdir/`dirname \$dlpath`~ 8713 test -d \$dldir || mkdir -p \$dldir~ 8714 $install_prog $dir/$dlname \$dldir/$dlname~ 8715 chmod a+x \$dldir/$dlname' 8716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8717 dlpath=$dir/\$dldll~ 8718 $rm \$dlpath' 8719 shlibpath_overrides_runpath=yes 8720 8721 case $host_os in 8722 cygwin*) 8723 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8725 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8726 ;; 8727 mingw*) 8728 # MinGW DLLs use traditional 'lib' prefix 8729 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8730 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8731 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 8732 # It is most probably a Windows format PATH printed by 8733 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8734 # path with ; separators, and with drive letters. We can handle the 8735 # drive letters (cygwin fileutils understands them), so leave them, 8736 # especially as we might pass files found there to a mingw objdump, 8737 # which wouldn't understand a cygwinified path. Ahh. 8738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8739 else 8740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8741 fi 8742 ;; 8743 pw32*) 8744 # pw32 DLLs use 'pw' prefix rather than 'lib' 8745 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8746 ;; 8747 esac 8748 ;; 8749 8750 *) 8751 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8752 ;; 8753 esac 8754 dynamic_linker='Win32 ld.exe' 8755 # FIXME: first we should search . and the directory the executable is in 8756 shlibpath_var=PATH 8757 ;; 8758 8759darwin* | rhapsody*) 8760 dynamic_linker="$host_os dyld" 8761 version_type=darwin 8762 need_lib_prefix=no 8763 need_version=no 8764 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8765 soname_spec='${libname}${release}${major}$shared_ext' 8766 shlibpath_overrides_runpath=yes 8767 shlibpath_var=DYLD_LIBRARY_PATH 8768 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8769 8770 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8771 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8772 ;; 8773 8774dgux*) 8775 version_type=linux 8776 need_lib_prefix=no 8777 need_version=no 8778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8779 soname_spec='${libname}${release}${shared_ext}$major' 8780 shlibpath_var=LD_LIBRARY_PATH 8781 ;; 8782 8783freebsd1*) 8784 dynamic_linker=no 8785 ;; 8786 8787freebsd* | dragonfly*) 8788 # DragonFly does not have aout. When/if they implement a new 8789 # versioning mechanism, adjust this. 8790 if test -x /usr/bin/objformat; then 8791 objformat=`/usr/bin/objformat` 8792 else 8793 case $host_os in 8794 freebsd[123]*) objformat=aout ;; 8795 *) objformat=elf ;; 8796 esac 8797 fi 8798 version_type=freebsd-$objformat 8799 case $version_type in 8800 freebsd-elf*) 8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8802 need_version=no 8803 need_lib_prefix=no 8804 ;; 8805 freebsd-*) 8806 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8807 need_version=yes 8808 ;; 8809 esac 8810 shlibpath_var=LD_LIBRARY_PATH 8811 case $host_os in 8812 freebsd2*) 8813 shlibpath_overrides_runpath=yes 8814 ;; 8815 freebsd3.[01]* | freebsdelf3.[01]*) 8816 shlibpath_overrides_runpath=yes 8817 hardcode_into_libs=yes 8818 ;; 8819 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8820 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8821 shlibpath_overrides_runpath=no 8822 hardcode_into_libs=yes 8823 ;; 8824 *) # from 4.6 on, and DragonFly 8825 shlibpath_overrides_runpath=yes 8826 hardcode_into_libs=yes 8827 ;; 8828 esac 8829 ;; 8830 8831gnu*) 8832 version_type=linux 8833 need_lib_prefix=no 8834 need_version=no 8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8836 soname_spec='${libname}${release}${shared_ext}$major' 8837 shlibpath_var=LD_LIBRARY_PATH 8838 hardcode_into_libs=yes 8839 ;; 8840 8841hpux9* | hpux10* | hpux11*) 8842 # Give a soname corresponding to the major version so that dld.sl refuses to 8843 # link against other versions. 8844 version_type=sunos 8845 need_lib_prefix=no 8846 need_version=no 8847 case $host_cpu in 8848 ia64*) 8849 shrext_cmds='.so' 8850 hardcode_into_libs=yes 8851 dynamic_linker="$host_os dld.so" 8852 shlibpath_var=LD_LIBRARY_PATH 8853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8855 soname_spec='${libname}${release}${shared_ext}$major' 8856 if test "X$HPUX_IA64_MODE" = X32; then 8857 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8858 else 8859 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8860 fi 8861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8862 ;; 8863 hppa*64*) 8864 shrext_cmds='.sl' 8865 hardcode_into_libs=yes 8866 dynamic_linker="$host_os dld.sl" 8867 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8868 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8870 soname_spec='${libname}${release}${shared_ext}$major' 8871 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8872 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8873 ;; 8874 *) 8875 shrext_cmds='.sl' 8876 dynamic_linker="$host_os dld.sl" 8877 shlibpath_var=SHLIB_PATH 8878 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8880 soname_spec='${libname}${release}${shared_ext}$major' 8881 ;; 8882 esac 8883 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8884 postinstall_cmds='chmod 555 $lib' 8885 ;; 8886 8887interix[3-9]*) 8888 version_type=linux 8889 need_lib_prefix=no 8890 need_version=no 8891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8892 soname_spec='${libname}${release}${shared_ext}$major' 8893 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8894 shlibpath_var=LD_LIBRARY_PATH 8895 shlibpath_overrides_runpath=no 8896 hardcode_into_libs=yes 8897 ;; 8898 8899irix5* | irix6* | nonstopux*) 8900 case $host_os in 8901 nonstopux*) version_type=nonstopux ;; 8902 *) 8903 if test "$lt_cv_prog_gnu_ld" = yes; then 8904 version_type=linux 8905 else 8906 version_type=irix 8907 fi ;; 8908 esac 8909 need_lib_prefix=no 8910 need_version=no 8911 soname_spec='${libname}${release}${shared_ext}$major' 8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8913 case $host_os in 8914 irix5* | nonstopux*) 8915 libsuff= shlibsuff= 8916 ;; 8917 *) 8918 case $LD in # libtool.m4 will add one of these switches to LD 8919 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8920 libsuff= shlibsuff= libmagic=32-bit;; 8921 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8922 libsuff=32 shlibsuff=N32 libmagic=N32;; 8923 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8924 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8925 *) libsuff= shlibsuff= libmagic=never-match;; 8926 esac 8927 ;; 8928 esac 8929 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8930 shlibpath_overrides_runpath=no 8931 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8932 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8933 hardcode_into_libs=yes 8934 ;; 8935 8936# No shared lib support for Linux oldld, aout, or coff. 8937linux*oldld* | linux*aout* | linux*coff*) 8938 dynamic_linker=no 8939 ;; 8940 8941# This must be Linux ELF. 8942linux* | k*bsd*-gnu) 8943 version_type=linux 8944 need_lib_prefix=no 8945 need_version=no 8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8947 soname_spec='${libname}${release}${shared_ext}$major' 8948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8949 shlibpath_var=LD_LIBRARY_PATH 8950 shlibpath_overrides_runpath=no 8951 # This implies no fast_install, which is unacceptable. 8952 # Some rework will be needed to allow for fast_install 8953 # before this can be enabled. 8954 hardcode_into_libs=yes 8955 8956 # Append ld.so.conf contents to the search path 8957 if test -f /etc/ld.so.conf; then 8958 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' ' '` 8959 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8960 fi 8961 8962 # We used to test for /lib/ld.so.1 and disable shared libraries on 8963 # powerpc, because MkLinux only supported shared libraries with the 8964 # GNU dynamic linker. Since this was broken with cross compilers, 8965 # most powerpc-linux boxes support dynamic linking these days and 8966 # people can always --disable-shared, the test was removed, and we 8967 # assume the GNU/Linux dynamic linker is in use. 8968 dynamic_linker='GNU/Linux ld.so' 8969 ;; 8970 8971netbsd*) 8972 version_type=sunos 8973 need_lib_prefix=no 8974 need_version=no 8975 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8978 dynamic_linker='NetBSD (a.out) ld.so' 8979 else 8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8981 soname_spec='${libname}${release}${shared_ext}$major' 8982 dynamic_linker='NetBSD ld.elf_so' 8983 fi 8984 shlibpath_var=LD_LIBRARY_PATH 8985 shlibpath_overrides_runpath=yes 8986 hardcode_into_libs=yes 8987 ;; 8988 8989newsos6) 8990 version_type=linux 8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8992 shlibpath_var=LD_LIBRARY_PATH 8993 shlibpath_overrides_runpath=yes 8994 ;; 8995 8996nto-qnx*) 8997 version_type=linux 8998 need_lib_prefix=no 8999 need_version=no 9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9001 soname_spec='${libname}${release}${shared_ext}$major' 9002 shlibpath_var=LD_LIBRARY_PATH 9003 shlibpath_overrides_runpath=yes 9004 ;; 9005 9006openbsd*) 9007 version_type=sunos 9008 sys_lib_dlsearch_path_spec="/usr/lib" 9009 need_lib_prefix=no 9010 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9011 case $host_os in 9012 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9013 *) need_version=no ;; 9014 esac 9015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9017 shlibpath_var=LD_LIBRARY_PATH 9018 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9019 case $host_os in 9020 openbsd2.[89] | openbsd2.[89].*) 9021 shlibpath_overrides_runpath=no 9022 ;; 9023 *) 9024 shlibpath_overrides_runpath=yes 9025 ;; 9026 esac 9027 else 9028 shlibpath_overrides_runpath=yes 9029 fi 9030 ;; 9031 9032os2*) 9033 libname_spec='$name' 9034 shrext_cmds=".dll" 9035 need_lib_prefix=no 9036 library_names_spec='$libname${shared_ext} $libname.a' 9037 dynamic_linker='OS/2 ld.exe' 9038 shlibpath_var=LIBPATH 9039 ;; 9040 9041osf3* | osf4* | osf5*) 9042 version_type=osf 9043 need_lib_prefix=no 9044 need_version=no 9045 soname_spec='${libname}${release}${shared_ext}$major' 9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9047 shlibpath_var=LD_LIBRARY_PATH 9048 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9049 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9050 ;; 9051 9052rdos*) 9053 dynamic_linker=no 9054 ;; 9055 9056solaris*) 9057 version_type=linux 9058 need_lib_prefix=no 9059 need_version=no 9060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9061 soname_spec='${libname}${release}${shared_ext}$major' 9062 shlibpath_var=LD_LIBRARY_PATH 9063 shlibpath_overrides_runpath=yes 9064 hardcode_into_libs=yes 9065 # ldd complains unless libraries are executable 9066 postinstall_cmds='chmod +x $lib' 9067 ;; 9068 9069sunos4*) 9070 version_type=sunos 9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9072 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9073 shlibpath_var=LD_LIBRARY_PATH 9074 shlibpath_overrides_runpath=yes 9075 if test "$with_gnu_ld" = yes; then 9076 need_lib_prefix=no 9077 fi 9078 need_version=yes 9079 ;; 9080 9081sysv4 | sysv4.3*) 9082 version_type=linux 9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9084 soname_spec='${libname}${release}${shared_ext}$major' 9085 shlibpath_var=LD_LIBRARY_PATH 9086 case $host_vendor in 9087 sni) 9088 shlibpath_overrides_runpath=no 9089 need_lib_prefix=no 9090 export_dynamic_flag_spec='${wl}-Blargedynsym' 9091 runpath_var=LD_RUN_PATH 9092 ;; 9093 siemens) 9094 need_lib_prefix=no 9095 ;; 9096 motorola) 9097 need_lib_prefix=no 9098 need_version=no 9099 shlibpath_overrides_runpath=no 9100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9101 ;; 9102 esac 9103 ;; 9104 9105sysv4*MP*) 9106 if test -d /usr/nec ;then 9107 version_type=linux 9108 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9109 soname_spec='$libname${shared_ext}.$major' 9110 shlibpath_var=LD_LIBRARY_PATH 9111 fi 9112 ;; 9113 9114sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9115 version_type=freebsd-elf 9116 need_lib_prefix=no 9117 need_version=no 9118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9119 soname_spec='${libname}${release}${shared_ext}$major' 9120 shlibpath_var=LD_LIBRARY_PATH 9121 hardcode_into_libs=yes 9122 if test "$with_gnu_ld" = yes; then 9123 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9124 shlibpath_overrides_runpath=no 9125 else 9126 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9127 shlibpath_overrides_runpath=yes 9128 case $host_os in 9129 sco3.2v5*) 9130 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9131 ;; 9132 esac 9133 fi 9134 sys_lib_dlsearch_path_spec='/usr/lib' 9135 ;; 9136 9137uts4*) 9138 version_type=linux 9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9140 soname_spec='${libname}${release}${shared_ext}$major' 9141 shlibpath_var=LD_LIBRARY_PATH 9142 ;; 9143 9144*) 9145 dynamic_linker=no 9146 ;; 9147esac 9148{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9149echo "${ECHO_T}$dynamic_linker" >&6; } 9150test "$dynamic_linker" = no && can_build_shared=no 9151 9152variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9153if test "$GCC" = yes; then 9154 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9155fi 9156 9157{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9158echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9159hardcode_action= 9160if test -n "$hardcode_libdir_flag_spec" || \ 9161 test -n "$runpath_var" || \ 9162 test "X$hardcode_automatic" = "Xyes" ; then 9163 9164 # We can hardcode non-existant directories. 9165 if test "$hardcode_direct" != no && 9166 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9167 # have to relink, otherwise we might link with an installed library 9168 # when we should be linking with a yet-to-be-installed one 9169 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9170 test "$hardcode_minus_L" != no; then 9171 # Linking always hardcodes the temporary library directory. 9172 hardcode_action=relink 9173 else 9174 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9175 hardcode_action=immediate 9176 fi 9177else 9178 # We cannot hardcode anything, or else we can only hardcode existing 9179 # directories. 9180 hardcode_action=unsupported 9181fi 9182{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9183echo "${ECHO_T}$hardcode_action" >&6; } 9184 9185if test "$hardcode_action" = relink; then 9186 # Fast installation is not supported 9187 enable_fast_install=no 9188elif test "$shlibpath_overrides_runpath" = yes || 9189 test "$enable_shared" = no; then 9190 # Fast installation is not necessary 9191 enable_fast_install=needless 9192fi 9193 9194striplib= 9195old_striplib= 9196{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9197echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9198if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9199 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9200 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9201 { echo "$as_me:$LINENO: result: yes" >&5 9202echo "${ECHO_T}yes" >&6; } 9203else 9204# FIXME - insert some real tests, host_os isn't really good enough 9205 case $host_os in 9206 darwin*) 9207 if test -n "$STRIP" ; then 9208 striplib="$STRIP -x" 9209 old_striplib="$STRIP -S" 9210 { echo "$as_me:$LINENO: result: yes" >&5 9211echo "${ECHO_T}yes" >&6; } 9212 else 9213 { echo "$as_me:$LINENO: result: no" >&5 9214echo "${ECHO_T}no" >&6; } 9215fi 9216 ;; 9217 *) 9218 { echo "$as_me:$LINENO: result: no" >&5 9219echo "${ECHO_T}no" >&6; } 9220 ;; 9221 esac 9222fi 9223 9224if test "x$enable_dlopen" != xyes; then 9225 enable_dlopen=unknown 9226 enable_dlopen_self=unknown 9227 enable_dlopen_self_static=unknown 9228else 9229 lt_cv_dlopen=no 9230 lt_cv_dlopen_libs= 9231 9232 case $host_os in 9233 beos*) 9234 lt_cv_dlopen="load_add_on" 9235 lt_cv_dlopen_libs= 9236 lt_cv_dlopen_self=yes 9237 ;; 9238 9239 mingw* | pw32*) 9240 lt_cv_dlopen="LoadLibrary" 9241 lt_cv_dlopen_libs= 9242 ;; 9243 9244 cygwin*) 9245 lt_cv_dlopen="dlopen" 9246 lt_cv_dlopen_libs= 9247 ;; 9248 9249 darwin*) 9250 # if libdl is installed we need to link against it 9251 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9252echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9253if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9254 echo $ECHO_N "(cached) $ECHO_C" >&6 9255else 9256 ac_check_lib_save_LIBS=$LIBS 9257LIBS="-ldl $LIBS" 9258cat >conftest.$ac_ext <<_ACEOF 9259/* confdefs.h. */ 9260_ACEOF 9261cat confdefs.h >>conftest.$ac_ext 9262cat >>conftest.$ac_ext <<_ACEOF 9263/* end confdefs.h. */ 9264 9265/* Override any GCC internal prototype to avoid an error. 9266 Use char because int might match the return type of a GCC 9267 builtin and then its argument prototype would still apply. */ 9268#ifdef __cplusplus 9269extern "C" 9270#endif 9271char dlopen (); 9272int 9273main () 9274{ 9275return dlopen (); 9276 ; 9277 return 0; 9278} 9279_ACEOF 9280rm -f conftest.$ac_objext conftest$ac_exeext 9281if { (ac_try="$ac_link" 9282case "(($ac_try" in 9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9284 *) ac_try_echo=$ac_try;; 9285esac 9286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9287 (eval "$ac_link") 2>conftest.er1 9288 ac_status=$? 9289 grep -v '^ *+' conftest.er1 >conftest.err 9290 rm -f conftest.er1 9291 cat conftest.err >&5 9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9293 (exit $ac_status); } && { 9294 test -z "$ac_c_werror_flag" || 9295 test ! -s conftest.err 9296 } && test -s conftest$ac_exeext && 9297 $as_test_x conftest$ac_exeext; then 9298 ac_cv_lib_dl_dlopen=yes 9299else 9300 echo "$as_me: failed program was:" >&5 9301sed 's/^/| /' conftest.$ac_ext >&5 9302 9303 ac_cv_lib_dl_dlopen=no 9304fi 9305 9306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9307 conftest$ac_exeext conftest.$ac_ext 9308LIBS=$ac_check_lib_save_LIBS 9309fi 9310{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9311echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9312if test $ac_cv_lib_dl_dlopen = yes; then 9313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9314else 9315 9316 lt_cv_dlopen="dyld" 9317 lt_cv_dlopen_libs= 9318 lt_cv_dlopen_self=yes 9319 9320fi 9321 9322 ;; 9323 9324 *) 9325 { echo "$as_me:$LINENO: checking for shl_load" >&5 9326echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9327if test "${ac_cv_func_shl_load+set}" = set; then 9328 echo $ECHO_N "(cached) $ECHO_C" >&6 9329else 9330 cat >conftest.$ac_ext <<_ACEOF 9331/* confdefs.h. */ 9332_ACEOF 9333cat confdefs.h >>conftest.$ac_ext 9334cat >>conftest.$ac_ext <<_ACEOF 9335/* end confdefs.h. */ 9336/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9337 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9338#define shl_load innocuous_shl_load 9339 9340/* System header to define __stub macros and hopefully few prototypes, 9341 which can conflict with char shl_load (); below. 9342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9343 <limits.h> exists even on freestanding compilers. */ 9344 9345#ifdef __STDC__ 9346# include <limits.h> 9347#else 9348# include <assert.h> 9349#endif 9350 9351#undef shl_load 9352 9353/* Override any GCC internal prototype to avoid an error. 9354 Use char because int might match the return type of a GCC 9355 builtin and then its argument prototype would still apply. */ 9356#ifdef __cplusplus 9357extern "C" 9358#endif 9359char shl_load (); 9360/* The GNU C library defines this for functions which it implements 9361 to always fail with ENOSYS. Some functions are actually named 9362 something starting with __ and the normal name is an alias. */ 9363#if defined __stub_shl_load || defined __stub___shl_load 9364choke me 9365#endif 9366 9367int 9368main () 9369{ 9370return shl_load (); 9371 ; 9372 return 0; 9373} 9374_ACEOF 9375rm -f conftest.$ac_objext conftest$ac_exeext 9376if { (ac_try="$ac_link" 9377case "(($ac_try" in 9378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9379 *) ac_try_echo=$ac_try;; 9380esac 9381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9382 (eval "$ac_link") 2>conftest.er1 9383 ac_status=$? 9384 grep -v '^ *+' conftest.er1 >conftest.err 9385 rm -f conftest.er1 9386 cat conftest.err >&5 9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9388 (exit $ac_status); } && { 9389 test -z "$ac_c_werror_flag" || 9390 test ! -s conftest.err 9391 } && test -s conftest$ac_exeext && 9392 $as_test_x conftest$ac_exeext; then 9393 ac_cv_func_shl_load=yes 9394else 9395 echo "$as_me: failed program was:" >&5 9396sed 's/^/| /' conftest.$ac_ext >&5 9397 9398 ac_cv_func_shl_load=no 9399fi 9400 9401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9402 conftest$ac_exeext conftest.$ac_ext 9403fi 9404{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9405echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9406if test $ac_cv_func_shl_load = yes; then 9407 lt_cv_dlopen="shl_load" 9408else 9409 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9410echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9411if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9412 echo $ECHO_N "(cached) $ECHO_C" >&6 9413else 9414 ac_check_lib_save_LIBS=$LIBS 9415LIBS="-ldld $LIBS" 9416cat >conftest.$ac_ext <<_ACEOF 9417/* confdefs.h. */ 9418_ACEOF 9419cat confdefs.h >>conftest.$ac_ext 9420cat >>conftest.$ac_ext <<_ACEOF 9421/* end confdefs.h. */ 9422 9423/* Override any GCC internal prototype to avoid an error. 9424 Use char because int might match the return type of a GCC 9425 builtin and then its argument prototype would still apply. */ 9426#ifdef __cplusplus 9427extern "C" 9428#endif 9429char shl_load (); 9430int 9431main () 9432{ 9433return shl_load (); 9434 ; 9435 return 0; 9436} 9437_ACEOF 9438rm -f conftest.$ac_objext conftest$ac_exeext 9439if { (ac_try="$ac_link" 9440case "(($ac_try" in 9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9442 *) ac_try_echo=$ac_try;; 9443esac 9444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9445 (eval "$ac_link") 2>conftest.er1 9446 ac_status=$? 9447 grep -v '^ *+' conftest.er1 >conftest.err 9448 rm -f conftest.er1 9449 cat conftest.err >&5 9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9451 (exit $ac_status); } && { 9452 test -z "$ac_c_werror_flag" || 9453 test ! -s conftest.err 9454 } && test -s conftest$ac_exeext && 9455 $as_test_x conftest$ac_exeext; then 9456 ac_cv_lib_dld_shl_load=yes 9457else 9458 echo "$as_me: failed program was:" >&5 9459sed 's/^/| /' conftest.$ac_ext >&5 9460 9461 ac_cv_lib_dld_shl_load=no 9462fi 9463 9464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9465 conftest$ac_exeext conftest.$ac_ext 9466LIBS=$ac_check_lib_save_LIBS 9467fi 9468{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9469echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9470if test $ac_cv_lib_dld_shl_load = yes; then 9471 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9472else 9473 { echo "$as_me:$LINENO: checking for dlopen" >&5 9474echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9475if test "${ac_cv_func_dlopen+set}" = set; then 9476 echo $ECHO_N "(cached) $ECHO_C" >&6 9477else 9478 cat >conftest.$ac_ext <<_ACEOF 9479/* confdefs.h. */ 9480_ACEOF 9481cat confdefs.h >>conftest.$ac_ext 9482cat >>conftest.$ac_ext <<_ACEOF 9483/* end confdefs.h. */ 9484/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9485 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9486#define dlopen innocuous_dlopen 9487 9488/* System header to define __stub macros and hopefully few prototypes, 9489 which can conflict with char dlopen (); below. 9490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9491 <limits.h> exists even on freestanding compilers. */ 9492 9493#ifdef __STDC__ 9494# include <limits.h> 9495#else 9496# include <assert.h> 9497#endif 9498 9499#undef dlopen 9500 9501/* Override any GCC internal prototype to avoid an error. 9502 Use char because int might match the return type of a GCC 9503 builtin and then its argument prototype would still apply. */ 9504#ifdef __cplusplus 9505extern "C" 9506#endif 9507char dlopen (); 9508/* The GNU C library defines this for functions which it implements 9509 to always fail with ENOSYS. Some functions are actually named 9510 something starting with __ and the normal name is an alias. */ 9511#if defined __stub_dlopen || defined __stub___dlopen 9512choke me 9513#endif 9514 9515int 9516main () 9517{ 9518return dlopen (); 9519 ; 9520 return 0; 9521} 9522_ACEOF 9523rm -f conftest.$ac_objext conftest$ac_exeext 9524if { (ac_try="$ac_link" 9525case "(($ac_try" in 9526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9527 *) ac_try_echo=$ac_try;; 9528esac 9529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9530 (eval "$ac_link") 2>conftest.er1 9531 ac_status=$? 9532 grep -v '^ *+' conftest.er1 >conftest.err 9533 rm -f conftest.er1 9534 cat conftest.err >&5 9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9536 (exit $ac_status); } && { 9537 test -z "$ac_c_werror_flag" || 9538 test ! -s conftest.err 9539 } && test -s conftest$ac_exeext && 9540 $as_test_x conftest$ac_exeext; then 9541 ac_cv_func_dlopen=yes 9542else 9543 echo "$as_me: failed program was:" >&5 9544sed 's/^/| /' conftest.$ac_ext >&5 9545 9546 ac_cv_func_dlopen=no 9547fi 9548 9549rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9550 conftest$ac_exeext conftest.$ac_ext 9551fi 9552{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9553echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9554if test $ac_cv_func_dlopen = yes; then 9555 lt_cv_dlopen="dlopen" 9556else 9557 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9558echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9559if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9560 echo $ECHO_N "(cached) $ECHO_C" >&6 9561else 9562 ac_check_lib_save_LIBS=$LIBS 9563LIBS="-ldl $LIBS" 9564cat >conftest.$ac_ext <<_ACEOF 9565/* confdefs.h. */ 9566_ACEOF 9567cat confdefs.h >>conftest.$ac_ext 9568cat >>conftest.$ac_ext <<_ACEOF 9569/* end confdefs.h. */ 9570 9571/* Override any GCC internal prototype to avoid an error. 9572 Use char because int might match the return type of a GCC 9573 builtin and then its argument prototype would still apply. */ 9574#ifdef __cplusplus 9575extern "C" 9576#endif 9577char dlopen (); 9578int 9579main () 9580{ 9581return dlopen (); 9582 ; 9583 return 0; 9584} 9585_ACEOF 9586rm -f conftest.$ac_objext conftest$ac_exeext 9587if { (ac_try="$ac_link" 9588case "(($ac_try" in 9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9590 *) ac_try_echo=$ac_try;; 9591esac 9592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9593 (eval "$ac_link") 2>conftest.er1 9594 ac_status=$? 9595 grep -v '^ *+' conftest.er1 >conftest.err 9596 rm -f conftest.er1 9597 cat conftest.err >&5 9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9599 (exit $ac_status); } && { 9600 test -z "$ac_c_werror_flag" || 9601 test ! -s conftest.err 9602 } && test -s conftest$ac_exeext && 9603 $as_test_x conftest$ac_exeext; then 9604 ac_cv_lib_dl_dlopen=yes 9605else 9606 echo "$as_me: failed program was:" >&5 9607sed 's/^/| /' conftest.$ac_ext >&5 9608 9609 ac_cv_lib_dl_dlopen=no 9610fi 9611 9612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9613 conftest$ac_exeext conftest.$ac_ext 9614LIBS=$ac_check_lib_save_LIBS 9615fi 9616{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9617echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9618if test $ac_cv_lib_dl_dlopen = yes; then 9619 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9620else 9621 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9622echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 9623if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9624 echo $ECHO_N "(cached) $ECHO_C" >&6 9625else 9626 ac_check_lib_save_LIBS=$LIBS 9627LIBS="-lsvld $LIBS" 9628cat >conftest.$ac_ext <<_ACEOF 9629/* confdefs.h. */ 9630_ACEOF 9631cat confdefs.h >>conftest.$ac_ext 9632cat >>conftest.$ac_ext <<_ACEOF 9633/* end confdefs.h. */ 9634 9635/* Override any GCC internal prototype to avoid an error. 9636 Use char because int might match the return type of a GCC 9637 builtin and then its argument prototype would still apply. */ 9638#ifdef __cplusplus 9639extern "C" 9640#endif 9641char dlopen (); 9642int 9643main () 9644{ 9645return dlopen (); 9646 ; 9647 return 0; 9648} 9649_ACEOF 9650rm -f conftest.$ac_objext conftest$ac_exeext 9651if { (ac_try="$ac_link" 9652case "(($ac_try" in 9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9654 *) ac_try_echo=$ac_try;; 9655esac 9656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9657 (eval "$ac_link") 2>conftest.er1 9658 ac_status=$? 9659 grep -v '^ *+' conftest.er1 >conftest.err 9660 rm -f conftest.er1 9661 cat conftest.err >&5 9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9663 (exit $ac_status); } && { 9664 test -z "$ac_c_werror_flag" || 9665 test ! -s conftest.err 9666 } && test -s conftest$ac_exeext && 9667 $as_test_x conftest$ac_exeext; then 9668 ac_cv_lib_svld_dlopen=yes 9669else 9670 echo "$as_me: failed program was:" >&5 9671sed 's/^/| /' conftest.$ac_ext >&5 9672 9673 ac_cv_lib_svld_dlopen=no 9674fi 9675 9676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9677 conftest$ac_exeext conftest.$ac_ext 9678LIBS=$ac_check_lib_save_LIBS 9679fi 9680{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9681echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 9682if test $ac_cv_lib_svld_dlopen = yes; then 9683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9684else 9685 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9686echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 9687if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9688 echo $ECHO_N "(cached) $ECHO_C" >&6 9689else 9690 ac_check_lib_save_LIBS=$LIBS 9691LIBS="-ldld $LIBS" 9692cat >conftest.$ac_ext <<_ACEOF 9693/* confdefs.h. */ 9694_ACEOF 9695cat confdefs.h >>conftest.$ac_ext 9696cat >>conftest.$ac_ext <<_ACEOF 9697/* end confdefs.h. */ 9698 9699/* Override any GCC internal prototype to avoid an error. 9700 Use char because int might match the return type of a GCC 9701 builtin and then its argument prototype would still apply. */ 9702#ifdef __cplusplus 9703extern "C" 9704#endif 9705char dld_link (); 9706int 9707main () 9708{ 9709return dld_link (); 9710 ; 9711 return 0; 9712} 9713_ACEOF 9714rm -f conftest.$ac_objext conftest$ac_exeext 9715if { (ac_try="$ac_link" 9716case "(($ac_try" in 9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9718 *) ac_try_echo=$ac_try;; 9719esac 9720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9721 (eval "$ac_link") 2>conftest.er1 9722 ac_status=$? 9723 grep -v '^ *+' conftest.er1 >conftest.err 9724 rm -f conftest.er1 9725 cat conftest.err >&5 9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9727 (exit $ac_status); } && { 9728 test -z "$ac_c_werror_flag" || 9729 test ! -s conftest.err 9730 } && test -s conftest$ac_exeext && 9731 $as_test_x conftest$ac_exeext; then 9732 ac_cv_lib_dld_dld_link=yes 9733else 9734 echo "$as_me: failed program was:" >&5 9735sed 's/^/| /' conftest.$ac_ext >&5 9736 9737 ac_cv_lib_dld_dld_link=no 9738fi 9739 9740rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9741 conftest$ac_exeext conftest.$ac_ext 9742LIBS=$ac_check_lib_save_LIBS 9743fi 9744{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9745echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 9746if test $ac_cv_lib_dld_dld_link = yes; then 9747 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9748fi 9749 9750 9751fi 9752 9753 9754fi 9755 9756 9757fi 9758 9759 9760fi 9761 9762 9763fi 9764 9765 ;; 9766 esac 9767 9768 if test "x$lt_cv_dlopen" != xno; then 9769 enable_dlopen=yes 9770 else 9771 enable_dlopen=no 9772 fi 9773 9774 case $lt_cv_dlopen in 9775 dlopen) 9776 save_CPPFLAGS="$CPPFLAGS" 9777 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9778 9779 save_LDFLAGS="$LDFLAGS" 9780 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9781 9782 save_LIBS="$LIBS" 9783 LIBS="$lt_cv_dlopen_libs $LIBS" 9784 9785 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9786echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 9787if test "${lt_cv_dlopen_self+set}" = set; then 9788 echo $ECHO_N "(cached) $ECHO_C" >&6 9789else 9790 if test "$cross_compiling" = yes; then : 9791 lt_cv_dlopen_self=cross 9792else 9793 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9794 lt_status=$lt_dlunknown 9795 cat > conftest.$ac_ext <<EOF 9796#line 9796 "configure" 9797#include "confdefs.h" 9798 9799#if HAVE_DLFCN_H 9800#include <dlfcn.h> 9801#endif 9802 9803#include <stdio.h> 9804 9805#ifdef RTLD_GLOBAL 9806# define LT_DLGLOBAL RTLD_GLOBAL 9807#else 9808# ifdef DL_GLOBAL 9809# define LT_DLGLOBAL DL_GLOBAL 9810# else 9811# define LT_DLGLOBAL 0 9812# endif 9813#endif 9814 9815/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9816 find out it does not work in some platform. */ 9817#ifndef LT_DLLAZY_OR_NOW 9818# ifdef RTLD_LAZY 9819# define LT_DLLAZY_OR_NOW RTLD_LAZY 9820# else 9821# ifdef DL_LAZY 9822# define LT_DLLAZY_OR_NOW DL_LAZY 9823# else 9824# ifdef RTLD_NOW 9825# define LT_DLLAZY_OR_NOW RTLD_NOW 9826# else 9827# ifdef DL_NOW 9828# define LT_DLLAZY_OR_NOW DL_NOW 9829# else 9830# define LT_DLLAZY_OR_NOW 0 9831# endif 9832# endif 9833# endif 9834# endif 9835#endif 9836 9837#ifdef __cplusplus 9838extern "C" void exit (int); 9839#endif 9840 9841void fnord() { int i=42;} 9842int main () 9843{ 9844 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9845 int status = $lt_dlunknown; 9846 9847 if (self) 9848 { 9849 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9850 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9851 /* dlclose (self); */ 9852 } 9853 else 9854 puts (dlerror ()); 9855 9856 exit (status); 9857} 9858EOF 9859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9860 (eval $ac_link) 2>&5 9861 ac_status=$? 9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9863 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9864 (./conftest; exit; ) >&5 2>/dev/null 9865 lt_status=$? 9866 case x$lt_status in 9867 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9868 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9869 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9870 esac 9871 else : 9872 # compilation failed 9873 lt_cv_dlopen_self=no 9874 fi 9875fi 9876rm -fr conftest* 9877 9878 9879fi 9880{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9881echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 9882 9883 if test "x$lt_cv_dlopen_self" = xyes; then 9884 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9885 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9886echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 9887if test "${lt_cv_dlopen_self_static+set}" = set; then 9888 echo $ECHO_N "(cached) $ECHO_C" >&6 9889else 9890 if test "$cross_compiling" = yes; then : 9891 lt_cv_dlopen_self_static=cross 9892else 9893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9894 lt_status=$lt_dlunknown 9895 cat > conftest.$ac_ext <<EOF 9896#line 9896 "configure" 9897#include "confdefs.h" 9898 9899#if HAVE_DLFCN_H 9900#include <dlfcn.h> 9901#endif 9902 9903#include <stdio.h> 9904 9905#ifdef RTLD_GLOBAL 9906# define LT_DLGLOBAL RTLD_GLOBAL 9907#else 9908# ifdef DL_GLOBAL 9909# define LT_DLGLOBAL DL_GLOBAL 9910# else 9911# define LT_DLGLOBAL 0 9912# endif 9913#endif 9914 9915/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9916 find out it does not work in some platform. */ 9917#ifndef LT_DLLAZY_OR_NOW 9918# ifdef RTLD_LAZY 9919# define LT_DLLAZY_OR_NOW RTLD_LAZY 9920# else 9921# ifdef DL_LAZY 9922# define LT_DLLAZY_OR_NOW DL_LAZY 9923# else 9924# ifdef RTLD_NOW 9925# define LT_DLLAZY_OR_NOW RTLD_NOW 9926# else 9927# ifdef DL_NOW 9928# define LT_DLLAZY_OR_NOW DL_NOW 9929# else 9930# define LT_DLLAZY_OR_NOW 0 9931# endif 9932# endif 9933# endif 9934# endif 9935#endif 9936 9937#ifdef __cplusplus 9938extern "C" void exit (int); 9939#endif 9940 9941void fnord() { int i=42;} 9942int main () 9943{ 9944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9945 int status = $lt_dlunknown; 9946 9947 if (self) 9948 { 9949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9950 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9951 /* dlclose (self); */ 9952 } 9953 else 9954 puts (dlerror ()); 9955 9956 exit (status); 9957} 9958EOF 9959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9960 (eval $ac_link) 2>&5 9961 ac_status=$? 9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9963 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9964 (./conftest; exit; ) >&5 2>/dev/null 9965 lt_status=$? 9966 case x$lt_status in 9967 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9968 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9969 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9970 esac 9971 else : 9972 # compilation failed 9973 lt_cv_dlopen_self_static=no 9974 fi 9975fi 9976rm -fr conftest* 9977 9978 9979fi 9980{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9981echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 9982 fi 9983 9984 CPPFLAGS="$save_CPPFLAGS" 9985 LDFLAGS="$save_LDFLAGS" 9986 LIBS="$save_LIBS" 9987 ;; 9988 esac 9989 9990 case $lt_cv_dlopen_self in 9991 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9992 *) enable_dlopen_self=unknown ;; 9993 esac 9994 9995 case $lt_cv_dlopen_self_static in 9996 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9997 *) enable_dlopen_self_static=unknown ;; 9998 esac 9999fi 10000 10001 10002# Report which library types will actually be built 10003{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10004echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10005{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10006echo "${ECHO_T}$can_build_shared" >&6; } 10007 10008{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10009echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10010test "$can_build_shared" = "no" && enable_shared=no 10011 10012# On AIX, shared libraries and static libraries use the same namespace, and 10013# are all built from PIC. 10014case $host_os in 10015aix3*) 10016 test "$enable_shared" = yes && enable_static=no 10017 if test -n "$RANLIB"; then 10018 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10019 postinstall_cmds='$RANLIB $lib' 10020 fi 10021 ;; 10022 10023aix4* | aix5*) 10024 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10025 test "$enable_shared" = yes && enable_static=no 10026 fi 10027 ;; 10028esac 10029{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10030echo "${ECHO_T}$enable_shared" >&6; } 10031 10032{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10033echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10034# Make sure either enable_shared or enable_static is yes. 10035test "$enable_shared" = yes || enable_static=yes 10036{ echo "$as_me:$LINENO: result: $enable_static" >&5 10037echo "${ECHO_T}$enable_static" >&6; } 10038 10039# The else clause should only fire when bootstrapping the 10040# libtool distribution, otherwise you forgot to ship ltmain.sh 10041# with your package, and you will get complaints that there are 10042# no rules to generate ltmain.sh. 10043if test -f "$ltmain"; then 10044 # See if we are running on zsh, and set the options which allow our commands through 10045 # without removal of \ escapes. 10046 if test -n "${ZSH_VERSION+set}" ; then 10047 setopt NO_GLOB_SUBST 10048 fi 10049 # Now quote all the things that may contain metacharacters while being 10050 # careful not to overquote the AC_SUBSTed values. We take copies of the 10051 # variables and quote the copies for generation of the libtool script. 10052 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10053 SED SHELL STRIP \ 10054 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10055 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10056 deplibs_check_method reload_flag reload_cmds need_locks \ 10057 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10058 lt_cv_sys_global_symbol_to_c_name_address \ 10059 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10060 old_postinstall_cmds old_postuninstall_cmds \ 10061 compiler \ 10062 CC \ 10063 LD \ 10064 lt_prog_compiler_wl \ 10065 lt_prog_compiler_pic \ 10066 lt_prog_compiler_static \ 10067 lt_prog_compiler_no_builtin_flag \ 10068 export_dynamic_flag_spec \ 10069 thread_safe_flag_spec \ 10070 whole_archive_flag_spec \ 10071 enable_shared_with_static_runtimes \ 10072 old_archive_cmds \ 10073 old_archive_from_new_cmds \ 10074 predep_objects \ 10075 postdep_objects \ 10076 predeps \ 10077 postdeps \ 10078 compiler_lib_search_path \ 10079 archive_cmds \ 10080 archive_expsym_cmds \ 10081 postinstall_cmds \ 10082 postuninstall_cmds \ 10083 old_archive_from_expsyms_cmds \ 10084 allow_undefined_flag \ 10085 no_undefined_flag \ 10086 export_symbols_cmds \ 10087 hardcode_libdir_flag_spec \ 10088 hardcode_libdir_flag_spec_ld \ 10089 hardcode_libdir_separator \ 10090 hardcode_automatic \ 10091 module_cmds \ 10092 module_expsym_cmds \ 10093 lt_cv_prog_compiler_c_o \ 10094 fix_srcfile_path \ 10095 exclude_expsyms \ 10096 include_expsyms; do 10097 10098 case $var in 10099 old_archive_cmds | \ 10100 old_archive_from_new_cmds | \ 10101 archive_cmds | \ 10102 archive_expsym_cmds | \ 10103 module_cmds | \ 10104 module_expsym_cmds | \ 10105 old_archive_from_expsyms_cmds | \ 10106 export_symbols_cmds | \ 10107 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10108 postinstall_cmds | postuninstall_cmds | \ 10109 old_postinstall_cmds | old_postuninstall_cmds | \ 10110 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10111 # Double-quote double-evaled strings. 10112 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10113 ;; 10114 *) 10115 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10116 ;; 10117 esac 10118 done 10119 10120 case $lt_echo in 10121 *'\$0 --fallback-echo"') 10122 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10123 ;; 10124 esac 10125 10126cfgfile="${ofile}T" 10127 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10128 $rm -f "$cfgfile" 10129 { echo "$as_me:$LINENO: creating $ofile" >&5 10130echo "$as_me: creating $ofile" >&6;} 10131 10132 cat <<__EOF__ >> "$cfgfile" 10133#! $SHELL 10134 10135# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10136# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10137# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10138# 10139# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 10140# Free Software Foundation, Inc. 10141# 10142# This file is part of GNU Libtool: 10143# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10144# 10145# This program is free software; you can redistribute it and/or modify 10146# it under the terms of the GNU General Public License as published by 10147# the Free Software Foundation; either version 2 of the License, or 10148# (at your option) any later version. 10149# 10150# This program is distributed in the hope that it will be useful, but 10151# WITHOUT ANY WARRANTY; without even the implied warranty of 10152# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10153# General Public License for more details. 10154# 10155# You should have received a copy of the GNU General Public License 10156# along with this program; if not, write to the Free Software 10157# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10158# 10159# As a special exception to the GNU General Public License, if you 10160# distribute this file as part of a program that contains a 10161# configuration script generated by Autoconf, you may include it under 10162# the same distribution terms that you use for the rest of that program. 10163 10164# A sed program that does not truncate output. 10165SED=$lt_SED 10166 10167# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10168Xsed="$SED -e 1s/^X//" 10169 10170# The HP-UX ksh and POSIX shell print the target directory to stdout 10171# if CDPATH is set. 10172(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10173 10174# The names of the tagged configurations supported by this script. 10175available_tags= 10176 10177# ### BEGIN LIBTOOL CONFIG 10178 10179# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10180 10181# Shell to use when invoking shell scripts. 10182SHELL=$lt_SHELL 10183 10184# Whether or not to build shared libraries. 10185build_libtool_libs=$enable_shared 10186 10187# Whether or not to build static libraries. 10188build_old_libs=$enable_static 10189 10190# Whether or not to add -lc for building shared libraries. 10191build_libtool_need_lc=$archive_cmds_need_lc 10192 10193# Whether or not to disallow shared libs when runtime libs are static 10194allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10195 10196# Whether or not to optimize for fast installation. 10197fast_install=$enable_fast_install 10198 10199# The host system. 10200host_alias=$host_alias 10201host=$host 10202host_os=$host_os 10203 10204# The build system. 10205build_alias=$build_alias 10206build=$build 10207build_os=$build_os 10208 10209# An echo program that does not interpret backslashes. 10210echo=$lt_echo 10211 10212# The archiver. 10213AR=$lt_AR 10214AR_FLAGS=$lt_AR_FLAGS 10215 10216# A C compiler. 10217LTCC=$lt_LTCC 10218 10219# LTCC compiler flags. 10220LTCFLAGS=$lt_LTCFLAGS 10221 10222# A language-specific compiler. 10223CC=$lt_compiler 10224 10225# Is the compiler the GNU C compiler? 10226with_gcc=$GCC 10227 10228# An ERE matcher. 10229EGREP=$lt_EGREP 10230 10231# The linker used to build libraries. 10232LD=$lt_LD 10233 10234# Whether we need hard or soft links. 10235LN_S=$lt_LN_S 10236 10237# A BSD-compatible nm program. 10238NM=$lt_NM 10239 10240# A symbol stripping program 10241STRIP=$lt_STRIP 10242 10243# Used to examine libraries when file_magic_cmd begins "file" 10244MAGIC_CMD=$MAGIC_CMD 10245 10246# Used on cygwin: DLL creation program. 10247DLLTOOL="$DLLTOOL" 10248 10249# Used on cygwin: object dumper. 10250OBJDUMP="$OBJDUMP" 10251 10252# Used on cygwin: assembler. 10253AS="$AS" 10254 10255# The name of the directory that contains temporary libtool files. 10256objdir=$objdir 10257 10258# How to create reloadable object files. 10259reload_flag=$lt_reload_flag 10260reload_cmds=$lt_reload_cmds 10261 10262# How to pass a linker flag through the compiler. 10263wl=$lt_lt_prog_compiler_wl 10264 10265# Object file suffix (normally "o"). 10266objext="$ac_objext" 10267 10268# Old archive suffix (normally "a"). 10269libext="$libext" 10270 10271# Shared library suffix (normally ".so"). 10272shrext_cmds='$shrext_cmds' 10273 10274# Executable file suffix (normally ""). 10275exeext="$exeext" 10276 10277# Additional compiler flags for building library objects. 10278pic_flag=$lt_lt_prog_compiler_pic 10279pic_mode=$pic_mode 10280 10281# What is the maximum length of a command? 10282max_cmd_len=$lt_cv_sys_max_cmd_len 10283 10284# Does compiler simultaneously support -c and -o options? 10285compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10286 10287# Must we lock files when doing compilation? 10288need_locks=$lt_need_locks 10289 10290# Do we need the lib prefix for modules? 10291need_lib_prefix=$need_lib_prefix 10292 10293# Do we need a version for libraries? 10294need_version=$need_version 10295 10296# Whether dlopen is supported. 10297dlopen_support=$enable_dlopen 10298 10299# Whether dlopen of programs is supported. 10300dlopen_self=$enable_dlopen_self 10301 10302# Whether dlopen of statically linked programs is supported. 10303dlopen_self_static=$enable_dlopen_self_static 10304 10305# Compiler flag to prevent dynamic linking. 10306link_static_flag=$lt_lt_prog_compiler_static 10307 10308# Compiler flag to turn off builtin functions. 10309no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10310 10311# Compiler flag to allow reflexive dlopens. 10312export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10313 10314# Compiler flag to generate shared objects directly from archives. 10315whole_archive_flag_spec=$lt_whole_archive_flag_spec 10316 10317# Compiler flag to generate thread-safe objects. 10318thread_safe_flag_spec=$lt_thread_safe_flag_spec 10319 10320# Library versioning type. 10321version_type=$version_type 10322 10323# Format of library name prefix. 10324libname_spec=$lt_libname_spec 10325 10326# List of archive names. First name is the real one, the rest are links. 10327# The last name is the one that the linker finds with -lNAME. 10328library_names_spec=$lt_library_names_spec 10329 10330# The coded name of the library, if different from the real name. 10331soname_spec=$lt_soname_spec 10332 10333# Commands used to build and install an old-style archive. 10334RANLIB=$lt_RANLIB 10335old_archive_cmds=$lt_old_archive_cmds 10336old_postinstall_cmds=$lt_old_postinstall_cmds 10337old_postuninstall_cmds=$lt_old_postuninstall_cmds 10338 10339# Create an old-style archive from a shared archive. 10340old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10341 10342# Create a temporary old-style archive to link instead of a shared archive. 10343old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10344 10345# Commands used to build and install a shared archive. 10346archive_cmds=$lt_archive_cmds 10347archive_expsym_cmds=$lt_archive_expsym_cmds 10348postinstall_cmds=$lt_postinstall_cmds 10349postuninstall_cmds=$lt_postuninstall_cmds 10350 10351# Commands used to build a loadable module (assumed same as above if empty) 10352module_cmds=$lt_module_cmds 10353module_expsym_cmds=$lt_module_expsym_cmds 10354 10355# Commands to strip libraries. 10356old_striplib=$lt_old_striplib 10357striplib=$lt_striplib 10358 10359# Dependencies to place before the objects being linked to create a 10360# shared library. 10361predep_objects=$lt_predep_objects 10362 10363# Dependencies to place after the objects being linked to create a 10364# shared library. 10365postdep_objects=$lt_postdep_objects 10366 10367# Dependencies to place before the objects being linked to create a 10368# shared library. 10369predeps=$lt_predeps 10370 10371# Dependencies to place after the objects being linked to create a 10372# shared library. 10373postdeps=$lt_postdeps 10374 10375# The library search path used internally by the compiler when linking 10376# a shared library. 10377compiler_lib_search_path=$lt_compiler_lib_search_path 10378 10379# Method to check whether dependent libraries are shared objects. 10380deplibs_check_method=$lt_deplibs_check_method 10381 10382# Command to use when deplibs_check_method == file_magic. 10383file_magic_cmd=$lt_file_magic_cmd 10384 10385# Flag that allows shared libraries with undefined symbols to be built. 10386allow_undefined_flag=$lt_allow_undefined_flag 10387 10388# Flag that forces no undefined symbols. 10389no_undefined_flag=$lt_no_undefined_flag 10390 10391# Commands used to finish a libtool library installation in a directory. 10392finish_cmds=$lt_finish_cmds 10393 10394# Same as above, but a single script fragment to be evaled but not shown. 10395finish_eval=$lt_finish_eval 10396 10397# Take the output of nm and produce a listing of raw symbols and C names. 10398global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10399 10400# Transform the output of nm in a proper C declaration 10401global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10402 10403# Transform the output of nm in a C name address pair 10404global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10405 10406# This is the shared library runtime path variable. 10407runpath_var=$runpath_var 10408 10409# This is the shared library path variable. 10410shlibpath_var=$shlibpath_var 10411 10412# Is shlibpath searched before the hard-coded library search path? 10413shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10414 10415# How to hardcode a shared library path into an executable. 10416hardcode_action=$hardcode_action 10417 10418# Whether we should hardcode library paths into libraries. 10419hardcode_into_libs=$hardcode_into_libs 10420 10421# Flag to hardcode \$libdir into a binary during linking. 10422# This must work even if \$libdir does not exist. 10423hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10424 10425# If ld is used when linking, flag to hardcode \$libdir into 10426# a binary during linking. This must work even if \$libdir does 10427# not exist. 10428hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10429 10430# Whether we need a single -rpath flag with a separated argument. 10431hardcode_libdir_separator=$lt_hardcode_libdir_separator 10432 10433# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10434# resulting binary. 10435hardcode_direct=$hardcode_direct 10436 10437# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10438# resulting binary. 10439hardcode_minus_L=$hardcode_minus_L 10440 10441# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10442# the resulting binary. 10443hardcode_shlibpath_var=$hardcode_shlibpath_var 10444 10445# Set to yes if building a shared library automatically hardcodes DIR into the library 10446# and all subsequent libraries and executables linked against it. 10447hardcode_automatic=$hardcode_automatic 10448 10449# Variables whose values should be saved in libtool wrapper scripts and 10450# restored at relink time. 10451variables_saved_for_relink="$variables_saved_for_relink" 10452 10453# Whether libtool must link a program against all its dependency libraries. 10454link_all_deplibs=$link_all_deplibs 10455 10456# Compile-time system search path for libraries 10457sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10458 10459# Run-time system search path for libraries 10460sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10461 10462# Fix the shell variable \$srcfile for the compiler. 10463fix_srcfile_path=$lt_fix_srcfile_path 10464 10465# Set to yes if exported symbols are required. 10466always_export_symbols=$always_export_symbols 10467 10468# The commands to list exported symbols. 10469export_symbols_cmds=$lt_export_symbols_cmds 10470 10471# The commands to extract the exported symbol list from a shared archive. 10472extract_expsyms_cmds=$lt_extract_expsyms_cmds 10473 10474# Symbols that should not be listed in the preloaded symbols. 10475exclude_expsyms=$lt_exclude_expsyms 10476 10477# Symbols that must always be exported. 10478include_expsyms=$lt_include_expsyms 10479 10480# ### END LIBTOOL CONFIG 10481 10482__EOF__ 10483 10484 10485 case $host_os in 10486 aix3*) 10487 cat <<\EOF >> "$cfgfile" 10488 10489# AIX sometimes has problems with the GCC collect2 program. For some 10490# reason, if we set the COLLECT_NAMES environment variable, the problems 10491# vanish in a puff of smoke. 10492if test "X${COLLECT_NAMES+set}" != Xset; then 10493 COLLECT_NAMES= 10494 export COLLECT_NAMES 10495fi 10496EOF 10497 ;; 10498 esac 10499 10500 # We use sed instead of cat because bash on DJGPP gets confused if 10501 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10502 # text mode, it properly converts lines to CR/LF. This bash problem 10503 # is reportedly fixed, but why not run on old versions too? 10504 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10505 10506 mv -f "$cfgfile" "$ofile" || \ 10507 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10508 chmod +x "$ofile" 10509 10510else 10511 # If there is no Makefile yet, we rely on a make rule to execute 10512 # `config.status --recheck' to rerun these tests and create the 10513 # libtool script then. 10514 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10515 if test -f "$ltmain_in"; then 10516 test -f Makefile && make "$ltmain" 10517 fi 10518fi 10519 10520 10521ac_ext=c 10522ac_cpp='$CPP $CPPFLAGS' 10523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10525ac_compiler_gnu=$ac_cv_c_compiler_gnu 10526 10527CC="$lt_save_CC" 10528 10529 10530# Check whether --with-tags was given. 10531if test "${with_tags+set}" = set; then 10532 withval=$with_tags; tagnames="$withval" 10533fi 10534 10535 10536if test -f "$ltmain" && test -n "$tagnames"; then 10537 if test ! -f "${ofile}"; then 10538 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10539echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10540 fi 10541 10542 if test -z "$LTCC"; then 10543 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10544 if test -z "$LTCC"; then 10545 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10546echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10547 else 10548 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10549echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10550 fi 10551 fi 10552 if test -z "$LTCFLAGS"; then 10553 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10554 fi 10555 10556 # Extract list of available tagged configurations in $ofile. 10557 # Note that this assumes the entire list is on one line. 10558 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10559 10560 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10561 for tagname in $tagnames; do 10562 IFS="$lt_save_ifs" 10563 # Check whether tagname contains only valid characters 10564 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10565 "") ;; 10566 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10567echo "$as_me: error: invalid tag name: $tagname" >&2;} 10568 { (exit 1); exit 1; }; } 10569 ;; 10570 esac 10571 10572 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10573 then 10574 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10575echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10576 { (exit 1); exit 1; }; } 10577 fi 10578 10579 # Update the list of available tags. 10580 if test -n "$tagname"; then 10581 echo appending configuration tag \"$tagname\" to $ofile 10582 10583 case $tagname in 10584 CXX) 10585 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 10586 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 10587 (test "X$CXX" != "Xg++"))) ; then 10588 ac_ext=cpp 10589ac_cpp='$CXXCPP $CPPFLAGS' 10590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10593 10594 10595 10596 10597archive_cmds_need_lc_CXX=no 10598allow_undefined_flag_CXX= 10599always_export_symbols_CXX=no 10600archive_expsym_cmds_CXX= 10601export_dynamic_flag_spec_CXX= 10602hardcode_direct_CXX=no 10603hardcode_libdir_flag_spec_CXX= 10604hardcode_libdir_flag_spec_ld_CXX= 10605hardcode_libdir_separator_CXX= 10606hardcode_minus_L_CXX=no 10607hardcode_shlibpath_var_CXX=unsupported 10608hardcode_automatic_CXX=no 10609module_cmds_CXX= 10610module_expsym_cmds_CXX= 10611link_all_deplibs_CXX=unknown 10612old_archive_cmds_CXX=$old_archive_cmds 10613no_undefined_flag_CXX= 10614whole_archive_flag_spec_CXX= 10615enable_shared_with_static_runtimes_CXX=no 10616 10617# Dependencies to place before and after the object being linked: 10618predep_objects_CXX= 10619postdep_objects_CXX= 10620predeps_CXX= 10621postdeps_CXX= 10622compiler_lib_search_path_CXX= 10623 10624# Source file extension for C++ test sources. 10625ac_ext=cpp 10626 10627# Object file extension for compiled C++ test sources. 10628objext=o 10629objext_CXX=$objext 10630 10631# Code to be used in simple compile tests 10632lt_simple_compile_test_code="int some_variable = 0;" 10633 10634# Code to be used in simple link tests 10635lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 10636 10637# ltmain only uses $CC for tagged configurations so make sure $CC is set. 10638 10639# If no C compiler was specified, use CC. 10640LTCC=${LTCC-"$CC"} 10641 10642# If no C compiler flags were specified, use CFLAGS. 10643LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10644 10645# Allow CC to be a program name with arguments. 10646compiler=$CC 10647 10648 10649# save warnings/boilerplate of simple test code 10650ac_outfile=conftest.$ac_objext 10651echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10652eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10653_lt_compiler_boilerplate=`cat conftest.err` 10654$rm conftest* 10655 10656ac_outfile=conftest.$ac_objext 10657echo "$lt_simple_link_test_code" >conftest.$ac_ext 10658eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10659_lt_linker_boilerplate=`cat conftest.err` 10660$rm conftest* 10661 10662 10663# Allow CC to be a program name with arguments. 10664lt_save_CC=$CC 10665lt_save_LD=$LD 10666lt_save_GCC=$GCC 10667GCC=$GXX 10668lt_save_with_gnu_ld=$with_gnu_ld 10669lt_save_path_LD=$lt_cv_path_LD 10670if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 10671 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 10672else 10673 $as_unset lt_cv_prog_gnu_ld 10674fi 10675if test -n "${lt_cv_path_LDCXX+set}"; then 10676 lt_cv_path_LD=$lt_cv_path_LDCXX 10677else 10678 $as_unset lt_cv_path_LD 10679fi 10680test -z "${LDCXX+set}" || LD=$LDCXX 10681CC=${CXX-"c++"} 10682compiler=$CC 10683compiler_CXX=$CC 10684for cc_temp in $compiler""; do 10685 case $cc_temp in 10686 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10687 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10688 \-*) ;; 10689 *) break;; 10690 esac 10691done 10692cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10693 10694 10695# We don't want -fno-exception wen compiling C++ code, so set the 10696# no_builtin_flag separately 10697if test "$GXX" = yes; then 10698 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 10699else 10700 lt_prog_compiler_no_builtin_flag_CXX= 10701fi 10702 10703if test "$GXX" = yes; then 10704 # Set up default GNU C++ configuration 10705 10706 10707# Check whether --with-gnu-ld was given. 10708if test "${with_gnu_ld+set}" = set; then 10709 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10710else 10711 with_gnu_ld=no 10712fi 10713 10714ac_prog=ld 10715if test "$GCC" = yes; then 10716 # Check if gcc -print-prog-name=ld gives a path. 10717 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 10718echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 10719 case $host in 10720 *-*-mingw*) 10721 # gcc leaves a trailing carriage return which upsets mingw 10722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10723 *) 10724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10725 esac 10726 case $ac_prog in 10727 # Accept absolute paths. 10728 [\\/]* | ?:[\\/]*) 10729 re_direlt='/[^/][^/]*/\.\./' 10730 # Canonicalize the pathname of ld 10731 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 10732 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10733 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 10734 done 10735 test -z "$LD" && LD="$ac_prog" 10736 ;; 10737 "") 10738 # If it fails, then pretend we aren't using GCC. 10739 ac_prog=ld 10740 ;; 10741 *) 10742 # If it is relative, then search for the first ld in PATH. 10743 with_gnu_ld=unknown 10744 ;; 10745 esac 10746elif test "$with_gnu_ld" = yes; then 10747 { echo "$as_me:$LINENO: checking for GNU ld" >&5 10748echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 10749else 10750 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10751echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 10752fi 10753if test "${lt_cv_path_LD+set}" = set; then 10754 echo $ECHO_N "(cached) $ECHO_C" >&6 10755else 10756 if test -z "$LD"; then 10757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10758 for ac_dir in $PATH; do 10759 IFS="$lt_save_ifs" 10760 test -z "$ac_dir" && ac_dir=. 10761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10762 lt_cv_path_LD="$ac_dir/$ac_prog" 10763 # Check to see if the program is GNU ld. I'd rather use --version, 10764 # but apparently some variants of GNU ld only accept -v. 10765 # Break only if it was the GNU/non-GNU ld that we prefer. 10766 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10767 *GNU* | *'with BFD'*) 10768 test "$with_gnu_ld" != no && break 10769 ;; 10770 *) 10771 test "$with_gnu_ld" != yes && break 10772 ;; 10773 esac 10774 fi 10775 done 10776 IFS="$lt_save_ifs" 10777else 10778 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10779fi 10780fi 10781 10782LD="$lt_cv_path_LD" 10783if test -n "$LD"; then 10784 { echo "$as_me:$LINENO: result: $LD" >&5 10785echo "${ECHO_T}$LD" >&6; } 10786else 10787 { echo "$as_me:$LINENO: result: no" >&5 10788echo "${ECHO_T}no" >&6; } 10789fi 10790test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10791echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10792 { (exit 1); exit 1; }; } 10793{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10794echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 10795if test "${lt_cv_prog_gnu_ld+set}" = set; then 10796 echo $ECHO_N "(cached) $ECHO_C" >&6 10797else 10798 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10799case `$LD -v 2>&1 </dev/null` in 10800*GNU* | *'with BFD'*) 10801 lt_cv_prog_gnu_ld=yes 10802 ;; 10803*) 10804 lt_cv_prog_gnu_ld=no 10805 ;; 10806esac 10807fi 10808{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10809echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 10810with_gnu_ld=$lt_cv_prog_gnu_ld 10811 10812 10813 10814 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10815 # archiving commands below assume that GNU ld is being used. 10816 if test "$with_gnu_ld" = yes; then 10817 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10818 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' 10819 10820 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10821 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10822 10823 # If archive_cmds runs LD, not CC, wlarc should be empty 10824 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10825 # investigate it a little bit more. (MM) 10826 wlarc='${wl}' 10827 10828 # ancient GNU ld didn't support --whole-archive et. al. 10829 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10830 grep 'no-whole-archive' > /dev/null; then 10831 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10832 else 10833 whole_archive_flag_spec_CXX= 10834 fi 10835 else 10836 with_gnu_ld=no 10837 wlarc= 10838 10839 # A generic and very simple default shared library creation 10840 # command for GNU C++ for the case where it uses the native 10841 # linker, instead of GNU ld. If possible, this setting should 10842 # overridden to take advantage of the native linker features on 10843 # the platform it is being used on. 10844 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10845 fi 10846 10847 # Commands to make compiler produce verbose output that lists 10848 # what "hidden" libraries, object files and flags are used when 10849 # linking a shared library. 10850 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10851 10852else 10853 GXX=no 10854 with_gnu_ld=no 10855 wlarc= 10856fi 10857 10858# PORTME: fill in a description of your system's C++ link characteristics 10859{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10860echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 10861ld_shlibs_CXX=yes 10862case $host_os in 10863 aix3*) 10864 # FIXME: insert proper C++ library support 10865 ld_shlibs_CXX=no 10866 ;; 10867 aix4* | aix5*) 10868 if test "$host_cpu" = ia64; then 10869 # On IA64, the linker does run time linking by default, so we don't 10870 # have to do anything special. 10871 aix_use_runtimelinking=no 10872 exp_sym_flag='-Bexport' 10873 no_entry_flag="" 10874 else 10875 aix_use_runtimelinking=no 10876 10877 # Test if we are trying to use run time linking or normal 10878 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10879 # need to do runtime linking. 10880 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10881 for ld_flag in $LDFLAGS; do 10882 case $ld_flag in 10883 *-brtl*) 10884 aix_use_runtimelinking=yes 10885 break 10886 ;; 10887 esac 10888 done 10889 ;; 10890 esac 10891 10892 exp_sym_flag='-bexport' 10893 no_entry_flag='-bnoentry' 10894 fi 10895 10896 # When large executables or shared objects are built, AIX ld can 10897 # have problems creating the table of contents. If linking a library 10898 # or program results in "error TOC overflow" add -mminimal-toc to 10899 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10900 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10901 10902 archive_cmds_CXX='' 10903 hardcode_direct_CXX=yes 10904 hardcode_libdir_separator_CXX=':' 10905 link_all_deplibs_CXX=yes 10906 10907 if test "$GXX" = yes; then 10908 case $host_os in aix4.[012]|aix4.[012].*) 10909 # We only want to do this on AIX 4.2 and lower, the check 10910 # below for broken collect2 doesn't work under 4.3+ 10911 collect2name=`${CC} -print-prog-name=collect2` 10912 if test -f "$collect2name" && \ 10913 strings "$collect2name" | grep resolve_lib_name >/dev/null 10914 then 10915 # We have reworked collect2 10916 : 10917 else 10918 # We have old collect2 10919 hardcode_direct_CXX=unsupported 10920 # It fails to find uninstalled libraries when the uninstalled 10921 # path is not listed in the libpath. Setting hardcode_minus_L 10922 # to unsupported forces relinking 10923 hardcode_minus_L_CXX=yes 10924 hardcode_libdir_flag_spec_CXX='-L$libdir' 10925 hardcode_libdir_separator_CXX= 10926 fi 10927 ;; 10928 esac 10929 shared_flag='-shared' 10930 if test "$aix_use_runtimelinking" = yes; then 10931 shared_flag="$shared_flag "'${wl}-G' 10932 fi 10933 else 10934 # not using gcc 10935 if test "$host_cpu" = ia64; then 10936 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10937 # chokes on -Wl,-G. The following line is correct: 10938 shared_flag='-G' 10939 else 10940 if test "$aix_use_runtimelinking" = yes; then 10941 shared_flag='${wl}-G' 10942 else 10943 shared_flag='${wl}-bM:SRE' 10944 fi 10945 fi 10946 fi 10947 10948 # It seems that -bexpall does not export symbols beginning with 10949 # underscore (_), so it is better to generate a list of symbols to export. 10950 always_export_symbols_CXX=yes 10951 if test "$aix_use_runtimelinking" = yes; then 10952 # Warning - without using the other runtime loading flags (-brtl), 10953 # -berok will link without error, but may produce a broken library. 10954 allow_undefined_flag_CXX='-berok' 10955 # Determine the default libpath from the value encoded in an empty executable. 10956 cat >conftest.$ac_ext <<_ACEOF 10957/* confdefs.h. */ 10958_ACEOF 10959cat confdefs.h >>conftest.$ac_ext 10960cat >>conftest.$ac_ext <<_ACEOF 10961/* end confdefs.h. */ 10962 10963int 10964main () 10965{ 10966 10967 ; 10968 return 0; 10969} 10970_ACEOF 10971rm -f conftest.$ac_objext conftest$ac_exeext 10972if { (ac_try="$ac_link" 10973case "(($ac_try" in 10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10975 *) ac_try_echo=$ac_try;; 10976esac 10977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10978 (eval "$ac_link") 2>conftest.er1 10979 ac_status=$? 10980 grep -v '^ *+' conftest.er1 >conftest.err 10981 rm -f conftest.er1 10982 cat conftest.err >&5 10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10984 (exit $ac_status); } && { 10985 test -z "$ac_cxx_werror_flag" || 10986 test ! -s conftest.err 10987 } && test -s conftest$ac_exeext && 10988 $as_test_x conftest$ac_exeext; then 10989 10990lt_aix_libpath_sed=' 10991 /Import File Strings/,/^$/ { 10992 /^0/ { 10993 s/^0 *\(.*\)$/\1/ 10994 p 10995 } 10996 }' 10997aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10998# Check for a 64-bit object if we didn't find anything. 10999if test -z "$aix_libpath"; then 11000 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11001fi 11002else 11003 echo "$as_me: failed program was:" >&5 11004sed 's/^/| /' conftest.$ac_ext >&5 11005 11006 11007fi 11008 11009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11010 conftest$ac_exeext conftest.$ac_ext 11011if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11012 11013 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11014 11015 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" 11016 else 11017 if test "$host_cpu" = ia64; then 11018 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11019 allow_undefined_flag_CXX="-z nodefs" 11020 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" 11021 else 11022 # Determine the default libpath from the value encoded in an empty executable. 11023 cat >conftest.$ac_ext <<_ACEOF 11024/* confdefs.h. */ 11025_ACEOF 11026cat confdefs.h >>conftest.$ac_ext 11027cat >>conftest.$ac_ext <<_ACEOF 11028/* end confdefs.h. */ 11029 11030int 11031main () 11032{ 11033 11034 ; 11035 return 0; 11036} 11037_ACEOF 11038rm -f conftest.$ac_objext conftest$ac_exeext 11039if { (ac_try="$ac_link" 11040case "(($ac_try" in 11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11042 *) ac_try_echo=$ac_try;; 11043esac 11044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11045 (eval "$ac_link") 2>conftest.er1 11046 ac_status=$? 11047 grep -v '^ *+' conftest.er1 >conftest.err 11048 rm -f conftest.er1 11049 cat conftest.err >&5 11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11051 (exit $ac_status); } && { 11052 test -z "$ac_cxx_werror_flag" || 11053 test ! -s conftest.err 11054 } && test -s conftest$ac_exeext && 11055 $as_test_x conftest$ac_exeext; then 11056 11057lt_aix_libpath_sed=' 11058 /Import File Strings/,/^$/ { 11059 /^0/ { 11060 s/^0 *\(.*\)$/\1/ 11061 p 11062 } 11063 }' 11064aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11065# Check for a 64-bit object if we didn't find anything. 11066if test -z "$aix_libpath"; then 11067 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11068fi 11069else 11070 echo "$as_me: failed program was:" >&5 11071sed 's/^/| /' conftest.$ac_ext >&5 11072 11073 11074fi 11075 11076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11077 conftest$ac_exeext conftest.$ac_ext 11078if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11079 11080 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11081 # Warning - without using the other run time loading flags, 11082 # -berok will link without error, but may produce a broken library. 11083 no_undefined_flag_CXX=' ${wl}-bernotok' 11084 allow_undefined_flag_CXX=' ${wl}-berok' 11085 # Exported symbols can be pulled into shared objects from archives 11086 whole_archive_flag_spec_CXX='$convenience' 11087 archive_cmds_need_lc_CXX=yes 11088 # This is similar to how AIX traditionally builds its shared libraries. 11089 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' 11090 fi 11091 fi 11092 ;; 11093 11094 beos*) 11095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11096 allow_undefined_flag_CXX=unsupported 11097 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11098 # support --undefined. This deserves some investigation. FIXME 11099 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11100 else 11101 ld_shlibs_CXX=no 11102 fi 11103 ;; 11104 11105 chorus*) 11106 case $cc_basename in 11107 *) 11108 # FIXME: insert proper C++ library support 11109 ld_shlibs_CXX=no 11110 ;; 11111 esac 11112 ;; 11113 11114 cygwin* | mingw* | pw32*) 11115 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11116 # as there is no search path for DLLs. 11117 hardcode_libdir_flag_spec_CXX='-L$libdir' 11118 allow_undefined_flag_CXX=unsupported 11119 always_export_symbols_CXX=no 11120 enable_shared_with_static_runtimes_CXX=yes 11121 11122 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11123 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' 11124 # If the export-symbols file already is a .def file (1st line 11125 # is EXPORTS), use it as is; otherwise, prepend... 11126 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11127 cp $export_symbols $output_objdir/$soname.def; 11128 else 11129 echo EXPORTS > $output_objdir/$soname.def; 11130 cat $export_symbols >> $output_objdir/$soname.def; 11131 fi~ 11132 $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' 11133 else 11134 ld_shlibs_CXX=no 11135 fi 11136 ;; 11137 darwin* | rhapsody*) 11138 case $host_os in 11139 rhapsody* | darwin1.[012]) 11140 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11141 ;; 11142 *) # Darwin 1.3 on 11143 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11144 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11145 else 11146 case ${MACOSX_DEPLOYMENT_TARGET} in 11147 10.[012]) 11148 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11149 ;; 11150 10.*) 11151 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11152 ;; 11153 esac 11154 fi 11155 ;; 11156 esac 11157 archive_cmds_need_lc_CXX=no 11158 hardcode_direct_CXX=no 11159 hardcode_automatic_CXX=yes 11160 hardcode_shlibpath_var_CXX=unsupported 11161 whole_archive_flag_spec_CXX='' 11162 link_all_deplibs_CXX=yes 11163 11164 if test "$GXX" = yes ; then 11165 lt_int_apple_cc_single_mod=no 11166 output_verbose_link_cmd='echo' 11167 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11168 lt_int_apple_cc_single_mod=yes 11169 fi 11170 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11171 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11172 else 11173 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' 11174 fi 11175 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11176 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11177 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11178 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11179 else 11180 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11181 fi 11182 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}' 11183 else 11184 case $cc_basename in 11185 xlc*) 11186 output_verbose_link_cmd='echo' 11187 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' 11188 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11189 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11190 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}' 11191 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}' 11192 ;; 11193 *) 11194 ld_shlibs_CXX=no 11195 ;; 11196 esac 11197 fi 11198 ;; 11199 11200 dgux*) 11201 case $cc_basename in 11202 ec++*) 11203 # FIXME: insert proper C++ library support 11204 ld_shlibs_CXX=no 11205 ;; 11206 ghcx*) 11207 # Green Hills C++ Compiler 11208 # FIXME: insert proper C++ library support 11209 ld_shlibs_CXX=no 11210 ;; 11211 *) 11212 # FIXME: insert proper C++ library support 11213 ld_shlibs_CXX=no 11214 ;; 11215 esac 11216 ;; 11217 freebsd[12]*) 11218 # C++ shared libraries reported to be fairly broken before switch to ELF 11219 ld_shlibs_CXX=no 11220 ;; 11221 freebsd-elf*) 11222 archive_cmds_need_lc_CXX=no 11223 ;; 11224 freebsd* | dragonfly*) 11225 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11226 # conventions 11227 ld_shlibs_CXX=yes 11228 ;; 11229 gnu*) 11230 ;; 11231 hpux9*) 11232 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11233 hardcode_libdir_separator_CXX=: 11234 export_dynamic_flag_spec_CXX='${wl}-E' 11235 hardcode_direct_CXX=yes 11236 hardcode_minus_L_CXX=yes # Not in the search PATH, 11237 # but as the default 11238 # location of the library. 11239 11240 case $cc_basename in 11241 CC*) 11242 # FIXME: insert proper C++ library support 11243 ld_shlibs_CXX=no 11244 ;; 11245 aCC*) 11246 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' 11247 # Commands to make compiler produce verbose output that lists 11248 # what "hidden" libraries, object files and flags are used when 11249 # linking a shared library. 11250 # 11251 # There doesn't appear to be a way to prevent this compiler from 11252 # explicitly linking system object files so we need to strip them 11253 # from the output so that they don't get included in the library 11254 # dependencies. 11255 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' 11256 ;; 11257 *) 11258 if test "$GXX" = yes; then 11259 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' 11260 else 11261 # FIXME: insert proper C++ library support 11262 ld_shlibs_CXX=no 11263 fi 11264 ;; 11265 esac 11266 ;; 11267 hpux10*|hpux11*) 11268 if test $with_gnu_ld = no; then 11269 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11270 hardcode_libdir_separator_CXX=: 11271 11272 case $host_cpu in 11273 hppa*64*|ia64*) ;; 11274 *) 11275 export_dynamic_flag_spec_CXX='${wl}-E' 11276 ;; 11277 esac 11278 fi 11279 case $host_cpu in 11280 hppa*64*|ia64*) 11281 hardcode_direct_CXX=no 11282 hardcode_shlibpath_var_CXX=no 11283 ;; 11284 *) 11285 hardcode_direct_CXX=yes 11286 hardcode_minus_L_CXX=yes # Not in the search PATH, 11287 # but as the default 11288 # location of the library. 11289 ;; 11290 esac 11291 11292 case $cc_basename in 11293 CC*) 11294 # FIXME: insert proper C++ library support 11295 ld_shlibs_CXX=no 11296 ;; 11297 aCC*) 11298 case $host_cpu in 11299 hppa*64*) 11300 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11301 ;; 11302 ia64*) 11303 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11304 ;; 11305 *) 11306 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11307 ;; 11308 esac 11309 # Commands to make compiler produce verbose output that lists 11310 # what "hidden" libraries, object files and flags are used when 11311 # linking a shared library. 11312 # 11313 # There doesn't appear to be a way to prevent this compiler from 11314 # explicitly linking system object files so we need to strip them 11315 # from the output so that they don't get included in the library 11316 # dependencies. 11317 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' 11318 ;; 11319 *) 11320 if test "$GXX" = yes; then 11321 if test $with_gnu_ld = no; then 11322 case $host_cpu in 11323 hppa*64*) 11324 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11325 ;; 11326 ia64*) 11327 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11328 ;; 11329 *) 11330 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' 11331 ;; 11332 esac 11333 fi 11334 else 11335 # FIXME: insert proper C++ library support 11336 ld_shlibs_CXX=no 11337 fi 11338 ;; 11339 esac 11340 ;; 11341 interix[3-9]*) 11342 hardcode_direct_CXX=no 11343 hardcode_shlibpath_var_CXX=no 11344 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11345 export_dynamic_flag_spec_CXX='${wl}-E' 11346 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11347 # Instead, shared libraries are loaded at an image base (0x10000000 by 11348 # default) and relocated if they conflict, which is a slow very memory 11349 # consuming and fragmenting process. To avoid this, we pick a random, 11350 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11351 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11352 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' 11353 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' 11354 ;; 11355 irix5* | irix6*) 11356 case $cc_basename in 11357 CC*) 11358 # SGI C++ 11359 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' 11360 11361 # Archives containing C++ object files must be created using 11362 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11363 # necessary to make sure instantiated templates are included 11364 # in the archive. 11365 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11366 ;; 11367 *) 11368 if test "$GXX" = yes; then 11369 if test "$with_gnu_ld" = no; then 11370 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' 11371 else 11372 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' 11373 fi 11374 fi 11375 link_all_deplibs_CXX=yes 11376 ;; 11377 esac 11378 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11379 hardcode_libdir_separator_CXX=: 11380 ;; 11381 linux* | k*bsd*-gnu) 11382 case $cc_basename in 11383 KCC*) 11384 # Kuck and Associates, Inc. (KAI) C++ Compiler 11385 11386 # KCC will only create a shared library if the output file 11387 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11388 # to its proper name (with version) after linking. 11389 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' 11390 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' 11391 # Commands to make compiler produce verbose output that lists 11392 # what "hidden" libraries, object files and flags are used when 11393 # linking a shared library. 11394 # 11395 # There doesn't appear to be a way to prevent this compiler from 11396 # explicitly linking system object files so we need to strip them 11397 # from the output so that they don't get included in the library 11398 # dependencies. 11399 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' 11400 11401 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11402 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11403 11404 # Archives containing C++ object files must be created using 11405 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11406 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11407 ;; 11408 icpc*) 11409 # Intel C++ 11410 with_gnu_ld=yes 11411 # version 8.0 and above of icpc choke on multiply defined symbols 11412 # if we add $predep_objects and $postdep_objects, however 7.1 and 11413 # earlier do not add the objects themselves. 11414 case `$CC -V 2>&1` in 11415 *"Version 7."*) 11416 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11417 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' 11418 ;; 11419 *) # Version 8.0 or newer 11420 tmp_idyn= 11421 case $host_cpu in 11422 ia64*) tmp_idyn=' -i_dynamic';; 11423 esac 11424 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11425 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' 11426 ;; 11427 esac 11428 archive_cmds_need_lc_CXX=no 11429 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11430 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11431 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11432 ;; 11433 pgCC*) 11434 # Portland Group C++ compiler 11435 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11436 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' 11437 11438 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11439 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11440 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' 11441 ;; 11442 cxx*) 11443 # Compaq C++ 11444 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11445 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' 11446 11447 runpath_var=LD_RUN_PATH 11448 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11449 hardcode_libdir_separator_CXX=: 11450 11451 # Commands to make compiler produce verbose output that lists 11452 # what "hidden" libraries, object files and flags are used when 11453 # linking a shared library. 11454 # 11455 # There doesn't appear to be a way to prevent this compiler from 11456 # explicitly linking system object files so we need to strip them 11457 # from the output so that they don't get included in the library 11458 # dependencies. 11459 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' 11460 ;; 11461 *) 11462 case `$CC -V 2>&1 | sed 5q` in 11463 *Sun\ C*) 11464 # Sun C++ 5.9 11465 no_undefined_flag_CXX=' -zdefs' 11466 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11467 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' 11468 hardcode_libdir_flag_spec_CXX='-R$libdir' 11469 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' 11470 11471 # Not sure whether something based on 11472 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 11473 # would be better. 11474 output_verbose_link_cmd='echo' 11475 11476 # Archives containing C++ object files must be created using 11477 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11478 # necessary to make sure instantiated templates are included 11479 # in the archive. 11480 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11481 ;; 11482 esac 11483 ;; 11484 esac 11485 ;; 11486 lynxos*) 11487 # FIXME: insert proper C++ library support 11488 ld_shlibs_CXX=no 11489 ;; 11490 m88k*) 11491 # FIXME: insert proper C++ library support 11492 ld_shlibs_CXX=no 11493 ;; 11494 mvs*) 11495 case $cc_basename in 11496 cxx*) 11497 # FIXME: insert proper C++ library support 11498 ld_shlibs_CXX=no 11499 ;; 11500 *) 11501 # FIXME: insert proper C++ library support 11502 ld_shlibs_CXX=no 11503 ;; 11504 esac 11505 ;; 11506 netbsd*) 11507 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11508 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11509 wlarc= 11510 hardcode_libdir_flag_spec_CXX='-R$libdir' 11511 hardcode_direct_CXX=yes 11512 hardcode_shlibpath_var_CXX=no 11513 fi 11514 # Workaround some broken pre-1.5 toolchains 11515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11516 ;; 11517 openbsd2*) 11518 # C++ shared libraries are fairly broken 11519 ld_shlibs_CXX=no 11520 ;; 11521 openbsd*) 11522 if test -f /usr/libexec/ld.so; then 11523 hardcode_direct_CXX=yes 11524 hardcode_shlibpath_var_CXX=no 11525 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11526 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11527 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11528 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11529 export_dynamic_flag_spec_CXX='${wl}-E' 11530 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11531 fi 11532 output_verbose_link_cmd='echo' 11533 else 11534 ld_shlibs_CXX=no 11535 fi 11536 ;; 11537 osf3*) 11538 case $cc_basename in 11539 KCC*) 11540 # Kuck and Associates, Inc. (KAI) C++ Compiler 11541 11542 # KCC will only create a shared library if the output file 11543 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11544 # to its proper name (with version) after linking. 11545 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' 11546 11547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11548 hardcode_libdir_separator_CXX=: 11549 11550 # Archives containing C++ object files must be created using 11551 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11552 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11553 11554 ;; 11555 RCC*) 11556 # Rational C++ 2.4.1 11557 # FIXME: insert proper C++ library support 11558 ld_shlibs_CXX=no 11559 ;; 11560 cxx*) 11561 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11562 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' 11563 11564 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11565 hardcode_libdir_separator_CXX=: 11566 11567 # Commands to make compiler produce verbose output that lists 11568 # what "hidden" libraries, object files and flags are used when 11569 # linking a shared library. 11570 # 11571 # There doesn't appear to be a way to prevent this compiler from 11572 # explicitly linking system object files so we need to strip them 11573 # from the output so that they don't get included in the library 11574 # dependencies. 11575 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' 11576 ;; 11577 *) 11578 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11579 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11580 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' 11581 11582 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11583 hardcode_libdir_separator_CXX=: 11584 11585 # Commands to make compiler produce verbose output that lists 11586 # what "hidden" libraries, object files and flags are used when 11587 # linking a shared library. 11588 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11589 11590 else 11591 # FIXME: insert proper C++ library support 11592 ld_shlibs_CXX=no 11593 fi 11594 ;; 11595 esac 11596 ;; 11597 osf4* | osf5*) 11598 case $cc_basename in 11599 KCC*) 11600 # Kuck and Associates, Inc. (KAI) C++ Compiler 11601 11602 # KCC will only create a shared library if the output file 11603 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11604 # to its proper name (with version) after linking. 11605 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' 11606 11607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11608 hardcode_libdir_separator_CXX=: 11609 11610 # Archives containing C++ object files must be created using 11611 # the KAI C++ compiler. 11612 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 11613 ;; 11614 RCC*) 11615 # Rational C++ 2.4.1 11616 # FIXME: insert proper C++ library support 11617 ld_shlibs_CXX=no 11618 ;; 11619 cxx*) 11620 allow_undefined_flag_CXX=' -expect_unresolved \*' 11621 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' 11622 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 11623 echo "-hidden">> $lib.exp~ 11624 $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~ 11625 $rm $lib.exp' 11626 11627 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11628 hardcode_libdir_separator_CXX=: 11629 11630 # Commands to make compiler produce verbose output that lists 11631 # what "hidden" libraries, object files and flags are used when 11632 # linking a shared library. 11633 # 11634 # There doesn't appear to be a way to prevent this compiler from 11635 # explicitly linking system object files so we need to strip them 11636 # from the output so that they don't get included in the library 11637 # dependencies. 11638 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' 11639 ;; 11640 *) 11641 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11642 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11643 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' 11644 11645 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11646 hardcode_libdir_separator_CXX=: 11647 11648 # Commands to make compiler produce verbose output that lists 11649 # what "hidden" libraries, object files and flags are used when 11650 # linking a shared library. 11651 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11652 11653 else 11654 # FIXME: insert proper C++ library support 11655 ld_shlibs_CXX=no 11656 fi 11657 ;; 11658 esac 11659 ;; 11660 psos*) 11661 # FIXME: insert proper C++ library support 11662 ld_shlibs_CXX=no 11663 ;; 11664 sunos4*) 11665 case $cc_basename in 11666 CC*) 11667 # Sun C++ 4.x 11668 # FIXME: insert proper C++ library support 11669 ld_shlibs_CXX=no 11670 ;; 11671 lcc*) 11672 # Lucid 11673 # FIXME: insert proper C++ library support 11674 ld_shlibs_CXX=no 11675 ;; 11676 *) 11677 # FIXME: insert proper C++ library support 11678 ld_shlibs_CXX=no 11679 ;; 11680 esac 11681 ;; 11682 solaris*) 11683 case $cc_basename in 11684 CC*) 11685 # Sun C++ 4.2, 5.x and Centerline C++ 11686 archive_cmds_need_lc_CXX=yes 11687 no_undefined_flag_CXX=' -zdefs' 11688 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11689 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11690 $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' 11691 11692 hardcode_libdir_flag_spec_CXX='-R$libdir' 11693 hardcode_shlibpath_var_CXX=no 11694 case $host_os in 11695 solaris2.[0-5] | solaris2.[0-5].*) ;; 11696 *) 11697 # The compiler driver will combine and reorder linker options, 11698 # but understands `-z linker_flag'. 11699 # Supported since Solaris 2.6 (maybe 2.5.1?) 11700 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 11701 ;; 11702 esac 11703 link_all_deplibs_CXX=yes 11704 11705 output_verbose_link_cmd='echo' 11706 11707 # Archives containing C++ object files must be created using 11708 # "CC -xar", where "CC" is the Sun C++ compiler. This is 11709 # necessary to make sure instantiated templates are included 11710 # in the archive. 11711 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 11712 ;; 11713 gcx*) 11714 # Green Hills C++ Compiler 11715 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11716 11717 # The C++ compiler must be used to create the archive. 11718 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 11719 ;; 11720 *) 11721 # GNU C++ compiler with Solaris linker 11722 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11723 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 11724 if $CC --version | grep -v '^2\.7' > /dev/null; then 11725 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11726 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11727 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11728 11729 # Commands to make compiler produce verbose output that lists 11730 # what "hidden" libraries, object files and flags are used when 11731 # linking a shared library. 11732 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11733 else 11734 # g++ 2.7 appears to require `-G' NOT `-shared' on this 11735 # platform. 11736 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 11737 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 11738 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 11739 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 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 11744 fi 11745 11746 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 11747 case $host_os in 11748 solaris2.[0-5] | solaris2.[0-5].*) ;; 11749 *) 11750 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11751 ;; 11752 esac 11753 fi 11754 ;; 11755 esac 11756 ;; 11757 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11758 no_undefined_flag_CXX='${wl}-z,text' 11759 archive_cmds_need_lc_CXX=no 11760 hardcode_shlibpath_var_CXX=no 11761 runpath_var='LD_RUN_PATH' 11762 11763 case $cc_basename in 11764 CC*) 11765 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11766 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11767 ;; 11768 *) 11769 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11770 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11771 ;; 11772 esac 11773 ;; 11774 sysv5* | sco3.2v5* | sco5v6*) 11775 # Note: We can NOT use -z defs as we might desire, because we do not 11776 # link with -lc, and that would cause any symbols used from libc to 11777 # always be unresolved, which means just about no library would 11778 # ever link correctly. If we're not using GNU ld we use -z text 11779 # though, which does catch some bad symbols but isn't as heavy-handed 11780 # as -z defs. 11781 # For security reasons, it is highly recommended that you always 11782 # use absolute paths for naming shared libraries, and exclude the 11783 # DT_RUNPATH tag from executables and libraries. But doing so 11784 # requires that you compile everything twice, which is a pain. 11785 # So that behaviour is only enabled if SCOABSPATH is set to a 11786 # non-empty value in the environment. Most likely only useful for 11787 # creating official distributions of packages. 11788 # This is a hack until libtool officially supports absolute path 11789 # names for shared libraries. 11790 no_undefined_flag_CXX='${wl}-z,text' 11791 allow_undefined_flag_CXX='${wl}-z,nodefs' 11792 archive_cmds_need_lc_CXX=no 11793 hardcode_shlibpath_var_CXX=no 11794 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 11795 hardcode_libdir_separator_CXX=':' 11796 link_all_deplibs_CXX=yes 11797 export_dynamic_flag_spec_CXX='${wl}-Bexport' 11798 runpath_var='LD_RUN_PATH' 11799 11800 case $cc_basename in 11801 CC*) 11802 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11803 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11804 ;; 11805 *) 11806 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11807 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 11808 ;; 11809 esac 11810 ;; 11811 tandem*) 11812 case $cc_basename in 11813 NCC*) 11814 # NonStop-UX NCC 3.20 11815 # FIXME: insert proper C++ library support 11816 ld_shlibs_CXX=no 11817 ;; 11818 *) 11819 # FIXME: insert proper C++ library support 11820 ld_shlibs_CXX=no 11821 ;; 11822 esac 11823 ;; 11824 vxworks*) 11825 # FIXME: insert proper C++ library support 11826 ld_shlibs_CXX=no 11827 ;; 11828 *) 11829 # FIXME: insert proper C++ library support 11830 ld_shlibs_CXX=no 11831 ;; 11832esac 11833{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11834echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 11835test "$ld_shlibs_CXX" = no && can_build_shared=no 11836 11837GCC_CXX="$GXX" 11838LD_CXX="$LD" 11839 11840 11841cat > conftest.$ac_ext <<EOF 11842class Foo 11843{ 11844public: 11845 Foo (void) { a = 0; } 11846private: 11847 int a; 11848}; 11849EOF 11850 11851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11852 (eval $ac_compile) 2>&5 11853 ac_status=$? 11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11855 (exit $ac_status); }; then 11856 # Parse the compiler output and extract the necessary 11857 # objects, libraries and library flags. 11858 11859 # Sentinel used to keep track of whether or not we are before 11860 # the conftest object file. 11861 pre_test_object_deps_done=no 11862 11863 # The `*' in the case matches for architectures that use `case' in 11864 # $output_verbose_cmd can trigger glob expansion during the loop 11865 # eval without this substitution. 11866 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11867 11868 for p in `eval $output_verbose_link_cmd`; do 11869 case $p in 11870 11871 -L* | -R* | -l*) 11872 # Some compilers place space between "-{L,R}" and the path. 11873 # Remove the space. 11874 if test $p = "-L" \ 11875 || test $p = "-R"; then 11876 prev=$p 11877 continue 11878 else 11879 prev= 11880 fi 11881 11882 if test "$pre_test_object_deps_done" = no; then 11883 case $p in 11884 -L* | -R*) 11885 # Internal compiler library paths should come after those 11886 # provided the user. The postdeps already come after the 11887 # user supplied libs so there is no need to process them. 11888 if test -z "$compiler_lib_search_path_CXX"; then 11889 compiler_lib_search_path_CXX="${prev}${p}" 11890 else 11891 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11892 fi 11893 ;; 11894 # The "-l" case would never come before the object being 11895 # linked, so don't bother handling this case. 11896 esac 11897 else 11898 if test -z "$postdeps_CXX"; then 11899 postdeps_CXX="${prev}${p}" 11900 else 11901 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11902 fi 11903 fi 11904 ;; 11905 11906 *.$objext) 11907 # This assumes that the test object file only shows up 11908 # once in the compiler output. 11909 if test "$p" = "conftest.$objext"; then 11910 pre_test_object_deps_done=yes 11911 continue 11912 fi 11913 11914 if test "$pre_test_object_deps_done" = no; then 11915 if test -z "$predep_objects_CXX"; then 11916 predep_objects_CXX="$p" 11917 else 11918 predep_objects_CXX="$predep_objects_CXX $p" 11919 fi 11920 else 11921 if test -z "$postdep_objects_CXX"; then 11922 postdep_objects_CXX="$p" 11923 else 11924 postdep_objects_CXX="$postdep_objects_CXX $p" 11925 fi 11926 fi 11927 ;; 11928 11929 *) ;; # Ignore the rest. 11930 11931 esac 11932 done 11933 11934 # Clean up. 11935 rm -f a.out a.exe 11936else 11937 echo "libtool.m4: error: problem compiling CXX test program" 11938fi 11939 11940$rm -f confest.$objext 11941 11942# PORTME: override above test on systems where it is broken 11943case $host_os in 11944interix[3-9]*) 11945 # Interix 3.5 installs completely hosed .la files for C++, so rather than 11946 # hack all around it, let's just trust "g++" to DTRT. 11947 predep_objects_CXX= 11948 postdep_objects_CXX= 11949 postdeps_CXX= 11950 ;; 11951 11952linux*) 11953 case `$CC -V 2>&1 | sed 5q` in 11954 *Sun\ C*) 11955 # Sun C++ 5.9 11956 # 11957 # The more standards-conforming stlport4 library is 11958 # incompatible with the Cstd library. Avoid specifying 11959 # it if it's in CXXFLAGS. Ignore libCrun as 11960 # -library=stlport4 depends on it. 11961 case " $CXX $CXXFLAGS " in 11962 *" -library=stlport4 "*) 11963 solaris_use_stlport4=yes 11964 ;; 11965 esac 11966 if test "$solaris_use_stlport4" != yes; then 11967 postdeps_CXX='-library=Cstd -library=Crun' 11968 fi 11969 ;; 11970 esac 11971 ;; 11972 11973solaris*) 11974 case $cc_basename in 11975 CC*) 11976 # The more standards-conforming stlport4 library is 11977 # incompatible with the Cstd library. Avoid specifying 11978 # it if it's in CXXFLAGS. Ignore libCrun as 11979 # -library=stlport4 depends on it. 11980 case " $CXX $CXXFLAGS " in 11981 *" -library=stlport4 "*) 11982 solaris_use_stlport4=yes 11983 ;; 11984 esac 11985 11986 # Adding this requires a known-good setup of shared libraries for 11987 # Sun compiler versions before 5.6, else PIC objects from an old 11988 # archive will be linked into the output, leading to subtle bugs. 11989 if test "$solaris_use_stlport4" != yes; then 11990 postdeps_CXX='-library=Cstd -library=Crun' 11991 fi 11992 ;; 11993 esac 11994 ;; 11995esac 11996 11997 11998case " $postdeps_CXX " in 11999*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12000esac 12001 12002lt_prog_compiler_wl_CXX= 12003lt_prog_compiler_pic_CXX= 12004lt_prog_compiler_static_CXX= 12005 12006{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12007echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12008 12009 # C++ specific cases for pic, static, wl, etc. 12010 if test "$GXX" = yes; then 12011 lt_prog_compiler_wl_CXX='-Wl,' 12012 lt_prog_compiler_static_CXX='-static' 12013 12014 case $host_os in 12015 aix*) 12016 # All AIX code is PIC. 12017 if test "$host_cpu" = ia64; then 12018 # AIX 5 now supports IA64 processor 12019 lt_prog_compiler_static_CXX='-Bstatic' 12020 fi 12021 ;; 12022 amigaos*) 12023 # FIXME: we need at least 68020 code to build shared libraries, but 12024 # adding the `-m68020' flag to GCC prevents building anything better, 12025 # like `-m68040'. 12026 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12027 ;; 12028 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12029 # PIC is the default for these OSes. 12030 ;; 12031 mingw* | cygwin* | os2* | pw32*) 12032 # This hack is so that the source file can tell whether it is being 12033 # built for inclusion in a dll (and should export symbols for example). 12034 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12035 # (--disable-auto-import) libraries 12036 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12037 ;; 12038 darwin* | rhapsody*) 12039 # PIC is the default on this platform 12040 # Common symbols not allowed in MH_DYLIB files 12041 lt_prog_compiler_pic_CXX='-fno-common' 12042 ;; 12043 *djgpp*) 12044 # DJGPP does not support shared libraries at all 12045 lt_prog_compiler_pic_CXX= 12046 ;; 12047 interix[3-9]*) 12048 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12049 # Instead, we relocate shared libraries at runtime. 12050 ;; 12051 sysv4*MP*) 12052 if test -d /usr/nec; then 12053 lt_prog_compiler_pic_CXX=-Kconform_pic 12054 fi 12055 ;; 12056 hpux*) 12057 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12058 # not for PA HP-UX. 12059 case $host_cpu in 12060 hppa*64*|ia64*) 12061 ;; 12062 *) 12063 lt_prog_compiler_pic_CXX='-fPIC' 12064 ;; 12065 esac 12066 ;; 12067 *) 12068 lt_prog_compiler_pic_CXX='-fPIC' 12069 ;; 12070 esac 12071 else 12072 case $host_os in 12073 aix4* | aix5*) 12074 # All AIX code is PIC. 12075 if test "$host_cpu" = ia64; then 12076 # AIX 5 now supports IA64 processor 12077 lt_prog_compiler_static_CXX='-Bstatic' 12078 else 12079 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12080 fi 12081 ;; 12082 chorus*) 12083 case $cc_basename in 12084 cxch68*) 12085 # Green Hills C++ Compiler 12086 # _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" 12087 ;; 12088 esac 12089 ;; 12090 darwin*) 12091 # PIC is the default on this platform 12092 # Common symbols not allowed in MH_DYLIB files 12093 case $cc_basename in 12094 xlc*) 12095 lt_prog_compiler_pic_CXX='-qnocommon' 12096 lt_prog_compiler_wl_CXX='-Wl,' 12097 ;; 12098 esac 12099 ;; 12100 dgux*) 12101 case $cc_basename in 12102 ec++*) 12103 lt_prog_compiler_pic_CXX='-KPIC' 12104 ;; 12105 ghcx*) 12106 # Green Hills C++ Compiler 12107 lt_prog_compiler_pic_CXX='-pic' 12108 ;; 12109 *) 12110 ;; 12111 esac 12112 ;; 12113 freebsd* | dragonfly*) 12114 # FreeBSD uses GNU C++ 12115 ;; 12116 hpux9* | hpux10* | hpux11*) 12117 case $cc_basename in 12118 CC*) 12119 lt_prog_compiler_wl_CXX='-Wl,' 12120 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12121 if test "$host_cpu" != ia64; then 12122 lt_prog_compiler_pic_CXX='+Z' 12123 fi 12124 ;; 12125 aCC*) 12126 lt_prog_compiler_wl_CXX='-Wl,' 12127 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12128 case $host_cpu in 12129 hppa*64*|ia64*) 12130 # +Z the default 12131 ;; 12132 *) 12133 lt_prog_compiler_pic_CXX='+Z' 12134 ;; 12135 esac 12136 ;; 12137 *) 12138 ;; 12139 esac 12140 ;; 12141 interix*) 12142 # This is c89, which is MS Visual C++ (no shared libs) 12143 # Anyone wants to do a port? 12144 ;; 12145 irix5* | irix6* | nonstopux*) 12146 case $cc_basename in 12147 CC*) 12148 lt_prog_compiler_wl_CXX='-Wl,' 12149 lt_prog_compiler_static_CXX='-non_shared' 12150 # CC pic flag -KPIC is the default. 12151 ;; 12152 *) 12153 ;; 12154 esac 12155 ;; 12156 linux* | k*bsd*-gnu) 12157 case $cc_basename in 12158 KCC*) 12159 # KAI C++ Compiler 12160 lt_prog_compiler_wl_CXX='--backend -Wl,' 12161 lt_prog_compiler_pic_CXX='-fPIC' 12162 ;; 12163 icpc* | ecpc*) 12164 # Intel C++ 12165 lt_prog_compiler_wl_CXX='-Wl,' 12166 lt_prog_compiler_pic_CXX='-KPIC' 12167 lt_prog_compiler_static_CXX='-static' 12168 ;; 12169 pgCC*) 12170 # Portland Group C++ compiler. 12171 lt_prog_compiler_wl_CXX='-Wl,' 12172 lt_prog_compiler_pic_CXX='-fpic' 12173 lt_prog_compiler_static_CXX='-Bstatic' 12174 ;; 12175 cxx*) 12176 # Compaq C++ 12177 # Make sure the PIC flag is empty. It appears that all Alpha 12178 # Linux and Compaq Tru64 Unix objects are PIC. 12179 lt_prog_compiler_pic_CXX= 12180 lt_prog_compiler_static_CXX='-non_shared' 12181 ;; 12182 *) 12183 case `$CC -V 2>&1 | sed 5q` in 12184 *Sun\ C*) 12185 # Sun C++ 5.9 12186 lt_prog_compiler_pic_CXX='-KPIC' 12187 lt_prog_compiler_static_CXX='-Bstatic' 12188 lt_prog_compiler_wl_CXX='-Qoption ld ' 12189 ;; 12190 esac 12191 ;; 12192 esac 12193 ;; 12194 lynxos*) 12195 ;; 12196 m88k*) 12197 ;; 12198 mvs*) 12199 case $cc_basename in 12200 cxx*) 12201 lt_prog_compiler_pic_CXX='-W c,exportall' 12202 ;; 12203 *) 12204 ;; 12205 esac 12206 ;; 12207 netbsd*) 12208 ;; 12209 osf3* | osf4* | osf5*) 12210 case $cc_basename in 12211 KCC*) 12212 lt_prog_compiler_wl_CXX='--backend -Wl,' 12213 ;; 12214 RCC*) 12215 # Rational C++ 2.4.1 12216 lt_prog_compiler_pic_CXX='-pic' 12217 ;; 12218 cxx*) 12219 # Digital/Compaq C++ 12220 lt_prog_compiler_wl_CXX='-Wl,' 12221 # Make sure the PIC flag is empty. It appears that all Alpha 12222 # Linux and Compaq Tru64 Unix objects are PIC. 12223 lt_prog_compiler_pic_CXX= 12224 lt_prog_compiler_static_CXX='-non_shared' 12225 ;; 12226 *) 12227 ;; 12228 esac 12229 ;; 12230 psos*) 12231 ;; 12232 solaris*) 12233 case $cc_basename in 12234 CC*) 12235 # Sun C++ 4.2, 5.x and Centerline C++ 12236 lt_prog_compiler_pic_CXX='-KPIC' 12237 lt_prog_compiler_static_CXX='-Bstatic' 12238 lt_prog_compiler_wl_CXX='-Qoption ld ' 12239 ;; 12240 gcx*) 12241 # Green Hills C++ Compiler 12242 lt_prog_compiler_pic_CXX='-PIC' 12243 ;; 12244 *) 12245 ;; 12246 esac 12247 ;; 12248 sunos4*) 12249 case $cc_basename in 12250 CC*) 12251 # Sun C++ 4.x 12252 lt_prog_compiler_pic_CXX='-pic' 12253 lt_prog_compiler_static_CXX='-Bstatic' 12254 ;; 12255 lcc*) 12256 # Lucid 12257 lt_prog_compiler_pic_CXX='-pic' 12258 ;; 12259 *) 12260 ;; 12261 esac 12262 ;; 12263 tandem*) 12264 case $cc_basename in 12265 NCC*) 12266 # NonStop-UX NCC 3.20 12267 lt_prog_compiler_pic_CXX='-KPIC' 12268 ;; 12269 *) 12270 ;; 12271 esac 12272 ;; 12273 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12274 case $cc_basename in 12275 CC*) 12276 lt_prog_compiler_wl_CXX='-Wl,' 12277 lt_prog_compiler_pic_CXX='-KPIC' 12278 lt_prog_compiler_static_CXX='-Bstatic' 12279 ;; 12280 esac 12281 ;; 12282 vxworks*) 12283 ;; 12284 *) 12285 lt_prog_compiler_can_build_shared_CXX=no 12286 ;; 12287 esac 12288 fi 12289 12290{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12291echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12292 12293# 12294# Check to make sure the PIC flag actually works. 12295# 12296if test -n "$lt_prog_compiler_pic_CXX"; then 12297 12298{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12299echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12300if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12301 echo $ECHO_N "(cached) $ECHO_C" >&6 12302else 12303 lt_prog_compiler_pic_works_CXX=no 12304 ac_outfile=conftest.$ac_objext 12305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12306 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12307 # Insert the option either (1) after the last *FLAGS variable, or 12308 # (2) before a word containing "conftest.", or (3) at the end. 12309 # Note that $ac_compile itself does not contain backslashes and begins 12310 # with a dollar sign (not a hyphen), so the echo should work correctly. 12311 # The option is referenced via a variable to avoid confusing sed. 12312 lt_compile=`echo "$ac_compile" | $SED \ 12313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12315 -e 's:$: $lt_compiler_flag:'` 12316 (eval echo "\"\$as_me:12316: $lt_compile\"" >&5) 12317 (eval "$lt_compile" 2>conftest.err) 12318 ac_status=$? 12319 cat conftest.err >&5 12320 echo "$as_me:12320: \$? = $ac_status" >&5 12321 if (exit $ac_status) && test -s "$ac_outfile"; then 12322 # The compiler can only warn and ignore the option if not recognized 12323 # So say no if there are warnings other than the usual output. 12324 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12327 lt_prog_compiler_pic_works_CXX=yes 12328 fi 12329 fi 12330 $rm conftest* 12331 12332fi 12333{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12334echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12335 12336if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12337 case $lt_prog_compiler_pic_CXX in 12338 "" | " "*) ;; 12339 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12340 esac 12341else 12342 lt_prog_compiler_pic_CXX= 12343 lt_prog_compiler_can_build_shared_CXX=no 12344fi 12345 12346fi 12347case $host_os in 12348 # For platforms which do not support PIC, -DPIC is meaningless: 12349 *djgpp*) 12350 lt_prog_compiler_pic_CXX= 12351 ;; 12352 *) 12353 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12354 ;; 12355esac 12356 12357# 12358# Check to make sure the static flag actually works. 12359# 12360wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12361{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12362echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12363if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12364 echo $ECHO_N "(cached) $ECHO_C" >&6 12365else 12366 lt_prog_compiler_static_works_CXX=no 12367 save_LDFLAGS="$LDFLAGS" 12368 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12369 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12370 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12371 # The linker can only warn and ignore the option if not recognized 12372 # So say no if there are warnings 12373 if test -s conftest.err; then 12374 # Append any errors to the config.log. 12375 cat conftest.err 1>&5 12376 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12378 if diff conftest.exp conftest.er2 >/dev/null; then 12379 lt_prog_compiler_static_works_CXX=yes 12380 fi 12381 else 12382 lt_prog_compiler_static_works_CXX=yes 12383 fi 12384 fi 12385 $rm conftest* 12386 LDFLAGS="$save_LDFLAGS" 12387 12388fi 12389{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12390echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12391 12392if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12393 : 12394else 12395 lt_prog_compiler_static_CXX= 12396fi 12397 12398 12399{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12400echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12401if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12402 echo $ECHO_N "(cached) $ECHO_C" >&6 12403else 12404 lt_cv_prog_compiler_c_o_CXX=no 12405 $rm -r conftest 2>/dev/null 12406 mkdir conftest 12407 cd conftest 12408 mkdir out 12409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12410 12411 lt_compiler_flag="-o out/conftest2.$ac_objext" 12412 # Insert the option either (1) after the last *FLAGS variable, or 12413 # (2) before a word containing "conftest.", or (3) at the end. 12414 # Note that $ac_compile itself does not contain backslashes and begins 12415 # with a dollar sign (not a hyphen), so the echo should work correctly. 12416 lt_compile=`echo "$ac_compile" | $SED \ 12417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12419 -e 's:$: $lt_compiler_flag:'` 12420 (eval echo "\"\$as_me:12420: $lt_compile\"" >&5) 12421 (eval "$lt_compile" 2>out/conftest.err) 12422 ac_status=$? 12423 cat out/conftest.err >&5 12424 echo "$as_me:12424: \$? = $ac_status" >&5 12425 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12426 then 12427 # The compiler can only warn and ignore the option if not recognized 12428 # So say no if there are warnings 12429 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12430 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12431 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12432 lt_cv_prog_compiler_c_o_CXX=yes 12433 fi 12434 fi 12435 chmod u+w . 2>&5 12436 $rm conftest* 12437 # SGI C++ compiler will create directory out/ii_files/ for 12438 # template instantiation 12439 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12440 $rm out/* && rmdir out 12441 cd .. 12442 rmdir conftest 12443 $rm conftest* 12444 12445fi 12446{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12447echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12448 12449 12450hard_links="nottested" 12451if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12452 # do not overwrite the value of need_locks provided by the user 12453 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12454echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12455 hard_links=yes 12456 $rm conftest* 12457 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12458 touch conftest.a 12459 ln conftest.a conftest.b 2>&5 || hard_links=no 12460 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12461 { echo "$as_me:$LINENO: result: $hard_links" >&5 12462echo "${ECHO_T}$hard_links" >&6; } 12463 if test "$hard_links" = no; then 12464 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12465echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12466 need_locks=warn 12467 fi 12468else 12469 need_locks=no 12470fi 12471 12472{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12473echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12474 12475 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12476 case $host_os in 12477 aix4* | aix5*) 12478 # If we're using GNU nm, then we don't want the "-C" option. 12479 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12480 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12481 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' 12482 else 12483 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' 12484 fi 12485 ;; 12486 pw32*) 12487 export_symbols_cmds_CXX="$ltdll_cmds" 12488 ;; 12489 cygwin* | mingw*) 12490 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' 12491 ;; 12492 *) 12493 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12494 ;; 12495 esac 12496 12497{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12498echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12499test "$ld_shlibs_CXX" = no && can_build_shared=no 12500 12501# 12502# Do we need to explicitly link libc? 12503# 12504case "x$archive_cmds_need_lc_CXX" in 12505x|xyes) 12506 # Assume -lc should be added 12507 archive_cmds_need_lc_CXX=yes 12508 12509 if test "$enable_shared" = yes && test "$GCC" = yes; then 12510 case $archive_cmds_CXX in 12511 *'~'*) 12512 # FIXME: we may have to deal with multi-command sequences. 12513 ;; 12514 '$CC '*) 12515 # Test whether the compiler implicitly links with -lc since on some 12516 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12517 # to ld, don't add -lc before -lgcc. 12518 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12519echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12520 $rm conftest* 12521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12522 12523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12524 (eval $ac_compile) 2>&5 12525 ac_status=$? 12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12527 (exit $ac_status); } 2>conftest.err; then 12528 soname=conftest 12529 lib=conftest 12530 libobjs=conftest.$ac_objext 12531 deplibs= 12532 wl=$lt_prog_compiler_wl_CXX 12533 pic_flag=$lt_prog_compiler_pic_CXX 12534 compiler_flags=-v 12535 linker_flags=-v 12536 verstring= 12537 output_objdir=. 12538 libname=conftest 12539 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12540 allow_undefined_flag_CXX= 12541 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12542 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12543 ac_status=$? 12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12545 (exit $ac_status); } 12546 then 12547 archive_cmds_need_lc_CXX=no 12548 else 12549 archive_cmds_need_lc_CXX=yes 12550 fi 12551 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12552 else 12553 cat conftest.err 1>&5 12554 fi 12555 $rm conftest* 12556 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12557echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12558 ;; 12559 esac 12560 fi 12561 ;; 12562esac 12563 12564{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12565echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12566library_names_spec= 12567libname_spec='lib$name' 12568soname_spec= 12569shrext_cmds=".so" 12570postinstall_cmds= 12571postuninstall_cmds= 12572finish_cmds= 12573finish_eval= 12574shlibpath_var= 12575shlibpath_overrides_runpath=unknown 12576version_type=none 12577dynamic_linker="$host_os ld.so" 12578sys_lib_dlsearch_path_spec="/lib /usr/lib" 12579 12580need_lib_prefix=unknown 12581hardcode_into_libs=no 12582 12583# when you set need_version to no, make sure it does not cause -set_version 12584# flags to be left without arguments 12585need_version=unknown 12586 12587case $host_os in 12588aix3*) 12589 version_type=linux 12590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12591 shlibpath_var=LIBPATH 12592 12593 # AIX 3 has no versioning support, so we append a major version to the name. 12594 soname_spec='${libname}${release}${shared_ext}$major' 12595 ;; 12596 12597aix4* | aix5*) 12598 version_type=linux 12599 need_lib_prefix=no 12600 need_version=no 12601 hardcode_into_libs=yes 12602 if test "$host_cpu" = ia64; then 12603 # AIX 5 supports IA64 12604 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12605 shlibpath_var=LD_LIBRARY_PATH 12606 else 12607 # With GCC up to 2.95.x, collect2 would create an import file 12608 # for dependence libraries. The import file would start with 12609 # the line `#! .'. This would cause the generated library to 12610 # depend on `.', always an invalid library. This was fixed in 12611 # development snapshots of GCC prior to 3.0. 12612 case $host_os in 12613 aix4 | aix4.[01] | aix4.[01].*) 12614 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12615 echo ' yes ' 12616 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12617 : 12618 else 12619 can_build_shared=no 12620 fi 12621 ;; 12622 esac 12623 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12624 # soname into executable. Probably we can add versioning support to 12625 # collect2, so additional links can be useful in future. 12626 if test "$aix_use_runtimelinking" = yes; then 12627 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12628 # instead of lib<name>.a to let people know that these are not 12629 # typical AIX shared libraries. 12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12631 else 12632 # We preserve .a as extension for shared libraries through AIX4.2 12633 # and later when we are not doing run time linking. 12634 library_names_spec='${libname}${release}.a $libname.a' 12635 soname_spec='${libname}${release}${shared_ext}$major' 12636 fi 12637 shlibpath_var=LIBPATH 12638 fi 12639 ;; 12640 12641amigaos*) 12642 library_names_spec='$libname.ixlibrary $libname.a' 12643 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12644 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' 12645 ;; 12646 12647beos*) 12648 library_names_spec='${libname}${shared_ext}' 12649 dynamic_linker="$host_os ld.so" 12650 shlibpath_var=LIBRARY_PATH 12651 ;; 12652 12653bsdi[45]*) 12654 version_type=linux 12655 need_version=no 12656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12657 soname_spec='${libname}${release}${shared_ext}$major' 12658 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12659 shlibpath_var=LD_LIBRARY_PATH 12660 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12661 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12662 # the default ld.so.conf also contains /usr/contrib/lib and 12663 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12664 # libtool to hard-code these into programs 12665 ;; 12666 12667cygwin* | mingw* | pw32*) 12668 version_type=windows 12669 shrext_cmds=".dll" 12670 need_version=no 12671 need_lib_prefix=no 12672 12673 case $GCC,$host_os in 12674 yes,cygwin* | yes,mingw* | yes,pw32*) 12675 library_names_spec='$libname.dll.a' 12676 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12677 postinstall_cmds='base_file=`basename \${file}`~ 12678 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 12679 dldir=$destdir/`dirname \$dlpath`~ 12680 test -d \$dldir || mkdir -p \$dldir~ 12681 $install_prog $dir/$dlname \$dldir/$dlname~ 12682 chmod a+x \$dldir/$dlname' 12683 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12684 dlpath=$dir/\$dldll~ 12685 $rm \$dlpath' 12686 shlibpath_overrides_runpath=yes 12687 12688 case $host_os in 12689 cygwin*) 12690 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12691 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12692 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12693 ;; 12694 mingw*) 12695 # MinGW DLLs use traditional 'lib' prefix 12696 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12697 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12698 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 12699 # It is most probably a Windows format PATH printed by 12700 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12701 # path with ; separators, and with drive letters. We can handle the 12702 # drive letters (cygwin fileutils understands them), so leave them, 12703 # especially as we might pass files found there to a mingw objdump, 12704 # which wouldn't understand a cygwinified path. Ahh. 12705 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12706 else 12707 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12708 fi 12709 ;; 12710 pw32*) 12711 # pw32 DLLs use 'pw' prefix rather than 'lib' 12712 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12713 ;; 12714 esac 12715 ;; 12716 12717 *) 12718 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12719 ;; 12720 esac 12721 dynamic_linker='Win32 ld.exe' 12722 # FIXME: first we should search . and the directory the executable is in 12723 shlibpath_var=PATH 12724 ;; 12725 12726darwin* | rhapsody*) 12727 dynamic_linker="$host_os dyld" 12728 version_type=darwin 12729 need_lib_prefix=no 12730 need_version=no 12731 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12732 soname_spec='${libname}${release}${major}$shared_ext' 12733 shlibpath_overrides_runpath=yes 12734 shlibpath_var=DYLD_LIBRARY_PATH 12735 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12736 12737 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12738 ;; 12739 12740dgux*) 12741 version_type=linux 12742 need_lib_prefix=no 12743 need_version=no 12744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12745 soname_spec='${libname}${release}${shared_ext}$major' 12746 shlibpath_var=LD_LIBRARY_PATH 12747 ;; 12748 12749freebsd1*) 12750 dynamic_linker=no 12751 ;; 12752 12753freebsd* | dragonfly*) 12754 # DragonFly does not have aout. When/if they implement a new 12755 # versioning mechanism, adjust this. 12756 if test -x /usr/bin/objformat; then 12757 objformat=`/usr/bin/objformat` 12758 else 12759 case $host_os in 12760 freebsd[123]*) objformat=aout ;; 12761 *) objformat=elf ;; 12762 esac 12763 fi 12764 version_type=freebsd-$objformat 12765 case $version_type in 12766 freebsd-elf*) 12767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12768 need_version=no 12769 need_lib_prefix=no 12770 ;; 12771 freebsd-*) 12772 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12773 need_version=yes 12774 ;; 12775 esac 12776 shlibpath_var=LD_LIBRARY_PATH 12777 case $host_os in 12778 freebsd2*) 12779 shlibpath_overrides_runpath=yes 12780 ;; 12781 freebsd3.[01]* | freebsdelf3.[01]*) 12782 shlibpath_overrides_runpath=yes 12783 hardcode_into_libs=yes 12784 ;; 12785 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12786 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12787 shlibpath_overrides_runpath=no 12788 hardcode_into_libs=yes 12789 ;; 12790 *) # from 4.6 on, and DragonFly 12791 shlibpath_overrides_runpath=yes 12792 hardcode_into_libs=yes 12793 ;; 12794 esac 12795 ;; 12796 12797gnu*) 12798 version_type=linux 12799 need_lib_prefix=no 12800 need_version=no 12801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12802 soname_spec='${libname}${release}${shared_ext}$major' 12803 shlibpath_var=LD_LIBRARY_PATH 12804 hardcode_into_libs=yes 12805 ;; 12806 12807hpux9* | hpux10* | hpux11*) 12808 # Give a soname corresponding to the major version so that dld.sl refuses to 12809 # link against other versions. 12810 version_type=sunos 12811 need_lib_prefix=no 12812 need_version=no 12813 case $host_cpu in 12814 ia64*) 12815 shrext_cmds='.so' 12816 hardcode_into_libs=yes 12817 dynamic_linker="$host_os dld.so" 12818 shlibpath_var=LD_LIBRARY_PATH 12819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12821 soname_spec='${libname}${release}${shared_ext}$major' 12822 if test "X$HPUX_IA64_MODE" = X32; then 12823 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12824 else 12825 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12826 fi 12827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12828 ;; 12829 hppa*64*) 12830 shrext_cmds='.sl' 12831 hardcode_into_libs=yes 12832 dynamic_linker="$host_os dld.sl" 12833 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12834 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12836 soname_spec='${libname}${release}${shared_ext}$major' 12837 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12838 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12839 ;; 12840 *) 12841 shrext_cmds='.sl' 12842 dynamic_linker="$host_os dld.sl" 12843 shlibpath_var=SHLIB_PATH 12844 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12846 soname_spec='${libname}${release}${shared_ext}$major' 12847 ;; 12848 esac 12849 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12850 postinstall_cmds='chmod 555 $lib' 12851 ;; 12852 12853interix[3-9]*) 12854 version_type=linux 12855 need_lib_prefix=no 12856 need_version=no 12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12858 soname_spec='${libname}${release}${shared_ext}$major' 12859 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12860 shlibpath_var=LD_LIBRARY_PATH 12861 shlibpath_overrides_runpath=no 12862 hardcode_into_libs=yes 12863 ;; 12864 12865irix5* | irix6* | nonstopux*) 12866 case $host_os in 12867 nonstopux*) version_type=nonstopux ;; 12868 *) 12869 if test "$lt_cv_prog_gnu_ld" = yes; then 12870 version_type=linux 12871 else 12872 version_type=irix 12873 fi ;; 12874 esac 12875 need_lib_prefix=no 12876 need_version=no 12877 soname_spec='${libname}${release}${shared_ext}$major' 12878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12879 case $host_os in 12880 irix5* | nonstopux*) 12881 libsuff= shlibsuff= 12882 ;; 12883 *) 12884 case $LD in # libtool.m4 will add one of these switches to LD 12885 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12886 libsuff= shlibsuff= libmagic=32-bit;; 12887 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12888 libsuff=32 shlibsuff=N32 libmagic=N32;; 12889 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12890 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12891 *) libsuff= shlibsuff= libmagic=never-match;; 12892 esac 12893 ;; 12894 esac 12895 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12896 shlibpath_overrides_runpath=no 12897 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12898 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12899 hardcode_into_libs=yes 12900 ;; 12901 12902# No shared lib support for Linux oldld, aout, or coff. 12903linux*oldld* | linux*aout* | linux*coff*) 12904 dynamic_linker=no 12905 ;; 12906 12907# This must be Linux ELF. 12908linux* | k*bsd*-gnu) 12909 version_type=linux 12910 need_lib_prefix=no 12911 need_version=no 12912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12913 soname_spec='${libname}${release}${shared_ext}$major' 12914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12915 shlibpath_var=LD_LIBRARY_PATH 12916 shlibpath_overrides_runpath=no 12917 # This implies no fast_install, which is unacceptable. 12918 # Some rework will be needed to allow for fast_install 12919 # before this can be enabled. 12920 hardcode_into_libs=yes 12921 12922 # Append ld.so.conf contents to the search path 12923 if test -f /etc/ld.so.conf; then 12924 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' ' '` 12925 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12926 fi 12927 12928 # We used to test for /lib/ld.so.1 and disable shared libraries on 12929 # powerpc, because MkLinux only supported shared libraries with the 12930 # GNU dynamic linker. Since this was broken with cross compilers, 12931 # most powerpc-linux boxes support dynamic linking these days and 12932 # people can always --disable-shared, the test was removed, and we 12933 # assume the GNU/Linux dynamic linker is in use. 12934 dynamic_linker='GNU/Linux ld.so' 12935 ;; 12936 12937netbsd*) 12938 version_type=sunos 12939 need_lib_prefix=no 12940 need_version=no 12941 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12944 dynamic_linker='NetBSD (a.out) ld.so' 12945 else 12946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12947 soname_spec='${libname}${release}${shared_ext}$major' 12948 dynamic_linker='NetBSD ld.elf_so' 12949 fi 12950 shlibpath_var=LD_LIBRARY_PATH 12951 shlibpath_overrides_runpath=yes 12952 hardcode_into_libs=yes 12953 ;; 12954 12955newsos6) 12956 version_type=linux 12957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12958 shlibpath_var=LD_LIBRARY_PATH 12959 shlibpath_overrides_runpath=yes 12960 ;; 12961 12962nto-qnx*) 12963 version_type=linux 12964 need_lib_prefix=no 12965 need_version=no 12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12967 soname_spec='${libname}${release}${shared_ext}$major' 12968 shlibpath_var=LD_LIBRARY_PATH 12969 shlibpath_overrides_runpath=yes 12970 ;; 12971 12972openbsd*) 12973 version_type=sunos 12974 sys_lib_dlsearch_path_spec="/usr/lib" 12975 need_lib_prefix=no 12976 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12977 case $host_os in 12978 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12979 *) need_version=no ;; 12980 esac 12981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12983 shlibpath_var=LD_LIBRARY_PATH 12984 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12985 case $host_os in 12986 openbsd2.[89] | openbsd2.[89].*) 12987 shlibpath_overrides_runpath=no 12988 ;; 12989 *) 12990 shlibpath_overrides_runpath=yes 12991 ;; 12992 esac 12993 else 12994 shlibpath_overrides_runpath=yes 12995 fi 12996 ;; 12997 12998os2*) 12999 libname_spec='$name' 13000 shrext_cmds=".dll" 13001 need_lib_prefix=no 13002 library_names_spec='$libname${shared_ext} $libname.a' 13003 dynamic_linker='OS/2 ld.exe' 13004 shlibpath_var=LIBPATH 13005 ;; 13006 13007osf3* | osf4* | osf5*) 13008 version_type=osf 13009 need_lib_prefix=no 13010 need_version=no 13011 soname_spec='${libname}${release}${shared_ext}$major' 13012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13013 shlibpath_var=LD_LIBRARY_PATH 13014 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13015 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13016 ;; 13017 13018rdos*) 13019 dynamic_linker=no 13020 ;; 13021 13022solaris*) 13023 version_type=linux 13024 need_lib_prefix=no 13025 need_version=no 13026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13027 soname_spec='${libname}${release}${shared_ext}$major' 13028 shlibpath_var=LD_LIBRARY_PATH 13029 shlibpath_overrides_runpath=yes 13030 hardcode_into_libs=yes 13031 # ldd complains unless libraries are executable 13032 postinstall_cmds='chmod +x $lib' 13033 ;; 13034 13035sunos4*) 13036 version_type=sunos 13037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13038 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13039 shlibpath_var=LD_LIBRARY_PATH 13040 shlibpath_overrides_runpath=yes 13041 if test "$with_gnu_ld" = yes; then 13042 need_lib_prefix=no 13043 fi 13044 need_version=yes 13045 ;; 13046 13047sysv4 | sysv4.3*) 13048 version_type=linux 13049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13050 soname_spec='${libname}${release}${shared_ext}$major' 13051 shlibpath_var=LD_LIBRARY_PATH 13052 case $host_vendor in 13053 sni) 13054 shlibpath_overrides_runpath=no 13055 need_lib_prefix=no 13056 export_dynamic_flag_spec='${wl}-Blargedynsym' 13057 runpath_var=LD_RUN_PATH 13058 ;; 13059 siemens) 13060 need_lib_prefix=no 13061 ;; 13062 motorola) 13063 need_lib_prefix=no 13064 need_version=no 13065 shlibpath_overrides_runpath=no 13066 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13067 ;; 13068 esac 13069 ;; 13070 13071sysv4*MP*) 13072 if test -d /usr/nec ;then 13073 version_type=linux 13074 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13075 soname_spec='$libname${shared_ext}.$major' 13076 shlibpath_var=LD_LIBRARY_PATH 13077 fi 13078 ;; 13079 13080sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13081 version_type=freebsd-elf 13082 need_lib_prefix=no 13083 need_version=no 13084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13085 soname_spec='${libname}${release}${shared_ext}$major' 13086 shlibpath_var=LD_LIBRARY_PATH 13087 hardcode_into_libs=yes 13088 if test "$with_gnu_ld" = yes; then 13089 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13090 shlibpath_overrides_runpath=no 13091 else 13092 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13093 shlibpath_overrides_runpath=yes 13094 case $host_os in 13095 sco3.2v5*) 13096 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13097 ;; 13098 esac 13099 fi 13100 sys_lib_dlsearch_path_spec='/usr/lib' 13101 ;; 13102 13103uts4*) 13104 version_type=linux 13105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13106 soname_spec='${libname}${release}${shared_ext}$major' 13107 shlibpath_var=LD_LIBRARY_PATH 13108 ;; 13109 13110*) 13111 dynamic_linker=no 13112 ;; 13113esac 13114{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13115echo "${ECHO_T}$dynamic_linker" >&6; } 13116test "$dynamic_linker" = no && can_build_shared=no 13117 13118variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13119if test "$GCC" = yes; then 13120 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13121fi 13122 13123{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13124echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13125hardcode_action_CXX= 13126if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13127 test -n "$runpath_var_CXX" || \ 13128 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13129 13130 # We can hardcode non-existant directories. 13131 if test "$hardcode_direct_CXX" != no && 13132 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13133 # have to relink, otherwise we might link with an installed library 13134 # when we should be linking with a yet-to-be-installed one 13135 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13136 test "$hardcode_minus_L_CXX" != no; then 13137 # Linking always hardcodes the temporary library directory. 13138 hardcode_action_CXX=relink 13139 else 13140 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13141 hardcode_action_CXX=immediate 13142 fi 13143else 13144 # We cannot hardcode anything, or else we can only hardcode existing 13145 # directories. 13146 hardcode_action_CXX=unsupported 13147fi 13148{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13149echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13150 13151if test "$hardcode_action_CXX" = relink; then 13152 # Fast installation is not supported 13153 enable_fast_install=no 13154elif test "$shlibpath_overrides_runpath" = yes || 13155 test "$enable_shared" = no; then 13156 # Fast installation is not necessary 13157 enable_fast_install=needless 13158fi 13159 13160 13161# The else clause should only fire when bootstrapping the 13162# libtool distribution, otherwise you forgot to ship ltmain.sh 13163# with your package, and you will get complaints that there are 13164# no rules to generate ltmain.sh. 13165if test -f "$ltmain"; then 13166 # See if we are running on zsh, and set the options which allow our commands through 13167 # without removal of \ escapes. 13168 if test -n "${ZSH_VERSION+set}" ; then 13169 setopt NO_GLOB_SUBST 13170 fi 13171 # Now quote all the things that may contain metacharacters while being 13172 # careful not to overquote the AC_SUBSTed values. We take copies of the 13173 # variables and quote the copies for generation of the libtool script. 13174 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13175 SED SHELL STRIP \ 13176 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13177 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13178 deplibs_check_method reload_flag reload_cmds need_locks \ 13179 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13180 lt_cv_sys_global_symbol_to_c_name_address \ 13181 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13182 old_postinstall_cmds old_postuninstall_cmds \ 13183 compiler_CXX \ 13184 CC_CXX \ 13185 LD_CXX \ 13186 lt_prog_compiler_wl_CXX \ 13187 lt_prog_compiler_pic_CXX \ 13188 lt_prog_compiler_static_CXX \ 13189 lt_prog_compiler_no_builtin_flag_CXX \ 13190 export_dynamic_flag_spec_CXX \ 13191 thread_safe_flag_spec_CXX \ 13192 whole_archive_flag_spec_CXX \ 13193 enable_shared_with_static_runtimes_CXX \ 13194 old_archive_cmds_CXX \ 13195 old_archive_from_new_cmds_CXX \ 13196 predep_objects_CXX \ 13197 postdep_objects_CXX \ 13198 predeps_CXX \ 13199 postdeps_CXX \ 13200 compiler_lib_search_path_CXX \ 13201 archive_cmds_CXX \ 13202 archive_expsym_cmds_CXX \ 13203 postinstall_cmds_CXX \ 13204 postuninstall_cmds_CXX \ 13205 old_archive_from_expsyms_cmds_CXX \ 13206 allow_undefined_flag_CXX \ 13207 no_undefined_flag_CXX \ 13208 export_symbols_cmds_CXX \ 13209 hardcode_libdir_flag_spec_CXX \ 13210 hardcode_libdir_flag_spec_ld_CXX \ 13211 hardcode_libdir_separator_CXX \ 13212 hardcode_automatic_CXX \ 13213 module_cmds_CXX \ 13214 module_expsym_cmds_CXX \ 13215 lt_cv_prog_compiler_c_o_CXX \ 13216 fix_srcfile_path_CXX \ 13217 exclude_expsyms_CXX \ 13218 include_expsyms_CXX; do 13219 13220 case $var in 13221 old_archive_cmds_CXX | \ 13222 old_archive_from_new_cmds_CXX | \ 13223 archive_cmds_CXX | \ 13224 archive_expsym_cmds_CXX | \ 13225 module_cmds_CXX | \ 13226 module_expsym_cmds_CXX | \ 13227 old_archive_from_expsyms_cmds_CXX | \ 13228 export_symbols_cmds_CXX | \ 13229 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13230 postinstall_cmds | postuninstall_cmds | \ 13231 old_postinstall_cmds | old_postuninstall_cmds | \ 13232 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13233 # Double-quote double-evaled strings. 13234 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13235 ;; 13236 *) 13237 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13238 ;; 13239 esac 13240 done 13241 13242 case $lt_echo in 13243 *'\$0 --fallback-echo"') 13244 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13245 ;; 13246 esac 13247 13248cfgfile="$ofile" 13249 13250 cat <<__EOF__ >> "$cfgfile" 13251# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13252 13253# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13254 13255# Shell to use when invoking shell scripts. 13256SHELL=$lt_SHELL 13257 13258# Whether or not to build shared libraries. 13259build_libtool_libs=$enable_shared 13260 13261# Whether or not to build static libraries. 13262build_old_libs=$enable_static 13263 13264# Whether or not to add -lc for building shared libraries. 13265build_libtool_need_lc=$archive_cmds_need_lc_CXX 13266 13267# Whether or not to disallow shared libs when runtime libs are static 13268allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13269 13270# Whether or not to optimize for fast installation. 13271fast_install=$enable_fast_install 13272 13273# The host system. 13274host_alias=$host_alias 13275host=$host 13276host_os=$host_os 13277 13278# The build system. 13279build_alias=$build_alias 13280build=$build 13281build_os=$build_os 13282 13283# An echo program that does not interpret backslashes. 13284echo=$lt_echo 13285 13286# The archiver. 13287AR=$lt_AR 13288AR_FLAGS=$lt_AR_FLAGS 13289 13290# A C compiler. 13291LTCC=$lt_LTCC 13292 13293# LTCC compiler flags. 13294LTCFLAGS=$lt_LTCFLAGS 13295 13296# A language-specific compiler. 13297CC=$lt_compiler_CXX 13298 13299# Is the compiler the GNU C compiler? 13300with_gcc=$GCC_CXX 13301 13302# An ERE matcher. 13303EGREP=$lt_EGREP 13304 13305# The linker used to build libraries. 13306LD=$lt_LD_CXX 13307 13308# Whether we need hard or soft links. 13309LN_S=$lt_LN_S 13310 13311# A BSD-compatible nm program. 13312NM=$lt_NM 13313 13314# A symbol stripping program 13315STRIP=$lt_STRIP 13316 13317# Used to examine libraries when file_magic_cmd begins "file" 13318MAGIC_CMD=$MAGIC_CMD 13319 13320# Used on cygwin: DLL creation program. 13321DLLTOOL="$DLLTOOL" 13322 13323# Used on cygwin: object dumper. 13324OBJDUMP="$OBJDUMP" 13325 13326# Used on cygwin: assembler. 13327AS="$AS" 13328 13329# The name of the directory that contains temporary libtool files. 13330objdir=$objdir 13331 13332# How to create reloadable object files. 13333reload_flag=$lt_reload_flag 13334reload_cmds=$lt_reload_cmds 13335 13336# How to pass a linker flag through the compiler. 13337wl=$lt_lt_prog_compiler_wl_CXX 13338 13339# Object file suffix (normally "o"). 13340objext="$ac_objext" 13341 13342# Old archive suffix (normally "a"). 13343libext="$libext" 13344 13345# Shared library suffix (normally ".so"). 13346shrext_cmds='$shrext_cmds' 13347 13348# Executable file suffix (normally ""). 13349exeext="$exeext" 13350 13351# Additional compiler flags for building library objects. 13352pic_flag=$lt_lt_prog_compiler_pic_CXX 13353pic_mode=$pic_mode 13354 13355# What is the maximum length of a command? 13356max_cmd_len=$lt_cv_sys_max_cmd_len 13357 13358# Does compiler simultaneously support -c and -o options? 13359compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13360 13361# Must we lock files when doing compilation? 13362need_locks=$lt_need_locks 13363 13364# Do we need the lib prefix for modules? 13365need_lib_prefix=$need_lib_prefix 13366 13367# Do we need a version for libraries? 13368need_version=$need_version 13369 13370# Whether dlopen is supported. 13371dlopen_support=$enable_dlopen 13372 13373# Whether dlopen of programs is supported. 13374dlopen_self=$enable_dlopen_self 13375 13376# Whether dlopen of statically linked programs is supported. 13377dlopen_self_static=$enable_dlopen_self_static 13378 13379# Compiler flag to prevent dynamic linking. 13380link_static_flag=$lt_lt_prog_compiler_static_CXX 13381 13382# Compiler flag to turn off builtin functions. 13383no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13384 13385# Compiler flag to allow reflexive dlopens. 13386export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13387 13388# Compiler flag to generate shared objects directly from archives. 13389whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13390 13391# Compiler flag to generate thread-safe objects. 13392thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13393 13394# Library versioning type. 13395version_type=$version_type 13396 13397# Format of library name prefix. 13398libname_spec=$lt_libname_spec 13399 13400# List of archive names. First name is the real one, the rest are links. 13401# The last name is the one that the linker finds with -lNAME. 13402library_names_spec=$lt_library_names_spec 13403 13404# The coded name of the library, if different from the real name. 13405soname_spec=$lt_soname_spec 13406 13407# Commands used to build and install an old-style archive. 13408RANLIB=$lt_RANLIB 13409old_archive_cmds=$lt_old_archive_cmds_CXX 13410old_postinstall_cmds=$lt_old_postinstall_cmds 13411old_postuninstall_cmds=$lt_old_postuninstall_cmds 13412 13413# Create an old-style archive from a shared archive. 13414old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13415 13416# Create a temporary old-style archive to link instead of a shared archive. 13417old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13418 13419# Commands used to build and install a shared archive. 13420archive_cmds=$lt_archive_cmds_CXX 13421archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13422postinstall_cmds=$lt_postinstall_cmds 13423postuninstall_cmds=$lt_postuninstall_cmds 13424 13425# Commands used to build a loadable module (assumed same as above if empty) 13426module_cmds=$lt_module_cmds_CXX 13427module_expsym_cmds=$lt_module_expsym_cmds_CXX 13428 13429# Commands to strip libraries. 13430old_striplib=$lt_old_striplib 13431striplib=$lt_striplib 13432 13433# Dependencies to place before the objects being linked to create a 13434# shared library. 13435predep_objects=$lt_predep_objects_CXX 13436 13437# Dependencies to place after the objects being linked to create a 13438# shared library. 13439postdep_objects=$lt_postdep_objects_CXX 13440 13441# Dependencies to place before the objects being linked to create a 13442# shared library. 13443predeps=$lt_predeps_CXX 13444 13445# Dependencies to place after the objects being linked to create a 13446# shared library. 13447postdeps=$lt_postdeps_CXX 13448 13449# The library search path used internally by the compiler when linking 13450# a shared library. 13451compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13452 13453# Method to check whether dependent libraries are shared objects. 13454deplibs_check_method=$lt_deplibs_check_method 13455 13456# Command to use when deplibs_check_method == file_magic. 13457file_magic_cmd=$lt_file_magic_cmd 13458 13459# Flag that allows shared libraries with undefined symbols to be built. 13460allow_undefined_flag=$lt_allow_undefined_flag_CXX 13461 13462# Flag that forces no undefined symbols. 13463no_undefined_flag=$lt_no_undefined_flag_CXX 13464 13465# Commands used to finish a libtool library installation in a directory. 13466finish_cmds=$lt_finish_cmds 13467 13468# Same as above, but a single script fragment to be evaled but not shown. 13469finish_eval=$lt_finish_eval 13470 13471# Take the output of nm and produce a listing of raw symbols and C names. 13472global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13473 13474# Transform the output of nm in a proper C declaration 13475global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13476 13477# Transform the output of nm in a C name address pair 13478global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13479 13480# This is the shared library runtime path variable. 13481runpath_var=$runpath_var 13482 13483# This is the shared library path variable. 13484shlibpath_var=$shlibpath_var 13485 13486# Is shlibpath searched before the hard-coded library search path? 13487shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13488 13489# How to hardcode a shared library path into an executable. 13490hardcode_action=$hardcode_action_CXX 13491 13492# Whether we should hardcode library paths into libraries. 13493hardcode_into_libs=$hardcode_into_libs 13494 13495# Flag to hardcode \$libdir into a binary during linking. 13496# This must work even if \$libdir does not exist. 13497hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13498 13499# If ld is used when linking, flag to hardcode \$libdir into 13500# a binary during linking. This must work even if \$libdir does 13501# not exist. 13502hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13503 13504# Whether we need a single -rpath flag with a separated argument. 13505hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13506 13507# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13508# resulting binary. 13509hardcode_direct=$hardcode_direct_CXX 13510 13511# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13512# resulting binary. 13513hardcode_minus_L=$hardcode_minus_L_CXX 13514 13515# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13516# the resulting binary. 13517hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13518 13519# Set to yes if building a shared library automatically hardcodes DIR into the library 13520# and all subsequent libraries and executables linked against it. 13521hardcode_automatic=$hardcode_automatic_CXX 13522 13523# Variables whose values should be saved in libtool wrapper scripts and 13524# restored at relink time. 13525variables_saved_for_relink="$variables_saved_for_relink" 13526 13527# Whether libtool must link a program against all its dependency libraries. 13528link_all_deplibs=$link_all_deplibs_CXX 13529 13530# Compile-time system search path for libraries 13531sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13532 13533# Run-time system search path for libraries 13534sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13535 13536# Fix the shell variable \$srcfile for the compiler. 13537fix_srcfile_path=$lt_fix_srcfile_path 13538 13539# Set to yes if exported symbols are required. 13540always_export_symbols=$always_export_symbols_CXX 13541 13542# The commands to list exported symbols. 13543export_symbols_cmds=$lt_export_symbols_cmds_CXX 13544 13545# The commands to extract the exported symbol list from a shared archive. 13546extract_expsyms_cmds=$lt_extract_expsyms_cmds 13547 13548# Symbols that should not be listed in the preloaded symbols. 13549exclude_expsyms=$lt_exclude_expsyms_CXX 13550 13551# Symbols that must always be exported. 13552include_expsyms=$lt_include_expsyms_CXX 13553 13554# ### END LIBTOOL TAG CONFIG: $tagname 13555 13556__EOF__ 13557 13558 13559else 13560 # If there is no Makefile yet, we rely on a make rule to execute 13561 # `config.status --recheck' to rerun these tests and create the 13562 # libtool script then. 13563 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13564 if test -f "$ltmain_in"; then 13565 test -f Makefile && make "$ltmain" 13566 fi 13567fi 13568 13569 13570ac_ext=c 13571ac_cpp='$CPP $CPPFLAGS' 13572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13574ac_compiler_gnu=$ac_cv_c_compiler_gnu 13575 13576CC=$lt_save_CC 13577LDCXX=$LD 13578LD=$lt_save_LD 13579GCC=$lt_save_GCC 13580with_gnu_ldcxx=$with_gnu_ld 13581with_gnu_ld=$lt_save_with_gnu_ld 13582lt_cv_path_LDCXX=$lt_cv_path_LD 13583lt_cv_path_LD=$lt_save_path_LD 13584lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13585lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13586 13587 else 13588 tagname="" 13589 fi 13590 ;; 13591 13592 F77) 13593 if test -n "$F77" && test "X$F77" != "Xno"; then 13594 13595ac_ext=f 13596ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13597ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13598ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13599 13600 13601archive_cmds_need_lc_F77=no 13602allow_undefined_flag_F77= 13603always_export_symbols_F77=no 13604archive_expsym_cmds_F77= 13605export_dynamic_flag_spec_F77= 13606hardcode_direct_F77=no 13607hardcode_libdir_flag_spec_F77= 13608hardcode_libdir_flag_spec_ld_F77= 13609hardcode_libdir_separator_F77= 13610hardcode_minus_L_F77=no 13611hardcode_automatic_F77=no 13612module_cmds_F77= 13613module_expsym_cmds_F77= 13614link_all_deplibs_F77=unknown 13615old_archive_cmds_F77=$old_archive_cmds 13616no_undefined_flag_F77= 13617whole_archive_flag_spec_F77= 13618enable_shared_with_static_runtimes_F77=no 13619 13620# Source file extension for f77 test sources. 13621ac_ext=f 13622 13623# Object file extension for compiled f77 test sources. 13624objext=o 13625objext_F77=$objext 13626 13627# Code to be used in simple compile tests 13628lt_simple_compile_test_code="\ 13629 subroutine t 13630 return 13631 end 13632" 13633 13634# Code to be used in simple link tests 13635lt_simple_link_test_code="\ 13636 program t 13637 end 13638" 13639 13640# ltmain only uses $CC for tagged configurations so make sure $CC is set. 13641 13642# If no C compiler was specified, use CC. 13643LTCC=${LTCC-"$CC"} 13644 13645# If no C compiler flags were specified, use CFLAGS. 13646LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13647 13648# Allow CC to be a program name with arguments. 13649compiler=$CC 13650 13651 13652# save warnings/boilerplate of simple test code 13653ac_outfile=conftest.$ac_objext 13654echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13655eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13656_lt_compiler_boilerplate=`cat conftest.err` 13657$rm conftest* 13658 13659ac_outfile=conftest.$ac_objext 13660echo "$lt_simple_link_test_code" >conftest.$ac_ext 13661eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13662_lt_linker_boilerplate=`cat conftest.err` 13663$rm conftest* 13664 13665 13666# Allow CC to be a program name with arguments. 13667lt_save_CC="$CC" 13668CC=${F77-"f77"} 13669compiler=$CC 13670compiler_F77=$CC 13671for cc_temp in $compiler""; do 13672 case $cc_temp in 13673 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13674 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13675 \-*) ;; 13676 *) break;; 13677 esac 13678done 13679cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13680 13681 13682{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13683echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 13684{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 13685echo "${ECHO_T}$can_build_shared" >&6; } 13686 13687{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13688echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 13689test "$can_build_shared" = "no" && enable_shared=no 13690 13691# On AIX, shared libraries and static libraries use the same namespace, and 13692# are all built from PIC. 13693case $host_os in 13694aix3*) 13695 test "$enable_shared" = yes && enable_static=no 13696 if test -n "$RANLIB"; then 13697 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13698 postinstall_cmds='$RANLIB $lib' 13699 fi 13700 ;; 13701aix4* | aix5*) 13702 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13703 test "$enable_shared" = yes && enable_static=no 13704 fi 13705 ;; 13706esac 13707{ echo "$as_me:$LINENO: result: $enable_shared" >&5 13708echo "${ECHO_T}$enable_shared" >&6; } 13709 13710{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13711echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 13712# Make sure either enable_shared or enable_static is yes. 13713test "$enable_shared" = yes || enable_static=yes 13714{ echo "$as_me:$LINENO: result: $enable_static" >&5 13715echo "${ECHO_T}$enable_static" >&6; } 13716 13717GCC_F77="$G77" 13718LD_F77="$LD" 13719 13720lt_prog_compiler_wl_F77= 13721lt_prog_compiler_pic_F77= 13722lt_prog_compiler_static_F77= 13723 13724{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13725echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 13726 13727 if test "$GCC" = yes; then 13728 lt_prog_compiler_wl_F77='-Wl,' 13729 lt_prog_compiler_static_F77='-static' 13730 13731 case $host_os in 13732 aix*) 13733 # All AIX code is PIC. 13734 if test "$host_cpu" = ia64; then 13735 # AIX 5 now supports IA64 processor 13736 lt_prog_compiler_static_F77='-Bstatic' 13737 fi 13738 ;; 13739 13740 amigaos*) 13741 # FIXME: we need at least 68020 code to build shared libraries, but 13742 # adding the `-m68020' flag to GCC prevents building anything better, 13743 # like `-m68040'. 13744 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13745 ;; 13746 13747 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13748 # PIC is the default for these OSes. 13749 ;; 13750 13751 mingw* | cygwin* | pw32* | os2*) 13752 # This hack is so that the source file can tell whether it is being 13753 # built for inclusion in a dll (and should export symbols for example). 13754 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13755 # (--disable-auto-import) libraries 13756 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13757 ;; 13758 13759 darwin* | rhapsody*) 13760 # PIC is the default on this platform 13761 # Common symbols not allowed in MH_DYLIB files 13762 lt_prog_compiler_pic_F77='-fno-common' 13763 ;; 13764 13765 interix[3-9]*) 13766 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13767 # Instead, we relocate shared libraries at runtime. 13768 ;; 13769 13770 msdosdjgpp*) 13771 # Just because we use GCC doesn't mean we suddenly get shared libraries 13772 # on systems that don't support them. 13773 lt_prog_compiler_can_build_shared_F77=no 13774 enable_shared=no 13775 ;; 13776 13777 sysv4*MP*) 13778 if test -d /usr/nec; then 13779 lt_prog_compiler_pic_F77=-Kconform_pic 13780 fi 13781 ;; 13782 13783 hpux*) 13784 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13785 # not for PA HP-UX. 13786 case $host_cpu in 13787 hppa*64*|ia64*) 13788 # +Z the default 13789 ;; 13790 *) 13791 lt_prog_compiler_pic_F77='-fPIC' 13792 ;; 13793 esac 13794 ;; 13795 13796 *) 13797 lt_prog_compiler_pic_F77='-fPIC' 13798 ;; 13799 esac 13800 else 13801 # PORTME Check for flag to pass linker flags through the system compiler. 13802 case $host_os in 13803 aix*) 13804 lt_prog_compiler_wl_F77='-Wl,' 13805 if test "$host_cpu" = ia64; then 13806 # AIX 5 now supports IA64 processor 13807 lt_prog_compiler_static_F77='-Bstatic' 13808 else 13809 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13810 fi 13811 ;; 13812 darwin*) 13813 # PIC is the default on this platform 13814 # Common symbols not allowed in MH_DYLIB files 13815 case $cc_basename in 13816 xlc*) 13817 lt_prog_compiler_pic_F77='-qnocommon' 13818 lt_prog_compiler_wl_F77='-Wl,' 13819 ;; 13820 esac 13821 ;; 13822 13823 mingw* | cygwin* | pw32* | os2*) 13824 # This hack is so that the source file can tell whether it is being 13825 # built for inclusion in a dll (and should export symbols for example). 13826 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13827 ;; 13828 13829 hpux9* | hpux10* | hpux11*) 13830 lt_prog_compiler_wl_F77='-Wl,' 13831 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13832 # not for PA HP-UX. 13833 case $host_cpu in 13834 hppa*64*|ia64*) 13835 # +Z the default 13836 ;; 13837 *) 13838 lt_prog_compiler_pic_F77='+Z' 13839 ;; 13840 esac 13841 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13842 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13843 ;; 13844 13845 irix5* | irix6* | nonstopux*) 13846 lt_prog_compiler_wl_F77='-Wl,' 13847 # PIC (with -KPIC) is the default. 13848 lt_prog_compiler_static_F77='-non_shared' 13849 ;; 13850 13851 newsos6) 13852 lt_prog_compiler_pic_F77='-KPIC' 13853 lt_prog_compiler_static_F77='-Bstatic' 13854 ;; 13855 13856 linux* | k*bsd*-gnu) 13857 case $cc_basename in 13858 icc* | ecc*) 13859 lt_prog_compiler_wl_F77='-Wl,' 13860 lt_prog_compiler_pic_F77='-KPIC' 13861 lt_prog_compiler_static_F77='-static' 13862 ;; 13863 pgcc* | pgf77* | pgf90* | pgf95*) 13864 # Portland Group compilers (*not* the Pentium gcc compiler, 13865 # which looks to be a dead project) 13866 lt_prog_compiler_wl_F77='-Wl,' 13867 lt_prog_compiler_pic_F77='-fpic' 13868 lt_prog_compiler_static_F77='-Bstatic' 13869 ;; 13870 ccc*) 13871 lt_prog_compiler_wl_F77='-Wl,' 13872 # All Alpha code is PIC. 13873 lt_prog_compiler_static_F77='-non_shared' 13874 ;; 13875 como) 13876 lt_prog_compiler_wl_F77='-lopt=' 13877 ;; 13878 *) 13879 case `$CC -V 2>&1 | sed 5q` in 13880 *Sun\ C*) 13881 # Sun C 5.9 13882 lt_prog_compiler_pic_F77='-KPIC' 13883 lt_prog_compiler_static_F77='-Bstatic' 13884 lt_prog_compiler_wl_F77='-Wl,' 13885 ;; 13886 *Sun\ F*) 13887 # Sun Fortran 8.3 passes all unrecognized flags to the linker 13888 lt_prog_compiler_pic_F77='-KPIC' 13889 lt_prog_compiler_static_F77='-Bstatic' 13890 lt_prog_compiler_wl_F77='' 13891 ;; 13892 esac 13893 ;; 13894 esac 13895 ;; 13896 13897 osf3* | osf4* | osf5*) 13898 lt_prog_compiler_wl_F77='-Wl,' 13899 # All OSF/1 code is PIC. 13900 lt_prog_compiler_static_F77='-non_shared' 13901 ;; 13902 13903 rdos*) 13904 lt_prog_compiler_static_F77='-non_shared' 13905 ;; 13906 13907 solaris*) 13908 lt_prog_compiler_pic_F77='-KPIC' 13909 lt_prog_compiler_static_F77='-Bstatic' 13910 case $cc_basename in 13911 f77* | f90* | f95*) 13912 lt_prog_compiler_wl_F77='-Qoption ld ';; 13913 *) 13914 lt_prog_compiler_wl_F77='-Wl,';; 13915 esac 13916 ;; 13917 13918 sunos4*) 13919 lt_prog_compiler_wl_F77='-Qoption ld ' 13920 lt_prog_compiler_pic_F77='-PIC' 13921 lt_prog_compiler_static_F77='-Bstatic' 13922 ;; 13923 13924 sysv4 | sysv4.2uw2* | sysv4.3*) 13925 lt_prog_compiler_wl_F77='-Wl,' 13926 lt_prog_compiler_pic_F77='-KPIC' 13927 lt_prog_compiler_static_F77='-Bstatic' 13928 ;; 13929 13930 sysv4*MP*) 13931 if test -d /usr/nec ;then 13932 lt_prog_compiler_pic_F77='-Kconform_pic' 13933 lt_prog_compiler_static_F77='-Bstatic' 13934 fi 13935 ;; 13936 13937 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13938 lt_prog_compiler_wl_F77='-Wl,' 13939 lt_prog_compiler_pic_F77='-KPIC' 13940 lt_prog_compiler_static_F77='-Bstatic' 13941 ;; 13942 13943 unicos*) 13944 lt_prog_compiler_wl_F77='-Wl,' 13945 lt_prog_compiler_can_build_shared_F77=no 13946 ;; 13947 13948 uts4*) 13949 lt_prog_compiler_pic_F77='-pic' 13950 lt_prog_compiler_static_F77='-Bstatic' 13951 ;; 13952 13953 *) 13954 lt_prog_compiler_can_build_shared_F77=no 13955 ;; 13956 esac 13957 fi 13958 13959{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13960echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 13961 13962# 13963# Check to make sure the PIC flag actually works. 13964# 13965if test -n "$lt_prog_compiler_pic_F77"; then 13966 13967{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13968echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 13969if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13970 echo $ECHO_N "(cached) $ECHO_C" >&6 13971else 13972 lt_prog_compiler_pic_works_F77=no 13973 ac_outfile=conftest.$ac_objext 13974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13975 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13976 # Insert the option either (1) after the last *FLAGS variable, or 13977 # (2) before a word containing "conftest.", or (3) at the end. 13978 # Note that $ac_compile itself does not contain backslashes and begins 13979 # with a dollar sign (not a hyphen), so the echo should work correctly. 13980 # The option is referenced via a variable to avoid confusing sed. 13981 lt_compile=`echo "$ac_compile" | $SED \ 13982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13984 -e 's:$: $lt_compiler_flag:'` 13985 (eval echo "\"\$as_me:13985: $lt_compile\"" >&5) 13986 (eval "$lt_compile" 2>conftest.err) 13987 ac_status=$? 13988 cat conftest.err >&5 13989 echo "$as_me:13989: \$? = $ac_status" >&5 13990 if (exit $ac_status) && test -s "$ac_outfile"; then 13991 # The compiler can only warn and ignore the option if not recognized 13992 # So say no if there are warnings other than the usual output. 13993 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 13994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13996 lt_prog_compiler_pic_works_F77=yes 13997 fi 13998 fi 13999 $rm conftest* 14000 14001fi 14002{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14003echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14004 14005if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14006 case $lt_prog_compiler_pic_F77 in 14007 "" | " "*) ;; 14008 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14009 esac 14010else 14011 lt_prog_compiler_pic_F77= 14012 lt_prog_compiler_can_build_shared_F77=no 14013fi 14014 14015fi 14016case $host_os in 14017 # For platforms which do not support PIC, -DPIC is meaningless: 14018 *djgpp*) 14019 lt_prog_compiler_pic_F77= 14020 ;; 14021 *) 14022 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14023 ;; 14024esac 14025 14026# 14027# Check to make sure the static flag actually works. 14028# 14029wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14030{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14031echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14032if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14033 echo $ECHO_N "(cached) $ECHO_C" >&6 14034else 14035 lt_prog_compiler_static_works_F77=no 14036 save_LDFLAGS="$LDFLAGS" 14037 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14038 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14039 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14040 # The linker can only warn and ignore the option if not recognized 14041 # So say no if there are warnings 14042 if test -s conftest.err; then 14043 # Append any errors to the config.log. 14044 cat conftest.err 1>&5 14045 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14047 if diff conftest.exp conftest.er2 >/dev/null; then 14048 lt_prog_compiler_static_works_F77=yes 14049 fi 14050 else 14051 lt_prog_compiler_static_works_F77=yes 14052 fi 14053 fi 14054 $rm conftest* 14055 LDFLAGS="$save_LDFLAGS" 14056 14057fi 14058{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14059echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14060 14061if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14062 : 14063else 14064 lt_prog_compiler_static_F77= 14065fi 14066 14067 14068{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14069echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14070if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14071 echo $ECHO_N "(cached) $ECHO_C" >&6 14072else 14073 lt_cv_prog_compiler_c_o_F77=no 14074 $rm -r conftest 2>/dev/null 14075 mkdir conftest 14076 cd conftest 14077 mkdir out 14078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14079 14080 lt_compiler_flag="-o out/conftest2.$ac_objext" 14081 # Insert the option either (1) after the last *FLAGS variable, or 14082 # (2) before a word containing "conftest.", or (3) at the end. 14083 # Note that $ac_compile itself does not contain backslashes and begins 14084 # with a dollar sign (not a hyphen), so the echo should work correctly. 14085 lt_compile=`echo "$ac_compile" | $SED \ 14086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14088 -e 's:$: $lt_compiler_flag:'` 14089 (eval echo "\"\$as_me:14089: $lt_compile\"" >&5) 14090 (eval "$lt_compile" 2>out/conftest.err) 14091 ac_status=$? 14092 cat out/conftest.err >&5 14093 echo "$as_me:14093: \$? = $ac_status" >&5 14094 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14095 then 14096 # The compiler can only warn and ignore the option if not recognized 14097 # So say no if there are warnings 14098 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14099 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14100 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14101 lt_cv_prog_compiler_c_o_F77=yes 14102 fi 14103 fi 14104 chmod u+w . 2>&5 14105 $rm conftest* 14106 # SGI C++ compiler will create directory out/ii_files/ for 14107 # template instantiation 14108 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14109 $rm out/* && rmdir out 14110 cd .. 14111 rmdir conftest 14112 $rm conftest* 14113 14114fi 14115{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14116echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14117 14118 14119hard_links="nottested" 14120if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14121 # do not overwrite the value of need_locks provided by the user 14122 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14123echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14124 hard_links=yes 14125 $rm conftest* 14126 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14127 touch conftest.a 14128 ln conftest.a conftest.b 2>&5 || hard_links=no 14129 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14130 { echo "$as_me:$LINENO: result: $hard_links" >&5 14131echo "${ECHO_T}$hard_links" >&6; } 14132 if test "$hard_links" = no; then 14133 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14134echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14135 need_locks=warn 14136 fi 14137else 14138 need_locks=no 14139fi 14140 14141{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14142echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14143 14144 runpath_var= 14145 allow_undefined_flag_F77= 14146 enable_shared_with_static_runtimes_F77=no 14147 archive_cmds_F77= 14148 archive_expsym_cmds_F77= 14149 old_archive_From_new_cmds_F77= 14150 old_archive_from_expsyms_cmds_F77= 14151 export_dynamic_flag_spec_F77= 14152 whole_archive_flag_spec_F77= 14153 thread_safe_flag_spec_F77= 14154 hardcode_libdir_flag_spec_F77= 14155 hardcode_libdir_flag_spec_ld_F77= 14156 hardcode_libdir_separator_F77= 14157 hardcode_direct_F77=no 14158 hardcode_minus_L_F77=no 14159 hardcode_shlibpath_var_F77=unsupported 14160 link_all_deplibs_F77=unknown 14161 hardcode_automatic_F77=no 14162 module_cmds_F77= 14163 module_expsym_cmds_F77= 14164 always_export_symbols_F77=no 14165 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14166 # include_expsyms should be a list of space-separated symbols to be *always* 14167 # included in the symbol list 14168 include_expsyms_F77= 14169 # exclude_expsyms can be an extended regexp of symbols to exclude 14170 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14171 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14172 # as well as any symbol that contains `d'. 14173 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14174 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14175 # platforms (ab)use it in PIC code, but their linkers get confused if 14176 # the symbol is explicitly referenced. Since portable code cannot 14177 # rely on this symbol name, it's probably fine to never include it in 14178 # preloaded symbol tables. 14179 extract_expsyms_cmds= 14180 # Just being paranoid about ensuring that cc_basename is set. 14181 for cc_temp in $compiler""; do 14182 case $cc_temp in 14183 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14184 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14185 \-*) ;; 14186 *) break;; 14187 esac 14188done 14189cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14190 14191 case $host_os in 14192 cygwin* | mingw* | pw32*) 14193 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14194 # When not using gcc, we currently assume that we are using 14195 # Microsoft Visual C++. 14196 if test "$GCC" != yes; then 14197 with_gnu_ld=no 14198 fi 14199 ;; 14200 interix*) 14201 # we just hope/assume this is gcc and not c89 (= MSVC++) 14202 with_gnu_ld=yes 14203 ;; 14204 openbsd*) 14205 with_gnu_ld=no 14206 ;; 14207 esac 14208 14209 ld_shlibs_F77=yes 14210 if test "$with_gnu_ld" = yes; then 14211 # If archive_cmds runs LD, not CC, wlarc should be empty 14212 wlarc='${wl}' 14213 14214 # Set some defaults for GNU ld with shared library support. These 14215 # are reset later if shared libraries are not supported. Putting them 14216 # here allows them to be overridden if necessary. 14217 runpath_var=LD_RUN_PATH 14218 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14219 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14220 # ancient GNU ld didn't support --whole-archive et. al. 14221 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14222 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14223 else 14224 whole_archive_flag_spec_F77= 14225 fi 14226 supports_anon_versioning=no 14227 case `$LD -v 2>/dev/null` in 14228 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14229 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14230 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14231 *\ 2.11.*) ;; # other 2.11 versions 14232 *) supports_anon_versioning=yes ;; 14233 esac 14234 14235 # See if GNU ld supports shared libraries. 14236 case $host_os in 14237 aix3* | aix4* | aix5*) 14238 # On AIX/PPC, the GNU linker is very broken 14239 if test "$host_cpu" != ia64; then 14240 ld_shlibs_F77=no 14241 cat <<EOF 1>&2 14242 14243*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14244*** to be unable to reliably create shared libraries on AIX. 14245*** Therefore, libtool is disabling shared libraries support. If you 14246*** really care for shared libraries, you may want to modify your PATH 14247*** so that a non-GNU linker is found, and then restart. 14248 14249EOF 14250 fi 14251 ;; 14252 14253 amigaos*) 14254 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)' 14255 hardcode_libdir_flag_spec_F77='-L$libdir' 14256 hardcode_minus_L_F77=yes 14257 14258 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14259 # that the semantics of dynamic libraries on AmigaOS, at least up 14260 # to version 4, is to share data among multiple programs linked 14261 # with the same dynamic library. Since this doesn't match the 14262 # behavior of shared libraries on other platforms, we can't use 14263 # them. 14264 ld_shlibs_F77=no 14265 ;; 14266 14267 beos*) 14268 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14269 allow_undefined_flag_F77=unsupported 14270 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14271 # support --undefined. This deserves some investigation. FIXME 14272 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14273 else 14274 ld_shlibs_F77=no 14275 fi 14276 ;; 14277 14278 cygwin* | mingw* | pw32*) 14279 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14280 # as there is no search path for DLLs. 14281 hardcode_libdir_flag_spec_F77='-L$libdir' 14282 allow_undefined_flag_F77=unsupported 14283 always_export_symbols_F77=no 14284 enable_shared_with_static_runtimes_F77=yes 14285 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14286 14287 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14288 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14289 # If the export-symbols file already is a .def file (1st line 14290 # is EXPORTS), use it as is; otherwise, prepend... 14291 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14292 cp $export_symbols $output_objdir/$soname.def; 14293 else 14294 echo EXPORTS > $output_objdir/$soname.def; 14295 cat $export_symbols >> $output_objdir/$soname.def; 14296 fi~ 14297 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14298 else 14299 ld_shlibs_F77=no 14300 fi 14301 ;; 14302 14303 interix[3-9]*) 14304 hardcode_direct_F77=no 14305 hardcode_shlibpath_var_F77=no 14306 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14307 export_dynamic_flag_spec_F77='${wl}-E' 14308 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14309 # Instead, shared libraries are loaded at an image base (0x10000000 by 14310 # default) and relocated if they conflict, which is a slow very memory 14311 # consuming and fragmenting process. To avoid this, we pick a random, 14312 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14313 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14314 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' 14315 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' 14316 ;; 14317 14318 gnu* | linux* | k*bsd*-gnu) 14319 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14320 tmp_addflag= 14321 case $cc_basename,$host_cpu in 14322 pgcc*) # Portland Group C compiler 14323 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' 14324 tmp_addflag=' $pic_flag' 14325 ;; 14326 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14327 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' 14328 tmp_addflag=' $pic_flag -Mnomain' ;; 14329 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14330 tmp_addflag=' -i_dynamic' ;; 14331 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14332 tmp_addflag=' -i_dynamic -nofor_main' ;; 14333 ifc* | ifort*) # Intel Fortran compiler 14334 tmp_addflag=' -nofor_main' ;; 14335 esac 14336 case `$CC -V 2>&1 | sed 5q` in 14337 *Sun\ C*) # Sun C 5.9 14338 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' 14339 tmp_sharedflag='-G' ;; 14340 *Sun\ F*) # Sun Fortran 8.3 14341 tmp_sharedflag='-G' ;; 14342 *) 14343 tmp_sharedflag='-shared' ;; 14344 esac 14345 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14346 14347 if test $supports_anon_versioning = yes; then 14348 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14349 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14350 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14351 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14352 fi 14353 else 14354 ld_shlibs_F77=no 14355 fi 14356 ;; 14357 14358 netbsd*) 14359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14360 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14361 wlarc= 14362 else 14363 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14364 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14365 fi 14366 ;; 14367 14368 solaris*) 14369 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14370 ld_shlibs_F77=no 14371 cat <<EOF 1>&2 14372 14373*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14374*** create shared libraries on Solaris systems. Therefore, libtool 14375*** is disabling shared libraries support. We urge you to upgrade GNU 14376*** binutils to release 2.9.1 or newer. Another option is to modify 14377*** your PATH or compiler configuration so that the native linker is 14378*** used, and then restart. 14379 14380EOF 14381 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14382 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14383 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14384 else 14385 ld_shlibs_F77=no 14386 fi 14387 ;; 14388 14389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14390 case `$LD -v 2>&1` in 14391 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14392 ld_shlibs_F77=no 14393 cat <<_LT_EOF 1>&2 14394 14395*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14396*** reliably create shared libraries on SCO systems. Therefore, libtool 14397*** is disabling shared libraries support. We urge you to upgrade GNU 14398*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14399*** your PATH or compiler configuration so that the native linker is 14400*** used, and then restart. 14401 14402_LT_EOF 14403 ;; 14404 *) 14405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14406 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14407 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14408 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14409 else 14410 ld_shlibs_F77=no 14411 fi 14412 ;; 14413 esac 14414 ;; 14415 14416 sunos4*) 14417 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14418 wlarc= 14419 hardcode_direct_F77=yes 14420 hardcode_shlibpath_var_F77=no 14421 ;; 14422 14423 *) 14424 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14425 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14426 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14427 else 14428 ld_shlibs_F77=no 14429 fi 14430 ;; 14431 esac 14432 14433 if test "$ld_shlibs_F77" = no; then 14434 runpath_var= 14435 hardcode_libdir_flag_spec_F77= 14436 export_dynamic_flag_spec_F77= 14437 whole_archive_flag_spec_F77= 14438 fi 14439 else 14440 # PORTME fill in a description of your system's linker (not GNU ld) 14441 case $host_os in 14442 aix3*) 14443 allow_undefined_flag_F77=unsupported 14444 always_export_symbols_F77=yes 14445 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' 14446 # Note: this linker hardcodes the directories in LIBPATH if there 14447 # are no directories specified by -L. 14448 hardcode_minus_L_F77=yes 14449 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14450 # Neither direct hardcoding nor static linking is supported with a 14451 # broken collect2. 14452 hardcode_direct_F77=unsupported 14453 fi 14454 ;; 14455 14456 aix4* | aix5*) 14457 if test "$host_cpu" = ia64; then 14458 # On IA64, the linker does run time linking by default, so we don't 14459 # have to do anything special. 14460 aix_use_runtimelinking=no 14461 exp_sym_flag='-Bexport' 14462 no_entry_flag="" 14463 else 14464 # If we're using GNU nm, then we don't want the "-C" option. 14465 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14466 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14467 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' 14468 else 14469 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' 14470 fi 14471 aix_use_runtimelinking=no 14472 14473 # Test if we are trying to use run time linking or normal 14474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14475 # need to do runtime linking. 14476 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14477 for ld_flag in $LDFLAGS; do 14478 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14479 aix_use_runtimelinking=yes 14480 break 14481 fi 14482 done 14483 ;; 14484 esac 14485 14486 exp_sym_flag='-bexport' 14487 no_entry_flag='-bnoentry' 14488 fi 14489 14490 # When large executables or shared objects are built, AIX ld can 14491 # have problems creating the table of contents. If linking a library 14492 # or program results in "error TOC overflow" add -mminimal-toc to 14493 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14494 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14495 14496 archive_cmds_F77='' 14497 hardcode_direct_F77=yes 14498 hardcode_libdir_separator_F77=':' 14499 link_all_deplibs_F77=yes 14500 14501 if test "$GCC" = yes; then 14502 case $host_os in aix4.[012]|aix4.[012].*) 14503 # We only want to do this on AIX 4.2 and lower, the check 14504 # below for broken collect2 doesn't work under 4.3+ 14505 collect2name=`${CC} -print-prog-name=collect2` 14506 if test -f "$collect2name" && \ 14507 strings "$collect2name" | grep resolve_lib_name >/dev/null 14508 then 14509 # We have reworked collect2 14510 : 14511 else 14512 # We have old collect2 14513 hardcode_direct_F77=unsupported 14514 # It fails to find uninstalled libraries when the uninstalled 14515 # path is not listed in the libpath. Setting hardcode_minus_L 14516 # to unsupported forces relinking 14517 hardcode_minus_L_F77=yes 14518 hardcode_libdir_flag_spec_F77='-L$libdir' 14519 hardcode_libdir_separator_F77= 14520 fi 14521 ;; 14522 esac 14523 shared_flag='-shared' 14524 if test "$aix_use_runtimelinking" = yes; then 14525 shared_flag="$shared_flag "'${wl}-G' 14526 fi 14527 else 14528 # not using gcc 14529 if test "$host_cpu" = ia64; then 14530 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14531 # chokes on -Wl,-G. The following line is correct: 14532 shared_flag='-G' 14533 else 14534 if test "$aix_use_runtimelinking" = yes; then 14535 shared_flag='${wl}-G' 14536 else 14537 shared_flag='${wl}-bM:SRE' 14538 fi 14539 fi 14540 fi 14541 14542 # It seems that -bexpall does not export symbols beginning with 14543 # underscore (_), so it is better to generate a list of symbols to export. 14544 always_export_symbols_F77=yes 14545 if test "$aix_use_runtimelinking" = yes; then 14546 # Warning - without using the other runtime loading flags (-brtl), 14547 # -berok will link without error, but may produce a broken library. 14548 allow_undefined_flag_F77='-berok' 14549 # Determine the default libpath from the value encoded in an empty executable. 14550 cat >conftest.$ac_ext <<_ACEOF 14551 program main 14552 14553 end 14554_ACEOF 14555rm -f conftest.$ac_objext conftest$ac_exeext 14556if { (ac_try="$ac_link" 14557case "(($ac_try" in 14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14559 *) ac_try_echo=$ac_try;; 14560esac 14561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14562 (eval "$ac_link") 2>conftest.er1 14563 ac_status=$? 14564 grep -v '^ *+' conftest.er1 >conftest.err 14565 rm -f conftest.er1 14566 cat conftest.err >&5 14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14568 (exit $ac_status); } && { 14569 test -z "$ac_f77_werror_flag" || 14570 test ! -s conftest.err 14571 } && test -s conftest$ac_exeext && 14572 $as_test_x conftest$ac_exeext; then 14573 14574lt_aix_libpath_sed=' 14575 /Import File Strings/,/^$/ { 14576 /^0/ { 14577 s/^0 *\(.*\)$/\1/ 14578 p 14579 } 14580 }' 14581aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14582# Check for a 64-bit object if we didn't find anything. 14583if test -z "$aix_libpath"; then 14584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14585fi 14586else 14587 echo "$as_me: failed program was:" >&5 14588sed 's/^/| /' conftest.$ac_ext >&5 14589 14590 14591fi 14592 14593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14594 conftest$ac_exeext conftest.$ac_ext 14595if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14596 14597 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14598 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" 14599 else 14600 if test "$host_cpu" = ia64; then 14601 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14602 allow_undefined_flag_F77="-z nodefs" 14603 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" 14604 else 14605 # Determine the default libpath from the value encoded in an empty executable. 14606 cat >conftest.$ac_ext <<_ACEOF 14607 program main 14608 14609 end 14610_ACEOF 14611rm -f conftest.$ac_objext conftest$ac_exeext 14612if { (ac_try="$ac_link" 14613case "(($ac_try" in 14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14615 *) ac_try_echo=$ac_try;; 14616esac 14617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14618 (eval "$ac_link") 2>conftest.er1 14619 ac_status=$? 14620 grep -v '^ *+' conftest.er1 >conftest.err 14621 rm -f conftest.er1 14622 cat conftest.err >&5 14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14624 (exit $ac_status); } && { 14625 test -z "$ac_f77_werror_flag" || 14626 test ! -s conftest.err 14627 } && test -s conftest$ac_exeext && 14628 $as_test_x conftest$ac_exeext; then 14629 14630lt_aix_libpath_sed=' 14631 /Import File Strings/,/^$/ { 14632 /^0/ { 14633 s/^0 *\(.*\)$/\1/ 14634 p 14635 } 14636 }' 14637aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14638# Check for a 64-bit object if we didn't find anything. 14639if test -z "$aix_libpath"; then 14640 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14641fi 14642else 14643 echo "$as_me: failed program was:" >&5 14644sed 's/^/| /' conftest.$ac_ext >&5 14645 14646 14647fi 14648 14649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14650 conftest$ac_exeext conftest.$ac_ext 14651if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14652 14653 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14654 # Warning - without using the other run time loading flags, 14655 # -berok will link without error, but may produce a broken library. 14656 no_undefined_flag_F77=' ${wl}-bernotok' 14657 allow_undefined_flag_F77=' ${wl}-berok' 14658 # Exported symbols can be pulled into shared objects from archives 14659 whole_archive_flag_spec_F77='$convenience' 14660 archive_cmds_need_lc_F77=yes 14661 # This is similar to how AIX traditionally builds its shared libraries. 14662 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' 14663 fi 14664 fi 14665 ;; 14666 14667 amigaos*) 14668 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)' 14669 hardcode_libdir_flag_spec_F77='-L$libdir' 14670 hardcode_minus_L_F77=yes 14671 # see comment about different semantics on the GNU ld section 14672 ld_shlibs_F77=no 14673 ;; 14674 14675 bsdi[45]*) 14676 export_dynamic_flag_spec_F77=-rdynamic 14677 ;; 14678 14679 cygwin* | mingw* | pw32*) 14680 # When not using gcc, we currently assume that we are using 14681 # Microsoft Visual C++. 14682 # hardcode_libdir_flag_spec is actually meaningless, as there is 14683 # no search path for DLLs. 14684 hardcode_libdir_flag_spec_F77=' ' 14685 allow_undefined_flag_F77=unsupported 14686 # Tell ltmain to make .lib files, not .a files. 14687 libext=lib 14688 # Tell ltmain to make .dll files, not .so files. 14689 shrext_cmds=".dll" 14690 # FIXME: Setting linknames here is a bad hack. 14691 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14692 # The linker will automatically build a .lib file if we build a DLL. 14693 old_archive_From_new_cmds_F77='true' 14694 # FIXME: Should let the user specify the lib program. 14695 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 14696 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14697 enable_shared_with_static_runtimes_F77=yes 14698 ;; 14699 14700 darwin* | rhapsody*) 14701 case $host_os in 14702 rhapsody* | darwin1.[012]) 14703 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14704 ;; 14705 *) # Darwin 1.3 on 14706 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14707 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14708 else 14709 case ${MACOSX_DEPLOYMENT_TARGET} in 14710 10.[012]) 14711 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14712 ;; 14713 10.*) 14714 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14715 ;; 14716 esac 14717 fi 14718 ;; 14719 esac 14720 archive_cmds_need_lc_F77=no 14721 hardcode_direct_F77=no 14722 hardcode_automatic_F77=yes 14723 hardcode_shlibpath_var_F77=unsupported 14724 whole_archive_flag_spec_F77='' 14725 link_all_deplibs_F77=yes 14726 if test "$GCC" = yes ; then 14727 output_verbose_link_cmd='echo' 14728 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14729 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14730 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14731 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14732 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}' 14733 else 14734 case $cc_basename in 14735 xlc*) 14736 output_verbose_link_cmd='echo' 14737 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 14738 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14740 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}' 14741 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}' 14742 ;; 14743 *) 14744 ld_shlibs_F77=no 14745 ;; 14746 esac 14747 fi 14748 ;; 14749 14750 dgux*) 14751 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14752 hardcode_libdir_flag_spec_F77='-L$libdir' 14753 hardcode_shlibpath_var_F77=no 14754 ;; 14755 14756 freebsd1*) 14757 ld_shlibs_F77=no 14758 ;; 14759 14760 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14761 # support. Future versions do this automatically, but an explicit c++rt0.o 14762 # does not break anything, and helps significantly (at the cost of a little 14763 # extra space). 14764 freebsd2.2*) 14765 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14766 hardcode_libdir_flag_spec_F77='-R$libdir' 14767 hardcode_direct_F77=yes 14768 hardcode_shlibpath_var_F77=no 14769 ;; 14770 14771 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14772 freebsd2*) 14773 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14774 hardcode_direct_F77=yes 14775 hardcode_minus_L_F77=yes 14776 hardcode_shlibpath_var_F77=no 14777 ;; 14778 14779 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14780 freebsd* | dragonfly*) 14781 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14782 hardcode_libdir_flag_spec_F77='-R$libdir' 14783 hardcode_direct_F77=yes 14784 hardcode_shlibpath_var_F77=no 14785 ;; 14786 14787 hpux9*) 14788 if test "$GCC" = yes; then 14789 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' 14790 else 14791 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' 14792 fi 14793 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14794 hardcode_libdir_separator_F77=: 14795 hardcode_direct_F77=yes 14796 14797 # hardcode_minus_L: Not really in the search PATH, 14798 # but as the default location of the library. 14799 hardcode_minus_L_F77=yes 14800 export_dynamic_flag_spec_F77='${wl}-E' 14801 ;; 14802 14803 hpux10*) 14804 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14805 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14806 else 14807 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14808 fi 14809 if test "$with_gnu_ld" = no; then 14810 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14811 hardcode_libdir_separator_F77=: 14812 14813 hardcode_direct_F77=yes 14814 export_dynamic_flag_spec_F77='${wl}-E' 14815 14816 # hardcode_minus_L: Not really in the search PATH, 14817 # but as the default location of the library. 14818 hardcode_minus_L_F77=yes 14819 fi 14820 ;; 14821 14822 hpux11*) 14823 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14824 case $host_cpu in 14825 hppa*64*) 14826 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14827 ;; 14828 ia64*) 14829 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14830 ;; 14831 *) 14832 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14833 ;; 14834 esac 14835 else 14836 case $host_cpu in 14837 hppa*64*) 14838 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14839 ;; 14840 ia64*) 14841 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 14842 ;; 14843 *) 14844 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14845 ;; 14846 esac 14847 fi 14848 if test "$with_gnu_ld" = no; then 14849 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14850 hardcode_libdir_separator_F77=: 14851 14852 case $host_cpu in 14853 hppa*64*|ia64*) 14854 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14855 hardcode_direct_F77=no 14856 hardcode_shlibpath_var_F77=no 14857 ;; 14858 *) 14859 hardcode_direct_F77=yes 14860 export_dynamic_flag_spec_F77='${wl}-E' 14861 14862 # hardcode_minus_L: Not really in the search PATH, 14863 # but as the default location of the library. 14864 hardcode_minus_L_F77=yes 14865 ;; 14866 esac 14867 fi 14868 ;; 14869 14870 irix5* | irix6* | nonstopux*) 14871 if test "$GCC" = yes; then 14872 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' 14873 else 14874 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' 14875 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14876 fi 14877 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14878 hardcode_libdir_separator_F77=: 14879 link_all_deplibs_F77=yes 14880 ;; 14881 14882 netbsd*) 14883 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14884 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14885 else 14886 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14887 fi 14888 hardcode_libdir_flag_spec_F77='-R$libdir' 14889 hardcode_direct_F77=yes 14890 hardcode_shlibpath_var_F77=no 14891 ;; 14892 14893 newsos6) 14894 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14895 hardcode_direct_F77=yes 14896 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14897 hardcode_libdir_separator_F77=: 14898 hardcode_shlibpath_var_F77=no 14899 ;; 14900 14901 openbsd*) 14902 if test -f /usr/libexec/ld.so; then 14903 hardcode_direct_F77=yes 14904 hardcode_shlibpath_var_F77=no 14905 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14906 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14907 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14908 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14909 export_dynamic_flag_spec_F77='${wl}-E' 14910 else 14911 case $host_os in 14912 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14913 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14914 hardcode_libdir_flag_spec_F77='-R$libdir' 14915 ;; 14916 *) 14917 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14918 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14919 ;; 14920 esac 14921 fi 14922 else 14923 ld_shlibs_F77=no 14924 fi 14925 ;; 14926 14927 os2*) 14928 hardcode_libdir_flag_spec_F77='-L$libdir' 14929 hardcode_minus_L_F77=yes 14930 allow_undefined_flag_F77=unsupported 14931 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' 14932 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14933 ;; 14934 14935 osf3*) 14936 if test "$GCC" = yes; then 14937 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14938 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' 14939 else 14940 allow_undefined_flag_F77=' -expect_unresolved \*' 14941 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' 14942 fi 14943 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14944 hardcode_libdir_separator_F77=: 14945 ;; 14946 14947 osf4* | osf5*) # as osf3* with the addition of -msym flag 14948 if test "$GCC" = yes; then 14949 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14950 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' 14951 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14952 else 14953 allow_undefined_flag_F77=' -expect_unresolved \*' 14954 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' 14955 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~ 14956 $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' 14957 14958 # Both c and cxx compiler support -rpath directly 14959 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14960 fi 14961 hardcode_libdir_separator_F77=: 14962 ;; 14963 14964 solaris*) 14965 no_undefined_flag_F77=' -z text' 14966 if test "$GCC" = yes; then 14967 wlarc='${wl}' 14968 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14969 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14970 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14971 else 14972 wlarc='' 14973 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14974 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14976 fi 14977 hardcode_libdir_flag_spec_F77='-R$libdir' 14978 hardcode_shlibpath_var_F77=no 14979 case $host_os in 14980 solaris2.[0-5] | solaris2.[0-5].*) ;; 14981 *) 14982 # The compiler driver will combine and reorder linker options, 14983 # but understands `-z linker_flag'. GCC discards it without `$wl', 14984 # but is careful enough not to reorder. 14985 # Supported since Solaris 2.6 (maybe 2.5.1?) 14986 if test "$GCC" = yes; then 14987 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14988 else 14989 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 14990 fi 14991 ;; 14992 esac 14993 link_all_deplibs_F77=yes 14994 ;; 14995 14996 sunos4*) 14997 if test "x$host_vendor" = xsequent; then 14998 # Use $CC to link under sequent, because it throws in some extra .o 14999 # files that make .init and .fini sections work. 15000 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15001 else 15002 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15003 fi 15004 hardcode_libdir_flag_spec_F77='-L$libdir' 15005 hardcode_direct_F77=yes 15006 hardcode_minus_L_F77=yes 15007 hardcode_shlibpath_var_F77=no 15008 ;; 15009 15010 sysv4) 15011 case $host_vendor in 15012 sni) 15013 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15014 hardcode_direct_F77=yes # is this really true??? 15015 ;; 15016 siemens) 15017 ## LD is ld it makes a PLAMLIB 15018 ## CC just makes a GrossModule. 15019 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15020 reload_cmds_F77='$CC -r -o $output$reload_objs' 15021 hardcode_direct_F77=no 15022 ;; 15023 motorola) 15024 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15025 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15026 ;; 15027 esac 15028 runpath_var='LD_RUN_PATH' 15029 hardcode_shlibpath_var_F77=no 15030 ;; 15031 15032 sysv4.3*) 15033 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15034 hardcode_shlibpath_var_F77=no 15035 export_dynamic_flag_spec_F77='-Bexport' 15036 ;; 15037 15038 sysv4*MP*) 15039 if test -d /usr/nec; then 15040 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15041 hardcode_shlibpath_var_F77=no 15042 runpath_var=LD_RUN_PATH 15043 hardcode_runpath_var=yes 15044 ld_shlibs_F77=yes 15045 fi 15046 ;; 15047 15048 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15049 no_undefined_flag_F77='${wl}-z,text' 15050 archive_cmds_need_lc_F77=no 15051 hardcode_shlibpath_var_F77=no 15052 runpath_var='LD_RUN_PATH' 15053 15054 if test "$GCC" = yes; then 15055 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15056 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15057 else 15058 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15059 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15060 fi 15061 ;; 15062 15063 sysv5* | sco3.2v5* | sco5v6*) 15064 # Note: We can NOT use -z defs as we might desire, because we do not 15065 # link with -lc, and that would cause any symbols used from libc to 15066 # always be unresolved, which means just about no library would 15067 # ever link correctly. If we're not using GNU ld we use -z text 15068 # though, which does catch some bad symbols but isn't as heavy-handed 15069 # as -z defs. 15070 no_undefined_flag_F77='${wl}-z,text' 15071 allow_undefined_flag_F77='${wl}-z,nodefs' 15072 archive_cmds_need_lc_F77=no 15073 hardcode_shlibpath_var_F77=no 15074 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15075 hardcode_libdir_separator_F77=':' 15076 link_all_deplibs_F77=yes 15077 export_dynamic_flag_spec_F77='${wl}-Bexport' 15078 runpath_var='LD_RUN_PATH' 15079 15080 if test "$GCC" = yes; then 15081 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15082 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15083 else 15084 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15085 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15086 fi 15087 ;; 15088 15089 uts4*) 15090 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15091 hardcode_libdir_flag_spec_F77='-L$libdir' 15092 hardcode_shlibpath_var_F77=no 15093 ;; 15094 15095 *) 15096 ld_shlibs_F77=no 15097 ;; 15098 esac 15099 fi 15100 15101{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15102echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15103test "$ld_shlibs_F77" = no && can_build_shared=no 15104 15105# 15106# Do we need to explicitly link libc? 15107# 15108case "x$archive_cmds_need_lc_F77" in 15109x|xyes) 15110 # Assume -lc should be added 15111 archive_cmds_need_lc_F77=yes 15112 15113 if test "$enable_shared" = yes && test "$GCC" = yes; then 15114 case $archive_cmds_F77 in 15115 *'~'*) 15116 # FIXME: we may have to deal with multi-command sequences. 15117 ;; 15118 '$CC '*) 15119 # Test whether the compiler implicitly links with -lc since on some 15120 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15121 # to ld, don't add -lc before -lgcc. 15122 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15123echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15124 $rm conftest* 15125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15126 15127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15128 (eval $ac_compile) 2>&5 15129 ac_status=$? 15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15131 (exit $ac_status); } 2>conftest.err; then 15132 soname=conftest 15133 lib=conftest 15134 libobjs=conftest.$ac_objext 15135 deplibs= 15136 wl=$lt_prog_compiler_wl_F77 15137 pic_flag=$lt_prog_compiler_pic_F77 15138 compiler_flags=-v 15139 linker_flags=-v 15140 verstring= 15141 output_objdir=. 15142 libname=conftest 15143 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15144 allow_undefined_flag_F77= 15145 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15146 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15147 ac_status=$? 15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15149 (exit $ac_status); } 15150 then 15151 archive_cmds_need_lc_F77=no 15152 else 15153 archive_cmds_need_lc_F77=yes 15154 fi 15155 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15156 else 15157 cat conftest.err 1>&5 15158 fi 15159 $rm conftest* 15160 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15161echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15162 ;; 15163 esac 15164 fi 15165 ;; 15166esac 15167 15168{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15169echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15170library_names_spec= 15171libname_spec='lib$name' 15172soname_spec= 15173shrext_cmds=".so" 15174postinstall_cmds= 15175postuninstall_cmds= 15176finish_cmds= 15177finish_eval= 15178shlibpath_var= 15179shlibpath_overrides_runpath=unknown 15180version_type=none 15181dynamic_linker="$host_os ld.so" 15182sys_lib_dlsearch_path_spec="/lib /usr/lib" 15183 15184need_lib_prefix=unknown 15185hardcode_into_libs=no 15186 15187# when you set need_version to no, make sure it does not cause -set_version 15188# flags to be left without arguments 15189need_version=unknown 15190 15191case $host_os in 15192aix3*) 15193 version_type=linux 15194 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15195 shlibpath_var=LIBPATH 15196 15197 # AIX 3 has no versioning support, so we append a major version to the name. 15198 soname_spec='${libname}${release}${shared_ext}$major' 15199 ;; 15200 15201aix4* | aix5*) 15202 version_type=linux 15203 need_lib_prefix=no 15204 need_version=no 15205 hardcode_into_libs=yes 15206 if test "$host_cpu" = ia64; then 15207 # AIX 5 supports IA64 15208 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15209 shlibpath_var=LD_LIBRARY_PATH 15210 else 15211 # With GCC up to 2.95.x, collect2 would create an import file 15212 # for dependence libraries. The import file would start with 15213 # the line `#! .'. This would cause the generated library to 15214 # depend on `.', always an invalid library. This was fixed in 15215 # development snapshots of GCC prior to 3.0. 15216 case $host_os in 15217 aix4 | aix4.[01] | aix4.[01].*) 15218 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15219 echo ' yes ' 15220 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15221 : 15222 else 15223 can_build_shared=no 15224 fi 15225 ;; 15226 esac 15227 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15228 # soname into executable. Probably we can add versioning support to 15229 # collect2, so additional links can be useful in future. 15230 if test "$aix_use_runtimelinking" = yes; then 15231 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15232 # instead of lib<name>.a to let people know that these are not 15233 # typical AIX shared libraries. 15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15235 else 15236 # We preserve .a as extension for shared libraries through AIX4.2 15237 # and later when we are not doing run time linking. 15238 library_names_spec='${libname}${release}.a $libname.a' 15239 soname_spec='${libname}${release}${shared_ext}$major' 15240 fi 15241 shlibpath_var=LIBPATH 15242 fi 15243 ;; 15244 15245amigaos*) 15246 library_names_spec='$libname.ixlibrary $libname.a' 15247 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15248 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' 15249 ;; 15250 15251beos*) 15252 library_names_spec='${libname}${shared_ext}' 15253 dynamic_linker="$host_os ld.so" 15254 shlibpath_var=LIBRARY_PATH 15255 ;; 15256 15257bsdi[45]*) 15258 version_type=linux 15259 need_version=no 15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15261 soname_spec='${libname}${release}${shared_ext}$major' 15262 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15263 shlibpath_var=LD_LIBRARY_PATH 15264 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15265 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15266 # the default ld.so.conf also contains /usr/contrib/lib and 15267 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15268 # libtool to hard-code these into programs 15269 ;; 15270 15271cygwin* | mingw* | pw32*) 15272 version_type=windows 15273 shrext_cmds=".dll" 15274 need_version=no 15275 need_lib_prefix=no 15276 15277 case $GCC,$host_os in 15278 yes,cygwin* | yes,mingw* | yes,pw32*) 15279 library_names_spec='$libname.dll.a' 15280 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15281 postinstall_cmds='base_file=`basename \${file}`~ 15282 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15283 dldir=$destdir/`dirname \$dlpath`~ 15284 test -d \$dldir || mkdir -p \$dldir~ 15285 $install_prog $dir/$dlname \$dldir/$dlname~ 15286 chmod a+x \$dldir/$dlname' 15287 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15288 dlpath=$dir/\$dldll~ 15289 $rm \$dlpath' 15290 shlibpath_overrides_runpath=yes 15291 15292 case $host_os in 15293 cygwin*) 15294 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15295 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15296 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15297 ;; 15298 mingw*) 15299 # MinGW DLLs use traditional 'lib' prefix 15300 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15301 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15302 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15303 # It is most probably a Windows format PATH printed by 15304 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15305 # path with ; separators, and with drive letters. We can handle the 15306 # drive letters (cygwin fileutils understands them), so leave them, 15307 # especially as we might pass files found there to a mingw objdump, 15308 # which wouldn't understand a cygwinified path. Ahh. 15309 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15310 else 15311 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15312 fi 15313 ;; 15314 pw32*) 15315 # pw32 DLLs use 'pw' prefix rather than 'lib' 15316 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15317 ;; 15318 esac 15319 ;; 15320 15321 *) 15322 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15323 ;; 15324 esac 15325 dynamic_linker='Win32 ld.exe' 15326 # FIXME: first we should search . and the directory the executable is in 15327 shlibpath_var=PATH 15328 ;; 15329 15330darwin* | rhapsody*) 15331 dynamic_linker="$host_os dyld" 15332 version_type=darwin 15333 need_lib_prefix=no 15334 need_version=no 15335 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15336 soname_spec='${libname}${release}${major}$shared_ext' 15337 shlibpath_overrides_runpath=yes 15338 shlibpath_var=DYLD_LIBRARY_PATH 15339 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15340 15341 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15342 ;; 15343 15344dgux*) 15345 version_type=linux 15346 need_lib_prefix=no 15347 need_version=no 15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15349 soname_spec='${libname}${release}${shared_ext}$major' 15350 shlibpath_var=LD_LIBRARY_PATH 15351 ;; 15352 15353freebsd1*) 15354 dynamic_linker=no 15355 ;; 15356 15357freebsd* | dragonfly*) 15358 # DragonFly does not have aout. When/if they implement a new 15359 # versioning mechanism, adjust this. 15360 if test -x /usr/bin/objformat; then 15361 objformat=`/usr/bin/objformat` 15362 else 15363 case $host_os in 15364 freebsd[123]*) objformat=aout ;; 15365 *) objformat=elf ;; 15366 esac 15367 fi 15368 version_type=freebsd-$objformat 15369 case $version_type in 15370 freebsd-elf*) 15371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15372 need_version=no 15373 need_lib_prefix=no 15374 ;; 15375 freebsd-*) 15376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15377 need_version=yes 15378 ;; 15379 esac 15380 shlibpath_var=LD_LIBRARY_PATH 15381 case $host_os in 15382 freebsd2*) 15383 shlibpath_overrides_runpath=yes 15384 ;; 15385 freebsd3.[01]* | freebsdelf3.[01]*) 15386 shlibpath_overrides_runpath=yes 15387 hardcode_into_libs=yes 15388 ;; 15389 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15390 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15391 shlibpath_overrides_runpath=no 15392 hardcode_into_libs=yes 15393 ;; 15394 *) # from 4.6 on, and DragonFly 15395 shlibpath_overrides_runpath=yes 15396 hardcode_into_libs=yes 15397 ;; 15398 esac 15399 ;; 15400 15401gnu*) 15402 version_type=linux 15403 need_lib_prefix=no 15404 need_version=no 15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15406 soname_spec='${libname}${release}${shared_ext}$major' 15407 shlibpath_var=LD_LIBRARY_PATH 15408 hardcode_into_libs=yes 15409 ;; 15410 15411hpux9* | hpux10* | hpux11*) 15412 # Give a soname corresponding to the major version so that dld.sl refuses to 15413 # link against other versions. 15414 version_type=sunos 15415 need_lib_prefix=no 15416 need_version=no 15417 case $host_cpu in 15418 ia64*) 15419 shrext_cmds='.so' 15420 hardcode_into_libs=yes 15421 dynamic_linker="$host_os dld.so" 15422 shlibpath_var=LD_LIBRARY_PATH 15423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15425 soname_spec='${libname}${release}${shared_ext}$major' 15426 if test "X$HPUX_IA64_MODE" = X32; then 15427 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15428 else 15429 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15430 fi 15431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15432 ;; 15433 hppa*64*) 15434 shrext_cmds='.sl' 15435 hardcode_into_libs=yes 15436 dynamic_linker="$host_os dld.sl" 15437 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15440 soname_spec='${libname}${release}${shared_ext}$major' 15441 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15443 ;; 15444 *) 15445 shrext_cmds='.sl' 15446 dynamic_linker="$host_os dld.sl" 15447 shlibpath_var=SHLIB_PATH 15448 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15450 soname_spec='${libname}${release}${shared_ext}$major' 15451 ;; 15452 esac 15453 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15454 postinstall_cmds='chmod 555 $lib' 15455 ;; 15456 15457interix[3-9]*) 15458 version_type=linux 15459 need_lib_prefix=no 15460 need_version=no 15461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15462 soname_spec='${libname}${release}${shared_ext}$major' 15463 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15464 shlibpath_var=LD_LIBRARY_PATH 15465 shlibpath_overrides_runpath=no 15466 hardcode_into_libs=yes 15467 ;; 15468 15469irix5* | irix6* | nonstopux*) 15470 case $host_os in 15471 nonstopux*) version_type=nonstopux ;; 15472 *) 15473 if test "$lt_cv_prog_gnu_ld" = yes; then 15474 version_type=linux 15475 else 15476 version_type=irix 15477 fi ;; 15478 esac 15479 need_lib_prefix=no 15480 need_version=no 15481 soname_spec='${libname}${release}${shared_ext}$major' 15482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15483 case $host_os in 15484 irix5* | nonstopux*) 15485 libsuff= shlibsuff= 15486 ;; 15487 *) 15488 case $LD in # libtool.m4 will add one of these switches to LD 15489 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15490 libsuff= shlibsuff= libmagic=32-bit;; 15491 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15492 libsuff=32 shlibsuff=N32 libmagic=N32;; 15493 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15494 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15495 *) libsuff= shlibsuff= libmagic=never-match;; 15496 esac 15497 ;; 15498 esac 15499 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15500 shlibpath_overrides_runpath=no 15501 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15502 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15503 hardcode_into_libs=yes 15504 ;; 15505 15506# No shared lib support for Linux oldld, aout, or coff. 15507linux*oldld* | linux*aout* | linux*coff*) 15508 dynamic_linker=no 15509 ;; 15510 15511# This must be Linux ELF. 15512linux* | k*bsd*-gnu) 15513 version_type=linux 15514 need_lib_prefix=no 15515 need_version=no 15516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15517 soname_spec='${libname}${release}${shared_ext}$major' 15518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15519 shlibpath_var=LD_LIBRARY_PATH 15520 shlibpath_overrides_runpath=no 15521 # This implies no fast_install, which is unacceptable. 15522 # Some rework will be needed to allow for fast_install 15523 # before this can be enabled. 15524 hardcode_into_libs=yes 15525 15526 # Append ld.so.conf contents to the search path 15527 if test -f /etc/ld.so.conf; then 15528 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' ' '` 15529 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15530 fi 15531 15532 # We used to test for /lib/ld.so.1 and disable shared libraries on 15533 # powerpc, because MkLinux only supported shared libraries with the 15534 # GNU dynamic linker. Since this was broken with cross compilers, 15535 # most powerpc-linux boxes support dynamic linking these days and 15536 # people can always --disable-shared, the test was removed, and we 15537 # assume the GNU/Linux dynamic linker is in use. 15538 dynamic_linker='GNU/Linux ld.so' 15539 ;; 15540 15541netbsd*) 15542 version_type=sunos 15543 need_lib_prefix=no 15544 need_version=no 15545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15548 dynamic_linker='NetBSD (a.out) ld.so' 15549 else 15550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15551 soname_spec='${libname}${release}${shared_ext}$major' 15552 dynamic_linker='NetBSD ld.elf_so' 15553 fi 15554 shlibpath_var=LD_LIBRARY_PATH 15555 shlibpath_overrides_runpath=yes 15556 hardcode_into_libs=yes 15557 ;; 15558 15559newsos6) 15560 version_type=linux 15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15562 shlibpath_var=LD_LIBRARY_PATH 15563 shlibpath_overrides_runpath=yes 15564 ;; 15565 15566nto-qnx*) 15567 version_type=linux 15568 need_lib_prefix=no 15569 need_version=no 15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15571 soname_spec='${libname}${release}${shared_ext}$major' 15572 shlibpath_var=LD_LIBRARY_PATH 15573 shlibpath_overrides_runpath=yes 15574 ;; 15575 15576openbsd*) 15577 version_type=sunos 15578 sys_lib_dlsearch_path_spec="/usr/lib" 15579 need_lib_prefix=no 15580 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15581 case $host_os in 15582 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15583 *) need_version=no ;; 15584 esac 15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15586 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15587 shlibpath_var=LD_LIBRARY_PATH 15588 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15589 case $host_os in 15590 openbsd2.[89] | openbsd2.[89].*) 15591 shlibpath_overrides_runpath=no 15592 ;; 15593 *) 15594 shlibpath_overrides_runpath=yes 15595 ;; 15596 esac 15597 else 15598 shlibpath_overrides_runpath=yes 15599 fi 15600 ;; 15601 15602os2*) 15603 libname_spec='$name' 15604 shrext_cmds=".dll" 15605 need_lib_prefix=no 15606 library_names_spec='$libname${shared_ext} $libname.a' 15607 dynamic_linker='OS/2 ld.exe' 15608 shlibpath_var=LIBPATH 15609 ;; 15610 15611osf3* | osf4* | osf5*) 15612 version_type=osf 15613 need_lib_prefix=no 15614 need_version=no 15615 soname_spec='${libname}${release}${shared_ext}$major' 15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15617 shlibpath_var=LD_LIBRARY_PATH 15618 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15619 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15620 ;; 15621 15622rdos*) 15623 dynamic_linker=no 15624 ;; 15625 15626solaris*) 15627 version_type=linux 15628 need_lib_prefix=no 15629 need_version=no 15630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15631 soname_spec='${libname}${release}${shared_ext}$major' 15632 shlibpath_var=LD_LIBRARY_PATH 15633 shlibpath_overrides_runpath=yes 15634 hardcode_into_libs=yes 15635 # ldd complains unless libraries are executable 15636 postinstall_cmds='chmod +x $lib' 15637 ;; 15638 15639sunos4*) 15640 version_type=sunos 15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15642 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15643 shlibpath_var=LD_LIBRARY_PATH 15644 shlibpath_overrides_runpath=yes 15645 if test "$with_gnu_ld" = yes; then 15646 need_lib_prefix=no 15647 fi 15648 need_version=yes 15649 ;; 15650 15651sysv4 | sysv4.3*) 15652 version_type=linux 15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15654 soname_spec='${libname}${release}${shared_ext}$major' 15655 shlibpath_var=LD_LIBRARY_PATH 15656 case $host_vendor in 15657 sni) 15658 shlibpath_overrides_runpath=no 15659 need_lib_prefix=no 15660 export_dynamic_flag_spec='${wl}-Blargedynsym' 15661 runpath_var=LD_RUN_PATH 15662 ;; 15663 siemens) 15664 need_lib_prefix=no 15665 ;; 15666 motorola) 15667 need_lib_prefix=no 15668 need_version=no 15669 shlibpath_overrides_runpath=no 15670 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15671 ;; 15672 esac 15673 ;; 15674 15675sysv4*MP*) 15676 if test -d /usr/nec ;then 15677 version_type=linux 15678 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15679 soname_spec='$libname${shared_ext}.$major' 15680 shlibpath_var=LD_LIBRARY_PATH 15681 fi 15682 ;; 15683 15684sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15685 version_type=freebsd-elf 15686 need_lib_prefix=no 15687 need_version=no 15688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15689 soname_spec='${libname}${release}${shared_ext}$major' 15690 shlibpath_var=LD_LIBRARY_PATH 15691 hardcode_into_libs=yes 15692 if test "$with_gnu_ld" = yes; then 15693 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15694 shlibpath_overrides_runpath=no 15695 else 15696 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15697 shlibpath_overrides_runpath=yes 15698 case $host_os in 15699 sco3.2v5*) 15700 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15701 ;; 15702 esac 15703 fi 15704 sys_lib_dlsearch_path_spec='/usr/lib' 15705 ;; 15706 15707uts4*) 15708 version_type=linux 15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15710 soname_spec='${libname}${release}${shared_ext}$major' 15711 shlibpath_var=LD_LIBRARY_PATH 15712 ;; 15713 15714*) 15715 dynamic_linker=no 15716 ;; 15717esac 15718{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15719echo "${ECHO_T}$dynamic_linker" >&6; } 15720test "$dynamic_linker" = no && can_build_shared=no 15721 15722variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15723if test "$GCC" = yes; then 15724 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15725fi 15726 15727{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15728echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 15729hardcode_action_F77= 15730if test -n "$hardcode_libdir_flag_spec_F77" || \ 15731 test -n "$runpath_var_F77" || \ 15732 test "X$hardcode_automatic_F77" = "Xyes" ; then 15733 15734 # We can hardcode non-existant directories. 15735 if test "$hardcode_direct_F77" != no && 15736 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15737 # have to relink, otherwise we might link with an installed library 15738 # when we should be linking with a yet-to-be-installed one 15739 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15740 test "$hardcode_minus_L_F77" != no; then 15741 # Linking always hardcodes the temporary library directory. 15742 hardcode_action_F77=relink 15743 else 15744 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15745 hardcode_action_F77=immediate 15746 fi 15747else 15748 # We cannot hardcode anything, or else we can only hardcode existing 15749 # directories. 15750 hardcode_action_F77=unsupported 15751fi 15752{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15753echo "${ECHO_T}$hardcode_action_F77" >&6; } 15754 15755if test "$hardcode_action_F77" = relink; then 15756 # Fast installation is not supported 15757 enable_fast_install=no 15758elif test "$shlibpath_overrides_runpath" = yes || 15759 test "$enable_shared" = no; then 15760 # Fast installation is not necessary 15761 enable_fast_install=needless 15762fi 15763 15764 15765# The else clause should only fire when bootstrapping the 15766# libtool distribution, otherwise you forgot to ship ltmain.sh 15767# with your package, and you will get complaints that there are 15768# no rules to generate ltmain.sh. 15769if test -f "$ltmain"; then 15770 # See if we are running on zsh, and set the options which allow our commands through 15771 # without removal of \ escapes. 15772 if test -n "${ZSH_VERSION+set}" ; then 15773 setopt NO_GLOB_SUBST 15774 fi 15775 # Now quote all the things that may contain metacharacters while being 15776 # careful not to overquote the AC_SUBSTed values. We take copies of the 15777 # variables and quote the copies for generation of the libtool script. 15778 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 15779 SED SHELL STRIP \ 15780 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15781 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15782 deplibs_check_method reload_flag reload_cmds need_locks \ 15783 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15784 lt_cv_sys_global_symbol_to_c_name_address \ 15785 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15786 old_postinstall_cmds old_postuninstall_cmds \ 15787 compiler_F77 \ 15788 CC_F77 \ 15789 LD_F77 \ 15790 lt_prog_compiler_wl_F77 \ 15791 lt_prog_compiler_pic_F77 \ 15792 lt_prog_compiler_static_F77 \ 15793 lt_prog_compiler_no_builtin_flag_F77 \ 15794 export_dynamic_flag_spec_F77 \ 15795 thread_safe_flag_spec_F77 \ 15796 whole_archive_flag_spec_F77 \ 15797 enable_shared_with_static_runtimes_F77 \ 15798 old_archive_cmds_F77 \ 15799 old_archive_from_new_cmds_F77 \ 15800 predep_objects_F77 \ 15801 postdep_objects_F77 \ 15802 predeps_F77 \ 15803 postdeps_F77 \ 15804 compiler_lib_search_path_F77 \ 15805 archive_cmds_F77 \ 15806 archive_expsym_cmds_F77 \ 15807 postinstall_cmds_F77 \ 15808 postuninstall_cmds_F77 \ 15809 old_archive_from_expsyms_cmds_F77 \ 15810 allow_undefined_flag_F77 \ 15811 no_undefined_flag_F77 \ 15812 export_symbols_cmds_F77 \ 15813 hardcode_libdir_flag_spec_F77 \ 15814 hardcode_libdir_flag_spec_ld_F77 \ 15815 hardcode_libdir_separator_F77 \ 15816 hardcode_automatic_F77 \ 15817 module_cmds_F77 \ 15818 module_expsym_cmds_F77 \ 15819 lt_cv_prog_compiler_c_o_F77 \ 15820 fix_srcfile_path_F77 \ 15821 exclude_expsyms_F77 \ 15822 include_expsyms_F77; do 15823 15824 case $var in 15825 old_archive_cmds_F77 | \ 15826 old_archive_from_new_cmds_F77 | \ 15827 archive_cmds_F77 | \ 15828 archive_expsym_cmds_F77 | \ 15829 module_cmds_F77 | \ 15830 module_expsym_cmds_F77 | \ 15831 old_archive_from_expsyms_cmds_F77 | \ 15832 export_symbols_cmds_F77 | \ 15833 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15834 postinstall_cmds | postuninstall_cmds | \ 15835 old_postinstall_cmds | old_postuninstall_cmds | \ 15836 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15837 # Double-quote double-evaled strings. 15838 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15839 ;; 15840 *) 15841 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15842 ;; 15843 esac 15844 done 15845 15846 case $lt_echo in 15847 *'\$0 --fallback-echo"') 15848 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15849 ;; 15850 esac 15851 15852cfgfile="$ofile" 15853 15854 cat <<__EOF__ >> "$cfgfile" 15855# ### BEGIN LIBTOOL TAG CONFIG: $tagname 15856 15857# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15858 15859# Shell to use when invoking shell scripts. 15860SHELL=$lt_SHELL 15861 15862# Whether or not to build shared libraries. 15863build_libtool_libs=$enable_shared 15864 15865# Whether or not to build static libraries. 15866build_old_libs=$enable_static 15867 15868# Whether or not to add -lc for building shared libraries. 15869build_libtool_need_lc=$archive_cmds_need_lc_F77 15870 15871# Whether or not to disallow shared libs when runtime libs are static 15872allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15873 15874# Whether or not to optimize for fast installation. 15875fast_install=$enable_fast_install 15876 15877# The host system. 15878host_alias=$host_alias 15879host=$host 15880host_os=$host_os 15881 15882# The build system. 15883build_alias=$build_alias 15884build=$build 15885build_os=$build_os 15886 15887# An echo program that does not interpret backslashes. 15888echo=$lt_echo 15889 15890# The archiver. 15891AR=$lt_AR 15892AR_FLAGS=$lt_AR_FLAGS 15893 15894# A C compiler. 15895LTCC=$lt_LTCC 15896 15897# LTCC compiler flags. 15898LTCFLAGS=$lt_LTCFLAGS 15899 15900# A language-specific compiler. 15901CC=$lt_compiler_F77 15902 15903# Is the compiler the GNU C compiler? 15904with_gcc=$GCC_F77 15905 15906# An ERE matcher. 15907EGREP=$lt_EGREP 15908 15909# The linker used to build libraries. 15910LD=$lt_LD_F77 15911 15912# Whether we need hard or soft links. 15913LN_S=$lt_LN_S 15914 15915# A BSD-compatible nm program. 15916NM=$lt_NM 15917 15918# A symbol stripping program 15919STRIP=$lt_STRIP 15920 15921# Used to examine libraries when file_magic_cmd begins "file" 15922MAGIC_CMD=$MAGIC_CMD 15923 15924# Used on cygwin: DLL creation program. 15925DLLTOOL="$DLLTOOL" 15926 15927# Used on cygwin: object dumper. 15928OBJDUMP="$OBJDUMP" 15929 15930# Used on cygwin: assembler. 15931AS="$AS" 15932 15933# The name of the directory that contains temporary libtool files. 15934objdir=$objdir 15935 15936# How to create reloadable object files. 15937reload_flag=$lt_reload_flag 15938reload_cmds=$lt_reload_cmds 15939 15940# How to pass a linker flag through the compiler. 15941wl=$lt_lt_prog_compiler_wl_F77 15942 15943# Object file suffix (normally "o"). 15944objext="$ac_objext" 15945 15946# Old archive suffix (normally "a"). 15947libext="$libext" 15948 15949# Shared library suffix (normally ".so"). 15950shrext_cmds='$shrext_cmds' 15951 15952# Executable file suffix (normally ""). 15953exeext="$exeext" 15954 15955# Additional compiler flags for building library objects. 15956pic_flag=$lt_lt_prog_compiler_pic_F77 15957pic_mode=$pic_mode 15958 15959# What is the maximum length of a command? 15960max_cmd_len=$lt_cv_sys_max_cmd_len 15961 15962# Does compiler simultaneously support -c and -o options? 15963compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15964 15965# Must we lock files when doing compilation? 15966need_locks=$lt_need_locks 15967 15968# Do we need the lib prefix for modules? 15969need_lib_prefix=$need_lib_prefix 15970 15971# Do we need a version for libraries? 15972need_version=$need_version 15973 15974# Whether dlopen is supported. 15975dlopen_support=$enable_dlopen 15976 15977# Whether dlopen of programs is supported. 15978dlopen_self=$enable_dlopen_self 15979 15980# Whether dlopen of statically linked programs is supported. 15981dlopen_self_static=$enable_dlopen_self_static 15982 15983# Compiler flag to prevent dynamic linking. 15984link_static_flag=$lt_lt_prog_compiler_static_F77 15985 15986# Compiler flag to turn off builtin functions. 15987no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15988 15989# Compiler flag to allow reflexive dlopens. 15990export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15991 15992# Compiler flag to generate shared objects directly from archives. 15993whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15994 15995# Compiler flag to generate thread-safe objects. 15996thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15997 15998# Library versioning type. 15999version_type=$version_type 16000 16001# Format of library name prefix. 16002libname_spec=$lt_libname_spec 16003 16004# List of archive names. First name is the real one, the rest are links. 16005# The last name is the one that the linker finds with -lNAME. 16006library_names_spec=$lt_library_names_spec 16007 16008# The coded name of the library, if different from the real name. 16009soname_spec=$lt_soname_spec 16010 16011# Commands used to build and install an old-style archive. 16012RANLIB=$lt_RANLIB 16013old_archive_cmds=$lt_old_archive_cmds_F77 16014old_postinstall_cmds=$lt_old_postinstall_cmds 16015old_postuninstall_cmds=$lt_old_postuninstall_cmds 16016 16017# Create an old-style archive from a shared archive. 16018old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16019 16020# Create a temporary old-style archive to link instead of a shared archive. 16021old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16022 16023# Commands used to build and install a shared archive. 16024archive_cmds=$lt_archive_cmds_F77 16025archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16026postinstall_cmds=$lt_postinstall_cmds 16027postuninstall_cmds=$lt_postuninstall_cmds 16028 16029# Commands used to build a loadable module (assumed same as above if empty) 16030module_cmds=$lt_module_cmds_F77 16031module_expsym_cmds=$lt_module_expsym_cmds_F77 16032 16033# Commands to strip libraries. 16034old_striplib=$lt_old_striplib 16035striplib=$lt_striplib 16036 16037# Dependencies to place before the objects being linked to create a 16038# shared library. 16039predep_objects=$lt_predep_objects_F77 16040 16041# Dependencies to place after the objects being linked to create a 16042# shared library. 16043postdep_objects=$lt_postdep_objects_F77 16044 16045# Dependencies to place before the objects being linked to create a 16046# shared library. 16047predeps=$lt_predeps_F77 16048 16049# Dependencies to place after the objects being linked to create a 16050# shared library. 16051postdeps=$lt_postdeps_F77 16052 16053# The library search path used internally by the compiler when linking 16054# a shared library. 16055compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16056 16057# Method to check whether dependent libraries are shared objects. 16058deplibs_check_method=$lt_deplibs_check_method 16059 16060# Command to use when deplibs_check_method == file_magic. 16061file_magic_cmd=$lt_file_magic_cmd 16062 16063# Flag that allows shared libraries with undefined symbols to be built. 16064allow_undefined_flag=$lt_allow_undefined_flag_F77 16065 16066# Flag that forces no undefined symbols. 16067no_undefined_flag=$lt_no_undefined_flag_F77 16068 16069# Commands used to finish a libtool library installation in a directory. 16070finish_cmds=$lt_finish_cmds 16071 16072# Same as above, but a single script fragment to be evaled but not shown. 16073finish_eval=$lt_finish_eval 16074 16075# Take the output of nm and produce a listing of raw symbols and C names. 16076global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16077 16078# Transform the output of nm in a proper C declaration 16079global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16080 16081# Transform the output of nm in a C name address pair 16082global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16083 16084# This is the shared library runtime path variable. 16085runpath_var=$runpath_var 16086 16087# This is the shared library path variable. 16088shlibpath_var=$shlibpath_var 16089 16090# Is shlibpath searched before the hard-coded library search path? 16091shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16092 16093# How to hardcode a shared library path into an executable. 16094hardcode_action=$hardcode_action_F77 16095 16096# Whether we should hardcode library paths into libraries. 16097hardcode_into_libs=$hardcode_into_libs 16098 16099# Flag to hardcode \$libdir into a binary during linking. 16100# This must work even if \$libdir does not exist. 16101hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16102 16103# If ld is used when linking, flag to hardcode \$libdir into 16104# a binary during linking. This must work even if \$libdir does 16105# not exist. 16106hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16107 16108# Whether we need a single -rpath flag with a separated argument. 16109hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16110 16111# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16112# resulting binary. 16113hardcode_direct=$hardcode_direct_F77 16114 16115# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16116# resulting binary. 16117hardcode_minus_L=$hardcode_minus_L_F77 16118 16119# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16120# the resulting binary. 16121hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16122 16123# Set to yes if building a shared library automatically hardcodes DIR into the library 16124# and all subsequent libraries and executables linked against it. 16125hardcode_automatic=$hardcode_automatic_F77 16126 16127# Variables whose values should be saved in libtool wrapper scripts and 16128# restored at relink time. 16129variables_saved_for_relink="$variables_saved_for_relink" 16130 16131# Whether libtool must link a program against all its dependency libraries. 16132link_all_deplibs=$link_all_deplibs_F77 16133 16134# Compile-time system search path for libraries 16135sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16136 16137# Run-time system search path for libraries 16138sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16139 16140# Fix the shell variable \$srcfile for the compiler. 16141fix_srcfile_path=$lt_fix_srcfile_path 16142 16143# Set to yes if exported symbols are required. 16144always_export_symbols=$always_export_symbols_F77 16145 16146# The commands to list exported symbols. 16147export_symbols_cmds=$lt_export_symbols_cmds_F77 16148 16149# The commands to extract the exported symbol list from a shared archive. 16150extract_expsyms_cmds=$lt_extract_expsyms_cmds 16151 16152# Symbols that should not be listed in the preloaded symbols. 16153exclude_expsyms=$lt_exclude_expsyms_F77 16154 16155# Symbols that must always be exported. 16156include_expsyms=$lt_include_expsyms_F77 16157 16158# ### END LIBTOOL TAG CONFIG: $tagname 16159 16160__EOF__ 16161 16162 16163else 16164 # If there is no Makefile yet, we rely on a make rule to execute 16165 # `config.status --recheck' to rerun these tests and create the 16166 # libtool script then. 16167 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16168 if test -f "$ltmain_in"; then 16169 test -f Makefile && make "$ltmain" 16170 fi 16171fi 16172 16173 16174ac_ext=c 16175ac_cpp='$CPP $CPPFLAGS' 16176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16178ac_compiler_gnu=$ac_cv_c_compiler_gnu 16179 16180CC="$lt_save_CC" 16181 16182 else 16183 tagname="" 16184 fi 16185 ;; 16186 16187 GCJ) 16188 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16189 16190 16191# Source file extension for Java test sources. 16192ac_ext=java 16193 16194# Object file extension for compiled Java test sources. 16195objext=o 16196objext_GCJ=$objext 16197 16198# Code to be used in simple compile tests 16199lt_simple_compile_test_code="class foo {}" 16200 16201# Code to be used in simple link tests 16202lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' 16203 16204# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16205 16206# If no C compiler was specified, use CC. 16207LTCC=${LTCC-"$CC"} 16208 16209# If no C compiler flags were specified, use CFLAGS. 16210LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16211 16212# Allow CC to be a program name with arguments. 16213compiler=$CC 16214 16215 16216# save warnings/boilerplate of simple test code 16217ac_outfile=conftest.$ac_objext 16218echo "$lt_simple_compile_test_code" >conftest.$ac_ext 16219eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16220_lt_compiler_boilerplate=`cat conftest.err` 16221$rm conftest* 16222 16223ac_outfile=conftest.$ac_objext 16224echo "$lt_simple_link_test_code" >conftest.$ac_ext 16225eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16226_lt_linker_boilerplate=`cat conftest.err` 16227$rm conftest* 16228 16229 16230# Allow CC to be a program name with arguments. 16231lt_save_CC="$CC" 16232CC=${GCJ-"gcj"} 16233compiler=$CC 16234compiler_GCJ=$CC 16235for cc_temp in $compiler""; do 16236 case $cc_temp in 16237 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16238 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16239 \-*) ;; 16240 *) break;; 16241 esac 16242done 16243cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16244 16245 16246# GCJ did not exist at the time GCC didn't implicitly link libc in. 16247archive_cmds_need_lc_GCJ=no 16248 16249old_archive_cmds_GCJ=$old_archive_cmds 16250 16251 16252lt_prog_compiler_no_builtin_flag_GCJ= 16253 16254if test "$GCC" = yes; then 16255 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16256 16257 16258{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16259echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16260if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16261 echo $ECHO_N "(cached) $ECHO_C" >&6 16262else 16263 lt_cv_prog_compiler_rtti_exceptions=no 16264 ac_outfile=conftest.$ac_objext 16265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16266 lt_compiler_flag="-fno-rtti -fno-exceptions" 16267 # Insert the option either (1) after the last *FLAGS variable, or 16268 # (2) before a word containing "conftest.", or (3) at the end. 16269 # Note that $ac_compile itself does not contain backslashes and begins 16270 # with a dollar sign (not a hyphen), so the echo should work correctly. 16271 # The option is referenced via a variable to avoid confusing sed. 16272 lt_compile=`echo "$ac_compile" | $SED \ 16273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16275 -e 's:$: $lt_compiler_flag:'` 16276 (eval echo "\"\$as_me:16276: $lt_compile\"" >&5) 16277 (eval "$lt_compile" 2>conftest.err) 16278 ac_status=$? 16279 cat conftest.err >&5 16280 echo "$as_me:16280: \$? = $ac_status" >&5 16281 if (exit $ac_status) && test -s "$ac_outfile"; then 16282 # The compiler can only warn and ignore the option if not recognized 16283 # So say no if there are warnings other than the usual output. 16284 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16286 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16287 lt_cv_prog_compiler_rtti_exceptions=yes 16288 fi 16289 fi 16290 $rm conftest* 16291 16292fi 16293{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16294echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16295 16296if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16297 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16298else 16299 : 16300fi 16301 16302fi 16303 16304lt_prog_compiler_wl_GCJ= 16305lt_prog_compiler_pic_GCJ= 16306lt_prog_compiler_static_GCJ= 16307 16308{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16309echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16310 16311 if test "$GCC" = yes; then 16312 lt_prog_compiler_wl_GCJ='-Wl,' 16313 lt_prog_compiler_static_GCJ='-static' 16314 16315 case $host_os in 16316 aix*) 16317 # All AIX code is PIC. 16318 if test "$host_cpu" = ia64; then 16319 # AIX 5 now supports IA64 processor 16320 lt_prog_compiler_static_GCJ='-Bstatic' 16321 fi 16322 ;; 16323 16324 amigaos*) 16325 # FIXME: we need at least 68020 code to build shared libraries, but 16326 # adding the `-m68020' flag to GCC prevents building anything better, 16327 # like `-m68040'. 16328 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16329 ;; 16330 16331 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16332 # PIC is the default for these OSes. 16333 ;; 16334 16335 mingw* | cygwin* | pw32* | os2*) 16336 # This hack is so that the source file can tell whether it is being 16337 # built for inclusion in a dll (and should export symbols for example). 16338 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16339 # (--disable-auto-import) libraries 16340 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16341 ;; 16342 16343 darwin* | rhapsody*) 16344 # PIC is the default on this platform 16345 # Common symbols not allowed in MH_DYLIB files 16346 lt_prog_compiler_pic_GCJ='-fno-common' 16347 ;; 16348 16349 interix[3-9]*) 16350 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16351 # Instead, we relocate shared libraries at runtime. 16352 ;; 16353 16354 msdosdjgpp*) 16355 # Just because we use GCC doesn't mean we suddenly get shared libraries 16356 # on systems that don't support them. 16357 lt_prog_compiler_can_build_shared_GCJ=no 16358 enable_shared=no 16359 ;; 16360 16361 sysv4*MP*) 16362 if test -d /usr/nec; then 16363 lt_prog_compiler_pic_GCJ=-Kconform_pic 16364 fi 16365 ;; 16366 16367 hpux*) 16368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16369 # not for PA HP-UX. 16370 case $host_cpu in 16371 hppa*64*|ia64*) 16372 # +Z the default 16373 ;; 16374 *) 16375 lt_prog_compiler_pic_GCJ='-fPIC' 16376 ;; 16377 esac 16378 ;; 16379 16380 *) 16381 lt_prog_compiler_pic_GCJ='-fPIC' 16382 ;; 16383 esac 16384 else 16385 # PORTME Check for flag to pass linker flags through the system compiler. 16386 case $host_os in 16387 aix*) 16388 lt_prog_compiler_wl_GCJ='-Wl,' 16389 if test "$host_cpu" = ia64; then 16390 # AIX 5 now supports IA64 processor 16391 lt_prog_compiler_static_GCJ='-Bstatic' 16392 else 16393 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16394 fi 16395 ;; 16396 darwin*) 16397 # PIC is the default on this platform 16398 # Common symbols not allowed in MH_DYLIB files 16399 case $cc_basename in 16400 xlc*) 16401 lt_prog_compiler_pic_GCJ='-qnocommon' 16402 lt_prog_compiler_wl_GCJ='-Wl,' 16403 ;; 16404 esac 16405 ;; 16406 16407 mingw* | cygwin* | pw32* | os2*) 16408 # This hack is so that the source file can tell whether it is being 16409 # built for inclusion in a dll (and should export symbols for example). 16410 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16411 ;; 16412 16413 hpux9* | hpux10* | hpux11*) 16414 lt_prog_compiler_wl_GCJ='-Wl,' 16415 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16416 # not for PA HP-UX. 16417 case $host_cpu in 16418 hppa*64*|ia64*) 16419 # +Z the default 16420 ;; 16421 *) 16422 lt_prog_compiler_pic_GCJ='+Z' 16423 ;; 16424 esac 16425 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16426 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16427 ;; 16428 16429 irix5* | irix6* | nonstopux*) 16430 lt_prog_compiler_wl_GCJ='-Wl,' 16431 # PIC (with -KPIC) is the default. 16432 lt_prog_compiler_static_GCJ='-non_shared' 16433 ;; 16434 16435 newsos6) 16436 lt_prog_compiler_pic_GCJ='-KPIC' 16437 lt_prog_compiler_static_GCJ='-Bstatic' 16438 ;; 16439 16440 linux* | k*bsd*-gnu) 16441 case $cc_basename in 16442 icc* | ecc*) 16443 lt_prog_compiler_wl_GCJ='-Wl,' 16444 lt_prog_compiler_pic_GCJ='-KPIC' 16445 lt_prog_compiler_static_GCJ='-static' 16446 ;; 16447 pgcc* | pgf77* | pgf90* | pgf95*) 16448 # Portland Group compilers (*not* the Pentium gcc compiler, 16449 # which looks to be a dead project) 16450 lt_prog_compiler_wl_GCJ='-Wl,' 16451 lt_prog_compiler_pic_GCJ='-fpic' 16452 lt_prog_compiler_static_GCJ='-Bstatic' 16453 ;; 16454 ccc*) 16455 lt_prog_compiler_wl_GCJ='-Wl,' 16456 # All Alpha code is PIC. 16457 lt_prog_compiler_static_GCJ='-non_shared' 16458 ;; 16459 como) 16460 lt_prog_compiler_wl_GCJ='-lopt=' 16461 ;; 16462 *) 16463 case `$CC -V 2>&1 | sed 5q` in 16464 *Sun\ C*) 16465 # Sun C 5.9 16466 lt_prog_compiler_pic_GCJ='-KPIC' 16467 lt_prog_compiler_static_GCJ='-Bstatic' 16468 lt_prog_compiler_wl_GCJ='-Wl,' 16469 ;; 16470 *Sun\ F*) 16471 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16472 lt_prog_compiler_pic_GCJ='-KPIC' 16473 lt_prog_compiler_static_GCJ='-Bstatic' 16474 lt_prog_compiler_wl_GCJ='' 16475 ;; 16476 esac 16477 ;; 16478 esac 16479 ;; 16480 16481 osf3* | osf4* | osf5*) 16482 lt_prog_compiler_wl_GCJ='-Wl,' 16483 # All OSF/1 code is PIC. 16484 lt_prog_compiler_static_GCJ='-non_shared' 16485 ;; 16486 16487 rdos*) 16488 lt_prog_compiler_static_GCJ='-non_shared' 16489 ;; 16490 16491 solaris*) 16492 lt_prog_compiler_pic_GCJ='-KPIC' 16493 lt_prog_compiler_static_GCJ='-Bstatic' 16494 case $cc_basename in 16495 f77* | f90* | f95*) 16496 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16497 *) 16498 lt_prog_compiler_wl_GCJ='-Wl,';; 16499 esac 16500 ;; 16501 16502 sunos4*) 16503 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16504 lt_prog_compiler_pic_GCJ='-PIC' 16505 lt_prog_compiler_static_GCJ='-Bstatic' 16506 ;; 16507 16508 sysv4 | sysv4.2uw2* | sysv4.3*) 16509 lt_prog_compiler_wl_GCJ='-Wl,' 16510 lt_prog_compiler_pic_GCJ='-KPIC' 16511 lt_prog_compiler_static_GCJ='-Bstatic' 16512 ;; 16513 16514 sysv4*MP*) 16515 if test -d /usr/nec ;then 16516 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16517 lt_prog_compiler_static_GCJ='-Bstatic' 16518 fi 16519 ;; 16520 16521 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16522 lt_prog_compiler_wl_GCJ='-Wl,' 16523 lt_prog_compiler_pic_GCJ='-KPIC' 16524 lt_prog_compiler_static_GCJ='-Bstatic' 16525 ;; 16526 16527 unicos*) 16528 lt_prog_compiler_wl_GCJ='-Wl,' 16529 lt_prog_compiler_can_build_shared_GCJ=no 16530 ;; 16531 16532 uts4*) 16533 lt_prog_compiler_pic_GCJ='-pic' 16534 lt_prog_compiler_static_GCJ='-Bstatic' 16535 ;; 16536 16537 *) 16538 lt_prog_compiler_can_build_shared_GCJ=no 16539 ;; 16540 esac 16541 fi 16542 16543{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16544echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16545 16546# 16547# Check to make sure the PIC flag actually works. 16548# 16549if test -n "$lt_prog_compiler_pic_GCJ"; then 16550 16551{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16552echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16553if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16554 echo $ECHO_N "(cached) $ECHO_C" >&6 16555else 16556 lt_prog_compiler_pic_works_GCJ=no 16557 ac_outfile=conftest.$ac_objext 16558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16559 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16560 # Insert the option either (1) after the last *FLAGS variable, or 16561 # (2) before a word containing "conftest.", or (3) at the end. 16562 # Note that $ac_compile itself does not contain backslashes and begins 16563 # with a dollar sign (not a hyphen), so the echo should work correctly. 16564 # The option is referenced via a variable to avoid confusing sed. 16565 lt_compile=`echo "$ac_compile" | $SED \ 16566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16568 -e 's:$: $lt_compiler_flag:'` 16569 (eval echo "\"\$as_me:16569: $lt_compile\"" >&5) 16570 (eval "$lt_compile" 2>conftest.err) 16571 ac_status=$? 16572 cat conftest.err >&5 16573 echo "$as_me:16573: \$? = $ac_status" >&5 16574 if (exit $ac_status) && test -s "$ac_outfile"; then 16575 # The compiler can only warn and ignore the option if not recognized 16576 # So say no if there are warnings other than the usual output. 16577 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16578 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16579 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16580 lt_prog_compiler_pic_works_GCJ=yes 16581 fi 16582 fi 16583 $rm conftest* 16584 16585fi 16586{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16587echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16588 16589if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16590 case $lt_prog_compiler_pic_GCJ in 16591 "" | " "*) ;; 16592 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16593 esac 16594else 16595 lt_prog_compiler_pic_GCJ= 16596 lt_prog_compiler_can_build_shared_GCJ=no 16597fi 16598 16599fi 16600case $host_os in 16601 # For platforms which do not support PIC, -DPIC is meaningless: 16602 *djgpp*) 16603 lt_prog_compiler_pic_GCJ= 16604 ;; 16605 *) 16606 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16607 ;; 16608esac 16609 16610# 16611# Check to make sure the static flag actually works. 16612# 16613wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16614{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16615echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 16616if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 16617 echo $ECHO_N "(cached) $ECHO_C" >&6 16618else 16619 lt_prog_compiler_static_works_GCJ=no 16620 save_LDFLAGS="$LDFLAGS" 16621 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16622 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16623 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16624 # The linker can only warn and ignore the option if not recognized 16625 # So say no if there are warnings 16626 if test -s conftest.err; then 16627 # Append any errors to the config.log. 16628 cat conftest.err 1>&5 16629 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 16630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16631 if diff conftest.exp conftest.er2 >/dev/null; then 16632 lt_prog_compiler_static_works_GCJ=yes 16633 fi 16634 else 16635 lt_prog_compiler_static_works_GCJ=yes 16636 fi 16637 fi 16638 $rm conftest* 16639 LDFLAGS="$save_LDFLAGS" 16640 16641fi 16642{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 16643echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 16644 16645if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 16646 : 16647else 16648 lt_prog_compiler_static_GCJ= 16649fi 16650 16651 16652{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16653echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 16654if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16655 echo $ECHO_N "(cached) $ECHO_C" >&6 16656else 16657 lt_cv_prog_compiler_c_o_GCJ=no 16658 $rm -r conftest 2>/dev/null 16659 mkdir conftest 16660 cd conftest 16661 mkdir out 16662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16663 16664 lt_compiler_flag="-o out/conftest2.$ac_objext" 16665 # Insert the option either (1) after the last *FLAGS variable, or 16666 # (2) before a word containing "conftest.", or (3) at the end. 16667 # Note that $ac_compile itself does not contain backslashes and begins 16668 # with a dollar sign (not a hyphen), so the echo should work correctly. 16669 lt_compile=`echo "$ac_compile" | $SED \ 16670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16672 -e 's:$: $lt_compiler_flag:'` 16673 (eval echo "\"\$as_me:16673: $lt_compile\"" >&5) 16674 (eval "$lt_compile" 2>out/conftest.err) 16675 ac_status=$? 16676 cat out/conftest.err >&5 16677 echo "$as_me:16677: \$? = $ac_status" >&5 16678 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16679 then 16680 # The compiler can only warn and ignore the option if not recognized 16681 # So say no if there are warnings 16682 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 16683 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16684 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16685 lt_cv_prog_compiler_c_o_GCJ=yes 16686 fi 16687 fi 16688 chmod u+w . 2>&5 16689 $rm conftest* 16690 # SGI C++ compiler will create directory out/ii_files/ for 16691 # template instantiation 16692 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16693 $rm out/* && rmdir out 16694 cd .. 16695 rmdir conftest 16696 $rm conftest* 16697 16698fi 16699{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16700echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 16701 16702 16703hard_links="nottested" 16704if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16705 # do not overwrite the value of need_locks provided by the user 16706 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16707echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 16708 hard_links=yes 16709 $rm conftest* 16710 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16711 touch conftest.a 16712 ln conftest.a conftest.b 2>&5 || hard_links=no 16713 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16714 { echo "$as_me:$LINENO: result: $hard_links" >&5 16715echo "${ECHO_T}$hard_links" >&6; } 16716 if test "$hard_links" = no; then 16717 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16718echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16719 need_locks=warn 16720 fi 16721else 16722 need_locks=no 16723fi 16724 16725{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16726echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 16727 16728 runpath_var= 16729 allow_undefined_flag_GCJ= 16730 enable_shared_with_static_runtimes_GCJ=no 16731 archive_cmds_GCJ= 16732 archive_expsym_cmds_GCJ= 16733 old_archive_From_new_cmds_GCJ= 16734 old_archive_from_expsyms_cmds_GCJ= 16735 export_dynamic_flag_spec_GCJ= 16736 whole_archive_flag_spec_GCJ= 16737 thread_safe_flag_spec_GCJ= 16738 hardcode_libdir_flag_spec_GCJ= 16739 hardcode_libdir_flag_spec_ld_GCJ= 16740 hardcode_libdir_separator_GCJ= 16741 hardcode_direct_GCJ=no 16742 hardcode_minus_L_GCJ=no 16743 hardcode_shlibpath_var_GCJ=unsupported 16744 link_all_deplibs_GCJ=unknown 16745 hardcode_automatic_GCJ=no 16746 module_cmds_GCJ= 16747 module_expsym_cmds_GCJ= 16748 always_export_symbols_GCJ=no 16749 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16750 # include_expsyms should be a list of space-separated symbols to be *always* 16751 # included in the symbol list 16752 include_expsyms_GCJ= 16753 # exclude_expsyms can be an extended regexp of symbols to exclude 16754 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16755 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16756 # as well as any symbol that contains `d'. 16757 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16758 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16759 # platforms (ab)use it in PIC code, but their linkers get confused if 16760 # the symbol is explicitly referenced. Since portable code cannot 16761 # rely on this symbol name, it's probably fine to never include it in 16762 # preloaded symbol tables. 16763 extract_expsyms_cmds= 16764 # Just being paranoid about ensuring that cc_basename is set. 16765 for cc_temp in $compiler""; do 16766 case $cc_temp in 16767 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16768 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16769 \-*) ;; 16770 *) break;; 16771 esac 16772done 16773cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16774 16775 case $host_os in 16776 cygwin* | mingw* | pw32*) 16777 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16778 # When not using gcc, we currently assume that we are using 16779 # Microsoft Visual C++. 16780 if test "$GCC" != yes; then 16781 with_gnu_ld=no 16782 fi 16783 ;; 16784 interix*) 16785 # we just hope/assume this is gcc and not c89 (= MSVC++) 16786 with_gnu_ld=yes 16787 ;; 16788 openbsd*) 16789 with_gnu_ld=no 16790 ;; 16791 esac 16792 16793 ld_shlibs_GCJ=yes 16794 if test "$with_gnu_ld" = yes; then 16795 # If archive_cmds runs LD, not CC, wlarc should be empty 16796 wlarc='${wl}' 16797 16798 # Set some defaults for GNU ld with shared library support. These 16799 # are reset later if shared libraries are not supported. Putting them 16800 # here allows them to be overridden if necessary. 16801 runpath_var=LD_RUN_PATH 16802 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16803 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16804 # ancient GNU ld didn't support --whole-archive et. al. 16805 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16806 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16807 else 16808 whole_archive_flag_spec_GCJ= 16809 fi 16810 supports_anon_versioning=no 16811 case `$LD -v 2>/dev/null` in 16812 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16813 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16814 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16815 *\ 2.11.*) ;; # other 2.11 versions 16816 *) supports_anon_versioning=yes ;; 16817 esac 16818 16819 # See if GNU ld supports shared libraries. 16820 case $host_os in 16821 aix3* | aix4* | aix5*) 16822 # On AIX/PPC, the GNU linker is very broken 16823 if test "$host_cpu" != ia64; then 16824 ld_shlibs_GCJ=no 16825 cat <<EOF 1>&2 16826 16827*** Warning: the GNU linker, at least up to release 2.9.1, is reported 16828*** to be unable to reliably create shared libraries on AIX. 16829*** Therefore, libtool is disabling shared libraries support. If you 16830*** really care for shared libraries, you may want to modify your PATH 16831*** so that a non-GNU linker is found, and then restart. 16832 16833EOF 16834 fi 16835 ;; 16836 16837 amigaos*) 16838 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)' 16839 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16840 hardcode_minus_L_GCJ=yes 16841 16842 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16843 # that the semantics of dynamic libraries on AmigaOS, at least up 16844 # to version 4, is to share data among multiple programs linked 16845 # with the same dynamic library. Since this doesn't match the 16846 # behavior of shared libraries on other platforms, we can't use 16847 # them. 16848 ld_shlibs_GCJ=no 16849 ;; 16850 16851 beos*) 16852 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16853 allow_undefined_flag_GCJ=unsupported 16854 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16855 # support --undefined. This deserves some investigation. FIXME 16856 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16857 else 16858 ld_shlibs_GCJ=no 16859 fi 16860 ;; 16861 16862 cygwin* | mingw* | pw32*) 16863 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16864 # as there is no search path for DLLs. 16865 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16866 allow_undefined_flag_GCJ=unsupported 16867 always_export_symbols_GCJ=no 16868 enable_shared_with_static_runtimes_GCJ=yes 16869 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16870 16871 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16872 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16873 # If the export-symbols file already is a .def file (1st line 16874 # is EXPORTS), use it as is; otherwise, prepend... 16875 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16876 cp $export_symbols $output_objdir/$soname.def; 16877 else 16878 echo EXPORTS > $output_objdir/$soname.def; 16879 cat $export_symbols >> $output_objdir/$soname.def; 16880 fi~ 16881 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16882 else 16883 ld_shlibs_GCJ=no 16884 fi 16885 ;; 16886 16887 interix[3-9]*) 16888 hardcode_direct_GCJ=no 16889 hardcode_shlibpath_var_GCJ=no 16890 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16891 export_dynamic_flag_spec_GCJ='${wl}-E' 16892 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16893 # Instead, shared libraries are loaded at an image base (0x10000000 by 16894 # default) and relocated if they conflict, which is a slow very memory 16895 # consuming and fragmenting process. To avoid this, we pick a random, 16896 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16897 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16898 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' 16899 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' 16900 ;; 16901 16902 gnu* | linux* | k*bsd*-gnu) 16903 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16904 tmp_addflag= 16905 case $cc_basename,$host_cpu in 16906 pgcc*) # Portland Group C compiler 16907 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' 16908 tmp_addflag=' $pic_flag' 16909 ;; 16910 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16911 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' 16912 tmp_addflag=' $pic_flag -Mnomain' ;; 16913 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16914 tmp_addflag=' -i_dynamic' ;; 16915 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16916 tmp_addflag=' -i_dynamic -nofor_main' ;; 16917 ifc* | ifort*) # Intel Fortran compiler 16918 tmp_addflag=' -nofor_main' ;; 16919 esac 16920 case `$CC -V 2>&1 | sed 5q` in 16921 *Sun\ C*) # Sun C 5.9 16922 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' 16923 tmp_sharedflag='-G' ;; 16924 *Sun\ F*) # Sun Fortran 8.3 16925 tmp_sharedflag='-G' ;; 16926 *) 16927 tmp_sharedflag='-shared' ;; 16928 esac 16929 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16930 16931 if test $supports_anon_versioning = yes; then 16932 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16934 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16935 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16936 fi 16937 else 16938 ld_shlibs_GCJ=no 16939 fi 16940 ;; 16941 16942 netbsd*) 16943 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16944 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16945 wlarc= 16946 else 16947 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16948 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16949 fi 16950 ;; 16951 16952 solaris*) 16953 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16954 ld_shlibs_GCJ=no 16955 cat <<EOF 1>&2 16956 16957*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16958*** create shared libraries on Solaris systems. Therefore, libtool 16959*** is disabling shared libraries support. We urge you to upgrade GNU 16960*** binutils to release 2.9.1 or newer. Another option is to modify 16961*** your PATH or compiler configuration so that the native linker is 16962*** used, and then restart. 16963 16964EOF 16965 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16966 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16967 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16968 else 16969 ld_shlibs_GCJ=no 16970 fi 16971 ;; 16972 16973 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16974 case `$LD -v 2>&1` in 16975 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16976 ld_shlibs_GCJ=no 16977 cat <<_LT_EOF 1>&2 16978 16979*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16980*** reliably create shared libraries on SCO systems. Therefore, libtool 16981*** is disabling shared libraries support. We urge you to upgrade GNU 16982*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16983*** your PATH or compiler configuration so that the native linker is 16984*** used, and then restart. 16985 16986_LT_EOF 16987 ;; 16988 *) 16989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16990 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 16991 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 16992 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 16993 else 16994 ld_shlibs_GCJ=no 16995 fi 16996 ;; 16997 esac 16998 ;; 16999 17000 sunos4*) 17001 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17002 wlarc= 17003 hardcode_direct_GCJ=yes 17004 hardcode_shlibpath_var_GCJ=no 17005 ;; 17006 17007 *) 17008 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17009 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17010 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17011 else 17012 ld_shlibs_GCJ=no 17013 fi 17014 ;; 17015 esac 17016 17017 if test "$ld_shlibs_GCJ" = no; then 17018 runpath_var= 17019 hardcode_libdir_flag_spec_GCJ= 17020 export_dynamic_flag_spec_GCJ= 17021 whole_archive_flag_spec_GCJ= 17022 fi 17023 else 17024 # PORTME fill in a description of your system's linker (not GNU ld) 17025 case $host_os in 17026 aix3*) 17027 allow_undefined_flag_GCJ=unsupported 17028 always_export_symbols_GCJ=yes 17029 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' 17030 # Note: this linker hardcodes the directories in LIBPATH if there 17031 # are no directories specified by -L. 17032 hardcode_minus_L_GCJ=yes 17033 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17034 # Neither direct hardcoding nor static linking is supported with a 17035 # broken collect2. 17036 hardcode_direct_GCJ=unsupported 17037 fi 17038 ;; 17039 17040 aix4* | aix5*) 17041 if test "$host_cpu" = ia64; then 17042 # On IA64, the linker does run time linking by default, so we don't 17043 # have to do anything special. 17044 aix_use_runtimelinking=no 17045 exp_sym_flag='-Bexport' 17046 no_entry_flag="" 17047 else 17048 # If we're using GNU nm, then we don't want the "-C" option. 17049 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17050 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17051 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' 17052 else 17053 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' 17054 fi 17055 aix_use_runtimelinking=no 17056 17057 # Test if we are trying to use run time linking or normal 17058 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17059 # need to do runtime linking. 17060 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17061 for ld_flag in $LDFLAGS; do 17062 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17063 aix_use_runtimelinking=yes 17064 break 17065 fi 17066 done 17067 ;; 17068 esac 17069 17070 exp_sym_flag='-bexport' 17071 no_entry_flag='-bnoentry' 17072 fi 17073 17074 # When large executables or shared objects are built, AIX ld can 17075 # have problems creating the table of contents. If linking a library 17076 # or program results in "error TOC overflow" add -mminimal-toc to 17077 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17078 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17079 17080 archive_cmds_GCJ='' 17081 hardcode_direct_GCJ=yes 17082 hardcode_libdir_separator_GCJ=':' 17083 link_all_deplibs_GCJ=yes 17084 17085 if test "$GCC" = yes; then 17086 case $host_os in aix4.[012]|aix4.[012].*) 17087 # We only want to do this on AIX 4.2 and lower, the check 17088 # below for broken collect2 doesn't work under 4.3+ 17089 collect2name=`${CC} -print-prog-name=collect2` 17090 if test -f "$collect2name" && \ 17091 strings "$collect2name" | grep resolve_lib_name >/dev/null 17092 then 17093 # We have reworked collect2 17094 : 17095 else 17096 # We have old collect2 17097 hardcode_direct_GCJ=unsupported 17098 # It fails to find uninstalled libraries when the uninstalled 17099 # path is not listed in the libpath. Setting hardcode_minus_L 17100 # to unsupported forces relinking 17101 hardcode_minus_L_GCJ=yes 17102 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17103 hardcode_libdir_separator_GCJ= 17104 fi 17105 ;; 17106 esac 17107 shared_flag='-shared' 17108 if test "$aix_use_runtimelinking" = yes; then 17109 shared_flag="$shared_flag "'${wl}-G' 17110 fi 17111 else 17112 # not using gcc 17113 if test "$host_cpu" = ia64; then 17114 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17115 # chokes on -Wl,-G. The following line is correct: 17116 shared_flag='-G' 17117 else 17118 if test "$aix_use_runtimelinking" = yes; then 17119 shared_flag='${wl}-G' 17120 else 17121 shared_flag='${wl}-bM:SRE' 17122 fi 17123 fi 17124 fi 17125 17126 # It seems that -bexpall does not export symbols beginning with 17127 # underscore (_), so it is better to generate a list of symbols to export. 17128 always_export_symbols_GCJ=yes 17129 if test "$aix_use_runtimelinking" = yes; then 17130 # Warning - without using the other runtime loading flags (-brtl), 17131 # -berok will link without error, but may produce a broken library. 17132 allow_undefined_flag_GCJ='-berok' 17133 # Determine the default libpath from the value encoded in an empty executable. 17134 cat >conftest.$ac_ext <<_ACEOF 17135/* confdefs.h. */ 17136_ACEOF 17137cat confdefs.h >>conftest.$ac_ext 17138cat >>conftest.$ac_ext <<_ACEOF 17139/* end confdefs.h. */ 17140 17141int 17142main () 17143{ 17144 17145 ; 17146 return 0; 17147} 17148_ACEOF 17149rm -f conftest.$ac_objext conftest$ac_exeext 17150if { (ac_try="$ac_link" 17151case "(($ac_try" in 17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17153 *) ac_try_echo=$ac_try;; 17154esac 17155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17156 (eval "$ac_link") 2>conftest.er1 17157 ac_status=$? 17158 grep -v '^ *+' conftest.er1 >conftest.err 17159 rm -f conftest.er1 17160 cat conftest.err >&5 17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17162 (exit $ac_status); } && { 17163 test -z "$ac_c_werror_flag" || 17164 test ! -s conftest.err 17165 } && test -s conftest$ac_exeext && 17166 $as_test_x conftest$ac_exeext; then 17167 17168lt_aix_libpath_sed=' 17169 /Import File Strings/,/^$/ { 17170 /^0/ { 17171 s/^0 *\(.*\)$/\1/ 17172 p 17173 } 17174 }' 17175aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17176# Check for a 64-bit object if we didn't find anything. 17177if test -z "$aix_libpath"; then 17178 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17179fi 17180else 17181 echo "$as_me: failed program was:" >&5 17182sed 's/^/| /' conftest.$ac_ext >&5 17183 17184 17185fi 17186 17187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17188 conftest$ac_exeext conftest.$ac_ext 17189if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17190 17191 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17192 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" 17193 else 17194 if test "$host_cpu" = ia64; then 17195 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17196 allow_undefined_flag_GCJ="-z nodefs" 17197 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" 17198 else 17199 # Determine the default libpath from the value encoded in an empty executable. 17200 cat >conftest.$ac_ext <<_ACEOF 17201/* confdefs.h. */ 17202_ACEOF 17203cat confdefs.h >>conftest.$ac_ext 17204cat >>conftest.$ac_ext <<_ACEOF 17205/* end confdefs.h. */ 17206 17207int 17208main () 17209{ 17210 17211 ; 17212 return 0; 17213} 17214_ACEOF 17215rm -f conftest.$ac_objext conftest$ac_exeext 17216if { (ac_try="$ac_link" 17217case "(($ac_try" in 17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17219 *) ac_try_echo=$ac_try;; 17220esac 17221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17222 (eval "$ac_link") 2>conftest.er1 17223 ac_status=$? 17224 grep -v '^ *+' conftest.er1 >conftest.err 17225 rm -f conftest.er1 17226 cat conftest.err >&5 17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17228 (exit $ac_status); } && { 17229 test -z "$ac_c_werror_flag" || 17230 test ! -s conftest.err 17231 } && test -s conftest$ac_exeext && 17232 $as_test_x conftest$ac_exeext; then 17233 17234lt_aix_libpath_sed=' 17235 /Import File Strings/,/^$/ { 17236 /^0/ { 17237 s/^0 *\(.*\)$/\1/ 17238 p 17239 } 17240 }' 17241aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17242# Check for a 64-bit object if we didn't find anything. 17243if test -z "$aix_libpath"; then 17244 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17245fi 17246else 17247 echo "$as_me: failed program was:" >&5 17248sed 's/^/| /' conftest.$ac_ext >&5 17249 17250 17251fi 17252 17253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17254 conftest$ac_exeext conftest.$ac_ext 17255if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17256 17257 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17258 # Warning - without using the other run time loading flags, 17259 # -berok will link without error, but may produce a broken library. 17260 no_undefined_flag_GCJ=' ${wl}-bernotok' 17261 allow_undefined_flag_GCJ=' ${wl}-berok' 17262 # Exported symbols can be pulled into shared objects from archives 17263 whole_archive_flag_spec_GCJ='$convenience' 17264 archive_cmds_need_lc_GCJ=yes 17265 # This is similar to how AIX traditionally builds its shared libraries. 17266 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' 17267 fi 17268 fi 17269 ;; 17270 17271 amigaos*) 17272 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)' 17273 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17274 hardcode_minus_L_GCJ=yes 17275 # see comment about different semantics on the GNU ld section 17276 ld_shlibs_GCJ=no 17277 ;; 17278 17279 bsdi[45]*) 17280 export_dynamic_flag_spec_GCJ=-rdynamic 17281 ;; 17282 17283 cygwin* | mingw* | pw32*) 17284 # When not using gcc, we currently assume that we are using 17285 # Microsoft Visual C++. 17286 # hardcode_libdir_flag_spec is actually meaningless, as there is 17287 # no search path for DLLs. 17288 hardcode_libdir_flag_spec_GCJ=' ' 17289 allow_undefined_flag_GCJ=unsupported 17290 # Tell ltmain to make .lib files, not .a files. 17291 libext=lib 17292 # Tell ltmain to make .dll files, not .so files. 17293 shrext_cmds=".dll" 17294 # FIXME: Setting linknames here is a bad hack. 17295 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17296 # The linker will automatically build a .lib file if we build a DLL. 17297 old_archive_From_new_cmds_GCJ='true' 17298 # FIXME: Should let the user specify the lib program. 17299 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' 17300 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17301 enable_shared_with_static_runtimes_GCJ=yes 17302 ;; 17303 17304 darwin* | rhapsody*) 17305 case $host_os in 17306 rhapsody* | darwin1.[012]) 17307 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17308 ;; 17309 *) # Darwin 1.3 on 17310 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17311 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17312 else 17313 case ${MACOSX_DEPLOYMENT_TARGET} in 17314 10.[012]) 17315 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17316 ;; 17317 10.*) 17318 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17319 ;; 17320 esac 17321 fi 17322 ;; 17323 esac 17324 archive_cmds_need_lc_GCJ=no 17325 hardcode_direct_GCJ=no 17326 hardcode_automatic_GCJ=yes 17327 hardcode_shlibpath_var_GCJ=unsupported 17328 whole_archive_flag_spec_GCJ='' 17329 link_all_deplibs_GCJ=yes 17330 if test "$GCC" = yes ; then 17331 output_verbose_link_cmd='echo' 17332 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17333 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17334 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17335 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17336 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}' 17337 else 17338 case $cc_basename in 17339 xlc*) 17340 output_verbose_link_cmd='echo' 17341 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 17342 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17343 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17344 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}' 17345 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}' 17346 ;; 17347 *) 17348 ld_shlibs_GCJ=no 17349 ;; 17350 esac 17351 fi 17352 ;; 17353 17354 dgux*) 17355 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17356 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17357 hardcode_shlibpath_var_GCJ=no 17358 ;; 17359 17360 freebsd1*) 17361 ld_shlibs_GCJ=no 17362 ;; 17363 17364 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17365 # support. Future versions do this automatically, but an explicit c++rt0.o 17366 # does not break anything, and helps significantly (at the cost of a little 17367 # extra space). 17368 freebsd2.2*) 17369 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17370 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17371 hardcode_direct_GCJ=yes 17372 hardcode_shlibpath_var_GCJ=no 17373 ;; 17374 17375 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17376 freebsd2*) 17377 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17378 hardcode_direct_GCJ=yes 17379 hardcode_minus_L_GCJ=yes 17380 hardcode_shlibpath_var_GCJ=no 17381 ;; 17382 17383 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17384 freebsd* | dragonfly*) 17385 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17386 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17387 hardcode_direct_GCJ=yes 17388 hardcode_shlibpath_var_GCJ=no 17389 ;; 17390 17391 hpux9*) 17392 if test "$GCC" = yes; then 17393 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' 17394 else 17395 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' 17396 fi 17397 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17398 hardcode_libdir_separator_GCJ=: 17399 hardcode_direct_GCJ=yes 17400 17401 # hardcode_minus_L: Not really in the search PATH, 17402 # but as the default location of the library. 17403 hardcode_minus_L_GCJ=yes 17404 export_dynamic_flag_spec_GCJ='${wl}-E' 17405 ;; 17406 17407 hpux10*) 17408 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17409 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17410 else 17411 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17412 fi 17413 if test "$with_gnu_ld" = no; then 17414 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17415 hardcode_libdir_separator_GCJ=: 17416 17417 hardcode_direct_GCJ=yes 17418 export_dynamic_flag_spec_GCJ='${wl}-E' 17419 17420 # hardcode_minus_L: Not really in the search PATH, 17421 # but as the default location of the library. 17422 hardcode_minus_L_GCJ=yes 17423 fi 17424 ;; 17425 17426 hpux11*) 17427 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17428 case $host_cpu in 17429 hppa*64*) 17430 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17431 ;; 17432 ia64*) 17433 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17434 ;; 17435 *) 17436 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17437 ;; 17438 esac 17439 else 17440 case $host_cpu in 17441 hppa*64*) 17442 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17443 ;; 17444 ia64*) 17445 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17446 ;; 17447 *) 17448 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17449 ;; 17450 esac 17451 fi 17452 if test "$with_gnu_ld" = no; then 17453 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17454 hardcode_libdir_separator_GCJ=: 17455 17456 case $host_cpu in 17457 hppa*64*|ia64*) 17458 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17459 hardcode_direct_GCJ=no 17460 hardcode_shlibpath_var_GCJ=no 17461 ;; 17462 *) 17463 hardcode_direct_GCJ=yes 17464 export_dynamic_flag_spec_GCJ='${wl}-E' 17465 17466 # hardcode_minus_L: Not really in the search PATH, 17467 # but as the default location of the library. 17468 hardcode_minus_L_GCJ=yes 17469 ;; 17470 esac 17471 fi 17472 ;; 17473 17474 irix5* | irix6* | nonstopux*) 17475 if test "$GCC" = yes; then 17476 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' 17477 else 17478 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' 17479 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17480 fi 17481 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17482 hardcode_libdir_separator_GCJ=: 17483 link_all_deplibs_GCJ=yes 17484 ;; 17485 17486 netbsd*) 17487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17488 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17489 else 17490 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17491 fi 17492 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17493 hardcode_direct_GCJ=yes 17494 hardcode_shlibpath_var_GCJ=no 17495 ;; 17496 17497 newsos6) 17498 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17499 hardcode_direct_GCJ=yes 17500 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17501 hardcode_libdir_separator_GCJ=: 17502 hardcode_shlibpath_var_GCJ=no 17503 ;; 17504 17505 openbsd*) 17506 if test -f /usr/libexec/ld.so; then 17507 hardcode_direct_GCJ=yes 17508 hardcode_shlibpath_var_GCJ=no 17509 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17510 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17511 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17512 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17513 export_dynamic_flag_spec_GCJ='${wl}-E' 17514 else 17515 case $host_os in 17516 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17517 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17518 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17519 ;; 17520 *) 17521 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17522 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17523 ;; 17524 esac 17525 fi 17526 else 17527 ld_shlibs_GCJ=no 17528 fi 17529 ;; 17530 17531 os2*) 17532 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17533 hardcode_minus_L_GCJ=yes 17534 allow_undefined_flag_GCJ=unsupported 17535 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' 17536 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17537 ;; 17538 17539 osf3*) 17540 if test "$GCC" = yes; then 17541 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17542 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' 17543 else 17544 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17545 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' 17546 fi 17547 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17548 hardcode_libdir_separator_GCJ=: 17549 ;; 17550 17551 osf4* | osf5*) # as osf3* with the addition of -msym flag 17552 if test "$GCC" = yes; then 17553 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17554 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' 17555 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17556 else 17557 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17558 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' 17559 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~ 17560 $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' 17561 17562 # Both c and cxx compiler support -rpath directly 17563 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17564 fi 17565 hardcode_libdir_separator_GCJ=: 17566 ;; 17567 17568 solaris*) 17569 no_undefined_flag_GCJ=' -z text' 17570 if test "$GCC" = yes; then 17571 wlarc='${wl}' 17572 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17573 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17574 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17575 else 17576 wlarc='' 17577 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17578 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17579 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17580 fi 17581 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17582 hardcode_shlibpath_var_GCJ=no 17583 case $host_os in 17584 solaris2.[0-5] | solaris2.[0-5].*) ;; 17585 *) 17586 # The compiler driver will combine and reorder linker options, 17587 # but understands `-z linker_flag'. GCC discards it without `$wl', 17588 # but is careful enough not to reorder. 17589 # Supported since Solaris 2.6 (maybe 2.5.1?) 17590 if test "$GCC" = yes; then 17591 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 17592 else 17593 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' 17594 fi 17595 ;; 17596 esac 17597 link_all_deplibs_GCJ=yes 17598 ;; 17599 17600 sunos4*) 17601 if test "x$host_vendor" = xsequent; then 17602 # Use $CC to link under sequent, because it throws in some extra .o 17603 # files that make .init and .fini sections work. 17604 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17605 else 17606 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17607 fi 17608 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17609 hardcode_direct_GCJ=yes 17610 hardcode_minus_L_GCJ=yes 17611 hardcode_shlibpath_var_GCJ=no 17612 ;; 17613 17614 sysv4) 17615 case $host_vendor in 17616 sni) 17617 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17618 hardcode_direct_GCJ=yes # is this really true??? 17619 ;; 17620 siemens) 17621 ## LD is ld it makes a PLAMLIB 17622 ## CC just makes a GrossModule. 17623 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17624 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17625 hardcode_direct_GCJ=no 17626 ;; 17627 motorola) 17628 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17629 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17630 ;; 17631 esac 17632 runpath_var='LD_RUN_PATH' 17633 hardcode_shlibpath_var_GCJ=no 17634 ;; 17635 17636 sysv4.3*) 17637 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17638 hardcode_shlibpath_var_GCJ=no 17639 export_dynamic_flag_spec_GCJ='-Bexport' 17640 ;; 17641 17642 sysv4*MP*) 17643 if test -d /usr/nec; then 17644 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17645 hardcode_shlibpath_var_GCJ=no 17646 runpath_var=LD_RUN_PATH 17647 hardcode_runpath_var=yes 17648 ld_shlibs_GCJ=yes 17649 fi 17650 ;; 17651 17652 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17653 no_undefined_flag_GCJ='${wl}-z,text' 17654 archive_cmds_need_lc_GCJ=no 17655 hardcode_shlibpath_var_GCJ=no 17656 runpath_var='LD_RUN_PATH' 17657 17658 if test "$GCC" = yes; then 17659 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17660 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17661 else 17662 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17663 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17664 fi 17665 ;; 17666 17667 sysv5* | sco3.2v5* | sco5v6*) 17668 # Note: We can NOT use -z defs as we might desire, because we do not 17669 # link with -lc, and that would cause any symbols used from libc to 17670 # always be unresolved, which means just about no library would 17671 # ever link correctly. If we're not using GNU ld we use -z text 17672 # though, which does catch some bad symbols but isn't as heavy-handed 17673 # as -z defs. 17674 no_undefined_flag_GCJ='${wl}-z,text' 17675 allow_undefined_flag_GCJ='${wl}-z,nodefs' 17676 archive_cmds_need_lc_GCJ=no 17677 hardcode_shlibpath_var_GCJ=no 17678 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 17679 hardcode_libdir_separator_GCJ=':' 17680 link_all_deplibs_GCJ=yes 17681 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17682 runpath_var='LD_RUN_PATH' 17683 17684 if test "$GCC" = yes; then 17685 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17686 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17687 else 17688 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17689 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 17690 fi 17691 ;; 17692 17693 uts4*) 17694 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17695 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17696 hardcode_shlibpath_var_GCJ=no 17697 ;; 17698 17699 *) 17700 ld_shlibs_GCJ=no 17701 ;; 17702 esac 17703 fi 17704 17705{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17706echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 17707test "$ld_shlibs_GCJ" = no && can_build_shared=no 17708 17709# 17710# Do we need to explicitly link libc? 17711# 17712case "x$archive_cmds_need_lc_GCJ" in 17713x|xyes) 17714 # Assume -lc should be added 17715 archive_cmds_need_lc_GCJ=yes 17716 17717 if test "$enable_shared" = yes && test "$GCC" = yes; then 17718 case $archive_cmds_GCJ in 17719 *'~'*) 17720 # FIXME: we may have to deal with multi-command sequences. 17721 ;; 17722 '$CC '*) 17723 # Test whether the compiler implicitly links with -lc since on some 17724 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17725 # to ld, don't add -lc before -lgcc. 17726 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17727echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 17728 $rm conftest* 17729 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17730 17731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17732 (eval $ac_compile) 2>&5 17733 ac_status=$? 17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17735 (exit $ac_status); } 2>conftest.err; then 17736 soname=conftest 17737 lib=conftest 17738 libobjs=conftest.$ac_objext 17739 deplibs= 17740 wl=$lt_prog_compiler_wl_GCJ 17741 pic_flag=$lt_prog_compiler_pic_GCJ 17742 compiler_flags=-v 17743 linker_flags=-v 17744 verstring= 17745 output_objdir=. 17746 libname=conftest 17747 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17748 allow_undefined_flag_GCJ= 17749 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17750 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17751 ac_status=$? 17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17753 (exit $ac_status); } 17754 then 17755 archive_cmds_need_lc_GCJ=no 17756 else 17757 archive_cmds_need_lc_GCJ=yes 17758 fi 17759 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17760 else 17761 cat conftest.err 1>&5 17762 fi 17763 $rm conftest* 17764 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17765echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 17766 ;; 17767 esac 17768 fi 17769 ;; 17770esac 17771 17772{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17773echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 17774library_names_spec= 17775libname_spec='lib$name' 17776soname_spec= 17777shrext_cmds=".so" 17778postinstall_cmds= 17779postuninstall_cmds= 17780finish_cmds= 17781finish_eval= 17782shlibpath_var= 17783shlibpath_overrides_runpath=unknown 17784version_type=none 17785dynamic_linker="$host_os ld.so" 17786sys_lib_dlsearch_path_spec="/lib /usr/lib" 17787 17788need_lib_prefix=unknown 17789hardcode_into_libs=no 17790 17791# when you set need_version to no, make sure it does not cause -set_version 17792# flags to be left without arguments 17793need_version=unknown 17794 17795case $host_os in 17796aix3*) 17797 version_type=linux 17798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17799 shlibpath_var=LIBPATH 17800 17801 # AIX 3 has no versioning support, so we append a major version to the name. 17802 soname_spec='${libname}${release}${shared_ext}$major' 17803 ;; 17804 17805aix4* | aix5*) 17806 version_type=linux 17807 need_lib_prefix=no 17808 need_version=no 17809 hardcode_into_libs=yes 17810 if test "$host_cpu" = ia64; then 17811 # AIX 5 supports IA64 17812 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17813 shlibpath_var=LD_LIBRARY_PATH 17814 else 17815 # With GCC up to 2.95.x, collect2 would create an import file 17816 # for dependence libraries. The import file would start with 17817 # the line `#! .'. This would cause the generated library to 17818 # depend on `.', always an invalid library. This was fixed in 17819 # development snapshots of GCC prior to 3.0. 17820 case $host_os in 17821 aix4 | aix4.[01] | aix4.[01].*) 17822 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17823 echo ' yes ' 17824 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17825 : 17826 else 17827 can_build_shared=no 17828 fi 17829 ;; 17830 esac 17831 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17832 # soname into executable. Probably we can add versioning support to 17833 # collect2, so additional links can be useful in future. 17834 if test "$aix_use_runtimelinking" = yes; then 17835 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17836 # instead of lib<name>.a to let people know that these are not 17837 # typical AIX shared libraries. 17838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17839 else 17840 # We preserve .a as extension for shared libraries through AIX4.2 17841 # and later when we are not doing run time linking. 17842 library_names_spec='${libname}${release}.a $libname.a' 17843 soname_spec='${libname}${release}${shared_ext}$major' 17844 fi 17845 shlibpath_var=LIBPATH 17846 fi 17847 ;; 17848 17849amigaos*) 17850 library_names_spec='$libname.ixlibrary $libname.a' 17851 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17852 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' 17853 ;; 17854 17855beos*) 17856 library_names_spec='${libname}${shared_ext}' 17857 dynamic_linker="$host_os ld.so" 17858 shlibpath_var=LIBRARY_PATH 17859 ;; 17860 17861bsdi[45]*) 17862 version_type=linux 17863 need_version=no 17864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17865 soname_spec='${libname}${release}${shared_ext}$major' 17866 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17867 shlibpath_var=LD_LIBRARY_PATH 17868 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17869 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17870 # the default ld.so.conf also contains /usr/contrib/lib and 17871 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17872 # libtool to hard-code these into programs 17873 ;; 17874 17875cygwin* | mingw* | pw32*) 17876 version_type=windows 17877 shrext_cmds=".dll" 17878 need_version=no 17879 need_lib_prefix=no 17880 17881 case $GCC,$host_os in 17882 yes,cygwin* | yes,mingw* | yes,pw32*) 17883 library_names_spec='$libname.dll.a' 17884 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17885 postinstall_cmds='base_file=`basename \${file}`~ 17886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17887 dldir=$destdir/`dirname \$dlpath`~ 17888 test -d \$dldir || mkdir -p \$dldir~ 17889 $install_prog $dir/$dlname \$dldir/$dlname~ 17890 chmod a+x \$dldir/$dlname' 17891 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17892 dlpath=$dir/\$dldll~ 17893 $rm \$dlpath' 17894 shlibpath_overrides_runpath=yes 17895 17896 case $host_os in 17897 cygwin*) 17898 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17899 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17900 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17901 ;; 17902 mingw*) 17903 # MinGW DLLs use traditional 'lib' prefix 17904 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17905 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17906 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17907 # It is most probably a Windows format PATH printed by 17908 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17909 # path with ; separators, and with drive letters. We can handle the 17910 # drive letters (cygwin fileutils understands them), so leave them, 17911 # especially as we might pass files found there to a mingw objdump, 17912 # which wouldn't understand a cygwinified path. Ahh. 17913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17914 else 17915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17916 fi 17917 ;; 17918 pw32*) 17919 # pw32 DLLs use 'pw' prefix rather than 'lib' 17920 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17921 ;; 17922 esac 17923 ;; 17924 17925 *) 17926 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17927 ;; 17928 esac 17929 dynamic_linker='Win32 ld.exe' 17930 # FIXME: first we should search . and the directory the executable is in 17931 shlibpath_var=PATH 17932 ;; 17933 17934darwin* | rhapsody*) 17935 dynamic_linker="$host_os dyld" 17936 version_type=darwin 17937 need_lib_prefix=no 17938 need_version=no 17939 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17940 soname_spec='${libname}${release}${major}$shared_ext' 17941 shlibpath_overrides_runpath=yes 17942 shlibpath_var=DYLD_LIBRARY_PATH 17943 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17944 17945 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17946 ;; 17947 17948dgux*) 17949 version_type=linux 17950 need_lib_prefix=no 17951 need_version=no 17952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17953 soname_spec='${libname}${release}${shared_ext}$major' 17954 shlibpath_var=LD_LIBRARY_PATH 17955 ;; 17956 17957freebsd1*) 17958 dynamic_linker=no 17959 ;; 17960 17961freebsd* | dragonfly*) 17962 # DragonFly does not have aout. When/if they implement a new 17963 # versioning mechanism, adjust this. 17964 if test -x /usr/bin/objformat; then 17965 objformat=`/usr/bin/objformat` 17966 else 17967 case $host_os in 17968 freebsd[123]*) objformat=aout ;; 17969 *) objformat=elf ;; 17970 esac 17971 fi 17972 version_type=freebsd-$objformat 17973 case $version_type in 17974 freebsd-elf*) 17975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17976 need_version=no 17977 need_lib_prefix=no 17978 ;; 17979 freebsd-*) 17980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17981 need_version=yes 17982 ;; 17983 esac 17984 shlibpath_var=LD_LIBRARY_PATH 17985 case $host_os in 17986 freebsd2*) 17987 shlibpath_overrides_runpath=yes 17988 ;; 17989 freebsd3.[01]* | freebsdelf3.[01]*) 17990 shlibpath_overrides_runpath=yes 17991 hardcode_into_libs=yes 17992 ;; 17993 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17994 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17995 shlibpath_overrides_runpath=no 17996 hardcode_into_libs=yes 17997 ;; 17998 *) # from 4.6 on, and DragonFly 17999 shlibpath_overrides_runpath=yes 18000 hardcode_into_libs=yes 18001 ;; 18002 esac 18003 ;; 18004 18005gnu*) 18006 version_type=linux 18007 need_lib_prefix=no 18008 need_version=no 18009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18010 soname_spec='${libname}${release}${shared_ext}$major' 18011 shlibpath_var=LD_LIBRARY_PATH 18012 hardcode_into_libs=yes 18013 ;; 18014 18015hpux9* | hpux10* | hpux11*) 18016 # Give a soname corresponding to the major version so that dld.sl refuses to 18017 # link against other versions. 18018 version_type=sunos 18019 need_lib_prefix=no 18020 need_version=no 18021 case $host_cpu in 18022 ia64*) 18023 shrext_cmds='.so' 18024 hardcode_into_libs=yes 18025 dynamic_linker="$host_os dld.so" 18026 shlibpath_var=LD_LIBRARY_PATH 18027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18029 soname_spec='${libname}${release}${shared_ext}$major' 18030 if test "X$HPUX_IA64_MODE" = X32; then 18031 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18032 else 18033 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18034 fi 18035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18036 ;; 18037 hppa*64*) 18038 shrext_cmds='.sl' 18039 hardcode_into_libs=yes 18040 dynamic_linker="$host_os dld.sl" 18041 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18044 soname_spec='${libname}${release}${shared_ext}$major' 18045 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18047 ;; 18048 *) 18049 shrext_cmds='.sl' 18050 dynamic_linker="$host_os dld.sl" 18051 shlibpath_var=SHLIB_PATH 18052 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18054 soname_spec='${libname}${release}${shared_ext}$major' 18055 ;; 18056 esac 18057 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18058 postinstall_cmds='chmod 555 $lib' 18059 ;; 18060 18061interix[3-9]*) 18062 version_type=linux 18063 need_lib_prefix=no 18064 need_version=no 18065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18066 soname_spec='${libname}${release}${shared_ext}$major' 18067 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18068 shlibpath_var=LD_LIBRARY_PATH 18069 shlibpath_overrides_runpath=no 18070 hardcode_into_libs=yes 18071 ;; 18072 18073irix5* | irix6* | nonstopux*) 18074 case $host_os in 18075 nonstopux*) version_type=nonstopux ;; 18076 *) 18077 if test "$lt_cv_prog_gnu_ld" = yes; then 18078 version_type=linux 18079 else 18080 version_type=irix 18081 fi ;; 18082 esac 18083 need_lib_prefix=no 18084 need_version=no 18085 soname_spec='${libname}${release}${shared_ext}$major' 18086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18087 case $host_os in 18088 irix5* | nonstopux*) 18089 libsuff= shlibsuff= 18090 ;; 18091 *) 18092 case $LD in # libtool.m4 will add one of these switches to LD 18093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18094 libsuff= shlibsuff= libmagic=32-bit;; 18095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18096 libsuff=32 shlibsuff=N32 libmagic=N32;; 18097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18098 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18099 *) libsuff= shlibsuff= libmagic=never-match;; 18100 esac 18101 ;; 18102 esac 18103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18104 shlibpath_overrides_runpath=no 18105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18107 hardcode_into_libs=yes 18108 ;; 18109 18110# No shared lib support for Linux oldld, aout, or coff. 18111linux*oldld* | linux*aout* | linux*coff*) 18112 dynamic_linker=no 18113 ;; 18114 18115# This must be Linux ELF. 18116linux* | k*bsd*-gnu) 18117 version_type=linux 18118 need_lib_prefix=no 18119 need_version=no 18120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18121 soname_spec='${libname}${release}${shared_ext}$major' 18122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18123 shlibpath_var=LD_LIBRARY_PATH 18124 shlibpath_overrides_runpath=no 18125 # This implies no fast_install, which is unacceptable. 18126 # Some rework will be needed to allow for fast_install 18127 # before this can be enabled. 18128 hardcode_into_libs=yes 18129 18130 # Append ld.so.conf contents to the search path 18131 if test -f /etc/ld.so.conf; then 18132 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' ' '` 18133 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18134 fi 18135 18136 # We used to test for /lib/ld.so.1 and disable shared libraries on 18137 # powerpc, because MkLinux only supported shared libraries with the 18138 # GNU dynamic linker. Since this was broken with cross compilers, 18139 # most powerpc-linux boxes support dynamic linking these days and 18140 # people can always --disable-shared, the test was removed, and we 18141 # assume the GNU/Linux dynamic linker is in use. 18142 dynamic_linker='GNU/Linux ld.so' 18143 ;; 18144 18145netbsd*) 18146 version_type=sunos 18147 need_lib_prefix=no 18148 need_version=no 18149 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18152 dynamic_linker='NetBSD (a.out) ld.so' 18153 else 18154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18155 soname_spec='${libname}${release}${shared_ext}$major' 18156 dynamic_linker='NetBSD ld.elf_so' 18157 fi 18158 shlibpath_var=LD_LIBRARY_PATH 18159 shlibpath_overrides_runpath=yes 18160 hardcode_into_libs=yes 18161 ;; 18162 18163newsos6) 18164 version_type=linux 18165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18166 shlibpath_var=LD_LIBRARY_PATH 18167 shlibpath_overrides_runpath=yes 18168 ;; 18169 18170nto-qnx*) 18171 version_type=linux 18172 need_lib_prefix=no 18173 need_version=no 18174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18175 soname_spec='${libname}${release}${shared_ext}$major' 18176 shlibpath_var=LD_LIBRARY_PATH 18177 shlibpath_overrides_runpath=yes 18178 ;; 18179 18180openbsd*) 18181 version_type=sunos 18182 sys_lib_dlsearch_path_spec="/usr/lib" 18183 need_lib_prefix=no 18184 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18185 case $host_os in 18186 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18187 *) need_version=no ;; 18188 esac 18189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18191 shlibpath_var=LD_LIBRARY_PATH 18192 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18193 case $host_os in 18194 openbsd2.[89] | openbsd2.[89].*) 18195 shlibpath_overrides_runpath=no 18196 ;; 18197 *) 18198 shlibpath_overrides_runpath=yes 18199 ;; 18200 esac 18201 else 18202 shlibpath_overrides_runpath=yes 18203 fi 18204 ;; 18205 18206os2*) 18207 libname_spec='$name' 18208 shrext_cmds=".dll" 18209 need_lib_prefix=no 18210 library_names_spec='$libname${shared_ext} $libname.a' 18211 dynamic_linker='OS/2 ld.exe' 18212 shlibpath_var=LIBPATH 18213 ;; 18214 18215osf3* | osf4* | osf5*) 18216 version_type=osf 18217 need_lib_prefix=no 18218 need_version=no 18219 soname_spec='${libname}${release}${shared_ext}$major' 18220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18221 shlibpath_var=LD_LIBRARY_PATH 18222 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18223 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18224 ;; 18225 18226rdos*) 18227 dynamic_linker=no 18228 ;; 18229 18230solaris*) 18231 version_type=linux 18232 need_lib_prefix=no 18233 need_version=no 18234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18235 soname_spec='${libname}${release}${shared_ext}$major' 18236 shlibpath_var=LD_LIBRARY_PATH 18237 shlibpath_overrides_runpath=yes 18238 hardcode_into_libs=yes 18239 # ldd complains unless libraries are executable 18240 postinstall_cmds='chmod +x $lib' 18241 ;; 18242 18243sunos4*) 18244 version_type=sunos 18245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18246 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18247 shlibpath_var=LD_LIBRARY_PATH 18248 shlibpath_overrides_runpath=yes 18249 if test "$with_gnu_ld" = yes; then 18250 need_lib_prefix=no 18251 fi 18252 need_version=yes 18253 ;; 18254 18255sysv4 | sysv4.3*) 18256 version_type=linux 18257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18258 soname_spec='${libname}${release}${shared_ext}$major' 18259 shlibpath_var=LD_LIBRARY_PATH 18260 case $host_vendor in 18261 sni) 18262 shlibpath_overrides_runpath=no 18263 need_lib_prefix=no 18264 export_dynamic_flag_spec='${wl}-Blargedynsym' 18265 runpath_var=LD_RUN_PATH 18266 ;; 18267 siemens) 18268 need_lib_prefix=no 18269 ;; 18270 motorola) 18271 need_lib_prefix=no 18272 need_version=no 18273 shlibpath_overrides_runpath=no 18274 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18275 ;; 18276 esac 18277 ;; 18278 18279sysv4*MP*) 18280 if test -d /usr/nec ;then 18281 version_type=linux 18282 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18283 soname_spec='$libname${shared_ext}.$major' 18284 shlibpath_var=LD_LIBRARY_PATH 18285 fi 18286 ;; 18287 18288sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18289 version_type=freebsd-elf 18290 need_lib_prefix=no 18291 need_version=no 18292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18293 soname_spec='${libname}${release}${shared_ext}$major' 18294 shlibpath_var=LD_LIBRARY_PATH 18295 hardcode_into_libs=yes 18296 if test "$with_gnu_ld" = yes; then 18297 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18298 shlibpath_overrides_runpath=no 18299 else 18300 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18301 shlibpath_overrides_runpath=yes 18302 case $host_os in 18303 sco3.2v5*) 18304 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18305 ;; 18306 esac 18307 fi 18308 sys_lib_dlsearch_path_spec='/usr/lib' 18309 ;; 18310 18311uts4*) 18312 version_type=linux 18313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18314 soname_spec='${libname}${release}${shared_ext}$major' 18315 shlibpath_var=LD_LIBRARY_PATH 18316 ;; 18317 18318*) 18319 dynamic_linker=no 18320 ;; 18321esac 18322{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18323echo "${ECHO_T}$dynamic_linker" >&6; } 18324test "$dynamic_linker" = no && can_build_shared=no 18325 18326variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18327if test "$GCC" = yes; then 18328 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18329fi 18330 18331{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18332echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18333hardcode_action_GCJ= 18334if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18335 test -n "$runpath_var_GCJ" || \ 18336 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18337 18338 # We can hardcode non-existant directories. 18339 if test "$hardcode_direct_GCJ" != no && 18340 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18341 # have to relink, otherwise we might link with an installed library 18342 # when we should be linking with a yet-to-be-installed one 18343 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18344 test "$hardcode_minus_L_GCJ" != no; then 18345 # Linking always hardcodes the temporary library directory. 18346 hardcode_action_GCJ=relink 18347 else 18348 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18349 hardcode_action_GCJ=immediate 18350 fi 18351else 18352 # We cannot hardcode anything, or else we can only hardcode existing 18353 # directories. 18354 hardcode_action_GCJ=unsupported 18355fi 18356{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18357echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18358 18359if test "$hardcode_action_GCJ" = relink; then 18360 # Fast installation is not supported 18361 enable_fast_install=no 18362elif test "$shlibpath_overrides_runpath" = yes || 18363 test "$enable_shared" = no; then 18364 # Fast installation is not necessary 18365 enable_fast_install=needless 18366fi 18367 18368 18369# The else clause should only fire when bootstrapping the 18370# libtool distribution, otherwise you forgot to ship ltmain.sh 18371# with your package, and you will get complaints that there are 18372# no rules to generate ltmain.sh. 18373if test -f "$ltmain"; then 18374 # See if we are running on zsh, and set the options which allow our commands through 18375 # without removal of \ escapes. 18376 if test -n "${ZSH_VERSION+set}" ; then 18377 setopt NO_GLOB_SUBST 18378 fi 18379 # Now quote all the things that may contain metacharacters while being 18380 # careful not to overquote the AC_SUBSTed values. We take copies of the 18381 # variables and quote the copies for generation of the libtool script. 18382 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18383 SED SHELL STRIP \ 18384 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18385 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18386 deplibs_check_method reload_flag reload_cmds need_locks \ 18387 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18388 lt_cv_sys_global_symbol_to_c_name_address \ 18389 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18390 old_postinstall_cmds old_postuninstall_cmds \ 18391 compiler_GCJ \ 18392 CC_GCJ \ 18393 LD_GCJ \ 18394 lt_prog_compiler_wl_GCJ \ 18395 lt_prog_compiler_pic_GCJ \ 18396 lt_prog_compiler_static_GCJ \ 18397 lt_prog_compiler_no_builtin_flag_GCJ \ 18398 export_dynamic_flag_spec_GCJ \ 18399 thread_safe_flag_spec_GCJ \ 18400 whole_archive_flag_spec_GCJ \ 18401 enable_shared_with_static_runtimes_GCJ \ 18402 old_archive_cmds_GCJ \ 18403 old_archive_from_new_cmds_GCJ \ 18404 predep_objects_GCJ \ 18405 postdep_objects_GCJ \ 18406 predeps_GCJ \ 18407 postdeps_GCJ \ 18408 compiler_lib_search_path_GCJ \ 18409 archive_cmds_GCJ \ 18410 archive_expsym_cmds_GCJ \ 18411 postinstall_cmds_GCJ \ 18412 postuninstall_cmds_GCJ \ 18413 old_archive_from_expsyms_cmds_GCJ \ 18414 allow_undefined_flag_GCJ \ 18415 no_undefined_flag_GCJ \ 18416 export_symbols_cmds_GCJ \ 18417 hardcode_libdir_flag_spec_GCJ \ 18418 hardcode_libdir_flag_spec_ld_GCJ \ 18419 hardcode_libdir_separator_GCJ \ 18420 hardcode_automatic_GCJ \ 18421 module_cmds_GCJ \ 18422 module_expsym_cmds_GCJ \ 18423 lt_cv_prog_compiler_c_o_GCJ \ 18424 fix_srcfile_path_GCJ \ 18425 exclude_expsyms_GCJ \ 18426 include_expsyms_GCJ; do 18427 18428 case $var in 18429 old_archive_cmds_GCJ | \ 18430 old_archive_from_new_cmds_GCJ | \ 18431 archive_cmds_GCJ | \ 18432 archive_expsym_cmds_GCJ | \ 18433 module_cmds_GCJ | \ 18434 module_expsym_cmds_GCJ | \ 18435 old_archive_from_expsyms_cmds_GCJ | \ 18436 export_symbols_cmds_GCJ | \ 18437 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18438 postinstall_cmds | postuninstall_cmds | \ 18439 old_postinstall_cmds | old_postuninstall_cmds | \ 18440 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18441 # Double-quote double-evaled strings. 18442 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18443 ;; 18444 *) 18445 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18446 ;; 18447 esac 18448 done 18449 18450 case $lt_echo in 18451 *'\$0 --fallback-echo"') 18452 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18453 ;; 18454 esac 18455 18456cfgfile="$ofile" 18457 18458 cat <<__EOF__ >> "$cfgfile" 18459# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18460 18461# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18462 18463# Shell to use when invoking shell scripts. 18464SHELL=$lt_SHELL 18465 18466# Whether or not to build shared libraries. 18467build_libtool_libs=$enable_shared 18468 18469# Whether or not to build static libraries. 18470build_old_libs=$enable_static 18471 18472# Whether or not to add -lc for building shared libraries. 18473build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18474 18475# Whether or not to disallow shared libs when runtime libs are static 18476allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18477 18478# Whether or not to optimize for fast installation. 18479fast_install=$enable_fast_install 18480 18481# The host system. 18482host_alias=$host_alias 18483host=$host 18484host_os=$host_os 18485 18486# The build system. 18487build_alias=$build_alias 18488build=$build 18489build_os=$build_os 18490 18491# An echo program that does not interpret backslashes. 18492echo=$lt_echo 18493 18494# The archiver. 18495AR=$lt_AR 18496AR_FLAGS=$lt_AR_FLAGS 18497 18498# A C compiler. 18499LTCC=$lt_LTCC 18500 18501# LTCC compiler flags. 18502LTCFLAGS=$lt_LTCFLAGS 18503 18504# A language-specific compiler. 18505CC=$lt_compiler_GCJ 18506 18507# Is the compiler the GNU C compiler? 18508with_gcc=$GCC_GCJ 18509 18510# An ERE matcher. 18511EGREP=$lt_EGREP 18512 18513# The linker used to build libraries. 18514LD=$lt_LD_GCJ 18515 18516# Whether we need hard or soft links. 18517LN_S=$lt_LN_S 18518 18519# A BSD-compatible nm program. 18520NM=$lt_NM 18521 18522# A symbol stripping program 18523STRIP=$lt_STRIP 18524 18525# Used to examine libraries when file_magic_cmd begins "file" 18526MAGIC_CMD=$MAGIC_CMD 18527 18528# Used on cygwin: DLL creation program. 18529DLLTOOL="$DLLTOOL" 18530 18531# Used on cygwin: object dumper. 18532OBJDUMP="$OBJDUMP" 18533 18534# Used on cygwin: assembler. 18535AS="$AS" 18536 18537# The name of the directory that contains temporary libtool files. 18538objdir=$objdir 18539 18540# How to create reloadable object files. 18541reload_flag=$lt_reload_flag 18542reload_cmds=$lt_reload_cmds 18543 18544# How to pass a linker flag through the compiler. 18545wl=$lt_lt_prog_compiler_wl_GCJ 18546 18547# Object file suffix (normally "o"). 18548objext="$ac_objext" 18549 18550# Old archive suffix (normally "a"). 18551libext="$libext" 18552 18553# Shared library suffix (normally ".so"). 18554shrext_cmds='$shrext_cmds' 18555 18556# Executable file suffix (normally ""). 18557exeext="$exeext" 18558 18559# Additional compiler flags for building library objects. 18560pic_flag=$lt_lt_prog_compiler_pic_GCJ 18561pic_mode=$pic_mode 18562 18563# What is the maximum length of a command? 18564max_cmd_len=$lt_cv_sys_max_cmd_len 18565 18566# Does compiler simultaneously support -c and -o options? 18567compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18568 18569# Must we lock files when doing compilation? 18570need_locks=$lt_need_locks 18571 18572# Do we need the lib prefix for modules? 18573need_lib_prefix=$need_lib_prefix 18574 18575# Do we need a version for libraries? 18576need_version=$need_version 18577 18578# Whether dlopen is supported. 18579dlopen_support=$enable_dlopen 18580 18581# Whether dlopen of programs is supported. 18582dlopen_self=$enable_dlopen_self 18583 18584# Whether dlopen of statically linked programs is supported. 18585dlopen_self_static=$enable_dlopen_self_static 18586 18587# Compiler flag to prevent dynamic linking. 18588link_static_flag=$lt_lt_prog_compiler_static_GCJ 18589 18590# Compiler flag to turn off builtin functions. 18591no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 18592 18593# Compiler flag to allow reflexive dlopens. 18594export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 18595 18596# Compiler flag to generate shared objects directly from archives. 18597whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 18598 18599# Compiler flag to generate thread-safe objects. 18600thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 18601 18602# Library versioning type. 18603version_type=$version_type 18604 18605# Format of library name prefix. 18606libname_spec=$lt_libname_spec 18607 18608# List of archive names. First name is the real one, the rest are links. 18609# The last name is the one that the linker finds with -lNAME. 18610library_names_spec=$lt_library_names_spec 18611 18612# The coded name of the library, if different from the real name. 18613soname_spec=$lt_soname_spec 18614 18615# Commands used to build and install an old-style archive. 18616RANLIB=$lt_RANLIB 18617old_archive_cmds=$lt_old_archive_cmds_GCJ 18618old_postinstall_cmds=$lt_old_postinstall_cmds 18619old_postuninstall_cmds=$lt_old_postuninstall_cmds 18620 18621# Create an old-style archive from a shared archive. 18622old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 18623 18624# Create a temporary old-style archive to link instead of a shared archive. 18625old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 18626 18627# Commands used to build and install a shared archive. 18628archive_cmds=$lt_archive_cmds_GCJ 18629archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 18630postinstall_cmds=$lt_postinstall_cmds 18631postuninstall_cmds=$lt_postuninstall_cmds 18632 18633# Commands used to build a loadable module (assumed same as above if empty) 18634module_cmds=$lt_module_cmds_GCJ 18635module_expsym_cmds=$lt_module_expsym_cmds_GCJ 18636 18637# Commands to strip libraries. 18638old_striplib=$lt_old_striplib 18639striplib=$lt_striplib 18640 18641# Dependencies to place before the objects being linked to create a 18642# shared library. 18643predep_objects=$lt_predep_objects_GCJ 18644 18645# Dependencies to place after the objects being linked to create a 18646# shared library. 18647postdep_objects=$lt_postdep_objects_GCJ 18648 18649# Dependencies to place before the objects being linked to create a 18650# shared library. 18651predeps=$lt_predeps_GCJ 18652 18653# Dependencies to place after the objects being linked to create a 18654# shared library. 18655postdeps=$lt_postdeps_GCJ 18656 18657# The library search path used internally by the compiler when linking 18658# a shared library. 18659compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 18660 18661# Method to check whether dependent libraries are shared objects. 18662deplibs_check_method=$lt_deplibs_check_method 18663 18664# Command to use when deplibs_check_method == file_magic. 18665file_magic_cmd=$lt_file_magic_cmd 18666 18667# Flag that allows shared libraries with undefined symbols to be built. 18668allow_undefined_flag=$lt_allow_undefined_flag_GCJ 18669 18670# Flag that forces no undefined symbols. 18671no_undefined_flag=$lt_no_undefined_flag_GCJ 18672 18673# Commands used to finish a libtool library installation in a directory. 18674finish_cmds=$lt_finish_cmds 18675 18676# Same as above, but a single script fragment to be evaled but not shown. 18677finish_eval=$lt_finish_eval 18678 18679# Take the output of nm and produce a listing of raw symbols and C names. 18680global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18681 18682# Transform the output of nm in a proper C declaration 18683global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18684 18685# Transform the output of nm in a C name address pair 18686global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18687 18688# This is the shared library runtime path variable. 18689runpath_var=$runpath_var 18690 18691# This is the shared library path variable. 18692shlibpath_var=$shlibpath_var 18693 18694# Is shlibpath searched before the hard-coded library search path? 18695shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18696 18697# How to hardcode a shared library path into an executable. 18698hardcode_action=$hardcode_action_GCJ 18699 18700# Whether we should hardcode library paths into libraries. 18701hardcode_into_libs=$hardcode_into_libs 18702 18703# Flag to hardcode \$libdir into a binary during linking. 18704# This must work even if \$libdir does not exist. 18705hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 18706 18707# If ld is used when linking, flag to hardcode \$libdir into 18708# a binary during linking. This must work even if \$libdir does 18709# not exist. 18710hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 18711 18712# Whether we need a single -rpath flag with a separated argument. 18713hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 18714 18715# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18716# resulting binary. 18717hardcode_direct=$hardcode_direct_GCJ 18718 18719# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18720# resulting binary. 18721hardcode_minus_L=$hardcode_minus_L_GCJ 18722 18723# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18724# the resulting binary. 18725hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18726 18727# Set to yes if building a shared library automatically hardcodes DIR into the library 18728# and all subsequent libraries and executables linked against it. 18729hardcode_automatic=$hardcode_automatic_GCJ 18730 18731# Variables whose values should be saved in libtool wrapper scripts and 18732# restored at relink time. 18733variables_saved_for_relink="$variables_saved_for_relink" 18734 18735# Whether libtool must link a program against all its dependency libraries. 18736link_all_deplibs=$link_all_deplibs_GCJ 18737 18738# Compile-time system search path for libraries 18739sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18740 18741# Run-time system search path for libraries 18742sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18743 18744# Fix the shell variable \$srcfile for the compiler. 18745fix_srcfile_path=$lt_fix_srcfile_path 18746 18747# Set to yes if exported symbols are required. 18748always_export_symbols=$always_export_symbols_GCJ 18749 18750# The commands to list exported symbols. 18751export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18752 18753# The commands to extract the exported symbol list from a shared archive. 18754extract_expsyms_cmds=$lt_extract_expsyms_cmds 18755 18756# Symbols that should not be listed in the preloaded symbols. 18757exclude_expsyms=$lt_exclude_expsyms_GCJ 18758 18759# Symbols that must always be exported. 18760include_expsyms=$lt_include_expsyms_GCJ 18761 18762# ### END LIBTOOL TAG CONFIG: $tagname 18763 18764__EOF__ 18765 18766 18767else 18768 # If there is no Makefile yet, we rely on a make rule to execute 18769 # `config.status --recheck' to rerun these tests and create the 18770 # libtool script then. 18771 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18772 if test -f "$ltmain_in"; then 18773 test -f Makefile && make "$ltmain" 18774 fi 18775fi 18776 18777 18778ac_ext=c 18779ac_cpp='$CPP $CPPFLAGS' 18780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18782ac_compiler_gnu=$ac_cv_c_compiler_gnu 18783 18784CC="$lt_save_CC" 18785 18786 else 18787 tagname="" 18788 fi 18789 ;; 18790 18791 RC) 18792 18793 18794# Source file extension for RC test sources. 18795ac_ext=rc 18796 18797# Object file extension for compiled RC test sources. 18798objext=o 18799objext_RC=$objext 18800 18801# Code to be used in simple compile tests 18802lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 18803 18804# Code to be used in simple link tests 18805lt_simple_link_test_code="$lt_simple_compile_test_code" 18806 18807# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18808 18809# If no C compiler was specified, use CC. 18810LTCC=${LTCC-"$CC"} 18811 18812# If no C compiler flags were specified, use CFLAGS. 18813LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18814 18815# Allow CC to be a program name with arguments. 18816compiler=$CC 18817 18818 18819# save warnings/boilerplate of simple test code 18820ac_outfile=conftest.$ac_objext 18821echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18822eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18823_lt_compiler_boilerplate=`cat conftest.err` 18824$rm conftest* 18825 18826ac_outfile=conftest.$ac_objext 18827echo "$lt_simple_link_test_code" >conftest.$ac_ext 18828eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18829_lt_linker_boilerplate=`cat conftest.err` 18830$rm conftest* 18831 18832 18833# Allow CC to be a program name with arguments. 18834lt_save_CC="$CC" 18835CC=${RC-"windres"} 18836compiler=$CC 18837compiler_RC=$CC 18838for cc_temp in $compiler""; do 18839 case $cc_temp in 18840 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18841 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18842 \-*) ;; 18843 *) break;; 18844 esac 18845done 18846cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 18847 18848lt_cv_prog_compiler_c_o_RC=yes 18849 18850# The else clause should only fire when bootstrapping the 18851# libtool distribution, otherwise you forgot to ship ltmain.sh 18852# with your package, and you will get complaints that there are 18853# no rules to generate ltmain.sh. 18854if test -f "$ltmain"; then 18855 # See if we are running on zsh, and set the options which allow our commands through 18856 # without removal of \ escapes. 18857 if test -n "${ZSH_VERSION+set}" ; then 18858 setopt NO_GLOB_SUBST 18859 fi 18860 # Now quote all the things that may contain metacharacters while being 18861 # careful not to overquote the AC_SUBSTed values. We take copies of the 18862 # variables and quote the copies for generation of the libtool script. 18863 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18864 SED SHELL STRIP \ 18865 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18866 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18867 deplibs_check_method reload_flag reload_cmds need_locks \ 18868 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18869 lt_cv_sys_global_symbol_to_c_name_address \ 18870 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18871 old_postinstall_cmds old_postuninstall_cmds \ 18872 compiler_RC \ 18873 CC_RC \ 18874 LD_RC \ 18875 lt_prog_compiler_wl_RC \ 18876 lt_prog_compiler_pic_RC \ 18877 lt_prog_compiler_static_RC \ 18878 lt_prog_compiler_no_builtin_flag_RC \ 18879 export_dynamic_flag_spec_RC \ 18880 thread_safe_flag_spec_RC \ 18881 whole_archive_flag_spec_RC \ 18882 enable_shared_with_static_runtimes_RC \ 18883 old_archive_cmds_RC \ 18884 old_archive_from_new_cmds_RC \ 18885 predep_objects_RC \ 18886 postdep_objects_RC \ 18887 predeps_RC \ 18888 postdeps_RC \ 18889 compiler_lib_search_path_RC \ 18890 archive_cmds_RC \ 18891 archive_expsym_cmds_RC \ 18892 postinstall_cmds_RC \ 18893 postuninstall_cmds_RC \ 18894 old_archive_from_expsyms_cmds_RC \ 18895 allow_undefined_flag_RC \ 18896 no_undefined_flag_RC \ 18897 export_symbols_cmds_RC \ 18898 hardcode_libdir_flag_spec_RC \ 18899 hardcode_libdir_flag_spec_ld_RC \ 18900 hardcode_libdir_separator_RC \ 18901 hardcode_automatic_RC \ 18902 module_cmds_RC \ 18903 module_expsym_cmds_RC \ 18904 lt_cv_prog_compiler_c_o_RC \ 18905 fix_srcfile_path_RC \ 18906 exclude_expsyms_RC \ 18907 include_expsyms_RC; do 18908 18909 case $var in 18910 old_archive_cmds_RC | \ 18911 old_archive_from_new_cmds_RC | \ 18912 archive_cmds_RC | \ 18913 archive_expsym_cmds_RC | \ 18914 module_cmds_RC | \ 18915 module_expsym_cmds_RC | \ 18916 old_archive_from_expsyms_cmds_RC | \ 18917 export_symbols_cmds_RC | \ 18918 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18919 postinstall_cmds | postuninstall_cmds | \ 18920 old_postinstall_cmds | old_postuninstall_cmds | \ 18921 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18922 # Double-quote double-evaled strings. 18923 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18924 ;; 18925 *) 18926 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18927 ;; 18928 esac 18929 done 18930 18931 case $lt_echo in 18932 *'\$0 --fallback-echo"') 18933 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18934 ;; 18935 esac 18936 18937cfgfile="$ofile" 18938 18939 cat <<__EOF__ >> "$cfgfile" 18940# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18941 18942# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18943 18944# Shell to use when invoking shell scripts. 18945SHELL=$lt_SHELL 18946 18947# Whether or not to build shared libraries. 18948build_libtool_libs=$enable_shared 18949 18950# Whether or not to build static libraries. 18951build_old_libs=$enable_static 18952 18953# Whether or not to add -lc for building shared libraries. 18954build_libtool_need_lc=$archive_cmds_need_lc_RC 18955 18956# Whether or not to disallow shared libs when runtime libs are static 18957allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18958 18959# Whether or not to optimize for fast installation. 18960fast_install=$enable_fast_install 18961 18962# The host system. 18963host_alias=$host_alias 18964host=$host 18965host_os=$host_os 18966 18967# The build system. 18968build_alias=$build_alias 18969build=$build 18970build_os=$build_os 18971 18972# An echo program that does not interpret backslashes. 18973echo=$lt_echo 18974 18975# The archiver. 18976AR=$lt_AR 18977AR_FLAGS=$lt_AR_FLAGS 18978 18979# A C compiler. 18980LTCC=$lt_LTCC 18981 18982# LTCC compiler flags. 18983LTCFLAGS=$lt_LTCFLAGS 18984 18985# A language-specific compiler. 18986CC=$lt_compiler_RC 18987 18988# Is the compiler the GNU C compiler? 18989with_gcc=$GCC_RC 18990 18991# An ERE matcher. 18992EGREP=$lt_EGREP 18993 18994# The linker used to build libraries. 18995LD=$lt_LD_RC 18996 18997# Whether we need hard or soft links. 18998LN_S=$lt_LN_S 18999 19000# A BSD-compatible nm program. 19001NM=$lt_NM 19002 19003# A symbol stripping program 19004STRIP=$lt_STRIP 19005 19006# Used to examine libraries when file_magic_cmd begins "file" 19007MAGIC_CMD=$MAGIC_CMD 19008 19009# Used on cygwin: DLL creation program. 19010DLLTOOL="$DLLTOOL" 19011 19012# Used on cygwin: object dumper. 19013OBJDUMP="$OBJDUMP" 19014 19015# Used on cygwin: assembler. 19016AS="$AS" 19017 19018# The name of the directory that contains temporary libtool files. 19019objdir=$objdir 19020 19021# How to create reloadable object files. 19022reload_flag=$lt_reload_flag 19023reload_cmds=$lt_reload_cmds 19024 19025# How to pass a linker flag through the compiler. 19026wl=$lt_lt_prog_compiler_wl_RC 19027 19028# Object file suffix (normally "o"). 19029objext="$ac_objext" 19030 19031# Old archive suffix (normally "a"). 19032libext="$libext" 19033 19034# Shared library suffix (normally ".so"). 19035shrext_cmds='$shrext_cmds' 19036 19037# Executable file suffix (normally ""). 19038exeext="$exeext" 19039 19040# Additional compiler flags for building library objects. 19041pic_flag=$lt_lt_prog_compiler_pic_RC 19042pic_mode=$pic_mode 19043 19044# What is the maximum length of a command? 19045max_cmd_len=$lt_cv_sys_max_cmd_len 19046 19047# Does compiler simultaneously support -c and -o options? 19048compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19049 19050# Must we lock files when doing compilation? 19051need_locks=$lt_need_locks 19052 19053# Do we need the lib prefix for modules? 19054need_lib_prefix=$need_lib_prefix 19055 19056# Do we need a version for libraries? 19057need_version=$need_version 19058 19059# Whether dlopen is supported. 19060dlopen_support=$enable_dlopen 19061 19062# Whether dlopen of programs is supported. 19063dlopen_self=$enable_dlopen_self 19064 19065# Whether dlopen of statically linked programs is supported. 19066dlopen_self_static=$enable_dlopen_self_static 19067 19068# Compiler flag to prevent dynamic linking. 19069link_static_flag=$lt_lt_prog_compiler_static_RC 19070 19071# Compiler flag to turn off builtin functions. 19072no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19073 19074# Compiler flag to allow reflexive dlopens. 19075export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19076 19077# Compiler flag to generate shared objects directly from archives. 19078whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19079 19080# Compiler flag to generate thread-safe objects. 19081thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19082 19083# Library versioning type. 19084version_type=$version_type 19085 19086# Format of library name prefix. 19087libname_spec=$lt_libname_spec 19088 19089# List of archive names. First name is the real one, the rest are links. 19090# The last name is the one that the linker finds with -lNAME. 19091library_names_spec=$lt_library_names_spec 19092 19093# The coded name of the library, if different from the real name. 19094soname_spec=$lt_soname_spec 19095 19096# Commands used to build and install an old-style archive. 19097RANLIB=$lt_RANLIB 19098old_archive_cmds=$lt_old_archive_cmds_RC 19099old_postinstall_cmds=$lt_old_postinstall_cmds 19100old_postuninstall_cmds=$lt_old_postuninstall_cmds 19101 19102# Create an old-style archive from a shared archive. 19103old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19104 19105# Create a temporary old-style archive to link instead of a shared archive. 19106old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19107 19108# Commands used to build and install a shared archive. 19109archive_cmds=$lt_archive_cmds_RC 19110archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19111postinstall_cmds=$lt_postinstall_cmds 19112postuninstall_cmds=$lt_postuninstall_cmds 19113 19114# Commands used to build a loadable module (assumed same as above if empty) 19115module_cmds=$lt_module_cmds_RC 19116module_expsym_cmds=$lt_module_expsym_cmds_RC 19117 19118# Commands to strip libraries. 19119old_striplib=$lt_old_striplib 19120striplib=$lt_striplib 19121 19122# Dependencies to place before the objects being linked to create a 19123# shared library. 19124predep_objects=$lt_predep_objects_RC 19125 19126# Dependencies to place after the objects being linked to create a 19127# shared library. 19128postdep_objects=$lt_postdep_objects_RC 19129 19130# Dependencies to place before the objects being linked to create a 19131# shared library. 19132predeps=$lt_predeps_RC 19133 19134# Dependencies to place after the objects being linked to create a 19135# shared library. 19136postdeps=$lt_postdeps_RC 19137 19138# The library search path used internally by the compiler when linking 19139# a shared library. 19140compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19141 19142# Method to check whether dependent libraries are shared objects. 19143deplibs_check_method=$lt_deplibs_check_method 19144 19145# Command to use when deplibs_check_method == file_magic. 19146file_magic_cmd=$lt_file_magic_cmd 19147 19148# Flag that allows shared libraries with undefined symbols to be built. 19149allow_undefined_flag=$lt_allow_undefined_flag_RC 19150 19151# Flag that forces no undefined symbols. 19152no_undefined_flag=$lt_no_undefined_flag_RC 19153 19154# Commands used to finish a libtool library installation in a directory. 19155finish_cmds=$lt_finish_cmds 19156 19157# Same as above, but a single script fragment to be evaled but not shown. 19158finish_eval=$lt_finish_eval 19159 19160# Take the output of nm and produce a listing of raw symbols and C names. 19161global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19162 19163# Transform the output of nm in a proper C declaration 19164global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19165 19166# Transform the output of nm in a C name address pair 19167global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19168 19169# This is the shared library runtime path variable. 19170runpath_var=$runpath_var 19171 19172# This is the shared library path variable. 19173shlibpath_var=$shlibpath_var 19174 19175# Is shlibpath searched before the hard-coded library search path? 19176shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19177 19178# How to hardcode a shared library path into an executable. 19179hardcode_action=$hardcode_action_RC 19180 19181# Whether we should hardcode library paths into libraries. 19182hardcode_into_libs=$hardcode_into_libs 19183 19184# Flag to hardcode \$libdir into a binary during linking. 19185# This must work even if \$libdir does not exist. 19186hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19187 19188# If ld is used when linking, flag to hardcode \$libdir into 19189# a binary during linking. This must work even if \$libdir does 19190# not exist. 19191hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19192 19193# Whether we need a single -rpath flag with a separated argument. 19194hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19195 19196# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19197# resulting binary. 19198hardcode_direct=$hardcode_direct_RC 19199 19200# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19201# resulting binary. 19202hardcode_minus_L=$hardcode_minus_L_RC 19203 19204# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19205# the resulting binary. 19206hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19207 19208# Set to yes if building a shared library automatically hardcodes DIR into the library 19209# and all subsequent libraries and executables linked against it. 19210hardcode_automatic=$hardcode_automatic_RC 19211 19212# Variables whose values should be saved in libtool wrapper scripts and 19213# restored at relink time. 19214variables_saved_for_relink="$variables_saved_for_relink" 19215 19216# Whether libtool must link a program against all its dependency libraries. 19217link_all_deplibs=$link_all_deplibs_RC 19218 19219# Compile-time system search path for libraries 19220sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19221 19222# Run-time system search path for libraries 19223sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19224 19225# Fix the shell variable \$srcfile for the compiler. 19226fix_srcfile_path=$lt_fix_srcfile_path 19227 19228# Set to yes if exported symbols are required. 19229always_export_symbols=$always_export_symbols_RC 19230 19231# The commands to list exported symbols. 19232export_symbols_cmds=$lt_export_symbols_cmds_RC 19233 19234# The commands to extract the exported symbol list from a shared archive. 19235extract_expsyms_cmds=$lt_extract_expsyms_cmds 19236 19237# Symbols that should not be listed in the preloaded symbols. 19238exclude_expsyms=$lt_exclude_expsyms_RC 19239 19240# Symbols that must always be exported. 19241include_expsyms=$lt_include_expsyms_RC 19242 19243# ### END LIBTOOL TAG CONFIG: $tagname 19244 19245__EOF__ 19246 19247 19248else 19249 # If there is no Makefile yet, we rely on a make rule to execute 19250 # `config.status --recheck' to rerun these tests and create the 19251 # libtool script then. 19252 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19253 if test -f "$ltmain_in"; then 19254 test -f Makefile && make "$ltmain" 19255 fi 19256fi 19257 19258 19259ac_ext=c 19260ac_cpp='$CPP $CPPFLAGS' 19261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19263ac_compiler_gnu=$ac_cv_c_compiler_gnu 19264 19265CC="$lt_save_CC" 19266 19267 ;; 19268 19269 *) 19270 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19271echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19272 { (exit 1); exit 1; }; } 19273 ;; 19274 esac 19275 19276 # Append the new tag name to the list of available tags. 19277 if test -n "$tagname" ; then 19278 available_tags="$available_tags $tagname" 19279 fi 19280 fi 19281 done 19282 IFS="$lt_save_ifs" 19283 19284 # Now substitute the updated list of available tags. 19285 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19286 mv "${ofile}T" "$ofile" 19287 chmod +x "$ofile" 19288 else 19289 rm -f "${ofile}T" 19290 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19291echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19292 { (exit 1); exit 1; }; } 19293 fi 19294fi 19295 19296 19297 19298# This can be used to rebuild libtool when needed 19299LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19300 19301# Always use our own libtool. 19302LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19303 19304# Prevent multiple expansion 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 if test "X$prefix" = "XNONE"; then 19327 acl_final_prefix="$ac_default_prefix" 19328 else 19329 acl_final_prefix="$prefix" 19330 fi 19331 if test "X$exec_prefix" = "XNONE"; then 19332 acl_final_exec_prefix='${prefix}' 19333 else 19334 acl_final_exec_prefix="$exec_prefix" 19335 fi 19336 acl_save_prefix="$prefix" 19337 prefix="$acl_final_prefix" 19338 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 19339 prefix="$acl_save_prefix" 19340 19341 19342# Check whether --with-gnu-ld was given. 19343if test "${with_gnu_ld+set}" = set; then 19344 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 19345else 19346 with_gnu_ld=no 19347fi 19348 19349# Prepare PATH_SEPARATOR. 19350# The user is always right. 19351if test "${PATH_SEPARATOR+set}" != set; then 19352 echo "#! /bin/sh" >conf$$.sh 19353 echo "exit 0" >>conf$$.sh 19354 chmod +x conf$$.sh 19355 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19356 PATH_SEPARATOR=';' 19357 else 19358 PATH_SEPARATOR=: 19359 fi 19360 rm -f conf$$.sh 19361fi 19362ac_prog=ld 19363if test "$GCC" = yes; then 19364 # Check if gcc -print-prog-name=ld gives a path. 19365 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 19366echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } 19367 case $host in 19368 *-*-mingw*) 19369 # gcc leaves a trailing carriage return which upsets mingw 19370 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 19371 *) 19372 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 19373 esac 19374 case $ac_prog in 19375 # Accept absolute paths. 19376 [\\/]* | [A-Za-z]:[\\/]*) 19377 re_direlt='/[^/][^/]*/\.\./' 19378 # Canonicalize the path of ld 19379 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 19380 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 19381 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 19382 done 19383 test -z "$LD" && LD="$ac_prog" 19384 ;; 19385 "") 19386 # If it fails, then pretend we aren't using GCC. 19387 ac_prog=ld 19388 ;; 19389 *) 19390 # If it is relative, then search for the first ld in PATH. 19391 with_gnu_ld=unknown 19392 ;; 19393 esac 19394elif test "$with_gnu_ld" = yes; then 19395 { echo "$as_me:$LINENO: checking for GNU ld" >&5 19396echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 19397else 19398 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 19399echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 19400fi 19401if test "${acl_cv_path_LD+set}" = set; then 19402 echo $ECHO_N "(cached) $ECHO_C" >&6 19403else 19404 if test -z "$LD"; then 19405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 19406 for ac_dir in $PATH; do 19407 test -z "$ac_dir" && ac_dir=. 19408 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 19409 acl_cv_path_LD="$ac_dir/$ac_prog" 19410 # Check to see if the program is GNU ld. I'd rather use --version, 19411 # but apparently some GNU ld's only accept -v. 19412 # Break only if it was the GNU/non-GNU ld that we prefer. 19413 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 19414 *GNU* | *'with BFD'*) 19415 test "$with_gnu_ld" != no && break ;; 19416 *) 19417 test "$with_gnu_ld" != yes && break ;; 19418 esac 19419 fi 19420 done 19421 IFS="$ac_save_ifs" 19422else 19423 acl_cv_path_LD="$LD" # Let the user override the test with a path. 19424fi 19425fi 19426 19427LD="$acl_cv_path_LD" 19428if test -n "$LD"; then 19429 { echo "$as_me:$LINENO: result: $LD" >&5 19430echo "${ECHO_T}$LD" >&6; } 19431else 19432 { echo "$as_me:$LINENO: result: no" >&5 19433echo "${ECHO_T}no" >&6; } 19434fi 19435test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 19436echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 19437 { (exit 1); exit 1; }; } 19438{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 19439echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 19440if test "${acl_cv_prog_gnu_ld+set}" = set; then 19441 echo $ECHO_N "(cached) $ECHO_C" >&6 19442else 19443 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 19444case `$LD -v 2>&1 </dev/null` in 19445*GNU* | *'with BFD'*) 19446 acl_cv_prog_gnu_ld=yes ;; 19447*) 19448 acl_cv_prog_gnu_ld=no ;; 19449esac 19450fi 19451{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 19452echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } 19453with_gnu_ld=$acl_cv_prog_gnu_ld 19454 19455 19456 19457 19458 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 19459echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } 19460if test "${acl_cv_rpath+set}" = set; then 19461 echo $ECHO_N "(cached) $ECHO_C" >&6 19462else 19463 19464 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 19465 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 19466 . ./conftest.sh 19467 rm -f ./conftest.sh 19468 acl_cv_rpath=done 19469 19470fi 19471{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 19472echo "${ECHO_T}$acl_cv_rpath" >&6; } 19473 wl="$acl_cv_wl" 19474 acl_libext="$acl_cv_libext" 19475 acl_shlibext="$acl_cv_shlibext" 19476 acl_libname_spec="$acl_cv_libname_spec" 19477 acl_library_names_spec="$acl_cv_library_names_spec" 19478 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 19479 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 19480 acl_hardcode_direct="$acl_cv_hardcode_direct" 19481 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 19482 # Check whether --enable-rpath was given. 19483if test "${enable_rpath+set}" = set; then 19484 enableval=$enable_rpath; : 19485else 19486 enable_rpath=yes 19487fi 19488 19489 19490 19491 acl_libdirstem=lib 19492 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 19493 if test -n "$searchpath"; then 19494 acl_save_IFS="${IFS= }"; IFS=":" 19495 for searchdir in $searchpath; do 19496 if test -d "$searchdir"; then 19497 case "$searchdir" in 19498 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 19499 *) searchdir=`cd "$searchdir" && pwd` 19500 case "$searchdir" in 19501 */lib64 ) acl_libdirstem=lib64 ;; 19502 esac ;; 19503 esac 19504 fi 19505 done 19506 IFS="$acl_save_IFS" 19507 fi 19508 19509 19510 19511 19512 19513 19514 { echo "$as_me:$LINENO: checking how to link with librpathx" >&5 19515echo $ECHO_N "checking how to link with librpathx... $ECHO_C" >&6; } 19516if test "${ac_cv_librpathx_libs+set}" = set; then 19517 echo $ECHO_N "(cached) $ECHO_C" >&6 19518else 19519 19520 19521 19522 19523 19524 use_additional=yes 19525 19526 acl_save_prefix="$prefix" 19527 prefix="$acl_final_prefix" 19528 acl_save_exec_prefix="$exec_prefix" 19529 exec_prefix="$acl_final_exec_prefix" 19530 19531 eval additional_includedir=\"$includedir\" 19532 eval additional_libdir=\"$libdir\" 19533 19534 exec_prefix="$acl_save_exec_prefix" 19535 prefix="$acl_save_prefix" 19536 19537 19538# Check whether --with-librpathx-prefix was given. 19539if test "${with_librpathx_prefix+set}" = set; then 19540 withval=$with_librpathx_prefix; 19541 if test "X$withval" = "Xno"; then 19542 use_additional=no 19543 else 19544 if test "X$withval" = "X"; then 19545 19546 acl_save_prefix="$prefix" 19547 prefix="$acl_final_prefix" 19548 acl_save_exec_prefix="$exec_prefix" 19549 exec_prefix="$acl_final_exec_prefix" 19550 19551 eval additional_includedir=\"$includedir\" 19552 eval additional_libdir=\"$libdir\" 19553 19554 exec_prefix="$acl_save_exec_prefix" 19555 prefix="$acl_save_prefix" 19556 19557 else 19558 additional_includedir="$withval/include" 19559 additional_libdir="$withval/$acl_libdirstem" 19560 fi 19561 fi 19562 19563fi 19564 19565 LIBRPATHX= 19566 LTLIBRPATHX= 19567 INCRPATHX= 19568 LIBRPATHX_PREFIX= 19569 rpathdirs= 19570 ltrpathdirs= 19571 names_already_handled= 19572 names_next_round='rpathx ' 19573 while test -n "$names_next_round"; do 19574 names_this_round="$names_next_round" 19575 names_next_round= 19576 for name in $names_this_round; do 19577 already_handled= 19578 for n in $names_already_handled; do 19579 if test "$n" = "$name"; then 19580 already_handled=yes 19581 break 19582 fi 19583 done 19584 if test -z "$already_handled"; then 19585 names_already_handled="$names_already_handled $name" 19586 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 19587 eval value=\"\$HAVE_LIB$uppername\" 19588 if test -n "$value"; then 19589 if test "$value" = yes; then 19590 eval value=\"\$LIB$uppername\" 19591 test -z "$value" || LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$value" 19592 eval value=\"\$LTLIB$uppername\" 19593 test -z "$value" || LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$value" 19594 else 19595 : 19596 fi 19597 else 19598 found_dir= 19599 found_la= 19600 found_so= 19601 found_a= 19602 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 19603 if test -n "$acl_shlibext"; then 19604 shrext=".$acl_shlibext" # typically: shrext=.so 19605 else 19606 shrext= 19607 fi 19608 if test $use_additional = yes; then 19609 dir="$additional_libdir" 19610 if test -n "$acl_shlibext"; then 19611 if test -f "$dir/$libname$shrext"; then 19612 found_dir="$dir" 19613 found_so="$dir/$libname$shrext" 19614 else 19615 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19616 ver=`(cd "$dir" && \ 19617 for f in "$libname$shrext".*; do echo "$f"; done \ 19618 | sed -e "s,^$libname$shrext\\\\.,," \ 19619 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19620 | sed 1q ) 2>/dev/null` 19621 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 19622 found_dir="$dir" 19623 found_so="$dir/$libname$shrext.$ver" 19624 fi 19625 else 19626 eval library_names=\"$acl_library_names_spec\" 19627 for f in $library_names; do 19628 if test -f "$dir/$f"; then 19629 found_dir="$dir" 19630 found_so="$dir/$f" 19631 break 19632 fi 19633 done 19634 fi 19635 fi 19636 fi 19637 if test "X$found_dir" = "X"; then 19638 if test -f "$dir/$libname.$acl_libext"; then 19639 found_dir="$dir" 19640 found_a="$dir/$libname.$acl_libext" 19641 fi 19642 fi 19643 if test "X$found_dir" != "X"; then 19644 if test -f "$dir/$libname.la"; then 19645 found_la="$dir/$libname.la" 19646 fi 19647 fi 19648 fi 19649 if test "X$found_dir" = "X"; then 19650 for x in $LDFLAGS $LTLIBRPATHX; do 19651 19652 acl_save_prefix="$prefix" 19653 prefix="$acl_final_prefix" 19654 acl_save_exec_prefix="$exec_prefix" 19655 exec_prefix="$acl_final_exec_prefix" 19656 eval x=\"$x\" 19657 exec_prefix="$acl_save_exec_prefix" 19658 prefix="$acl_save_prefix" 19659 19660 case "$x" in 19661 -L*) 19662 dir=`echo "X$x" | sed -e 's/^X-L//'` 19663 if test -n "$acl_shlibext"; then 19664 if test -f "$dir/$libname$shrext"; then 19665 found_dir="$dir" 19666 found_so="$dir/$libname$shrext" 19667 else 19668 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 19669 ver=`(cd "$dir" && \ 19670 for f in "$libname$shrext".*; do echo "$f"; done \ 19671 | sed -e "s,^$libname$shrext\\\\.,," \ 19672 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 19673 | sed 1q ) 2>/dev/null` 19674 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 19675 found_dir="$dir" 19676 found_so="$dir/$libname$shrext.$ver" 19677 fi 19678 else 19679 eval library_names=\"$acl_library_names_spec\" 19680 for f in $library_names; do 19681 if test -f "$dir/$f"; then 19682 found_dir="$dir" 19683 found_so="$dir/$f" 19684 break 19685 fi 19686 done 19687 fi 19688 fi 19689 fi 19690 if test "X$found_dir" = "X"; then 19691 if test -f "$dir/$libname.$acl_libext"; then 19692 found_dir="$dir" 19693 found_a="$dir/$libname.$acl_libext" 19694 fi 19695 fi 19696 if test "X$found_dir" != "X"; then 19697 if test -f "$dir/$libname.la"; then 19698 found_la="$dir/$libname.la" 19699 fi 19700 fi 19701 ;; 19702 esac 19703 if test "X$found_dir" != "X"; then 19704 break 19705 fi 19706 done 19707 fi 19708 if test "X$found_dir" != "X"; then 19709 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$found_dir -l$name" 19710 if test "X$found_so" != "X"; then 19711 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 19712 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" 19713 else 19714 haveit= 19715 for x in $ltrpathdirs; do 19716 if test "X$x" = "X$found_dir"; then 19717 haveit=yes 19718 break 19719 fi 19720 done 19721 if test -z "$haveit"; then 19722 ltrpathdirs="$ltrpathdirs $found_dir" 19723 fi 19724 if test "$acl_hardcode_direct" = yes; then 19725 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" 19726 else 19727 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 19728 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" 19729 haveit= 19730 for x in $rpathdirs; do 19731 if test "X$x" = "X$found_dir"; then 19732 haveit=yes 19733 break 19734 fi 19735 done 19736 if test -z "$haveit"; then 19737 rpathdirs="$rpathdirs $found_dir" 19738 fi 19739 else 19740 haveit= 19741 for x in $LDFLAGS $LIBRPATHX; do 19742 19743 acl_save_prefix="$prefix" 19744 prefix="$acl_final_prefix" 19745 acl_save_exec_prefix="$exec_prefix" 19746 exec_prefix="$acl_final_exec_prefix" 19747 eval x=\"$x\" 19748 exec_prefix="$acl_save_exec_prefix" 19749 prefix="$acl_save_prefix" 19750 19751 if test "X$x" = "X-L$found_dir"; then 19752 haveit=yes 19753 break 19754 fi 19755 done 19756 if test -z "$haveit"; then 19757 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir" 19758 fi 19759 if test "$acl_hardcode_minus_L" != no; then 19760 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_so" 19761 else 19762 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" 19763 fi 19764 fi 19765 fi 19766 fi 19767 else 19768 if test "X$found_a" != "X"; then 19769 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$found_a" 19770 else 19771 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$found_dir -l$name" 19772 fi 19773 fi 19774 additional_includedir= 19775 case "$found_dir" in 19776 */$acl_libdirstem | */$acl_libdirstem/) 19777 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 19778 LIBRPATHX_PREFIX="$basedir" 19779 additional_includedir="$basedir/include" 19780 ;; 19781 esac 19782 if test "X$additional_includedir" != "X"; then 19783 if test "X$additional_includedir" != "X/usr/include"; then 19784 haveit= 19785 if test "X$additional_includedir" = "X/usr/local/include"; then 19786 if test -n "$GCC"; then 19787 case $host_os in 19788 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19789 esac 19790 fi 19791 fi 19792 if test -z "$haveit"; then 19793 for x in $CPPFLAGS $INCRPATHX; do 19794 19795 acl_save_prefix="$prefix" 19796 prefix="$acl_final_prefix" 19797 acl_save_exec_prefix="$exec_prefix" 19798 exec_prefix="$acl_final_exec_prefix" 19799 eval x=\"$x\" 19800 exec_prefix="$acl_save_exec_prefix" 19801 prefix="$acl_save_prefix" 19802 19803 if test "X$x" = "X-I$additional_includedir"; then 19804 haveit=yes 19805 break 19806 fi 19807 done 19808 if test -z "$haveit"; then 19809 if test -d "$additional_includedir"; then 19810 INCRPATHX="${INCRPATHX}${INCRPATHX:+ }-I$additional_includedir" 19811 fi 19812 fi 19813 fi 19814 fi 19815 fi 19816 if test -n "$found_la"; then 19817 save_libdir="$libdir" 19818 case "$found_la" in 19819 */* | *\\*) . "$found_la" ;; 19820 *) . "./$found_la" ;; 19821 esac 19822 libdir="$save_libdir" 19823 for dep in $dependency_libs; do 19824 case "$dep" in 19825 -L*) 19826 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 19827 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 19828 haveit= 19829 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 19830 if test -n "$GCC"; then 19831 case $host_os in 19832 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 19833 esac 19834 fi 19835 fi 19836 if test -z "$haveit"; then 19837 haveit= 19838 for x in $LDFLAGS $LIBRPATHX; do 19839 19840 acl_save_prefix="$prefix" 19841 prefix="$acl_final_prefix" 19842 acl_save_exec_prefix="$exec_prefix" 19843 exec_prefix="$acl_final_exec_prefix" 19844 eval x=\"$x\" 19845 exec_prefix="$acl_save_exec_prefix" 19846 prefix="$acl_save_prefix" 19847 19848 if test "X$x" = "X-L$additional_libdir"; then 19849 haveit=yes 19850 break 19851 fi 19852 done 19853 if test -z "$haveit"; then 19854 if test -d "$additional_libdir"; then 19855 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-L$additional_libdir" 19856 fi 19857 fi 19858 haveit= 19859 for x in $LDFLAGS $LTLIBRPATHX; do 19860 19861 acl_save_prefix="$prefix" 19862 prefix="$acl_final_prefix" 19863 acl_save_exec_prefix="$exec_prefix" 19864 exec_prefix="$acl_final_exec_prefix" 19865 eval x=\"$x\" 19866 exec_prefix="$acl_save_exec_prefix" 19867 prefix="$acl_save_prefix" 19868 19869 if test "X$x" = "X-L$additional_libdir"; then 19870 haveit=yes 19871 break 19872 fi 19873 done 19874 if test -z "$haveit"; then 19875 if test -d "$additional_libdir"; then 19876 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-L$additional_libdir" 19877 fi 19878 fi 19879 fi 19880 fi 19881 ;; 19882 -R*) 19883 dir=`echo "X$dep" | sed -e 's/^X-R//'` 19884 if test "$enable_rpath" != no; then 19885 haveit= 19886 for x in $rpathdirs; do 19887 if test "X$x" = "X$dir"; then 19888 haveit=yes 19889 break 19890 fi 19891 done 19892 if test -z "$haveit"; then 19893 rpathdirs="$rpathdirs $dir" 19894 fi 19895 haveit= 19896 for x in $ltrpathdirs; do 19897 if test "X$x" = "X$dir"; then 19898 haveit=yes 19899 break 19900 fi 19901 done 19902 if test -z "$haveit"; then 19903 ltrpathdirs="$ltrpathdirs $dir" 19904 fi 19905 fi 19906 ;; 19907 -l*) 19908 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 19909 ;; 19910 *.la) 19911 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 19912 ;; 19913 *) 19914 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$dep" 19915 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }$dep" 19916 ;; 19917 esac 19918 done 19919 fi 19920 else 19921 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }-l$name" 19922 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-l$name" 19923 fi 19924 fi 19925 fi 19926 done 19927 done 19928 if test "X$rpathdirs" != "X"; then 19929 if test -n "$acl_hardcode_libdir_separator"; then 19930 alldirs= 19931 for found_dir in $rpathdirs; do 19932 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 19933 done 19934 acl_save_libdir="$libdir" 19935 libdir="$alldirs" 19936 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19937 libdir="$acl_save_libdir" 19938 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" 19939 else 19940 for found_dir in $rpathdirs; do 19941 acl_save_libdir="$libdir" 19942 libdir="$found_dir" 19943 eval flag=\"$acl_hardcode_libdir_flag_spec\" 19944 libdir="$acl_save_libdir" 19945 LIBRPATHX="${LIBRPATHX}${LIBRPATHX:+ }$flag" 19946 done 19947 fi 19948 fi 19949 if test "X$ltrpathdirs" != "X"; then 19950 for found_dir in $ltrpathdirs; do 19951 LTLIBRPATHX="${LTLIBRPATHX}${LTLIBRPATHX:+ }-R$found_dir" 19952 done 19953 fi 19954 19955 ac_cv_librpathx_libs="$LIBRPATHX" 19956 ac_cv_librpathx_ltlibs="$LTLIBRPATHX" 19957 ac_cv_librpathx_cppflags="$INCRPATHX" 19958 ac_cv_librpathx_prefix="$LIBRPATHX_PREFIX" 19959 19960fi 19961{ echo "$as_me:$LINENO: result: $ac_cv_librpathx_libs" >&5 19962echo "${ECHO_T}$ac_cv_librpathx_libs" >&6; } 19963 LIBRPATHX="$ac_cv_librpathx_libs" 19964 LTLIBRPATHX="$ac_cv_librpathx_ltlibs" 19965 INCRPATHX="$ac_cv_librpathx_cppflags" 19966 LIBRPATHX_PREFIX="$ac_cv_librpathx_prefix" 19967 19968 for element in $INCRPATHX; do 19969 haveit= 19970 for x in $CPPFLAGS; do 19971 19972 acl_save_prefix="$prefix" 19973 prefix="$acl_final_prefix" 19974 acl_save_exec_prefix="$exec_prefix" 19975 exec_prefix="$acl_final_exec_prefix" 19976 eval x=\"$x\" 19977 exec_prefix="$acl_save_exec_prefix" 19978 prefix="$acl_save_prefix" 19979 19980 if test "X$x" = "X$element"; then 19981 haveit=yes 19982 break 19983 fi 19984 done 19985 if test -z "$haveit"; then 19986 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 19987 fi 19988 done 19989 19990 19991 19992 19993 HAVE_LIBRPATHX=yes 19994 19995 19996 19997 19998 19999 20000 20001 20002 { echo "$as_me:$LINENO: checking how to link with librpathy" >&5 20003echo $ECHO_N "checking how to link with librpathy... $ECHO_C" >&6; } 20004if test "${ac_cv_librpathy_libs+set}" = set; then 20005 echo $ECHO_N "(cached) $ECHO_C" >&6 20006else 20007 20008 20009 20010 20011 20012 use_additional=yes 20013 20014 acl_save_prefix="$prefix" 20015 prefix="$acl_final_prefix" 20016 acl_save_exec_prefix="$exec_prefix" 20017 exec_prefix="$acl_final_exec_prefix" 20018 20019 eval additional_includedir=\"$includedir\" 20020 eval additional_libdir=\"$libdir\" 20021 20022 exec_prefix="$acl_save_exec_prefix" 20023 prefix="$acl_save_prefix" 20024 20025 20026# Check whether --with-librpathy-prefix was given. 20027if test "${with_librpathy_prefix+set}" = set; then 20028 withval=$with_librpathy_prefix; 20029 if test "X$withval" = "Xno"; then 20030 use_additional=no 20031 else 20032 if test "X$withval" = "X"; then 20033 20034 acl_save_prefix="$prefix" 20035 prefix="$acl_final_prefix" 20036 acl_save_exec_prefix="$exec_prefix" 20037 exec_prefix="$acl_final_exec_prefix" 20038 20039 eval additional_includedir=\"$includedir\" 20040 eval additional_libdir=\"$libdir\" 20041 20042 exec_prefix="$acl_save_exec_prefix" 20043 prefix="$acl_save_prefix" 20044 20045 else 20046 additional_includedir="$withval/include" 20047 additional_libdir="$withval/$acl_libdirstem" 20048 fi 20049 fi 20050 20051fi 20052 20053 LIBRPATHY= 20054 LTLIBRPATHY= 20055 INCRPATHY= 20056 LIBRPATHY_PREFIX= 20057 rpathdirs= 20058 ltrpathdirs= 20059 names_already_handled= 20060 names_next_round='rpathy rpathx' 20061 while test -n "$names_next_round"; do 20062 names_this_round="$names_next_round" 20063 names_next_round= 20064 for name in $names_this_round; do 20065 already_handled= 20066 for n in $names_already_handled; do 20067 if test "$n" = "$name"; then 20068 already_handled=yes 20069 break 20070 fi 20071 done 20072 if test -z "$already_handled"; then 20073 names_already_handled="$names_already_handled $name" 20074 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 20075 eval value=\"\$HAVE_LIB$uppername\" 20076 if test -n "$value"; then 20077 if test "$value" = yes; then 20078 eval value=\"\$LIB$uppername\" 20079 test -z "$value" || LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$value" 20080 eval value=\"\$LTLIB$uppername\" 20081 test -z "$value" || LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$value" 20082 else 20083 : 20084 fi 20085 else 20086 found_dir= 20087 found_la= 20088 found_so= 20089 found_a= 20090 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 20091 if test -n "$acl_shlibext"; then 20092 shrext=".$acl_shlibext" # typically: shrext=.so 20093 else 20094 shrext= 20095 fi 20096 if test $use_additional = yes; then 20097 dir="$additional_libdir" 20098 if test -n "$acl_shlibext"; then 20099 if test -f "$dir/$libname$shrext"; then 20100 found_dir="$dir" 20101 found_so="$dir/$libname$shrext" 20102 else 20103 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 20104 ver=`(cd "$dir" && \ 20105 for f in "$libname$shrext".*; do echo "$f"; done \ 20106 | sed -e "s,^$libname$shrext\\\\.,," \ 20107 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 20108 | sed 1q ) 2>/dev/null` 20109 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 20110 found_dir="$dir" 20111 found_so="$dir/$libname$shrext.$ver" 20112 fi 20113 else 20114 eval library_names=\"$acl_library_names_spec\" 20115 for f in $library_names; do 20116 if test -f "$dir/$f"; then 20117 found_dir="$dir" 20118 found_so="$dir/$f" 20119 break 20120 fi 20121 done 20122 fi 20123 fi 20124 fi 20125 if test "X$found_dir" = "X"; then 20126 if test -f "$dir/$libname.$acl_libext"; then 20127 found_dir="$dir" 20128 found_a="$dir/$libname.$acl_libext" 20129 fi 20130 fi 20131 if test "X$found_dir" != "X"; then 20132 if test -f "$dir/$libname.la"; then 20133 found_la="$dir/$libname.la" 20134 fi 20135 fi 20136 fi 20137 if test "X$found_dir" = "X"; then 20138 for x in $LDFLAGS $LTLIBRPATHY; do 20139 20140 acl_save_prefix="$prefix" 20141 prefix="$acl_final_prefix" 20142 acl_save_exec_prefix="$exec_prefix" 20143 exec_prefix="$acl_final_exec_prefix" 20144 eval x=\"$x\" 20145 exec_prefix="$acl_save_exec_prefix" 20146 prefix="$acl_save_prefix" 20147 20148 case "$x" in 20149 -L*) 20150 dir=`echo "X$x" | sed -e 's/^X-L//'` 20151 if test -n "$acl_shlibext"; then 20152 if test -f "$dir/$libname$shrext"; then 20153 found_dir="$dir" 20154 found_so="$dir/$libname$shrext" 20155 else 20156 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 20157 ver=`(cd "$dir" && \ 20158 for f in "$libname$shrext".*; do echo "$f"; done \ 20159 | sed -e "s,^$libname$shrext\\\\.,," \ 20160 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 20161 | sed 1q ) 2>/dev/null` 20162 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 20163 found_dir="$dir" 20164 found_so="$dir/$libname$shrext.$ver" 20165 fi 20166 else 20167 eval library_names=\"$acl_library_names_spec\" 20168 for f in $library_names; do 20169 if test -f "$dir/$f"; then 20170 found_dir="$dir" 20171 found_so="$dir/$f" 20172 break 20173 fi 20174 done 20175 fi 20176 fi 20177 fi 20178 if test "X$found_dir" = "X"; then 20179 if test -f "$dir/$libname.$acl_libext"; then 20180 found_dir="$dir" 20181 found_a="$dir/$libname.$acl_libext" 20182 fi 20183 fi 20184 if test "X$found_dir" != "X"; then 20185 if test -f "$dir/$libname.la"; then 20186 found_la="$dir/$libname.la" 20187 fi 20188 fi 20189 ;; 20190 esac 20191 if test "X$found_dir" != "X"; then 20192 break 20193 fi 20194 done 20195 fi 20196 if test "X$found_dir" != "X"; then 20197 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$found_dir -l$name" 20198 if test "X$found_so" != "X"; then 20199 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then 20200 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" 20201 else 20202 haveit= 20203 for x in $ltrpathdirs; do 20204 if test "X$x" = "X$found_dir"; then 20205 haveit=yes 20206 break 20207 fi 20208 done 20209 if test -z "$haveit"; then 20210 ltrpathdirs="$ltrpathdirs $found_dir" 20211 fi 20212 if test "$acl_hardcode_direct" = yes; then 20213 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" 20214 else 20215 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 20216 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" 20217 haveit= 20218 for x in $rpathdirs; do 20219 if test "X$x" = "X$found_dir"; then 20220 haveit=yes 20221 break 20222 fi 20223 done 20224 if test -z "$haveit"; then 20225 rpathdirs="$rpathdirs $found_dir" 20226 fi 20227 else 20228 haveit= 20229 for x in $LDFLAGS $LIBRPATHY; do 20230 20231 acl_save_prefix="$prefix" 20232 prefix="$acl_final_prefix" 20233 acl_save_exec_prefix="$exec_prefix" 20234 exec_prefix="$acl_final_exec_prefix" 20235 eval x=\"$x\" 20236 exec_prefix="$acl_save_exec_prefix" 20237 prefix="$acl_save_prefix" 20238 20239 if test "X$x" = "X-L$found_dir"; then 20240 haveit=yes 20241 break 20242 fi 20243 done 20244 if test -z "$haveit"; then 20245 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir" 20246 fi 20247 if test "$acl_hardcode_minus_L" != no; then 20248 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_so" 20249 else 20250 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name" 20251 fi 20252 fi 20253 fi 20254 fi 20255 else 20256 if test "X$found_a" != "X"; then 20257 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$found_a" 20258 else 20259 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$found_dir -l$name" 20260 fi 20261 fi 20262 additional_includedir= 20263 case "$found_dir" in 20264 */$acl_libdirstem | */$acl_libdirstem/) 20265 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 20266 LIBRPATHY_PREFIX="$basedir" 20267 additional_includedir="$basedir/include" 20268 ;; 20269 esac 20270 if test "X$additional_includedir" != "X"; then 20271 if test "X$additional_includedir" != "X/usr/include"; then 20272 haveit= 20273 if test "X$additional_includedir" = "X/usr/local/include"; then 20274 if test -n "$GCC"; then 20275 case $host_os in 20276 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 20277 esac 20278 fi 20279 fi 20280 if test -z "$haveit"; then 20281 for x in $CPPFLAGS $INCRPATHY; do 20282 20283 acl_save_prefix="$prefix" 20284 prefix="$acl_final_prefix" 20285 acl_save_exec_prefix="$exec_prefix" 20286 exec_prefix="$acl_final_exec_prefix" 20287 eval x=\"$x\" 20288 exec_prefix="$acl_save_exec_prefix" 20289 prefix="$acl_save_prefix" 20290 20291 if test "X$x" = "X-I$additional_includedir"; then 20292 haveit=yes 20293 break 20294 fi 20295 done 20296 if test -z "$haveit"; then 20297 if test -d "$additional_includedir"; then 20298 INCRPATHY="${INCRPATHY}${INCRPATHY:+ }-I$additional_includedir" 20299 fi 20300 fi 20301 fi 20302 fi 20303 fi 20304 if test -n "$found_la"; then 20305 save_libdir="$libdir" 20306 case "$found_la" in 20307 */* | *\\*) . "$found_la" ;; 20308 *) . "./$found_la" ;; 20309 esac 20310 libdir="$save_libdir" 20311 for dep in $dependency_libs; do 20312 case "$dep" in 20313 -L*) 20314 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 20315 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then 20316 haveit= 20317 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then 20318 if test -n "$GCC"; then 20319 case $host_os in 20320 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 20321 esac 20322 fi 20323 fi 20324 if test -z "$haveit"; then 20325 haveit= 20326 for x in $LDFLAGS $LIBRPATHY; do 20327 20328 acl_save_prefix="$prefix" 20329 prefix="$acl_final_prefix" 20330 acl_save_exec_prefix="$exec_prefix" 20331 exec_prefix="$acl_final_exec_prefix" 20332 eval x=\"$x\" 20333 exec_prefix="$acl_save_exec_prefix" 20334 prefix="$acl_save_prefix" 20335 20336 if test "X$x" = "X-L$additional_libdir"; then 20337 haveit=yes 20338 break 20339 fi 20340 done 20341 if test -z "$haveit"; then 20342 if test -d "$additional_libdir"; then 20343 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-L$additional_libdir" 20344 fi 20345 fi 20346 haveit= 20347 for x in $LDFLAGS $LTLIBRPATHY; do 20348 20349 acl_save_prefix="$prefix" 20350 prefix="$acl_final_prefix" 20351 acl_save_exec_prefix="$exec_prefix" 20352 exec_prefix="$acl_final_exec_prefix" 20353 eval x=\"$x\" 20354 exec_prefix="$acl_save_exec_prefix" 20355 prefix="$acl_save_prefix" 20356 20357 if test "X$x" = "X-L$additional_libdir"; then 20358 haveit=yes 20359 break 20360 fi 20361 done 20362 if test -z "$haveit"; then 20363 if test -d "$additional_libdir"; then 20364 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-L$additional_libdir" 20365 fi 20366 fi 20367 fi 20368 fi 20369 ;; 20370 -R*) 20371 dir=`echo "X$dep" | sed -e 's/^X-R//'` 20372 if test "$enable_rpath" != no; then 20373 haveit= 20374 for x in $rpathdirs; do 20375 if test "X$x" = "X$dir"; then 20376 haveit=yes 20377 break 20378 fi 20379 done 20380 if test -z "$haveit"; then 20381 rpathdirs="$rpathdirs $dir" 20382 fi 20383 haveit= 20384 for x in $ltrpathdirs; do 20385 if test "X$x" = "X$dir"; then 20386 haveit=yes 20387 break 20388 fi 20389 done 20390 if test -z "$haveit"; then 20391 ltrpathdirs="$ltrpathdirs $dir" 20392 fi 20393 fi 20394 ;; 20395 -l*) 20396 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 20397 ;; 20398 *.la) 20399 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 20400 ;; 20401 *) 20402 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$dep" 20403 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }$dep" 20404 ;; 20405 esac 20406 done 20407 fi 20408 else 20409 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }-l$name" 20410 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-l$name" 20411 fi 20412 fi 20413 fi 20414 done 20415 done 20416 if test "X$rpathdirs" != "X"; then 20417 if test -n "$acl_hardcode_libdir_separator"; then 20418 alldirs= 20419 for found_dir in $rpathdirs; do 20420 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 20421 done 20422 acl_save_libdir="$libdir" 20423 libdir="$alldirs" 20424 eval flag=\"$acl_hardcode_libdir_flag_spec\" 20425 libdir="$acl_save_libdir" 20426 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag" 20427 else 20428 for found_dir in $rpathdirs; do 20429 acl_save_libdir="$libdir" 20430 libdir="$found_dir" 20431 eval flag=\"$acl_hardcode_libdir_flag_spec\" 20432 libdir="$acl_save_libdir" 20433 LIBRPATHY="${LIBRPATHY}${LIBRPATHY:+ }$flag" 20434 done 20435 fi 20436 fi 20437 if test "X$ltrpathdirs" != "X"; then 20438 for found_dir in $ltrpathdirs; do 20439 LTLIBRPATHY="${LTLIBRPATHY}${LTLIBRPATHY:+ }-R$found_dir" 20440 done 20441 fi 20442 20443 ac_cv_librpathy_libs="$LIBRPATHY" 20444 ac_cv_librpathy_ltlibs="$LTLIBRPATHY" 20445 ac_cv_librpathy_cppflags="$INCRPATHY" 20446 ac_cv_librpathy_prefix="$LIBRPATHY_PREFIX" 20447 20448fi 20449{ echo "$as_me:$LINENO: result: $ac_cv_librpathy_libs" >&5 20450echo "${ECHO_T}$ac_cv_librpathy_libs" >&6; } 20451 LIBRPATHY="$ac_cv_librpathy_libs" 20452 LTLIBRPATHY="$ac_cv_librpathy_ltlibs" 20453 INCRPATHY="$ac_cv_librpathy_cppflags" 20454 LIBRPATHY_PREFIX="$ac_cv_librpathy_prefix" 20455 20456 for element in $INCRPATHY; do 20457 haveit= 20458 for x in $CPPFLAGS; do 20459 20460 acl_save_prefix="$prefix" 20461 prefix="$acl_final_prefix" 20462 acl_save_exec_prefix="$exec_prefix" 20463 exec_prefix="$acl_final_exec_prefix" 20464 eval x=\"$x\" 20465 exec_prefix="$acl_save_exec_prefix" 20466 prefix="$acl_save_prefix" 20467 20468 if test "X$x" = "X$element"; then 20469 haveit=yes 20470 break 20471 fi 20472 done 20473 if test -z "$haveit"; then 20474 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 20475 fi 20476 done 20477 20478 20479 20480 20481 HAVE_LIBRPATHY=yes 20482 20483 20484 20485 20486ac_config_files="$ac_config_files Makefile" 20487 20488cat >confcache <<\_ACEOF 20489# This file is a shell script that caches the results of configure 20490# tests run on this system so they can be shared between configure 20491# scripts and configure runs, see configure's option --config-cache. 20492# It is not useful on other systems. If it contains results you don't 20493# want to keep, you may remove or edit it. 20494# 20495# config.status only pays attention to the cache file if you give it 20496# the --recheck option to rerun configure. 20497# 20498# `ac_cv_env_foo' variables (set or unset) will be overridden when 20499# loading this file, other *unset* `ac_cv_foo' will be assigned the 20500# following values. 20501 20502_ACEOF 20503 20504# The following way of writing the cache mishandles newlines in values, 20505# but we know of no workaround that is simple, portable, and efficient. 20506# So, we kill variables containing newlines. 20507# Ultrix sh set writes to stderr and can't be redirected directly, 20508# and sets the high bit in the cache file unless we assign to the vars. 20509( 20510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20511 eval ac_val=\$$ac_var 20512 case $ac_val in #( 20513 *${as_nl}*) 20514 case $ac_var in #( 20515 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20516echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20517 esac 20518 case $ac_var in #( 20519 _ | IFS | as_nl) ;; #( 20520 *) $as_unset $ac_var ;; 20521 esac ;; 20522 esac 20523 done 20524 20525 (set) 2>&1 | 20526 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20527 *${as_nl}ac_space=\ *) 20528 # `set' does not quote correctly, so add quotes (double-quote 20529 # substitution turns \\\\ into \\, and sed turns \\ into \). 20530 sed -n \ 20531 "s/'/'\\\\''/g; 20532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20533 ;; #( 20534 *) 20535 # `set' quotes correctly as required by POSIX, so do not add quotes. 20536 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20537 ;; 20538 esac | 20539 sort 20540) | 20541 sed ' 20542 /^ac_cv_env_/b end 20543 t clear 20544 :clear 20545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20546 t end 20547 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20548 :end' >>confcache 20549if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20550 if test -w "$cache_file"; then 20551 test "x$cache_file" != "x/dev/null" && 20552 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 20553echo "$as_me: updating cache $cache_file" >&6;} 20554 cat confcache >$cache_file 20555 else 20556 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20557echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20558 fi 20559fi 20560rm -f confcache 20561 20562test "x$prefix" = xNONE && prefix=$ac_default_prefix 20563# Let make expand exec_prefix. 20564test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20565 20566# Transform confdefs.h into DEFS. 20567# Protect against shell expansion while executing Makefile rules. 20568# Protect against Makefile macro expansion. 20569# 20570# If the first sed substitution is executed (which looks for macros that 20571# take arguments), then branch to the quote section. Otherwise, 20572# look for a macro that doesn't take arguments. 20573ac_script=' 20574t clear 20575:clear 20576s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 20577t quote 20578s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 20579t quote 20580b any 20581:quote 20582s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 20583s/\[/\\&/g 20584s/\]/\\&/g 20585s/\$/$$/g 20586H 20587:any 20588${ 20589 g 20590 s/^\n// 20591 s/\n/ /g 20592 p 20593} 20594' 20595DEFS=`sed -n "$ac_script" confdefs.h` 20596 20597 20598ac_libobjs= 20599ac_ltlibobjs= 20600for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20601 # 1. Remove the extension, and $U if already installed. 20602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20603 ac_i=`echo "$ac_i" | sed "$ac_script"` 20604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20605 # will be set to the directory where LIBOBJS objects are built. 20606 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20607 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20608done 20609LIBOBJS=$ac_libobjs 20610 20611LTLIBOBJS=$ac_ltlibobjs 20612 20613 20614if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20615 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20616Usually this means the macro was only invoked conditionally." >&5 20617echo "$as_me: error: conditional \"AMDEP\" was never defined. 20618Usually this means the macro was only invoked conditionally." >&2;} 20619 { (exit 1); exit 1; }; } 20620fi 20621if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20622 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20623Usually this means the macro was only invoked conditionally." >&5 20624echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20625Usually this means the macro was only invoked conditionally." >&2;} 20626 { (exit 1); exit 1; }; } 20627fi 20628if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20629 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20630Usually this means the macro was only invoked conditionally." >&5 20631echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20632Usually this means the macro was only invoked conditionally." >&2;} 20633 { (exit 1); exit 1; }; } 20634fi 20635 20636: ${CONFIG_STATUS=./config.status} 20637ac_clean_files_save=$ac_clean_files 20638ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20639{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20640echo "$as_me: creating $CONFIG_STATUS" >&6;} 20641cat >$CONFIG_STATUS <<_ACEOF 20642#! $SHELL 20643# Generated by $as_me. 20644# Run this file to recreate the current configuration. 20645# Compiler output produced by configure, useful for debugging 20646# configure, is in config.log if it exists. 20647 20648debug=false 20649ac_cs_recheck=false 20650ac_cs_silent=false 20651SHELL=\${CONFIG_SHELL-$SHELL} 20652_ACEOF 20653 20654cat >>$CONFIG_STATUS <<\_ACEOF 20655## --------------------- ## 20656## M4sh Initialization. ## 20657## --------------------- ## 20658 20659# Be more Bourne compatible 20660DUALCASE=1; export DUALCASE # for MKS sh 20661if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20662 emulate sh 20663 NULLCMD=: 20664 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20665 # is contrary to our usage. Disable this feature. 20666 alias -g '${1+"$@"}'='"$@"' 20667 setopt NO_GLOB_SUBST 20668else 20669 case `(set -o) 2>/dev/null` in 20670 *posix*) set -o posix ;; 20671esac 20672 20673fi 20674 20675 20676 20677 20678# PATH needs CR 20679# Avoid depending upon Character Ranges. 20680as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20681as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20682as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20683as_cr_digits='0123456789' 20684as_cr_alnum=$as_cr_Letters$as_cr_digits 20685 20686# The user is always right. 20687if test "${PATH_SEPARATOR+set}" != set; then 20688 echo "#! /bin/sh" >conf$$.sh 20689 echo "exit 0" >>conf$$.sh 20690 chmod +x conf$$.sh 20691 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20692 PATH_SEPARATOR=';' 20693 else 20694 PATH_SEPARATOR=: 20695 fi 20696 rm -f conf$$.sh 20697fi 20698 20699# Support unset when possible. 20700if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20701 as_unset=unset 20702else 20703 as_unset=false 20704fi 20705 20706 20707# IFS 20708# We need space, tab and new line, in precisely that order. Quoting is 20709# there to prevent editors from complaining about space-tab. 20710# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20711# splitting by setting IFS to empty value.) 20712as_nl=' 20713' 20714IFS=" "" $as_nl" 20715 20716# Find who we are. Look in the path if we contain no directory separator. 20717case $0 in 20718 *[\\/]* ) as_myself=$0 ;; 20719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20720for as_dir in $PATH 20721do 20722 IFS=$as_save_IFS 20723 test -z "$as_dir" && as_dir=. 20724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20725done 20726IFS=$as_save_IFS 20727 20728 ;; 20729esac 20730# We did not find ourselves, most probably we were run as `sh COMMAND' 20731# in which case we are not to be found in the path. 20732if test "x$as_myself" = x; then 20733 as_myself=$0 20734fi 20735if test ! -f "$as_myself"; then 20736 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20737 { (exit 1); exit 1; } 20738fi 20739 20740# Work around bugs in pre-3.0 UWIN ksh. 20741for as_var in ENV MAIL MAILPATH 20742do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20743done 20744PS1='$ ' 20745PS2='> ' 20746PS4='+ ' 20747 20748# NLS nuisances. 20749for as_var in \ 20750 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20751 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20752 LC_TELEPHONE LC_TIME 20753do 20754 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20755 eval $as_var=C; export $as_var 20756 else 20757 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20758 fi 20759done 20760 20761# Required to use basename. 20762if expr a : '\(a\)' >/dev/null 2>&1 && 20763 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20764 as_expr=expr 20765else 20766 as_expr=false 20767fi 20768 20769if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20770 as_basename=basename 20771else 20772 as_basename=false 20773fi 20774 20775 20776# Name of the executable. 20777as_me=`$as_basename -- "$0" || 20778$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20779 X"$0" : 'X\(//\)$' \| \ 20780 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20781echo X/"$0" | 20782 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20783 s//\1/ 20784 q 20785 } 20786 /^X\/\(\/\/\)$/{ 20787 s//\1/ 20788 q 20789 } 20790 /^X\/\(\/\).*/{ 20791 s//\1/ 20792 q 20793 } 20794 s/.*/./; q'` 20795 20796# CDPATH. 20797$as_unset CDPATH 20798 20799 20800 20801 as_lineno_1=$LINENO 20802 as_lineno_2=$LINENO 20803 test "x$as_lineno_1" != "x$as_lineno_2" && 20804 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 20805 20806 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20807 # uniformly replaced by the line number. The first 'sed' inserts a 20808 # line-number line after each line using $LINENO; the second 'sed' 20809 # does the real work. The second script uses 'N' to pair each 20810 # line-number line with the line containing $LINENO, and appends 20811 # trailing '-' during substitution so that $LINENO is not a special 20812 # case at line end. 20813 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20814 # scripts with optimization help from Paolo Bonzini. Blame Lee 20815 # E. McMahon (1931-1989) for sed's syntax. :-) 20816 sed -n ' 20817 p 20818 /[$]LINENO/= 20819 ' <$as_myself | 20820 sed ' 20821 s/[$]LINENO.*/&-/ 20822 t lineno 20823 b 20824 :lineno 20825 N 20826 :loop 20827 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 20828 t loop 20829 s/-\n.*// 20830 ' >$as_me.lineno && 20831 chmod +x "$as_me.lineno" || 20832 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 20833 { (exit 1); exit 1; }; } 20834 20835 # Don't try to exec as it changes $[0], causing all sort of problems 20836 # (the dirname of $[0] is not the place where we might find the 20837 # original and so on. Autoconf is especially sensitive to this). 20838 . "./$as_me.lineno" 20839 # Exit status is that of the last command. 20840 exit 20841} 20842 20843 20844if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20845 as_dirname=dirname 20846else 20847 as_dirname=false 20848fi 20849 20850ECHO_C= ECHO_N= ECHO_T= 20851case `echo -n x` in 20852-n*) 20853 case `echo 'x\c'` in 20854 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20855 *) ECHO_C='\c';; 20856 esac;; 20857*) 20858 ECHO_N='-n';; 20859esac 20860 20861if expr a : '\(a\)' >/dev/null 2>&1 && 20862 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20863 as_expr=expr 20864else 20865 as_expr=false 20866fi 20867 20868rm -f conf$$ conf$$.exe conf$$.file 20869if test -d conf$$.dir; then 20870 rm -f conf$$.dir/conf$$.file 20871else 20872 rm -f conf$$.dir 20873 mkdir conf$$.dir 20874fi 20875echo >conf$$.file 20876if ln -s conf$$.file conf$$ 2>/dev/null; then 20877 as_ln_s='ln -s' 20878 # ... but there are two gotchas: 20879 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20880 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20881 # In both cases, we have to default to `cp -p'. 20882 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20883 as_ln_s='cp -p' 20884elif ln conf$$.file conf$$ 2>/dev/null; then 20885 as_ln_s=ln 20886else 20887 as_ln_s='cp -p' 20888fi 20889rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20890rmdir conf$$.dir 2>/dev/null 20891 20892if mkdir -p . 2>/dev/null; then 20893 as_mkdir_p=: 20894else 20895 test -d ./-p && rmdir ./-p 20896 as_mkdir_p=false 20897fi 20898 20899if test -x / >/dev/null 2>&1; then 20900 as_test_x='test -x' 20901else 20902 if ls -dL / >/dev/null 2>&1; then 20903 as_ls_L_option=L 20904 else 20905 as_ls_L_option= 20906 fi 20907 as_test_x=' 20908 eval sh -c '\'' 20909 if test -d "$1"; then 20910 test -d "$1/."; 20911 else 20912 case $1 in 20913 -*)set "./$1";; 20914 esac; 20915 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 20916 ???[sx]*):;;*)false;;esac;fi 20917 '\'' sh 20918 ' 20919fi 20920as_executable_p=$as_test_x 20921 20922# Sed expression to map a string onto a valid CPP name. 20923as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20924 20925# Sed expression to map a string onto a valid variable name. 20926as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20927 20928 20929exec 6>&1 20930 20931# Save the log message, to keep $[0] and so on meaningful, and to 20932# report actual input values of CONFIG_FILES etc. instead of their 20933# values after options handling. 20934ac_log=" 20935This file was extended by $as_me, which was 20936generated by GNU Autoconf 2.61. Invocation command line was 20937 20938 CONFIG_FILES = $CONFIG_FILES 20939 CONFIG_HEADERS = $CONFIG_HEADERS 20940 CONFIG_LINKS = $CONFIG_LINKS 20941 CONFIG_COMMANDS = $CONFIG_COMMANDS 20942 $ $0 $@ 20943 20944on `(hostname || uname -n) 2>/dev/null | sed 1q` 20945" 20946 20947_ACEOF 20948 20949cat >>$CONFIG_STATUS <<_ACEOF 20950# Files that config.status was made for. 20951config_files="$ac_config_files" 20952config_commands="$ac_config_commands" 20953 20954_ACEOF 20955 20956cat >>$CONFIG_STATUS <<\_ACEOF 20957ac_cs_usage="\ 20958\`$as_me' instantiates files from templates according to the 20959current configuration. 20960 20961Usage: $0 [OPTIONS] [FILE]... 20962 20963 -h, --help print this help, then exit 20964 -V, --version print version number and configuration settings, then exit 20965 -q, --quiet do not print progress messages 20966 -d, --debug don't remove temporary files 20967 --recheck update $as_me by reconfiguring in the same conditions 20968 --file=FILE[:TEMPLATE] 20969 instantiate the configuration file FILE 20970 20971Configuration files: 20972$config_files 20973 20974Configuration commands: 20975$config_commands 20976 20977Report bugs to <bug-autoconf@gnu.org>." 20978 20979_ACEOF 20980cat >>$CONFIG_STATUS <<_ACEOF 20981ac_cs_version="\\ 20982config.status 20983configured by $0, generated by GNU Autoconf 2.61, 20984 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 20985 20986Copyright (C) 2006 Free Software Foundation, Inc. 20987This config.status script is free software; the Free Software Foundation 20988gives unlimited permission to copy, distribute and modify it." 20989 20990ac_pwd='$ac_pwd' 20991srcdir='$srcdir' 20992INSTALL='$INSTALL' 20993MKDIR_P='$MKDIR_P' 20994_ACEOF 20995 20996cat >>$CONFIG_STATUS <<\_ACEOF 20997# If no file are specified by the user, then we need to provide default 20998# value. By we need to know if files were specified by the user. 20999ac_need_defaults=: 21000while test $# != 0 21001do 21002 case $1 in 21003 --*=*) 21004 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21005 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21006 ac_shift=: 21007 ;; 21008 *) 21009 ac_option=$1 21010 ac_optarg=$2 21011 ac_shift=shift 21012 ;; 21013 esac 21014 21015 case $ac_option in 21016 # Handling of the options. 21017 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21018 ac_cs_recheck=: ;; 21019 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21020 echo "$ac_cs_version"; exit ;; 21021 --debug | --debu | --deb | --de | --d | -d ) 21022 debug=: ;; 21023 --file | --fil | --fi | --f ) 21024 $ac_shift 21025 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21026 ac_need_defaults=false;; 21027 --he | --h | --help | --hel | -h ) 21028 echo "$ac_cs_usage"; exit ;; 21029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21030 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21031 ac_cs_silent=: ;; 21032 21033 # This is an error. 21034 -*) { echo "$as_me: error: unrecognized option: $1 21035Try \`$0 --help' for more information." >&2 21036 { (exit 1); exit 1; }; } ;; 21037 21038 *) ac_config_targets="$ac_config_targets $1" 21039 ac_need_defaults=false ;; 21040 21041 esac 21042 shift 21043done 21044 21045ac_configure_extra_args= 21046 21047if $ac_cs_silent; then 21048 exec 6>/dev/null 21049 ac_configure_extra_args="$ac_configure_extra_args --silent" 21050fi 21051 21052_ACEOF 21053cat >>$CONFIG_STATUS <<_ACEOF 21054if \$ac_cs_recheck; then 21055 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21056 CONFIG_SHELL=$SHELL 21057 export CONFIG_SHELL 21058 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21059fi 21060 21061_ACEOF 21062cat >>$CONFIG_STATUS <<\_ACEOF 21063exec 5>>config.log 21064{ 21065 echo 21066 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21067## Running $as_me. ## 21068_ASBOX 21069 echo "$ac_log" 21070} >&5 21071 21072_ACEOF 21073cat >>$CONFIG_STATUS <<_ACEOF 21074# 21075# INIT-COMMANDS 21076# 21077AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21078 21079_ACEOF 21080 21081cat >>$CONFIG_STATUS <<\_ACEOF 21082 21083# Handling of arguments. 21084for ac_config_target in $ac_config_targets 21085do 21086 case $ac_config_target in 21087 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21088 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21089 21090 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21091echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21092 { (exit 1); exit 1; }; };; 21093 esac 21094done 21095 21096 21097# If the user did not use the arguments to specify the items to instantiate, 21098# then the envvar interface is used. Set only those that are not. 21099# We use the long form for the default assignment because of an extremely 21100# bizarre bug on SunOS 4.1.3. 21101if $ac_need_defaults; then 21102 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21103 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21104fi 21105 21106# Have a temporary directory for convenience. Make it in the build tree 21107# simply because there is no reason against having it here, and in addition, 21108# creating and moving files from /tmp can sometimes cause problems. 21109# Hook for its removal unless debugging. 21110# Note that there is a small window in which the directory will not be cleaned: 21111# after its creation but before its name has been assigned to `$tmp'. 21112$debug || 21113{ 21114 tmp= 21115 trap 'exit_status=$? 21116 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21117' 0 21118 trap '{ (exit 1); exit 1; }' 1 2 13 15 21119} 21120# Create a (secure) tmp directory for tmp files. 21121 21122{ 21123 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21124 test -n "$tmp" && test -d "$tmp" 21125} || 21126{ 21127 tmp=./conf$$-$RANDOM 21128 (umask 077 && mkdir "$tmp") 21129} || 21130{ 21131 echo "$me: cannot create a temporary directory in ." >&2 21132 { (exit 1); exit 1; } 21133} 21134 21135# 21136# Set up the sed scripts for CONFIG_FILES section. 21137# 21138 21139# No need to generate the scripts if there are no CONFIG_FILES. 21140# This happens for instance when ./config.status config.h 21141if test -n "$CONFIG_FILES"; then 21142 21143_ACEOF 21144 21145 21146 21147ac_delim='%!_!# ' 21148for ac_last_try in false false false false false :; do 21149 cat >conf$$subs.sed <<_ACEOF 21150SHELL!$SHELL$ac_delim 21151PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21152PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21153PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21154PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21155PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21156PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21157exec_prefix!$exec_prefix$ac_delim 21158prefix!$prefix$ac_delim 21159program_transform_name!$program_transform_name$ac_delim 21160bindir!$bindir$ac_delim 21161sbindir!$sbindir$ac_delim 21162libexecdir!$libexecdir$ac_delim 21163datarootdir!$datarootdir$ac_delim 21164datadir!$datadir$ac_delim 21165sysconfdir!$sysconfdir$ac_delim 21166sharedstatedir!$sharedstatedir$ac_delim 21167localstatedir!$localstatedir$ac_delim 21168includedir!$includedir$ac_delim 21169oldincludedir!$oldincludedir$ac_delim 21170docdir!$docdir$ac_delim 21171infodir!$infodir$ac_delim 21172htmldir!$htmldir$ac_delim 21173dvidir!$dvidir$ac_delim 21174pdfdir!$pdfdir$ac_delim 21175psdir!$psdir$ac_delim 21176libdir!$libdir$ac_delim 21177localedir!$localedir$ac_delim 21178mandir!$mandir$ac_delim 21179DEFS!$DEFS$ac_delim 21180ECHO_C!$ECHO_C$ac_delim 21181ECHO_N!$ECHO_N$ac_delim 21182ECHO_T!$ECHO_T$ac_delim 21183LIBS!$LIBS$ac_delim 21184build_alias!$build_alias$ac_delim 21185host_alias!$host_alias$ac_delim 21186target_alias!$target_alias$ac_delim 21187INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21188INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21189INSTALL_DATA!$INSTALL_DATA$ac_delim 21190am__isrc!$am__isrc$ac_delim 21191CYGPATH_W!$CYGPATH_W$ac_delim 21192PACKAGE!$PACKAGE$ac_delim 21193VERSION!$VERSION$ac_delim 21194ACLOCAL!$ACLOCAL$ac_delim 21195AUTOCONF!$AUTOCONF$ac_delim 21196AUTOMAKE!$AUTOMAKE$ac_delim 21197AUTOHEADER!$AUTOHEADER$ac_delim 21198MAKEINFO!$MAKEINFO$ac_delim 21199install_sh!$install_sh$ac_delim 21200STRIP!$STRIP$ac_delim 21201INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21202mkdir_p!$mkdir_p$ac_delim 21203AWK!$AWK$ac_delim 21204SET_MAKE!$SET_MAKE$ac_delim 21205am__leading_dot!$am__leading_dot$ac_delim 21206AMTAR!$AMTAR$ac_delim 21207am__tar!$am__tar$ac_delim 21208am__untar!$am__untar$ac_delim 21209CC!$CC$ac_delim 21210CFLAGS!$CFLAGS$ac_delim 21211LDFLAGS!$LDFLAGS$ac_delim 21212CPPFLAGS!$CPPFLAGS$ac_delim 21213ac_ct_CC!$ac_ct_CC$ac_delim 21214EXEEXT!$EXEEXT$ac_delim 21215OBJEXT!$OBJEXT$ac_delim 21216DEPDIR!$DEPDIR$ac_delim 21217am__include!$am__include$ac_delim 21218am__quote!$am__quote$ac_delim 21219AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21220AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21221AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21222CCDEPMODE!$CCDEPMODE$ac_delim 21223am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21224am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21225build!$build$ac_delim 21226build_cpu!$build_cpu$ac_delim 21227build_vendor!$build_vendor$ac_delim 21228build_os!$build_os$ac_delim 21229host!$host$ac_delim 21230host_cpu!$host_cpu$ac_delim 21231host_vendor!$host_vendor$ac_delim 21232host_os!$host_os$ac_delim 21233SED!$SED$ac_delim 21234GREP!$GREP$ac_delim 21235EGREP!$EGREP$ac_delim 21236LN_S!$LN_S$ac_delim 21237ECHO!$ECHO$ac_delim 21238AR!$AR$ac_delim 21239RANLIB!$RANLIB$ac_delim 21240CPP!$CPP$ac_delim 21241CXX!$CXX$ac_delim 21242CXXFLAGS!$CXXFLAGS$ac_delim 21243ac_ct_CXX!$ac_ct_CXX$ac_delim 21244CXXDEPMODE!$CXXDEPMODE$ac_delim 21245am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21246am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21247_ACEOF 21248 21249 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21250 break 21251 elif $ac_last_try; then 21252 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21253echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21254 { (exit 1); exit 1; }; } 21255 else 21256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21257 fi 21258done 21259 21260ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21261if test -n "$ac_eof"; then 21262 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21263 ac_eof=`expr $ac_eof + 1` 21264fi 21265 21266cat >>$CONFIG_STATUS <<_ACEOF 21267cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21268/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21269_ACEOF 21270sed ' 21271s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21272s/^/s,@/; s/!/@,|#_!!_#|/ 21273:n 21274t n 21275s/'"$ac_delim"'$/,g/; t 21276s/$/\\/; p 21277N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21278' >>$CONFIG_STATUS <conf$$subs.sed 21279rm -f conf$$subs.sed 21280cat >>$CONFIG_STATUS <<_ACEOF 21281CEOF$ac_eof 21282_ACEOF 21283 21284 21285ac_delim='%!_!# ' 21286for ac_last_try in false false false false false :; do 21287 cat >conf$$subs.sed <<_ACEOF 21288CXXCPP!$CXXCPP$ac_delim 21289F77!$F77$ac_delim 21290FFLAGS!$FFLAGS$ac_delim 21291ac_ct_F77!$ac_ct_F77$ac_delim 21292LIBTOOL!$LIBTOOL$ac_delim 21293LIBRPATHX!$LIBRPATHX$ac_delim 21294LTLIBRPATHX!$LTLIBRPATHX$ac_delim 21295LIBRPATHX_PREFIX!$LIBRPATHX_PREFIX$ac_delim 21296LIBRPATHY!$LIBRPATHY$ac_delim 21297LTLIBRPATHY!$LTLIBRPATHY$ac_delim 21298LIBRPATHY_PREFIX!$LIBRPATHY_PREFIX$ac_delim 21299global_top_auxdir!$global_top_auxdir$ac_delim 21300LIBOBJS!$LIBOBJS$ac_delim 21301LTLIBOBJS!$LTLIBOBJS$ac_delim 21302_ACEOF 21303 21304 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then 21305 break 21306 elif $ac_last_try; then 21307 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21308echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21309 { (exit 1); exit 1; }; } 21310 else 21311 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21312 fi 21313done 21314 21315ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21316if test -n "$ac_eof"; then 21317 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21318 ac_eof=`expr $ac_eof + 1` 21319fi 21320 21321cat >>$CONFIG_STATUS <<_ACEOF 21322cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21323/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21324_ACEOF 21325sed ' 21326s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21327s/^/s,@/; s/!/@,|#_!!_#|/ 21328:n 21329t n 21330s/'"$ac_delim"'$/,g/; t 21331s/$/\\/; p 21332N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21333' >>$CONFIG_STATUS <conf$$subs.sed 21334rm -f conf$$subs.sed 21335cat >>$CONFIG_STATUS <<_ACEOF 21336:end 21337s/|#_!!_#|//g 21338CEOF$ac_eof 21339_ACEOF 21340 21341 21342# VPATH may cause trouble with some makes, so we remove $(srcdir), 21343# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21344# trailing colons and then remove the whole line if VPATH becomes empty 21345# (actually we leave an empty line to preserve line numbers). 21346if test "x$srcdir" = x.; then 21347 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21348s/:*\$(srcdir):*/:/ 21349s/:*\${srcdir}:*/:/ 21350s/:*@srcdir@:*/:/ 21351s/^\([^=]*=[ ]*\):*/\1/ 21352s/:*$// 21353s/^[^=]*=[ ]*$// 21354}' 21355fi 21356 21357cat >>$CONFIG_STATUS <<\_ACEOF 21358fi # test -n "$CONFIG_FILES" 21359 21360 21361for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS 21362do 21363 case $ac_tag in 21364 :[FHLC]) ac_mode=$ac_tag; continue;; 21365 esac 21366 case $ac_mode$ac_tag in 21367 :[FHL]*:*);; 21368 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21369echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21370 { (exit 1); exit 1; }; };; 21371 :[FH]-) ac_tag=-:-;; 21372 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21373 esac 21374 ac_save_IFS=$IFS 21375 IFS=: 21376 set x $ac_tag 21377 IFS=$ac_save_IFS 21378 shift 21379 ac_file=$1 21380 shift 21381 21382 case $ac_mode in 21383 :L) ac_source=$1;; 21384 :[FH]) 21385 ac_file_inputs= 21386 for ac_f 21387 do 21388 case $ac_f in 21389 -) ac_f="$tmp/stdin";; 21390 *) # Look for the file first in the build tree, then in the source tree 21391 # (if the path is not absolute). The absolute path cannot be DOS-style, 21392 # because $ac_f cannot contain `:'. 21393 test -f "$ac_f" || 21394 case $ac_f in 21395 [\\/$]*) false;; 21396 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21397 esac || 21398 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21399echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21400 { (exit 1); exit 1; }; };; 21401 esac 21402 ac_file_inputs="$ac_file_inputs $ac_f" 21403 done 21404 21405 # Let's still pretend it is `configure' which instantiates (i.e., don't 21406 # use $as_me), people would be surprised to read: 21407 # /* config.h. Generated by config.status. */ 21408 configure_input="Generated from "`IFS=: 21409 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21410 if test x"$ac_file" != x-; then 21411 configure_input="$ac_file. $configure_input" 21412 { echo "$as_me:$LINENO: creating $ac_file" >&5 21413echo "$as_me: creating $ac_file" >&6;} 21414 fi 21415 21416 case $ac_tag in 21417 *:-:* | *:-) cat >"$tmp/stdin";; 21418 esac 21419 ;; 21420 esac 21421 21422 ac_dir=`$as_dirname -- "$ac_file" || 21423$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21424 X"$ac_file" : 'X\(//\)[^/]' \| \ 21425 X"$ac_file" : 'X\(//\)$' \| \ 21426 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21427echo X"$ac_file" | 21428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21429 s//\1/ 21430 q 21431 } 21432 /^X\(\/\/\)[^/].*/{ 21433 s//\1/ 21434 q 21435 } 21436 /^X\(\/\/\)$/{ 21437 s//\1/ 21438 q 21439 } 21440 /^X\(\/\).*/{ 21441 s//\1/ 21442 q 21443 } 21444 s/.*/./; q'` 21445 { as_dir="$ac_dir" 21446 case $as_dir in #( 21447 -*) as_dir=./$as_dir;; 21448 esac 21449 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21450 as_dirs= 21451 while :; do 21452 case $as_dir in #( 21453 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21454 *) as_qdir=$as_dir;; 21455 esac 21456 as_dirs="'$as_qdir' $as_dirs" 21457 as_dir=`$as_dirname -- "$as_dir" || 21458$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21459 X"$as_dir" : 'X\(//\)[^/]' \| \ 21460 X"$as_dir" : 'X\(//\)$' \| \ 21461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21462echo X"$as_dir" | 21463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21464 s//\1/ 21465 q 21466 } 21467 /^X\(\/\/\)[^/].*/{ 21468 s//\1/ 21469 q 21470 } 21471 /^X\(\/\/\)$/{ 21472 s//\1/ 21473 q 21474 } 21475 /^X\(\/\).*/{ 21476 s//\1/ 21477 q 21478 } 21479 s/.*/./; q'` 21480 test -d "$as_dir" && break 21481 done 21482 test -z "$as_dirs" || eval "mkdir $as_dirs" 21483 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21484echo "$as_me: error: cannot create directory $as_dir" >&2;} 21485 { (exit 1); exit 1; }; }; } 21486 ac_builddir=. 21487 21488case "$ac_dir" in 21489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21490*) 21491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21492 # A ".." for each directory in $ac_dir_suffix. 21493 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21494 case $ac_top_builddir_sub in 21495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21497 esac ;; 21498esac 21499ac_abs_top_builddir=$ac_pwd 21500ac_abs_builddir=$ac_pwd$ac_dir_suffix 21501# for backward compatibility: 21502ac_top_builddir=$ac_top_build_prefix 21503 21504case $srcdir in 21505 .) # We are building in place. 21506 ac_srcdir=. 21507 ac_top_srcdir=$ac_top_builddir_sub 21508 ac_abs_top_srcdir=$ac_pwd ;; 21509 [\\/]* | ?:[\\/]* ) # Absolute name. 21510 ac_srcdir=$srcdir$ac_dir_suffix; 21511 ac_top_srcdir=$srcdir 21512 ac_abs_top_srcdir=$srcdir ;; 21513 *) # Relative name. 21514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21515 ac_top_srcdir=$ac_top_build_prefix$srcdir 21516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21517esac 21518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21519 21520 21521 case $ac_mode in 21522 :F) 21523 # 21524 # CONFIG_FILE 21525 # 21526 21527 case $INSTALL in 21528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21529 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21530 esac 21531 ac_MKDIR_P=$MKDIR_P 21532 case $MKDIR_P in 21533 [\\/$]* | ?:[\\/]* ) ;; 21534 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21535 esac 21536_ACEOF 21537 21538cat >>$CONFIG_STATUS <<\_ACEOF 21539# If the template does not know about datarootdir, expand it. 21540# FIXME: This hack should be removed a few years after 2.60. 21541ac_datarootdir_hack=; ac_datarootdir_seen= 21542 21543case `sed -n '/datarootdir/ { 21544 p 21545 q 21546} 21547/@datadir@/p 21548/@docdir@/p 21549/@infodir@/p 21550/@localedir@/p 21551/@mandir@/p 21552' $ac_file_inputs` in 21553*datarootdir*) ac_datarootdir_seen=yes;; 21554*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21555 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21556echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21557_ACEOF 21558cat >>$CONFIG_STATUS <<_ACEOF 21559 ac_datarootdir_hack=' 21560 s&@datadir@&$datadir&g 21561 s&@docdir@&$docdir&g 21562 s&@infodir@&$infodir&g 21563 s&@localedir@&$localedir&g 21564 s&@mandir@&$mandir&g 21565 s&\\\${datarootdir}&$datarootdir&g' ;; 21566esac 21567_ACEOF 21568 21569# Neutralize VPATH when `$srcdir' = `.'. 21570# Shell code in configure.ac might set extrasub. 21571# FIXME: do we really want to maintain this feature? 21572cat >>$CONFIG_STATUS <<_ACEOF 21573 sed "$ac_vpsub 21574$extrasub 21575_ACEOF 21576cat >>$CONFIG_STATUS <<\_ACEOF 21577:t 21578/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21579s&@configure_input@&$configure_input&;t t 21580s&@top_builddir@&$ac_top_builddir_sub&;t t 21581s&@srcdir@&$ac_srcdir&;t t 21582s&@abs_srcdir@&$ac_abs_srcdir&;t t 21583s&@top_srcdir@&$ac_top_srcdir&;t t 21584s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21585s&@builddir@&$ac_builddir&;t t 21586s&@abs_builddir@&$ac_abs_builddir&;t t 21587s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21588s&@INSTALL@&$ac_INSTALL&;t t 21589s&@MKDIR_P@&$ac_MKDIR_P&;t t 21590$ac_datarootdir_hack 21591" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 21592 21593test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21594 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21595 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21596 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21597which seems to be undefined. Please make sure it is defined." >&5 21598echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21599which seems to be undefined. Please make sure it is defined." >&2;} 21600 21601 rm -f "$tmp/stdin" 21602 case $ac_file in 21603 -) cat "$tmp/out"; rm -f "$tmp/out";; 21604 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 21605 esac 21606 ;; 21607 21608 21609 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 21610echo "$as_me: executing $ac_file commands" >&6;} 21611 ;; 21612 esac 21613 21614 21615 case $ac_file$ac_mode in 21616 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21617 # Strip MF so we end up with the name of the file. 21618 mf=`echo "$mf" | sed -e 's/:.*$//'` 21619 # Check whether this is an Automake generated Makefile or not. 21620 # We used to match only the files named `Makefile.in', but 21621 # some people rename them; so instead we look at the file content. 21622 # Grep'ing the first line is not enough: some people post-process 21623 # each Makefile.in and add a new line on top of each file to say so. 21624 # Grep'ing the whole file is not good either: AIX grep has a line 21625 # limit of 2048, but all sed's we know have understand at least 4000. 21626 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 21627 dirpart=`$as_dirname -- "$mf" || 21628$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21629 X"$mf" : 'X\(//\)[^/]' \| \ 21630 X"$mf" : 'X\(//\)$' \| \ 21631 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21632echo X"$mf" | 21633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21634 s//\1/ 21635 q 21636 } 21637 /^X\(\/\/\)[^/].*/{ 21638 s//\1/ 21639 q 21640 } 21641 /^X\(\/\/\)$/{ 21642 s//\1/ 21643 q 21644 } 21645 /^X\(\/\).*/{ 21646 s//\1/ 21647 q 21648 } 21649 s/.*/./; q'` 21650 else 21651 continue 21652 fi 21653 # Extract the definition of DEPDIR, am__include, and am__quote 21654 # from the Makefile without running `make'. 21655 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21656 test -z "$DEPDIR" && continue 21657 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21658 test -z "am__include" && continue 21659 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21660 # When using ansi2knr, U may be empty or an underscore; expand it 21661 U=`sed -n 's/^U = //p' < "$mf"` 21662 # Find all dependency output files, they are included files with 21663 # $(DEPDIR) in their names. We invoke sed twice because it is the 21664 # simplest approach to changing $(DEPDIR) to its actual value in the 21665 # expansion. 21666 for file in `sed -n " 21667 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21668 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21669 # Make sure the directory exists. 21670 test -f "$dirpart/$file" && continue 21671 fdir=`$as_dirname -- "$file" || 21672$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21673 X"$file" : 'X\(//\)[^/]' \| \ 21674 X"$file" : 'X\(//\)$' \| \ 21675 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21676echo X"$file" | 21677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21678 s//\1/ 21679 q 21680 } 21681 /^X\(\/\/\)[^/].*/{ 21682 s//\1/ 21683 q 21684 } 21685 /^X\(\/\/\)$/{ 21686 s//\1/ 21687 q 21688 } 21689 /^X\(\/\).*/{ 21690 s//\1/ 21691 q 21692 } 21693 s/.*/./; q'` 21694 { as_dir=$dirpart/$fdir 21695 case $as_dir in #( 21696 -*) as_dir=./$as_dir;; 21697 esac 21698 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21699 as_dirs= 21700 while :; do 21701 case $as_dir in #( 21702 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21703 *) as_qdir=$as_dir;; 21704 esac 21705 as_dirs="'$as_qdir' $as_dirs" 21706 as_dir=`$as_dirname -- "$as_dir" || 21707$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21708 X"$as_dir" : 'X\(//\)[^/]' \| \ 21709 X"$as_dir" : 'X\(//\)$' \| \ 21710 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21711echo X"$as_dir" | 21712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21713 s//\1/ 21714 q 21715 } 21716 /^X\(\/\/\)[^/].*/{ 21717 s//\1/ 21718 q 21719 } 21720 /^X\(\/\/\)$/{ 21721 s//\1/ 21722 q 21723 } 21724 /^X\(\/\).*/{ 21725 s//\1/ 21726 q 21727 } 21728 s/.*/./; q'` 21729 test -d "$as_dir" && break 21730 done 21731 test -z "$as_dirs" || eval "mkdir $as_dirs" 21732 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21733echo "$as_me: error: cannot create directory $as_dir" >&2;} 21734 { (exit 1); exit 1; }; }; } 21735 # echo "creating $dirpart/$file" 21736 echo '# dummy' > "$dirpart/$file" 21737 done 21738done 21739 ;; 21740 21741 esac 21742done # for ac_tag 21743 21744 21745{ (exit 0); exit 0; } 21746_ACEOF 21747chmod +x $CONFIG_STATUS 21748ac_clean_files=$ac_clean_files_save 21749 21750 21751# configure is writing to config.log, and then calls config.status. 21752# config.status does its own redirection, appending to config.log. 21753# Unfortunately, on DOS this fails, as config.log is still kept open 21754# by configure, so config.status won't be able to write to it; its 21755# output is simply discarded. So we exec the FD to /dev/null, 21756# effectively closing config.log, so it can be properly (re)opened and 21757# appended to by config.status. When coming back to configure, we 21758# need to make the FD available again. 21759if test "$no_create" != yes; then 21760 ac_cs_success=: 21761 ac_config_status_args= 21762 test "$silent" = yes && 21763 ac_config_status_args="$ac_config_status_args --quiet" 21764 exec 5>/dev/null 21765 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21766 exec 5>>config.log 21767 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21768 # would make configure fail if this is the last instruction. 21769 $ac_cs_success || { (exit 1); exit 1; } 21770fi 21771 21772