configure revision 444c061a
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for libXt 1.0.5. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be Bourne compatible 16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 emulate sh 18 NULLCMD=: 19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # is contrary to our usage. Disable this feature. 21 alias -g '${1+"$@"}'='"$@"' 22 setopt NO_GLOB_SUBST 23else 24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 25fi 26BIN_SH=xpg4; export BIN_SH # for Tru64 27DUALCASE=1; export DUALCASE # for MKS sh 28 29 30# PATH needs CR 31# Avoid depending upon Character Ranges. 32as_cr_letters='abcdefghijklmnopqrstuvwxyz' 33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 34as_cr_Letters=$as_cr_letters$as_cr_LETTERS 35as_cr_digits='0123456789' 36as_cr_alnum=$as_cr_Letters$as_cr_digits 37 38# The user is always right. 39if test "${PATH_SEPARATOR+set}" != set; then 40 echo "#! /bin/sh" >conf$$.sh 41 echo "exit 0" >>conf$$.sh 42 chmod +x conf$$.sh 43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 44 PATH_SEPARATOR=';' 45 else 46 PATH_SEPARATOR=: 47 fi 48 rm -f conf$$.sh 49fi 50 51# Support unset when possible. 52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 53 as_unset=unset 54else 55 as_unset=false 56fi 57 58 59# IFS 60# We need space, tab and new line, in precisely that order. Quoting is 61# there to prevent editors from complaining about space-tab. 62# (If _AS_PATH_WALK were called with IFS unset, it would disable word 63# splitting by setting IFS to empty value.) 64as_nl=' 65' 66IFS=" "" $as_nl" 67 68# Find who we are. Look in the path if we contain no directory separator. 69case $0 in 70 *[\\/]* ) as_myself=$0 ;; 71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 72for as_dir in $PATH 73do 74 IFS=$as_save_IFS 75 test -z "$as_dir" && as_dir=. 76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 77done 78IFS=$as_save_IFS 79 80 ;; 81esac 82# We did not find ourselves, most probably we were run as `sh COMMAND' 83# in which case we are not to be found in the path. 84if test "x$as_myself" = x; then 85 as_myself=$0 86fi 87if test ! -f "$as_myself"; then 88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 89 { (exit 1); exit 1; } 90fi 91 92# Work around bugs in pre-3.0 UWIN ksh. 93for as_var in ENV MAIL MAILPATH 94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 95done 96PS1='$ ' 97PS2='> ' 98PS4='+ ' 99 100# NLS nuisances. 101for as_var in \ 102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 104 LC_TELEPHONE LC_TIME 105do 106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 107 eval $as_var=C; export $as_var 108 else 109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 110 fi 111done 112 113# Required to use basename. 114if expr a : '\(a\)' >/dev/null 2>&1 && 115 test "X`expr 00001 : '.*\(...\)'`" = X001; then 116 as_expr=expr 117else 118 as_expr=false 119fi 120 121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 122 as_basename=basename 123else 124 as_basename=false 125fi 126 127 128# Name of the executable. 129as_me=`$as_basename -- "$0" || 130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 131 X"$0" : 'X\(//\)$' \| \ 132 X"$0" : 'X\(/\)' \| . 2>/dev/null || 133echo X/"$0" | 134 sed '/^.*\/\([^/][^/]*\)\/*$/{ 135 s//\1/ 136 q 137 } 138 /^X\/\(\/\/\)$/{ 139 s//\1/ 140 q 141 } 142 /^X\/\(\/\).*/{ 143 s//\1/ 144 q 145 } 146 s/.*/./; q'` 147 148# CDPATH. 149$as_unset CDPATH 150 151 152if test "x$CONFIG_SHELL" = x; then 153 if (eval ":") 2>/dev/null; then 154 as_have_required=yes 155else 156 as_have_required=no 157fi 158 159 if test $as_have_required = yes && (eval ": 160(as_func_return () { 161 (exit \$1) 162} 163as_func_success () { 164 as_func_return 0 165} 166as_func_failure () { 167 as_func_return 1 168} 169as_func_ret_success () { 170 return 0 171} 172as_func_ret_failure () { 173 return 1 174} 175 176exitcode=0 177if as_func_success; then 178 : 179else 180 exitcode=1 181 echo as_func_success failed. 182fi 183 184if as_func_failure; then 185 exitcode=1 186 echo as_func_failure succeeded. 187fi 188 189if as_func_ret_success; then 190 : 191else 192 exitcode=1 193 echo as_func_ret_success failed. 194fi 195 196if as_func_ret_failure; then 197 exitcode=1 198 echo as_func_ret_failure succeeded. 199fi 200 201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 202 : 203else 204 exitcode=1 205 echo positional parameters were not saved. 206fi 207 208test \$exitcode = 0) || { (exit 1); exit 1; } 209 210( 211 as_lineno_1=\$LINENO 212 as_lineno_2=\$LINENO 213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 215") 2> /dev/null; then 216 : 217else 218 as_candidate_shells= 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 case $as_dir in 225 /*) 226 for as_base in sh bash ksh sh5; do 227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 228 done;; 229 esac 230done 231IFS=$as_save_IFS 232 233 234 for as_shell in $as_candidate_shells $SHELL; do 235 # Try only shells that exist, to save several forks. 236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 237 { ("$as_shell") 2> /dev/null <<\_ASEOF 238# Be Bourne compatible 239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 240 emulate sh 241 NULLCMD=: 242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 243 # is contrary to our usage. Disable this feature. 244 alias -g '${1+"$@"}'='"$@"' 245 setopt NO_GLOB_SUBST 246else 247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 248fi 249BIN_SH=xpg4; export BIN_SH # for Tru64 250DUALCASE=1; export DUALCASE # for MKS sh 251 252: 253_ASEOF 254}; then 255 CONFIG_SHELL=$as_shell 256 as_have_required=yes 257 if { "$as_shell" 2> /dev/null <<\_ASEOF 258# Be Bourne compatible 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 260 emulate sh 261 NULLCMD=: 262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 263 # is contrary to our usage. Disable this feature. 264 alias -g '${1+"$@"}'='"$@"' 265 setopt NO_GLOB_SUBST 266else 267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 268fi 269BIN_SH=xpg4; export BIN_SH # for Tru64 270DUALCASE=1; export DUALCASE # for MKS sh 271 272: 273(as_func_return () { 274 (exit $1) 275} 276as_func_success () { 277 as_func_return 0 278} 279as_func_failure () { 280 as_func_return 1 281} 282as_func_ret_success () { 283 return 0 284} 285as_func_ret_failure () { 286 return 1 287} 288 289exitcode=0 290if as_func_success; then 291 : 292else 293 exitcode=1 294 echo as_func_success failed. 295fi 296 297if as_func_failure; then 298 exitcode=1 299 echo as_func_failure succeeded. 300fi 301 302if as_func_ret_success; then 303 : 304else 305 exitcode=1 306 echo as_func_ret_success failed. 307fi 308 309if as_func_ret_failure; then 310 exitcode=1 311 echo as_func_ret_failure succeeded. 312fi 313 314if ( set x; as_func_ret_success y && test x = "$1" ); then 315 : 316else 317 exitcode=1 318 echo positional parameters were not saved. 319fi 320 321test $exitcode = 0) || { (exit 1); exit 1; } 322 323( 324 as_lineno_1=$LINENO 325 as_lineno_2=$LINENO 326 test "x$as_lineno_1" != "x$as_lineno_2" && 327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 328 329_ASEOF 330}; then 331 break 332fi 333 334fi 335 336 done 337 338 if test "x$CONFIG_SHELL" != x; then 339 for as_var in BASH_ENV ENV 340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 341 done 342 export CONFIG_SHELL 343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 344fi 345 346 347 if test $as_have_required = no; then 348 echo This script requires a shell more modern than all the 349 echo shells that I found on your system. Please install a 350 echo modern shell, or manually run the script under such a 351 echo shell if you do have one. 352 { (exit 1); exit 1; } 353fi 354 355 356fi 357 358fi 359 360 361 362(eval "as_func_return () { 363 (exit \$1) 364} 365as_func_success () { 366 as_func_return 0 367} 368as_func_failure () { 369 as_func_return 1 370} 371as_func_ret_success () { 372 return 0 373} 374as_func_ret_failure () { 375 return 1 376} 377 378exitcode=0 379if as_func_success; then 380 : 381else 382 exitcode=1 383 echo as_func_success failed. 384fi 385 386if as_func_failure; then 387 exitcode=1 388 echo as_func_failure succeeded. 389fi 390 391if as_func_ret_success; then 392 : 393else 394 exitcode=1 395 echo as_func_ret_success failed. 396fi 397 398if as_func_ret_failure; then 399 exitcode=1 400 echo as_func_ret_failure succeeded. 401fi 402 403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 404 : 405else 406 exitcode=1 407 echo positional parameters were not saved. 408fi 409 410test \$exitcode = 0") || { 411 echo No shell found that supports shell functions. 412 echo Please tell autoconf@gnu.org about your system, 413 echo including any error possibly output before this 414 echo message 415} 416 417 418 419 as_lineno_1=$LINENO 420 as_lineno_2=$LINENO 421 test "x$as_lineno_1" != "x$as_lineno_2" && 422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 423 424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 425 # uniformly replaced by the line number. The first 'sed' inserts a 426 # line-number line after each line using $LINENO; the second 'sed' 427 # does the real work. The second script uses 'N' to pair each 428 # line-number line with the line containing $LINENO, and appends 429 # trailing '-' during substitution so that $LINENO is not a special 430 # case at line end. 431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 432 # scripts with optimization help from Paolo Bonzini. Blame Lee 433 # E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 451 { (exit 1); exit 1; }; } 452 453 # Don't try to exec as it changes $[0], causing all sort of problems 454 # (the dirname of $[0] is not the place where we might find the 455 # original and so on. Autoconf is especially sensitive to this). 456 . "./$as_me.lineno" 457 # Exit status is that of the last command. 458 exit 459} 460 461 462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 463 as_dirname=dirname 464else 465 as_dirname=false 466fi 467 468ECHO_C= ECHO_N= ECHO_T= 469case `echo -n x` in 470-n*) 471 case `echo 'x\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 *) ECHO_C='\c';; 474 esac;; 475*) 476 ECHO_N='-n';; 477esac 478 479if expr a : '\(a\)' >/dev/null 2>&1 && 480 test "X`expr 00001 : '.*\(...\)'`" = X001; then 481 as_expr=expr 482else 483 as_expr=false 484fi 485 486rm -f conf$$ conf$$.exe conf$$.file 487if test -d conf$$.dir; then 488 rm -f conf$$.dir/conf$$.file 489else 490 rm -f conf$$.dir 491 mkdir conf$$.dir 492fi 493echo >conf$$.file 494if ln -s conf$$.file conf$$ 2>/dev/null; then 495 as_ln_s='ln -s' 496 # ... but there are two gotchas: 497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 499 # In both cases, we have to default to `cp -p'. 500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 501 as_ln_s='cp -p' 502elif ln conf$$.file conf$$ 2>/dev/null; then 503 as_ln_s=ln 504else 505 as_ln_s='cp -p' 506fi 507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 508rmdir conf$$.dir 2>/dev/null 509 510if mkdir -p . 2>/dev/null; then 511 as_mkdir_p=: 512else 513 test -d ./-p && rmdir ./-p 514 as_mkdir_p=false 515fi 516 517# Find out whether ``test -x'' works. Don't use a zero-byte file, as 518# systems may use methods other than mode bits to determine executability. 519cat >conf$$.file <<_ASEOF 520#! /bin/sh 521exit 0 522_ASEOF 523chmod +x conf$$.file 524if test -x conf$$.file >/dev/null 2>&1; then 525 as_executable_p="test -x" 526else 527 as_executable_p=: 528fi 529rm -f conf$$.file 530 531# Sed expression to map a string onto a valid CPP name. 532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 533 534# Sed expression to map a string onto a valid variable name. 535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 536 537 538 539 540# Check that we are running under the correct shell. 541SHELL=${CONFIG_SHELL-/bin/sh} 542 543case X$ECHO in 544X*--fallback-echo) 545 # Remove one level of quotation (which was required for Make). 546 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 547 ;; 548esac 549 550echo=${ECHO-echo} 551if test "X$1" = X--no-reexec; then 552 # Discard the --no-reexec flag, and continue. 553 shift 554elif test "X$1" = X--fallback-echo; then 555 # Avoid inline document here, it may be left over 556 : 557elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 558 # Yippee, $echo works! 559 : 560else 561 # Restart under the correct shell. 562 exec $SHELL "$0" --no-reexec ${1+"$@"} 563fi 564 565if test "X$1" = X--fallback-echo; then 566 # used as fallback echo 567 shift 568 cat <<EOF 569$* 570EOF 571 exit 0 572fi 573 574# The HP-UX ksh and POSIX shell print the target directory to stdout 575# if CDPATH is set. 576(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 577 578if test -z "$ECHO"; then 579if test "X${echo_test_string+set}" != Xset; then 580# find a string as large as possible, as long as the shell can cope with it 581 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 582 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 583 if (echo_test_string=`eval $cmd`) 2>/dev/null && 584 echo_test_string=`eval $cmd` && 585 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 586 then 587 break 588 fi 589 done 590fi 591 592if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 593 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 594 test "X$echo_testing_string" = "X$echo_test_string"; then 595 : 596else 597 # The Solaris, AIX, and Digital Unix default echo programs unquote 598 # backslashes. This makes it impossible to quote backslashes using 599 # echo "$something" | sed 's/\\/\\\\/g' 600 # 601 # So, first we look for a working echo in the user's PATH. 602 603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 604 for dir in $PATH /usr/ucb; do 605 IFS="$lt_save_ifs" 606 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 607 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 608 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 609 test "X$echo_testing_string" = "X$echo_test_string"; then 610 echo="$dir/echo" 611 break 612 fi 613 done 614 IFS="$lt_save_ifs" 615 616 if test "X$echo" = Xecho; then 617 # We didn't find a better echo, so look for alternatives. 618 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 619 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 620 test "X$echo_testing_string" = "X$echo_test_string"; then 621 # This shell has a builtin print -r that does the trick. 622 echo='print -r' 623 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 624 test "X$CONFIG_SHELL" != X/bin/ksh; then 625 # If we have ksh, try running configure again with it. 626 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 627 export ORIGINAL_CONFIG_SHELL 628 CONFIG_SHELL=/bin/ksh 629 export CONFIG_SHELL 630 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 631 else 632 # Try using printf. 633 echo='printf %s\n' 634 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 635 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 636 test "X$echo_testing_string" = "X$echo_test_string"; then 637 # Cool, printf works 638 : 639 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 640 test "X$echo_testing_string" = 'X\t' && 641 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 642 test "X$echo_testing_string" = "X$echo_test_string"; then 643 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 644 export CONFIG_SHELL 645 SHELL="$CONFIG_SHELL" 646 export SHELL 647 echo="$CONFIG_SHELL $0 --fallback-echo" 648 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 649 test "X$echo_testing_string" = 'X\t' && 650 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 651 test "X$echo_testing_string" = "X$echo_test_string"; then 652 echo="$CONFIG_SHELL $0 --fallback-echo" 653 else 654 # maybe with a smaller string... 655 prev=: 656 657 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 658 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 659 then 660 break 661 fi 662 prev="$cmd" 663 done 664 665 if test "$prev" != 'sed 50q "$0"'; then 666 echo_test_string=`eval $prev` 667 export echo_test_string 668 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 669 else 670 # Oops. We lost completely, so just stick with echo. 671 echo=echo 672 fi 673 fi 674 fi 675 fi 676fi 677fi 678 679# Copy echo and quote the copy suitably for passing to libtool from 680# the Makefile, instead of quoting the original, which is used later. 681ECHO=$echo 682if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 683 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 684fi 685 686 687 688 689tagnames=${tagnames+${tagnames},}CXX 690 691tagnames=${tagnames+${tagnames},}F77 692 693exec 7<&0 </dev/null 6>&1 694 695# Name of the host. 696# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 697# so uname gets run too. 698ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 699 700# 701# Initializations. 702# 703ac_default_prefix=/usr/local 704ac_clean_files= 705ac_config_libobj_dir=. 706LIBOBJS= 707cross_compiling=no 708subdirs= 709MFLAGS= 710MAKEFLAGS= 711SHELL=${CONFIG_SHELL-/bin/sh} 712 713# Identity of this package. 714PACKAGE_NAME='libXt' 715PACKAGE_TARNAME='libXt' 716PACKAGE_VERSION='1.0.5' 717PACKAGE_STRING='libXt 1.0.5' 718PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 719 720# Factoring default headers for most tests. 721ac_includes_default="\ 722#include <stdio.h> 723#if HAVE_SYS_TYPES_H 724# include <sys/types.h> 725#endif 726#if HAVE_SYS_STAT_H 727# include <sys/stat.h> 728#endif 729#if STDC_HEADERS 730# include <stdlib.h> 731# include <stddef.h> 732#else 733# if HAVE_STDLIB_H 734# include <stdlib.h> 735# endif 736#endif 737#if HAVE_STRING_H 738# if !STDC_HEADERS && HAVE_MEMORY_H 739# include <memory.h> 740# endif 741# include <string.h> 742#endif 743#if HAVE_STRINGS_H 744# include <strings.h> 745#endif 746#if HAVE_INTTYPES_H 747# include <inttypes.h> 748#endif 749#if HAVE_STDINT_H 750# include <stdint.h> 751#endif 752#if HAVE_UNISTD_H 753# include <unistd.h> 754#endif" 755 756ac_subst_vars='SHELL 757PATH_SEPARATOR 758PACKAGE_NAME 759PACKAGE_TARNAME 760PACKAGE_VERSION 761PACKAGE_STRING 762PACKAGE_BUGREPORT 763exec_prefix 764prefix 765program_transform_name 766bindir 767sbindir 768libexecdir 769datarootdir 770datadir 771sysconfdir 772sharedstatedir 773localstatedir 774includedir 775oldincludedir 776docdir 777infodir 778htmldir 779dvidir 780pdfdir 781psdir 782libdir 783localedir 784mandir 785DEFS 786ECHO_C 787ECHO_N 788ECHO_T 789LIBS 790build_alias 791host_alias 792target_alias 793INSTALL_PROGRAM 794INSTALL_SCRIPT 795INSTALL_DATA 796CYGPATH_W 797PACKAGE 798VERSION 799ACLOCAL 800AUTOCONF 801AUTOMAKE 802AUTOHEADER 803MAKEINFO 804install_sh 805STRIP 806INSTALL_STRIP_PROGRAM 807mkdir_p 808AWK 809SET_MAKE 810am__leading_dot 811AMTAR 812am__tar 813am__untar 814MAINTAINER_MODE_TRUE 815MAINTAINER_MODE_FALSE 816MAINT 817CC 818CFLAGS 819LDFLAGS 820CPPFLAGS 821ac_ct_CC 822EXEEXT 823OBJEXT 824DEPDIR 825am__include 826am__quote 827AMDEP_TRUE 828AMDEP_FALSE 829AMDEPBACKSLASH 830CCDEPMODE 831am__fastdepCC_TRUE 832am__fastdepCC_FALSE 833build 834build_cpu 835build_vendor 836build_os 837host 838host_cpu 839host_vendor 840host_os 841GREP 842EGREP 843LN_S 844ECHO 845AR 846RANLIB 847CPP 848CXX 849CXXFLAGS 850ac_ct_CXX 851CXXDEPMODE 852am__fastdepCXX_TRUE 853am__fastdepCXX_FALSE 854CXXCPP 855F77 856FFLAGS 857ac_ct_F77 858LIBTOOL 859PKG_CONFIG 860XT_CFLAGS 861XT_LIBS 862INSTALL_MAKESTRS_TRUE 863INSTALL_MAKESTRS_FALSE 864XFILESEARCHPATHDEFAULT 865appdefaultdir 866STRINGSABIOPTIONS 867RAWCPP 868RAWCPPFLAGS 869APP_MAN_SUFFIX 870LIB_MAN_SUFFIX 871FILE_MAN_SUFFIX 872MISC_MAN_SUFFIX 873DRIVER_MAN_SUFFIX 874ADMIN_MAN_SUFFIX 875APP_MAN_DIR 876LIB_MAN_DIR 877FILE_MAN_DIR 878MISC_MAN_DIR 879DRIVER_MAN_DIR 880ADMIN_MAN_DIR 881MALLOC_ZERO_CFLAGS 882XMALLOC_ZERO_CFLAGS 883XTMALLOC_ZERO_CFLAGS 884LIBOBJS 885LTLIBOBJS' 886ac_subst_files='' 887 ac_precious_vars='build_alias 888host_alias 889target_alias 890CC 891CFLAGS 892LDFLAGS 893CPPFLAGS 894CPP 895CXX 896CXXFLAGS 897CCC 898CXXCPP 899F77 900FFLAGS 901PKG_CONFIG 902XT_CFLAGS 903XT_LIBS' 904 905 906# Initialize some variables set by options. 907ac_init_help= 908ac_init_version=false 909# The variables have the same names as the options, with 910# dashes changed to underlines. 911cache_file=/dev/null 912exec_prefix=NONE 913no_create= 914no_recursion= 915prefix=NONE 916program_prefix=NONE 917program_suffix=NONE 918program_transform_name=s,x,x, 919silent= 920site= 921srcdir= 922verbose= 923x_includes=NONE 924x_libraries=NONE 925 926# Installation directory options. 927# These are left unexpanded so users can "make install exec_prefix=/foo" 928# and all the variables that are supposed to be based on exec_prefix 929# by default will actually change. 930# Use braces instead of parens because sh, perl, etc. also accept them. 931# (The list follows the same order as the GNU Coding Standards.) 932bindir='${exec_prefix}/bin' 933sbindir='${exec_prefix}/sbin' 934libexecdir='${exec_prefix}/libexec' 935datarootdir='${prefix}/share' 936datadir='${datarootdir}' 937sysconfdir='${prefix}/etc' 938sharedstatedir='${prefix}/com' 939localstatedir='${prefix}/var' 940includedir='${prefix}/include' 941oldincludedir='/usr/include' 942docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 943infodir='${datarootdir}/info' 944htmldir='${docdir}' 945dvidir='${docdir}' 946pdfdir='${docdir}' 947psdir='${docdir}' 948libdir='${exec_prefix}/lib' 949localedir='${datarootdir}/locale' 950mandir='${datarootdir}/man' 951 952ac_prev= 953ac_dashdash= 954for ac_option 955do 956 # If the previous option needs an argument, assign it. 957 if test -n "$ac_prev"; then 958 eval $ac_prev=\$ac_option 959 ac_prev= 960 continue 961 fi 962 963 case $ac_option in 964 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 965 *) ac_optarg=yes ;; 966 esac 967 968 # Accept the important Cygnus configure options, so we can diagnose typos. 969 970 case $ac_dashdash$ac_option in 971 --) 972 ac_dashdash=yes ;; 973 974 -bindir | --bindir | --bindi | --bind | --bin | --bi) 975 ac_prev=bindir ;; 976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 977 bindir=$ac_optarg ;; 978 979 -build | --build | --buil | --bui | --bu) 980 ac_prev=build_alias ;; 981 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 982 build_alias=$ac_optarg ;; 983 984 -cache-file | --cache-file | --cache-fil | --cache-fi \ 985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 986 ac_prev=cache_file ;; 987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 989 cache_file=$ac_optarg ;; 990 991 --config-cache | -C) 992 cache_file=config.cache ;; 993 994 -datadir | --datadir | --datadi | --datad) 995 ac_prev=datadir ;; 996 -datadir=* | --datadir=* | --datadi=* | --datad=*) 997 datadir=$ac_optarg ;; 998 999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1000 | --dataroo | --dataro | --datar) 1001 ac_prev=datarootdir ;; 1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1004 datarootdir=$ac_optarg ;; 1005 1006 -disable-* | --disable-*) 1007 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1008 # Reject names that are not valid shell variable names. 1009 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1010 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1011 { (exit 1); exit 1; }; } 1012 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1013 eval enable_$ac_feature=no ;; 1014 1015 -docdir | --docdir | --docdi | --doc | --do) 1016 ac_prev=docdir ;; 1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1018 docdir=$ac_optarg ;; 1019 1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1021 ac_prev=dvidir ;; 1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1023 dvidir=$ac_optarg ;; 1024 1025 -enable-* | --enable-*) 1026 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1027 # Reject names that are not valid shell variable names. 1028 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1029 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1030 { (exit 1); exit 1; }; } 1031 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1032 eval enable_$ac_feature=\$ac_optarg ;; 1033 1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1036 | --exec | --exe | --ex) 1037 ac_prev=exec_prefix ;; 1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1040 | --exec=* | --exe=* | --ex=*) 1041 exec_prefix=$ac_optarg ;; 1042 1043 -gas | --gas | --ga | --g) 1044 # Obsolete; use --with-gas. 1045 with_gas=yes ;; 1046 1047 -help | --help | --hel | --he | -h) 1048 ac_init_help=long ;; 1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1050 ac_init_help=recursive ;; 1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1052 ac_init_help=short ;; 1053 1054 -host | --host | --hos | --ho) 1055 ac_prev=host_alias ;; 1056 -host=* | --host=* | --hos=* | --ho=*) 1057 host_alias=$ac_optarg ;; 1058 1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1060 ac_prev=htmldir ;; 1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1062 | --ht=*) 1063 htmldir=$ac_optarg ;; 1064 1065 -includedir | --includedir | --includedi | --included | --include \ 1066 | --includ | --inclu | --incl | --inc) 1067 ac_prev=includedir ;; 1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1069 | --includ=* | --inclu=* | --incl=* | --inc=*) 1070 includedir=$ac_optarg ;; 1071 1072 -infodir | --infodir | --infodi | --infod | --info | --inf) 1073 ac_prev=infodir ;; 1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1075 infodir=$ac_optarg ;; 1076 1077 -libdir | --libdir | --libdi | --libd) 1078 ac_prev=libdir ;; 1079 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1080 libdir=$ac_optarg ;; 1081 1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1083 | --libexe | --libex | --libe) 1084 ac_prev=libexecdir ;; 1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1086 | --libexe=* | --libex=* | --libe=*) 1087 libexecdir=$ac_optarg ;; 1088 1089 -localedir | --localedir | --localedi | --localed | --locale) 1090 ac_prev=localedir ;; 1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1092 localedir=$ac_optarg ;; 1093 1094 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1095 | --localstate | --localstat | --localsta | --localst | --locals) 1096 ac_prev=localstatedir ;; 1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1099 localstatedir=$ac_optarg ;; 1100 1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1102 ac_prev=mandir ;; 1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1104 mandir=$ac_optarg ;; 1105 1106 -nfp | --nfp | --nf) 1107 # Obsolete; use --without-fp. 1108 with_fp=no ;; 1109 1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1111 | --no-cr | --no-c | -n) 1112 no_create=yes ;; 1113 1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1116 no_recursion=yes ;; 1117 1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1120 | --oldin | --oldi | --old | --ol | --o) 1121 ac_prev=oldincludedir ;; 1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1125 oldincludedir=$ac_optarg ;; 1126 1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1128 ac_prev=prefix ;; 1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1130 prefix=$ac_optarg ;; 1131 1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1133 | --program-pre | --program-pr | --program-p) 1134 ac_prev=program_prefix ;; 1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1137 program_prefix=$ac_optarg ;; 1138 1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1140 | --program-suf | --program-su | --program-s) 1141 ac_prev=program_suffix ;; 1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1144 program_suffix=$ac_optarg ;; 1145 1146 -program-transform-name | --program-transform-name \ 1147 | --program-transform-nam | --program-transform-na \ 1148 | --program-transform-n | --program-transform- \ 1149 | --program-transform | --program-transfor \ 1150 | --program-transfo | --program-transf \ 1151 | --program-trans | --program-tran \ 1152 | --progr-tra | --program-tr | --program-t) 1153 ac_prev=program_transform_name ;; 1154 -program-transform-name=* | --program-transform-name=* \ 1155 | --program-transform-nam=* | --program-transform-na=* \ 1156 | --program-transform-n=* | --program-transform-=* \ 1157 | --program-transform=* | --program-transfor=* \ 1158 | --program-transfo=* | --program-transf=* \ 1159 | --program-trans=* | --program-tran=* \ 1160 | --progr-tra=* | --program-tr=* | --program-t=*) 1161 program_transform_name=$ac_optarg ;; 1162 1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1164 ac_prev=pdfdir ;; 1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1166 pdfdir=$ac_optarg ;; 1167 1168 -psdir | --psdir | --psdi | --psd | --ps) 1169 ac_prev=psdir ;; 1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1171 psdir=$ac_optarg ;; 1172 1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1174 | -silent | --silent | --silen | --sile | --sil) 1175 silent=yes ;; 1176 1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1178 ac_prev=sbindir ;; 1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1180 | --sbi=* | --sb=*) 1181 sbindir=$ac_optarg ;; 1182 1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1185 | --sharedst | --shareds | --shared | --share | --shar \ 1186 | --sha | --sh) 1187 ac_prev=sharedstatedir ;; 1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1191 | --sha=* | --sh=*) 1192 sharedstatedir=$ac_optarg ;; 1193 1194 -site | --site | --sit) 1195 ac_prev=site ;; 1196 -site=* | --site=* | --sit=*) 1197 site=$ac_optarg ;; 1198 1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1200 ac_prev=srcdir ;; 1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1202 srcdir=$ac_optarg ;; 1203 1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1205 | --syscon | --sysco | --sysc | --sys | --sy) 1206 ac_prev=sysconfdir ;; 1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1209 sysconfdir=$ac_optarg ;; 1210 1211 -target | --target | --targe | --targ | --tar | --ta | --t) 1212 ac_prev=target_alias ;; 1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1214 target_alias=$ac_optarg ;; 1215 1216 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1217 verbose=yes ;; 1218 1219 -version | --version | --versio | --versi | --vers | -V) 1220 ac_init_version=: ;; 1221 1222 -with-* | --with-*) 1223 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1224 # Reject names that are not valid shell variable names. 1225 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1226 { echo "$as_me: error: invalid package name: $ac_package" >&2 1227 { (exit 1); exit 1; }; } 1228 ac_package=`echo $ac_package| sed 's/-/_/g'` 1229 eval with_$ac_package=\$ac_optarg ;; 1230 1231 -without-* | --without-*) 1232 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1233 # Reject names that are not valid shell variable names. 1234 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1235 { echo "$as_me: error: invalid package name: $ac_package" >&2 1236 { (exit 1); exit 1; }; } 1237 ac_package=`echo $ac_package | sed 's/-/_/g'` 1238 eval with_$ac_package=no ;; 1239 1240 --x) 1241 # Obsolete; use --with-x. 1242 with_x=yes ;; 1243 1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1245 | --x-incl | --x-inc | --x-in | --x-i) 1246 ac_prev=x_includes ;; 1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1249 x_includes=$ac_optarg ;; 1250 1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1253 ac_prev=x_libraries ;; 1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1256 x_libraries=$ac_optarg ;; 1257 1258 -*) { echo "$as_me: error: unrecognized option: $ac_option 1259Try \`$0 --help' for more information." >&2 1260 { (exit 1); exit 1; }; } 1261 ;; 1262 1263 *=*) 1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1265 # Reject names that are not valid shell variable names. 1266 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1267 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1268 { (exit 1); exit 1; }; } 1269 eval $ac_envvar=\$ac_optarg 1270 export $ac_envvar ;; 1271 1272 *) 1273 # FIXME: should be removed in autoconf 3.0. 1274 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1276 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1277 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1278 ;; 1279 1280 esac 1281done 1282 1283if test -n "$ac_prev"; then 1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1285 { echo "$as_me: error: missing argument to $ac_option" >&2 1286 { (exit 1); exit 1; }; } 1287fi 1288 1289# Be sure to have absolute directory names. 1290for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1291 datadir sysconfdir sharedstatedir localstatedir includedir \ 1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1293 libdir localedir mandir 1294do 1295 eval ac_val=\$$ac_var 1296 case $ac_val in 1297 [\\/$]* | ?:[\\/]* ) continue;; 1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1299 esac 1300 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1301 { (exit 1); exit 1; }; } 1302done 1303 1304# There might be people who depend on the old broken behavior: `$host' 1305# used to hold the argument of --host etc. 1306# FIXME: To remove some day. 1307build=$build_alias 1308host=$host_alias 1309target=$target_alias 1310 1311# FIXME: To remove some day. 1312if test "x$host_alias" != x; then 1313 if test "x$build_alias" = x; then 1314 cross_compiling=maybe 1315 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1316 If a cross compiler is detected then cross compile mode will be used." >&2 1317 elif test "x$build_alias" != "x$host_alias"; then 1318 cross_compiling=yes 1319 fi 1320fi 1321 1322ac_tool_prefix= 1323test -n "$host_alias" && ac_tool_prefix=$host_alias- 1324 1325test "$silent" = yes && exec 6>/dev/null 1326 1327 1328ac_pwd=`pwd` && test -n "$ac_pwd" && 1329ac_ls_di=`ls -di .` && 1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1331 { echo "$as_me: error: Working directory cannot be determined" >&2 1332 { (exit 1); exit 1; }; } 1333test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1334 { echo "$as_me: error: pwd does not report name of working directory" >&2 1335 { (exit 1); exit 1; }; } 1336 1337 1338# Find the source files, if location was not specified. 1339if test -z "$srcdir"; then 1340 ac_srcdir_defaulted=yes 1341 # Try the directory containing this script, then the parent directory. 1342 ac_confdir=`$as_dirname -- "$0" || 1343$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1344 X"$0" : 'X\(//\)[^/]' \| \ 1345 X"$0" : 'X\(//\)$' \| \ 1346 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1347echo X"$0" | 1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)[^/].*/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\/\)$/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\).*/{ 1361 s//\1/ 1362 q 1363 } 1364 s/.*/./; q'` 1365 srcdir=$ac_confdir 1366 if test ! -r "$srcdir/$ac_unique_file"; then 1367 srcdir=.. 1368 fi 1369else 1370 ac_srcdir_defaulted=no 1371fi 1372if test ! -r "$srcdir/$ac_unique_file"; then 1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1374 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1375 { (exit 1); exit 1; }; } 1376fi 1377ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1378ac_abs_confdir=`( 1379 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1380 { (exit 1); exit 1; }; } 1381 pwd)` 1382# When building in place, set srcdir=. 1383if test "$ac_abs_confdir" = "$ac_pwd"; then 1384 srcdir=. 1385fi 1386# Remove unnecessary trailing slashes from srcdir. 1387# Double slashes in file names in object file debugging info 1388# mess up M-x gdb in Emacs. 1389case $srcdir in 1390*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1391esac 1392for ac_var in $ac_precious_vars; do 1393 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1394 eval ac_env_${ac_var}_value=\$${ac_var} 1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1396 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1397done 1398 1399# 1400# Report the --help message. 1401# 1402if test "$ac_init_help" = "long"; then 1403 # Omit some internal or obsolete options to make the list less imposing. 1404 # This message is too long to be a string in the A/UX 3.1 sh. 1405 cat <<_ACEOF 1406\`configure' configures libXt 1.0.5 to adapt to many kinds of systems. 1407 1408Usage: $0 [OPTION]... [VAR=VALUE]... 1409 1410To assign environment variables (e.g., CC, CFLAGS...), specify them as 1411VAR=VALUE. See below for descriptions of some of the useful variables. 1412 1413Defaults for the options are specified in brackets. 1414 1415Configuration: 1416 -h, --help display this help and exit 1417 --help=short display options specific to this package 1418 --help=recursive display the short help of all the included packages 1419 -V, --version display version information and exit 1420 -q, --quiet, --silent do not print \`checking...' messages 1421 --cache-file=FILE cache test results in FILE [disabled] 1422 -C, --config-cache alias for \`--cache-file=config.cache' 1423 -n, --no-create do not create output files 1424 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1425 1426Installation directories: 1427 --prefix=PREFIX install architecture-independent files in PREFIX 1428 [$ac_default_prefix] 1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1430 [PREFIX] 1431 1432By default, \`make install' will install all the files in 1433\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1434an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1435for instance \`--prefix=\$HOME'. 1436 1437For better control, use the options below. 1438 1439Fine tuning of the installation directories: 1440 --bindir=DIR user executables [EPREFIX/bin] 1441 --sbindir=DIR system admin executables [EPREFIX/sbin] 1442 --libexecdir=DIR program executables [EPREFIX/libexec] 1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1446 --libdir=DIR object code libraries [EPREFIX/lib] 1447 --includedir=DIR C header files [PREFIX/include] 1448 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1451 --infodir=DIR info documentation [DATAROOTDIR/info] 1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1453 --mandir=DIR man documentation [DATAROOTDIR/man] 1454 --docdir=DIR documentation root [DATAROOTDIR/doc/libXt] 1455 --htmldir=DIR html documentation [DOCDIR] 1456 --dvidir=DIR dvi documentation [DOCDIR] 1457 --pdfdir=DIR pdf documentation [DOCDIR] 1458 --psdir=DIR ps documentation [DOCDIR] 1459_ACEOF 1460 1461 cat <<\_ACEOF 1462 1463Program names: 1464 --program-prefix=PREFIX prepend PREFIX to installed program names 1465 --program-suffix=SUFFIX append SUFFIX to installed program names 1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1467 1468System types: 1469 --build=BUILD configure for building on BUILD [guessed] 1470 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1471_ACEOF 1472fi 1473 1474if test -n "$ac_init_help"; then 1475 case $ac_init_help in 1476 short | recursive ) echo "Configuration of libXt 1.0.5:";; 1477 esac 1478 cat <<\_ACEOF 1479 1480Optional Features: 1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1483 --enable-maintainer-mode enable make rules and dependencies not useful 1484 (and sometimes confusing) to the casual installer 1485 --disable-dependency-tracking speeds up one-time build 1486 --enable-dependency-tracking do not reject slow dependency extractors 1487 --enable-shared[=PKGS] build shared libraries [default=yes] 1488 --enable-static[=PKGS] build static libraries [default=yes] 1489 --enable-fast-install[=PKGS] 1490 optimize for fast installation [default=yes] 1491 --disable-libtool-lock avoid locking (might break parallel builds) 1492 --disable-xkb Disable XKB support 1493 --disable-install-makestrs 1494 Disable installing makestrs 1495 --enable-malloc0returnsnull 1496 malloc(0) returns NULL (default: auto) 1497 1498Optional Packages: 1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1502 --with-pic try to use only PIC/non-PIC objects [default=use 1503 both] 1504 --with-tags[=TAGS] include additional configurations [automatic] 1505 --with-xfile-search-path=<path> 1506 Set path to search for app-defaults and other files 1507 --with-appdefaultdir=<path> 1508 Set app-default directory (default: 1509 ${datadir}/X11/app-defaults) 1510 --with-release-version=STRING 1511 Use release version string in package name 1512 1513Some influential environment variables: 1514 CC C compiler command 1515 CFLAGS C compiler flags 1516 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1517 nonstandard directory <lib dir> 1518 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1519 you have headers in a nonstandard directory <include dir> 1520 CPP C preprocessor 1521 CXX C++ compiler command 1522 CXXFLAGS C++ compiler flags 1523 CXXCPP C++ preprocessor 1524 F77 Fortran 77 compiler command 1525 FFLAGS Fortran 77 compiler flags 1526 PKG_CONFIG path to pkg-config utility 1527 XT_CFLAGS C compiler flags for XT, overriding pkg-config 1528 XT_LIBS linker flags for XT, overriding pkg-config 1529 1530Use these variables to override the choices made by `configure' or to help 1531it to find libraries and programs with nonstandard names/locations. 1532 1533Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1534_ACEOF 1535ac_status=$? 1536fi 1537 1538if test "$ac_init_help" = "recursive"; then 1539 # If there are subdirs, report their specific --help. 1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1541 test -d "$ac_dir" || continue 1542 ac_builddir=. 1543 1544case "$ac_dir" in 1545.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1546*) 1547 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1548 # A ".." for each directory in $ac_dir_suffix. 1549 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1550 case $ac_top_builddir_sub in 1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1553 esac ;; 1554esac 1555ac_abs_top_builddir=$ac_pwd 1556ac_abs_builddir=$ac_pwd$ac_dir_suffix 1557# for backward compatibility: 1558ac_top_builddir=$ac_top_build_prefix 1559 1560case $srcdir in 1561 .) # We are building in place. 1562 ac_srcdir=. 1563 ac_top_srcdir=$ac_top_builddir_sub 1564 ac_abs_top_srcdir=$ac_pwd ;; 1565 [\\/]* | ?:[\\/]* ) # Absolute name. 1566 ac_srcdir=$srcdir$ac_dir_suffix; 1567 ac_top_srcdir=$srcdir 1568 ac_abs_top_srcdir=$srcdir ;; 1569 *) # Relative name. 1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1571 ac_top_srcdir=$ac_top_build_prefix$srcdir 1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1573esac 1574ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1575 1576 cd "$ac_dir" || { ac_status=$?; continue; } 1577 # Check for guested configure. 1578 if test -f "$ac_srcdir/configure.gnu"; then 1579 echo && 1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1581 elif test -f "$ac_srcdir/configure"; then 1582 echo && 1583 $SHELL "$ac_srcdir/configure" --help=recursive 1584 else 1585 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1586 fi || ac_status=$? 1587 cd "$ac_pwd" || { ac_status=$?; break; } 1588 done 1589fi 1590 1591test -n "$ac_init_help" && exit $ac_status 1592if $ac_init_version; then 1593 cat <<\_ACEOF 1594libXt configure 1.0.5 1595generated by GNU Autoconf 2.60 1596 1597Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15982002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1599This configure script is free software; the Free Software Foundation 1600gives unlimited permission to copy, distribute and modify it. 1601_ACEOF 1602 exit 1603fi 1604cat >config.log <<_ACEOF 1605This file contains any messages produced by compilers while 1606running configure, to aid debugging if configure makes a mistake. 1607 1608It was created by libXt $as_me 1.0.5, which was 1609generated by GNU Autoconf 2.60. Invocation command line was 1610 1611 $ $0 $@ 1612 1613_ACEOF 1614exec 5>>config.log 1615{ 1616cat <<_ASUNAME 1617## --------- ## 1618## Platform. ## 1619## --------- ## 1620 1621hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1622uname -m = `(uname -m) 2>/dev/null || echo unknown` 1623uname -r = `(uname -r) 2>/dev/null || echo unknown` 1624uname -s = `(uname -s) 2>/dev/null || echo unknown` 1625uname -v = `(uname -v) 2>/dev/null || echo unknown` 1626 1627/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1628/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1629 1630/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1631/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1632/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1633/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1634/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1635/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1636/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1637 1638_ASUNAME 1639 1640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1641for as_dir in $PATH 1642do 1643 IFS=$as_save_IFS 1644 test -z "$as_dir" && as_dir=. 1645 echo "PATH: $as_dir" 1646done 1647IFS=$as_save_IFS 1648 1649} >&5 1650 1651cat >&5 <<_ACEOF 1652 1653 1654## ----------- ## 1655## Core tests. ## 1656## ----------- ## 1657 1658_ACEOF 1659 1660 1661# Keep a trace of the command line. 1662# Strip out --no-create and --no-recursion so they do not pile up. 1663# Strip out --silent because we don't want to record it for future runs. 1664# Also quote any args containing shell meta-characters. 1665# Make two passes to allow for proper duplicate-argument suppression. 1666ac_configure_args= 1667ac_configure_args0= 1668ac_configure_args1= 1669ac_must_keep_next=false 1670for ac_pass in 1 2 1671do 1672 for ac_arg 1673 do 1674 case $ac_arg in 1675 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1676 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1677 | -silent | --silent | --silen | --sile | --sil) 1678 continue ;; 1679 *\'*) 1680 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1681 esac 1682 case $ac_pass in 1683 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1684 2) 1685 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1686 if test $ac_must_keep_next = true; then 1687 ac_must_keep_next=false # Got value, back to normal. 1688 else 1689 case $ac_arg in 1690 *=* | --config-cache | -C | -disable-* | --disable-* \ 1691 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1692 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1693 | -with-* | --with-* | -without-* | --without-* | --x) 1694 case "$ac_configure_args0 " in 1695 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1696 esac 1697 ;; 1698 -* ) ac_must_keep_next=true ;; 1699 esac 1700 fi 1701 ac_configure_args="$ac_configure_args '$ac_arg'" 1702 ;; 1703 esac 1704 done 1705done 1706$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1707$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1708 1709# When interrupted or exit'd, cleanup temporary files, and complete 1710# config.log. We remove comments because anyway the quotes in there 1711# would cause problems or look ugly. 1712# WARNING: Use '\'' to represent an apostrophe within the trap. 1713# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1714trap 'exit_status=$? 1715 # Save into config.log some information that might help in debugging. 1716 { 1717 echo 1718 1719 cat <<\_ASBOX 1720## ---------------- ## 1721## Cache variables. ## 1722## ---------------- ## 1723_ASBOX 1724 echo 1725 # The following way of writing the cache mishandles newlines in values, 1726( 1727 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1728 eval ac_val=\$$ac_var 1729 case $ac_val in #( 1730 *${as_nl}*) 1731 case $ac_var in #( 1732 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1733echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1734 esac 1735 case $ac_var in #( 1736 _ | IFS | as_nl) ;; #( 1737 *) $as_unset $ac_var ;; 1738 esac ;; 1739 esac 1740 done 1741 (set) 2>&1 | 1742 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1743 *${as_nl}ac_space=\ *) 1744 sed -n \ 1745 "s/'\''/'\''\\\\'\'''\''/g; 1746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1747 ;; #( 1748 *) 1749 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1750 ;; 1751 esac | 1752 sort 1753) 1754 echo 1755 1756 cat <<\_ASBOX 1757## ----------------- ## 1758## Output variables. ## 1759## ----------------- ## 1760_ASBOX 1761 echo 1762 for ac_var in $ac_subst_vars 1763 do 1764 eval ac_val=\$$ac_var 1765 case $ac_val in 1766 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1767 esac 1768 echo "$ac_var='\''$ac_val'\''" 1769 done | sort 1770 echo 1771 1772 if test -n "$ac_subst_files"; then 1773 cat <<\_ASBOX 1774## ------------------- ## 1775## File substitutions. ## 1776## ------------------- ## 1777_ASBOX 1778 echo 1779 for ac_var in $ac_subst_files 1780 do 1781 eval ac_val=\$$ac_var 1782 case $ac_val in 1783 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1784 esac 1785 echo "$ac_var='\''$ac_val'\''" 1786 done | sort 1787 echo 1788 fi 1789 1790 if test -s confdefs.h; then 1791 cat <<\_ASBOX 1792## ----------- ## 1793## confdefs.h. ## 1794## ----------- ## 1795_ASBOX 1796 echo 1797 cat confdefs.h 1798 echo 1799 fi 1800 test "$ac_signal" != 0 && 1801 echo "$as_me: caught signal $ac_signal" 1802 echo "$as_me: exit $exit_status" 1803 } >&5 1804 rm -f core *.core core.conftest.* && 1805 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1806 exit $exit_status 1807' 0 1808for ac_signal in 1 2 13 15; do 1809 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1810done 1811ac_signal=0 1812 1813# confdefs.h avoids OS command line length limits that DEFS can exceed. 1814rm -f -r conftest* confdefs.h 1815 1816# Predefined preprocessor variables. 1817 1818cat >>confdefs.h <<_ACEOF 1819#define PACKAGE_NAME "$PACKAGE_NAME" 1820_ACEOF 1821 1822 1823cat >>confdefs.h <<_ACEOF 1824#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1825_ACEOF 1826 1827 1828cat >>confdefs.h <<_ACEOF 1829#define PACKAGE_VERSION "$PACKAGE_VERSION" 1830_ACEOF 1831 1832 1833cat >>confdefs.h <<_ACEOF 1834#define PACKAGE_STRING "$PACKAGE_STRING" 1835_ACEOF 1836 1837 1838cat >>confdefs.h <<_ACEOF 1839#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1840_ACEOF 1841 1842 1843# Let the site file select an alternate cache file if it wants to. 1844# Prefer explicitly selected file to automatically selected ones. 1845if test -n "$CONFIG_SITE"; then 1846 set x "$CONFIG_SITE" 1847elif test "x$prefix" != xNONE; then 1848 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1849else 1850 set x "$ac_default_prefix/share/config.site" \ 1851 "$ac_default_prefix/etc/config.site" 1852fi 1853shift 1854for ac_site_file 1855do 1856 if test -r "$ac_site_file"; then 1857 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1858echo "$as_me: loading site script $ac_site_file" >&6;} 1859 sed 's/^/| /' "$ac_site_file" >&5 1860 . "$ac_site_file" 1861 fi 1862done 1863 1864if test -r "$cache_file"; then 1865 # Some versions of bash will fail to source /dev/null (special 1866 # files actually), so we avoid doing that. 1867 if test -f "$cache_file"; then 1868 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1869echo "$as_me: loading cache $cache_file" >&6;} 1870 case $cache_file in 1871 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1872 *) . "./$cache_file";; 1873 esac 1874 fi 1875else 1876 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1877echo "$as_me: creating cache $cache_file" >&6;} 1878 >$cache_file 1879fi 1880 1881# Check that the precious variables saved in the cache have kept the same 1882# value. 1883ac_cache_corrupted=false 1884for ac_var in $ac_precious_vars; do 1885 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1886 eval ac_new_set=\$ac_env_${ac_var}_set 1887 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1888 eval ac_new_val=\$ac_env_${ac_var}_value 1889 case $ac_old_set,$ac_new_set in 1890 set,) 1891 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1892echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1893 ac_cache_corrupted=: ;; 1894 ,set) 1895 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1896echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1897 ac_cache_corrupted=: ;; 1898 ,);; 1899 *) 1900 if test "x$ac_old_val" != "x$ac_new_val"; then 1901 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1902echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1903 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1904echo "$as_me: former value: $ac_old_val" >&2;} 1905 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1906echo "$as_me: current value: $ac_new_val" >&2;} 1907 ac_cache_corrupted=: 1908 fi;; 1909 esac 1910 # Pass precious variables to config.status. 1911 if test "$ac_new_set" = set; then 1912 case $ac_new_val in 1913 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1914 *) ac_arg=$ac_var=$ac_new_val ;; 1915 esac 1916 case " $ac_configure_args " in 1917 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1918 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1919 esac 1920 fi 1921done 1922if $ac_cache_corrupted; then 1923 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1924echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1925 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1926echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1927 { (exit 1); exit 1; }; } 1928fi 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954ac_ext=c 1955ac_cpp='$CPP $CPPFLAGS' 1956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1958ac_compiler_gnu=$ac_cv_c_compiler_gnu 1959 1960 1961am__api_version="1.9" 1962ac_aux_dir= 1963for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1964 if test -f "$ac_dir/install-sh"; then 1965 ac_aux_dir=$ac_dir 1966 ac_install_sh="$ac_aux_dir/install-sh -c" 1967 break 1968 elif test -f "$ac_dir/install.sh"; then 1969 ac_aux_dir=$ac_dir 1970 ac_install_sh="$ac_aux_dir/install.sh -c" 1971 break 1972 elif test -f "$ac_dir/shtool"; then 1973 ac_aux_dir=$ac_dir 1974 ac_install_sh="$ac_aux_dir/shtool install -c" 1975 break 1976 fi 1977done 1978if test -z "$ac_aux_dir"; then 1979 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1980echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1981 { (exit 1); exit 1; }; } 1982fi 1983 1984# These three variables are undocumented and unsupported, 1985# and are intended to be withdrawn in a future Autoconf release. 1986# They can cause serious problems if a builder's source tree is in a directory 1987# whose full name contains unusual characters. 1988ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1989ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1990ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1991 1992 1993# Find a good install program. We prefer a C program (faster), 1994# so one script is as good as another. But avoid the broken or 1995# incompatible versions: 1996# SysV /etc/install, /usr/sbin/install 1997# SunOS /usr/etc/install 1998# IRIX /sbin/install 1999# AIX /bin/install 2000# AmigaOS /C/install, which installs bootblocks on floppy discs 2001# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2002# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2003# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2004# OS/2's system install, which has a completely different semantic 2005# ./install, which can be erroneously created by make from ./install.sh. 2006{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2007echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2008if test -z "$INSTALL"; then 2009if test "${ac_cv_path_install+set}" = set; then 2010 echo $ECHO_N "(cached) $ECHO_C" >&6 2011else 2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2013for as_dir in $PATH 2014do 2015 IFS=$as_save_IFS 2016 test -z "$as_dir" && as_dir=. 2017 # Account for people who put trailing slashes in PATH elements. 2018case $as_dir/ in 2019 ./ | .// | /cC/* | \ 2020 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2021 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2022 /usr/ucb/* ) ;; 2023 *) 2024 # OSF1 and SCO ODT 3.0 have their own names for install. 2025 # Don't use installbsd from OSF since it installs stuff as root 2026 # by default. 2027 for ac_prog in ginstall scoinst install; do 2028 for ac_exec_ext in '' $ac_executable_extensions; do 2029 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 2030 if test $ac_prog = install && 2031 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2032 # AIX install. It has an incompatible calling convention. 2033 : 2034 elif test $ac_prog = install && 2035 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2036 # program-specific install script used by HP pwplus--don't use. 2037 : 2038 else 2039 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2040 break 3 2041 fi 2042 fi 2043 done 2044 done 2045 ;; 2046esac 2047done 2048IFS=$as_save_IFS 2049 2050 2051fi 2052 if test "${ac_cv_path_install+set}" = set; then 2053 INSTALL=$ac_cv_path_install 2054 else 2055 # As a last resort, use the slow shell script. Don't cache a 2056 # value for INSTALL within a source directory, because that will 2057 # break other packages using the cache if that directory is 2058 # removed, or if the value is a relative name. 2059 INSTALL=$ac_install_sh 2060 fi 2061fi 2062{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2063echo "${ECHO_T}$INSTALL" >&6; } 2064 2065# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2066# It thinks the first close brace ends the variable substitution. 2067test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2068 2069test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2070 2071test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2072 2073{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2074echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2075# Just in case 2076sleep 1 2077echo timestamp > conftest.file 2078# Do `set' in a subshell so we don't clobber the current shell's 2079# arguments. Must try -L first in case configure is actually a 2080# symlink; some systems play weird games with the mod time of symlinks 2081# (eg FreeBSD returns the mod time of the symlink's containing 2082# directory). 2083if ( 2084 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2085 if test "$*" = "X"; then 2086 # -L didn't work. 2087 set X `ls -t $srcdir/configure conftest.file` 2088 fi 2089 rm -f conftest.file 2090 if test "$*" != "X $srcdir/configure conftest.file" \ 2091 && test "$*" != "X conftest.file $srcdir/configure"; then 2092 2093 # If neither matched, then we have a broken ls. This can happen 2094 # if, for instance, CONFIG_SHELL is bash and it inherits a 2095 # broken ls alias from the environment. This has actually 2096 # happened. Such a system could not be considered "sane". 2097 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2098alias in your environment" >&5 2099echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2100alias in your environment" >&2;} 2101 { (exit 1); exit 1; }; } 2102 fi 2103 2104 test "$2" = conftest.file 2105 ) 2106then 2107 # Ok. 2108 : 2109else 2110 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2111Check your system clock" >&5 2112echo "$as_me: error: newly created file is older than distributed files! 2113Check your system clock" >&2;} 2114 { (exit 1); exit 1; }; } 2115fi 2116{ echo "$as_me:$LINENO: result: yes" >&5 2117echo "${ECHO_T}yes" >&6; } 2118test "$program_prefix" != NONE && 2119 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2120# Use a double $ so make ignores it. 2121test "$program_suffix" != NONE && 2122 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2123# Double any \ or $. echo might interpret backslashes. 2124# By default was `s,x,x', remove it if useless. 2125cat <<\_ACEOF >conftest.sed 2126s/[\\$]/&&/g;s/;s,x,x,$// 2127_ACEOF 2128program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2129rm -f conftest.sed 2130 2131# expand $ac_aux_dir to an absolute path 2132am_aux_dir=`cd $ac_aux_dir && pwd` 2133 2134test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2135# Use eval to expand $SHELL 2136if eval "$MISSING --run true"; then 2137 am_missing_run="$MISSING --run " 2138else 2139 am_missing_run= 2140 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2141echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2142fi 2143 2144if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2145 # We used to keeping the `.' as first argument, in order to 2146 # allow $(mkdir_p) to be used without argument. As in 2147 # $(mkdir_p) $(somedir) 2148 # where $(somedir) is conditionally defined. However this is wrong 2149 # for two reasons: 2150 # 1. if the package is installed by a user who cannot write `.' 2151 # make install will fail, 2152 # 2. the above comment should most certainly read 2153 # $(mkdir_p) $(DESTDIR)$(somedir) 2154 # so it does not work when $(somedir) is undefined and 2155 # $(DESTDIR) is not. 2156 # To support the latter case, we have to write 2157 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2158 # so the `.' trick is pointless. 2159 mkdir_p='mkdir -p --' 2160else 2161 # On NextStep and OpenStep, the `mkdir' command does not 2162 # recognize any option. It will interpret all options as 2163 # directories to create, and then abort because `.' already 2164 # exists. 2165 for d in ./-p ./--version; 2166 do 2167 test -d $d && rmdir $d 2168 done 2169 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2170 if test -f "$ac_aux_dir/mkinstalldirs"; then 2171 mkdir_p='$(mkinstalldirs)' 2172 else 2173 mkdir_p='$(install_sh) -d' 2174 fi 2175fi 2176 2177for ac_prog in gawk mawk nawk awk 2178do 2179 # Extract the first word of "$ac_prog", so it can be a program name with args. 2180set dummy $ac_prog; ac_word=$2 2181{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2183if test "${ac_cv_prog_AWK+set}" = set; then 2184 echo $ECHO_N "(cached) $ECHO_C" >&6 2185else 2186 if test -n "$AWK"; then 2187 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2188else 2189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2190for as_dir in $PATH 2191do 2192 IFS=$as_save_IFS 2193 test -z "$as_dir" && as_dir=. 2194 for ac_exec_ext in '' $ac_executable_extensions; do 2195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2196 ac_cv_prog_AWK="$ac_prog" 2197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2198 break 2 2199 fi 2200done 2201done 2202IFS=$as_save_IFS 2203 2204fi 2205fi 2206AWK=$ac_cv_prog_AWK 2207if test -n "$AWK"; then 2208 { echo "$as_me:$LINENO: result: $AWK" >&5 2209echo "${ECHO_T}$AWK" >&6; } 2210else 2211 { echo "$as_me:$LINENO: result: no" >&5 2212echo "${ECHO_T}no" >&6; } 2213fi 2214 2215 2216 test -n "$AWK" && break 2217done 2218 2219{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2220echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2221set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2222if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2223 echo $ECHO_N "(cached) $ECHO_C" >&6 2224else 2225 cat >conftest.make <<\_ACEOF 2226SHELL = /bin/sh 2227all: 2228 @echo '@@@%%%=$(MAKE)=@@@%%%' 2229_ACEOF 2230# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2231case `${MAKE-make} -f conftest.make 2>/dev/null` in 2232 *@@@%%%=?*=@@@%%%*) 2233 eval ac_cv_prog_make_${ac_make}_set=yes;; 2234 *) 2235 eval ac_cv_prog_make_${ac_make}_set=no;; 2236esac 2237rm -f conftest.make 2238fi 2239if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2240 { echo "$as_me:$LINENO: result: yes" >&5 2241echo "${ECHO_T}yes" >&6; } 2242 SET_MAKE= 2243else 2244 { echo "$as_me:$LINENO: result: no" >&5 2245echo "${ECHO_T}no" >&6; } 2246 SET_MAKE="MAKE=${MAKE-make}" 2247fi 2248 2249rm -rf .tst 2>/dev/null 2250mkdir .tst 2>/dev/null 2251if test -d .tst; then 2252 am__leading_dot=. 2253else 2254 am__leading_dot=_ 2255fi 2256rmdir .tst 2>/dev/null 2257 2258# test to see if srcdir already configured 2259if test "`cd $srcdir && pwd`" != "`pwd`" && 2260 test -f $srcdir/config.status; then 2261 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2262echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2263 { (exit 1); exit 1; }; } 2264fi 2265 2266# test whether we have cygpath 2267if test -z "$CYGPATH_W"; then 2268 if (cygpath --version) >/dev/null 2>/dev/null; then 2269 CYGPATH_W='cygpath -w' 2270 else 2271 CYGPATH_W=echo 2272 fi 2273fi 2274 2275 2276# Define the identity of the package. 2277 PACKAGE='libXt' 2278 VERSION='1.0.5' 2279 2280 2281cat >>confdefs.h <<_ACEOF 2282#define PACKAGE "$PACKAGE" 2283_ACEOF 2284 2285 2286cat >>confdefs.h <<_ACEOF 2287#define VERSION "$VERSION" 2288_ACEOF 2289 2290# Some tools Automake needs. 2291 2292ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2293 2294 2295AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2296 2297 2298AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2299 2300 2301AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2302 2303 2304MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2305 2306install_sh=${install_sh-"$am_aux_dir/install-sh"} 2307 2308# Installed binaries are usually stripped using `strip' when the user 2309# run `make install-strip'. However `strip' might not be the right 2310# tool to use in cross-compilation environments, therefore Automake 2311# will honor the `STRIP' environment variable to overrule this program. 2312if test "$cross_compiling" != no; then 2313 if test -n "$ac_tool_prefix"; then 2314 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2315set dummy ${ac_tool_prefix}strip; ac_word=$2 2316{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2318if test "${ac_cv_prog_STRIP+set}" = set; then 2319 echo $ECHO_N "(cached) $ECHO_C" >&6 2320else 2321 if test -n "$STRIP"; then 2322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2323else 2324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2325for as_dir in $PATH 2326do 2327 IFS=$as_save_IFS 2328 test -z "$as_dir" && as_dir=. 2329 for ac_exec_ext in '' $ac_executable_extensions; do 2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2331 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2333 break 2 2334 fi 2335done 2336done 2337IFS=$as_save_IFS 2338 2339fi 2340fi 2341STRIP=$ac_cv_prog_STRIP 2342if test -n "$STRIP"; then 2343 { echo "$as_me:$LINENO: result: $STRIP" >&5 2344echo "${ECHO_T}$STRIP" >&6; } 2345else 2346 { echo "$as_me:$LINENO: result: no" >&5 2347echo "${ECHO_T}no" >&6; } 2348fi 2349 2350 2351fi 2352if test -z "$ac_cv_prog_STRIP"; then 2353 ac_ct_STRIP=$STRIP 2354 # Extract the first word of "strip", so it can be a program name with args. 2355set dummy strip; ac_word=$2 2356{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2358if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2359 echo $ECHO_N "(cached) $ECHO_C" >&6 2360else 2361 if test -n "$ac_ct_STRIP"; then 2362 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2363else 2364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2365for as_dir in $PATH 2366do 2367 IFS=$as_save_IFS 2368 test -z "$as_dir" && as_dir=. 2369 for ac_exec_ext in '' $ac_executable_extensions; do 2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2371 ac_cv_prog_ac_ct_STRIP="strip" 2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2373 break 2 2374 fi 2375done 2376done 2377IFS=$as_save_IFS 2378 2379fi 2380fi 2381ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2382if test -n "$ac_ct_STRIP"; then 2383 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2384echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2385else 2386 { echo "$as_me:$LINENO: result: no" >&5 2387echo "${ECHO_T}no" >&6; } 2388fi 2389 2390 if test "x$ac_ct_STRIP" = x; then 2391 STRIP=":" 2392 else 2393 case $cross_compiling:$ac_tool_warned in 2394yes:) 2395{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2396whose name does not start with the host triplet. If you think this 2397configuration is useful to you, please write to autoconf@gnu.org." >&5 2398echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2399whose name does not start with the host triplet. If you think this 2400configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2401ac_tool_warned=yes ;; 2402esac 2403 STRIP=$ac_ct_STRIP 2404 fi 2405else 2406 STRIP="$ac_cv_prog_STRIP" 2407fi 2408 2409fi 2410INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2411 2412# We need awk for the "check" target. The system "awk" is bad on 2413# some platforms. 2414# Always define AMTAR for backward compatibility. 2415 2416AMTAR=${AMTAR-"${am_missing_run}tar"} 2417 2418am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2419 2420 2421 2422 2423 2424{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2425echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2426 # Check whether --enable-maintainer-mode was given. 2427if test "${enable_maintainer_mode+set}" = set; then 2428 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2429else 2430 USE_MAINTAINER_MODE=no 2431fi 2432 2433 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2434echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2435 2436 2437if test $USE_MAINTAINER_MODE = yes; then 2438 MAINTAINER_MODE_TRUE= 2439 MAINTAINER_MODE_FALSE='#' 2440else 2441 MAINTAINER_MODE_TRUE='#' 2442 MAINTAINER_MODE_FALSE= 2443fi 2444 2445 MAINT=$MAINTAINER_MODE_TRUE 2446 2447 2448 2449ac_config_headers="$ac_config_headers config.h" 2450 2451 2452# Check for progs 2453ac_ext=c 2454ac_cpp='$CPP $CPPFLAGS' 2455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2457ac_compiler_gnu=$ac_cv_c_compiler_gnu 2458if test -n "$ac_tool_prefix"; then 2459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2460set dummy ${ac_tool_prefix}gcc; ac_word=$2 2461{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2463if test "${ac_cv_prog_CC+set}" = set; then 2464 echo $ECHO_N "(cached) $ECHO_C" >&6 2465else 2466 if test -n "$CC"; then 2467 ac_cv_prog_CC="$CC" # Let the user override the test. 2468else 2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2470for as_dir in $PATH 2471do 2472 IFS=$as_save_IFS 2473 test -z "$as_dir" && as_dir=. 2474 for ac_exec_ext in '' $ac_executable_extensions; do 2475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2476 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2478 break 2 2479 fi 2480done 2481done 2482IFS=$as_save_IFS 2483 2484fi 2485fi 2486CC=$ac_cv_prog_CC 2487if test -n "$CC"; then 2488 { echo "$as_me:$LINENO: result: $CC" >&5 2489echo "${ECHO_T}$CC" >&6; } 2490else 2491 { echo "$as_me:$LINENO: result: no" >&5 2492echo "${ECHO_T}no" >&6; } 2493fi 2494 2495 2496fi 2497if test -z "$ac_cv_prog_CC"; then 2498 ac_ct_CC=$CC 2499 # Extract the first word of "gcc", so it can be a program name with args. 2500set dummy gcc; ac_word=$2 2501{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2503if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2504 echo $ECHO_N "(cached) $ECHO_C" >&6 2505else 2506 if test -n "$ac_ct_CC"; then 2507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2508else 2509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2510for as_dir in $PATH 2511do 2512 IFS=$as_save_IFS 2513 test -z "$as_dir" && as_dir=. 2514 for ac_exec_ext in '' $ac_executable_extensions; do 2515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2516 ac_cv_prog_ac_ct_CC="gcc" 2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2518 break 2 2519 fi 2520done 2521done 2522IFS=$as_save_IFS 2523 2524fi 2525fi 2526ac_ct_CC=$ac_cv_prog_ac_ct_CC 2527if test -n "$ac_ct_CC"; then 2528 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2529echo "${ECHO_T}$ac_ct_CC" >&6; } 2530else 2531 { echo "$as_me:$LINENO: result: no" >&5 2532echo "${ECHO_T}no" >&6; } 2533fi 2534 2535 if test "x$ac_ct_CC" = x; then 2536 CC="" 2537 else 2538 case $cross_compiling:$ac_tool_warned in 2539yes:) 2540{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2541whose name does not start with the host triplet. If you think this 2542configuration is useful to you, please write to autoconf@gnu.org." >&5 2543echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2544whose name does not start with the host triplet. If you think this 2545configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2546ac_tool_warned=yes ;; 2547esac 2548 CC=$ac_ct_CC 2549 fi 2550else 2551 CC="$ac_cv_prog_CC" 2552fi 2553 2554if test -z "$CC"; then 2555 if test -n "$ac_tool_prefix"; then 2556 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2557set dummy ${ac_tool_prefix}cc; ac_word=$2 2558{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2560if test "${ac_cv_prog_CC+set}" = set; then 2561 echo $ECHO_N "(cached) $ECHO_C" >&6 2562else 2563 if test -n "$CC"; then 2564 ac_cv_prog_CC="$CC" # Let the user override the test. 2565else 2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2567for as_dir in $PATH 2568do 2569 IFS=$as_save_IFS 2570 test -z "$as_dir" && as_dir=. 2571 for ac_exec_ext in '' $ac_executable_extensions; do 2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2573 ac_cv_prog_CC="${ac_tool_prefix}cc" 2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2575 break 2 2576 fi 2577done 2578done 2579IFS=$as_save_IFS 2580 2581fi 2582fi 2583CC=$ac_cv_prog_CC 2584if test -n "$CC"; then 2585 { echo "$as_me:$LINENO: result: $CC" >&5 2586echo "${ECHO_T}$CC" >&6; } 2587else 2588 { echo "$as_me:$LINENO: result: no" >&5 2589echo "${ECHO_T}no" >&6; } 2590fi 2591 2592 2593 fi 2594fi 2595if test -z "$CC"; then 2596 # Extract the first word of "cc", so it can be a program name with args. 2597set dummy cc; ac_word=$2 2598{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2600if test "${ac_cv_prog_CC+set}" = set; then 2601 echo $ECHO_N "(cached) $ECHO_C" >&6 2602else 2603 if test -n "$CC"; then 2604 ac_cv_prog_CC="$CC" # Let the user override the test. 2605else 2606 ac_prog_rejected=no 2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2608for as_dir in $PATH 2609do 2610 IFS=$as_save_IFS 2611 test -z "$as_dir" && as_dir=. 2612 for ac_exec_ext in '' $ac_executable_extensions; do 2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2615 ac_prog_rejected=yes 2616 continue 2617 fi 2618 ac_cv_prog_CC="cc" 2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2620 break 2 2621 fi 2622done 2623done 2624IFS=$as_save_IFS 2625 2626if test $ac_prog_rejected = yes; then 2627 # We found a bogon in the path, so make sure we never use it. 2628 set dummy $ac_cv_prog_CC 2629 shift 2630 if test $# != 0; then 2631 # We chose a different compiler from the bogus one. 2632 # However, it has the same basename, so the bogon will be chosen 2633 # first if we set CC to just the basename; use the full file name. 2634 shift 2635 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2636 fi 2637fi 2638fi 2639fi 2640CC=$ac_cv_prog_CC 2641if test -n "$CC"; then 2642 { echo "$as_me:$LINENO: result: $CC" >&5 2643echo "${ECHO_T}$CC" >&6; } 2644else 2645 { echo "$as_me:$LINENO: result: no" >&5 2646echo "${ECHO_T}no" >&6; } 2647fi 2648 2649 2650fi 2651if test -z "$CC"; then 2652 if test -n "$ac_tool_prefix"; then 2653 for ac_prog in cl.exe 2654 do 2655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2656set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2657{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2659if test "${ac_cv_prog_CC+set}" = set; then 2660 echo $ECHO_N "(cached) $ECHO_C" >&6 2661else 2662 if test -n "$CC"; then 2663 ac_cv_prog_CC="$CC" # Let the user override the test. 2664else 2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2666for as_dir in $PATH 2667do 2668 IFS=$as_save_IFS 2669 test -z "$as_dir" && as_dir=. 2670 for ac_exec_ext in '' $ac_executable_extensions; do 2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2674 break 2 2675 fi 2676done 2677done 2678IFS=$as_save_IFS 2679 2680fi 2681fi 2682CC=$ac_cv_prog_CC 2683if test -n "$CC"; then 2684 { echo "$as_me:$LINENO: result: $CC" >&5 2685echo "${ECHO_T}$CC" >&6; } 2686else 2687 { echo "$as_me:$LINENO: result: no" >&5 2688echo "${ECHO_T}no" >&6; } 2689fi 2690 2691 2692 test -n "$CC" && break 2693 done 2694fi 2695if test -z "$CC"; then 2696 ac_ct_CC=$CC 2697 for ac_prog in cl.exe 2698do 2699 # Extract the first word of "$ac_prog", so it can be a program name with args. 2700set dummy $ac_prog; ac_word=$2 2701{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2703if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2704 echo $ECHO_N "(cached) $ECHO_C" >&6 2705else 2706 if test -n "$ac_ct_CC"; then 2707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2708else 2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2710for as_dir in $PATH 2711do 2712 IFS=$as_save_IFS 2713 test -z "$as_dir" && as_dir=. 2714 for ac_exec_ext in '' $ac_executable_extensions; do 2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2716 ac_cv_prog_ac_ct_CC="$ac_prog" 2717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2718 break 2 2719 fi 2720done 2721done 2722IFS=$as_save_IFS 2723 2724fi 2725fi 2726ac_ct_CC=$ac_cv_prog_ac_ct_CC 2727if test -n "$ac_ct_CC"; then 2728 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2729echo "${ECHO_T}$ac_ct_CC" >&6; } 2730else 2731 { echo "$as_me:$LINENO: result: no" >&5 2732echo "${ECHO_T}no" >&6; } 2733fi 2734 2735 2736 test -n "$ac_ct_CC" && break 2737done 2738 2739 if test "x$ac_ct_CC" = x; then 2740 CC="" 2741 else 2742 case $cross_compiling:$ac_tool_warned in 2743yes:) 2744{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2745whose name does not start with the host triplet. If you think this 2746configuration is useful to you, please write to autoconf@gnu.org." >&5 2747echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2748whose name does not start with the host triplet. If you think this 2749configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2750ac_tool_warned=yes ;; 2751esac 2752 CC=$ac_ct_CC 2753 fi 2754fi 2755 2756fi 2757 2758 2759test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2760See \`config.log' for more details." >&5 2761echo "$as_me: error: no acceptable C compiler found in \$PATH 2762See \`config.log' for more details." >&2;} 2763 { (exit 1); exit 1; }; } 2764 2765# Provide some information about the compiler. 2766echo "$as_me:$LINENO: checking for C compiler version" >&5 2767ac_compiler=`set X $ac_compile; echo $2` 2768{ (ac_try="$ac_compiler --version >&5" 2769case "(($ac_try" in 2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2771 *) ac_try_echo=$ac_try;; 2772esac 2773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2774 (eval "$ac_compiler --version >&5") 2>&5 2775 ac_status=$? 2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2777 (exit $ac_status); } 2778{ (ac_try="$ac_compiler -v >&5" 2779case "(($ac_try" in 2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2781 *) ac_try_echo=$ac_try;; 2782esac 2783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2784 (eval "$ac_compiler -v >&5") 2>&5 2785 ac_status=$? 2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2787 (exit $ac_status); } 2788{ (ac_try="$ac_compiler -V >&5" 2789case "(($ac_try" in 2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2791 *) ac_try_echo=$ac_try;; 2792esac 2793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2794 (eval "$ac_compiler -V >&5") 2>&5 2795 ac_status=$? 2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2797 (exit $ac_status); } 2798 2799cat >conftest.$ac_ext <<_ACEOF 2800/* confdefs.h. */ 2801_ACEOF 2802cat confdefs.h >>conftest.$ac_ext 2803cat >>conftest.$ac_ext <<_ACEOF 2804/* end confdefs.h. */ 2805 2806int 2807main () 2808{ 2809 2810 ; 2811 return 0; 2812} 2813_ACEOF 2814ac_clean_files_save=$ac_clean_files 2815ac_clean_files="$ac_clean_files a.out a.exe b.out" 2816# Try to create an executable without -o first, disregard a.out. 2817# It will help us diagnose broken compilers, and finding out an intuition 2818# of exeext. 2819{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2820echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2821ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2822# 2823# List of possible output files, starting from the most likely. 2824# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2825# only as a last resort. b.out is created by i960 compilers. 2826ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2827# 2828# The IRIX 6 linker writes into existing files which may not be 2829# executable, retaining their permissions. Remove them first so a 2830# subsequent execution test works. 2831ac_rmfiles= 2832for ac_file in $ac_files 2833do 2834 case $ac_file in 2835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2836 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2837 esac 2838done 2839rm -f $ac_rmfiles 2840 2841if { (ac_try="$ac_link_default" 2842case "(($ac_try" in 2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2844 *) ac_try_echo=$ac_try;; 2845esac 2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2847 (eval "$ac_link_default") 2>&5 2848 ac_status=$? 2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2850 (exit $ac_status); }; then 2851 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2852# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2853# in a Makefile. We should not override ac_cv_exeext if it was cached, 2854# so that the user can short-circuit this test for compilers unknown to 2855# Autoconf. 2856for ac_file in $ac_files 2857do 2858 test -f "$ac_file" || continue 2859 case $ac_file in 2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2861 ;; 2862 [ab].out ) 2863 # We found the default executable, but exeext='' is most 2864 # certainly right. 2865 break;; 2866 *.* ) 2867 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2868 then :; else 2869 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2870 fi 2871 # We set ac_cv_exeext here because the later test for it is not 2872 # safe: cross compilers may not add the suffix if given an `-o' 2873 # argument, so we may need to know it at that point already. 2874 # Even if this section looks crufty: it has the advantage of 2875 # actually working. 2876 break;; 2877 * ) 2878 break;; 2879 esac 2880done 2881test "$ac_cv_exeext" = no && ac_cv_exeext= 2882 2883else 2884 echo "$as_me: failed program was:" >&5 2885sed 's/^/| /' conftest.$ac_ext >&5 2886 2887{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2888See \`config.log' for more details." >&5 2889echo "$as_me: error: C compiler cannot create executables 2890See \`config.log' for more details." >&2;} 2891 { (exit 77); exit 77; }; } 2892fi 2893 2894ac_exeext=$ac_cv_exeext 2895{ echo "$as_me:$LINENO: result: $ac_file" >&5 2896echo "${ECHO_T}$ac_file" >&6; } 2897 2898# Check that the compiler produces executables we can run. If not, either 2899# the compiler is broken, or we cross compile. 2900{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2901echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2902# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2903# If not cross compiling, check that we can run a simple program. 2904if test "$cross_compiling" != yes; then 2905 if { ac_try='./$ac_file' 2906 { (case "(($ac_try" in 2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2908 *) ac_try_echo=$ac_try;; 2909esac 2910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2911 (eval "$ac_try") 2>&5 2912 ac_status=$? 2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2914 (exit $ac_status); }; }; then 2915 cross_compiling=no 2916 else 2917 if test "$cross_compiling" = maybe; then 2918 cross_compiling=yes 2919 else 2920 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2921If you meant to cross compile, use \`--host'. 2922See \`config.log' for more details." >&5 2923echo "$as_me: error: cannot run C compiled programs. 2924If you meant to cross compile, use \`--host'. 2925See \`config.log' for more details." >&2;} 2926 { (exit 1); exit 1; }; } 2927 fi 2928 fi 2929fi 2930{ echo "$as_me:$LINENO: result: yes" >&5 2931echo "${ECHO_T}yes" >&6; } 2932 2933rm -f a.out a.exe conftest$ac_cv_exeext b.out 2934ac_clean_files=$ac_clean_files_save 2935# Check that the compiler produces executables we can run. If not, either 2936# the compiler is broken, or we cross compile. 2937{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2938echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2939{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2940echo "${ECHO_T}$cross_compiling" >&6; } 2941 2942{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2943echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2944if { (ac_try="$ac_link" 2945case "(($ac_try" in 2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2947 *) ac_try_echo=$ac_try;; 2948esac 2949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2950 (eval "$ac_link") 2>&5 2951 ac_status=$? 2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2953 (exit $ac_status); }; then 2954 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2955# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2956# work properly (i.e., refer to `conftest.exe'), while it won't with 2957# `rm'. 2958for ac_file in conftest.exe conftest conftest.*; do 2959 test -f "$ac_file" || continue 2960 case $ac_file in 2961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2962 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2963 break;; 2964 * ) break;; 2965 esac 2966done 2967else 2968 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2969See \`config.log' for more details." >&5 2970echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2971See \`config.log' for more details." >&2;} 2972 { (exit 1); exit 1; }; } 2973fi 2974 2975rm -f conftest$ac_cv_exeext 2976{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2977echo "${ECHO_T}$ac_cv_exeext" >&6; } 2978 2979rm -f conftest.$ac_ext 2980EXEEXT=$ac_cv_exeext 2981ac_exeext=$EXEEXT 2982{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2983echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2984if test "${ac_cv_objext+set}" = set; then 2985 echo $ECHO_N "(cached) $ECHO_C" >&6 2986else 2987 cat >conftest.$ac_ext <<_ACEOF 2988/* confdefs.h. */ 2989_ACEOF 2990cat confdefs.h >>conftest.$ac_ext 2991cat >>conftest.$ac_ext <<_ACEOF 2992/* end confdefs.h. */ 2993 2994int 2995main () 2996{ 2997 2998 ; 2999 return 0; 3000} 3001_ACEOF 3002rm -f conftest.o conftest.obj 3003if { (ac_try="$ac_compile" 3004case "(($ac_try" in 3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3006 *) ac_try_echo=$ac_try;; 3007esac 3008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3009 (eval "$ac_compile") 2>&5 3010 ac_status=$? 3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3012 (exit $ac_status); }; then 3013 for ac_file in conftest.o conftest.obj conftest.*; do 3014 test -f "$ac_file" || continue; 3015 case $ac_file in 3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3017 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3018 break;; 3019 esac 3020done 3021else 3022 echo "$as_me: failed program was:" >&5 3023sed 's/^/| /' conftest.$ac_ext >&5 3024 3025{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3026See \`config.log' for more details." >&5 3027echo "$as_me: error: cannot compute suffix of object files: cannot compile 3028See \`config.log' for more details." >&2;} 3029 { (exit 1); exit 1; }; } 3030fi 3031 3032rm -f conftest.$ac_cv_objext conftest.$ac_ext 3033fi 3034{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3035echo "${ECHO_T}$ac_cv_objext" >&6; } 3036OBJEXT=$ac_cv_objext 3037ac_objext=$OBJEXT 3038{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3039echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3040if test "${ac_cv_c_compiler_gnu+set}" = set; then 3041 echo $ECHO_N "(cached) $ECHO_C" >&6 3042else 3043 cat >conftest.$ac_ext <<_ACEOF 3044/* confdefs.h. */ 3045_ACEOF 3046cat confdefs.h >>conftest.$ac_ext 3047cat >>conftest.$ac_ext <<_ACEOF 3048/* end confdefs.h. */ 3049 3050int 3051main () 3052{ 3053#ifndef __GNUC__ 3054 choke me 3055#endif 3056 3057 ; 3058 return 0; 3059} 3060_ACEOF 3061rm -f conftest.$ac_objext 3062if { (ac_try="$ac_compile" 3063case "(($ac_try" in 3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3065 *) ac_try_echo=$ac_try;; 3066esac 3067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3068 (eval "$ac_compile") 2>conftest.er1 3069 ac_status=$? 3070 grep -v '^ *+' conftest.er1 >conftest.err 3071 rm -f conftest.er1 3072 cat conftest.err >&5 3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3074 (exit $ac_status); } && 3075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3076 { (case "(($ac_try" in 3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3078 *) ac_try_echo=$ac_try;; 3079esac 3080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3081 (eval "$ac_try") 2>&5 3082 ac_status=$? 3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3084 (exit $ac_status); }; } && 3085 { ac_try='test -s conftest.$ac_objext' 3086 { (case "(($ac_try" in 3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3088 *) ac_try_echo=$ac_try;; 3089esac 3090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3091 (eval "$ac_try") 2>&5 3092 ac_status=$? 3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3094 (exit $ac_status); }; }; then 3095 ac_compiler_gnu=yes 3096else 3097 echo "$as_me: failed program was:" >&5 3098sed 's/^/| /' conftest.$ac_ext >&5 3099 3100 ac_compiler_gnu=no 3101fi 3102 3103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3104ac_cv_c_compiler_gnu=$ac_compiler_gnu 3105 3106fi 3107{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3108echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3109GCC=`test $ac_compiler_gnu = yes && echo yes` 3110ac_test_CFLAGS=${CFLAGS+set} 3111ac_save_CFLAGS=$CFLAGS 3112{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3113echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3114if test "${ac_cv_prog_cc_g+set}" = set; then 3115 echo $ECHO_N "(cached) $ECHO_C" >&6 3116else 3117 ac_save_c_werror_flag=$ac_c_werror_flag 3118 ac_c_werror_flag=yes 3119 ac_cv_prog_cc_g=no 3120 CFLAGS="-g" 3121 cat >conftest.$ac_ext <<_ACEOF 3122/* confdefs.h. */ 3123_ACEOF 3124cat confdefs.h >>conftest.$ac_ext 3125cat >>conftest.$ac_ext <<_ACEOF 3126/* end confdefs.h. */ 3127 3128int 3129main () 3130{ 3131 3132 ; 3133 return 0; 3134} 3135_ACEOF 3136rm -f conftest.$ac_objext 3137if { (ac_try="$ac_compile" 3138case "(($ac_try" in 3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3140 *) ac_try_echo=$ac_try;; 3141esac 3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3143 (eval "$ac_compile") 2>conftest.er1 3144 ac_status=$? 3145 grep -v '^ *+' conftest.er1 >conftest.err 3146 rm -f conftest.er1 3147 cat conftest.err >&5 3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3149 (exit $ac_status); } && 3150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3151 { (case "(($ac_try" in 3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3153 *) ac_try_echo=$ac_try;; 3154esac 3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3156 (eval "$ac_try") 2>&5 3157 ac_status=$? 3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3159 (exit $ac_status); }; } && 3160 { ac_try='test -s conftest.$ac_objext' 3161 { (case "(($ac_try" in 3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3163 *) ac_try_echo=$ac_try;; 3164esac 3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3166 (eval "$ac_try") 2>&5 3167 ac_status=$? 3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3169 (exit $ac_status); }; }; then 3170 ac_cv_prog_cc_g=yes 3171else 3172 echo "$as_me: failed program was:" >&5 3173sed 's/^/| /' conftest.$ac_ext >&5 3174 3175 CFLAGS="" 3176 cat >conftest.$ac_ext <<_ACEOF 3177/* confdefs.h. */ 3178_ACEOF 3179cat confdefs.h >>conftest.$ac_ext 3180cat >>conftest.$ac_ext <<_ACEOF 3181/* end confdefs.h. */ 3182 3183int 3184main () 3185{ 3186 3187 ; 3188 return 0; 3189} 3190_ACEOF 3191rm -f conftest.$ac_objext 3192if { (ac_try="$ac_compile" 3193case "(($ac_try" in 3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3195 *) ac_try_echo=$ac_try;; 3196esac 3197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3198 (eval "$ac_compile") 2>conftest.er1 3199 ac_status=$? 3200 grep -v '^ *+' conftest.er1 >conftest.err 3201 rm -f conftest.er1 3202 cat conftest.err >&5 3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3204 (exit $ac_status); } && 3205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3206 { (case "(($ac_try" in 3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3208 *) ac_try_echo=$ac_try;; 3209esac 3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3211 (eval "$ac_try") 2>&5 3212 ac_status=$? 3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3214 (exit $ac_status); }; } && 3215 { ac_try='test -s conftest.$ac_objext' 3216 { (case "(($ac_try" in 3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3218 *) ac_try_echo=$ac_try;; 3219esac 3220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3221 (eval "$ac_try") 2>&5 3222 ac_status=$? 3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3224 (exit $ac_status); }; }; then 3225 : 3226else 3227 echo "$as_me: failed program was:" >&5 3228sed 's/^/| /' conftest.$ac_ext >&5 3229 3230 ac_c_werror_flag=$ac_save_c_werror_flag 3231 CFLAGS="-g" 3232 cat >conftest.$ac_ext <<_ACEOF 3233/* confdefs.h. */ 3234_ACEOF 3235cat confdefs.h >>conftest.$ac_ext 3236cat >>conftest.$ac_ext <<_ACEOF 3237/* end confdefs.h. */ 3238 3239int 3240main () 3241{ 3242 3243 ; 3244 return 0; 3245} 3246_ACEOF 3247rm -f conftest.$ac_objext 3248if { (ac_try="$ac_compile" 3249case "(($ac_try" in 3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3251 *) ac_try_echo=$ac_try;; 3252esac 3253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3254 (eval "$ac_compile") 2>conftest.er1 3255 ac_status=$? 3256 grep -v '^ *+' conftest.er1 >conftest.err 3257 rm -f conftest.er1 3258 cat conftest.err >&5 3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3260 (exit $ac_status); } && 3261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3262 { (case "(($ac_try" in 3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3264 *) ac_try_echo=$ac_try;; 3265esac 3266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3267 (eval "$ac_try") 2>&5 3268 ac_status=$? 3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3270 (exit $ac_status); }; } && 3271 { ac_try='test -s conftest.$ac_objext' 3272 { (case "(($ac_try" in 3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3274 *) ac_try_echo=$ac_try;; 3275esac 3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3277 (eval "$ac_try") 2>&5 3278 ac_status=$? 3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3280 (exit $ac_status); }; }; then 3281 ac_cv_prog_cc_g=yes 3282else 3283 echo "$as_me: failed program was:" >&5 3284sed 's/^/| /' conftest.$ac_ext >&5 3285 3286 3287fi 3288 3289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3290fi 3291 3292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3293fi 3294 3295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3296 ac_c_werror_flag=$ac_save_c_werror_flag 3297fi 3298{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3299echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3300if test "$ac_test_CFLAGS" = set; then 3301 CFLAGS=$ac_save_CFLAGS 3302elif test $ac_cv_prog_cc_g = yes; then 3303 if test "$GCC" = yes; then 3304 CFLAGS="-g -O2" 3305 else 3306 CFLAGS="-g" 3307 fi 3308else 3309 if test "$GCC" = yes; then 3310 CFLAGS="-O2" 3311 else 3312 CFLAGS= 3313 fi 3314fi 3315{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3316echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3317if test "${ac_cv_prog_cc_c89+set}" = set; then 3318 echo $ECHO_N "(cached) $ECHO_C" >&6 3319else 3320 ac_cv_prog_cc_c89=no 3321ac_save_CC=$CC 3322cat >conftest.$ac_ext <<_ACEOF 3323/* confdefs.h. */ 3324_ACEOF 3325cat confdefs.h >>conftest.$ac_ext 3326cat >>conftest.$ac_ext <<_ACEOF 3327/* end confdefs.h. */ 3328#include <stdarg.h> 3329#include <stdio.h> 3330#include <sys/types.h> 3331#include <sys/stat.h> 3332/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3333struct buf { int x; }; 3334FILE * (*rcsopen) (struct buf *, struct stat *, int); 3335static char *e (p, i) 3336 char **p; 3337 int i; 3338{ 3339 return p[i]; 3340} 3341static char *f (char * (*g) (char **, int), char **p, ...) 3342{ 3343 char *s; 3344 va_list v; 3345 va_start (v,p); 3346 s = g (p, va_arg (v,int)); 3347 va_end (v); 3348 return s; 3349} 3350 3351/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3352 function prototypes and stuff, but not '\xHH' hex character constants. 3353 These don't provoke an error unfortunately, instead are silently treated 3354 as 'x'. The following induces an error, until -std is added to get 3355 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3356 array size at least. It's necessary to write '\x00'==0 to get something 3357 that's true only with -std. */ 3358int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3359 3360/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3361 inside strings and character constants. */ 3362#define FOO(x) 'x' 3363int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3364 3365int test (int i, double x); 3366struct s1 {int (*f) (int a);}; 3367struct s2 {int (*f) (double a);}; 3368int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3369int argc; 3370char **argv; 3371int 3372main () 3373{ 3374return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3375 ; 3376 return 0; 3377} 3378_ACEOF 3379for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3380 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3381do 3382 CC="$ac_save_CC $ac_arg" 3383 rm -f conftest.$ac_objext 3384if { (ac_try="$ac_compile" 3385case "(($ac_try" in 3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3387 *) ac_try_echo=$ac_try;; 3388esac 3389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3390 (eval "$ac_compile") 2>conftest.er1 3391 ac_status=$? 3392 grep -v '^ *+' conftest.er1 >conftest.err 3393 rm -f conftest.er1 3394 cat conftest.err >&5 3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3396 (exit $ac_status); } && 3397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3398 { (case "(($ac_try" in 3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3400 *) ac_try_echo=$ac_try;; 3401esac 3402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3403 (eval "$ac_try") 2>&5 3404 ac_status=$? 3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3406 (exit $ac_status); }; } && 3407 { ac_try='test -s conftest.$ac_objext' 3408 { (case "(($ac_try" in 3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3410 *) ac_try_echo=$ac_try;; 3411esac 3412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3413 (eval "$ac_try") 2>&5 3414 ac_status=$? 3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3416 (exit $ac_status); }; }; then 3417 ac_cv_prog_cc_c89=$ac_arg 3418else 3419 echo "$as_me: failed program was:" >&5 3420sed 's/^/| /' conftest.$ac_ext >&5 3421 3422 3423fi 3424 3425rm -f core conftest.err conftest.$ac_objext 3426 test "x$ac_cv_prog_cc_c89" != "xno" && break 3427done 3428rm -f conftest.$ac_ext 3429CC=$ac_save_CC 3430 3431fi 3432# AC_CACHE_VAL 3433case "x$ac_cv_prog_cc_c89" in 3434 x) 3435 { echo "$as_me:$LINENO: result: none needed" >&5 3436echo "${ECHO_T}none needed" >&6; } ;; 3437 xno) 3438 { echo "$as_me:$LINENO: result: unsupported" >&5 3439echo "${ECHO_T}unsupported" >&6; } ;; 3440 *) 3441 CC="$CC $ac_cv_prog_cc_c89" 3442 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3443echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3444esac 3445 3446 3447ac_ext=c 3448ac_cpp='$CPP $CPPFLAGS' 3449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3451ac_compiler_gnu=$ac_cv_c_compiler_gnu 3452DEPDIR="${am__leading_dot}deps" 3453 3454ac_config_commands="$ac_config_commands depfiles" 3455 3456 3457am_make=${MAKE-make} 3458cat > confinc << 'END' 3459am__doit: 3460 @echo done 3461.PHONY: am__doit 3462END 3463# If we don't find an include directive, just comment out the code. 3464{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3465echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3466am__include="#" 3467am__quote= 3468_am_result=none 3469# First try GNU make style include. 3470echo "include confinc" > confmf 3471# We grep out `Entering directory' and `Leaving directory' 3472# messages which can occur if `w' ends up in MAKEFLAGS. 3473# In particular we don't look at `^make:' because GNU make might 3474# be invoked under some other name (usually "gmake"), in which 3475# case it prints its new name instead of `make'. 3476if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3477 am__include=include 3478 am__quote= 3479 _am_result=GNU 3480fi 3481# Now try BSD make style include. 3482if test "$am__include" = "#"; then 3483 echo '.include "confinc"' > confmf 3484 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3485 am__include=.include 3486 am__quote="\"" 3487 _am_result=BSD 3488 fi 3489fi 3490 3491 3492{ echo "$as_me:$LINENO: result: $_am_result" >&5 3493echo "${ECHO_T}$_am_result" >&6; } 3494rm -f confinc confmf 3495 3496# Check whether --enable-dependency-tracking was given. 3497if test "${enable_dependency_tracking+set}" = set; then 3498 enableval=$enable_dependency_tracking; 3499fi 3500 3501if test "x$enable_dependency_tracking" != xno; then 3502 am_depcomp="$ac_aux_dir/depcomp" 3503 AMDEPBACKSLASH='\' 3504fi 3505 3506 3507if test "x$enable_dependency_tracking" != xno; then 3508 AMDEP_TRUE= 3509 AMDEP_FALSE='#' 3510else 3511 AMDEP_TRUE='#' 3512 AMDEP_FALSE= 3513fi 3514 3515 3516 3517 3518depcc="$CC" am_compiler_list= 3519 3520{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3521echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3522if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3523 echo $ECHO_N "(cached) $ECHO_C" >&6 3524else 3525 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3526 # We make a subdir and do the tests there. Otherwise we can end up 3527 # making bogus files that we don't know about and never remove. For 3528 # instance it was reported that on HP-UX the gcc test will end up 3529 # making a dummy file named `D' -- because `-MD' means `put the output 3530 # in D'. 3531 mkdir conftest.dir 3532 # Copy depcomp to subdir because otherwise we won't find it if we're 3533 # using a relative directory. 3534 cp "$am_depcomp" conftest.dir 3535 cd conftest.dir 3536 # We will build objects and dependencies in a subdirectory because 3537 # it helps to detect inapplicable dependency modes. For instance 3538 # both Tru64's cc and ICC support -MD to output dependencies as a 3539 # side effect of compilation, but ICC will put the dependencies in 3540 # the current directory while Tru64 will put them in the object 3541 # directory. 3542 mkdir sub 3543 3544 am_cv_CC_dependencies_compiler_type=none 3545 if test "$am_compiler_list" = ""; then 3546 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3547 fi 3548 for depmode in $am_compiler_list; do 3549 # Setup a source with many dependencies, because some compilers 3550 # like to wrap large dependency lists on column 80 (with \), and 3551 # we should not choose a depcomp mode which is confused by this. 3552 # 3553 # We need to recreate these files for each test, as the compiler may 3554 # overwrite some of them when testing with obscure command lines. 3555 # This happens at least with the AIX C compiler. 3556 : > sub/conftest.c 3557 for i in 1 2 3 4 5 6; do 3558 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3559 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3560 # Solaris 8's {/usr,}/bin/sh. 3561 touch sub/conftst$i.h 3562 done 3563 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3564 3565 case $depmode in 3566 nosideeffect) 3567 # after this tag, mechanisms are not by side-effect, so they'll 3568 # only be used when explicitly requested 3569 if test "x$enable_dependency_tracking" = xyes; then 3570 continue 3571 else 3572 break 3573 fi 3574 ;; 3575 none) break ;; 3576 esac 3577 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3578 # mode. It turns out that the SunPro C++ compiler does not properly 3579 # handle `-M -o', and we need to detect this. 3580 if depmode=$depmode \ 3581 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3582 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3583 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3584 >/dev/null 2>conftest.err && 3585 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3586 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3587 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3588 # icc doesn't choke on unknown options, it will just issue warnings 3589 # or remarks (even with -Werror). So we grep stderr for any message 3590 # that says an option was ignored or not supported. 3591 # When given -MP, icc 7.0 and 7.1 complain thusly: 3592 # icc: Command line warning: ignoring option '-M'; no argument required 3593 # The diagnosis changed in icc 8.0: 3594 # icc: Command line remark: option '-MP' not supported 3595 if (grep 'ignoring option' conftest.err || 3596 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3597 am_cv_CC_dependencies_compiler_type=$depmode 3598 break 3599 fi 3600 fi 3601 done 3602 3603 cd .. 3604 rm -rf conftest.dir 3605else 3606 am_cv_CC_dependencies_compiler_type=none 3607fi 3608 3609fi 3610{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3611echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3612CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3613 3614 3615 3616if 3617 test "x$enable_dependency_tracking" != xno \ 3618 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3619 am__fastdepCC_TRUE= 3620 am__fastdepCC_FALSE='#' 3621else 3622 am__fastdepCC_TRUE='#' 3623 am__fastdepCC_FALSE= 3624fi 3625 3626 3627# Check whether --enable-shared was given. 3628if test "${enable_shared+set}" = set; then 3629 enableval=$enable_shared; p=${PACKAGE-default} 3630 case $enableval in 3631 yes) enable_shared=yes ;; 3632 no) enable_shared=no ;; 3633 *) 3634 enable_shared=no 3635 # Look at the argument we got. We use all the common list separators. 3636 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3637 for pkg in $enableval; do 3638 IFS="$lt_save_ifs" 3639 if test "X$pkg" = "X$p"; then 3640 enable_shared=yes 3641 fi 3642 done 3643 IFS="$lt_save_ifs" 3644 ;; 3645 esac 3646else 3647 enable_shared=yes 3648fi 3649 3650 3651# Check whether --enable-static was given. 3652if test "${enable_static+set}" = set; then 3653 enableval=$enable_static; p=${PACKAGE-default} 3654 case $enableval in 3655 yes) enable_static=yes ;; 3656 no) enable_static=no ;; 3657 *) 3658 enable_static=no 3659 # Look at the argument we got. We use all the common list separators. 3660 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3661 for pkg in $enableval; do 3662 IFS="$lt_save_ifs" 3663 if test "X$pkg" = "X$p"; then 3664 enable_static=yes 3665 fi 3666 done 3667 IFS="$lt_save_ifs" 3668 ;; 3669 esac 3670else 3671 enable_static=yes 3672fi 3673 3674 3675# Check whether --enable-fast-install was given. 3676if test "${enable_fast_install+set}" = set; then 3677 enableval=$enable_fast_install; p=${PACKAGE-default} 3678 case $enableval in 3679 yes) enable_fast_install=yes ;; 3680 no) enable_fast_install=no ;; 3681 *) 3682 enable_fast_install=no 3683 # Look at the argument we got. We use all the common list separators. 3684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3685 for pkg in $enableval; do 3686 IFS="$lt_save_ifs" 3687 if test "X$pkg" = "X$p"; then 3688 enable_fast_install=yes 3689 fi 3690 done 3691 IFS="$lt_save_ifs" 3692 ;; 3693 esac 3694else 3695 enable_fast_install=yes 3696fi 3697 3698 3699# Make sure we can run config.sub. 3700$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3701 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3702echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3703 { (exit 1); exit 1; }; } 3704 3705{ echo "$as_me:$LINENO: checking build system type" >&5 3706echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3707if test "${ac_cv_build+set}" = set; then 3708 echo $ECHO_N "(cached) $ECHO_C" >&6 3709else 3710 ac_build_alias=$build_alias 3711test "x$ac_build_alias" = x && 3712 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3713test "x$ac_build_alias" = x && 3714 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3715echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3716 { (exit 1); exit 1; }; } 3717ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3718 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3719echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3720 { (exit 1); exit 1; }; } 3721 3722fi 3723{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3724echo "${ECHO_T}$ac_cv_build" >&6; } 3725case $ac_cv_build in 3726*-*-*) ;; 3727*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3728echo "$as_me: error: invalid value of canonical build" >&2;} 3729 { (exit 1); exit 1; }; };; 3730esac 3731build=$ac_cv_build 3732ac_save_IFS=$IFS; IFS='-' 3733set x $ac_cv_build 3734shift 3735build_cpu=$1 3736build_vendor=$2 3737shift; shift 3738# Remember, the first character of IFS is used to create $*, 3739# except with old shells: 3740build_os=$* 3741IFS=$ac_save_IFS 3742case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3743 3744 3745{ echo "$as_me:$LINENO: checking host system type" >&5 3746echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3747if test "${ac_cv_host+set}" = set; then 3748 echo $ECHO_N "(cached) $ECHO_C" >&6 3749else 3750 if test "x$host_alias" = x; then 3751 ac_cv_host=$ac_cv_build 3752else 3753 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3754 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3755echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3756 { (exit 1); exit 1; }; } 3757fi 3758 3759fi 3760{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3761echo "${ECHO_T}$ac_cv_host" >&6; } 3762case $ac_cv_host in 3763*-*-*) ;; 3764*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3765echo "$as_me: error: invalid value of canonical host" >&2;} 3766 { (exit 1); exit 1; }; };; 3767esac 3768host=$ac_cv_host 3769ac_save_IFS=$IFS; IFS='-' 3770set x $ac_cv_host 3771shift 3772host_cpu=$1 3773host_vendor=$2 3774shift; shift 3775# Remember, the first character of IFS is used to create $*, 3776# except with old shells: 3777host_os=$* 3778IFS=$ac_save_IFS 3779case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3780 3781 3782{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3783echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3784if test "${lt_cv_path_SED+set}" = set; then 3785 echo $ECHO_N "(cached) $ECHO_C" >&6 3786else 3787 # Loop through the user's path and test for sed and gsed. 3788# Then use that list of sed's as ones to test for truncation. 3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3790for as_dir in $PATH 3791do 3792 IFS=$as_save_IFS 3793 test -z "$as_dir" && as_dir=. 3794 for lt_ac_prog in sed gsed; do 3795 for ac_exec_ext in '' $ac_executable_extensions; do 3796 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3797 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3798 fi 3799 done 3800 done 3801done 3802lt_ac_max=0 3803lt_ac_count=0 3804# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3805# along with /bin/sed that truncates output. 3806for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3807 test ! -f $lt_ac_sed && continue 3808 cat /dev/null > conftest.in 3809 lt_ac_count=0 3810 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3811 # Check for GNU sed and select it if it is found. 3812 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3813 lt_cv_path_SED=$lt_ac_sed 3814 break 3815 fi 3816 while true; do 3817 cat conftest.in conftest.in >conftest.tmp 3818 mv conftest.tmp conftest.in 3819 cp conftest.in conftest.nl 3820 echo >>conftest.nl 3821 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3822 cmp -s conftest.out conftest.nl || break 3823 # 10000 chars as input seems more than enough 3824 test $lt_ac_count -gt 10 && break 3825 lt_ac_count=`expr $lt_ac_count + 1` 3826 if test $lt_ac_count -gt $lt_ac_max; then 3827 lt_ac_max=$lt_ac_count 3828 lt_cv_path_SED=$lt_ac_sed 3829 fi 3830 done 3831done 3832 3833fi 3834 3835SED=$lt_cv_path_SED 3836{ echo "$as_me:$LINENO: result: $SED" >&5 3837echo "${ECHO_T}$SED" >&6; } 3838 3839{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3840echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3841if test "${ac_cv_path_GREP+set}" = set; then 3842 echo $ECHO_N "(cached) $ECHO_C" >&6 3843else 3844 # Extract the first word of "grep ggrep" to use in msg output 3845if test -z "$GREP"; then 3846set dummy grep ggrep; ac_prog_name=$2 3847if test "${ac_cv_path_GREP+set}" = set; then 3848 echo $ECHO_N "(cached) $ECHO_C" >&6 3849else 3850 ac_path_GREP_found=false 3851# Loop through the user's path and test for each of PROGNAME-LIST 3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3853for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3854do 3855 IFS=$as_save_IFS 3856 test -z "$as_dir" && as_dir=. 3857 for ac_prog in grep ggrep; do 3858 for ac_exec_ext in '' $ac_executable_extensions; do 3859 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3860 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3861 # Check for GNU ac_path_GREP and select it if it is found. 3862 # Check for GNU $ac_path_GREP 3863case `"$ac_path_GREP" --version 2>&1` in 3864*GNU*) 3865 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3866*) 3867 ac_count=0 3868 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3869 while : 3870 do 3871 cat "conftest.in" "conftest.in" >"conftest.tmp" 3872 mv "conftest.tmp" "conftest.in" 3873 cp "conftest.in" "conftest.nl" 3874 echo 'GREP' >> "conftest.nl" 3875 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3876 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3877 ac_count=`expr $ac_count + 1` 3878 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3879 # Best one so far, save it but keep looking for a better one 3880 ac_cv_path_GREP="$ac_path_GREP" 3881 ac_path_GREP_max=$ac_count 3882 fi 3883 # 10*(2^10) chars as input seems more than enough 3884 test $ac_count -gt 10 && break 3885 done 3886 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3887esac 3888 3889 3890 $ac_path_GREP_found && break 3 3891 done 3892done 3893 3894done 3895IFS=$as_save_IFS 3896 3897 3898fi 3899 3900GREP="$ac_cv_path_GREP" 3901if test -z "$GREP"; then 3902 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3903echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3904 { (exit 1); exit 1; }; } 3905fi 3906 3907else 3908 ac_cv_path_GREP=$GREP 3909fi 3910 3911 3912fi 3913{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3914echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3915 GREP="$ac_cv_path_GREP" 3916 3917 3918{ echo "$as_me:$LINENO: checking for egrep" >&5 3919echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3920if test "${ac_cv_path_EGREP+set}" = set; then 3921 echo $ECHO_N "(cached) $ECHO_C" >&6 3922else 3923 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3924 then ac_cv_path_EGREP="$GREP -E" 3925 else 3926 # Extract the first word of "egrep" to use in msg output 3927if test -z "$EGREP"; then 3928set dummy egrep; ac_prog_name=$2 3929if test "${ac_cv_path_EGREP+set}" = set; then 3930 echo $ECHO_N "(cached) $ECHO_C" >&6 3931else 3932 ac_path_EGREP_found=false 3933# Loop through the user's path and test for each of PROGNAME-LIST 3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3935for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3936do 3937 IFS=$as_save_IFS 3938 test -z "$as_dir" && as_dir=. 3939 for ac_prog in egrep; do 3940 for ac_exec_ext in '' $ac_executable_extensions; do 3941 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3942 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3943 # Check for GNU ac_path_EGREP and select it if it is found. 3944 # Check for GNU $ac_path_EGREP 3945case `"$ac_path_EGREP" --version 2>&1` in 3946*GNU*) 3947 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3948*) 3949 ac_count=0 3950 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3951 while : 3952 do 3953 cat "conftest.in" "conftest.in" >"conftest.tmp" 3954 mv "conftest.tmp" "conftest.in" 3955 cp "conftest.in" "conftest.nl" 3956 echo 'EGREP' >> "conftest.nl" 3957 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3958 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3959 ac_count=`expr $ac_count + 1` 3960 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3961 # Best one so far, save it but keep looking for a better one 3962 ac_cv_path_EGREP="$ac_path_EGREP" 3963 ac_path_EGREP_max=$ac_count 3964 fi 3965 # 10*(2^10) chars as input seems more than enough 3966 test $ac_count -gt 10 && break 3967 done 3968 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3969esac 3970 3971 3972 $ac_path_EGREP_found && break 3 3973 done 3974done 3975 3976done 3977IFS=$as_save_IFS 3978 3979 3980fi 3981 3982EGREP="$ac_cv_path_EGREP" 3983if test -z "$EGREP"; then 3984 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3985echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3986 { (exit 1); exit 1; }; } 3987fi 3988 3989else 3990 ac_cv_path_EGREP=$EGREP 3991fi 3992 3993 3994 fi 3995fi 3996{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3997echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3998 EGREP="$ac_cv_path_EGREP" 3999 4000 4001 4002# Check whether --with-gnu-ld was given. 4003if test "${with_gnu_ld+set}" = set; then 4004 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4005else 4006 with_gnu_ld=no 4007fi 4008 4009ac_prog=ld 4010if test "$GCC" = yes; then 4011 # Check if gcc -print-prog-name=ld gives a path. 4012 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4013echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4014 case $host in 4015 *-*-mingw*) 4016 # gcc leaves a trailing carriage return which upsets mingw 4017 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4018 *) 4019 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4020 esac 4021 case $ac_prog in 4022 # Accept absolute paths. 4023 [\\/]* | ?:[\\/]*) 4024 re_direlt='/[^/][^/]*/\.\./' 4025 # Canonicalize the pathname of ld 4026 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4027 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4028 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4029 done 4030 test -z "$LD" && LD="$ac_prog" 4031 ;; 4032 "") 4033 # If it fails, then pretend we aren't using GCC. 4034 ac_prog=ld 4035 ;; 4036 *) 4037 # If it is relative, then search for the first ld in PATH. 4038 with_gnu_ld=unknown 4039 ;; 4040 esac 4041elif test "$with_gnu_ld" = yes; then 4042 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4043echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4044else 4045 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4046echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4047fi 4048if test "${lt_cv_path_LD+set}" = set; then 4049 echo $ECHO_N "(cached) $ECHO_C" >&6 4050else 4051 if test -z "$LD"; then 4052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4053 for ac_dir in $PATH; do 4054 IFS="$lt_save_ifs" 4055 test -z "$ac_dir" && ac_dir=. 4056 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4057 lt_cv_path_LD="$ac_dir/$ac_prog" 4058 # Check to see if the program is GNU ld. I'd rather use --version, 4059 # but apparently some variants of GNU ld only accept -v. 4060 # Break only if it was the GNU/non-GNU ld that we prefer. 4061 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4062 *GNU* | *'with BFD'*) 4063 test "$with_gnu_ld" != no && break 4064 ;; 4065 *) 4066 test "$with_gnu_ld" != yes && break 4067 ;; 4068 esac 4069 fi 4070 done 4071 IFS="$lt_save_ifs" 4072else 4073 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4074fi 4075fi 4076 4077LD="$lt_cv_path_LD" 4078if test -n "$LD"; then 4079 { echo "$as_me:$LINENO: result: $LD" >&5 4080echo "${ECHO_T}$LD" >&6; } 4081else 4082 { echo "$as_me:$LINENO: result: no" >&5 4083echo "${ECHO_T}no" >&6; } 4084fi 4085test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4086echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4087 { (exit 1); exit 1; }; } 4088{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4089echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4090if test "${lt_cv_prog_gnu_ld+set}" = set; then 4091 echo $ECHO_N "(cached) $ECHO_C" >&6 4092else 4093 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4094case `$LD -v 2>&1 </dev/null` in 4095*GNU* | *'with BFD'*) 4096 lt_cv_prog_gnu_ld=yes 4097 ;; 4098*) 4099 lt_cv_prog_gnu_ld=no 4100 ;; 4101esac 4102fi 4103{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4104echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4105with_gnu_ld=$lt_cv_prog_gnu_ld 4106 4107 4108{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4109echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4110if test "${lt_cv_ld_reload_flag+set}" = set; then 4111 echo $ECHO_N "(cached) $ECHO_C" >&6 4112else 4113 lt_cv_ld_reload_flag='-r' 4114fi 4115{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4116echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4117reload_flag=$lt_cv_ld_reload_flag 4118case $reload_flag in 4119"" | " "*) ;; 4120*) reload_flag=" $reload_flag" ;; 4121esac 4122reload_cmds='$LD$reload_flag -o $output$reload_objs' 4123case $host_os in 4124 darwin*) 4125 if test "$GCC" = yes; then 4126 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4127 else 4128 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4129 fi 4130 ;; 4131esac 4132 4133{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4134echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4135if test "${lt_cv_path_NM+set}" = set; then 4136 echo $ECHO_N "(cached) $ECHO_C" >&6 4137else 4138 if test -n "$NM"; then 4139 # Let the user override the test. 4140 lt_cv_path_NM="$NM" 4141else 4142 lt_nm_to_check="${ac_tool_prefix}nm" 4143 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4144 lt_nm_to_check="$lt_nm_to_check nm" 4145 fi 4146 for lt_tmp_nm in $lt_nm_to_check; do 4147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4148 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4149 IFS="$lt_save_ifs" 4150 test -z "$ac_dir" && ac_dir=. 4151 tmp_nm="$ac_dir/$lt_tmp_nm" 4152 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4153 # Check to see if the nm accepts a BSD-compat flag. 4154 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4155 # nm: unknown option "B" ignored 4156 # Tru64's nm complains that /dev/null is an invalid object file 4157 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4158 */dev/null* | *'Invalid file or object type'*) 4159 lt_cv_path_NM="$tmp_nm -B" 4160 break 4161 ;; 4162 *) 4163 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4164 */dev/null*) 4165 lt_cv_path_NM="$tmp_nm -p" 4166 break 4167 ;; 4168 *) 4169 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4170 continue # so that we can try to find one that supports BSD flags 4171 ;; 4172 esac 4173 ;; 4174 esac 4175 fi 4176 done 4177 IFS="$lt_save_ifs" 4178 done 4179 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4180fi 4181fi 4182{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4183echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4184NM="$lt_cv_path_NM" 4185 4186{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4187echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4188LN_S=$as_ln_s 4189if test "$LN_S" = "ln -s"; then 4190 { echo "$as_me:$LINENO: result: yes" >&5 4191echo "${ECHO_T}yes" >&6; } 4192else 4193 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4194echo "${ECHO_T}no, using $LN_S" >&6; } 4195fi 4196 4197{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4198echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4199if test "${lt_cv_deplibs_check_method+set}" = set; then 4200 echo $ECHO_N "(cached) $ECHO_C" >&6 4201else 4202 lt_cv_file_magic_cmd='$MAGIC_CMD' 4203lt_cv_file_magic_test_file= 4204lt_cv_deplibs_check_method='unknown' 4205# Need to set the preceding variable on all platforms that support 4206# interlibrary dependencies. 4207# 'none' -- dependencies not supported. 4208# `unknown' -- same as none, but documents that we really don't know. 4209# 'pass_all' -- all dependencies passed with no checks. 4210# 'test_compile' -- check by making test program. 4211# 'file_magic [[regex]]' -- check by looking for files in library path 4212# which responds to the $file_magic_cmd with a given extended regex. 4213# If you have `file' or equivalent on your system and you're not sure 4214# whether `pass_all' will *always* work, you probably want this one. 4215 4216case $host_os in 4217aix4* | aix5*) 4218 lt_cv_deplibs_check_method=pass_all 4219 ;; 4220 4221beos*) 4222 lt_cv_deplibs_check_method=pass_all 4223 ;; 4224 4225bsdi[45]*) 4226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4227 lt_cv_file_magic_cmd='/usr/bin/file -L' 4228 lt_cv_file_magic_test_file=/shlib/libc.so 4229 ;; 4230 4231cygwin*) 4232 # func_win32_libid is a shell function defined in ltmain.sh 4233 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4234 lt_cv_file_magic_cmd='func_win32_libid' 4235 ;; 4236 4237mingw* | pw32*) 4238 # Base MSYS/MinGW do not provide the 'file' command needed by 4239 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4240 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4241 lt_cv_file_magic_cmd='$OBJDUMP -f' 4242 ;; 4243 4244darwin* | rhapsody*) 4245 lt_cv_deplibs_check_method=pass_all 4246 ;; 4247 4248freebsd* | kfreebsd*-gnu | dragonfly*) 4249 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4250 case $host_cpu in 4251 i*86 ) 4252 # Not sure whether the presence of OpenBSD here was a mistake. 4253 # Let's accept both of them until this is cleared up. 4254 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4255 lt_cv_file_magic_cmd=/usr/bin/file 4256 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4257 ;; 4258 esac 4259 else 4260 lt_cv_deplibs_check_method=pass_all 4261 fi 4262 ;; 4263 4264gnu*) 4265 lt_cv_deplibs_check_method=pass_all 4266 ;; 4267 4268hpux10.20* | hpux11*) 4269 lt_cv_file_magic_cmd=/usr/bin/file 4270 case $host_cpu in 4271 ia64*) 4272 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4273 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4274 ;; 4275 hppa*64*) 4276 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]' 4277 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4278 ;; 4279 *) 4280 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4281 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4282 ;; 4283 esac 4284 ;; 4285 4286interix3*) 4287 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4289 ;; 4290 4291irix5* | irix6* | nonstopux*) 4292 case $LD in 4293 *-32|*"-32 ") libmagic=32-bit;; 4294 *-n32|*"-n32 ") libmagic=N32;; 4295 *-64|*"-64 ") libmagic=64-bit;; 4296 *) libmagic=never-match;; 4297 esac 4298 lt_cv_deplibs_check_method=pass_all 4299 ;; 4300 4301# This must be Linux ELF. 4302linux*) 4303 lt_cv_deplibs_check_method=pass_all 4304 ;; 4305 4306netbsd*) 4307 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4309 else 4310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4311 fi 4312 ;; 4313 4314newos6*) 4315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4316 lt_cv_file_magic_cmd=/usr/bin/file 4317 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4318 ;; 4319 4320nto-qnx*) 4321 lt_cv_deplibs_check_method=unknown 4322 ;; 4323 4324openbsd*) 4325 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4327 else 4328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4329 fi 4330 ;; 4331 4332osf3* | osf4* | osf5*) 4333 lt_cv_deplibs_check_method=pass_all 4334 ;; 4335 4336solaris*) 4337 lt_cv_deplibs_check_method=pass_all 4338 ;; 4339 4340sysv4 | sysv4.3*) 4341 case $host_vendor in 4342 motorola) 4343 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]' 4344 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4345 ;; 4346 ncr) 4347 lt_cv_deplibs_check_method=pass_all 4348 ;; 4349 sequent) 4350 lt_cv_file_magic_cmd='/bin/file' 4351 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4352 ;; 4353 sni) 4354 lt_cv_file_magic_cmd='/bin/file' 4355 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4356 lt_cv_file_magic_test_file=/lib/libc.so 4357 ;; 4358 siemens) 4359 lt_cv_deplibs_check_method=pass_all 4360 ;; 4361 pc) 4362 lt_cv_deplibs_check_method=pass_all 4363 ;; 4364 esac 4365 ;; 4366 4367sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4368 lt_cv_deplibs_check_method=pass_all 4369 ;; 4370esac 4371 4372fi 4373{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4374echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4375file_magic_cmd=$lt_cv_file_magic_cmd 4376deplibs_check_method=$lt_cv_deplibs_check_method 4377test -z "$deplibs_check_method" && deplibs_check_method=unknown 4378 4379 4380 4381 4382# If no C compiler was specified, use CC. 4383LTCC=${LTCC-"$CC"} 4384 4385# If no C compiler flags were specified, use CFLAGS. 4386LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4387 4388# Allow CC to be a program name with arguments. 4389compiler=$CC 4390 4391 4392# Check whether --enable-libtool-lock was given. 4393if test "${enable_libtool_lock+set}" = set; then 4394 enableval=$enable_libtool_lock; 4395fi 4396 4397test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4398 4399# Some flags need to be propagated to the compiler or linker for good 4400# libtool support. 4401case $host in 4402ia64-*-hpux*) 4403 # Find out which ABI we are using. 4404 echo 'int i;' > conftest.$ac_ext 4405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4406 (eval $ac_compile) 2>&5 4407 ac_status=$? 4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4409 (exit $ac_status); }; then 4410 case `/usr/bin/file conftest.$ac_objext` in 4411 *ELF-32*) 4412 HPUX_IA64_MODE="32" 4413 ;; 4414 *ELF-64*) 4415 HPUX_IA64_MODE="64" 4416 ;; 4417 esac 4418 fi 4419 rm -rf conftest* 4420 ;; 4421*-*-irix6*) 4422 # Find out which ABI we are using. 4423 echo '#line 4423 "configure"' > conftest.$ac_ext 4424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4425 (eval $ac_compile) 2>&5 4426 ac_status=$? 4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4428 (exit $ac_status); }; then 4429 if test "$lt_cv_prog_gnu_ld" = yes; then 4430 case `/usr/bin/file conftest.$ac_objext` in 4431 *32-bit*) 4432 LD="${LD-ld} -melf32bsmip" 4433 ;; 4434 *N32*) 4435 LD="${LD-ld} -melf32bmipn32" 4436 ;; 4437 *64-bit*) 4438 LD="${LD-ld} -melf64bmip" 4439 ;; 4440 esac 4441 else 4442 case `/usr/bin/file conftest.$ac_objext` in 4443 *32-bit*) 4444 LD="${LD-ld} -32" 4445 ;; 4446 *N32*) 4447 LD="${LD-ld} -n32" 4448 ;; 4449 *64-bit*) 4450 LD="${LD-ld} -64" 4451 ;; 4452 esac 4453 fi 4454 fi 4455 rm -rf conftest* 4456 ;; 4457 4458x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4459 # Find out which ABI we are using. 4460 echo 'int i;' > conftest.$ac_ext 4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4462 (eval $ac_compile) 2>&5 4463 ac_status=$? 4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4465 (exit $ac_status); }; then 4466 case `/usr/bin/file conftest.o` in 4467 *32-bit*) 4468 case $host in 4469 x86_64-*linux*) 4470 LD="${LD-ld} -m elf_i386" 4471 ;; 4472 ppc64-*linux*|powerpc64-*linux*) 4473 LD="${LD-ld} -m elf32ppclinux" 4474 ;; 4475 s390x-*linux*) 4476 LD="${LD-ld} -m elf_s390" 4477 ;; 4478 sparc64-*linux*) 4479 LD="${LD-ld} -m elf32_sparc" 4480 ;; 4481 esac 4482 ;; 4483 *64-bit*) 4484 case $host in 4485 x86_64-*linux*) 4486 LD="${LD-ld} -m elf_x86_64" 4487 ;; 4488 ppc*-*linux*|powerpc*-*linux*) 4489 LD="${LD-ld} -m elf64ppc" 4490 ;; 4491 s390*-*linux*) 4492 LD="${LD-ld} -m elf64_s390" 4493 ;; 4494 sparc*-*linux*) 4495 LD="${LD-ld} -m elf64_sparc" 4496 ;; 4497 esac 4498 ;; 4499 esac 4500 fi 4501 rm -rf conftest* 4502 ;; 4503 4504*-*-sco3.2v5*) 4505 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4506 SAVE_CFLAGS="$CFLAGS" 4507 CFLAGS="$CFLAGS -belf" 4508 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4509echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4510if test "${lt_cv_cc_needs_belf+set}" = set; then 4511 echo $ECHO_N "(cached) $ECHO_C" >&6 4512else 4513 ac_ext=c 4514ac_cpp='$CPP $CPPFLAGS' 4515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4517ac_compiler_gnu=$ac_cv_c_compiler_gnu 4518 4519 cat >conftest.$ac_ext <<_ACEOF 4520/* confdefs.h. */ 4521_ACEOF 4522cat confdefs.h >>conftest.$ac_ext 4523cat >>conftest.$ac_ext <<_ACEOF 4524/* end confdefs.h. */ 4525 4526int 4527main () 4528{ 4529 4530 ; 4531 return 0; 4532} 4533_ACEOF 4534rm -f conftest.$ac_objext conftest$ac_exeext 4535if { (ac_try="$ac_link" 4536case "(($ac_try" in 4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4538 *) ac_try_echo=$ac_try;; 4539esac 4540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4541 (eval "$ac_link") 2>conftest.er1 4542 ac_status=$? 4543 grep -v '^ *+' conftest.er1 >conftest.err 4544 rm -f conftest.er1 4545 cat conftest.err >&5 4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4547 (exit $ac_status); } && 4548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4549 { (case "(($ac_try" in 4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4551 *) ac_try_echo=$ac_try;; 4552esac 4553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4554 (eval "$ac_try") 2>&5 4555 ac_status=$? 4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4557 (exit $ac_status); }; } && 4558 { ac_try='test -s conftest$ac_exeext' 4559 { (case "(($ac_try" in 4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4561 *) ac_try_echo=$ac_try;; 4562esac 4563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4564 (eval "$ac_try") 2>&5 4565 ac_status=$? 4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4567 (exit $ac_status); }; }; then 4568 lt_cv_cc_needs_belf=yes 4569else 4570 echo "$as_me: failed program was:" >&5 4571sed 's/^/| /' conftest.$ac_ext >&5 4572 4573 lt_cv_cc_needs_belf=no 4574fi 4575 4576rm -f core conftest.err conftest.$ac_objext \ 4577 conftest$ac_exeext conftest.$ac_ext 4578 ac_ext=c 4579ac_cpp='$CPP $CPPFLAGS' 4580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4582ac_compiler_gnu=$ac_cv_c_compiler_gnu 4583 4584fi 4585{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4586echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4587 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4588 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4589 CFLAGS="$SAVE_CFLAGS" 4590 fi 4591 ;; 4592sparc*-*solaris*) 4593 # Find out which ABI we are using. 4594 echo 'int i;' > conftest.$ac_ext 4595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4596 (eval $ac_compile) 2>&5 4597 ac_status=$? 4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4599 (exit $ac_status); }; then 4600 case `/usr/bin/file conftest.o` in 4601 *64-bit*) 4602 case $lt_cv_prog_gnu_ld in 4603 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4604 *) LD="${LD-ld} -64" ;; 4605 esac 4606 ;; 4607 esac 4608 fi 4609 rm -rf conftest* 4610 ;; 4611 4612 4613esac 4614 4615need_locks="$enable_libtool_lock" 4616 4617 4618ac_ext=c 4619ac_cpp='$CPP $CPPFLAGS' 4620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4622ac_compiler_gnu=$ac_cv_c_compiler_gnu 4623{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4624echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4625# On Suns, sometimes $CPP names a directory. 4626if test -n "$CPP" && test -d "$CPP"; then 4627 CPP= 4628fi 4629if test -z "$CPP"; then 4630 if test "${ac_cv_prog_CPP+set}" = set; then 4631 echo $ECHO_N "(cached) $ECHO_C" >&6 4632else 4633 # Double quotes because CPP needs to be expanded 4634 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4635 do 4636 ac_preproc_ok=false 4637for ac_c_preproc_warn_flag in '' yes 4638do 4639 # Use a header file that comes with gcc, so configuring glibc 4640 # with a fresh cross-compiler works. 4641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4642 # <limits.h> exists even on freestanding compilers. 4643 # On the NeXT, cc -E runs the code through the compiler's parser, 4644 # not just through cpp. "Syntax error" is here to catch this case. 4645 cat >conftest.$ac_ext <<_ACEOF 4646/* confdefs.h. */ 4647_ACEOF 4648cat confdefs.h >>conftest.$ac_ext 4649cat >>conftest.$ac_ext <<_ACEOF 4650/* end confdefs.h. */ 4651#ifdef __STDC__ 4652# include <limits.h> 4653#else 4654# include <assert.h> 4655#endif 4656 Syntax error 4657_ACEOF 4658if { (ac_try="$ac_cpp conftest.$ac_ext" 4659case "(($ac_try" in 4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4661 *) ac_try_echo=$ac_try;; 4662esac 4663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4665 ac_status=$? 4666 grep -v '^ *+' conftest.er1 >conftest.err 4667 rm -f conftest.er1 4668 cat conftest.err >&5 4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4670 (exit $ac_status); } >/dev/null; then 4671 if test -s conftest.err; then 4672 ac_cpp_err=$ac_c_preproc_warn_flag 4673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4674 else 4675 ac_cpp_err= 4676 fi 4677else 4678 ac_cpp_err=yes 4679fi 4680if test -z "$ac_cpp_err"; then 4681 : 4682else 4683 echo "$as_me: failed program was:" >&5 4684sed 's/^/| /' conftest.$ac_ext >&5 4685 4686 # Broken: fails on valid input. 4687continue 4688fi 4689 4690rm -f conftest.err conftest.$ac_ext 4691 4692 # OK, works on sane cases. Now check whether nonexistent headers 4693 # can be detected and how. 4694 cat >conftest.$ac_ext <<_ACEOF 4695/* confdefs.h. */ 4696_ACEOF 4697cat confdefs.h >>conftest.$ac_ext 4698cat >>conftest.$ac_ext <<_ACEOF 4699/* end confdefs.h. */ 4700#include <ac_nonexistent.h> 4701_ACEOF 4702if { (ac_try="$ac_cpp conftest.$ac_ext" 4703case "(($ac_try" in 4704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4705 *) ac_try_echo=$ac_try;; 4706esac 4707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4709 ac_status=$? 4710 grep -v '^ *+' conftest.er1 >conftest.err 4711 rm -f conftest.er1 4712 cat conftest.err >&5 4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4714 (exit $ac_status); } >/dev/null; then 4715 if test -s conftest.err; then 4716 ac_cpp_err=$ac_c_preproc_warn_flag 4717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4718 else 4719 ac_cpp_err= 4720 fi 4721else 4722 ac_cpp_err=yes 4723fi 4724if test -z "$ac_cpp_err"; then 4725 # Broken: success on invalid input. 4726continue 4727else 4728 echo "$as_me: failed program was:" >&5 4729sed 's/^/| /' conftest.$ac_ext >&5 4730 4731 # Passes both tests. 4732ac_preproc_ok=: 4733break 4734fi 4735 4736rm -f conftest.err conftest.$ac_ext 4737 4738done 4739# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4740rm -f conftest.err conftest.$ac_ext 4741if $ac_preproc_ok; then 4742 break 4743fi 4744 4745 done 4746 ac_cv_prog_CPP=$CPP 4747 4748fi 4749 CPP=$ac_cv_prog_CPP 4750else 4751 ac_cv_prog_CPP=$CPP 4752fi 4753{ echo "$as_me:$LINENO: result: $CPP" >&5 4754echo "${ECHO_T}$CPP" >&6; } 4755ac_preproc_ok=false 4756for ac_c_preproc_warn_flag in '' yes 4757do 4758 # Use a header file that comes with gcc, so configuring glibc 4759 # with a fresh cross-compiler works. 4760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4761 # <limits.h> exists even on freestanding compilers. 4762 # On the NeXT, cc -E runs the code through the compiler's parser, 4763 # not just through cpp. "Syntax error" is here to catch this case. 4764 cat >conftest.$ac_ext <<_ACEOF 4765/* confdefs.h. */ 4766_ACEOF 4767cat confdefs.h >>conftest.$ac_ext 4768cat >>conftest.$ac_ext <<_ACEOF 4769/* end confdefs.h. */ 4770#ifdef __STDC__ 4771# include <limits.h> 4772#else 4773# include <assert.h> 4774#endif 4775 Syntax error 4776_ACEOF 4777if { (ac_try="$ac_cpp conftest.$ac_ext" 4778case "(($ac_try" in 4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4780 *) ac_try_echo=$ac_try;; 4781esac 4782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4784 ac_status=$? 4785 grep -v '^ *+' conftest.er1 >conftest.err 4786 rm -f conftest.er1 4787 cat conftest.err >&5 4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4789 (exit $ac_status); } >/dev/null; then 4790 if test -s conftest.err; then 4791 ac_cpp_err=$ac_c_preproc_warn_flag 4792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4793 else 4794 ac_cpp_err= 4795 fi 4796else 4797 ac_cpp_err=yes 4798fi 4799if test -z "$ac_cpp_err"; then 4800 : 4801else 4802 echo "$as_me: failed program was:" >&5 4803sed 's/^/| /' conftest.$ac_ext >&5 4804 4805 # Broken: fails on valid input. 4806continue 4807fi 4808 4809rm -f conftest.err conftest.$ac_ext 4810 4811 # OK, works on sane cases. Now check whether nonexistent headers 4812 # can be detected and how. 4813 cat >conftest.$ac_ext <<_ACEOF 4814/* confdefs.h. */ 4815_ACEOF 4816cat confdefs.h >>conftest.$ac_ext 4817cat >>conftest.$ac_ext <<_ACEOF 4818/* end confdefs.h. */ 4819#include <ac_nonexistent.h> 4820_ACEOF 4821if { (ac_try="$ac_cpp conftest.$ac_ext" 4822case "(($ac_try" in 4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4824 *) ac_try_echo=$ac_try;; 4825esac 4826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4828 ac_status=$? 4829 grep -v '^ *+' conftest.er1 >conftest.err 4830 rm -f conftest.er1 4831 cat conftest.err >&5 4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4833 (exit $ac_status); } >/dev/null; then 4834 if test -s conftest.err; then 4835 ac_cpp_err=$ac_c_preproc_warn_flag 4836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4837 else 4838 ac_cpp_err= 4839 fi 4840else 4841 ac_cpp_err=yes 4842fi 4843if test -z "$ac_cpp_err"; then 4844 # Broken: success on invalid input. 4845continue 4846else 4847 echo "$as_me: failed program was:" >&5 4848sed 's/^/| /' conftest.$ac_ext >&5 4849 4850 # Passes both tests. 4851ac_preproc_ok=: 4852break 4853fi 4854 4855rm -f conftest.err conftest.$ac_ext 4856 4857done 4858# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4859rm -f conftest.err conftest.$ac_ext 4860if $ac_preproc_ok; then 4861 : 4862else 4863 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4864See \`config.log' for more details." >&5 4865echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4866See \`config.log' for more details." >&2;} 4867 { (exit 1); exit 1; }; } 4868fi 4869 4870ac_ext=c 4871ac_cpp='$CPP $CPPFLAGS' 4872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4874ac_compiler_gnu=$ac_cv_c_compiler_gnu 4875 4876 4877{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4878echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4879if test "${ac_cv_header_stdc+set}" = set; then 4880 echo $ECHO_N "(cached) $ECHO_C" >&6 4881else 4882 cat >conftest.$ac_ext <<_ACEOF 4883/* confdefs.h. */ 4884_ACEOF 4885cat confdefs.h >>conftest.$ac_ext 4886cat >>conftest.$ac_ext <<_ACEOF 4887/* end confdefs.h. */ 4888#include <stdlib.h> 4889#include <stdarg.h> 4890#include <string.h> 4891#include <float.h> 4892 4893int 4894main () 4895{ 4896 4897 ; 4898 return 0; 4899} 4900_ACEOF 4901rm -f conftest.$ac_objext 4902if { (ac_try="$ac_compile" 4903case "(($ac_try" in 4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4905 *) ac_try_echo=$ac_try;; 4906esac 4907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4908 (eval "$ac_compile") 2>conftest.er1 4909 ac_status=$? 4910 grep -v '^ *+' conftest.er1 >conftest.err 4911 rm -f conftest.er1 4912 cat conftest.err >&5 4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4914 (exit $ac_status); } && 4915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4916 { (case "(($ac_try" in 4917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4918 *) ac_try_echo=$ac_try;; 4919esac 4920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4921 (eval "$ac_try") 2>&5 4922 ac_status=$? 4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4924 (exit $ac_status); }; } && 4925 { ac_try='test -s conftest.$ac_objext' 4926 { (case "(($ac_try" in 4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4928 *) ac_try_echo=$ac_try;; 4929esac 4930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4931 (eval "$ac_try") 2>&5 4932 ac_status=$? 4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4934 (exit $ac_status); }; }; then 4935 ac_cv_header_stdc=yes 4936else 4937 echo "$as_me: failed program was:" >&5 4938sed 's/^/| /' conftest.$ac_ext >&5 4939 4940 ac_cv_header_stdc=no 4941fi 4942 4943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4944 4945if test $ac_cv_header_stdc = yes; then 4946 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4947 cat >conftest.$ac_ext <<_ACEOF 4948/* confdefs.h. */ 4949_ACEOF 4950cat confdefs.h >>conftest.$ac_ext 4951cat >>conftest.$ac_ext <<_ACEOF 4952/* end confdefs.h. */ 4953#include <string.h> 4954 4955_ACEOF 4956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4957 $EGREP "memchr" >/dev/null 2>&1; then 4958 : 4959else 4960 ac_cv_header_stdc=no 4961fi 4962rm -f conftest* 4963 4964fi 4965 4966if test $ac_cv_header_stdc = yes; then 4967 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4968 cat >conftest.$ac_ext <<_ACEOF 4969/* confdefs.h. */ 4970_ACEOF 4971cat confdefs.h >>conftest.$ac_ext 4972cat >>conftest.$ac_ext <<_ACEOF 4973/* end confdefs.h. */ 4974#include <stdlib.h> 4975 4976_ACEOF 4977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4978 $EGREP "free" >/dev/null 2>&1; then 4979 : 4980else 4981 ac_cv_header_stdc=no 4982fi 4983rm -f conftest* 4984 4985fi 4986 4987if test $ac_cv_header_stdc = yes; then 4988 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4989 if test "$cross_compiling" = yes; then 4990 : 4991else 4992 cat >conftest.$ac_ext <<_ACEOF 4993/* confdefs.h. */ 4994_ACEOF 4995cat confdefs.h >>conftest.$ac_ext 4996cat >>conftest.$ac_ext <<_ACEOF 4997/* end confdefs.h. */ 4998#include <ctype.h> 4999#include <stdlib.h> 5000#if ((' ' & 0x0FF) == 0x020) 5001# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5002# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5003#else 5004# define ISLOWER(c) \ 5005 (('a' <= (c) && (c) <= 'i') \ 5006 || ('j' <= (c) && (c) <= 'r') \ 5007 || ('s' <= (c) && (c) <= 'z')) 5008# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5009#endif 5010 5011#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5012int 5013main () 5014{ 5015 int i; 5016 for (i = 0; i < 256; i++) 5017 if (XOR (islower (i), ISLOWER (i)) 5018 || toupper (i) != TOUPPER (i)) 5019 return 2; 5020 return 0; 5021} 5022_ACEOF 5023rm -f conftest$ac_exeext 5024if { (ac_try="$ac_link" 5025case "(($ac_try" in 5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5027 *) ac_try_echo=$ac_try;; 5028esac 5029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5030 (eval "$ac_link") 2>&5 5031 ac_status=$? 5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5034 { (case "(($ac_try" in 5035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5036 *) ac_try_echo=$ac_try;; 5037esac 5038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5039 (eval "$ac_try") 2>&5 5040 ac_status=$? 5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5042 (exit $ac_status); }; }; then 5043 : 5044else 5045 echo "$as_me: program exited with status $ac_status" >&5 5046echo "$as_me: failed program was:" >&5 5047sed 's/^/| /' conftest.$ac_ext >&5 5048 5049( exit $ac_status ) 5050ac_cv_header_stdc=no 5051fi 5052rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5053fi 5054 5055 5056fi 5057fi 5058{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5059echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5060if test $ac_cv_header_stdc = yes; then 5061 5062cat >>confdefs.h <<\_ACEOF 5063#define STDC_HEADERS 1 5064_ACEOF 5065 5066fi 5067 5068# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5079 inttypes.h stdint.h unistd.h 5080do 5081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5082{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5085 echo $ECHO_N "(cached) $ECHO_C" >&6 5086else 5087 cat >conftest.$ac_ext <<_ACEOF 5088/* confdefs.h. */ 5089_ACEOF 5090cat confdefs.h >>conftest.$ac_ext 5091cat >>conftest.$ac_ext <<_ACEOF 5092/* end confdefs.h. */ 5093$ac_includes_default 5094 5095#include <$ac_header> 5096_ACEOF 5097rm -f conftest.$ac_objext 5098if { (ac_try="$ac_compile" 5099case "(($ac_try" in 5100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5101 *) ac_try_echo=$ac_try;; 5102esac 5103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5104 (eval "$ac_compile") 2>conftest.er1 5105 ac_status=$? 5106 grep -v '^ *+' conftest.er1 >conftest.err 5107 rm -f conftest.er1 5108 cat conftest.err >&5 5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5110 (exit $ac_status); } && 5111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5112 { (case "(($ac_try" in 5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5114 *) ac_try_echo=$ac_try;; 5115esac 5116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5117 (eval "$ac_try") 2>&5 5118 ac_status=$? 5119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5120 (exit $ac_status); }; } && 5121 { ac_try='test -s conftest.$ac_objext' 5122 { (case "(($ac_try" in 5123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5124 *) ac_try_echo=$ac_try;; 5125esac 5126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5127 (eval "$ac_try") 2>&5 5128 ac_status=$? 5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5130 (exit $ac_status); }; }; then 5131 eval "$as_ac_Header=yes" 5132else 5133 echo "$as_me: failed program was:" >&5 5134sed 's/^/| /' conftest.$ac_ext >&5 5135 5136 eval "$as_ac_Header=no" 5137fi 5138 5139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5140fi 5141ac_res=`eval echo '${'$as_ac_Header'}'` 5142 { echo "$as_me:$LINENO: result: $ac_res" >&5 5143echo "${ECHO_T}$ac_res" >&6; } 5144if test `eval echo '${'$as_ac_Header'}'` = yes; then 5145 cat >>confdefs.h <<_ACEOF 5146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5147_ACEOF 5148 5149fi 5150 5151done 5152 5153 5154 5155for ac_header in dlfcn.h 5156do 5157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5159 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5162 echo $ECHO_N "(cached) $ECHO_C" >&6 5163fi 5164ac_res=`eval echo '${'$as_ac_Header'}'` 5165 { echo "$as_me:$LINENO: result: $ac_res" >&5 5166echo "${ECHO_T}$ac_res" >&6; } 5167else 5168 # Is the header compilable? 5169{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5171cat >conftest.$ac_ext <<_ACEOF 5172/* confdefs.h. */ 5173_ACEOF 5174cat confdefs.h >>conftest.$ac_ext 5175cat >>conftest.$ac_ext <<_ACEOF 5176/* end confdefs.h. */ 5177$ac_includes_default 5178#include <$ac_header> 5179_ACEOF 5180rm -f conftest.$ac_objext 5181if { (ac_try="$ac_compile" 5182case "(($ac_try" in 5183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5184 *) ac_try_echo=$ac_try;; 5185esac 5186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5187 (eval "$ac_compile") 2>conftest.er1 5188 ac_status=$? 5189 grep -v '^ *+' conftest.er1 >conftest.err 5190 rm -f conftest.er1 5191 cat conftest.err >&5 5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5193 (exit $ac_status); } && 5194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5195 { (case "(($ac_try" in 5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5197 *) ac_try_echo=$ac_try;; 5198esac 5199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5200 (eval "$ac_try") 2>&5 5201 ac_status=$? 5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5203 (exit $ac_status); }; } && 5204 { ac_try='test -s conftest.$ac_objext' 5205 { (case "(($ac_try" in 5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5207 *) ac_try_echo=$ac_try;; 5208esac 5209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5210 (eval "$ac_try") 2>&5 5211 ac_status=$? 5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5213 (exit $ac_status); }; }; then 5214 ac_header_compiler=yes 5215else 5216 echo "$as_me: failed program was:" >&5 5217sed 's/^/| /' conftest.$ac_ext >&5 5218 5219 ac_header_compiler=no 5220fi 5221 5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5223{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5224echo "${ECHO_T}$ac_header_compiler" >&6; } 5225 5226# Is the header present? 5227{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5229cat >conftest.$ac_ext <<_ACEOF 5230/* confdefs.h. */ 5231_ACEOF 5232cat confdefs.h >>conftest.$ac_ext 5233cat >>conftest.$ac_ext <<_ACEOF 5234/* end confdefs.h. */ 5235#include <$ac_header> 5236_ACEOF 5237if { (ac_try="$ac_cpp conftest.$ac_ext" 5238case "(($ac_try" in 5239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5240 *) ac_try_echo=$ac_try;; 5241esac 5242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5244 ac_status=$? 5245 grep -v '^ *+' conftest.er1 >conftest.err 5246 rm -f conftest.er1 5247 cat conftest.err >&5 5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5249 (exit $ac_status); } >/dev/null; then 5250 if test -s conftest.err; then 5251 ac_cpp_err=$ac_c_preproc_warn_flag 5252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5253 else 5254 ac_cpp_err= 5255 fi 5256else 5257 ac_cpp_err=yes 5258fi 5259if test -z "$ac_cpp_err"; then 5260 ac_header_preproc=yes 5261else 5262 echo "$as_me: failed program was:" >&5 5263sed 's/^/| /' conftest.$ac_ext >&5 5264 5265 ac_header_preproc=no 5266fi 5267 5268rm -f conftest.err conftest.$ac_ext 5269{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5270echo "${ECHO_T}$ac_header_preproc" >&6; } 5271 5272# So? What about this header? 5273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5274 yes:no: ) 5275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5279 ac_header_preproc=yes 5280 ;; 5281 no:yes:* ) 5282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5294 ( cat <<\_ASBOX 5295## ---------------------------------------------------------------------- ## 5296## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5297## ---------------------------------------------------------------------- ## 5298_ASBOX 5299 ) | sed "s/^/$as_me: WARNING: /" >&2 5300 ;; 5301esac 5302{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5305 echo $ECHO_N "(cached) $ECHO_C" >&6 5306else 5307 eval "$as_ac_Header=\$ac_header_preproc" 5308fi 5309ac_res=`eval echo '${'$as_ac_Header'}'` 5310 { echo "$as_me:$LINENO: result: $ac_res" >&5 5311echo "${ECHO_T}$ac_res" >&6; } 5312 5313fi 5314if test `eval echo '${'$as_ac_Header'}'` = yes; then 5315 cat >>confdefs.h <<_ACEOF 5316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5317_ACEOF 5318 5319fi 5320 5321done 5322 5323ac_ext=cpp 5324ac_cpp='$CXXCPP $CPPFLAGS' 5325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5328if test -z "$CXX"; then 5329 if test -n "$CCC"; then 5330 CXX=$CCC 5331 else 5332 if test -n "$ac_tool_prefix"; then 5333 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5334 do 5335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5336set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5337{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5339if test "${ac_cv_prog_CXX+set}" = set; then 5340 echo $ECHO_N "(cached) $ECHO_C" >&6 5341else 5342 if test -n "$CXX"; then 5343 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5344else 5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5346for as_dir in $PATH 5347do 5348 IFS=$as_save_IFS 5349 test -z "$as_dir" && as_dir=. 5350 for ac_exec_ext in '' $ac_executable_extensions; do 5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5352 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5354 break 2 5355 fi 5356done 5357done 5358IFS=$as_save_IFS 5359 5360fi 5361fi 5362CXX=$ac_cv_prog_CXX 5363if test -n "$CXX"; then 5364 { echo "$as_me:$LINENO: result: $CXX" >&5 5365echo "${ECHO_T}$CXX" >&6; } 5366else 5367 { echo "$as_me:$LINENO: result: no" >&5 5368echo "${ECHO_T}no" >&6; } 5369fi 5370 5371 5372 test -n "$CXX" && break 5373 done 5374fi 5375if test -z "$CXX"; then 5376 ac_ct_CXX=$CXX 5377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5378do 5379 # Extract the first word of "$ac_prog", so it can be a program name with args. 5380set dummy $ac_prog; ac_word=$2 5381{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5383if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5384 echo $ECHO_N "(cached) $ECHO_C" >&6 5385else 5386 if test -n "$ac_ct_CXX"; then 5387 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5388else 5389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5390for as_dir in $PATH 5391do 5392 IFS=$as_save_IFS 5393 test -z "$as_dir" && as_dir=. 5394 for ac_exec_ext in '' $ac_executable_extensions; do 5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5396 ac_cv_prog_ac_ct_CXX="$ac_prog" 5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5398 break 2 5399 fi 5400done 5401done 5402IFS=$as_save_IFS 5403 5404fi 5405fi 5406ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5407if test -n "$ac_ct_CXX"; then 5408 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5409echo "${ECHO_T}$ac_ct_CXX" >&6; } 5410else 5411 { echo "$as_me:$LINENO: result: no" >&5 5412echo "${ECHO_T}no" >&6; } 5413fi 5414 5415 5416 test -n "$ac_ct_CXX" && break 5417done 5418 5419 if test "x$ac_ct_CXX" = x; then 5420 CXX="g++" 5421 else 5422 case $cross_compiling:$ac_tool_warned in 5423yes:) 5424{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5425whose name does not start with the host triplet. If you think this 5426configuration is useful to you, please write to autoconf@gnu.org." >&5 5427echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5428whose name does not start with the host triplet. If you think this 5429configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5430ac_tool_warned=yes ;; 5431esac 5432 CXX=$ac_ct_CXX 5433 fi 5434fi 5435 5436 fi 5437fi 5438# Provide some information about the compiler. 5439echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5440ac_compiler=`set X $ac_compile; echo $2` 5441{ (ac_try="$ac_compiler --version >&5" 5442case "(($ac_try" in 5443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5444 *) ac_try_echo=$ac_try;; 5445esac 5446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5447 (eval "$ac_compiler --version >&5") 2>&5 5448 ac_status=$? 5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5450 (exit $ac_status); } 5451{ (ac_try="$ac_compiler -v >&5" 5452case "(($ac_try" in 5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5454 *) ac_try_echo=$ac_try;; 5455esac 5456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5457 (eval "$ac_compiler -v >&5") 2>&5 5458 ac_status=$? 5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5460 (exit $ac_status); } 5461{ (ac_try="$ac_compiler -V >&5" 5462case "(($ac_try" in 5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5464 *) ac_try_echo=$ac_try;; 5465esac 5466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5467 (eval "$ac_compiler -V >&5") 2>&5 5468 ac_status=$? 5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5470 (exit $ac_status); } 5471 5472{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5473echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5474if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5475 echo $ECHO_N "(cached) $ECHO_C" >&6 5476else 5477 cat >conftest.$ac_ext <<_ACEOF 5478/* confdefs.h. */ 5479_ACEOF 5480cat confdefs.h >>conftest.$ac_ext 5481cat >>conftest.$ac_ext <<_ACEOF 5482/* end confdefs.h. */ 5483 5484int 5485main () 5486{ 5487#ifndef __GNUC__ 5488 choke me 5489#endif 5490 5491 ; 5492 return 0; 5493} 5494_ACEOF 5495rm -f conftest.$ac_objext 5496if { (ac_try="$ac_compile" 5497case "(($ac_try" in 5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5499 *) ac_try_echo=$ac_try;; 5500esac 5501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5502 (eval "$ac_compile") 2>conftest.er1 5503 ac_status=$? 5504 grep -v '^ *+' conftest.er1 >conftest.err 5505 rm -f conftest.er1 5506 cat conftest.err >&5 5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5508 (exit $ac_status); } && 5509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5510 { (case "(($ac_try" in 5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5512 *) ac_try_echo=$ac_try;; 5513esac 5514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5515 (eval "$ac_try") 2>&5 5516 ac_status=$? 5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5518 (exit $ac_status); }; } && 5519 { ac_try='test -s conftest.$ac_objext' 5520 { (case "(($ac_try" in 5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5522 *) ac_try_echo=$ac_try;; 5523esac 5524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5525 (eval "$ac_try") 2>&5 5526 ac_status=$? 5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5528 (exit $ac_status); }; }; then 5529 ac_compiler_gnu=yes 5530else 5531 echo "$as_me: failed program was:" >&5 5532sed 's/^/| /' conftest.$ac_ext >&5 5533 5534 ac_compiler_gnu=no 5535fi 5536 5537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5538ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5539 5540fi 5541{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5542echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5543GXX=`test $ac_compiler_gnu = yes && echo yes` 5544ac_test_CXXFLAGS=${CXXFLAGS+set} 5545ac_save_CXXFLAGS=$CXXFLAGS 5546{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5547echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5548if test "${ac_cv_prog_cxx_g+set}" = set; then 5549 echo $ECHO_N "(cached) $ECHO_C" >&6 5550else 5551 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5552 ac_cxx_werror_flag=yes 5553 ac_cv_prog_cxx_g=no 5554 CXXFLAGS="-g" 5555 cat >conftest.$ac_ext <<_ACEOF 5556/* confdefs.h. */ 5557_ACEOF 5558cat confdefs.h >>conftest.$ac_ext 5559cat >>conftest.$ac_ext <<_ACEOF 5560/* end confdefs.h. */ 5561 5562int 5563main () 5564{ 5565 5566 ; 5567 return 0; 5568} 5569_ACEOF 5570rm -f conftest.$ac_objext 5571if { (ac_try="$ac_compile" 5572case "(($ac_try" in 5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5574 *) ac_try_echo=$ac_try;; 5575esac 5576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5577 (eval "$ac_compile") 2>conftest.er1 5578 ac_status=$? 5579 grep -v '^ *+' conftest.er1 >conftest.err 5580 rm -f conftest.er1 5581 cat conftest.err >&5 5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5583 (exit $ac_status); } && 5584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5585 { (case "(($ac_try" in 5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5587 *) ac_try_echo=$ac_try;; 5588esac 5589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5590 (eval "$ac_try") 2>&5 5591 ac_status=$? 5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5593 (exit $ac_status); }; } && 5594 { ac_try='test -s conftest.$ac_objext' 5595 { (case "(($ac_try" in 5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5597 *) ac_try_echo=$ac_try;; 5598esac 5599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5600 (eval "$ac_try") 2>&5 5601 ac_status=$? 5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5603 (exit $ac_status); }; }; then 5604 ac_cv_prog_cxx_g=yes 5605else 5606 echo "$as_me: failed program was:" >&5 5607sed 's/^/| /' conftest.$ac_ext >&5 5608 5609 CXXFLAGS="" 5610 cat >conftest.$ac_ext <<_ACEOF 5611/* confdefs.h. */ 5612_ACEOF 5613cat confdefs.h >>conftest.$ac_ext 5614cat >>conftest.$ac_ext <<_ACEOF 5615/* end confdefs.h. */ 5616 5617int 5618main () 5619{ 5620 5621 ; 5622 return 0; 5623} 5624_ACEOF 5625rm -f conftest.$ac_objext 5626if { (ac_try="$ac_compile" 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_compile") 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); } && 5639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5640 { (case "(($ac_try" in 5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5642 *) ac_try_echo=$ac_try;; 5643esac 5644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5645 (eval "$ac_try") 2>&5 5646 ac_status=$? 5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5648 (exit $ac_status); }; } && 5649 { ac_try='test -s conftest.$ac_objext' 5650 { (case "(($ac_try" in 5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5652 *) ac_try_echo=$ac_try;; 5653esac 5654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5655 (eval "$ac_try") 2>&5 5656 ac_status=$? 5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5658 (exit $ac_status); }; }; then 5659 : 5660else 5661 echo "$as_me: failed program was:" >&5 5662sed 's/^/| /' conftest.$ac_ext >&5 5663 5664 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5665 CXXFLAGS="-g" 5666 cat >conftest.$ac_ext <<_ACEOF 5667/* confdefs.h. */ 5668_ACEOF 5669cat confdefs.h >>conftest.$ac_ext 5670cat >>conftest.$ac_ext <<_ACEOF 5671/* end confdefs.h. */ 5672 5673int 5674main () 5675{ 5676 5677 ; 5678 return 0; 5679} 5680_ACEOF 5681rm -f conftest.$ac_objext 5682if { (ac_try="$ac_compile" 5683case "(($ac_try" in 5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5685 *) ac_try_echo=$ac_try;; 5686esac 5687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5688 (eval "$ac_compile") 2>conftest.er1 5689 ac_status=$? 5690 grep -v '^ *+' conftest.er1 >conftest.err 5691 rm -f conftest.er1 5692 cat conftest.err >&5 5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5694 (exit $ac_status); } && 5695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5696 { (case "(($ac_try" in 5697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5698 *) ac_try_echo=$ac_try;; 5699esac 5700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5701 (eval "$ac_try") 2>&5 5702 ac_status=$? 5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5704 (exit $ac_status); }; } && 5705 { ac_try='test -s conftest.$ac_objext' 5706 { (case "(($ac_try" in 5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5708 *) ac_try_echo=$ac_try;; 5709esac 5710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5711 (eval "$ac_try") 2>&5 5712 ac_status=$? 5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5714 (exit $ac_status); }; }; then 5715 ac_cv_prog_cxx_g=yes 5716else 5717 echo "$as_me: failed program was:" >&5 5718sed 's/^/| /' conftest.$ac_ext >&5 5719 5720 5721fi 5722 5723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5724fi 5725 5726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5727fi 5728 5729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5730 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5731fi 5732{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5733echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5734if test "$ac_test_CXXFLAGS" = set; then 5735 CXXFLAGS=$ac_save_CXXFLAGS 5736elif test $ac_cv_prog_cxx_g = yes; then 5737 if test "$GXX" = yes; then 5738 CXXFLAGS="-g -O2" 5739 else 5740 CXXFLAGS="-g" 5741 fi 5742else 5743 if test "$GXX" = yes; then 5744 CXXFLAGS="-O2" 5745 else 5746 CXXFLAGS= 5747 fi 5748fi 5749ac_ext=cpp 5750ac_cpp='$CXXCPP $CPPFLAGS' 5751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5754 5755depcc="$CXX" am_compiler_list= 5756 5757{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5758echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5759if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5760 echo $ECHO_N "(cached) $ECHO_C" >&6 5761else 5762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5763 # We make a subdir and do the tests there. Otherwise we can end up 5764 # making bogus files that we don't know about and never remove. For 5765 # instance it was reported that on HP-UX the gcc test will end up 5766 # making a dummy file named `D' -- because `-MD' means `put the output 5767 # in D'. 5768 mkdir conftest.dir 5769 # Copy depcomp to subdir because otherwise we won't find it if we're 5770 # using a relative directory. 5771 cp "$am_depcomp" conftest.dir 5772 cd conftest.dir 5773 # We will build objects and dependencies in a subdirectory because 5774 # it helps to detect inapplicable dependency modes. For instance 5775 # both Tru64's cc and ICC support -MD to output dependencies as a 5776 # side effect of compilation, but ICC will put the dependencies in 5777 # the current directory while Tru64 will put them in the object 5778 # directory. 5779 mkdir sub 5780 5781 am_cv_CXX_dependencies_compiler_type=none 5782 if test "$am_compiler_list" = ""; then 5783 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5784 fi 5785 for depmode in $am_compiler_list; do 5786 # Setup a source with many dependencies, because some compilers 5787 # like to wrap large dependency lists on column 80 (with \), and 5788 # we should not choose a depcomp mode which is confused by this. 5789 # 5790 # We need to recreate these files for each test, as the compiler may 5791 # overwrite some of them when testing with obscure command lines. 5792 # This happens at least with the AIX C compiler. 5793 : > sub/conftest.c 5794 for i in 1 2 3 4 5 6; do 5795 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5796 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5797 # Solaris 8's {/usr,}/bin/sh. 5798 touch sub/conftst$i.h 5799 done 5800 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5801 5802 case $depmode in 5803 nosideeffect) 5804 # after this tag, mechanisms are not by side-effect, so they'll 5805 # only be used when explicitly requested 5806 if test "x$enable_dependency_tracking" = xyes; then 5807 continue 5808 else 5809 break 5810 fi 5811 ;; 5812 none) break ;; 5813 esac 5814 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5815 # mode. It turns out that the SunPro C++ compiler does not properly 5816 # handle `-M -o', and we need to detect this. 5817 if depmode=$depmode \ 5818 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5819 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5820 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5821 >/dev/null 2>conftest.err && 5822 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5823 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5824 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5825 # icc doesn't choke on unknown options, it will just issue warnings 5826 # or remarks (even with -Werror). So we grep stderr for any message 5827 # that says an option was ignored or not supported. 5828 # When given -MP, icc 7.0 and 7.1 complain thusly: 5829 # icc: Command line warning: ignoring option '-M'; no argument required 5830 # The diagnosis changed in icc 8.0: 5831 # icc: Command line remark: option '-MP' not supported 5832 if (grep 'ignoring option' conftest.err || 5833 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5834 am_cv_CXX_dependencies_compiler_type=$depmode 5835 break 5836 fi 5837 fi 5838 done 5839 5840 cd .. 5841 rm -rf conftest.dir 5842else 5843 am_cv_CXX_dependencies_compiler_type=none 5844fi 5845 5846fi 5847{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5848echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5849CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5850 5851 5852 5853if 5854 test "x$enable_dependency_tracking" != xno \ 5855 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5856 am__fastdepCXX_TRUE= 5857 am__fastdepCXX_FALSE='#' 5858else 5859 am__fastdepCXX_TRUE='#' 5860 am__fastdepCXX_FALSE= 5861fi 5862 5863 5864 5865 5866if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5867 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5868 (test "X$CXX" != "Xg++"))) ; then 5869 ac_ext=cpp 5870ac_cpp='$CXXCPP $CPPFLAGS' 5871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5874{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5875echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5876if test -z "$CXXCPP"; then 5877 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5878 echo $ECHO_N "(cached) $ECHO_C" >&6 5879else 5880 # Double quotes because CXXCPP needs to be expanded 5881 for CXXCPP in "$CXX -E" "/lib/cpp" 5882 do 5883 ac_preproc_ok=false 5884for ac_cxx_preproc_warn_flag in '' yes 5885do 5886 # Use a header file that comes with gcc, so configuring glibc 5887 # with a fresh cross-compiler works. 5888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5889 # <limits.h> exists even on freestanding compilers. 5890 # On the NeXT, cc -E runs the code through the compiler's parser, 5891 # not just through cpp. "Syntax error" is here to catch this case. 5892 cat >conftest.$ac_ext <<_ACEOF 5893/* confdefs.h. */ 5894_ACEOF 5895cat confdefs.h >>conftest.$ac_ext 5896cat >>conftest.$ac_ext <<_ACEOF 5897/* end confdefs.h. */ 5898#ifdef __STDC__ 5899# include <limits.h> 5900#else 5901# include <assert.h> 5902#endif 5903 Syntax error 5904_ACEOF 5905if { (ac_try="$ac_cpp conftest.$ac_ext" 5906case "(($ac_try" in 5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5908 *) ac_try_echo=$ac_try;; 5909esac 5910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5912 ac_status=$? 5913 grep -v '^ *+' conftest.er1 >conftest.err 5914 rm -f conftest.er1 5915 cat conftest.err >&5 5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5917 (exit $ac_status); } >/dev/null; then 5918 if test -s conftest.err; then 5919 ac_cpp_err=$ac_cxx_preproc_warn_flag 5920 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5921 else 5922 ac_cpp_err= 5923 fi 5924else 5925 ac_cpp_err=yes 5926fi 5927if test -z "$ac_cpp_err"; then 5928 : 5929else 5930 echo "$as_me: failed program was:" >&5 5931sed 's/^/| /' conftest.$ac_ext >&5 5932 5933 # Broken: fails on valid input. 5934continue 5935fi 5936 5937rm -f conftest.err conftest.$ac_ext 5938 5939 # OK, works on sane cases. Now check whether nonexistent headers 5940 # can be detected and how. 5941 cat >conftest.$ac_ext <<_ACEOF 5942/* confdefs.h. */ 5943_ACEOF 5944cat confdefs.h >>conftest.$ac_ext 5945cat >>conftest.$ac_ext <<_ACEOF 5946/* end confdefs.h. */ 5947#include <ac_nonexistent.h> 5948_ACEOF 5949if { (ac_try="$ac_cpp conftest.$ac_ext" 5950case "(($ac_try" in 5951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5952 *) ac_try_echo=$ac_try;; 5953esac 5954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5956 ac_status=$? 5957 grep -v '^ *+' conftest.er1 >conftest.err 5958 rm -f conftest.er1 5959 cat conftest.err >&5 5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5961 (exit $ac_status); } >/dev/null; then 5962 if test -s conftest.err; then 5963 ac_cpp_err=$ac_cxx_preproc_warn_flag 5964 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5965 else 5966 ac_cpp_err= 5967 fi 5968else 5969 ac_cpp_err=yes 5970fi 5971if test -z "$ac_cpp_err"; then 5972 # Broken: success on invalid input. 5973continue 5974else 5975 echo "$as_me: failed program was:" >&5 5976sed 's/^/| /' conftest.$ac_ext >&5 5977 5978 # Passes both tests. 5979ac_preproc_ok=: 5980break 5981fi 5982 5983rm -f conftest.err conftest.$ac_ext 5984 5985done 5986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5987rm -f conftest.err conftest.$ac_ext 5988if $ac_preproc_ok; then 5989 break 5990fi 5991 5992 done 5993 ac_cv_prog_CXXCPP=$CXXCPP 5994 5995fi 5996 CXXCPP=$ac_cv_prog_CXXCPP 5997else 5998 ac_cv_prog_CXXCPP=$CXXCPP 5999fi 6000{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6001echo "${ECHO_T}$CXXCPP" >&6; } 6002ac_preproc_ok=false 6003for ac_cxx_preproc_warn_flag in '' yes 6004do 6005 # Use a header file that comes with gcc, so configuring glibc 6006 # with a fresh cross-compiler works. 6007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6008 # <limits.h> exists even on freestanding compilers. 6009 # On the NeXT, cc -E runs the code through the compiler's parser, 6010 # not just through cpp. "Syntax error" is here to catch this case. 6011 cat >conftest.$ac_ext <<_ACEOF 6012/* confdefs.h. */ 6013_ACEOF 6014cat confdefs.h >>conftest.$ac_ext 6015cat >>conftest.$ac_ext <<_ACEOF 6016/* end confdefs.h. */ 6017#ifdef __STDC__ 6018# include <limits.h> 6019#else 6020# include <assert.h> 6021#endif 6022 Syntax error 6023_ACEOF 6024if { (ac_try="$ac_cpp conftest.$ac_ext" 6025case "(($ac_try" in 6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6027 *) ac_try_echo=$ac_try;; 6028esac 6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6031 ac_status=$? 6032 grep -v '^ *+' conftest.er1 >conftest.err 6033 rm -f conftest.er1 6034 cat conftest.err >&5 6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6036 (exit $ac_status); } >/dev/null; then 6037 if test -s conftest.err; then 6038 ac_cpp_err=$ac_cxx_preproc_warn_flag 6039 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6040 else 6041 ac_cpp_err= 6042 fi 6043else 6044 ac_cpp_err=yes 6045fi 6046if test -z "$ac_cpp_err"; then 6047 : 6048else 6049 echo "$as_me: failed program was:" >&5 6050sed 's/^/| /' conftest.$ac_ext >&5 6051 6052 # Broken: fails on valid input. 6053continue 6054fi 6055 6056rm -f conftest.err conftest.$ac_ext 6057 6058 # OK, works on sane cases. Now check whether nonexistent headers 6059 # can be detected and how. 6060 cat >conftest.$ac_ext <<_ACEOF 6061/* confdefs.h. */ 6062_ACEOF 6063cat confdefs.h >>conftest.$ac_ext 6064cat >>conftest.$ac_ext <<_ACEOF 6065/* end confdefs.h. */ 6066#include <ac_nonexistent.h> 6067_ACEOF 6068if { (ac_try="$ac_cpp conftest.$ac_ext" 6069case "(($ac_try" in 6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6071 *) ac_try_echo=$ac_try;; 6072esac 6073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6075 ac_status=$? 6076 grep -v '^ *+' conftest.er1 >conftest.err 6077 rm -f conftest.er1 6078 cat conftest.err >&5 6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6080 (exit $ac_status); } >/dev/null; then 6081 if test -s conftest.err; then 6082 ac_cpp_err=$ac_cxx_preproc_warn_flag 6083 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6084 else 6085 ac_cpp_err= 6086 fi 6087else 6088 ac_cpp_err=yes 6089fi 6090if test -z "$ac_cpp_err"; then 6091 # Broken: success on invalid input. 6092continue 6093else 6094 echo "$as_me: failed program was:" >&5 6095sed 's/^/| /' conftest.$ac_ext >&5 6096 6097 # Passes both tests. 6098ac_preproc_ok=: 6099break 6100fi 6101 6102rm -f conftest.err conftest.$ac_ext 6103 6104done 6105# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6106rm -f conftest.err conftest.$ac_ext 6107if $ac_preproc_ok; then 6108 : 6109else 6110 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6111See \`config.log' for more details." >&5 6112echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6113See \`config.log' for more details." >&2;} 6114 { (exit 1); exit 1; }; } 6115fi 6116 6117ac_ext=cpp 6118ac_cpp='$CXXCPP $CPPFLAGS' 6119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6122 6123fi 6124 6125 6126ac_ext=f 6127ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6128ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6129ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6130if test -n "$ac_tool_prefix"; then 6131 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6132 do 6133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6134set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6135{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6137if test "${ac_cv_prog_F77+set}" = set; then 6138 echo $ECHO_N "(cached) $ECHO_C" >&6 6139else 6140 if test -n "$F77"; then 6141 ac_cv_prog_F77="$F77" # Let the user override the test. 6142else 6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6144for as_dir in $PATH 6145do 6146 IFS=$as_save_IFS 6147 test -z "$as_dir" && as_dir=. 6148 for ac_exec_ext in '' $ac_executable_extensions; do 6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6150 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6152 break 2 6153 fi 6154done 6155done 6156IFS=$as_save_IFS 6157 6158fi 6159fi 6160F77=$ac_cv_prog_F77 6161if test -n "$F77"; then 6162 { echo "$as_me:$LINENO: result: $F77" >&5 6163echo "${ECHO_T}$F77" >&6; } 6164else 6165 { echo "$as_me:$LINENO: result: no" >&5 6166echo "${ECHO_T}no" >&6; } 6167fi 6168 6169 6170 test -n "$F77" && break 6171 done 6172fi 6173if test -z "$F77"; then 6174 ac_ct_F77=$F77 6175 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn 6176do 6177 # Extract the first word of "$ac_prog", so it can be a program name with args. 6178set dummy $ac_prog; ac_word=$2 6179{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6181if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6182 echo $ECHO_N "(cached) $ECHO_C" >&6 6183else 6184 if test -n "$ac_ct_F77"; then 6185 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6186else 6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6188for as_dir in $PATH 6189do 6190 IFS=$as_save_IFS 6191 test -z "$as_dir" && as_dir=. 6192 for ac_exec_ext in '' $ac_executable_extensions; do 6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6194 ac_cv_prog_ac_ct_F77="$ac_prog" 6195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6196 break 2 6197 fi 6198done 6199done 6200IFS=$as_save_IFS 6201 6202fi 6203fi 6204ac_ct_F77=$ac_cv_prog_ac_ct_F77 6205if test -n "$ac_ct_F77"; then 6206 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6207echo "${ECHO_T}$ac_ct_F77" >&6; } 6208else 6209 { echo "$as_me:$LINENO: result: no" >&5 6210echo "${ECHO_T}no" >&6; } 6211fi 6212 6213 6214 test -n "$ac_ct_F77" && break 6215done 6216 6217 if test "x$ac_ct_F77" = x; then 6218 F77="" 6219 else 6220 case $cross_compiling:$ac_tool_warned in 6221yes:) 6222{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6223whose name does not start with the host triplet. If you think this 6224configuration is useful to you, please write to autoconf@gnu.org." >&5 6225echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6226whose name does not start with the host triplet. If you think this 6227configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6228ac_tool_warned=yes ;; 6229esac 6230 F77=$ac_ct_F77 6231 fi 6232fi 6233 6234 6235# Provide some information about the compiler. 6236echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6237ac_compiler=`set X $ac_compile; echo $2` 6238{ (ac_try="$ac_compiler --version >&5" 6239case "(($ac_try" in 6240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6241 *) ac_try_echo=$ac_try;; 6242esac 6243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6244 (eval "$ac_compiler --version >&5") 2>&5 6245 ac_status=$? 6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6247 (exit $ac_status); } 6248{ (ac_try="$ac_compiler -v >&5" 6249case "(($ac_try" in 6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6251 *) ac_try_echo=$ac_try;; 6252esac 6253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6254 (eval "$ac_compiler -v >&5") 2>&5 6255 ac_status=$? 6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6257 (exit $ac_status); } 6258{ (ac_try="$ac_compiler -V >&5" 6259case "(($ac_try" in 6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6261 *) ac_try_echo=$ac_try;; 6262esac 6263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6264 (eval "$ac_compiler -V >&5") 2>&5 6265 ac_status=$? 6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6267 (exit $ac_status); } 6268rm -f a.out 6269 6270# If we don't use `.F' as extension, the preprocessor is not run on the 6271# input file. (Note that this only needs to work for GNU compilers.) 6272ac_save_ext=$ac_ext 6273ac_ext=F 6274{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6275echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6276if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6277 echo $ECHO_N "(cached) $ECHO_C" >&6 6278else 6279 cat >conftest.$ac_ext <<_ACEOF 6280 program main 6281#ifndef __GNUC__ 6282 choke me 6283#endif 6284 6285 end 6286_ACEOF 6287rm -f conftest.$ac_objext 6288if { (ac_try="$ac_compile" 6289case "(($ac_try" in 6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6291 *) ac_try_echo=$ac_try;; 6292esac 6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6294 (eval "$ac_compile") 2>conftest.er1 6295 ac_status=$? 6296 grep -v '^ *+' conftest.er1 >conftest.err 6297 rm -f conftest.er1 6298 cat conftest.err >&5 6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6300 (exit $ac_status); } && 6301 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6302 { (case "(($ac_try" in 6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6304 *) ac_try_echo=$ac_try;; 6305esac 6306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6307 (eval "$ac_try") 2>&5 6308 ac_status=$? 6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6310 (exit $ac_status); }; } && 6311 { ac_try='test -s conftest.$ac_objext' 6312 { (case "(($ac_try" in 6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6314 *) ac_try_echo=$ac_try;; 6315esac 6316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6317 (eval "$ac_try") 2>&5 6318 ac_status=$? 6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6320 (exit $ac_status); }; }; then 6321 ac_compiler_gnu=yes 6322else 6323 echo "$as_me: failed program was:" >&5 6324sed 's/^/| /' conftest.$ac_ext >&5 6325 6326 ac_compiler_gnu=no 6327fi 6328 6329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6330ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6331 6332fi 6333{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6334echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6335ac_ext=$ac_save_ext 6336ac_test_FFLAGS=${FFLAGS+set} 6337ac_save_FFLAGS=$FFLAGS 6338FFLAGS= 6339{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6340echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6341if test "${ac_cv_prog_f77_g+set}" = set; then 6342 echo $ECHO_N "(cached) $ECHO_C" >&6 6343else 6344 FFLAGS=-g 6345cat >conftest.$ac_ext <<_ACEOF 6346 program main 6347 6348 end 6349_ACEOF 6350rm -f conftest.$ac_objext 6351if { (ac_try="$ac_compile" 6352case "(($ac_try" in 6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6354 *) ac_try_echo=$ac_try;; 6355esac 6356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6357 (eval "$ac_compile") 2>conftest.er1 6358 ac_status=$? 6359 grep -v '^ *+' conftest.er1 >conftest.err 6360 rm -f conftest.er1 6361 cat conftest.err >&5 6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6363 (exit $ac_status); } && 6364 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6365 { (case "(($ac_try" in 6366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6367 *) ac_try_echo=$ac_try;; 6368esac 6369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6370 (eval "$ac_try") 2>&5 6371 ac_status=$? 6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6373 (exit $ac_status); }; } && 6374 { ac_try='test -s conftest.$ac_objext' 6375 { (case "(($ac_try" in 6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6377 *) ac_try_echo=$ac_try;; 6378esac 6379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6380 (eval "$ac_try") 2>&5 6381 ac_status=$? 6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6383 (exit $ac_status); }; }; then 6384 ac_cv_prog_f77_g=yes 6385else 6386 echo "$as_me: failed program was:" >&5 6387sed 's/^/| /' conftest.$ac_ext >&5 6388 6389 ac_cv_prog_f77_g=no 6390fi 6391 6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6393 6394fi 6395{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6396echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6397if test "$ac_test_FFLAGS" = set; then 6398 FFLAGS=$ac_save_FFLAGS 6399elif test $ac_cv_prog_f77_g = yes; then 6400 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6401 FFLAGS="-g -O2" 6402 else 6403 FFLAGS="-g" 6404 fi 6405else 6406 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6407 FFLAGS="-O2" 6408 else 6409 FFLAGS= 6410 fi 6411fi 6412 6413G77=`test $ac_compiler_gnu = yes && echo yes` 6414ac_ext=c 6415ac_cpp='$CPP $CPPFLAGS' 6416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6418ac_compiler_gnu=$ac_cv_c_compiler_gnu 6419 6420 6421 6422# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6423 6424# find the maximum length of command line arguments 6425{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6426echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6427if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6428 echo $ECHO_N "(cached) $ECHO_C" >&6 6429else 6430 i=0 6431 teststring="ABCD" 6432 6433 case $build_os in 6434 msdosdjgpp*) 6435 # On DJGPP, this test can blow up pretty badly due to problems in libc 6436 # (any single argument exceeding 2000 bytes causes a buffer overrun 6437 # during glob expansion). Even if it were fixed, the result of this 6438 # check would be larger than it should be. 6439 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6440 ;; 6441 6442 gnu*) 6443 # Under GNU Hurd, this test is not required because there is 6444 # no limit to the length of command line arguments. 6445 # Libtool will interpret -1 as no limit whatsoever 6446 lt_cv_sys_max_cmd_len=-1; 6447 ;; 6448 6449 cygwin* | mingw*) 6450 # On Win9x/ME, this test blows up -- it succeeds, but takes 6451 # about 5 minutes as the teststring grows exponentially. 6452 # Worse, since 9x/ME are not pre-emptively multitasking, 6453 # you end up with a "frozen" computer, even though with patience 6454 # the test eventually succeeds (with a max line length of 256k). 6455 # Instead, let's just punt: use the minimum linelength reported by 6456 # all of the supported platforms: 8192 (on NT/2K/XP). 6457 lt_cv_sys_max_cmd_len=8192; 6458 ;; 6459 6460 amigaos*) 6461 # On AmigaOS with pdksh, this test takes hours, literally. 6462 # So we just punt and use a minimum line length of 8192. 6463 lt_cv_sys_max_cmd_len=8192; 6464 ;; 6465 6466 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6467 # This has been around since 386BSD, at least. Likely further. 6468 if test -x /sbin/sysctl; then 6469 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6470 elif test -x /usr/sbin/sysctl; then 6471 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6472 else 6473 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6474 fi 6475 # And add a safety zone 6476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6478 ;; 6479 6480 interix*) 6481 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6482 lt_cv_sys_max_cmd_len=196608 6483 ;; 6484 6485 osf*) 6486 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6487 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6488 # nice to cause kernel panics so lets avoid the loop below. 6489 # First set a reasonable default. 6490 lt_cv_sys_max_cmd_len=16384 6491 # 6492 if test -x /sbin/sysconfig; then 6493 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6494 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6495 esac 6496 fi 6497 ;; 6498 sco3.2v5*) 6499 lt_cv_sys_max_cmd_len=102400 6500 ;; 6501 sysv5* | sco5v6* | sysv4.2uw2*) 6502 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6503 if test -n "$kargmax"; then 6504 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6505 else 6506 lt_cv_sys_max_cmd_len=32768 6507 fi 6508 ;; 6509 *) 6510 # If test is not a shell built-in, we'll probably end up computing a 6511 # maximum length that is only half of the actual maximum length, but 6512 # we can't tell. 6513 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6514 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6515 = "XX$teststring") >/dev/null 2>&1 && 6516 new_result=`expr "X$teststring" : ".*" 2>&1` && 6517 lt_cv_sys_max_cmd_len=$new_result && 6518 test $i != 17 # 1/2 MB should be enough 6519 do 6520 i=`expr $i + 1` 6521 teststring=$teststring$teststring 6522 done 6523 teststring= 6524 # Add a significant safety factor because C++ compilers can tack on massive 6525 # amounts of additional arguments before passing them to the linker. 6526 # It appears as though 1/2 is a usable value. 6527 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6528 ;; 6529 esac 6530 6531fi 6532 6533if test -n $lt_cv_sys_max_cmd_len ; then 6534 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6535echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6536else 6537 { echo "$as_me:$LINENO: result: none" >&5 6538echo "${ECHO_T}none" >&6; } 6539fi 6540 6541 6542 6543 6544# Check for command to grab the raw symbol name followed by C symbol from nm. 6545{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6546echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6547if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6548 echo $ECHO_N "(cached) $ECHO_C" >&6 6549else 6550 6551# These are sane defaults that work on at least a few old systems. 6552# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6553 6554# Character class describing NM global symbol codes. 6555symcode='[BCDEGRST]' 6556 6557# Regexp to match symbols that can be accessed directly from C. 6558sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6559 6560# Transform an extracted symbol line into a proper C declaration 6561lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6562 6563# Transform an extracted symbol line into symbol name and symbol address 6564lt_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'" 6565 6566# Define system-specific variables. 6567case $host_os in 6568aix*) 6569 symcode='[BCDT]' 6570 ;; 6571cygwin* | mingw* | pw32*) 6572 symcode='[ABCDGISTW]' 6573 ;; 6574hpux*) # Its linker distinguishes data from code symbols 6575 if test "$host_cpu" = ia64; then 6576 symcode='[ABCDEGRST]' 6577 fi 6578 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6579 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'" 6580 ;; 6581linux*) 6582 if test "$host_cpu" = ia64; then 6583 symcode='[ABCDGIRSTW]' 6584 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6585 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'" 6586 fi 6587 ;; 6588irix* | nonstopux*) 6589 symcode='[BCDEGRST]' 6590 ;; 6591osf*) 6592 symcode='[BCDEGQRST]' 6593 ;; 6594solaris*) 6595 symcode='[BDRT]' 6596 ;; 6597sco3.2v5*) 6598 symcode='[DT]' 6599 ;; 6600sysv4.2uw2*) 6601 symcode='[DT]' 6602 ;; 6603sysv5* | sco5v6* | unixware* | OpenUNIX*) 6604 symcode='[ABDT]' 6605 ;; 6606sysv4) 6607 symcode='[DFNSTU]' 6608 ;; 6609esac 6610 6611# Handle CRLF in mingw tool chain 6612opt_cr= 6613case $build_os in 6614mingw*) 6615 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6616 ;; 6617esac 6618 6619# If we're using GNU nm, then use its standard symbol codes. 6620case `$NM -V 2>&1` in 6621*GNU* | *'with BFD'*) 6622 symcode='[ABCDGIRSTW]' ;; 6623esac 6624 6625# Try without a prefix undercore, then with it. 6626for ac_symprfx in "" "_"; do 6627 6628 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6629 symxfrm="\\1 $ac_symprfx\\2 \\2" 6630 6631 # Write the raw and C identifiers. 6632 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6633 6634 # Check to see that the pipe works correctly. 6635 pipe_works=no 6636 6637 rm -f conftest* 6638 cat > conftest.$ac_ext <<EOF 6639#ifdef __cplusplus 6640extern "C" { 6641#endif 6642char nm_test_var; 6643void nm_test_func(){} 6644#ifdef __cplusplus 6645} 6646#endif 6647int main(){nm_test_var='a';nm_test_func();return(0);} 6648EOF 6649 6650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6651 (eval $ac_compile) 2>&5 6652 ac_status=$? 6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6654 (exit $ac_status); }; then 6655 # Now try to grab the symbols. 6656 nlist=conftest.nm 6657 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6658 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6659 ac_status=$? 6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6661 (exit $ac_status); } && test -s "$nlist"; then 6662 # Try sorting and uniquifying the output. 6663 if sort "$nlist" | uniq > "$nlist"T; then 6664 mv -f "$nlist"T "$nlist" 6665 else 6666 rm -f "$nlist"T 6667 fi 6668 6669 # Make sure that we snagged all the symbols we need. 6670 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6671 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6672 cat <<EOF > conftest.$ac_ext 6673#ifdef __cplusplus 6674extern "C" { 6675#endif 6676 6677EOF 6678 # Now generate the symbol file. 6679 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6680 6681 cat <<EOF >> conftest.$ac_ext 6682#if defined (__STDC__) && __STDC__ 6683# define lt_ptr_t void * 6684#else 6685# define lt_ptr_t char * 6686# define const 6687#endif 6688 6689/* The mapping between symbol names and symbols. */ 6690const struct { 6691 const char *name; 6692 lt_ptr_t address; 6693} 6694lt_preloaded_symbols[] = 6695{ 6696EOF 6697 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6698 cat <<\EOF >> conftest.$ac_ext 6699 {0, (lt_ptr_t) 0} 6700}; 6701 6702#ifdef __cplusplus 6703} 6704#endif 6705EOF 6706 # Now try linking the two files. 6707 mv conftest.$ac_objext conftstm.$ac_objext 6708 lt_save_LIBS="$LIBS" 6709 lt_save_CFLAGS="$CFLAGS" 6710 LIBS="conftstm.$ac_objext" 6711 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6713 (eval $ac_link) 2>&5 6714 ac_status=$? 6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6716 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6717 pipe_works=yes 6718 fi 6719 LIBS="$lt_save_LIBS" 6720 CFLAGS="$lt_save_CFLAGS" 6721 else 6722 echo "cannot find nm_test_func in $nlist" >&5 6723 fi 6724 else 6725 echo "cannot find nm_test_var in $nlist" >&5 6726 fi 6727 else 6728 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6729 fi 6730 else 6731 echo "$progname: failed program was:" >&5 6732 cat conftest.$ac_ext >&5 6733 fi 6734 rm -f conftest* conftst* 6735 6736 # Do not use the global_symbol_pipe unless it works. 6737 if test "$pipe_works" = yes; then 6738 break 6739 else 6740 lt_cv_sys_global_symbol_pipe= 6741 fi 6742done 6743 6744fi 6745 6746if test -z "$lt_cv_sys_global_symbol_pipe"; then 6747 lt_cv_sys_global_symbol_to_cdecl= 6748fi 6749if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6750 { echo "$as_me:$LINENO: result: failed" >&5 6751echo "${ECHO_T}failed" >&6; } 6752else 6753 { echo "$as_me:$LINENO: result: ok" >&5 6754echo "${ECHO_T}ok" >&6; } 6755fi 6756 6757{ echo "$as_me:$LINENO: checking for objdir" >&5 6758echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6759if test "${lt_cv_objdir+set}" = set; then 6760 echo $ECHO_N "(cached) $ECHO_C" >&6 6761else 6762 rm -f .libs 2>/dev/null 6763mkdir .libs 2>/dev/null 6764if test -d .libs; then 6765 lt_cv_objdir=.libs 6766else 6767 # MS-DOS does not allow filenames that begin with a dot. 6768 lt_cv_objdir=_libs 6769fi 6770rmdir .libs 2>/dev/null 6771fi 6772{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6773echo "${ECHO_T}$lt_cv_objdir" >&6; } 6774objdir=$lt_cv_objdir 6775 6776 6777 6778 6779 6780case $host_os in 6781aix3*) 6782 # AIX sometimes has problems with the GCC collect2 program. For some 6783 # reason, if we set the COLLECT_NAMES environment variable, the problems 6784 # vanish in a puff of smoke. 6785 if test "X${COLLECT_NAMES+set}" != Xset; then 6786 COLLECT_NAMES= 6787 export COLLECT_NAMES 6788 fi 6789 ;; 6790esac 6791 6792# Sed substitution that helps us do robust quoting. It backslashifies 6793# metacharacters that are still active within double-quoted strings. 6794Xsed='sed -e 1s/^X//' 6795sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6796 6797# Same as above, but do not quote variable references. 6798double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6799 6800# Sed substitution to delay expansion of an escaped shell variable in a 6801# double_quote_subst'ed string. 6802delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6803 6804# Sed substitution to avoid accidental globbing in evaled expressions 6805no_glob_subst='s/\*/\\\*/g' 6806 6807# Constants: 6808rm="rm -f" 6809 6810# Global variables: 6811default_ofile=libtool 6812can_build_shared=yes 6813 6814# All known linkers require a `.a' archive for static linking (except MSVC, 6815# which needs '.lib'). 6816libext=a 6817ltmain="$ac_aux_dir/ltmain.sh" 6818ofile="$default_ofile" 6819with_gnu_ld="$lt_cv_prog_gnu_ld" 6820 6821if test -n "$ac_tool_prefix"; then 6822 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6823set dummy ${ac_tool_prefix}ar; ac_word=$2 6824{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6826if test "${ac_cv_prog_AR+set}" = set; then 6827 echo $ECHO_N "(cached) $ECHO_C" >&6 6828else 6829 if test -n "$AR"; then 6830 ac_cv_prog_AR="$AR" # Let the user override the test. 6831else 6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6833for as_dir in $PATH 6834do 6835 IFS=$as_save_IFS 6836 test -z "$as_dir" && as_dir=. 6837 for ac_exec_ext in '' $ac_executable_extensions; do 6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6839 ac_cv_prog_AR="${ac_tool_prefix}ar" 6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6841 break 2 6842 fi 6843done 6844done 6845IFS=$as_save_IFS 6846 6847fi 6848fi 6849AR=$ac_cv_prog_AR 6850if test -n "$AR"; then 6851 { echo "$as_me:$LINENO: result: $AR" >&5 6852echo "${ECHO_T}$AR" >&6; } 6853else 6854 { echo "$as_me:$LINENO: result: no" >&5 6855echo "${ECHO_T}no" >&6; } 6856fi 6857 6858 6859fi 6860if test -z "$ac_cv_prog_AR"; then 6861 ac_ct_AR=$AR 6862 # Extract the first word of "ar", so it can be a program name with args. 6863set dummy ar; ac_word=$2 6864{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6866if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6867 echo $ECHO_N "(cached) $ECHO_C" >&6 6868else 6869 if test -n "$ac_ct_AR"; then 6870 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6871else 6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6873for as_dir in $PATH 6874do 6875 IFS=$as_save_IFS 6876 test -z "$as_dir" && as_dir=. 6877 for ac_exec_ext in '' $ac_executable_extensions; do 6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6879 ac_cv_prog_ac_ct_AR="ar" 6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6881 break 2 6882 fi 6883done 6884done 6885IFS=$as_save_IFS 6886 6887fi 6888fi 6889ac_ct_AR=$ac_cv_prog_ac_ct_AR 6890if test -n "$ac_ct_AR"; then 6891 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6892echo "${ECHO_T}$ac_ct_AR" >&6; } 6893else 6894 { echo "$as_me:$LINENO: result: no" >&5 6895echo "${ECHO_T}no" >&6; } 6896fi 6897 6898 if test "x$ac_ct_AR" = x; then 6899 AR="false" 6900 else 6901 case $cross_compiling:$ac_tool_warned in 6902yes:) 6903{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6904whose name does not start with the host triplet. If you think this 6905configuration is useful to you, please write to autoconf@gnu.org." >&5 6906echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6907whose name does not start with the host triplet. If you think this 6908configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6909ac_tool_warned=yes ;; 6910esac 6911 AR=$ac_ct_AR 6912 fi 6913else 6914 AR="$ac_cv_prog_AR" 6915fi 6916 6917if test -n "$ac_tool_prefix"; then 6918 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6919set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6920{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6922if test "${ac_cv_prog_RANLIB+set}" = set; then 6923 echo $ECHO_N "(cached) $ECHO_C" >&6 6924else 6925 if test -n "$RANLIB"; then 6926 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6927else 6928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6929for as_dir in $PATH 6930do 6931 IFS=$as_save_IFS 6932 test -z "$as_dir" && as_dir=. 6933 for ac_exec_ext in '' $ac_executable_extensions; do 6934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6935 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6937 break 2 6938 fi 6939done 6940done 6941IFS=$as_save_IFS 6942 6943fi 6944fi 6945RANLIB=$ac_cv_prog_RANLIB 6946if test -n "$RANLIB"; then 6947 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6948echo "${ECHO_T}$RANLIB" >&6; } 6949else 6950 { echo "$as_me:$LINENO: result: no" >&5 6951echo "${ECHO_T}no" >&6; } 6952fi 6953 6954 6955fi 6956if test -z "$ac_cv_prog_RANLIB"; then 6957 ac_ct_RANLIB=$RANLIB 6958 # Extract the first word of "ranlib", so it can be a program name with args. 6959set dummy ranlib; ac_word=$2 6960{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6962if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6963 echo $ECHO_N "(cached) $ECHO_C" >&6 6964else 6965 if test -n "$ac_ct_RANLIB"; then 6966 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6967else 6968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6969for as_dir in $PATH 6970do 6971 IFS=$as_save_IFS 6972 test -z "$as_dir" && as_dir=. 6973 for ac_exec_ext in '' $ac_executable_extensions; do 6974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6975 ac_cv_prog_ac_ct_RANLIB="ranlib" 6976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6977 break 2 6978 fi 6979done 6980done 6981IFS=$as_save_IFS 6982 6983fi 6984fi 6985ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6986if test -n "$ac_ct_RANLIB"; then 6987 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 6988echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 6989else 6990 { echo "$as_me:$LINENO: result: no" >&5 6991echo "${ECHO_T}no" >&6; } 6992fi 6993 6994 if test "x$ac_ct_RANLIB" = x; then 6995 RANLIB=":" 6996 else 6997 case $cross_compiling:$ac_tool_warned in 6998yes:) 6999{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7000whose name does not start with the host triplet. If you think this 7001configuration is useful to you, please write to autoconf@gnu.org." >&5 7002echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7003whose name does not start with the host triplet. If you think this 7004configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7005ac_tool_warned=yes ;; 7006esac 7007 RANLIB=$ac_ct_RANLIB 7008 fi 7009else 7010 RANLIB="$ac_cv_prog_RANLIB" 7011fi 7012 7013if test -n "$ac_tool_prefix"; then 7014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7015set dummy ${ac_tool_prefix}strip; ac_word=$2 7016{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7018if test "${ac_cv_prog_STRIP+set}" = set; then 7019 echo $ECHO_N "(cached) $ECHO_C" >&6 7020else 7021 if test -n "$STRIP"; then 7022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7023else 7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7025for as_dir in $PATH 7026do 7027 IFS=$as_save_IFS 7028 test -z "$as_dir" && as_dir=. 7029 for ac_exec_ext in '' $ac_executable_extensions; do 7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7031 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7033 break 2 7034 fi 7035done 7036done 7037IFS=$as_save_IFS 7038 7039fi 7040fi 7041STRIP=$ac_cv_prog_STRIP 7042if test -n "$STRIP"; then 7043 { echo "$as_me:$LINENO: result: $STRIP" >&5 7044echo "${ECHO_T}$STRIP" >&6; } 7045else 7046 { echo "$as_me:$LINENO: result: no" >&5 7047echo "${ECHO_T}no" >&6; } 7048fi 7049 7050 7051fi 7052if test -z "$ac_cv_prog_STRIP"; then 7053 ac_ct_STRIP=$STRIP 7054 # Extract the first word of "strip", so it can be a program name with args. 7055set dummy strip; ac_word=$2 7056{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7058if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7059 echo $ECHO_N "(cached) $ECHO_C" >&6 7060else 7061 if test -n "$ac_ct_STRIP"; then 7062 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7063else 7064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7065for as_dir in $PATH 7066do 7067 IFS=$as_save_IFS 7068 test -z "$as_dir" && as_dir=. 7069 for ac_exec_ext in '' $ac_executable_extensions; do 7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7071 ac_cv_prog_ac_ct_STRIP="strip" 7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7073 break 2 7074 fi 7075done 7076done 7077IFS=$as_save_IFS 7078 7079fi 7080fi 7081ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7082if test -n "$ac_ct_STRIP"; then 7083 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7084echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7085else 7086 { echo "$as_me:$LINENO: result: no" >&5 7087echo "${ECHO_T}no" >&6; } 7088fi 7089 7090 if test "x$ac_ct_STRIP" = x; then 7091 STRIP=":" 7092 else 7093 case $cross_compiling:$ac_tool_warned in 7094yes:) 7095{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7096whose name does not start with the host triplet. If you think this 7097configuration is useful to you, please write to autoconf@gnu.org." >&5 7098echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7099whose name does not start with the host triplet. If you think this 7100configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7101ac_tool_warned=yes ;; 7102esac 7103 STRIP=$ac_ct_STRIP 7104 fi 7105else 7106 STRIP="$ac_cv_prog_STRIP" 7107fi 7108 7109 7110old_CC="$CC" 7111old_CFLAGS="$CFLAGS" 7112 7113# Set sane defaults for various variables 7114test -z "$AR" && AR=ar 7115test -z "$AR_FLAGS" && AR_FLAGS=cru 7116test -z "$AS" && AS=as 7117test -z "$CC" && CC=cc 7118test -z "$LTCC" && LTCC=$CC 7119test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7120test -z "$DLLTOOL" && DLLTOOL=dlltool 7121test -z "$LD" && LD=ld 7122test -z "$LN_S" && LN_S="ln -s" 7123test -z "$MAGIC_CMD" && MAGIC_CMD=file 7124test -z "$NM" && NM=nm 7125test -z "$SED" && SED=sed 7126test -z "$OBJDUMP" && OBJDUMP=objdump 7127test -z "$RANLIB" && RANLIB=: 7128test -z "$STRIP" && STRIP=: 7129test -z "$ac_objext" && ac_objext=o 7130 7131# Determine commands to create old-style static archives. 7132old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7133old_postinstall_cmds='chmod 644 $oldlib' 7134old_postuninstall_cmds= 7135 7136if test -n "$RANLIB"; then 7137 case $host_os in 7138 openbsd*) 7139 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7140 ;; 7141 *) 7142 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7143 ;; 7144 esac 7145 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7146fi 7147 7148for cc_temp in $compiler""; do 7149 case $cc_temp in 7150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7152 \-*) ;; 7153 *) break;; 7154 esac 7155done 7156cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7157 7158 7159# Only perform the check for file, if the check method requires it 7160case $deplibs_check_method in 7161file_magic*) 7162 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7163 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7164echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7165if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7166 echo $ECHO_N "(cached) $ECHO_C" >&6 7167else 7168 case $MAGIC_CMD in 7169[\\/*] | ?:[\\/]*) 7170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7171 ;; 7172*) 7173 lt_save_MAGIC_CMD="$MAGIC_CMD" 7174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7175 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7176 for ac_dir in $ac_dummy; do 7177 IFS="$lt_save_ifs" 7178 test -z "$ac_dir" && ac_dir=. 7179 if test -f $ac_dir/${ac_tool_prefix}file; then 7180 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7181 if test -n "$file_magic_test_file"; then 7182 case $deplibs_check_method in 7183 "file_magic "*) 7184 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7186 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7187 $EGREP "$file_magic_regex" > /dev/null; then 7188 : 7189 else 7190 cat <<EOF 1>&2 7191 7192*** Warning: the command libtool uses to detect shared libraries, 7193*** $file_magic_cmd, produces output that libtool cannot recognize. 7194*** The result is that libtool may fail to recognize shared libraries 7195*** as such. This will affect the creation of libtool libraries that 7196*** depend on shared libraries, but programs linked with such libtool 7197*** libraries will work regardless of this problem. Nevertheless, you 7198*** may want to report the problem to your system manager and/or to 7199*** bug-libtool@gnu.org 7200 7201EOF 7202 fi ;; 7203 esac 7204 fi 7205 break 7206 fi 7207 done 7208 IFS="$lt_save_ifs" 7209 MAGIC_CMD="$lt_save_MAGIC_CMD" 7210 ;; 7211esac 7212fi 7213 7214MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7215if test -n "$MAGIC_CMD"; then 7216 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7217echo "${ECHO_T}$MAGIC_CMD" >&6; } 7218else 7219 { echo "$as_me:$LINENO: result: no" >&5 7220echo "${ECHO_T}no" >&6; } 7221fi 7222 7223if test -z "$lt_cv_path_MAGIC_CMD"; then 7224 if test -n "$ac_tool_prefix"; then 7225 { echo "$as_me:$LINENO: checking for file" >&5 7226echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7227if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7228 echo $ECHO_N "(cached) $ECHO_C" >&6 7229else 7230 case $MAGIC_CMD in 7231[\\/*] | ?:[\\/]*) 7232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7233 ;; 7234*) 7235 lt_save_MAGIC_CMD="$MAGIC_CMD" 7236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7237 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7238 for ac_dir in $ac_dummy; do 7239 IFS="$lt_save_ifs" 7240 test -z "$ac_dir" && ac_dir=. 7241 if test -f $ac_dir/file; then 7242 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7243 if test -n "$file_magic_test_file"; then 7244 case $deplibs_check_method in 7245 "file_magic "*) 7246 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7248 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7249 $EGREP "$file_magic_regex" > /dev/null; then 7250 : 7251 else 7252 cat <<EOF 1>&2 7253 7254*** Warning: the command libtool uses to detect shared libraries, 7255*** $file_magic_cmd, produces output that libtool cannot recognize. 7256*** The result is that libtool may fail to recognize shared libraries 7257*** as such. This will affect the creation of libtool libraries that 7258*** depend on shared libraries, but programs linked with such libtool 7259*** libraries will work regardless of this problem. Nevertheless, you 7260*** may want to report the problem to your system manager and/or to 7261*** bug-libtool@gnu.org 7262 7263EOF 7264 fi ;; 7265 esac 7266 fi 7267 break 7268 fi 7269 done 7270 IFS="$lt_save_ifs" 7271 MAGIC_CMD="$lt_save_MAGIC_CMD" 7272 ;; 7273esac 7274fi 7275 7276MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7277if test -n "$MAGIC_CMD"; then 7278 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7279echo "${ECHO_T}$MAGIC_CMD" >&6; } 7280else 7281 { echo "$as_me:$LINENO: result: no" >&5 7282echo "${ECHO_T}no" >&6; } 7283fi 7284 7285 else 7286 MAGIC_CMD=: 7287 fi 7288fi 7289 7290 fi 7291 ;; 7292esac 7293 7294enable_dlopen=no 7295enable_win32_dll=no 7296 7297# Check whether --enable-libtool-lock was given. 7298if test "${enable_libtool_lock+set}" = set; then 7299 enableval=$enable_libtool_lock; 7300fi 7301 7302test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7303 7304 7305# Check whether --with-pic was given. 7306if test "${with_pic+set}" = set; then 7307 withval=$with_pic; pic_mode="$withval" 7308else 7309 pic_mode=default 7310fi 7311 7312test -z "$pic_mode" && pic_mode=default 7313 7314# Use C for the default configuration in the libtool script 7315tagname= 7316lt_save_CC="$CC" 7317ac_ext=c 7318ac_cpp='$CPP $CPPFLAGS' 7319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7321ac_compiler_gnu=$ac_cv_c_compiler_gnu 7322 7323 7324# Source file extension for C test sources. 7325ac_ext=c 7326 7327# Object file extension for compiled C test sources. 7328objext=o 7329objext=$objext 7330 7331# Code to be used in simple compile tests 7332lt_simple_compile_test_code="int some_variable = 0;\n" 7333 7334# Code to be used in simple link tests 7335lt_simple_link_test_code='int main(){return(0);}\n' 7336 7337 7338# If no C compiler was specified, use CC. 7339LTCC=${LTCC-"$CC"} 7340 7341# If no C compiler flags were specified, use CFLAGS. 7342LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7343 7344# Allow CC to be a program name with arguments. 7345compiler=$CC 7346 7347 7348# save warnings/boilerplate of simple test code 7349ac_outfile=conftest.$ac_objext 7350printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7351eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7352_lt_compiler_boilerplate=`cat conftest.err` 7353$rm conftest* 7354 7355ac_outfile=conftest.$ac_objext 7356printf "$lt_simple_link_test_code" >conftest.$ac_ext 7357eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7358_lt_linker_boilerplate=`cat conftest.err` 7359$rm conftest* 7360 7361 7362 7363lt_prog_compiler_no_builtin_flag= 7364 7365if test "$GCC" = yes; then 7366 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7367 7368 7369{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7370echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7371if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7372 echo $ECHO_N "(cached) $ECHO_C" >&6 7373else 7374 lt_cv_prog_compiler_rtti_exceptions=no 7375 ac_outfile=conftest.$ac_objext 7376 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7377 lt_compiler_flag="-fno-rtti -fno-exceptions" 7378 # Insert the option either (1) after the last *FLAGS variable, or 7379 # (2) before a word containing "conftest.", or (3) at the end. 7380 # Note that $ac_compile itself does not contain backslashes and begins 7381 # with a dollar sign (not a hyphen), so the echo should work correctly. 7382 # The option is referenced via a variable to avoid confusing sed. 7383 lt_compile=`echo "$ac_compile" | $SED \ 7384 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7385 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7386 -e 's:$: $lt_compiler_flag:'` 7387 (eval echo "\"\$as_me:7387: $lt_compile\"" >&5) 7388 (eval "$lt_compile" 2>conftest.err) 7389 ac_status=$? 7390 cat conftest.err >&5 7391 echo "$as_me:7391: \$? = $ac_status" >&5 7392 if (exit $ac_status) && test -s "$ac_outfile"; then 7393 # The compiler can only warn and ignore the option if not recognized 7394 # So say no if there are warnings other than the usual output. 7395 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7397 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7398 lt_cv_prog_compiler_rtti_exceptions=yes 7399 fi 7400 fi 7401 $rm conftest* 7402 7403fi 7404{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7405echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7406 7407if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7408 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7409else 7410 : 7411fi 7412 7413fi 7414 7415lt_prog_compiler_wl= 7416lt_prog_compiler_pic= 7417lt_prog_compiler_static= 7418 7419{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7420echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7421 7422 if test "$GCC" = yes; then 7423 lt_prog_compiler_wl='-Wl,' 7424 lt_prog_compiler_static='-static' 7425 7426 case $host_os in 7427 aix*) 7428 # All AIX code is PIC. 7429 if test "$host_cpu" = ia64; then 7430 # AIX 5 now supports IA64 processor 7431 lt_prog_compiler_static='-Bstatic' 7432 fi 7433 ;; 7434 7435 amigaos*) 7436 # FIXME: we need at least 68020 code to build shared libraries, but 7437 # adding the `-m68020' flag to GCC prevents building anything better, 7438 # like `-m68040'. 7439 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7440 ;; 7441 7442 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7443 # PIC is the default for these OSes. 7444 ;; 7445 7446 mingw* | pw32* | os2*) 7447 # This hack is so that the source file can tell whether it is being 7448 # built for inclusion in a dll (and should export symbols for example). 7449 lt_prog_compiler_pic='-DDLL_EXPORT' 7450 ;; 7451 7452 darwin* | rhapsody*) 7453 # PIC is the default on this platform 7454 # Common symbols not allowed in MH_DYLIB files 7455 lt_prog_compiler_pic='-fno-common' 7456 ;; 7457 7458 interix3*) 7459 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7460 # Instead, we relocate shared libraries at runtime. 7461 ;; 7462 7463 msdosdjgpp*) 7464 # Just because we use GCC doesn't mean we suddenly get shared libraries 7465 # on systems that don't support them. 7466 lt_prog_compiler_can_build_shared=no 7467 enable_shared=no 7468 ;; 7469 7470 sysv4*MP*) 7471 if test -d /usr/nec; then 7472 lt_prog_compiler_pic=-Kconform_pic 7473 fi 7474 ;; 7475 7476 hpux*) 7477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7478 # not for PA HP-UX. 7479 case $host_cpu in 7480 hppa*64*|ia64*) 7481 # +Z the default 7482 ;; 7483 *) 7484 lt_prog_compiler_pic='-fPIC' 7485 ;; 7486 esac 7487 ;; 7488 7489 *) 7490 lt_prog_compiler_pic='-fPIC' 7491 ;; 7492 esac 7493 else 7494 # PORTME Check for flag to pass linker flags through the system compiler. 7495 case $host_os in 7496 aix*) 7497 lt_prog_compiler_wl='-Wl,' 7498 if test "$host_cpu" = ia64; then 7499 # AIX 5 now supports IA64 processor 7500 lt_prog_compiler_static='-Bstatic' 7501 else 7502 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7503 fi 7504 ;; 7505 darwin*) 7506 # PIC is the default on this platform 7507 # Common symbols not allowed in MH_DYLIB files 7508 case $cc_basename in 7509 xlc*) 7510 lt_prog_compiler_pic='-qnocommon' 7511 lt_prog_compiler_wl='-Wl,' 7512 ;; 7513 esac 7514 ;; 7515 7516 mingw* | pw32* | os2*) 7517 # This hack is so that the source file can tell whether it is being 7518 # built for inclusion in a dll (and should export symbols for example). 7519 lt_prog_compiler_pic='-DDLL_EXPORT' 7520 ;; 7521 7522 hpux9* | hpux10* | hpux11*) 7523 lt_prog_compiler_wl='-Wl,' 7524 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7525 # not for PA HP-UX. 7526 case $host_cpu in 7527 hppa*64*|ia64*) 7528 # +Z the default 7529 ;; 7530 *) 7531 lt_prog_compiler_pic='+Z' 7532 ;; 7533 esac 7534 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7535 lt_prog_compiler_static='${wl}-a ${wl}archive' 7536 ;; 7537 7538 irix5* | irix6* | nonstopux*) 7539 lt_prog_compiler_wl='-Wl,' 7540 # PIC (with -KPIC) is the default. 7541 lt_prog_compiler_static='-non_shared' 7542 ;; 7543 7544 newsos6) 7545 lt_prog_compiler_pic='-KPIC' 7546 lt_prog_compiler_static='-Bstatic' 7547 ;; 7548 7549 linux*) 7550 case $cc_basename in 7551 icc* | ecc*) 7552 lt_prog_compiler_wl='-Wl,' 7553 lt_prog_compiler_pic='-KPIC' 7554 lt_prog_compiler_static='-static' 7555 ;; 7556 pgcc* | pgf77* | pgf90* | pgf95*) 7557 # Portland Group compilers (*not* the Pentium gcc compiler, 7558 # which looks to be a dead project) 7559 lt_prog_compiler_wl='-Wl,' 7560 lt_prog_compiler_pic='-fpic' 7561 lt_prog_compiler_static='-Bstatic' 7562 ;; 7563 ccc*) 7564 lt_prog_compiler_wl='-Wl,' 7565 # All Alpha code is PIC. 7566 lt_prog_compiler_static='-non_shared' 7567 ;; 7568 esac 7569 ;; 7570 7571 osf3* | osf4* | osf5*) 7572 lt_prog_compiler_wl='-Wl,' 7573 # All OSF/1 code is PIC. 7574 lt_prog_compiler_static='-non_shared' 7575 ;; 7576 7577 solaris*) 7578 lt_prog_compiler_pic='-KPIC' 7579 lt_prog_compiler_static='-Bstatic' 7580 case $cc_basename in 7581 f77* | f90* | f95*) 7582 lt_prog_compiler_wl='-Qoption ld ';; 7583 *) 7584 lt_prog_compiler_wl='-Wl,';; 7585 esac 7586 ;; 7587 7588 sunos4*) 7589 lt_prog_compiler_wl='-Qoption ld ' 7590 lt_prog_compiler_pic='-PIC' 7591 lt_prog_compiler_static='-Bstatic' 7592 ;; 7593 7594 sysv4 | sysv4.2uw2* | sysv4.3*) 7595 lt_prog_compiler_wl='-Wl,' 7596 lt_prog_compiler_pic='-KPIC' 7597 lt_prog_compiler_static='-Bstatic' 7598 ;; 7599 7600 sysv4*MP*) 7601 if test -d /usr/nec ;then 7602 lt_prog_compiler_pic='-Kconform_pic' 7603 lt_prog_compiler_static='-Bstatic' 7604 fi 7605 ;; 7606 7607 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7608 lt_prog_compiler_wl='-Wl,' 7609 lt_prog_compiler_pic='-KPIC' 7610 lt_prog_compiler_static='-Bstatic' 7611 ;; 7612 7613 unicos*) 7614 lt_prog_compiler_wl='-Wl,' 7615 lt_prog_compiler_can_build_shared=no 7616 ;; 7617 7618 uts4*) 7619 lt_prog_compiler_pic='-pic' 7620 lt_prog_compiler_static='-Bstatic' 7621 ;; 7622 7623 *) 7624 lt_prog_compiler_can_build_shared=no 7625 ;; 7626 esac 7627 fi 7628 7629{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7630echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7631 7632# 7633# Check to make sure the PIC flag actually works. 7634# 7635if test -n "$lt_prog_compiler_pic"; then 7636 7637{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7638echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7639if test "${lt_prog_compiler_pic_works+set}" = set; then 7640 echo $ECHO_N "(cached) $ECHO_C" >&6 7641else 7642 lt_prog_compiler_pic_works=no 7643 ac_outfile=conftest.$ac_objext 7644 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7645 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7646 # Insert the option either (1) after the last *FLAGS variable, or 7647 # (2) before a word containing "conftest.", or (3) at the end. 7648 # Note that $ac_compile itself does not contain backslashes and begins 7649 # with a dollar sign (not a hyphen), so the echo should work correctly. 7650 # The option is referenced via a variable to avoid confusing sed. 7651 lt_compile=`echo "$ac_compile" | $SED \ 7652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7654 -e 's:$: $lt_compiler_flag:'` 7655 (eval echo "\"\$as_me:7655: $lt_compile\"" >&5) 7656 (eval "$lt_compile" 2>conftest.err) 7657 ac_status=$? 7658 cat conftest.err >&5 7659 echo "$as_me:7659: \$? = $ac_status" >&5 7660 if (exit $ac_status) && test -s "$ac_outfile"; then 7661 # The compiler can only warn and ignore the option if not recognized 7662 # So say no if there are warnings other than the usual output. 7663 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7665 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7666 lt_prog_compiler_pic_works=yes 7667 fi 7668 fi 7669 $rm conftest* 7670 7671fi 7672{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7673echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7674 7675if test x"$lt_prog_compiler_pic_works" = xyes; then 7676 case $lt_prog_compiler_pic in 7677 "" | " "*) ;; 7678 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7679 esac 7680else 7681 lt_prog_compiler_pic= 7682 lt_prog_compiler_can_build_shared=no 7683fi 7684 7685fi 7686case $host_os in 7687 # For platforms which do not support PIC, -DPIC is meaningless: 7688 *djgpp*) 7689 lt_prog_compiler_pic= 7690 ;; 7691 *) 7692 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7693 ;; 7694esac 7695 7696# 7697# Check to make sure the static flag actually works. 7698# 7699wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7700{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7701echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7702if test "${lt_prog_compiler_static_works+set}" = set; then 7703 echo $ECHO_N "(cached) $ECHO_C" >&6 7704else 7705 lt_prog_compiler_static_works=no 7706 save_LDFLAGS="$LDFLAGS" 7707 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7708 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7710 # The linker can only warn and ignore the option if not recognized 7711 # So say no if there are warnings 7712 if test -s conftest.err; then 7713 # Append any errors to the config.log. 7714 cat conftest.err 1>&5 7715 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7717 if diff conftest.exp conftest.er2 >/dev/null; then 7718 lt_prog_compiler_static_works=yes 7719 fi 7720 else 7721 lt_prog_compiler_static_works=yes 7722 fi 7723 fi 7724 $rm conftest* 7725 LDFLAGS="$save_LDFLAGS" 7726 7727fi 7728{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7729echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7730 7731if test x"$lt_prog_compiler_static_works" = xyes; then 7732 : 7733else 7734 lt_prog_compiler_static= 7735fi 7736 7737 7738{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7739echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7740if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7741 echo $ECHO_N "(cached) $ECHO_C" >&6 7742else 7743 lt_cv_prog_compiler_c_o=no 7744 $rm -r conftest 2>/dev/null 7745 mkdir conftest 7746 cd conftest 7747 mkdir out 7748 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7749 7750 lt_compiler_flag="-o out/conftest2.$ac_objext" 7751 # Insert the option either (1) after the last *FLAGS variable, or 7752 # (2) before a word containing "conftest.", or (3) at the end. 7753 # Note that $ac_compile itself does not contain backslashes and begins 7754 # with a dollar sign (not a hyphen), so the echo should work correctly. 7755 lt_compile=`echo "$ac_compile" | $SED \ 7756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7758 -e 's:$: $lt_compiler_flag:'` 7759 (eval echo "\"\$as_me:7759: $lt_compile\"" >&5) 7760 (eval "$lt_compile" 2>out/conftest.err) 7761 ac_status=$? 7762 cat out/conftest.err >&5 7763 echo "$as_me:7763: \$? = $ac_status" >&5 7764 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7765 then 7766 # The compiler can only warn and ignore the option if not recognized 7767 # So say no if there are warnings 7768 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7771 lt_cv_prog_compiler_c_o=yes 7772 fi 7773 fi 7774 chmod u+w . 2>&5 7775 $rm conftest* 7776 # SGI C++ compiler will create directory out/ii_files/ for 7777 # template instantiation 7778 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7779 $rm out/* && rmdir out 7780 cd .. 7781 rmdir conftest 7782 $rm conftest* 7783 7784fi 7785{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7786echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7787 7788 7789hard_links="nottested" 7790if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7791 # do not overwrite the value of need_locks provided by the user 7792 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7793echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7794 hard_links=yes 7795 $rm conftest* 7796 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7797 touch conftest.a 7798 ln conftest.a conftest.b 2>&5 || hard_links=no 7799 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7800 { echo "$as_me:$LINENO: result: $hard_links" >&5 7801echo "${ECHO_T}$hard_links" >&6; } 7802 if test "$hard_links" = no; then 7803 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7804echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7805 need_locks=warn 7806 fi 7807else 7808 need_locks=no 7809fi 7810 7811{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7812echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7813 7814 runpath_var= 7815 allow_undefined_flag= 7816 enable_shared_with_static_runtimes=no 7817 archive_cmds= 7818 archive_expsym_cmds= 7819 old_archive_From_new_cmds= 7820 old_archive_from_expsyms_cmds= 7821 export_dynamic_flag_spec= 7822 whole_archive_flag_spec= 7823 thread_safe_flag_spec= 7824 hardcode_libdir_flag_spec= 7825 hardcode_libdir_flag_spec_ld= 7826 hardcode_libdir_separator= 7827 hardcode_direct=no 7828 hardcode_minus_L=no 7829 hardcode_shlibpath_var=unsupported 7830 link_all_deplibs=unknown 7831 hardcode_automatic=no 7832 module_cmds= 7833 module_expsym_cmds= 7834 always_export_symbols=no 7835 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7836 # include_expsyms should be a list of space-separated symbols to be *always* 7837 # included in the symbol list 7838 include_expsyms= 7839 # exclude_expsyms can be an extended regexp of symbols to exclude 7840 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7841 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7842 # as well as any symbol that contains `d'. 7843 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7844 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7845 # platforms (ab)use it in PIC code, but their linkers get confused if 7846 # the symbol is explicitly referenced. Since portable code cannot 7847 # rely on this symbol name, it's probably fine to never include it in 7848 # preloaded symbol tables. 7849 extract_expsyms_cmds= 7850 # Just being paranoid about ensuring that cc_basename is set. 7851 for cc_temp in $compiler""; do 7852 case $cc_temp in 7853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7855 \-*) ;; 7856 *) break;; 7857 esac 7858done 7859cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7860 7861 case $host_os in 7862 cygwin* | mingw* | pw32*) 7863 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7864 # When not using gcc, we currently assume that we are using 7865 # Microsoft Visual C++. 7866 if test "$GCC" != yes; then 7867 with_gnu_ld=no 7868 fi 7869 ;; 7870 interix*) 7871 # we just hope/assume this is gcc and not c89 (= MSVC++) 7872 with_gnu_ld=yes 7873 ;; 7874 openbsd*) 7875 with_gnu_ld=no 7876 ;; 7877 esac 7878 7879 ld_shlibs=yes 7880 if test "$with_gnu_ld" = yes; then 7881 # If archive_cmds runs LD, not CC, wlarc should be empty 7882 wlarc='${wl}' 7883 7884 # Set some defaults for GNU ld with shared library support. These 7885 # are reset later if shared libraries are not supported. Putting them 7886 # here allows them to be overridden if necessary. 7887 runpath_var=LD_RUN_PATH 7888 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7889 export_dynamic_flag_spec='${wl}--export-dynamic' 7890 # ancient GNU ld didn't support --whole-archive et. al. 7891 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7892 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7893 else 7894 whole_archive_flag_spec= 7895 fi 7896 supports_anon_versioning=no 7897 case `$LD -v 2>/dev/null` in 7898 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7899 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7900 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7901 *\ 2.11.*) ;; # other 2.11 versions 7902 *) supports_anon_versioning=yes ;; 7903 esac 7904 7905 # See if GNU ld supports shared libraries. 7906 case $host_os in 7907 aix3* | aix4* | aix5*) 7908 # On AIX/PPC, the GNU linker is very broken 7909 if test "$host_cpu" != ia64; then 7910 ld_shlibs=no 7911 cat <<EOF 1>&2 7912 7913*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7914*** to be unable to reliably create shared libraries on AIX. 7915*** Therefore, libtool is disabling shared libraries support. If you 7916*** really care for shared libraries, you may want to modify your PATH 7917*** so that a non-GNU linker is found, and then restart. 7918 7919EOF 7920 fi 7921 ;; 7922 7923 amigaos*) 7924 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)' 7925 hardcode_libdir_flag_spec='-L$libdir' 7926 hardcode_minus_L=yes 7927 7928 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7929 # that the semantics of dynamic libraries on AmigaOS, at least up 7930 # to version 4, is to share data among multiple programs linked 7931 # with the same dynamic library. Since this doesn't match the 7932 # behavior of shared libraries on other platforms, we can't use 7933 # them. 7934 ld_shlibs=no 7935 ;; 7936 7937 beos*) 7938 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7939 allow_undefined_flag=unsupported 7940 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7941 # support --undefined. This deserves some investigation. FIXME 7942 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7943 else 7944 ld_shlibs=no 7945 fi 7946 ;; 7947 7948 cygwin* | mingw* | pw32*) 7949 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7950 # as there is no search path for DLLs. 7951 hardcode_libdir_flag_spec='-L$libdir' 7952 allow_undefined_flag=unsupported 7953 always_export_symbols=no 7954 enable_shared_with_static_runtimes=yes 7955 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7956 7957 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7959 # If the export-symbols file already is a .def file (1st line 7960 # is EXPORTS), use it as is; otherwise, prepend... 7961 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7962 cp $export_symbols $output_objdir/$soname.def; 7963 else 7964 echo EXPORTS > $output_objdir/$soname.def; 7965 cat $export_symbols >> $output_objdir/$soname.def; 7966 fi~ 7967 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7968 else 7969 ld_shlibs=no 7970 fi 7971 ;; 7972 7973 interix3*) 7974 hardcode_direct=no 7975 hardcode_shlibpath_var=no 7976 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7977 export_dynamic_flag_spec='${wl}-E' 7978 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7979 # Instead, shared libraries are loaded at an image base (0x10000000 by 7980 # default) and relocated if they conflict, which is a slow very memory 7981 # consuming and fragmenting process. To avoid this, we pick a random, 7982 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7983 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7984 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7985 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' 7986 ;; 7987 7988 linux*) 7989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7990 tmp_addflag= 7991 case $cc_basename,$host_cpu in 7992 pgcc*) # Portland Group C compiler 7993 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' 7994 tmp_addflag=' $pic_flag' 7995 ;; 7996 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7997 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' 7998 tmp_addflag=' $pic_flag -Mnomain' ;; 7999 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8000 tmp_addflag=' -i_dynamic' ;; 8001 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8002 tmp_addflag=' -i_dynamic -nofor_main' ;; 8003 ifc* | ifort*) # Intel Fortran compiler 8004 tmp_addflag=' -nofor_main' ;; 8005 esac 8006 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8007 8008 if test $supports_anon_versioning = yes; then 8009 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8010 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8011 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8012 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8013 fi 8014 else 8015 ld_shlibs=no 8016 fi 8017 ;; 8018 8019 netbsd*) 8020 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8021 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8022 wlarc= 8023 else 8024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8026 fi 8027 ;; 8028 8029 solaris*) 8030 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8031 ld_shlibs=no 8032 cat <<EOF 1>&2 8033 8034*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8035*** create shared libraries on Solaris systems. Therefore, libtool 8036*** is disabling shared libraries support. We urge you to upgrade GNU 8037*** binutils to release 2.9.1 or newer. Another option is to modify 8038*** your PATH or compiler configuration so that the native linker is 8039*** used, and then restart. 8040 8041EOF 8042 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8045 else 8046 ld_shlibs=no 8047 fi 8048 ;; 8049 8050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8051 case `$LD -v 2>&1` in 8052 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8053 ld_shlibs=no 8054 cat <<_LT_EOF 1>&2 8055 8056*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8057*** reliably create shared libraries on SCO systems. Therefore, libtool 8058*** is disabling shared libraries support. We urge you to upgrade GNU 8059*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8060*** your PATH or compiler configuration so that the native linker is 8061*** used, and then restart. 8062 8063_LT_EOF 8064 ;; 8065 *) 8066 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8067 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8069 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8070 else 8071 ld_shlibs=no 8072 fi 8073 ;; 8074 esac 8075 ;; 8076 8077 sunos4*) 8078 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8079 wlarc= 8080 hardcode_direct=yes 8081 hardcode_shlibpath_var=no 8082 ;; 8083 8084 *) 8085 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8088 else 8089 ld_shlibs=no 8090 fi 8091 ;; 8092 esac 8093 8094 if test "$ld_shlibs" = no; then 8095 runpath_var= 8096 hardcode_libdir_flag_spec= 8097 export_dynamic_flag_spec= 8098 whole_archive_flag_spec= 8099 fi 8100 else 8101 # PORTME fill in a description of your system's linker (not GNU ld) 8102 case $host_os in 8103 aix3*) 8104 allow_undefined_flag=unsupported 8105 always_export_symbols=yes 8106 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' 8107 # Note: this linker hardcodes the directories in LIBPATH if there 8108 # are no directories specified by -L. 8109 hardcode_minus_L=yes 8110 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8111 # Neither direct hardcoding nor static linking is supported with a 8112 # broken collect2. 8113 hardcode_direct=unsupported 8114 fi 8115 ;; 8116 8117 aix4* | aix5*) 8118 if test "$host_cpu" = ia64; then 8119 # On IA64, the linker does run time linking by default, so we don't 8120 # have to do anything special. 8121 aix_use_runtimelinking=no 8122 exp_sym_flag='-Bexport' 8123 no_entry_flag="" 8124 else 8125 # If we're using GNU nm, then we don't want the "-C" option. 8126 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8127 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8128 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' 8129 else 8130 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' 8131 fi 8132 aix_use_runtimelinking=no 8133 8134 # Test if we are trying to use run time linking or normal 8135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8136 # need to do runtime linking. 8137 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8138 for ld_flag in $LDFLAGS; do 8139 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8140 aix_use_runtimelinking=yes 8141 break 8142 fi 8143 done 8144 ;; 8145 esac 8146 8147 exp_sym_flag='-bexport' 8148 no_entry_flag='-bnoentry' 8149 fi 8150 8151 # When large executables or shared objects are built, AIX ld can 8152 # have problems creating the table of contents. If linking a library 8153 # or program results in "error TOC overflow" add -mminimal-toc to 8154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8156 8157 archive_cmds='' 8158 hardcode_direct=yes 8159 hardcode_libdir_separator=':' 8160 link_all_deplibs=yes 8161 8162 if test "$GCC" = yes; then 8163 case $host_os in aix4.[012]|aix4.[012].*) 8164 # We only want to do this on AIX 4.2 and lower, the check 8165 # below for broken collect2 doesn't work under 4.3+ 8166 collect2name=`${CC} -print-prog-name=collect2` 8167 if test -f "$collect2name" && \ 8168 strings "$collect2name" | grep resolve_lib_name >/dev/null 8169 then 8170 # We have reworked collect2 8171 hardcode_direct=yes 8172 else 8173 # We have old collect2 8174 hardcode_direct=unsupported 8175 # It fails to find uninstalled libraries when the uninstalled 8176 # path is not listed in the libpath. Setting hardcode_minus_L 8177 # to unsupported forces relinking 8178 hardcode_minus_L=yes 8179 hardcode_libdir_flag_spec='-L$libdir' 8180 hardcode_libdir_separator= 8181 fi 8182 ;; 8183 esac 8184 shared_flag='-shared' 8185 if test "$aix_use_runtimelinking" = yes; then 8186 shared_flag="$shared_flag "'${wl}-G' 8187 fi 8188 else 8189 # not using gcc 8190 if test "$host_cpu" = ia64; then 8191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8192 # chokes on -Wl,-G. The following line is correct: 8193 shared_flag='-G' 8194 else 8195 if test "$aix_use_runtimelinking" = yes; then 8196 shared_flag='${wl}-G' 8197 else 8198 shared_flag='${wl}-bM:SRE' 8199 fi 8200 fi 8201 fi 8202 8203 # It seems that -bexpall does not export symbols beginning with 8204 # underscore (_), so it is better to generate a list of symbols to export. 8205 always_export_symbols=yes 8206 if test "$aix_use_runtimelinking" = yes; then 8207 # Warning - without using the other runtime loading flags (-brtl), 8208 # -berok will link without error, but may produce a broken library. 8209 allow_undefined_flag='-berok' 8210 # Determine the default libpath from the value encoded in an empty executable. 8211 cat >conftest.$ac_ext <<_ACEOF 8212/* confdefs.h. */ 8213_ACEOF 8214cat confdefs.h >>conftest.$ac_ext 8215cat >>conftest.$ac_ext <<_ACEOF 8216/* end confdefs.h. */ 8217 8218int 8219main () 8220{ 8221 8222 ; 8223 return 0; 8224} 8225_ACEOF 8226rm -f conftest.$ac_objext conftest$ac_exeext 8227if { (ac_try="$ac_link" 8228case "(($ac_try" in 8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8230 *) ac_try_echo=$ac_try;; 8231esac 8232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8233 (eval "$ac_link") 2>conftest.er1 8234 ac_status=$? 8235 grep -v '^ *+' conftest.er1 >conftest.err 8236 rm -f conftest.er1 8237 cat conftest.err >&5 8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8239 (exit $ac_status); } && 8240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8241 { (case "(($ac_try" in 8242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8243 *) ac_try_echo=$ac_try;; 8244esac 8245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8246 (eval "$ac_try") 2>&5 8247 ac_status=$? 8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8249 (exit $ac_status); }; } && 8250 { ac_try='test -s conftest$ac_exeext' 8251 { (case "(($ac_try" in 8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8253 *) ac_try_echo=$ac_try;; 8254esac 8255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8256 (eval "$ac_try") 2>&5 8257 ac_status=$? 8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8259 (exit $ac_status); }; }; then 8260 8261aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8262}'` 8263# Check for a 64-bit object if we didn't find anything. 8264if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8265}'`; fi 8266else 8267 echo "$as_me: failed program was:" >&5 8268sed 's/^/| /' conftest.$ac_ext >&5 8269 8270 8271fi 8272 8273rm -f core conftest.err conftest.$ac_objext \ 8274 conftest$ac_exeext conftest.$ac_ext 8275if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8276 8277 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8278 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" 8279 else 8280 if test "$host_cpu" = ia64; then 8281 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8282 allow_undefined_flag="-z nodefs" 8283 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" 8284 else 8285 # Determine the default libpath from the value encoded in an empty executable. 8286 cat >conftest.$ac_ext <<_ACEOF 8287/* confdefs.h. */ 8288_ACEOF 8289cat confdefs.h >>conftest.$ac_ext 8290cat >>conftest.$ac_ext <<_ACEOF 8291/* end confdefs.h. */ 8292 8293int 8294main () 8295{ 8296 8297 ; 8298 return 0; 8299} 8300_ACEOF 8301rm -f conftest.$ac_objext conftest$ac_exeext 8302if { (ac_try="$ac_link" 8303case "(($ac_try" in 8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8305 *) ac_try_echo=$ac_try;; 8306esac 8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8308 (eval "$ac_link") 2>conftest.er1 8309 ac_status=$? 8310 grep -v '^ *+' conftest.er1 >conftest.err 8311 rm -f conftest.er1 8312 cat conftest.err >&5 8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8314 (exit $ac_status); } && 8315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8316 { (case "(($ac_try" in 8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8318 *) ac_try_echo=$ac_try;; 8319esac 8320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8321 (eval "$ac_try") 2>&5 8322 ac_status=$? 8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8324 (exit $ac_status); }; } && 8325 { ac_try='test -s conftest$ac_exeext' 8326 { (case "(($ac_try" in 8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8328 *) ac_try_echo=$ac_try;; 8329esac 8330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8331 (eval "$ac_try") 2>&5 8332 ac_status=$? 8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8334 (exit $ac_status); }; }; then 8335 8336aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8337}'` 8338# Check for a 64-bit object if we didn't find anything. 8339if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8340}'`; fi 8341else 8342 echo "$as_me: failed program was:" >&5 8343sed 's/^/| /' conftest.$ac_ext >&5 8344 8345 8346fi 8347 8348rm -f core conftest.err conftest.$ac_objext \ 8349 conftest$ac_exeext conftest.$ac_ext 8350if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8351 8352 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8353 # Warning - without using the other run time loading flags, 8354 # -berok will link without error, but may produce a broken library. 8355 no_undefined_flag=' ${wl}-bernotok' 8356 allow_undefined_flag=' ${wl}-berok' 8357 # Exported symbols can be pulled into shared objects from archives 8358 whole_archive_flag_spec='$convenience' 8359 archive_cmds_need_lc=yes 8360 # This is similar to how AIX traditionally builds its shared libraries. 8361 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' 8362 fi 8363 fi 8364 ;; 8365 8366 amigaos*) 8367 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)' 8368 hardcode_libdir_flag_spec='-L$libdir' 8369 hardcode_minus_L=yes 8370 # see comment about different semantics on the GNU ld section 8371 ld_shlibs=no 8372 ;; 8373 8374 bsdi[45]*) 8375 export_dynamic_flag_spec=-rdynamic 8376 ;; 8377 8378 cygwin* | mingw* | pw32*) 8379 # When not using gcc, we currently assume that we are using 8380 # Microsoft Visual C++. 8381 # hardcode_libdir_flag_spec is actually meaningless, as there is 8382 # no search path for DLLs. 8383 hardcode_libdir_flag_spec=' ' 8384 allow_undefined_flag=unsupported 8385 # Tell ltmain to make .lib files, not .a files. 8386 libext=lib 8387 # Tell ltmain to make .dll files, not .so files. 8388 shrext_cmds=".dll" 8389 # FIXME: Setting linknames here is a bad hack. 8390 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8391 # The linker will automatically build a .lib file if we build a DLL. 8392 old_archive_From_new_cmds='true' 8393 # FIXME: Should let the user specify the lib program. 8394 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8395 fix_srcfile_path='`cygpath -w "$srcfile"`' 8396 enable_shared_with_static_runtimes=yes 8397 ;; 8398 8399 darwin* | rhapsody*) 8400 case $host_os in 8401 rhapsody* | darwin1.[012]) 8402 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8403 ;; 8404 *) # Darwin 1.3 on 8405 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8406 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8407 else 8408 case ${MACOSX_DEPLOYMENT_TARGET} in 8409 10.[012]) 8410 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8411 ;; 8412 10.*) 8413 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8414 ;; 8415 esac 8416 fi 8417 ;; 8418 esac 8419 archive_cmds_need_lc=no 8420 hardcode_direct=no 8421 hardcode_automatic=yes 8422 hardcode_shlibpath_var=unsupported 8423 whole_archive_flag_spec='' 8424 link_all_deplibs=yes 8425 if test "$GCC" = yes ; then 8426 output_verbose_link_cmd='echo' 8427 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8428 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8429 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8430 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}' 8431 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}' 8432 else 8433 case $cc_basename in 8434 xlc*) 8435 output_verbose_link_cmd='echo' 8436 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8437 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8438 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8439 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8440 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}' 8441 ;; 8442 *) 8443 ld_shlibs=no 8444 ;; 8445 esac 8446 fi 8447 ;; 8448 8449 dgux*) 8450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8451 hardcode_libdir_flag_spec='-L$libdir' 8452 hardcode_shlibpath_var=no 8453 ;; 8454 8455 freebsd1*) 8456 ld_shlibs=no 8457 ;; 8458 8459 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8460 # support. Future versions do this automatically, but an explicit c++rt0.o 8461 # does not break anything, and helps significantly (at the cost of a little 8462 # extra space). 8463 freebsd2.2*) 8464 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8465 hardcode_libdir_flag_spec='-R$libdir' 8466 hardcode_direct=yes 8467 hardcode_shlibpath_var=no 8468 ;; 8469 8470 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8471 freebsd2*) 8472 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8473 hardcode_direct=yes 8474 hardcode_minus_L=yes 8475 hardcode_shlibpath_var=no 8476 ;; 8477 8478 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8479 freebsd* | kfreebsd*-gnu | dragonfly*) 8480 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8481 hardcode_libdir_flag_spec='-R$libdir' 8482 hardcode_direct=yes 8483 hardcode_shlibpath_var=no 8484 ;; 8485 8486 hpux9*) 8487 if test "$GCC" = yes; then 8488 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' 8489 else 8490 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' 8491 fi 8492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8493 hardcode_libdir_separator=: 8494 hardcode_direct=yes 8495 8496 # hardcode_minus_L: Not really in the search PATH, 8497 # but as the default location of the library. 8498 hardcode_minus_L=yes 8499 export_dynamic_flag_spec='${wl}-E' 8500 ;; 8501 8502 hpux10*) 8503 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8504 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8505 else 8506 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8507 fi 8508 if test "$with_gnu_ld" = no; then 8509 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8510 hardcode_libdir_separator=: 8511 8512 hardcode_direct=yes 8513 export_dynamic_flag_spec='${wl}-E' 8514 8515 # hardcode_minus_L: Not really in the search PATH, 8516 # but as the default location of the library. 8517 hardcode_minus_L=yes 8518 fi 8519 ;; 8520 8521 hpux11*) 8522 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8523 case $host_cpu in 8524 hppa*64*) 8525 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8526 ;; 8527 ia64*) 8528 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8529 ;; 8530 *) 8531 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8532 ;; 8533 esac 8534 else 8535 case $host_cpu in 8536 hppa*64*) 8537 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8538 ;; 8539 ia64*) 8540 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8541 ;; 8542 *) 8543 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8544 ;; 8545 esac 8546 fi 8547 if test "$with_gnu_ld" = no; then 8548 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8549 hardcode_libdir_separator=: 8550 8551 case $host_cpu in 8552 hppa*64*|ia64*) 8553 hardcode_libdir_flag_spec_ld='+b $libdir' 8554 hardcode_direct=no 8555 hardcode_shlibpath_var=no 8556 ;; 8557 *) 8558 hardcode_direct=yes 8559 export_dynamic_flag_spec='${wl}-E' 8560 8561 # hardcode_minus_L: Not really in the search PATH, 8562 # but as the default location of the library. 8563 hardcode_minus_L=yes 8564 ;; 8565 esac 8566 fi 8567 ;; 8568 8569 irix5* | irix6* | nonstopux*) 8570 if test "$GCC" = yes; then 8571 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' 8572 else 8573 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' 8574 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8575 fi 8576 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8577 hardcode_libdir_separator=: 8578 link_all_deplibs=yes 8579 ;; 8580 8581 netbsd*) 8582 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8584 else 8585 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8586 fi 8587 hardcode_libdir_flag_spec='-R$libdir' 8588 hardcode_direct=yes 8589 hardcode_shlibpath_var=no 8590 ;; 8591 8592 newsos6) 8593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8594 hardcode_direct=yes 8595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8596 hardcode_libdir_separator=: 8597 hardcode_shlibpath_var=no 8598 ;; 8599 8600 openbsd*) 8601 hardcode_direct=yes 8602 hardcode_shlibpath_var=no 8603 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8604 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8605 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8606 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8607 export_dynamic_flag_spec='${wl}-E' 8608 else 8609 case $host_os in 8610 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8611 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8612 hardcode_libdir_flag_spec='-R$libdir' 8613 ;; 8614 *) 8615 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8616 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8617 ;; 8618 esac 8619 fi 8620 ;; 8621 8622 os2*) 8623 hardcode_libdir_flag_spec='-L$libdir' 8624 hardcode_minus_L=yes 8625 allow_undefined_flag=unsupported 8626 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' 8627 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8628 ;; 8629 8630 osf3*) 8631 if test "$GCC" = yes; then 8632 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8633 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' 8634 else 8635 allow_undefined_flag=' -expect_unresolved \*' 8636 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' 8637 fi 8638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8639 hardcode_libdir_separator=: 8640 ;; 8641 8642 osf4* | osf5*) # as osf3* with the addition of -msym flag 8643 if test "$GCC" = yes; then 8644 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8645 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' 8646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8647 else 8648 allow_undefined_flag=' -expect_unresolved \*' 8649 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' 8650 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8651 $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' 8652 8653 # Both c and cxx compiler support -rpath directly 8654 hardcode_libdir_flag_spec='-rpath $libdir' 8655 fi 8656 hardcode_libdir_separator=: 8657 ;; 8658 8659 solaris*) 8660 no_undefined_flag=' -z text' 8661 if test "$GCC" = yes; then 8662 wlarc='${wl}' 8663 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8664 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8665 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8666 else 8667 wlarc='' 8668 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8669 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8670 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8671 fi 8672 hardcode_libdir_flag_spec='-R$libdir' 8673 hardcode_shlibpath_var=no 8674 case $host_os in 8675 solaris2.[0-5] | solaris2.[0-5].*) ;; 8676 *) 8677 # The compiler driver will combine linker options so we 8678 # cannot just pass the convience library names through 8679 # without $wl, iff we do not link with $LD. 8680 # Luckily, gcc supports the same syntax we need for Sun Studio. 8681 # Supported since Solaris 2.6 (maybe 2.5.1?) 8682 case $wlarc in 8683 '') 8684 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8685 *) 8686 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 8687 esac ;; 8688 esac 8689 link_all_deplibs=yes 8690 ;; 8691 8692 sunos4*) 8693 if test "x$host_vendor" = xsequent; then 8694 # Use $CC to link under sequent, because it throws in some extra .o 8695 # files that make .init and .fini sections work. 8696 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8697 else 8698 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8699 fi 8700 hardcode_libdir_flag_spec='-L$libdir' 8701 hardcode_direct=yes 8702 hardcode_minus_L=yes 8703 hardcode_shlibpath_var=no 8704 ;; 8705 8706 sysv4) 8707 case $host_vendor in 8708 sni) 8709 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8710 hardcode_direct=yes # is this really true??? 8711 ;; 8712 siemens) 8713 ## LD is ld it makes a PLAMLIB 8714 ## CC just makes a GrossModule. 8715 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8716 reload_cmds='$CC -r -o $output$reload_objs' 8717 hardcode_direct=no 8718 ;; 8719 motorola) 8720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8721 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8722 ;; 8723 esac 8724 runpath_var='LD_RUN_PATH' 8725 hardcode_shlibpath_var=no 8726 ;; 8727 8728 sysv4.3*) 8729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8730 hardcode_shlibpath_var=no 8731 export_dynamic_flag_spec='-Bexport' 8732 ;; 8733 8734 sysv4*MP*) 8735 if test -d /usr/nec; then 8736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8737 hardcode_shlibpath_var=no 8738 runpath_var=LD_RUN_PATH 8739 hardcode_runpath_var=yes 8740 ld_shlibs=yes 8741 fi 8742 ;; 8743 8744 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8745 no_undefined_flag='${wl}-z,text' 8746 archive_cmds_need_lc=no 8747 hardcode_shlibpath_var=no 8748 runpath_var='LD_RUN_PATH' 8749 8750 if test "$GCC" = yes; then 8751 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8752 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8753 else 8754 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8755 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8756 fi 8757 ;; 8758 8759 sysv5* | sco3.2v5* | sco5v6*) 8760 # Note: We can NOT use -z defs as we might desire, because we do not 8761 # link with -lc, and that would cause any symbols used from libc to 8762 # always be unresolved, which means just about no library would 8763 # ever link correctly. If we're not using GNU ld we use -z text 8764 # though, which does catch some bad symbols but isn't as heavy-handed 8765 # as -z defs. 8766 no_undefined_flag='${wl}-z,text' 8767 allow_undefined_flag='${wl}-z,nodefs' 8768 archive_cmds_need_lc=no 8769 hardcode_shlibpath_var=no 8770 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8771 hardcode_libdir_separator=':' 8772 link_all_deplibs=yes 8773 export_dynamic_flag_spec='${wl}-Bexport' 8774 runpath_var='LD_RUN_PATH' 8775 8776 if test "$GCC" = yes; then 8777 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8778 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8779 else 8780 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8781 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8782 fi 8783 ;; 8784 8785 uts4*) 8786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8787 hardcode_libdir_flag_spec='-L$libdir' 8788 hardcode_shlibpath_var=no 8789 ;; 8790 8791 *) 8792 ld_shlibs=no 8793 ;; 8794 esac 8795 fi 8796 8797{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8798echo "${ECHO_T}$ld_shlibs" >&6; } 8799test "$ld_shlibs" = no && can_build_shared=no 8800 8801# 8802# Do we need to explicitly link libc? 8803# 8804case "x$archive_cmds_need_lc" in 8805x|xyes) 8806 # Assume -lc should be added 8807 archive_cmds_need_lc=yes 8808 8809 if test "$enable_shared" = yes && test "$GCC" = yes; then 8810 case $archive_cmds in 8811 *'~'*) 8812 # FIXME: we may have to deal with multi-command sequences. 8813 ;; 8814 '$CC '*) 8815 # Test whether the compiler implicitly links with -lc since on some 8816 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8817 # to ld, don't add -lc before -lgcc. 8818 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8819echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8820 $rm conftest* 8821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8822 8823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8824 (eval $ac_compile) 2>&5 8825 ac_status=$? 8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8827 (exit $ac_status); } 2>conftest.err; then 8828 soname=conftest 8829 lib=conftest 8830 libobjs=conftest.$ac_objext 8831 deplibs= 8832 wl=$lt_prog_compiler_wl 8833 pic_flag=$lt_prog_compiler_pic 8834 compiler_flags=-v 8835 linker_flags=-v 8836 verstring= 8837 output_objdir=. 8838 libname=conftest 8839 lt_save_allow_undefined_flag=$allow_undefined_flag 8840 allow_undefined_flag= 8841 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8842 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8843 ac_status=$? 8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8845 (exit $ac_status); } 8846 then 8847 archive_cmds_need_lc=no 8848 else 8849 archive_cmds_need_lc=yes 8850 fi 8851 allow_undefined_flag=$lt_save_allow_undefined_flag 8852 else 8853 cat conftest.err 1>&5 8854 fi 8855 $rm conftest* 8856 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8857echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8858 ;; 8859 esac 8860 fi 8861 ;; 8862esac 8863 8864{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8865echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8866library_names_spec= 8867libname_spec='lib$name' 8868soname_spec= 8869shrext_cmds=".so" 8870postinstall_cmds= 8871postuninstall_cmds= 8872finish_cmds= 8873finish_eval= 8874shlibpath_var= 8875shlibpath_overrides_runpath=unknown 8876version_type=none 8877dynamic_linker="$host_os ld.so" 8878sys_lib_dlsearch_path_spec="/lib /usr/lib" 8879if test "$GCC" = yes; then 8880 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8881 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8882 # if the path contains ";" then we assume it to be the separator 8883 # otherwise default to the standard path separator (i.e. ":") - it is 8884 # assumed that no part of a normal pathname contains ";" but that should 8885 # okay in the real world where ";" in dirpaths is itself problematic. 8886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8887 else 8888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8889 fi 8890else 8891 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8892fi 8893need_lib_prefix=unknown 8894hardcode_into_libs=no 8895 8896# when you set need_version to no, make sure it does not cause -set_version 8897# flags to be left without arguments 8898need_version=unknown 8899 8900case $host_os in 8901aix3*) 8902 version_type=linux 8903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8904 shlibpath_var=LIBPATH 8905 8906 # AIX 3 has no versioning support, so we append a major version to the name. 8907 soname_spec='${libname}${release}${shared_ext}$major' 8908 ;; 8909 8910aix4* | aix5*) 8911 version_type=linux 8912 need_lib_prefix=no 8913 need_version=no 8914 hardcode_into_libs=yes 8915 if test "$host_cpu" = ia64; then 8916 # AIX 5 supports IA64 8917 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8918 shlibpath_var=LD_LIBRARY_PATH 8919 else 8920 # With GCC up to 2.95.x, collect2 would create an import file 8921 # for dependence libraries. The import file would start with 8922 # the line `#! .'. This would cause the generated library to 8923 # depend on `.', always an invalid library. This was fixed in 8924 # development snapshots of GCC prior to 3.0. 8925 case $host_os in 8926 aix4 | aix4.[01] | aix4.[01].*) 8927 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8928 echo ' yes ' 8929 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8930 : 8931 else 8932 can_build_shared=no 8933 fi 8934 ;; 8935 esac 8936 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8937 # soname into executable. Probably we can add versioning support to 8938 # collect2, so additional links can be useful in future. 8939 if test "$aix_use_runtimelinking" = yes; then 8940 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8941 # instead of lib<name>.a to let people know that these are not 8942 # typical AIX shared libraries. 8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8944 else 8945 # We preserve .a as extension for shared libraries through AIX4.2 8946 # and later when we are not doing run time linking. 8947 library_names_spec='${libname}${release}.a $libname.a' 8948 soname_spec='${libname}${release}${shared_ext}$major' 8949 fi 8950 shlibpath_var=LIBPATH 8951 fi 8952 ;; 8953 8954amigaos*) 8955 library_names_spec='$libname.ixlibrary $libname.a' 8956 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8957 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' 8958 ;; 8959 8960beos*) 8961 library_names_spec='${libname}${shared_ext}' 8962 dynamic_linker="$host_os ld.so" 8963 shlibpath_var=LIBRARY_PATH 8964 ;; 8965 8966bsdi[45]*) 8967 version_type=linux 8968 need_version=no 8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8970 soname_spec='${libname}${release}${shared_ext}$major' 8971 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8972 shlibpath_var=LD_LIBRARY_PATH 8973 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8974 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8975 # the default ld.so.conf also contains /usr/contrib/lib and 8976 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8977 # libtool to hard-code these into programs 8978 ;; 8979 8980cygwin* | mingw* | pw32*) 8981 version_type=windows 8982 shrext_cmds=".dll" 8983 need_version=no 8984 need_lib_prefix=no 8985 8986 case $GCC,$host_os in 8987 yes,cygwin* | yes,mingw* | yes,pw32*) 8988 library_names_spec='$libname.dll.a' 8989 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8990 postinstall_cmds='base_file=`basename \${file}`~ 8991 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 8992 dldir=$destdir/`dirname \$dlpath`~ 8993 test -d \$dldir || mkdir -p \$dldir~ 8994 $install_prog $dir/$dlname \$dldir/$dlname~ 8995 chmod a+x \$dldir/$dlname' 8996 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8997 dlpath=$dir/\$dldll~ 8998 $rm \$dlpath' 8999 shlibpath_overrides_runpath=yes 9000 9001 case $host_os in 9002 cygwin*) 9003 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9004 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9005 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9006 ;; 9007 mingw*) 9008 # MinGW DLLs use traditional 'lib' prefix 9009 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9010 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9011 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9012 # It is most probably a Windows format PATH printed by 9013 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9014 # path with ; separators, and with drive letters. We can handle the 9015 # drive letters (cygwin fileutils understands them), so leave them, 9016 # especially as we might pass files found there to a mingw objdump, 9017 # which wouldn't understand a cygwinified path. Ahh. 9018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9019 else 9020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9021 fi 9022 ;; 9023 pw32*) 9024 # pw32 DLLs use 'pw' prefix rather than 'lib' 9025 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9026 ;; 9027 esac 9028 ;; 9029 9030 *) 9031 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9032 ;; 9033 esac 9034 dynamic_linker='Win32 ld.exe' 9035 # FIXME: first we should search . and the directory the executable is in 9036 shlibpath_var=PATH 9037 ;; 9038 9039darwin* | rhapsody*) 9040 dynamic_linker="$host_os dyld" 9041 version_type=darwin 9042 need_lib_prefix=no 9043 need_version=no 9044 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9045 soname_spec='${libname}${release}${major}$shared_ext' 9046 shlibpath_overrides_runpath=yes 9047 shlibpath_var=DYLD_LIBRARY_PATH 9048 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9049 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9050 if test "$GCC" = yes; then 9051 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 9052 else 9053 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9054 fi 9055 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9056 ;; 9057 9058dgux*) 9059 version_type=linux 9060 need_lib_prefix=no 9061 need_version=no 9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9063 soname_spec='${libname}${release}${shared_ext}$major' 9064 shlibpath_var=LD_LIBRARY_PATH 9065 ;; 9066 9067freebsd1*) 9068 dynamic_linker=no 9069 ;; 9070 9071kfreebsd*-gnu) 9072 version_type=linux 9073 need_lib_prefix=no 9074 need_version=no 9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9076 soname_spec='${libname}${release}${shared_ext}$major' 9077 shlibpath_var=LD_LIBRARY_PATH 9078 shlibpath_overrides_runpath=no 9079 hardcode_into_libs=yes 9080 dynamic_linker='GNU ld.so' 9081 ;; 9082 9083freebsd* | dragonfly*) 9084 # DragonFly does not have aout. When/if they implement a new 9085 # versioning mechanism, adjust this. 9086 if test -x /usr/bin/objformat; then 9087 objformat=`/usr/bin/objformat` 9088 else 9089 case $host_os in 9090 freebsd[123]*) objformat=aout ;; 9091 *) objformat=elf ;; 9092 esac 9093 fi 9094 version_type=freebsd-$objformat 9095 case $version_type in 9096 freebsd-elf*) 9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9098 need_version=no 9099 need_lib_prefix=no 9100 ;; 9101 freebsd-*) 9102 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9103 need_version=yes 9104 ;; 9105 esac 9106 shlibpath_var=LD_LIBRARY_PATH 9107 case $host_os in 9108 freebsd2*) 9109 shlibpath_overrides_runpath=yes 9110 ;; 9111 freebsd3.[01]* | freebsdelf3.[01]*) 9112 shlibpath_overrides_runpath=yes 9113 hardcode_into_libs=yes 9114 ;; 9115 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9116 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9117 shlibpath_overrides_runpath=no 9118 hardcode_into_libs=yes 9119 ;; 9120 freebsd*) # from 4.6 on 9121 shlibpath_overrides_runpath=yes 9122 hardcode_into_libs=yes 9123 ;; 9124 esac 9125 ;; 9126 9127gnu*) 9128 version_type=linux 9129 need_lib_prefix=no 9130 need_version=no 9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9132 soname_spec='${libname}${release}${shared_ext}$major' 9133 shlibpath_var=LD_LIBRARY_PATH 9134 hardcode_into_libs=yes 9135 ;; 9136 9137hpux9* | hpux10* | hpux11*) 9138 # Give a soname corresponding to the major version so that dld.sl refuses to 9139 # link against other versions. 9140 version_type=sunos 9141 need_lib_prefix=no 9142 need_version=no 9143 case $host_cpu in 9144 ia64*) 9145 shrext_cmds='.so' 9146 hardcode_into_libs=yes 9147 dynamic_linker="$host_os dld.so" 9148 shlibpath_var=LD_LIBRARY_PATH 9149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9151 soname_spec='${libname}${release}${shared_ext}$major' 9152 if test "X$HPUX_IA64_MODE" = X32; then 9153 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9154 else 9155 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9156 fi 9157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9158 ;; 9159 hppa*64*) 9160 shrext_cmds='.sl' 9161 hardcode_into_libs=yes 9162 dynamic_linker="$host_os dld.sl" 9163 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9166 soname_spec='${libname}${release}${shared_ext}$major' 9167 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9169 ;; 9170 *) 9171 shrext_cmds='.sl' 9172 dynamic_linker="$host_os dld.sl" 9173 shlibpath_var=SHLIB_PATH 9174 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9176 soname_spec='${libname}${release}${shared_ext}$major' 9177 ;; 9178 esac 9179 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9180 postinstall_cmds='chmod 555 $lib' 9181 ;; 9182 9183interix3*) 9184 version_type=linux 9185 need_lib_prefix=no 9186 need_version=no 9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9188 soname_spec='${libname}${release}${shared_ext}$major' 9189 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9190 shlibpath_var=LD_LIBRARY_PATH 9191 shlibpath_overrides_runpath=no 9192 hardcode_into_libs=yes 9193 ;; 9194 9195irix5* | irix6* | nonstopux*) 9196 case $host_os in 9197 nonstopux*) version_type=nonstopux ;; 9198 *) 9199 if test "$lt_cv_prog_gnu_ld" = yes; then 9200 version_type=linux 9201 else 9202 version_type=irix 9203 fi ;; 9204 esac 9205 need_lib_prefix=no 9206 need_version=no 9207 soname_spec='${libname}${release}${shared_ext}$major' 9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9209 case $host_os in 9210 irix5* | nonstopux*) 9211 libsuff= shlibsuff= 9212 ;; 9213 *) 9214 case $LD in # libtool.m4 will add one of these switches to LD 9215 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9216 libsuff= shlibsuff= libmagic=32-bit;; 9217 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9218 libsuff=32 shlibsuff=N32 libmagic=N32;; 9219 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9220 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9221 *) libsuff= shlibsuff= libmagic=never-match;; 9222 esac 9223 ;; 9224 esac 9225 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9226 shlibpath_overrides_runpath=no 9227 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9228 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9229 hardcode_into_libs=yes 9230 ;; 9231 9232# No shared lib support for Linux oldld, aout, or coff. 9233linux*oldld* | linux*aout* | linux*coff*) 9234 dynamic_linker=no 9235 ;; 9236 9237# This must be Linux ELF. 9238linux*) 9239 version_type=linux 9240 need_lib_prefix=no 9241 need_version=no 9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9243 soname_spec='${libname}${release}${shared_ext}$major' 9244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9245 shlibpath_var=LD_LIBRARY_PATH 9246 shlibpath_overrides_runpath=no 9247 # This implies no fast_install, which is unacceptable. 9248 # Some rework will be needed to allow for fast_install 9249 # before this can be enabled. 9250 hardcode_into_libs=yes 9251 9252 # Append ld.so.conf contents to the search path 9253 if test -f /etc/ld.so.conf; then 9254 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 9255 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9256 fi 9257 9258 # We used to test for /lib/ld.so.1 and disable shared libraries on 9259 # powerpc, because MkLinux only supported shared libraries with the 9260 # GNU dynamic linker. Since this was broken with cross compilers, 9261 # most powerpc-linux boxes support dynamic linking these days and 9262 # people can always --disable-shared, the test was removed, and we 9263 # assume the GNU/Linux dynamic linker is in use. 9264 dynamic_linker='GNU/Linux ld.so' 9265 ;; 9266 9267knetbsd*-gnu) 9268 version_type=linux 9269 need_lib_prefix=no 9270 need_version=no 9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9272 soname_spec='${libname}${release}${shared_ext}$major' 9273 shlibpath_var=LD_LIBRARY_PATH 9274 shlibpath_overrides_runpath=no 9275 hardcode_into_libs=yes 9276 dynamic_linker='GNU ld.so' 9277 ;; 9278 9279netbsd*) 9280 version_type=sunos 9281 need_lib_prefix=no 9282 need_version=no 9283 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9286 dynamic_linker='NetBSD (a.out) ld.so' 9287 else 9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9289 soname_spec='${libname}${release}${shared_ext}$major' 9290 dynamic_linker='NetBSD ld.elf_so' 9291 fi 9292 shlibpath_var=LD_LIBRARY_PATH 9293 shlibpath_overrides_runpath=yes 9294 hardcode_into_libs=yes 9295 ;; 9296 9297newsos6) 9298 version_type=linux 9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9300 shlibpath_var=LD_LIBRARY_PATH 9301 shlibpath_overrides_runpath=yes 9302 ;; 9303 9304nto-qnx*) 9305 version_type=linux 9306 need_lib_prefix=no 9307 need_version=no 9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9309 soname_spec='${libname}${release}${shared_ext}$major' 9310 shlibpath_var=LD_LIBRARY_PATH 9311 shlibpath_overrides_runpath=yes 9312 ;; 9313 9314openbsd*) 9315 version_type=sunos 9316 sys_lib_dlsearch_path_spec="/usr/lib" 9317 need_lib_prefix=no 9318 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9319 case $host_os in 9320 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9321 *) need_version=no ;; 9322 esac 9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9325 shlibpath_var=LD_LIBRARY_PATH 9326 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9327 case $host_os in 9328 openbsd2.[89] | openbsd2.[89].*) 9329 shlibpath_overrides_runpath=no 9330 ;; 9331 *) 9332 shlibpath_overrides_runpath=yes 9333 ;; 9334 esac 9335 else 9336 shlibpath_overrides_runpath=yes 9337 fi 9338 ;; 9339 9340os2*) 9341 libname_spec='$name' 9342 shrext_cmds=".dll" 9343 need_lib_prefix=no 9344 library_names_spec='$libname${shared_ext} $libname.a' 9345 dynamic_linker='OS/2 ld.exe' 9346 shlibpath_var=LIBPATH 9347 ;; 9348 9349osf3* | osf4* | osf5*) 9350 version_type=osf 9351 need_lib_prefix=no 9352 need_version=no 9353 soname_spec='${libname}${release}${shared_ext}$major' 9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9355 shlibpath_var=LD_LIBRARY_PATH 9356 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9357 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9358 ;; 9359 9360solaris*) 9361 version_type=linux 9362 need_lib_prefix=no 9363 need_version=no 9364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9365 soname_spec='${libname}${release}${shared_ext}$major' 9366 shlibpath_var=LD_LIBRARY_PATH 9367 shlibpath_overrides_runpath=yes 9368 hardcode_into_libs=yes 9369 # ldd complains unless libraries are executable 9370 postinstall_cmds='chmod +x $lib' 9371 ;; 9372 9373sunos4*) 9374 version_type=sunos 9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9376 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9377 shlibpath_var=LD_LIBRARY_PATH 9378 shlibpath_overrides_runpath=yes 9379 if test "$with_gnu_ld" = yes; then 9380 need_lib_prefix=no 9381 fi 9382 need_version=yes 9383 ;; 9384 9385sysv4 | sysv4.3*) 9386 version_type=linux 9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9388 soname_spec='${libname}${release}${shared_ext}$major' 9389 shlibpath_var=LD_LIBRARY_PATH 9390 case $host_vendor in 9391 sni) 9392 shlibpath_overrides_runpath=no 9393 need_lib_prefix=no 9394 export_dynamic_flag_spec='${wl}-Blargedynsym' 9395 runpath_var=LD_RUN_PATH 9396 ;; 9397 siemens) 9398 need_lib_prefix=no 9399 ;; 9400 motorola) 9401 need_lib_prefix=no 9402 need_version=no 9403 shlibpath_overrides_runpath=no 9404 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9405 ;; 9406 esac 9407 ;; 9408 9409sysv4*MP*) 9410 if test -d /usr/nec ;then 9411 version_type=linux 9412 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9413 soname_spec='$libname${shared_ext}.$major' 9414 shlibpath_var=LD_LIBRARY_PATH 9415 fi 9416 ;; 9417 9418sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9419 version_type=freebsd-elf 9420 need_lib_prefix=no 9421 need_version=no 9422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9423 soname_spec='${libname}${release}${shared_ext}$major' 9424 shlibpath_var=LD_LIBRARY_PATH 9425 hardcode_into_libs=yes 9426 if test "$with_gnu_ld" = yes; then 9427 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9428 shlibpath_overrides_runpath=no 9429 else 9430 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9431 shlibpath_overrides_runpath=yes 9432 case $host_os in 9433 sco3.2v5*) 9434 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9435 ;; 9436 esac 9437 fi 9438 sys_lib_dlsearch_path_spec='/usr/lib' 9439 ;; 9440 9441uts4*) 9442 version_type=linux 9443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9444 soname_spec='${libname}${release}${shared_ext}$major' 9445 shlibpath_var=LD_LIBRARY_PATH 9446 ;; 9447 9448*) 9449 dynamic_linker=no 9450 ;; 9451esac 9452{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9453echo "${ECHO_T}$dynamic_linker" >&6; } 9454test "$dynamic_linker" = no && can_build_shared=no 9455 9456variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9457if test "$GCC" = yes; then 9458 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9459fi 9460 9461{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9462echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9463hardcode_action= 9464if test -n "$hardcode_libdir_flag_spec" || \ 9465 test -n "$runpath_var" || \ 9466 test "X$hardcode_automatic" = "Xyes" ; then 9467 9468 # We can hardcode non-existant directories. 9469 if test "$hardcode_direct" != no && 9470 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9471 # have to relink, otherwise we might link with an installed library 9472 # when we should be linking with a yet-to-be-installed one 9473 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9474 test "$hardcode_minus_L" != no; then 9475 # Linking always hardcodes the temporary library directory. 9476 hardcode_action=relink 9477 else 9478 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9479 hardcode_action=immediate 9480 fi 9481else 9482 # We cannot hardcode anything, or else we can only hardcode existing 9483 # directories. 9484 hardcode_action=unsupported 9485fi 9486{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9487echo "${ECHO_T}$hardcode_action" >&6; } 9488 9489if test "$hardcode_action" = relink; then 9490 # Fast installation is not supported 9491 enable_fast_install=no 9492elif test "$shlibpath_overrides_runpath" = yes || 9493 test "$enable_shared" = no; then 9494 # Fast installation is not necessary 9495 enable_fast_install=needless 9496fi 9497 9498striplib= 9499old_striplib= 9500{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9501echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9502if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9503 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9504 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9505 { echo "$as_me:$LINENO: result: yes" >&5 9506echo "${ECHO_T}yes" >&6; } 9507else 9508# FIXME - insert some real tests, host_os isn't really good enough 9509 case $host_os in 9510 darwin*) 9511 if test -n "$STRIP" ; then 9512 striplib="$STRIP -x" 9513 { echo "$as_me:$LINENO: result: yes" >&5 9514echo "${ECHO_T}yes" >&6; } 9515 else 9516 { echo "$as_me:$LINENO: result: no" >&5 9517echo "${ECHO_T}no" >&6; } 9518fi 9519 ;; 9520 *) 9521 { echo "$as_me:$LINENO: result: no" >&5 9522echo "${ECHO_T}no" >&6; } 9523 ;; 9524 esac 9525fi 9526 9527if test "x$enable_dlopen" != xyes; then 9528 enable_dlopen=unknown 9529 enable_dlopen_self=unknown 9530 enable_dlopen_self_static=unknown 9531else 9532 lt_cv_dlopen=no 9533 lt_cv_dlopen_libs= 9534 9535 case $host_os in 9536 beos*) 9537 lt_cv_dlopen="load_add_on" 9538 lt_cv_dlopen_libs= 9539 lt_cv_dlopen_self=yes 9540 ;; 9541 9542 mingw* | pw32*) 9543 lt_cv_dlopen="LoadLibrary" 9544 lt_cv_dlopen_libs= 9545 ;; 9546 9547 cygwin*) 9548 lt_cv_dlopen="dlopen" 9549 lt_cv_dlopen_libs= 9550 ;; 9551 9552 darwin*) 9553 # if libdl is installed we need to link against it 9554 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9555echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9556if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9557 echo $ECHO_N "(cached) $ECHO_C" >&6 9558else 9559 ac_check_lib_save_LIBS=$LIBS 9560LIBS="-ldl $LIBS" 9561cat >conftest.$ac_ext <<_ACEOF 9562/* confdefs.h. */ 9563_ACEOF 9564cat confdefs.h >>conftest.$ac_ext 9565cat >>conftest.$ac_ext <<_ACEOF 9566/* end confdefs.h. */ 9567 9568/* Override any GCC internal prototype to avoid an error. 9569 Use char because int might match the return type of a GCC 9570 builtin and then its argument prototype would still apply. */ 9571#ifdef __cplusplus 9572extern "C" 9573#endif 9574char dlopen (); 9575int 9576main () 9577{ 9578return dlopen (); 9579 ; 9580 return 0; 9581} 9582_ACEOF 9583rm -f conftest.$ac_objext conftest$ac_exeext 9584if { (ac_try="$ac_link" 9585case "(($ac_try" in 9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9587 *) ac_try_echo=$ac_try;; 9588esac 9589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9590 (eval "$ac_link") 2>conftest.er1 9591 ac_status=$? 9592 grep -v '^ *+' conftest.er1 >conftest.err 9593 rm -f conftest.er1 9594 cat conftest.err >&5 9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9596 (exit $ac_status); } && 9597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9598 { (case "(($ac_try" in 9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9600 *) ac_try_echo=$ac_try;; 9601esac 9602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9603 (eval "$ac_try") 2>&5 9604 ac_status=$? 9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9606 (exit $ac_status); }; } && 9607 { ac_try='test -s conftest$ac_exeext' 9608 { (case "(($ac_try" in 9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9610 *) ac_try_echo=$ac_try;; 9611esac 9612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9613 (eval "$ac_try") 2>&5 9614 ac_status=$? 9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9616 (exit $ac_status); }; }; then 9617 ac_cv_lib_dl_dlopen=yes 9618else 9619 echo "$as_me: failed program was:" >&5 9620sed 's/^/| /' conftest.$ac_ext >&5 9621 9622 ac_cv_lib_dl_dlopen=no 9623fi 9624 9625rm -f core conftest.err conftest.$ac_objext \ 9626 conftest$ac_exeext conftest.$ac_ext 9627LIBS=$ac_check_lib_save_LIBS 9628fi 9629{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9630echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9631if test $ac_cv_lib_dl_dlopen = yes; then 9632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9633else 9634 9635 lt_cv_dlopen="dyld" 9636 lt_cv_dlopen_libs= 9637 lt_cv_dlopen_self=yes 9638 9639fi 9640 9641 ;; 9642 9643 *) 9644 { echo "$as_me:$LINENO: checking for shl_load" >&5 9645echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9646if test "${ac_cv_func_shl_load+set}" = set; then 9647 echo $ECHO_N "(cached) $ECHO_C" >&6 9648else 9649 cat >conftest.$ac_ext <<_ACEOF 9650/* confdefs.h. */ 9651_ACEOF 9652cat confdefs.h >>conftest.$ac_ext 9653cat >>conftest.$ac_ext <<_ACEOF 9654/* end confdefs.h. */ 9655/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9656 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9657#define shl_load innocuous_shl_load 9658 9659/* System header to define __stub macros and hopefully few prototypes, 9660 which can conflict with char shl_load (); below. 9661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9662 <limits.h> exists even on freestanding compilers. */ 9663 9664#ifdef __STDC__ 9665# include <limits.h> 9666#else 9667# include <assert.h> 9668#endif 9669 9670#undef shl_load 9671 9672/* Override any GCC internal prototype to avoid an error. 9673 Use char because int might match the return type of a GCC 9674 builtin and then its argument prototype would still apply. */ 9675#ifdef __cplusplus 9676extern "C" 9677#endif 9678char shl_load (); 9679/* The GNU C library defines this for functions which it implements 9680 to always fail with ENOSYS. Some functions are actually named 9681 something starting with __ and the normal name is an alias. */ 9682#if defined __stub_shl_load || defined __stub___shl_load 9683choke me 9684#endif 9685 9686int 9687main () 9688{ 9689return shl_load (); 9690 ; 9691 return 0; 9692} 9693_ACEOF 9694rm -f conftest.$ac_objext conftest$ac_exeext 9695if { (ac_try="$ac_link" 9696case "(($ac_try" in 9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9698 *) ac_try_echo=$ac_try;; 9699esac 9700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9701 (eval "$ac_link") 2>conftest.er1 9702 ac_status=$? 9703 grep -v '^ *+' conftest.er1 >conftest.err 9704 rm -f conftest.er1 9705 cat conftest.err >&5 9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9707 (exit $ac_status); } && 9708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9709 { (case "(($ac_try" in 9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9711 *) ac_try_echo=$ac_try;; 9712esac 9713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9714 (eval "$ac_try") 2>&5 9715 ac_status=$? 9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9717 (exit $ac_status); }; } && 9718 { ac_try='test -s conftest$ac_exeext' 9719 { (case "(($ac_try" in 9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9721 *) ac_try_echo=$ac_try;; 9722esac 9723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9724 (eval "$ac_try") 2>&5 9725 ac_status=$? 9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9727 (exit $ac_status); }; }; then 9728 ac_cv_func_shl_load=yes 9729else 9730 echo "$as_me: failed program was:" >&5 9731sed 's/^/| /' conftest.$ac_ext >&5 9732 9733 ac_cv_func_shl_load=no 9734fi 9735 9736rm -f core conftest.err conftest.$ac_objext \ 9737 conftest$ac_exeext conftest.$ac_ext 9738fi 9739{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9740echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9741if test $ac_cv_func_shl_load = yes; then 9742 lt_cv_dlopen="shl_load" 9743else 9744 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9745echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9746if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9747 echo $ECHO_N "(cached) $ECHO_C" >&6 9748else 9749 ac_check_lib_save_LIBS=$LIBS 9750LIBS="-ldld $LIBS" 9751cat >conftest.$ac_ext <<_ACEOF 9752/* confdefs.h. */ 9753_ACEOF 9754cat confdefs.h >>conftest.$ac_ext 9755cat >>conftest.$ac_ext <<_ACEOF 9756/* end confdefs.h. */ 9757 9758/* Override any GCC internal prototype to avoid an error. 9759 Use char because int might match the return type of a GCC 9760 builtin and then its argument prototype would still apply. */ 9761#ifdef __cplusplus 9762extern "C" 9763#endif 9764char shl_load (); 9765int 9766main () 9767{ 9768return shl_load (); 9769 ; 9770 return 0; 9771} 9772_ACEOF 9773rm -f conftest.$ac_objext conftest$ac_exeext 9774if { (ac_try="$ac_link" 9775case "(($ac_try" in 9776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9777 *) ac_try_echo=$ac_try;; 9778esac 9779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9780 (eval "$ac_link") 2>conftest.er1 9781 ac_status=$? 9782 grep -v '^ *+' conftest.er1 >conftest.err 9783 rm -f conftest.er1 9784 cat conftest.err >&5 9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9786 (exit $ac_status); } && 9787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9788 { (case "(($ac_try" in 9789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9790 *) ac_try_echo=$ac_try;; 9791esac 9792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9793 (eval "$ac_try") 2>&5 9794 ac_status=$? 9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9796 (exit $ac_status); }; } && 9797 { ac_try='test -s conftest$ac_exeext' 9798 { (case "(($ac_try" in 9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9800 *) ac_try_echo=$ac_try;; 9801esac 9802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9803 (eval "$ac_try") 2>&5 9804 ac_status=$? 9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9806 (exit $ac_status); }; }; then 9807 ac_cv_lib_dld_shl_load=yes 9808else 9809 echo "$as_me: failed program was:" >&5 9810sed 's/^/| /' conftest.$ac_ext >&5 9811 9812 ac_cv_lib_dld_shl_load=no 9813fi 9814 9815rm -f core conftest.err conftest.$ac_objext \ 9816 conftest$ac_exeext conftest.$ac_ext 9817LIBS=$ac_check_lib_save_LIBS 9818fi 9819{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9820echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9821if test $ac_cv_lib_dld_shl_load = yes; then 9822 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9823else 9824 { echo "$as_me:$LINENO: checking for dlopen" >&5 9825echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9826if test "${ac_cv_func_dlopen+set}" = set; then 9827 echo $ECHO_N "(cached) $ECHO_C" >&6 9828else 9829 cat >conftest.$ac_ext <<_ACEOF 9830/* confdefs.h. */ 9831_ACEOF 9832cat confdefs.h >>conftest.$ac_ext 9833cat >>conftest.$ac_ext <<_ACEOF 9834/* end confdefs.h. */ 9835/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9836 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9837#define dlopen innocuous_dlopen 9838 9839/* System header to define __stub macros and hopefully few prototypes, 9840 which can conflict with char dlopen (); below. 9841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9842 <limits.h> exists even on freestanding compilers. */ 9843 9844#ifdef __STDC__ 9845# include <limits.h> 9846#else 9847# include <assert.h> 9848#endif 9849 9850#undef dlopen 9851 9852/* Override any GCC internal prototype to avoid an error. 9853 Use char because int might match the return type of a GCC 9854 builtin and then its argument prototype would still apply. */ 9855#ifdef __cplusplus 9856extern "C" 9857#endif 9858char dlopen (); 9859/* The GNU C library defines this for functions which it implements 9860 to always fail with ENOSYS. Some functions are actually named 9861 something starting with __ and the normal name is an alias. */ 9862#if defined __stub_dlopen || defined __stub___dlopen 9863choke me 9864#endif 9865 9866int 9867main () 9868{ 9869return dlopen (); 9870 ; 9871 return 0; 9872} 9873_ACEOF 9874rm -f conftest.$ac_objext conftest$ac_exeext 9875if { (ac_try="$ac_link" 9876case "(($ac_try" in 9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9878 *) ac_try_echo=$ac_try;; 9879esac 9880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9881 (eval "$ac_link") 2>conftest.er1 9882 ac_status=$? 9883 grep -v '^ *+' conftest.er1 >conftest.err 9884 rm -f conftest.er1 9885 cat conftest.err >&5 9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9887 (exit $ac_status); } && 9888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9889 { (case "(($ac_try" in 9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9891 *) ac_try_echo=$ac_try;; 9892esac 9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9894 (eval "$ac_try") 2>&5 9895 ac_status=$? 9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9897 (exit $ac_status); }; } && 9898 { ac_try='test -s conftest$ac_exeext' 9899 { (case "(($ac_try" in 9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9901 *) ac_try_echo=$ac_try;; 9902esac 9903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9904 (eval "$ac_try") 2>&5 9905 ac_status=$? 9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9907 (exit $ac_status); }; }; then 9908 ac_cv_func_dlopen=yes 9909else 9910 echo "$as_me: failed program was:" >&5 9911sed 's/^/| /' conftest.$ac_ext >&5 9912 9913 ac_cv_func_dlopen=no 9914fi 9915 9916rm -f core conftest.err conftest.$ac_objext \ 9917 conftest$ac_exeext conftest.$ac_ext 9918fi 9919{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9920echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9921if test $ac_cv_func_dlopen = yes; then 9922 lt_cv_dlopen="dlopen" 9923else 9924 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9925echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9926if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9927 echo $ECHO_N "(cached) $ECHO_C" >&6 9928else 9929 ac_check_lib_save_LIBS=$LIBS 9930LIBS="-ldl $LIBS" 9931cat >conftest.$ac_ext <<_ACEOF 9932/* confdefs.h. */ 9933_ACEOF 9934cat confdefs.h >>conftest.$ac_ext 9935cat >>conftest.$ac_ext <<_ACEOF 9936/* end confdefs.h. */ 9937 9938/* Override any GCC internal prototype to avoid an error. 9939 Use char because int might match the return type of a GCC 9940 builtin and then its argument prototype would still apply. */ 9941#ifdef __cplusplus 9942extern "C" 9943#endif 9944char dlopen (); 9945int 9946main () 9947{ 9948return dlopen (); 9949 ; 9950 return 0; 9951} 9952_ACEOF 9953rm -f conftest.$ac_objext conftest$ac_exeext 9954if { (ac_try="$ac_link" 9955case "(($ac_try" in 9956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9957 *) ac_try_echo=$ac_try;; 9958esac 9959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9960 (eval "$ac_link") 2>conftest.er1 9961 ac_status=$? 9962 grep -v '^ *+' conftest.er1 >conftest.err 9963 rm -f conftest.er1 9964 cat conftest.err >&5 9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9966 (exit $ac_status); } && 9967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9968 { (case "(($ac_try" in 9969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9970 *) ac_try_echo=$ac_try;; 9971esac 9972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9973 (eval "$ac_try") 2>&5 9974 ac_status=$? 9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9976 (exit $ac_status); }; } && 9977 { ac_try='test -s conftest$ac_exeext' 9978 { (case "(($ac_try" in 9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9980 *) ac_try_echo=$ac_try;; 9981esac 9982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9983 (eval "$ac_try") 2>&5 9984 ac_status=$? 9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9986 (exit $ac_status); }; }; then 9987 ac_cv_lib_dl_dlopen=yes 9988else 9989 echo "$as_me: failed program was:" >&5 9990sed 's/^/| /' conftest.$ac_ext >&5 9991 9992 ac_cv_lib_dl_dlopen=no 9993fi 9994 9995rm -f core conftest.err conftest.$ac_objext \ 9996 conftest$ac_exeext conftest.$ac_ext 9997LIBS=$ac_check_lib_save_LIBS 9998fi 9999{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10000echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10001if test $ac_cv_lib_dl_dlopen = yes; then 10002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10003else 10004 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10005echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10006if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10007 echo $ECHO_N "(cached) $ECHO_C" >&6 10008else 10009 ac_check_lib_save_LIBS=$LIBS 10010LIBS="-lsvld $LIBS" 10011cat >conftest.$ac_ext <<_ACEOF 10012/* confdefs.h. */ 10013_ACEOF 10014cat confdefs.h >>conftest.$ac_ext 10015cat >>conftest.$ac_ext <<_ACEOF 10016/* end confdefs.h. */ 10017 10018/* Override any GCC internal prototype to avoid an error. 10019 Use char because int might match the return type of a GCC 10020 builtin and then its argument prototype would still apply. */ 10021#ifdef __cplusplus 10022extern "C" 10023#endif 10024char dlopen (); 10025int 10026main () 10027{ 10028return dlopen (); 10029 ; 10030 return 0; 10031} 10032_ACEOF 10033rm -f conftest.$ac_objext conftest$ac_exeext 10034if { (ac_try="$ac_link" 10035case "(($ac_try" in 10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10037 *) ac_try_echo=$ac_try;; 10038esac 10039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10040 (eval "$ac_link") 2>conftest.er1 10041 ac_status=$? 10042 grep -v '^ *+' conftest.er1 >conftest.err 10043 rm -f conftest.er1 10044 cat conftest.err >&5 10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10046 (exit $ac_status); } && 10047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10048 { (case "(($ac_try" in 10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10050 *) ac_try_echo=$ac_try;; 10051esac 10052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10053 (eval "$ac_try") 2>&5 10054 ac_status=$? 10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10056 (exit $ac_status); }; } && 10057 { ac_try='test -s conftest$ac_exeext' 10058 { (case "(($ac_try" in 10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10060 *) ac_try_echo=$ac_try;; 10061esac 10062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10063 (eval "$ac_try") 2>&5 10064 ac_status=$? 10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10066 (exit $ac_status); }; }; then 10067 ac_cv_lib_svld_dlopen=yes 10068else 10069 echo "$as_me: failed program was:" >&5 10070sed 's/^/| /' conftest.$ac_ext >&5 10071 10072 ac_cv_lib_svld_dlopen=no 10073fi 10074 10075rm -f core conftest.err conftest.$ac_objext \ 10076 conftest$ac_exeext conftest.$ac_ext 10077LIBS=$ac_check_lib_save_LIBS 10078fi 10079{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10080echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10081if test $ac_cv_lib_svld_dlopen = yes; then 10082 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10083else 10084 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10085echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10086if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10087 echo $ECHO_N "(cached) $ECHO_C" >&6 10088else 10089 ac_check_lib_save_LIBS=$LIBS 10090LIBS="-ldld $LIBS" 10091cat >conftest.$ac_ext <<_ACEOF 10092/* confdefs.h. */ 10093_ACEOF 10094cat confdefs.h >>conftest.$ac_ext 10095cat >>conftest.$ac_ext <<_ACEOF 10096/* end confdefs.h. */ 10097 10098/* Override any GCC internal prototype to avoid an error. 10099 Use char because int might match the return type of a GCC 10100 builtin and then its argument prototype would still apply. */ 10101#ifdef __cplusplus 10102extern "C" 10103#endif 10104char dld_link (); 10105int 10106main () 10107{ 10108return dld_link (); 10109 ; 10110 return 0; 10111} 10112_ACEOF 10113rm -f conftest.$ac_objext conftest$ac_exeext 10114if { (ac_try="$ac_link" 10115case "(($ac_try" in 10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10117 *) ac_try_echo=$ac_try;; 10118esac 10119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10120 (eval "$ac_link") 2>conftest.er1 10121 ac_status=$? 10122 grep -v '^ *+' conftest.er1 >conftest.err 10123 rm -f conftest.er1 10124 cat conftest.err >&5 10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10126 (exit $ac_status); } && 10127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10128 { (case "(($ac_try" in 10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10130 *) ac_try_echo=$ac_try;; 10131esac 10132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10133 (eval "$ac_try") 2>&5 10134 ac_status=$? 10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10136 (exit $ac_status); }; } && 10137 { ac_try='test -s conftest$ac_exeext' 10138 { (case "(($ac_try" in 10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10140 *) ac_try_echo=$ac_try;; 10141esac 10142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10143 (eval "$ac_try") 2>&5 10144 ac_status=$? 10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10146 (exit $ac_status); }; }; then 10147 ac_cv_lib_dld_dld_link=yes 10148else 10149 echo "$as_me: failed program was:" >&5 10150sed 's/^/| /' conftest.$ac_ext >&5 10151 10152 ac_cv_lib_dld_dld_link=no 10153fi 10154 10155rm -f core conftest.err conftest.$ac_objext \ 10156 conftest$ac_exeext conftest.$ac_ext 10157LIBS=$ac_check_lib_save_LIBS 10158fi 10159{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10160echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10161if test $ac_cv_lib_dld_dld_link = yes; then 10162 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10163fi 10164 10165 10166fi 10167 10168 10169fi 10170 10171 10172fi 10173 10174 10175fi 10176 10177 10178fi 10179 10180 ;; 10181 esac 10182 10183 if test "x$lt_cv_dlopen" != xno; then 10184 enable_dlopen=yes 10185 else 10186 enable_dlopen=no 10187 fi 10188 10189 case $lt_cv_dlopen in 10190 dlopen) 10191 save_CPPFLAGS="$CPPFLAGS" 10192 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10193 10194 save_LDFLAGS="$LDFLAGS" 10195 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10196 10197 save_LIBS="$LIBS" 10198 LIBS="$lt_cv_dlopen_libs $LIBS" 10199 10200 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10201echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10202if test "${lt_cv_dlopen_self+set}" = set; then 10203 echo $ECHO_N "(cached) $ECHO_C" >&6 10204else 10205 if test "$cross_compiling" = yes; then : 10206 lt_cv_dlopen_self=cross 10207else 10208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10209 lt_status=$lt_dlunknown 10210 cat > conftest.$ac_ext <<EOF 10211#line 10211 "configure" 10212#include "confdefs.h" 10213 10214#if HAVE_DLFCN_H 10215#include <dlfcn.h> 10216#endif 10217 10218#include <stdio.h> 10219 10220#ifdef RTLD_GLOBAL 10221# define LT_DLGLOBAL RTLD_GLOBAL 10222#else 10223# ifdef DL_GLOBAL 10224# define LT_DLGLOBAL DL_GLOBAL 10225# else 10226# define LT_DLGLOBAL 0 10227# endif 10228#endif 10229 10230/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10231 find out it does not work in some platform. */ 10232#ifndef LT_DLLAZY_OR_NOW 10233# ifdef RTLD_LAZY 10234# define LT_DLLAZY_OR_NOW RTLD_LAZY 10235# else 10236# ifdef DL_LAZY 10237# define LT_DLLAZY_OR_NOW DL_LAZY 10238# else 10239# ifdef RTLD_NOW 10240# define LT_DLLAZY_OR_NOW RTLD_NOW 10241# else 10242# ifdef DL_NOW 10243# define LT_DLLAZY_OR_NOW DL_NOW 10244# else 10245# define LT_DLLAZY_OR_NOW 0 10246# endif 10247# endif 10248# endif 10249# endif 10250#endif 10251 10252#ifdef __cplusplus 10253extern "C" void exit (int); 10254#endif 10255 10256void fnord() { int i=42;} 10257int main () 10258{ 10259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10260 int status = $lt_dlunknown; 10261 10262 if (self) 10263 { 10264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10265 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10266 /* dlclose (self); */ 10267 } 10268 else 10269 puts (dlerror ()); 10270 10271 exit (status); 10272} 10273EOF 10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10275 (eval $ac_link) 2>&5 10276 ac_status=$? 10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10278 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10279 (./conftest; exit; ) >&5 2>/dev/null 10280 lt_status=$? 10281 case x$lt_status in 10282 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10283 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10284 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10285 esac 10286 else : 10287 # compilation failed 10288 lt_cv_dlopen_self=no 10289 fi 10290fi 10291rm -fr conftest* 10292 10293 10294fi 10295{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10296echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10297 10298 if test "x$lt_cv_dlopen_self" = xyes; then 10299 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10300 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10301echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10302if test "${lt_cv_dlopen_self_static+set}" = set; then 10303 echo $ECHO_N "(cached) $ECHO_C" >&6 10304else 10305 if test "$cross_compiling" = yes; then : 10306 lt_cv_dlopen_self_static=cross 10307else 10308 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10309 lt_status=$lt_dlunknown 10310 cat > conftest.$ac_ext <<EOF 10311#line 10311 "configure" 10312#include "confdefs.h" 10313 10314#if HAVE_DLFCN_H 10315#include <dlfcn.h> 10316#endif 10317 10318#include <stdio.h> 10319 10320#ifdef RTLD_GLOBAL 10321# define LT_DLGLOBAL RTLD_GLOBAL 10322#else 10323# ifdef DL_GLOBAL 10324# define LT_DLGLOBAL DL_GLOBAL 10325# else 10326# define LT_DLGLOBAL 0 10327# endif 10328#endif 10329 10330/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10331 find out it does not work in some platform. */ 10332#ifndef LT_DLLAZY_OR_NOW 10333# ifdef RTLD_LAZY 10334# define LT_DLLAZY_OR_NOW RTLD_LAZY 10335# else 10336# ifdef DL_LAZY 10337# define LT_DLLAZY_OR_NOW DL_LAZY 10338# else 10339# ifdef RTLD_NOW 10340# define LT_DLLAZY_OR_NOW RTLD_NOW 10341# else 10342# ifdef DL_NOW 10343# define LT_DLLAZY_OR_NOW DL_NOW 10344# else 10345# define LT_DLLAZY_OR_NOW 0 10346# endif 10347# endif 10348# endif 10349# endif 10350#endif 10351 10352#ifdef __cplusplus 10353extern "C" void exit (int); 10354#endif 10355 10356void fnord() { int i=42;} 10357int main () 10358{ 10359 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10360 int status = $lt_dlunknown; 10361 10362 if (self) 10363 { 10364 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10365 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10366 /* dlclose (self); */ 10367 } 10368 else 10369 puts (dlerror ()); 10370 10371 exit (status); 10372} 10373EOF 10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10375 (eval $ac_link) 2>&5 10376 ac_status=$? 10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10378 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10379 (./conftest; exit; ) >&5 2>/dev/null 10380 lt_status=$? 10381 case x$lt_status in 10382 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10383 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10384 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10385 esac 10386 else : 10387 # compilation failed 10388 lt_cv_dlopen_self_static=no 10389 fi 10390fi 10391rm -fr conftest* 10392 10393 10394fi 10395{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10396echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10397 fi 10398 10399 CPPFLAGS="$save_CPPFLAGS" 10400 LDFLAGS="$save_LDFLAGS" 10401 LIBS="$save_LIBS" 10402 ;; 10403 esac 10404 10405 case $lt_cv_dlopen_self in 10406 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10407 *) enable_dlopen_self=unknown ;; 10408 esac 10409 10410 case $lt_cv_dlopen_self_static in 10411 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10412 *) enable_dlopen_self_static=unknown ;; 10413 esac 10414fi 10415 10416 10417# Report which library types will actually be built 10418{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10419echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10420{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10421echo "${ECHO_T}$can_build_shared" >&6; } 10422 10423{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10424echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10425test "$can_build_shared" = "no" && enable_shared=no 10426 10427# On AIX, shared libraries and static libraries use the same namespace, and 10428# are all built from PIC. 10429case $host_os in 10430aix3*) 10431 test "$enable_shared" = yes && enable_static=no 10432 if test -n "$RANLIB"; then 10433 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10434 postinstall_cmds='$RANLIB $lib' 10435 fi 10436 ;; 10437 10438aix4* | aix5*) 10439 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10440 test "$enable_shared" = yes && enable_static=no 10441 fi 10442 ;; 10443esac 10444{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10445echo "${ECHO_T}$enable_shared" >&6; } 10446 10447{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10448echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10449# Make sure either enable_shared or enable_static is yes. 10450test "$enable_shared" = yes || enable_static=yes 10451{ echo "$as_me:$LINENO: result: $enable_static" >&5 10452echo "${ECHO_T}$enable_static" >&6; } 10453 10454# The else clause should only fire when bootstrapping the 10455# libtool distribution, otherwise you forgot to ship ltmain.sh 10456# with your package, and you will get complaints that there are 10457# no rules to generate ltmain.sh. 10458if test -f "$ltmain"; then 10459 # See if we are running on zsh, and set the options which allow our commands through 10460 # without removal of \ escapes. 10461 if test -n "${ZSH_VERSION+set}" ; then 10462 setopt NO_GLOB_SUBST 10463 fi 10464 # Now quote all the things that may contain metacharacters while being 10465 # careful not to overquote the AC_SUBSTed values. We take copies of the 10466 # variables and quote the copies for generation of the libtool script. 10467 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10468 SED SHELL STRIP \ 10469 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10470 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10471 deplibs_check_method reload_flag reload_cmds need_locks \ 10472 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10473 lt_cv_sys_global_symbol_to_c_name_address \ 10474 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10475 old_postinstall_cmds old_postuninstall_cmds \ 10476 compiler \ 10477 CC \ 10478 LD \ 10479 lt_prog_compiler_wl \ 10480 lt_prog_compiler_pic \ 10481 lt_prog_compiler_static \ 10482 lt_prog_compiler_no_builtin_flag \ 10483 export_dynamic_flag_spec \ 10484 thread_safe_flag_spec \ 10485 whole_archive_flag_spec \ 10486 enable_shared_with_static_runtimes \ 10487 old_archive_cmds \ 10488 old_archive_from_new_cmds \ 10489 predep_objects \ 10490 postdep_objects \ 10491 predeps \ 10492 postdeps \ 10493 compiler_lib_search_path \ 10494 archive_cmds \ 10495 archive_expsym_cmds \ 10496 postinstall_cmds \ 10497 postuninstall_cmds \ 10498 old_archive_from_expsyms_cmds \ 10499 allow_undefined_flag \ 10500 no_undefined_flag \ 10501 export_symbols_cmds \ 10502 hardcode_libdir_flag_spec \ 10503 hardcode_libdir_flag_spec_ld \ 10504 hardcode_libdir_separator \ 10505 hardcode_automatic \ 10506 module_cmds \ 10507 module_expsym_cmds \ 10508 lt_cv_prog_compiler_c_o \ 10509 exclude_expsyms \ 10510 include_expsyms; do 10511 10512 case $var in 10513 old_archive_cmds | \ 10514 old_archive_from_new_cmds | \ 10515 archive_cmds | \ 10516 archive_expsym_cmds | \ 10517 module_cmds | \ 10518 module_expsym_cmds | \ 10519 old_archive_from_expsyms_cmds | \ 10520 export_symbols_cmds | \ 10521 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10522 postinstall_cmds | postuninstall_cmds | \ 10523 old_postinstall_cmds | old_postuninstall_cmds | \ 10524 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10525 # Double-quote double-evaled strings. 10526 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10527 ;; 10528 *) 10529 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10530 ;; 10531 esac 10532 done 10533 10534 case $lt_echo in 10535 *'\$0 --fallback-echo"') 10536 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10537 ;; 10538 esac 10539 10540cfgfile="${ofile}T" 10541 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10542 $rm -f "$cfgfile" 10543 { echo "$as_me:$LINENO: creating $ofile" >&5 10544echo "$as_me: creating $ofile" >&6;} 10545 10546 cat <<__EOF__ >> "$cfgfile" 10547#! $SHELL 10548 10549# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10550# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10551# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10552# 10553# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10554# Free Software Foundation, Inc. 10555# 10556# This file is part of GNU Libtool: 10557# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10558# 10559# This program is free software; you can redistribute it and/or modify 10560# it under the terms of the GNU General Public License as published by 10561# the Free Software Foundation; either version 2 of the License, or 10562# (at your option) any later version. 10563# 10564# This program is distributed in the hope that it will be useful, but 10565# WITHOUT ANY WARRANTY; without even the implied warranty of 10566# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10567# General Public License for more details. 10568# 10569# You should have received a copy of the GNU General Public License 10570# along with this program; if not, write to the Free Software 10571# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10572# 10573# As a special exception to the GNU General Public License, if you 10574# distribute this file as part of a program that contains a 10575# configuration script generated by Autoconf, you may include it under 10576# the same distribution terms that you use for the rest of that program. 10577 10578# A sed program that does not truncate output. 10579SED=$lt_SED 10580 10581# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10582Xsed="$SED -e 1s/^X//" 10583 10584# The HP-UX ksh and POSIX shell print the target directory to stdout 10585# if CDPATH is set. 10586(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10587 10588# The names of the tagged configurations supported by this script. 10589available_tags= 10590 10591# ### BEGIN LIBTOOL CONFIG 10592 10593# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10594 10595# Shell to use when invoking shell scripts. 10596SHELL=$lt_SHELL 10597 10598# Whether or not to build shared libraries. 10599build_libtool_libs=$enable_shared 10600 10601# Whether or not to build static libraries. 10602build_old_libs=$enable_static 10603 10604# Whether or not to add -lc for building shared libraries. 10605build_libtool_need_lc=$archive_cmds_need_lc 10606 10607# Whether or not to disallow shared libs when runtime libs are static 10608allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10609 10610# Whether or not to optimize for fast installation. 10611fast_install=$enable_fast_install 10612 10613# The host system. 10614host_alias=$host_alias 10615host=$host 10616host_os=$host_os 10617 10618# The build system. 10619build_alias=$build_alias 10620build=$build 10621build_os=$build_os 10622 10623# An echo program that does not interpret backslashes. 10624echo=$lt_echo 10625 10626# The archiver. 10627AR=$lt_AR 10628AR_FLAGS=$lt_AR_FLAGS 10629 10630# A C compiler. 10631LTCC=$lt_LTCC 10632 10633# LTCC compiler flags. 10634LTCFLAGS=$lt_LTCFLAGS 10635 10636# A language-specific compiler. 10637CC=$lt_compiler 10638 10639# Is the compiler the GNU C compiler? 10640with_gcc=$GCC 10641 10642# An ERE matcher. 10643EGREP=$lt_EGREP 10644 10645# The linker used to build libraries. 10646LD=$lt_LD 10647 10648# Whether we need hard or soft links. 10649LN_S=$lt_LN_S 10650 10651# A BSD-compatible nm program. 10652NM=$lt_NM 10653 10654# A symbol stripping program 10655STRIP=$lt_STRIP 10656 10657# Used to examine libraries when file_magic_cmd begins "file" 10658MAGIC_CMD=$MAGIC_CMD 10659 10660# Used on cygwin: DLL creation program. 10661DLLTOOL="$DLLTOOL" 10662 10663# Used on cygwin: object dumper. 10664OBJDUMP="$OBJDUMP" 10665 10666# Used on cygwin: assembler. 10667AS="$AS" 10668 10669# The name of the directory that contains temporary libtool files. 10670objdir=$objdir 10671 10672# How to create reloadable object files. 10673reload_flag=$lt_reload_flag 10674reload_cmds=$lt_reload_cmds 10675 10676# How to pass a linker flag through the compiler. 10677wl=$lt_lt_prog_compiler_wl 10678 10679# Object file suffix (normally "o"). 10680objext="$ac_objext" 10681 10682# Old archive suffix (normally "a"). 10683libext="$libext" 10684 10685# Shared library suffix (normally ".so"). 10686shrext_cmds='$shrext_cmds' 10687 10688# Executable file suffix (normally ""). 10689exeext="$exeext" 10690 10691# Additional compiler flags for building library objects. 10692pic_flag=$lt_lt_prog_compiler_pic 10693pic_mode=$pic_mode 10694 10695# What is the maximum length of a command? 10696max_cmd_len=$lt_cv_sys_max_cmd_len 10697 10698# Does compiler simultaneously support -c and -o options? 10699compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10700 10701# Must we lock files when doing compilation? 10702need_locks=$lt_need_locks 10703 10704# Do we need the lib prefix for modules? 10705need_lib_prefix=$need_lib_prefix 10706 10707# Do we need a version for libraries? 10708need_version=$need_version 10709 10710# Whether dlopen is supported. 10711dlopen_support=$enable_dlopen 10712 10713# Whether dlopen of programs is supported. 10714dlopen_self=$enable_dlopen_self 10715 10716# Whether dlopen of statically linked programs is supported. 10717dlopen_self_static=$enable_dlopen_self_static 10718 10719# Compiler flag to prevent dynamic linking. 10720link_static_flag=$lt_lt_prog_compiler_static 10721 10722# Compiler flag to turn off builtin functions. 10723no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10724 10725# Compiler flag to allow reflexive dlopens. 10726export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10727 10728# Compiler flag to generate shared objects directly from archives. 10729whole_archive_flag_spec=$lt_whole_archive_flag_spec 10730 10731# Compiler flag to generate thread-safe objects. 10732thread_safe_flag_spec=$lt_thread_safe_flag_spec 10733 10734# Library versioning type. 10735version_type=$version_type 10736 10737# Format of library name prefix. 10738libname_spec=$lt_libname_spec 10739 10740# List of archive names. First name is the real one, the rest are links. 10741# The last name is the one that the linker finds with -lNAME. 10742library_names_spec=$lt_library_names_spec 10743 10744# The coded name of the library, if different from the real name. 10745soname_spec=$lt_soname_spec 10746 10747# Commands used to build and install an old-style archive. 10748RANLIB=$lt_RANLIB 10749old_archive_cmds=$lt_old_archive_cmds 10750old_postinstall_cmds=$lt_old_postinstall_cmds 10751old_postuninstall_cmds=$lt_old_postuninstall_cmds 10752 10753# Create an old-style archive from a shared archive. 10754old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10755 10756# Create a temporary old-style archive to link instead of a shared archive. 10757old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10758 10759# Commands used to build and install a shared archive. 10760archive_cmds=$lt_archive_cmds 10761archive_expsym_cmds=$lt_archive_expsym_cmds 10762postinstall_cmds=$lt_postinstall_cmds 10763postuninstall_cmds=$lt_postuninstall_cmds 10764 10765# Commands used to build a loadable module (assumed same as above if empty) 10766module_cmds=$lt_module_cmds 10767module_expsym_cmds=$lt_module_expsym_cmds 10768 10769# Commands to strip libraries. 10770old_striplib=$lt_old_striplib 10771striplib=$lt_striplib 10772 10773# Dependencies to place before the objects being linked to create a 10774# shared library. 10775predep_objects=$lt_predep_objects 10776 10777# Dependencies to place after the objects being linked to create a 10778# shared library. 10779postdep_objects=$lt_postdep_objects 10780 10781# Dependencies to place before the objects being linked to create a 10782# shared library. 10783predeps=$lt_predeps 10784 10785# Dependencies to place after the objects being linked to create a 10786# shared library. 10787postdeps=$lt_postdeps 10788 10789# The library search path used internally by the compiler when linking 10790# a shared library. 10791compiler_lib_search_path=$lt_compiler_lib_search_path 10792 10793# Method to check whether dependent libraries are shared objects. 10794deplibs_check_method=$lt_deplibs_check_method 10795 10796# Command to use when deplibs_check_method == file_magic. 10797file_magic_cmd=$lt_file_magic_cmd 10798 10799# Flag that allows shared libraries with undefined symbols to be built. 10800allow_undefined_flag=$lt_allow_undefined_flag 10801 10802# Flag that forces no undefined symbols. 10803no_undefined_flag=$lt_no_undefined_flag 10804 10805# Commands used to finish a libtool library installation in a directory. 10806finish_cmds=$lt_finish_cmds 10807 10808# Same as above, but a single script fragment to be evaled but not shown. 10809finish_eval=$lt_finish_eval 10810 10811# Take the output of nm and produce a listing of raw symbols and C names. 10812global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10813 10814# Transform the output of nm in a proper C declaration 10815global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10816 10817# Transform the output of nm in a C name address pair 10818global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10819 10820# This is the shared library runtime path variable. 10821runpath_var=$runpath_var 10822 10823# This is the shared library path variable. 10824shlibpath_var=$shlibpath_var 10825 10826# Is shlibpath searched before the hard-coded library search path? 10827shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10828 10829# How to hardcode a shared library path into an executable. 10830hardcode_action=$hardcode_action 10831 10832# Whether we should hardcode library paths into libraries. 10833hardcode_into_libs=$hardcode_into_libs 10834 10835# Flag to hardcode \$libdir into a binary during linking. 10836# This must work even if \$libdir does not exist. 10837hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10838 10839# If ld is used when linking, flag to hardcode \$libdir into 10840# a binary during linking. This must work even if \$libdir does 10841# not exist. 10842hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10843 10844# Whether we need a single -rpath flag with a separated argument. 10845hardcode_libdir_separator=$lt_hardcode_libdir_separator 10846 10847# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10848# resulting binary. 10849hardcode_direct=$hardcode_direct 10850 10851# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10852# resulting binary. 10853hardcode_minus_L=$hardcode_minus_L 10854 10855# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10856# the resulting binary. 10857hardcode_shlibpath_var=$hardcode_shlibpath_var 10858 10859# Set to yes if building a shared library automatically hardcodes DIR into the library 10860# and all subsequent libraries and executables linked against it. 10861hardcode_automatic=$hardcode_automatic 10862 10863# Variables whose values should be saved in libtool wrapper scripts and 10864# restored at relink time. 10865variables_saved_for_relink="$variables_saved_for_relink" 10866 10867# Whether libtool must link a program against all its dependency libraries. 10868link_all_deplibs=$link_all_deplibs 10869 10870# Compile-time system search path for libraries 10871sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10872 10873# Run-time system search path for libraries 10874sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10875 10876# Fix the shell variable \$srcfile for the compiler. 10877fix_srcfile_path="$fix_srcfile_path" 10878 10879# Set to yes if exported symbols are required. 10880always_export_symbols=$always_export_symbols 10881 10882# The commands to list exported symbols. 10883export_symbols_cmds=$lt_export_symbols_cmds 10884 10885# The commands to extract the exported symbol list from a shared archive. 10886extract_expsyms_cmds=$lt_extract_expsyms_cmds 10887 10888# Symbols that should not be listed in the preloaded symbols. 10889exclude_expsyms=$lt_exclude_expsyms 10890 10891# Symbols that must always be exported. 10892include_expsyms=$lt_include_expsyms 10893 10894# ### END LIBTOOL CONFIG 10895 10896__EOF__ 10897 10898 10899 case $host_os in 10900 aix3*) 10901 cat <<\EOF >> "$cfgfile" 10902 10903# AIX sometimes has problems with the GCC collect2 program. For some 10904# reason, if we set the COLLECT_NAMES environment variable, the problems 10905# vanish in a puff of smoke. 10906if test "X${COLLECT_NAMES+set}" != Xset; then 10907 COLLECT_NAMES= 10908 export COLLECT_NAMES 10909fi 10910EOF 10911 ;; 10912 esac 10913 10914 # We use sed instead of cat because bash on DJGPP gets confused if 10915 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10916 # text mode, it properly converts lines to CR/LF. This bash problem 10917 # is reportedly fixed, but why not run on old versions too? 10918 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10919 10920 mv -f "$cfgfile" "$ofile" || \ 10921 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10922 chmod +x "$ofile" 10923 10924else 10925 # If there is no Makefile yet, we rely on a make rule to execute 10926 # `config.status --recheck' to rerun these tests and create the 10927 # libtool script then. 10928 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10929 if test -f "$ltmain_in"; then 10930 test -f Makefile && make "$ltmain" 10931 fi 10932fi 10933 10934 10935ac_ext=c 10936ac_cpp='$CPP $CPPFLAGS' 10937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10939ac_compiler_gnu=$ac_cv_c_compiler_gnu 10940 10941CC="$lt_save_CC" 10942 10943 10944# Check whether --with-tags was given. 10945if test "${with_tags+set}" = set; then 10946 withval=$with_tags; tagnames="$withval" 10947fi 10948 10949 10950if test -f "$ltmain" && test -n "$tagnames"; then 10951 if test ! -f "${ofile}"; then 10952 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10953echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10954 fi 10955 10956 if test -z "$LTCC"; then 10957 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10958 if test -z "$LTCC"; then 10959 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10960echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10961 else 10962 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10963echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10964 fi 10965 fi 10966 if test -z "$LTCFLAGS"; then 10967 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10968 fi 10969 10970 # Extract list of available tagged configurations in $ofile. 10971 # Note that this assumes the entire list is on one line. 10972 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10973 10974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10975 for tagname in $tagnames; do 10976 IFS="$lt_save_ifs" 10977 # Check whether tagname contains only valid characters 10978 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10979 "") ;; 10980 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10981echo "$as_me: error: invalid tag name: $tagname" >&2;} 10982 { (exit 1); exit 1; }; } 10983 ;; 10984 esac 10985 10986 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 10987 then 10988 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 10989echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 10990 { (exit 1); exit 1; }; } 10991 fi 10992 10993 # Update the list of available tags. 10994 if test -n "$tagname"; then 10995 echo appending configuration tag \"$tagname\" to $ofile 10996 10997 case $tagname in 10998 CXX) 10999 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11000 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11001 (test "X$CXX" != "Xg++"))) ; then 11002 ac_ext=cpp 11003ac_cpp='$CXXCPP $CPPFLAGS' 11004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11007 11008 11009 11010 11011archive_cmds_need_lc_CXX=no 11012allow_undefined_flag_CXX= 11013always_export_symbols_CXX=no 11014archive_expsym_cmds_CXX= 11015export_dynamic_flag_spec_CXX= 11016hardcode_direct_CXX=no 11017hardcode_libdir_flag_spec_CXX= 11018hardcode_libdir_flag_spec_ld_CXX= 11019hardcode_libdir_separator_CXX= 11020hardcode_minus_L_CXX=no 11021hardcode_shlibpath_var_CXX=unsupported 11022hardcode_automatic_CXX=no 11023module_cmds_CXX= 11024module_expsym_cmds_CXX= 11025link_all_deplibs_CXX=unknown 11026old_archive_cmds_CXX=$old_archive_cmds 11027no_undefined_flag_CXX= 11028whole_archive_flag_spec_CXX= 11029enable_shared_with_static_runtimes_CXX=no 11030 11031# Dependencies to place before and after the object being linked: 11032predep_objects_CXX= 11033postdep_objects_CXX= 11034predeps_CXX= 11035postdeps_CXX= 11036compiler_lib_search_path_CXX= 11037 11038# Source file extension for C++ test sources. 11039ac_ext=cpp 11040 11041# Object file extension for compiled C++ test sources. 11042objext=o 11043objext_CXX=$objext 11044 11045# Code to be used in simple compile tests 11046lt_simple_compile_test_code="int some_variable = 0;\n" 11047 11048# Code to be used in simple link tests 11049lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11050 11051# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11052 11053# If no C compiler was specified, use CC. 11054LTCC=${LTCC-"$CC"} 11055 11056# If no C compiler flags were specified, use CFLAGS. 11057LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11058 11059# Allow CC to be a program name with arguments. 11060compiler=$CC 11061 11062 11063# save warnings/boilerplate of simple test code 11064ac_outfile=conftest.$ac_objext 11065printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11066eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11067_lt_compiler_boilerplate=`cat conftest.err` 11068$rm conftest* 11069 11070ac_outfile=conftest.$ac_objext 11071printf "$lt_simple_link_test_code" >conftest.$ac_ext 11072eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11073_lt_linker_boilerplate=`cat conftest.err` 11074$rm conftest* 11075 11076 11077# Allow CC to be a program name with arguments. 11078lt_save_CC=$CC 11079lt_save_LD=$LD 11080lt_save_GCC=$GCC 11081GCC=$GXX 11082lt_save_with_gnu_ld=$with_gnu_ld 11083lt_save_path_LD=$lt_cv_path_LD 11084if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11085 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11086else 11087 $as_unset lt_cv_prog_gnu_ld 11088fi 11089if test -n "${lt_cv_path_LDCXX+set}"; then 11090 lt_cv_path_LD=$lt_cv_path_LDCXX 11091else 11092 $as_unset lt_cv_path_LD 11093fi 11094test -z "${LDCXX+set}" || LD=$LDCXX 11095CC=${CXX-"c++"} 11096compiler=$CC 11097compiler_CXX=$CC 11098for cc_temp in $compiler""; do 11099 case $cc_temp in 11100 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11101 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11102 \-*) ;; 11103 *) break;; 11104 esac 11105done 11106cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11107 11108 11109# We don't want -fno-exception wen compiling C++ code, so set the 11110# no_builtin_flag separately 11111if test "$GXX" = yes; then 11112 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11113else 11114 lt_prog_compiler_no_builtin_flag_CXX= 11115fi 11116 11117if test "$GXX" = yes; then 11118 # Set up default GNU C++ configuration 11119 11120 11121# Check whether --with-gnu-ld was given. 11122if test "${with_gnu_ld+set}" = set; then 11123 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11124else 11125 with_gnu_ld=no 11126fi 11127 11128ac_prog=ld 11129if test "$GCC" = yes; then 11130 # Check if gcc -print-prog-name=ld gives a path. 11131 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11132echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11133 case $host in 11134 *-*-mingw*) 11135 # gcc leaves a trailing carriage return which upsets mingw 11136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11137 *) 11138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11139 esac 11140 case $ac_prog in 11141 # Accept absolute paths. 11142 [\\/]* | ?:[\\/]*) 11143 re_direlt='/[^/][^/]*/\.\./' 11144 # Canonicalize the pathname of ld 11145 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11146 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11147 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11148 done 11149 test -z "$LD" && LD="$ac_prog" 11150 ;; 11151 "") 11152 # If it fails, then pretend we aren't using GCC. 11153 ac_prog=ld 11154 ;; 11155 *) 11156 # If it is relative, then search for the first ld in PATH. 11157 with_gnu_ld=unknown 11158 ;; 11159 esac 11160elif test "$with_gnu_ld" = yes; then 11161 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11162echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11163else 11164 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11165echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11166fi 11167if test "${lt_cv_path_LD+set}" = set; then 11168 echo $ECHO_N "(cached) $ECHO_C" >&6 11169else 11170 if test -z "$LD"; then 11171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11172 for ac_dir in $PATH; do 11173 IFS="$lt_save_ifs" 11174 test -z "$ac_dir" && ac_dir=. 11175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11176 lt_cv_path_LD="$ac_dir/$ac_prog" 11177 # Check to see if the program is GNU ld. I'd rather use --version, 11178 # but apparently some variants of GNU ld only accept -v. 11179 # Break only if it was the GNU/non-GNU ld that we prefer. 11180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11181 *GNU* | *'with BFD'*) 11182 test "$with_gnu_ld" != no && break 11183 ;; 11184 *) 11185 test "$with_gnu_ld" != yes && break 11186 ;; 11187 esac 11188 fi 11189 done 11190 IFS="$lt_save_ifs" 11191else 11192 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11193fi 11194fi 11195 11196LD="$lt_cv_path_LD" 11197if test -n "$LD"; then 11198 { echo "$as_me:$LINENO: result: $LD" >&5 11199echo "${ECHO_T}$LD" >&6; } 11200else 11201 { echo "$as_me:$LINENO: result: no" >&5 11202echo "${ECHO_T}no" >&6; } 11203fi 11204test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11205echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11206 { (exit 1); exit 1; }; } 11207{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11208echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11209if test "${lt_cv_prog_gnu_ld+set}" = set; then 11210 echo $ECHO_N "(cached) $ECHO_C" >&6 11211else 11212 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11213case `$LD -v 2>&1 </dev/null` in 11214*GNU* | *'with BFD'*) 11215 lt_cv_prog_gnu_ld=yes 11216 ;; 11217*) 11218 lt_cv_prog_gnu_ld=no 11219 ;; 11220esac 11221fi 11222{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11223echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11224with_gnu_ld=$lt_cv_prog_gnu_ld 11225 11226 11227 11228 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11229 # archiving commands below assume that GNU ld is being used. 11230 if test "$with_gnu_ld" = yes; then 11231 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11232 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' 11233 11234 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11235 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11236 11237 # If archive_cmds runs LD, not CC, wlarc should be empty 11238 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11239 # investigate it a little bit more. (MM) 11240 wlarc='${wl}' 11241 11242 # ancient GNU ld didn't support --whole-archive et. al. 11243 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11244 grep 'no-whole-archive' > /dev/null; then 11245 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11246 else 11247 whole_archive_flag_spec_CXX= 11248 fi 11249 else 11250 with_gnu_ld=no 11251 wlarc= 11252 11253 # A generic and very simple default shared library creation 11254 # command for GNU C++ for the case where it uses the native 11255 # linker, instead of GNU ld. If possible, this setting should 11256 # overridden to take advantage of the native linker features on 11257 # the platform it is being used on. 11258 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11259 fi 11260 11261 # Commands to make compiler produce verbose output that lists 11262 # what "hidden" libraries, object files and flags are used when 11263 # linking a shared library. 11264 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11265 11266else 11267 GXX=no 11268 with_gnu_ld=no 11269 wlarc= 11270fi 11271 11272# PORTME: fill in a description of your system's C++ link characteristics 11273{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11274echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11275ld_shlibs_CXX=yes 11276case $host_os in 11277 aix3*) 11278 # FIXME: insert proper C++ library support 11279 ld_shlibs_CXX=no 11280 ;; 11281 aix4* | aix5*) 11282 if test "$host_cpu" = ia64; then 11283 # On IA64, the linker does run time linking by default, so we don't 11284 # have to do anything special. 11285 aix_use_runtimelinking=no 11286 exp_sym_flag='-Bexport' 11287 no_entry_flag="" 11288 else 11289 aix_use_runtimelinking=no 11290 11291 # Test if we are trying to use run time linking or normal 11292 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11293 # need to do runtime linking. 11294 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11295 for ld_flag in $LDFLAGS; do 11296 case $ld_flag in 11297 *-brtl*) 11298 aix_use_runtimelinking=yes 11299 break 11300 ;; 11301 esac 11302 done 11303 ;; 11304 esac 11305 11306 exp_sym_flag='-bexport' 11307 no_entry_flag='-bnoentry' 11308 fi 11309 11310 # When large executables or shared objects are built, AIX ld can 11311 # have problems creating the table of contents. If linking a library 11312 # or program results in "error TOC overflow" add -mminimal-toc to 11313 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11314 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11315 11316 archive_cmds_CXX='' 11317 hardcode_direct_CXX=yes 11318 hardcode_libdir_separator_CXX=':' 11319 link_all_deplibs_CXX=yes 11320 11321 if test "$GXX" = yes; then 11322 case $host_os in aix4.[012]|aix4.[012].*) 11323 # We only want to do this on AIX 4.2 and lower, the check 11324 # below for broken collect2 doesn't work under 4.3+ 11325 collect2name=`${CC} -print-prog-name=collect2` 11326 if test -f "$collect2name" && \ 11327 strings "$collect2name" | grep resolve_lib_name >/dev/null 11328 then 11329 # We have reworked collect2 11330 hardcode_direct_CXX=yes 11331 else 11332 # We have old collect2 11333 hardcode_direct_CXX=unsupported 11334 # It fails to find uninstalled libraries when the uninstalled 11335 # path is not listed in the libpath. Setting hardcode_minus_L 11336 # to unsupported forces relinking 11337 hardcode_minus_L_CXX=yes 11338 hardcode_libdir_flag_spec_CXX='-L$libdir' 11339 hardcode_libdir_separator_CXX= 11340 fi 11341 ;; 11342 esac 11343 shared_flag='-shared' 11344 if test "$aix_use_runtimelinking" = yes; then 11345 shared_flag="$shared_flag "'${wl}-G' 11346 fi 11347 else 11348 # not using gcc 11349 if test "$host_cpu" = ia64; then 11350 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11351 # chokes on -Wl,-G. The following line is correct: 11352 shared_flag='-G' 11353 else 11354 if test "$aix_use_runtimelinking" = yes; then 11355 shared_flag='${wl}-G' 11356 else 11357 shared_flag='${wl}-bM:SRE' 11358 fi 11359 fi 11360 fi 11361 11362 # It seems that -bexpall does not export symbols beginning with 11363 # underscore (_), so it is better to generate a list of symbols to export. 11364 always_export_symbols_CXX=yes 11365 if test "$aix_use_runtimelinking" = yes; then 11366 # Warning - without using the other runtime loading flags (-brtl), 11367 # -berok will link without error, but may produce a broken library. 11368 allow_undefined_flag_CXX='-berok' 11369 # Determine the default libpath from the value encoded in an empty executable. 11370 cat >conftest.$ac_ext <<_ACEOF 11371/* confdefs.h. */ 11372_ACEOF 11373cat confdefs.h >>conftest.$ac_ext 11374cat >>conftest.$ac_ext <<_ACEOF 11375/* end confdefs.h. */ 11376 11377int 11378main () 11379{ 11380 11381 ; 11382 return 0; 11383} 11384_ACEOF 11385rm -f conftest.$ac_objext conftest$ac_exeext 11386if { (ac_try="$ac_link" 11387case "(($ac_try" in 11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11389 *) ac_try_echo=$ac_try;; 11390esac 11391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11392 (eval "$ac_link") 2>conftest.er1 11393 ac_status=$? 11394 grep -v '^ *+' conftest.er1 >conftest.err 11395 rm -f conftest.er1 11396 cat conftest.err >&5 11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11398 (exit $ac_status); } && 11399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11400 { (case "(($ac_try" in 11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11402 *) ac_try_echo=$ac_try;; 11403esac 11404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11405 (eval "$ac_try") 2>&5 11406 ac_status=$? 11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11408 (exit $ac_status); }; } && 11409 { ac_try='test -s conftest$ac_exeext' 11410 { (case "(($ac_try" in 11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11412 *) ac_try_echo=$ac_try;; 11413esac 11414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11415 (eval "$ac_try") 2>&5 11416 ac_status=$? 11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11418 (exit $ac_status); }; }; then 11419 11420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11421}'` 11422# Check for a 64-bit object if we didn't find anything. 11423if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11424}'`; fi 11425else 11426 echo "$as_me: failed program was:" >&5 11427sed 's/^/| /' conftest.$ac_ext >&5 11428 11429 11430fi 11431 11432rm -f core conftest.err conftest.$ac_objext \ 11433 conftest$ac_exeext conftest.$ac_ext 11434if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11435 11436 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11437 11438 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" 11439 else 11440 if test "$host_cpu" = ia64; then 11441 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11442 allow_undefined_flag_CXX="-z nodefs" 11443 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" 11444 else 11445 # Determine the default libpath from the value encoded in an empty executable. 11446 cat >conftest.$ac_ext <<_ACEOF 11447/* confdefs.h. */ 11448_ACEOF 11449cat confdefs.h >>conftest.$ac_ext 11450cat >>conftest.$ac_ext <<_ACEOF 11451/* end confdefs.h. */ 11452 11453int 11454main () 11455{ 11456 11457 ; 11458 return 0; 11459} 11460_ACEOF 11461rm -f conftest.$ac_objext conftest$ac_exeext 11462if { (ac_try="$ac_link" 11463case "(($ac_try" in 11464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11465 *) ac_try_echo=$ac_try;; 11466esac 11467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11468 (eval "$ac_link") 2>conftest.er1 11469 ac_status=$? 11470 grep -v '^ *+' conftest.er1 >conftest.err 11471 rm -f conftest.er1 11472 cat conftest.err >&5 11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11474 (exit $ac_status); } && 11475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11476 { (case "(($ac_try" in 11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11478 *) ac_try_echo=$ac_try;; 11479esac 11480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11481 (eval "$ac_try") 2>&5 11482 ac_status=$? 11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11484 (exit $ac_status); }; } && 11485 { ac_try='test -s conftest$ac_exeext' 11486 { (case "(($ac_try" in 11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11488 *) ac_try_echo=$ac_try;; 11489esac 11490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11491 (eval "$ac_try") 2>&5 11492 ac_status=$? 11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11494 (exit $ac_status); }; }; then 11495 11496aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11497}'` 11498# Check for a 64-bit object if we didn't find anything. 11499if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11500}'`; fi 11501else 11502 echo "$as_me: failed program was:" >&5 11503sed 's/^/| /' conftest.$ac_ext >&5 11504 11505 11506fi 11507 11508rm -f core conftest.err conftest.$ac_objext \ 11509 conftest$ac_exeext conftest.$ac_ext 11510if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11511 11512 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11513 # Warning - without using the other run time loading flags, 11514 # -berok will link without error, but may produce a broken library. 11515 no_undefined_flag_CXX=' ${wl}-bernotok' 11516 allow_undefined_flag_CXX=' ${wl}-berok' 11517 # Exported symbols can be pulled into shared objects from archives 11518 whole_archive_flag_spec_CXX='$convenience' 11519 archive_cmds_need_lc_CXX=yes 11520 # This is similar to how AIX traditionally builds its shared libraries. 11521 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' 11522 fi 11523 fi 11524 ;; 11525 11526 beos*) 11527 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11528 allow_undefined_flag_CXX=unsupported 11529 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11530 # support --undefined. This deserves some investigation. FIXME 11531 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11532 else 11533 ld_shlibs_CXX=no 11534 fi 11535 ;; 11536 11537 chorus*) 11538 case $cc_basename in 11539 *) 11540 # FIXME: insert proper C++ library support 11541 ld_shlibs_CXX=no 11542 ;; 11543 esac 11544 ;; 11545 11546 cygwin* | mingw* | pw32*) 11547 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11548 # as there is no search path for DLLs. 11549 hardcode_libdir_flag_spec_CXX='-L$libdir' 11550 allow_undefined_flag_CXX=unsupported 11551 always_export_symbols_CXX=no 11552 enable_shared_with_static_runtimes_CXX=yes 11553 11554 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11555 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' 11556 # If the export-symbols file already is a .def file (1st line 11557 # is EXPORTS), use it as is; otherwise, prepend... 11558 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11559 cp $export_symbols $output_objdir/$soname.def; 11560 else 11561 echo EXPORTS > $output_objdir/$soname.def; 11562 cat $export_symbols >> $output_objdir/$soname.def; 11563 fi~ 11564 $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' 11565 else 11566 ld_shlibs_CXX=no 11567 fi 11568 ;; 11569 darwin* | rhapsody*) 11570 case $host_os in 11571 rhapsody* | darwin1.[012]) 11572 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11573 ;; 11574 *) # Darwin 1.3 on 11575 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11576 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11577 else 11578 case ${MACOSX_DEPLOYMENT_TARGET} in 11579 10.[012]) 11580 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11581 ;; 11582 10.*) 11583 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11584 ;; 11585 esac 11586 fi 11587 ;; 11588 esac 11589 archive_cmds_need_lc_CXX=no 11590 hardcode_direct_CXX=no 11591 hardcode_automatic_CXX=yes 11592 hardcode_shlibpath_var_CXX=unsupported 11593 whole_archive_flag_spec_CXX='' 11594 link_all_deplibs_CXX=yes 11595 11596 if test "$GXX" = yes ; then 11597 lt_int_apple_cc_single_mod=no 11598 output_verbose_link_cmd='echo' 11599 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11600 lt_int_apple_cc_single_mod=yes 11601 fi 11602 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11603 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11604 else 11605 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' 11606 fi 11607 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11608 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11609 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11610 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}' 11611 else 11612 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}' 11613 fi 11614 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}' 11615 else 11616 case $cc_basename in 11617 xlc*) 11618 output_verbose_link_cmd='echo' 11619 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 11620 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11621 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11622 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11623 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}' 11624 ;; 11625 *) 11626 ld_shlibs_CXX=no 11627 ;; 11628 esac 11629 fi 11630 ;; 11631 11632 dgux*) 11633 case $cc_basename in 11634 ec++*) 11635 # FIXME: insert proper C++ library support 11636 ld_shlibs_CXX=no 11637 ;; 11638 ghcx*) 11639 # Green Hills C++ Compiler 11640 # FIXME: insert proper C++ library support 11641 ld_shlibs_CXX=no 11642 ;; 11643 *) 11644 # FIXME: insert proper C++ library support 11645 ld_shlibs_CXX=no 11646 ;; 11647 esac 11648 ;; 11649 freebsd[12]*) 11650 # C++ shared libraries reported to be fairly broken before switch to ELF 11651 ld_shlibs_CXX=no 11652 ;; 11653 freebsd-elf*) 11654 archive_cmds_need_lc_CXX=no 11655 ;; 11656 freebsd* | kfreebsd*-gnu | dragonfly*) 11657 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11658 # conventions 11659 ld_shlibs_CXX=yes 11660 ;; 11661 gnu*) 11662 ;; 11663 hpux9*) 11664 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11665 hardcode_libdir_separator_CXX=: 11666 export_dynamic_flag_spec_CXX='${wl}-E' 11667 hardcode_direct_CXX=yes 11668 hardcode_minus_L_CXX=yes # Not in the search PATH, 11669 # but as the default 11670 # location of the library. 11671 11672 case $cc_basename in 11673 CC*) 11674 # FIXME: insert proper C++ library support 11675 ld_shlibs_CXX=no 11676 ;; 11677 aCC*) 11678 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' 11679 # Commands to make compiler produce verbose output that lists 11680 # what "hidden" libraries, object files and flags are used when 11681 # linking a shared library. 11682 # 11683 # There doesn't appear to be a way to prevent this compiler from 11684 # explicitly linking system object files so we need to strip them 11685 # from the output so that they don't get included in the library 11686 # dependencies. 11687 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' 11688 ;; 11689 *) 11690 if test "$GXX" = yes; then 11691 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' 11692 else 11693 # FIXME: insert proper C++ library support 11694 ld_shlibs_CXX=no 11695 fi 11696 ;; 11697 esac 11698 ;; 11699 hpux10*|hpux11*) 11700 if test $with_gnu_ld = no; then 11701 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11702 hardcode_libdir_separator_CXX=: 11703 11704 case $host_cpu in 11705 hppa*64*|ia64*) 11706 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11707 ;; 11708 *) 11709 export_dynamic_flag_spec_CXX='${wl}-E' 11710 ;; 11711 esac 11712 fi 11713 case $host_cpu in 11714 hppa*64*|ia64*) 11715 hardcode_direct_CXX=no 11716 hardcode_shlibpath_var_CXX=no 11717 ;; 11718 *) 11719 hardcode_direct_CXX=yes 11720 hardcode_minus_L_CXX=yes # Not in the search PATH, 11721 # but as the default 11722 # location of the library. 11723 ;; 11724 esac 11725 11726 case $cc_basename in 11727 CC*) 11728 # FIXME: insert proper C++ library support 11729 ld_shlibs_CXX=no 11730 ;; 11731 aCC*) 11732 case $host_cpu in 11733 hppa*64*) 11734 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11735 ;; 11736 ia64*) 11737 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11738 ;; 11739 *) 11740 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11741 ;; 11742 esac 11743 # Commands to make compiler produce verbose output that lists 11744 # what "hidden" libraries, object files and flags are used when 11745 # linking a shared library. 11746 # 11747 # There doesn't appear to be a way to prevent this compiler from 11748 # explicitly linking system object files so we need to strip them 11749 # from the output so that they don't get included in the library 11750 # dependencies. 11751 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' 11752 ;; 11753 *) 11754 if test "$GXX" = yes; then 11755 if test $with_gnu_ld = no; then 11756 case $host_cpu in 11757 hppa*64*) 11758 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11759 ;; 11760 ia64*) 11761 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11762 ;; 11763 *) 11764 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' 11765 ;; 11766 esac 11767 fi 11768 else 11769 # FIXME: insert proper C++ library support 11770 ld_shlibs_CXX=no 11771 fi 11772 ;; 11773 esac 11774 ;; 11775 interix3*) 11776 hardcode_direct_CXX=no 11777 hardcode_shlibpath_var_CXX=no 11778 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11779 export_dynamic_flag_spec_CXX='${wl}-E' 11780 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11781 # Instead, shared libraries are loaded at an image base (0x10000000 by 11782 # default) and relocated if they conflict, which is a slow very memory 11783 # consuming and fragmenting process. To avoid this, we pick a random, 11784 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11785 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11786 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' 11787 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' 11788 ;; 11789 irix5* | irix6*) 11790 case $cc_basename in 11791 CC*) 11792 # SGI C++ 11793 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' 11794 11795 # Archives containing C++ object files must be created using 11796 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11797 # necessary to make sure instantiated templates are included 11798 # in the archive. 11799 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11800 ;; 11801 *) 11802 if test "$GXX" = yes; then 11803 if test "$with_gnu_ld" = no; then 11804 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' 11805 else 11806 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' 11807 fi 11808 fi 11809 link_all_deplibs_CXX=yes 11810 ;; 11811 esac 11812 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11813 hardcode_libdir_separator_CXX=: 11814 ;; 11815 linux*) 11816 case $cc_basename in 11817 KCC*) 11818 # Kuck and Associates, Inc. (KAI) C++ Compiler 11819 11820 # KCC will only create a shared library if the output file 11821 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11822 # to its proper name (with version) after linking. 11823 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' 11824 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' 11825 # Commands to make compiler produce verbose output that lists 11826 # what "hidden" libraries, object files and flags are used when 11827 # linking a shared library. 11828 # 11829 # There doesn't appear to be a way to prevent this compiler from 11830 # explicitly linking system object files so we need to strip them 11831 # from the output so that they don't get included in the library 11832 # dependencies. 11833 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' 11834 11835 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11836 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11837 11838 # Archives containing C++ object files must be created using 11839 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11840 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11841 ;; 11842 icpc*) 11843 # Intel C++ 11844 with_gnu_ld=yes 11845 # version 8.0 and above of icpc choke on multiply defined symbols 11846 # if we add $predep_objects and $postdep_objects, however 7.1 and 11847 # earlier do not add the objects themselves. 11848 case `$CC -V 2>&1` in 11849 *"Version 7."*) 11850 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11851 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' 11852 ;; 11853 *) # Version 8.0 or newer 11854 tmp_idyn= 11855 case $host_cpu in 11856 ia64*) tmp_idyn=' -i_dynamic';; 11857 esac 11858 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11859 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' 11860 ;; 11861 esac 11862 archive_cmds_need_lc_CXX=no 11863 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11864 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11865 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11866 ;; 11867 pgCC*) 11868 # Portland Group C++ compiler 11869 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11870 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' 11871 11872 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11873 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11874 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' 11875 ;; 11876 cxx*) 11877 # Compaq C++ 11878 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11879 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' 11880 11881 runpath_var=LD_RUN_PATH 11882 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11883 hardcode_libdir_separator_CXX=: 11884 11885 # Commands to make compiler produce verbose output that lists 11886 # what "hidden" libraries, object files and flags are used when 11887 # linking a shared library. 11888 # 11889 # There doesn't appear to be a way to prevent this compiler from 11890 # explicitly linking system object files so we need to strip them 11891 # from the output so that they don't get included in the library 11892 # dependencies. 11893 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' 11894 ;; 11895 esac 11896 ;; 11897 lynxos*) 11898 # FIXME: insert proper C++ library support 11899 ld_shlibs_CXX=no 11900 ;; 11901 m88k*) 11902 # FIXME: insert proper C++ library support 11903 ld_shlibs_CXX=no 11904 ;; 11905 mvs*) 11906 case $cc_basename in 11907 cxx*) 11908 # FIXME: insert proper C++ library support 11909 ld_shlibs_CXX=no 11910 ;; 11911 *) 11912 # FIXME: insert proper C++ library support 11913 ld_shlibs_CXX=no 11914 ;; 11915 esac 11916 ;; 11917 netbsd*) 11918 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11919 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11920 wlarc= 11921 hardcode_libdir_flag_spec_CXX='-R$libdir' 11922 hardcode_direct_CXX=yes 11923 hardcode_shlibpath_var_CXX=no 11924 fi 11925 # Workaround some broken pre-1.5 toolchains 11926 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11927 ;; 11928 openbsd2*) 11929 # C++ shared libraries are fairly broken 11930 ld_shlibs_CXX=no 11931 ;; 11932 openbsd*) 11933 hardcode_direct_CXX=yes 11934 hardcode_shlibpath_var_CXX=no 11935 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11936 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11937 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11938 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11939 export_dynamic_flag_spec_CXX='${wl}-E' 11940 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11941 fi 11942 output_verbose_link_cmd='echo' 11943 ;; 11944 osf3*) 11945 case $cc_basename in 11946 KCC*) 11947 # Kuck and Associates, Inc. (KAI) C++ Compiler 11948 11949 # KCC will only create a shared library if the output file 11950 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11951 # to its proper name (with version) after linking. 11952 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' 11953 11954 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11955 hardcode_libdir_separator_CXX=: 11956 11957 # Archives containing C++ object files must be created using 11958 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11959 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11960 11961 ;; 11962 RCC*) 11963 # Rational C++ 2.4.1 11964 # FIXME: insert proper C++ library support 11965 ld_shlibs_CXX=no 11966 ;; 11967 cxx*) 11968 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11969 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' 11970 11971 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11972 hardcode_libdir_separator_CXX=: 11973 11974 # Commands to make compiler produce verbose output that lists 11975 # what "hidden" libraries, object files and flags are used when 11976 # linking a shared library. 11977 # 11978 # There doesn't appear to be a way to prevent this compiler from 11979 # explicitly linking system object files so we need to strip them 11980 # from the output so that they don't get included in the library 11981 # dependencies. 11982 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' 11983 ;; 11984 *) 11985 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 11986 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11987 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' 11988 11989 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11990 hardcode_libdir_separator_CXX=: 11991 11992 # Commands to make compiler produce verbose output that lists 11993 # what "hidden" libraries, object files and flags are used when 11994 # linking a shared library. 11995 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11996 11997 else 11998 # FIXME: insert proper C++ library support 11999 ld_shlibs_CXX=no 12000 fi 12001 ;; 12002 esac 12003 ;; 12004 osf4* | osf5*) 12005 case $cc_basename in 12006 KCC*) 12007 # Kuck and Associates, Inc. (KAI) C++ Compiler 12008 12009 # KCC will only create a shared library if the output file 12010 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12011 # to its proper name (with version) after linking. 12012 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' 12013 12014 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12015 hardcode_libdir_separator_CXX=: 12016 12017 # Archives containing C++ object files must be created using 12018 # the KAI C++ compiler. 12019 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12020 ;; 12021 RCC*) 12022 # Rational C++ 2.4.1 12023 # FIXME: insert proper C++ library support 12024 ld_shlibs_CXX=no 12025 ;; 12026 cxx*) 12027 allow_undefined_flag_CXX=' -expect_unresolved \*' 12028 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' 12029 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12030 echo "-hidden">> $lib.exp~ 12031 $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~ 12032 $rm $lib.exp' 12033 12034 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12035 hardcode_libdir_separator_CXX=: 12036 12037 # Commands to make compiler produce verbose output that lists 12038 # what "hidden" libraries, object files and flags are used when 12039 # linking a shared library. 12040 # 12041 # There doesn't appear to be a way to prevent this compiler from 12042 # explicitly linking system object files so we need to strip them 12043 # from the output so that they don't get included in the library 12044 # dependencies. 12045 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' 12046 ;; 12047 *) 12048 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12049 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12050 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' 12051 12052 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12053 hardcode_libdir_separator_CXX=: 12054 12055 # Commands to make compiler produce verbose output that lists 12056 # what "hidden" libraries, object files and flags are used when 12057 # linking a shared library. 12058 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12059 12060 else 12061 # FIXME: insert proper C++ library support 12062 ld_shlibs_CXX=no 12063 fi 12064 ;; 12065 esac 12066 ;; 12067 psos*) 12068 # FIXME: insert proper C++ library support 12069 ld_shlibs_CXX=no 12070 ;; 12071 sunos4*) 12072 case $cc_basename in 12073 CC*) 12074 # Sun C++ 4.x 12075 # FIXME: insert proper C++ library support 12076 ld_shlibs_CXX=no 12077 ;; 12078 lcc*) 12079 # Lucid 12080 # FIXME: insert proper C++ library support 12081 ld_shlibs_CXX=no 12082 ;; 12083 *) 12084 # FIXME: insert proper C++ library support 12085 ld_shlibs_CXX=no 12086 ;; 12087 esac 12088 ;; 12089 solaris*) 12090 case $cc_basename in 12091 CC*) 12092 # Sun C++ 4.2, 5.x and Centerline C++ 12093 archive_cmds_need_lc_CXX=yes 12094 no_undefined_flag_CXX=' -zdefs' 12095 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12096 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12097 $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' 12098 12099 hardcode_libdir_flag_spec_CXX='-R$libdir' 12100 hardcode_shlibpath_var_CXX=no 12101 case $host_os in 12102 solaris2.[0-5] | solaris2.[0-5].*) ;; 12103 *) 12104 # The C++ compiler is used as linker so we must use $wl 12105 # flag to pass the commands to the underlying system 12106 # linker. We must also pass each convience library through 12107 # to the system linker between allextract/defaultextract. 12108 # The C++ compiler will combine linker options so we 12109 # cannot just pass the convience library names through 12110 # without $wl. 12111 # Supported since Solaris 2.6 (maybe 2.5.1?) 12112 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 12113 ;; 12114 esac 12115 link_all_deplibs_CXX=yes 12116 12117 output_verbose_link_cmd='echo' 12118 12119 # Archives containing C++ object files must be created using 12120 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12121 # necessary to make sure instantiated templates are included 12122 # in the archive. 12123 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12124 ;; 12125 gcx*) 12126 # Green Hills C++ Compiler 12127 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12128 12129 # The C++ compiler must be used to create the archive. 12130 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12131 ;; 12132 *) 12133 # GNU C++ compiler with Solaris linker 12134 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12135 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12136 if $CC --version | grep -v '^2\.7' > /dev/null; then 12137 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12138 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12139 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12140 12141 # Commands to make compiler produce verbose output that lists 12142 # what "hidden" libraries, object files and flags are used when 12143 # linking a shared library. 12144 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12145 else 12146 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12147 # platform. 12148 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12149 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12150 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12151 12152 # Commands to make compiler produce verbose output that lists 12153 # what "hidden" libraries, object files and flags are used when 12154 # linking a shared library. 12155 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12156 fi 12157 12158 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12159 fi 12160 ;; 12161 esac 12162 ;; 12163 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12164 no_undefined_flag_CXX='${wl}-z,text' 12165 archive_cmds_need_lc_CXX=no 12166 hardcode_shlibpath_var_CXX=no 12167 runpath_var='LD_RUN_PATH' 12168 12169 case $cc_basename in 12170 CC*) 12171 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12172 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12173 ;; 12174 *) 12175 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12176 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12177 ;; 12178 esac 12179 ;; 12180 sysv5* | sco3.2v5* | sco5v6*) 12181 # Note: We can NOT use -z defs as we might desire, because we do not 12182 # link with -lc, and that would cause any symbols used from libc to 12183 # always be unresolved, which means just about no library would 12184 # ever link correctly. If we're not using GNU ld we use -z text 12185 # though, which does catch some bad symbols but isn't as heavy-handed 12186 # as -z defs. 12187 # For security reasons, it is highly recommended that you always 12188 # use absolute paths for naming shared libraries, and exclude the 12189 # DT_RUNPATH tag from executables and libraries. But doing so 12190 # requires that you compile everything twice, which is a pain. 12191 # So that behaviour is only enabled if SCOABSPATH is set to a 12192 # non-empty value in the environment. Most likely only useful for 12193 # creating official distributions of packages. 12194 # This is a hack until libtool officially supports absolute path 12195 # names for shared libraries. 12196 no_undefined_flag_CXX='${wl}-z,text' 12197 allow_undefined_flag_CXX='${wl}-z,nodefs' 12198 archive_cmds_need_lc_CXX=no 12199 hardcode_shlibpath_var_CXX=no 12200 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12201 hardcode_libdir_separator_CXX=':' 12202 link_all_deplibs_CXX=yes 12203 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12204 runpath_var='LD_RUN_PATH' 12205 12206 case $cc_basename in 12207 CC*) 12208 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12209 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12210 ;; 12211 *) 12212 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12213 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12214 ;; 12215 esac 12216 ;; 12217 tandem*) 12218 case $cc_basename in 12219 NCC*) 12220 # NonStop-UX NCC 3.20 12221 # FIXME: insert proper C++ library support 12222 ld_shlibs_CXX=no 12223 ;; 12224 *) 12225 # FIXME: insert proper C++ library support 12226 ld_shlibs_CXX=no 12227 ;; 12228 esac 12229 ;; 12230 vxworks*) 12231 # FIXME: insert proper C++ library support 12232 ld_shlibs_CXX=no 12233 ;; 12234 *) 12235 # FIXME: insert proper C++ library support 12236 ld_shlibs_CXX=no 12237 ;; 12238esac 12239{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12240echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12241test "$ld_shlibs_CXX" = no && can_build_shared=no 12242 12243GCC_CXX="$GXX" 12244LD_CXX="$LD" 12245 12246 12247cat > conftest.$ac_ext <<EOF 12248class Foo 12249{ 12250public: 12251 Foo (void) { a = 0; } 12252private: 12253 int a; 12254}; 12255EOF 12256 12257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12258 (eval $ac_compile) 2>&5 12259 ac_status=$? 12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12261 (exit $ac_status); }; then 12262 # Parse the compiler output and extract the necessary 12263 # objects, libraries and library flags. 12264 12265 # Sentinel used to keep track of whether or not we are before 12266 # the conftest object file. 12267 pre_test_object_deps_done=no 12268 12269 # The `*' in the case matches for architectures that use `case' in 12270 # $output_verbose_cmd can trigger glob expansion during the loop 12271 # eval without this substitution. 12272 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12273 12274 for p in `eval $output_verbose_link_cmd`; do 12275 case $p in 12276 12277 -L* | -R* | -l*) 12278 # Some compilers place space between "-{L,R}" and the path. 12279 # Remove the space. 12280 if test $p = "-L" \ 12281 || test $p = "-R"; then 12282 prev=$p 12283 continue 12284 else 12285 prev= 12286 fi 12287 12288 if test "$pre_test_object_deps_done" = no; then 12289 case $p in 12290 -L* | -R*) 12291 # Internal compiler library paths should come after those 12292 # provided the user. The postdeps already come after the 12293 # user supplied libs so there is no need to process them. 12294 if test -z "$compiler_lib_search_path_CXX"; then 12295 compiler_lib_search_path_CXX="${prev}${p}" 12296 else 12297 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12298 fi 12299 ;; 12300 # The "-l" case would never come before the object being 12301 # linked, so don't bother handling this case. 12302 esac 12303 else 12304 if test -z "$postdeps_CXX"; then 12305 postdeps_CXX="${prev}${p}" 12306 else 12307 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12308 fi 12309 fi 12310 ;; 12311 12312 *.$objext) 12313 # This assumes that the test object file only shows up 12314 # once in the compiler output. 12315 if test "$p" = "conftest.$objext"; then 12316 pre_test_object_deps_done=yes 12317 continue 12318 fi 12319 12320 if test "$pre_test_object_deps_done" = no; then 12321 if test -z "$predep_objects_CXX"; then 12322 predep_objects_CXX="$p" 12323 else 12324 predep_objects_CXX="$predep_objects_CXX $p" 12325 fi 12326 else 12327 if test -z "$postdep_objects_CXX"; then 12328 postdep_objects_CXX="$p" 12329 else 12330 postdep_objects_CXX="$postdep_objects_CXX $p" 12331 fi 12332 fi 12333 ;; 12334 12335 *) ;; # Ignore the rest. 12336 12337 esac 12338 done 12339 12340 # Clean up. 12341 rm -f a.out a.exe 12342else 12343 echo "libtool.m4: error: problem compiling CXX test program" 12344fi 12345 12346$rm -f confest.$objext 12347 12348# PORTME: override above test on systems where it is broken 12349case $host_os in 12350interix3*) 12351 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12352 # hack all around it, let's just trust "g++" to DTRT. 12353 predep_objects_CXX= 12354 postdep_objects_CXX= 12355 postdeps_CXX= 12356 ;; 12357 12358solaris*) 12359 case $cc_basename in 12360 CC*) 12361 # Adding this requires a known-good setup of shared libraries for 12362 # Sun compiler versions before 5.6, else PIC objects from an old 12363 # archive will be linked into the output, leading to subtle bugs. 12364 postdeps_CXX='-lCstd -lCrun' 12365 ;; 12366 esac 12367 ;; 12368esac 12369 12370 12371case " $postdeps_CXX " in 12372*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12373esac 12374 12375lt_prog_compiler_wl_CXX= 12376lt_prog_compiler_pic_CXX= 12377lt_prog_compiler_static_CXX= 12378 12379{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12380echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12381 12382 # C++ specific cases for pic, static, wl, etc. 12383 if test "$GXX" = yes; then 12384 lt_prog_compiler_wl_CXX='-Wl,' 12385 lt_prog_compiler_static_CXX='-static' 12386 12387 case $host_os in 12388 aix*) 12389 # All AIX code is PIC. 12390 if test "$host_cpu" = ia64; then 12391 # AIX 5 now supports IA64 processor 12392 lt_prog_compiler_static_CXX='-Bstatic' 12393 fi 12394 ;; 12395 amigaos*) 12396 # FIXME: we need at least 68020 code to build shared libraries, but 12397 # adding the `-m68020' flag to GCC prevents building anything better, 12398 # like `-m68040'. 12399 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12400 ;; 12401 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12402 # PIC is the default for these OSes. 12403 ;; 12404 mingw* | os2* | pw32*) 12405 # This hack is so that the source file can tell whether it is being 12406 # built for inclusion in a dll (and should export symbols for example). 12407 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12408 ;; 12409 darwin* | rhapsody*) 12410 # PIC is the default on this platform 12411 # Common symbols not allowed in MH_DYLIB files 12412 lt_prog_compiler_pic_CXX='-fno-common' 12413 ;; 12414 *djgpp*) 12415 # DJGPP does not support shared libraries at all 12416 lt_prog_compiler_pic_CXX= 12417 ;; 12418 interix3*) 12419 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12420 # Instead, we relocate shared libraries at runtime. 12421 ;; 12422 sysv4*MP*) 12423 if test -d /usr/nec; then 12424 lt_prog_compiler_pic_CXX=-Kconform_pic 12425 fi 12426 ;; 12427 hpux*) 12428 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12429 # not for PA HP-UX. 12430 case $host_cpu in 12431 hppa*64*|ia64*) 12432 ;; 12433 *) 12434 lt_prog_compiler_pic_CXX='-fPIC' 12435 ;; 12436 esac 12437 ;; 12438 *) 12439 lt_prog_compiler_pic_CXX='-fPIC' 12440 ;; 12441 esac 12442 else 12443 case $host_os in 12444 aix4* | aix5*) 12445 # All AIX code is PIC. 12446 if test "$host_cpu" = ia64; then 12447 # AIX 5 now supports IA64 processor 12448 lt_prog_compiler_static_CXX='-Bstatic' 12449 else 12450 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12451 fi 12452 ;; 12453 chorus*) 12454 case $cc_basename in 12455 cxch68*) 12456 # Green Hills C++ Compiler 12457 # _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" 12458 ;; 12459 esac 12460 ;; 12461 darwin*) 12462 # PIC is the default on this platform 12463 # Common symbols not allowed in MH_DYLIB files 12464 case $cc_basename in 12465 xlc*) 12466 lt_prog_compiler_pic_CXX='-qnocommon' 12467 lt_prog_compiler_wl_CXX='-Wl,' 12468 ;; 12469 esac 12470 ;; 12471 dgux*) 12472 case $cc_basename in 12473 ec++*) 12474 lt_prog_compiler_pic_CXX='-KPIC' 12475 ;; 12476 ghcx*) 12477 # Green Hills C++ Compiler 12478 lt_prog_compiler_pic_CXX='-pic' 12479 ;; 12480 *) 12481 ;; 12482 esac 12483 ;; 12484 freebsd* | kfreebsd*-gnu | dragonfly*) 12485 # FreeBSD uses GNU C++ 12486 ;; 12487 hpux9* | hpux10* | hpux11*) 12488 case $cc_basename in 12489 CC*) 12490 lt_prog_compiler_wl_CXX='-Wl,' 12491 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12492 if test "$host_cpu" != ia64; then 12493 lt_prog_compiler_pic_CXX='+Z' 12494 fi 12495 ;; 12496 aCC*) 12497 lt_prog_compiler_wl_CXX='-Wl,' 12498 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12499 case $host_cpu in 12500 hppa*64*|ia64*) 12501 # +Z the default 12502 ;; 12503 *) 12504 lt_prog_compiler_pic_CXX='+Z' 12505 ;; 12506 esac 12507 ;; 12508 *) 12509 ;; 12510 esac 12511 ;; 12512 interix*) 12513 # This is c89, which is MS Visual C++ (no shared libs) 12514 # Anyone wants to do a port? 12515 ;; 12516 irix5* | irix6* | nonstopux*) 12517 case $cc_basename in 12518 CC*) 12519 lt_prog_compiler_wl_CXX='-Wl,' 12520 lt_prog_compiler_static_CXX='-non_shared' 12521 # CC pic flag -KPIC is the default. 12522 ;; 12523 *) 12524 ;; 12525 esac 12526 ;; 12527 linux*) 12528 case $cc_basename in 12529 KCC*) 12530 # KAI C++ Compiler 12531 lt_prog_compiler_wl_CXX='--backend -Wl,' 12532 lt_prog_compiler_pic_CXX='-fPIC' 12533 ;; 12534 icpc* | ecpc*) 12535 # Intel C++ 12536 lt_prog_compiler_wl_CXX='-Wl,' 12537 lt_prog_compiler_pic_CXX='-KPIC' 12538 lt_prog_compiler_static_CXX='-static' 12539 ;; 12540 pgCC*) 12541 # Portland Group C++ compiler. 12542 lt_prog_compiler_wl_CXX='-Wl,' 12543 lt_prog_compiler_pic_CXX='-fpic' 12544 lt_prog_compiler_static_CXX='-Bstatic' 12545 ;; 12546 cxx*) 12547 # Compaq C++ 12548 # Make sure the PIC flag is empty. It appears that all Alpha 12549 # Linux and Compaq Tru64 Unix objects are PIC. 12550 lt_prog_compiler_pic_CXX= 12551 lt_prog_compiler_static_CXX='-non_shared' 12552 ;; 12553 *) 12554 ;; 12555 esac 12556 ;; 12557 lynxos*) 12558 ;; 12559 m88k*) 12560 ;; 12561 mvs*) 12562 case $cc_basename in 12563 cxx*) 12564 lt_prog_compiler_pic_CXX='-W c,exportall' 12565 ;; 12566 *) 12567 ;; 12568 esac 12569 ;; 12570 netbsd*) 12571 ;; 12572 osf3* | osf4* | osf5*) 12573 case $cc_basename in 12574 KCC*) 12575 lt_prog_compiler_wl_CXX='--backend -Wl,' 12576 ;; 12577 RCC*) 12578 # Rational C++ 2.4.1 12579 lt_prog_compiler_pic_CXX='-pic' 12580 ;; 12581 cxx*) 12582 # Digital/Compaq C++ 12583 lt_prog_compiler_wl_CXX='-Wl,' 12584 # Make sure the PIC flag is empty. It appears that all Alpha 12585 # Linux and Compaq Tru64 Unix objects are PIC. 12586 lt_prog_compiler_pic_CXX= 12587 lt_prog_compiler_static_CXX='-non_shared' 12588 ;; 12589 *) 12590 ;; 12591 esac 12592 ;; 12593 psos*) 12594 ;; 12595 solaris*) 12596 case $cc_basename in 12597 CC*) 12598 # Sun C++ 4.2, 5.x and Centerline C++ 12599 lt_prog_compiler_pic_CXX='-KPIC' 12600 lt_prog_compiler_static_CXX='-Bstatic' 12601 lt_prog_compiler_wl_CXX='-Qoption ld ' 12602 ;; 12603 gcx*) 12604 # Green Hills C++ Compiler 12605 lt_prog_compiler_pic_CXX='-PIC' 12606 ;; 12607 *) 12608 ;; 12609 esac 12610 ;; 12611 sunos4*) 12612 case $cc_basename in 12613 CC*) 12614 # Sun C++ 4.x 12615 lt_prog_compiler_pic_CXX='-pic' 12616 lt_prog_compiler_static_CXX='-Bstatic' 12617 ;; 12618 lcc*) 12619 # Lucid 12620 lt_prog_compiler_pic_CXX='-pic' 12621 ;; 12622 *) 12623 ;; 12624 esac 12625 ;; 12626 tandem*) 12627 case $cc_basename in 12628 NCC*) 12629 # NonStop-UX NCC 3.20 12630 lt_prog_compiler_pic_CXX='-KPIC' 12631 ;; 12632 *) 12633 ;; 12634 esac 12635 ;; 12636 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12637 case $cc_basename in 12638 CC*) 12639 lt_prog_compiler_wl_CXX='-Wl,' 12640 lt_prog_compiler_pic_CXX='-KPIC' 12641 lt_prog_compiler_static_CXX='-Bstatic' 12642 ;; 12643 esac 12644 ;; 12645 vxworks*) 12646 ;; 12647 *) 12648 lt_prog_compiler_can_build_shared_CXX=no 12649 ;; 12650 esac 12651 fi 12652 12653{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12654echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12655 12656# 12657# Check to make sure the PIC flag actually works. 12658# 12659if test -n "$lt_prog_compiler_pic_CXX"; then 12660 12661{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12662echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12663if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12664 echo $ECHO_N "(cached) $ECHO_C" >&6 12665else 12666 lt_prog_compiler_pic_works_CXX=no 12667 ac_outfile=conftest.$ac_objext 12668 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12669 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12670 # Insert the option either (1) after the last *FLAGS variable, or 12671 # (2) before a word containing "conftest.", or (3) at the end. 12672 # Note that $ac_compile itself does not contain backslashes and begins 12673 # with a dollar sign (not a hyphen), so the echo should work correctly. 12674 # The option is referenced via a variable to avoid confusing sed. 12675 lt_compile=`echo "$ac_compile" | $SED \ 12676 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12677 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12678 -e 's:$: $lt_compiler_flag:'` 12679 (eval echo "\"\$as_me:12679: $lt_compile\"" >&5) 12680 (eval "$lt_compile" 2>conftest.err) 12681 ac_status=$? 12682 cat conftest.err >&5 12683 echo "$as_me:12683: \$? = $ac_status" >&5 12684 if (exit $ac_status) && test -s "$ac_outfile"; then 12685 # The compiler can only warn and ignore the option if not recognized 12686 # So say no if there are warnings other than the usual output. 12687 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12689 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12690 lt_prog_compiler_pic_works_CXX=yes 12691 fi 12692 fi 12693 $rm conftest* 12694 12695fi 12696{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12697echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12698 12699if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12700 case $lt_prog_compiler_pic_CXX in 12701 "" | " "*) ;; 12702 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12703 esac 12704else 12705 lt_prog_compiler_pic_CXX= 12706 lt_prog_compiler_can_build_shared_CXX=no 12707fi 12708 12709fi 12710case $host_os in 12711 # For platforms which do not support PIC, -DPIC is meaningless: 12712 *djgpp*) 12713 lt_prog_compiler_pic_CXX= 12714 ;; 12715 *) 12716 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12717 ;; 12718esac 12719 12720# 12721# Check to make sure the static flag actually works. 12722# 12723wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12724{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12725echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12726if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12727 echo $ECHO_N "(cached) $ECHO_C" >&6 12728else 12729 lt_prog_compiler_static_works_CXX=no 12730 save_LDFLAGS="$LDFLAGS" 12731 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12732 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12733 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12734 # The linker can only warn and ignore the option if not recognized 12735 # So say no if there are warnings 12736 if test -s conftest.err; then 12737 # Append any errors to the config.log. 12738 cat conftest.err 1>&5 12739 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12741 if diff conftest.exp conftest.er2 >/dev/null; then 12742 lt_prog_compiler_static_works_CXX=yes 12743 fi 12744 else 12745 lt_prog_compiler_static_works_CXX=yes 12746 fi 12747 fi 12748 $rm conftest* 12749 LDFLAGS="$save_LDFLAGS" 12750 12751fi 12752{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12753echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12754 12755if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12756 : 12757else 12758 lt_prog_compiler_static_CXX= 12759fi 12760 12761 12762{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12763echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12764if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12765 echo $ECHO_N "(cached) $ECHO_C" >&6 12766else 12767 lt_cv_prog_compiler_c_o_CXX=no 12768 $rm -r conftest 2>/dev/null 12769 mkdir conftest 12770 cd conftest 12771 mkdir out 12772 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12773 12774 lt_compiler_flag="-o out/conftest2.$ac_objext" 12775 # Insert the option either (1) after the last *FLAGS variable, or 12776 # (2) before a word containing "conftest.", or (3) at the end. 12777 # Note that $ac_compile itself does not contain backslashes and begins 12778 # with a dollar sign (not a hyphen), so the echo should work correctly. 12779 lt_compile=`echo "$ac_compile" | $SED \ 12780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12782 -e 's:$: $lt_compiler_flag:'` 12783 (eval echo "\"\$as_me:12783: $lt_compile\"" >&5) 12784 (eval "$lt_compile" 2>out/conftest.err) 12785 ac_status=$? 12786 cat out/conftest.err >&5 12787 echo "$as_me:12787: \$? = $ac_status" >&5 12788 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12789 then 12790 # The compiler can only warn and ignore the option if not recognized 12791 # So say no if there are warnings 12792 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12793 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12794 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12795 lt_cv_prog_compiler_c_o_CXX=yes 12796 fi 12797 fi 12798 chmod u+w . 2>&5 12799 $rm conftest* 12800 # SGI C++ compiler will create directory out/ii_files/ for 12801 # template instantiation 12802 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12803 $rm out/* && rmdir out 12804 cd .. 12805 rmdir conftest 12806 $rm conftest* 12807 12808fi 12809{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12810echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12811 12812 12813hard_links="nottested" 12814if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12815 # do not overwrite the value of need_locks provided by the user 12816 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12817echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12818 hard_links=yes 12819 $rm conftest* 12820 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12821 touch conftest.a 12822 ln conftest.a conftest.b 2>&5 || hard_links=no 12823 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12824 { echo "$as_me:$LINENO: result: $hard_links" >&5 12825echo "${ECHO_T}$hard_links" >&6; } 12826 if test "$hard_links" = no; then 12827 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12828echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12829 need_locks=warn 12830 fi 12831else 12832 need_locks=no 12833fi 12834 12835{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12836echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12837 12838 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12839 case $host_os in 12840 aix4* | aix5*) 12841 # If we're using GNU nm, then we don't want the "-C" option. 12842 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12843 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12844 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' 12845 else 12846 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' 12847 fi 12848 ;; 12849 pw32*) 12850 export_symbols_cmds_CXX="$ltdll_cmds" 12851 ;; 12852 cygwin* | mingw*) 12853 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' 12854 ;; 12855 *) 12856 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12857 ;; 12858 esac 12859 12860{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12861echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12862test "$ld_shlibs_CXX" = no && can_build_shared=no 12863 12864# 12865# Do we need to explicitly link libc? 12866# 12867case "x$archive_cmds_need_lc_CXX" in 12868x|xyes) 12869 # Assume -lc should be added 12870 archive_cmds_need_lc_CXX=yes 12871 12872 if test "$enable_shared" = yes && test "$GCC" = yes; then 12873 case $archive_cmds_CXX in 12874 *'~'*) 12875 # FIXME: we may have to deal with multi-command sequences. 12876 ;; 12877 '$CC '*) 12878 # Test whether the compiler implicitly links with -lc since on some 12879 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12880 # to ld, don't add -lc before -lgcc. 12881 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12882echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12883 $rm conftest* 12884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12885 12886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12887 (eval $ac_compile) 2>&5 12888 ac_status=$? 12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12890 (exit $ac_status); } 2>conftest.err; then 12891 soname=conftest 12892 lib=conftest 12893 libobjs=conftest.$ac_objext 12894 deplibs= 12895 wl=$lt_prog_compiler_wl_CXX 12896 pic_flag=$lt_prog_compiler_pic_CXX 12897 compiler_flags=-v 12898 linker_flags=-v 12899 verstring= 12900 output_objdir=. 12901 libname=conftest 12902 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12903 allow_undefined_flag_CXX= 12904 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12905 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12906 ac_status=$? 12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12908 (exit $ac_status); } 12909 then 12910 archive_cmds_need_lc_CXX=no 12911 else 12912 archive_cmds_need_lc_CXX=yes 12913 fi 12914 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12915 else 12916 cat conftest.err 1>&5 12917 fi 12918 $rm conftest* 12919 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12920echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12921 ;; 12922 esac 12923 fi 12924 ;; 12925esac 12926 12927{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12928echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12929library_names_spec= 12930libname_spec='lib$name' 12931soname_spec= 12932shrext_cmds=".so" 12933postinstall_cmds= 12934postuninstall_cmds= 12935finish_cmds= 12936finish_eval= 12937shlibpath_var= 12938shlibpath_overrides_runpath=unknown 12939version_type=none 12940dynamic_linker="$host_os ld.so" 12941sys_lib_dlsearch_path_spec="/lib /usr/lib" 12942if test "$GCC" = yes; then 12943 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12944 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12945 # if the path contains ";" then we assume it to be the separator 12946 # otherwise default to the standard path separator (i.e. ":") - it is 12947 # assumed that no part of a normal pathname contains ";" but that should 12948 # okay in the real world where ";" in dirpaths is itself problematic. 12949 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12950 else 12951 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12952 fi 12953else 12954 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12955fi 12956need_lib_prefix=unknown 12957hardcode_into_libs=no 12958 12959# when you set need_version to no, make sure it does not cause -set_version 12960# flags to be left without arguments 12961need_version=unknown 12962 12963case $host_os in 12964aix3*) 12965 version_type=linux 12966 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12967 shlibpath_var=LIBPATH 12968 12969 # AIX 3 has no versioning support, so we append a major version to the name. 12970 soname_spec='${libname}${release}${shared_ext}$major' 12971 ;; 12972 12973aix4* | aix5*) 12974 version_type=linux 12975 need_lib_prefix=no 12976 need_version=no 12977 hardcode_into_libs=yes 12978 if test "$host_cpu" = ia64; then 12979 # AIX 5 supports IA64 12980 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12981 shlibpath_var=LD_LIBRARY_PATH 12982 else 12983 # With GCC up to 2.95.x, collect2 would create an import file 12984 # for dependence libraries. The import file would start with 12985 # the line `#! .'. This would cause the generated library to 12986 # depend on `.', always an invalid library. This was fixed in 12987 # development snapshots of GCC prior to 3.0. 12988 case $host_os in 12989 aix4 | aix4.[01] | aix4.[01].*) 12990 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12991 echo ' yes ' 12992 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12993 : 12994 else 12995 can_build_shared=no 12996 fi 12997 ;; 12998 esac 12999 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13000 # soname into executable. Probably we can add versioning support to 13001 # collect2, so additional links can be useful in future. 13002 if test "$aix_use_runtimelinking" = yes; then 13003 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13004 # instead of lib<name>.a to let people know that these are not 13005 # typical AIX shared libraries. 13006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13007 else 13008 # We preserve .a as extension for shared libraries through AIX4.2 13009 # and later when we are not doing run time linking. 13010 library_names_spec='${libname}${release}.a $libname.a' 13011 soname_spec='${libname}${release}${shared_ext}$major' 13012 fi 13013 shlibpath_var=LIBPATH 13014 fi 13015 ;; 13016 13017amigaos*) 13018 library_names_spec='$libname.ixlibrary $libname.a' 13019 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13020 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' 13021 ;; 13022 13023beos*) 13024 library_names_spec='${libname}${shared_ext}' 13025 dynamic_linker="$host_os ld.so" 13026 shlibpath_var=LIBRARY_PATH 13027 ;; 13028 13029bsdi[45]*) 13030 version_type=linux 13031 need_version=no 13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13033 soname_spec='${libname}${release}${shared_ext}$major' 13034 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13035 shlibpath_var=LD_LIBRARY_PATH 13036 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13037 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13038 # the default ld.so.conf also contains /usr/contrib/lib and 13039 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13040 # libtool to hard-code these into programs 13041 ;; 13042 13043cygwin* | mingw* | pw32*) 13044 version_type=windows 13045 shrext_cmds=".dll" 13046 need_version=no 13047 need_lib_prefix=no 13048 13049 case $GCC,$host_os in 13050 yes,cygwin* | yes,mingw* | yes,pw32*) 13051 library_names_spec='$libname.dll.a' 13052 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13053 postinstall_cmds='base_file=`basename \${file}`~ 13054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13055 dldir=$destdir/`dirname \$dlpath`~ 13056 test -d \$dldir || mkdir -p \$dldir~ 13057 $install_prog $dir/$dlname \$dldir/$dlname~ 13058 chmod a+x \$dldir/$dlname' 13059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13060 dlpath=$dir/\$dldll~ 13061 $rm \$dlpath' 13062 shlibpath_overrides_runpath=yes 13063 13064 case $host_os in 13065 cygwin*) 13066 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13067 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13068 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13069 ;; 13070 mingw*) 13071 # MinGW DLLs use traditional 'lib' prefix 13072 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13073 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13074 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13075 # It is most probably a Windows format PATH printed by 13076 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13077 # path with ; separators, and with drive letters. We can handle the 13078 # drive letters (cygwin fileutils understands them), so leave them, 13079 # especially as we might pass files found there to a mingw objdump, 13080 # which wouldn't understand a cygwinified path. Ahh. 13081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13082 else 13083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13084 fi 13085 ;; 13086 pw32*) 13087 # pw32 DLLs use 'pw' prefix rather than 'lib' 13088 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13089 ;; 13090 esac 13091 ;; 13092 13093 *) 13094 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13095 ;; 13096 esac 13097 dynamic_linker='Win32 ld.exe' 13098 # FIXME: first we should search . and the directory the executable is in 13099 shlibpath_var=PATH 13100 ;; 13101 13102darwin* | rhapsody*) 13103 dynamic_linker="$host_os dyld" 13104 version_type=darwin 13105 need_lib_prefix=no 13106 need_version=no 13107 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13108 soname_spec='${libname}${release}${major}$shared_ext' 13109 shlibpath_overrides_runpath=yes 13110 shlibpath_var=DYLD_LIBRARY_PATH 13111 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13112 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13113 if test "$GCC" = yes; then 13114 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 13115 else 13116 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13117 fi 13118 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13119 ;; 13120 13121dgux*) 13122 version_type=linux 13123 need_lib_prefix=no 13124 need_version=no 13125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13126 soname_spec='${libname}${release}${shared_ext}$major' 13127 shlibpath_var=LD_LIBRARY_PATH 13128 ;; 13129 13130freebsd1*) 13131 dynamic_linker=no 13132 ;; 13133 13134kfreebsd*-gnu) 13135 version_type=linux 13136 need_lib_prefix=no 13137 need_version=no 13138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13139 soname_spec='${libname}${release}${shared_ext}$major' 13140 shlibpath_var=LD_LIBRARY_PATH 13141 shlibpath_overrides_runpath=no 13142 hardcode_into_libs=yes 13143 dynamic_linker='GNU ld.so' 13144 ;; 13145 13146freebsd* | dragonfly*) 13147 # DragonFly does not have aout. When/if they implement a new 13148 # versioning mechanism, adjust this. 13149 if test -x /usr/bin/objformat; then 13150 objformat=`/usr/bin/objformat` 13151 else 13152 case $host_os in 13153 freebsd[123]*) objformat=aout ;; 13154 *) objformat=elf ;; 13155 esac 13156 fi 13157 version_type=freebsd-$objformat 13158 case $version_type in 13159 freebsd-elf*) 13160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13161 need_version=no 13162 need_lib_prefix=no 13163 ;; 13164 freebsd-*) 13165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13166 need_version=yes 13167 ;; 13168 esac 13169 shlibpath_var=LD_LIBRARY_PATH 13170 case $host_os in 13171 freebsd2*) 13172 shlibpath_overrides_runpath=yes 13173 ;; 13174 freebsd3.[01]* | freebsdelf3.[01]*) 13175 shlibpath_overrides_runpath=yes 13176 hardcode_into_libs=yes 13177 ;; 13178 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13179 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13180 shlibpath_overrides_runpath=no 13181 hardcode_into_libs=yes 13182 ;; 13183 freebsd*) # from 4.6 on 13184 shlibpath_overrides_runpath=yes 13185 hardcode_into_libs=yes 13186 ;; 13187 esac 13188 ;; 13189 13190gnu*) 13191 version_type=linux 13192 need_lib_prefix=no 13193 need_version=no 13194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13195 soname_spec='${libname}${release}${shared_ext}$major' 13196 shlibpath_var=LD_LIBRARY_PATH 13197 hardcode_into_libs=yes 13198 ;; 13199 13200hpux9* | hpux10* | hpux11*) 13201 # Give a soname corresponding to the major version so that dld.sl refuses to 13202 # link against other versions. 13203 version_type=sunos 13204 need_lib_prefix=no 13205 need_version=no 13206 case $host_cpu in 13207 ia64*) 13208 shrext_cmds='.so' 13209 hardcode_into_libs=yes 13210 dynamic_linker="$host_os dld.so" 13211 shlibpath_var=LD_LIBRARY_PATH 13212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13214 soname_spec='${libname}${release}${shared_ext}$major' 13215 if test "X$HPUX_IA64_MODE" = X32; then 13216 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13217 else 13218 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13219 fi 13220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13221 ;; 13222 hppa*64*) 13223 shrext_cmds='.sl' 13224 hardcode_into_libs=yes 13225 dynamic_linker="$host_os dld.sl" 13226 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13227 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13229 soname_spec='${libname}${release}${shared_ext}$major' 13230 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13231 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13232 ;; 13233 *) 13234 shrext_cmds='.sl' 13235 dynamic_linker="$host_os dld.sl" 13236 shlibpath_var=SHLIB_PATH 13237 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13239 soname_spec='${libname}${release}${shared_ext}$major' 13240 ;; 13241 esac 13242 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13243 postinstall_cmds='chmod 555 $lib' 13244 ;; 13245 13246interix3*) 13247 version_type=linux 13248 need_lib_prefix=no 13249 need_version=no 13250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13251 soname_spec='${libname}${release}${shared_ext}$major' 13252 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13253 shlibpath_var=LD_LIBRARY_PATH 13254 shlibpath_overrides_runpath=no 13255 hardcode_into_libs=yes 13256 ;; 13257 13258irix5* | irix6* | nonstopux*) 13259 case $host_os in 13260 nonstopux*) version_type=nonstopux ;; 13261 *) 13262 if test "$lt_cv_prog_gnu_ld" = yes; then 13263 version_type=linux 13264 else 13265 version_type=irix 13266 fi ;; 13267 esac 13268 need_lib_prefix=no 13269 need_version=no 13270 soname_spec='${libname}${release}${shared_ext}$major' 13271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13272 case $host_os in 13273 irix5* | nonstopux*) 13274 libsuff= shlibsuff= 13275 ;; 13276 *) 13277 case $LD in # libtool.m4 will add one of these switches to LD 13278 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13279 libsuff= shlibsuff= libmagic=32-bit;; 13280 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13281 libsuff=32 shlibsuff=N32 libmagic=N32;; 13282 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13283 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13284 *) libsuff= shlibsuff= libmagic=never-match;; 13285 esac 13286 ;; 13287 esac 13288 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13289 shlibpath_overrides_runpath=no 13290 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13291 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13292 hardcode_into_libs=yes 13293 ;; 13294 13295# No shared lib support for Linux oldld, aout, or coff. 13296linux*oldld* | linux*aout* | linux*coff*) 13297 dynamic_linker=no 13298 ;; 13299 13300# This must be Linux ELF. 13301linux*) 13302 version_type=linux 13303 need_lib_prefix=no 13304 need_version=no 13305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13306 soname_spec='${libname}${release}${shared_ext}$major' 13307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13308 shlibpath_var=LD_LIBRARY_PATH 13309 shlibpath_overrides_runpath=no 13310 # This implies no fast_install, which is unacceptable. 13311 # Some rework will be needed to allow for fast_install 13312 # before this can be enabled. 13313 hardcode_into_libs=yes 13314 13315 # Append ld.so.conf contents to the search path 13316 if test -f /etc/ld.so.conf; then 13317 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 13318 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13319 fi 13320 13321 # We used to test for /lib/ld.so.1 and disable shared libraries on 13322 # powerpc, because MkLinux only supported shared libraries with the 13323 # GNU dynamic linker. Since this was broken with cross compilers, 13324 # most powerpc-linux boxes support dynamic linking these days and 13325 # people can always --disable-shared, the test was removed, and we 13326 # assume the GNU/Linux dynamic linker is in use. 13327 dynamic_linker='GNU/Linux ld.so' 13328 ;; 13329 13330knetbsd*-gnu) 13331 version_type=linux 13332 need_lib_prefix=no 13333 need_version=no 13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13335 soname_spec='${libname}${release}${shared_ext}$major' 13336 shlibpath_var=LD_LIBRARY_PATH 13337 shlibpath_overrides_runpath=no 13338 hardcode_into_libs=yes 13339 dynamic_linker='GNU ld.so' 13340 ;; 13341 13342netbsd*) 13343 version_type=sunos 13344 need_lib_prefix=no 13345 need_version=no 13346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13349 dynamic_linker='NetBSD (a.out) ld.so' 13350 else 13351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13352 soname_spec='${libname}${release}${shared_ext}$major' 13353 dynamic_linker='NetBSD ld.elf_so' 13354 fi 13355 shlibpath_var=LD_LIBRARY_PATH 13356 shlibpath_overrides_runpath=yes 13357 hardcode_into_libs=yes 13358 ;; 13359 13360newsos6) 13361 version_type=linux 13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13363 shlibpath_var=LD_LIBRARY_PATH 13364 shlibpath_overrides_runpath=yes 13365 ;; 13366 13367nto-qnx*) 13368 version_type=linux 13369 need_lib_prefix=no 13370 need_version=no 13371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13372 soname_spec='${libname}${release}${shared_ext}$major' 13373 shlibpath_var=LD_LIBRARY_PATH 13374 shlibpath_overrides_runpath=yes 13375 ;; 13376 13377openbsd*) 13378 version_type=sunos 13379 sys_lib_dlsearch_path_spec="/usr/lib" 13380 need_lib_prefix=no 13381 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13382 case $host_os in 13383 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13384 *) need_version=no ;; 13385 esac 13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13388 shlibpath_var=LD_LIBRARY_PATH 13389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13390 case $host_os in 13391 openbsd2.[89] | openbsd2.[89].*) 13392 shlibpath_overrides_runpath=no 13393 ;; 13394 *) 13395 shlibpath_overrides_runpath=yes 13396 ;; 13397 esac 13398 else 13399 shlibpath_overrides_runpath=yes 13400 fi 13401 ;; 13402 13403os2*) 13404 libname_spec='$name' 13405 shrext_cmds=".dll" 13406 need_lib_prefix=no 13407 library_names_spec='$libname${shared_ext} $libname.a' 13408 dynamic_linker='OS/2 ld.exe' 13409 shlibpath_var=LIBPATH 13410 ;; 13411 13412osf3* | osf4* | osf5*) 13413 version_type=osf 13414 need_lib_prefix=no 13415 need_version=no 13416 soname_spec='${libname}${release}${shared_ext}$major' 13417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13418 shlibpath_var=LD_LIBRARY_PATH 13419 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13420 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13421 ;; 13422 13423solaris*) 13424 version_type=linux 13425 need_lib_prefix=no 13426 need_version=no 13427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13428 soname_spec='${libname}${release}${shared_ext}$major' 13429 shlibpath_var=LD_LIBRARY_PATH 13430 shlibpath_overrides_runpath=yes 13431 hardcode_into_libs=yes 13432 # ldd complains unless libraries are executable 13433 postinstall_cmds='chmod +x $lib' 13434 ;; 13435 13436sunos4*) 13437 version_type=sunos 13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13440 shlibpath_var=LD_LIBRARY_PATH 13441 shlibpath_overrides_runpath=yes 13442 if test "$with_gnu_ld" = yes; then 13443 need_lib_prefix=no 13444 fi 13445 need_version=yes 13446 ;; 13447 13448sysv4 | sysv4.3*) 13449 version_type=linux 13450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13451 soname_spec='${libname}${release}${shared_ext}$major' 13452 shlibpath_var=LD_LIBRARY_PATH 13453 case $host_vendor in 13454 sni) 13455 shlibpath_overrides_runpath=no 13456 need_lib_prefix=no 13457 export_dynamic_flag_spec='${wl}-Blargedynsym' 13458 runpath_var=LD_RUN_PATH 13459 ;; 13460 siemens) 13461 need_lib_prefix=no 13462 ;; 13463 motorola) 13464 need_lib_prefix=no 13465 need_version=no 13466 shlibpath_overrides_runpath=no 13467 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13468 ;; 13469 esac 13470 ;; 13471 13472sysv4*MP*) 13473 if test -d /usr/nec ;then 13474 version_type=linux 13475 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13476 soname_spec='$libname${shared_ext}.$major' 13477 shlibpath_var=LD_LIBRARY_PATH 13478 fi 13479 ;; 13480 13481sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13482 version_type=freebsd-elf 13483 need_lib_prefix=no 13484 need_version=no 13485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13486 soname_spec='${libname}${release}${shared_ext}$major' 13487 shlibpath_var=LD_LIBRARY_PATH 13488 hardcode_into_libs=yes 13489 if test "$with_gnu_ld" = yes; then 13490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13491 shlibpath_overrides_runpath=no 13492 else 13493 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13494 shlibpath_overrides_runpath=yes 13495 case $host_os in 13496 sco3.2v5*) 13497 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13498 ;; 13499 esac 13500 fi 13501 sys_lib_dlsearch_path_spec='/usr/lib' 13502 ;; 13503 13504uts4*) 13505 version_type=linux 13506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13507 soname_spec='${libname}${release}${shared_ext}$major' 13508 shlibpath_var=LD_LIBRARY_PATH 13509 ;; 13510 13511*) 13512 dynamic_linker=no 13513 ;; 13514esac 13515{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13516echo "${ECHO_T}$dynamic_linker" >&6; } 13517test "$dynamic_linker" = no && can_build_shared=no 13518 13519variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13520if test "$GCC" = yes; then 13521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13522fi 13523 13524{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13525echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13526hardcode_action_CXX= 13527if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13528 test -n "$runpath_var_CXX" || \ 13529 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13530 13531 # We can hardcode non-existant directories. 13532 if test "$hardcode_direct_CXX" != no && 13533 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13534 # have to relink, otherwise we might link with an installed library 13535 # when we should be linking with a yet-to-be-installed one 13536 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13537 test "$hardcode_minus_L_CXX" != no; then 13538 # Linking always hardcodes the temporary library directory. 13539 hardcode_action_CXX=relink 13540 else 13541 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13542 hardcode_action_CXX=immediate 13543 fi 13544else 13545 # We cannot hardcode anything, or else we can only hardcode existing 13546 # directories. 13547 hardcode_action_CXX=unsupported 13548fi 13549{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13550echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13551 13552if test "$hardcode_action_CXX" = relink; then 13553 # Fast installation is not supported 13554 enable_fast_install=no 13555elif test "$shlibpath_overrides_runpath" = yes || 13556 test "$enable_shared" = no; then 13557 # Fast installation is not necessary 13558 enable_fast_install=needless 13559fi 13560 13561 13562# The else clause should only fire when bootstrapping the 13563# libtool distribution, otherwise you forgot to ship ltmain.sh 13564# with your package, and you will get complaints that there are 13565# no rules to generate ltmain.sh. 13566if test -f "$ltmain"; then 13567 # See if we are running on zsh, and set the options which allow our commands through 13568 # without removal of \ escapes. 13569 if test -n "${ZSH_VERSION+set}" ; then 13570 setopt NO_GLOB_SUBST 13571 fi 13572 # Now quote all the things that may contain metacharacters while being 13573 # careful not to overquote the AC_SUBSTed values. We take copies of the 13574 # variables and quote the copies for generation of the libtool script. 13575 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13576 SED SHELL STRIP \ 13577 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13578 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13579 deplibs_check_method reload_flag reload_cmds need_locks \ 13580 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13581 lt_cv_sys_global_symbol_to_c_name_address \ 13582 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13583 old_postinstall_cmds old_postuninstall_cmds \ 13584 compiler_CXX \ 13585 CC_CXX \ 13586 LD_CXX \ 13587 lt_prog_compiler_wl_CXX \ 13588 lt_prog_compiler_pic_CXX \ 13589 lt_prog_compiler_static_CXX \ 13590 lt_prog_compiler_no_builtin_flag_CXX \ 13591 export_dynamic_flag_spec_CXX \ 13592 thread_safe_flag_spec_CXX \ 13593 whole_archive_flag_spec_CXX \ 13594 enable_shared_with_static_runtimes_CXX \ 13595 old_archive_cmds_CXX \ 13596 old_archive_from_new_cmds_CXX \ 13597 predep_objects_CXX \ 13598 postdep_objects_CXX \ 13599 predeps_CXX \ 13600 postdeps_CXX \ 13601 compiler_lib_search_path_CXX \ 13602 archive_cmds_CXX \ 13603 archive_expsym_cmds_CXX \ 13604 postinstall_cmds_CXX \ 13605 postuninstall_cmds_CXX \ 13606 old_archive_from_expsyms_cmds_CXX \ 13607 allow_undefined_flag_CXX \ 13608 no_undefined_flag_CXX \ 13609 export_symbols_cmds_CXX \ 13610 hardcode_libdir_flag_spec_CXX \ 13611 hardcode_libdir_flag_spec_ld_CXX \ 13612 hardcode_libdir_separator_CXX \ 13613 hardcode_automatic_CXX \ 13614 module_cmds_CXX \ 13615 module_expsym_cmds_CXX \ 13616 lt_cv_prog_compiler_c_o_CXX \ 13617 exclude_expsyms_CXX \ 13618 include_expsyms_CXX; do 13619 13620 case $var in 13621 old_archive_cmds_CXX | \ 13622 old_archive_from_new_cmds_CXX | \ 13623 archive_cmds_CXX | \ 13624 archive_expsym_cmds_CXX | \ 13625 module_cmds_CXX | \ 13626 module_expsym_cmds_CXX | \ 13627 old_archive_from_expsyms_cmds_CXX | \ 13628 export_symbols_cmds_CXX | \ 13629 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13630 postinstall_cmds | postuninstall_cmds | \ 13631 old_postinstall_cmds | old_postuninstall_cmds | \ 13632 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13633 # Double-quote double-evaled strings. 13634 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13635 ;; 13636 *) 13637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13638 ;; 13639 esac 13640 done 13641 13642 case $lt_echo in 13643 *'\$0 --fallback-echo"') 13644 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13645 ;; 13646 esac 13647 13648cfgfile="$ofile" 13649 13650 cat <<__EOF__ >> "$cfgfile" 13651# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13652 13653# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13654 13655# Shell to use when invoking shell scripts. 13656SHELL=$lt_SHELL 13657 13658# Whether or not to build shared libraries. 13659build_libtool_libs=$enable_shared 13660 13661# Whether or not to build static libraries. 13662build_old_libs=$enable_static 13663 13664# Whether or not to add -lc for building shared libraries. 13665build_libtool_need_lc=$archive_cmds_need_lc_CXX 13666 13667# Whether or not to disallow shared libs when runtime libs are static 13668allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13669 13670# Whether or not to optimize for fast installation. 13671fast_install=$enable_fast_install 13672 13673# The host system. 13674host_alias=$host_alias 13675host=$host 13676host_os=$host_os 13677 13678# The build system. 13679build_alias=$build_alias 13680build=$build 13681build_os=$build_os 13682 13683# An echo program that does not interpret backslashes. 13684echo=$lt_echo 13685 13686# The archiver. 13687AR=$lt_AR 13688AR_FLAGS=$lt_AR_FLAGS 13689 13690# A C compiler. 13691LTCC=$lt_LTCC 13692 13693# LTCC compiler flags. 13694LTCFLAGS=$lt_LTCFLAGS 13695 13696# A language-specific compiler. 13697CC=$lt_compiler_CXX 13698 13699# Is the compiler the GNU C compiler? 13700with_gcc=$GCC_CXX 13701 13702# An ERE matcher. 13703EGREP=$lt_EGREP 13704 13705# The linker used to build libraries. 13706LD=$lt_LD_CXX 13707 13708# Whether we need hard or soft links. 13709LN_S=$lt_LN_S 13710 13711# A BSD-compatible nm program. 13712NM=$lt_NM 13713 13714# A symbol stripping program 13715STRIP=$lt_STRIP 13716 13717# Used to examine libraries when file_magic_cmd begins "file" 13718MAGIC_CMD=$MAGIC_CMD 13719 13720# Used on cygwin: DLL creation program. 13721DLLTOOL="$DLLTOOL" 13722 13723# Used on cygwin: object dumper. 13724OBJDUMP="$OBJDUMP" 13725 13726# Used on cygwin: assembler. 13727AS="$AS" 13728 13729# The name of the directory that contains temporary libtool files. 13730objdir=$objdir 13731 13732# How to create reloadable object files. 13733reload_flag=$lt_reload_flag 13734reload_cmds=$lt_reload_cmds 13735 13736# How to pass a linker flag through the compiler. 13737wl=$lt_lt_prog_compiler_wl_CXX 13738 13739# Object file suffix (normally "o"). 13740objext="$ac_objext" 13741 13742# Old archive suffix (normally "a"). 13743libext="$libext" 13744 13745# Shared library suffix (normally ".so"). 13746shrext_cmds='$shrext_cmds' 13747 13748# Executable file suffix (normally ""). 13749exeext="$exeext" 13750 13751# Additional compiler flags for building library objects. 13752pic_flag=$lt_lt_prog_compiler_pic_CXX 13753pic_mode=$pic_mode 13754 13755# What is the maximum length of a command? 13756max_cmd_len=$lt_cv_sys_max_cmd_len 13757 13758# Does compiler simultaneously support -c and -o options? 13759compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13760 13761# Must we lock files when doing compilation? 13762need_locks=$lt_need_locks 13763 13764# Do we need the lib prefix for modules? 13765need_lib_prefix=$need_lib_prefix 13766 13767# Do we need a version for libraries? 13768need_version=$need_version 13769 13770# Whether dlopen is supported. 13771dlopen_support=$enable_dlopen 13772 13773# Whether dlopen of programs is supported. 13774dlopen_self=$enable_dlopen_self 13775 13776# Whether dlopen of statically linked programs is supported. 13777dlopen_self_static=$enable_dlopen_self_static 13778 13779# Compiler flag to prevent dynamic linking. 13780link_static_flag=$lt_lt_prog_compiler_static_CXX 13781 13782# Compiler flag to turn off builtin functions. 13783no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13784 13785# Compiler flag to allow reflexive dlopens. 13786export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13787 13788# Compiler flag to generate shared objects directly from archives. 13789whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13790 13791# Compiler flag to generate thread-safe objects. 13792thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13793 13794# Library versioning type. 13795version_type=$version_type 13796 13797# Format of library name prefix. 13798libname_spec=$lt_libname_spec 13799 13800# List of archive names. First name is the real one, the rest are links. 13801# The last name is the one that the linker finds with -lNAME. 13802library_names_spec=$lt_library_names_spec 13803 13804# The coded name of the library, if different from the real name. 13805soname_spec=$lt_soname_spec 13806 13807# Commands used to build and install an old-style archive. 13808RANLIB=$lt_RANLIB 13809old_archive_cmds=$lt_old_archive_cmds_CXX 13810old_postinstall_cmds=$lt_old_postinstall_cmds 13811old_postuninstall_cmds=$lt_old_postuninstall_cmds 13812 13813# Create an old-style archive from a shared archive. 13814old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13815 13816# Create a temporary old-style archive to link instead of a shared archive. 13817old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13818 13819# Commands used to build and install a shared archive. 13820archive_cmds=$lt_archive_cmds_CXX 13821archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13822postinstall_cmds=$lt_postinstall_cmds 13823postuninstall_cmds=$lt_postuninstall_cmds 13824 13825# Commands used to build a loadable module (assumed same as above if empty) 13826module_cmds=$lt_module_cmds_CXX 13827module_expsym_cmds=$lt_module_expsym_cmds_CXX 13828 13829# Commands to strip libraries. 13830old_striplib=$lt_old_striplib 13831striplib=$lt_striplib 13832 13833# Dependencies to place before the objects being linked to create a 13834# shared library. 13835predep_objects=$lt_predep_objects_CXX 13836 13837# Dependencies to place after the objects being linked to create a 13838# shared library. 13839postdep_objects=$lt_postdep_objects_CXX 13840 13841# Dependencies to place before the objects being linked to create a 13842# shared library. 13843predeps=$lt_predeps_CXX 13844 13845# Dependencies to place after the objects being linked to create a 13846# shared library. 13847postdeps=$lt_postdeps_CXX 13848 13849# The library search path used internally by the compiler when linking 13850# a shared library. 13851compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13852 13853# Method to check whether dependent libraries are shared objects. 13854deplibs_check_method=$lt_deplibs_check_method 13855 13856# Command to use when deplibs_check_method == file_magic. 13857file_magic_cmd=$lt_file_magic_cmd 13858 13859# Flag that allows shared libraries with undefined symbols to be built. 13860allow_undefined_flag=$lt_allow_undefined_flag_CXX 13861 13862# Flag that forces no undefined symbols. 13863no_undefined_flag=$lt_no_undefined_flag_CXX 13864 13865# Commands used to finish a libtool library installation in a directory. 13866finish_cmds=$lt_finish_cmds 13867 13868# Same as above, but a single script fragment to be evaled but not shown. 13869finish_eval=$lt_finish_eval 13870 13871# Take the output of nm and produce a listing of raw symbols and C names. 13872global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13873 13874# Transform the output of nm in a proper C declaration 13875global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13876 13877# Transform the output of nm in a C name address pair 13878global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13879 13880# This is the shared library runtime path variable. 13881runpath_var=$runpath_var 13882 13883# This is the shared library path variable. 13884shlibpath_var=$shlibpath_var 13885 13886# Is shlibpath searched before the hard-coded library search path? 13887shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13888 13889# How to hardcode a shared library path into an executable. 13890hardcode_action=$hardcode_action_CXX 13891 13892# Whether we should hardcode library paths into libraries. 13893hardcode_into_libs=$hardcode_into_libs 13894 13895# Flag to hardcode \$libdir into a binary during linking. 13896# This must work even if \$libdir does not exist. 13897hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13898 13899# If ld is used when linking, flag to hardcode \$libdir into 13900# a binary during linking. This must work even if \$libdir does 13901# not exist. 13902hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13903 13904# Whether we need a single -rpath flag with a separated argument. 13905hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13906 13907# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13908# resulting binary. 13909hardcode_direct=$hardcode_direct_CXX 13910 13911# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13912# resulting binary. 13913hardcode_minus_L=$hardcode_minus_L_CXX 13914 13915# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13916# the resulting binary. 13917hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13918 13919# Set to yes if building a shared library automatically hardcodes DIR into the library 13920# and all subsequent libraries and executables linked against it. 13921hardcode_automatic=$hardcode_automatic_CXX 13922 13923# Variables whose values should be saved in libtool wrapper scripts and 13924# restored at relink time. 13925variables_saved_for_relink="$variables_saved_for_relink" 13926 13927# Whether libtool must link a program against all its dependency libraries. 13928link_all_deplibs=$link_all_deplibs_CXX 13929 13930# Compile-time system search path for libraries 13931sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13932 13933# Run-time system search path for libraries 13934sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13935 13936# Fix the shell variable \$srcfile for the compiler. 13937fix_srcfile_path="$fix_srcfile_path_CXX" 13938 13939# Set to yes if exported symbols are required. 13940always_export_symbols=$always_export_symbols_CXX 13941 13942# The commands to list exported symbols. 13943export_symbols_cmds=$lt_export_symbols_cmds_CXX 13944 13945# The commands to extract the exported symbol list from a shared archive. 13946extract_expsyms_cmds=$lt_extract_expsyms_cmds 13947 13948# Symbols that should not be listed in the preloaded symbols. 13949exclude_expsyms=$lt_exclude_expsyms_CXX 13950 13951# Symbols that must always be exported. 13952include_expsyms=$lt_include_expsyms_CXX 13953 13954# ### END LIBTOOL TAG CONFIG: $tagname 13955 13956__EOF__ 13957 13958 13959else 13960 # If there is no Makefile yet, we rely on a make rule to execute 13961 # `config.status --recheck' to rerun these tests and create the 13962 # libtool script then. 13963 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13964 if test -f "$ltmain_in"; then 13965 test -f Makefile && make "$ltmain" 13966 fi 13967fi 13968 13969 13970ac_ext=c 13971ac_cpp='$CPP $CPPFLAGS' 13972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13974ac_compiler_gnu=$ac_cv_c_compiler_gnu 13975 13976CC=$lt_save_CC 13977LDCXX=$LD 13978LD=$lt_save_LD 13979GCC=$lt_save_GCC 13980with_gnu_ldcxx=$with_gnu_ld 13981with_gnu_ld=$lt_save_with_gnu_ld 13982lt_cv_path_LDCXX=$lt_cv_path_LD 13983lt_cv_path_LD=$lt_save_path_LD 13984lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13985lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13986 13987 else 13988 tagname="" 13989 fi 13990 ;; 13991 13992 F77) 13993 if test -n "$F77" && test "X$F77" != "Xno"; then 13994 13995ac_ext=f 13996ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13997ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13998ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13999 14000 14001archive_cmds_need_lc_F77=no 14002allow_undefined_flag_F77= 14003always_export_symbols_F77=no 14004archive_expsym_cmds_F77= 14005export_dynamic_flag_spec_F77= 14006hardcode_direct_F77=no 14007hardcode_libdir_flag_spec_F77= 14008hardcode_libdir_flag_spec_ld_F77= 14009hardcode_libdir_separator_F77= 14010hardcode_minus_L_F77=no 14011hardcode_automatic_F77=no 14012module_cmds_F77= 14013module_expsym_cmds_F77= 14014link_all_deplibs_F77=unknown 14015old_archive_cmds_F77=$old_archive_cmds 14016no_undefined_flag_F77= 14017whole_archive_flag_spec_F77= 14018enable_shared_with_static_runtimes_F77=no 14019 14020# Source file extension for f77 test sources. 14021ac_ext=f 14022 14023# Object file extension for compiled f77 test sources. 14024objext=o 14025objext_F77=$objext 14026 14027# Code to be used in simple compile tests 14028lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14029 14030# Code to be used in simple link tests 14031lt_simple_link_test_code=" program t\n end\n" 14032 14033# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14034 14035# If no C compiler was specified, use CC. 14036LTCC=${LTCC-"$CC"} 14037 14038# If no C compiler flags were specified, use CFLAGS. 14039LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14040 14041# Allow CC to be a program name with arguments. 14042compiler=$CC 14043 14044 14045# save warnings/boilerplate of simple test code 14046ac_outfile=conftest.$ac_objext 14047printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14048eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14049_lt_compiler_boilerplate=`cat conftest.err` 14050$rm conftest* 14051 14052ac_outfile=conftest.$ac_objext 14053printf "$lt_simple_link_test_code" >conftest.$ac_ext 14054eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14055_lt_linker_boilerplate=`cat conftest.err` 14056$rm conftest* 14057 14058 14059# Allow CC to be a program name with arguments. 14060lt_save_CC="$CC" 14061CC=${F77-"f77"} 14062compiler=$CC 14063compiler_F77=$CC 14064for cc_temp in $compiler""; do 14065 case $cc_temp in 14066 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14067 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14068 \-*) ;; 14069 *) break;; 14070 esac 14071done 14072cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14073 14074 14075{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14076echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14077{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14078echo "${ECHO_T}$can_build_shared" >&6; } 14079 14080{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14081echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14082test "$can_build_shared" = "no" && enable_shared=no 14083 14084# On AIX, shared libraries and static libraries use the same namespace, and 14085# are all built from PIC. 14086case $host_os in 14087aix3*) 14088 test "$enable_shared" = yes && enable_static=no 14089 if test -n "$RANLIB"; then 14090 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14091 postinstall_cmds='$RANLIB $lib' 14092 fi 14093 ;; 14094aix4* | aix5*) 14095 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14096 test "$enable_shared" = yes && enable_static=no 14097 fi 14098 ;; 14099esac 14100{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14101echo "${ECHO_T}$enable_shared" >&6; } 14102 14103{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14104echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14105# Make sure either enable_shared or enable_static is yes. 14106test "$enable_shared" = yes || enable_static=yes 14107{ echo "$as_me:$LINENO: result: $enable_static" >&5 14108echo "${ECHO_T}$enable_static" >&6; } 14109 14110GCC_F77="$G77" 14111LD_F77="$LD" 14112 14113lt_prog_compiler_wl_F77= 14114lt_prog_compiler_pic_F77= 14115lt_prog_compiler_static_F77= 14116 14117{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14118echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14119 14120 if test "$GCC" = yes; then 14121 lt_prog_compiler_wl_F77='-Wl,' 14122 lt_prog_compiler_static_F77='-static' 14123 14124 case $host_os in 14125 aix*) 14126 # All AIX code is PIC. 14127 if test "$host_cpu" = ia64; then 14128 # AIX 5 now supports IA64 processor 14129 lt_prog_compiler_static_F77='-Bstatic' 14130 fi 14131 ;; 14132 14133 amigaos*) 14134 # FIXME: we need at least 68020 code to build shared libraries, but 14135 # adding the `-m68020' flag to GCC prevents building anything better, 14136 # like `-m68040'. 14137 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14138 ;; 14139 14140 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14141 # PIC is the default for these OSes. 14142 ;; 14143 14144 mingw* | pw32* | os2*) 14145 # This hack is so that the source file can tell whether it is being 14146 # built for inclusion in a dll (and should export symbols for example). 14147 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14148 ;; 14149 14150 darwin* | rhapsody*) 14151 # PIC is the default on this platform 14152 # Common symbols not allowed in MH_DYLIB files 14153 lt_prog_compiler_pic_F77='-fno-common' 14154 ;; 14155 14156 interix3*) 14157 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14158 # Instead, we relocate shared libraries at runtime. 14159 ;; 14160 14161 msdosdjgpp*) 14162 # Just because we use GCC doesn't mean we suddenly get shared libraries 14163 # on systems that don't support them. 14164 lt_prog_compiler_can_build_shared_F77=no 14165 enable_shared=no 14166 ;; 14167 14168 sysv4*MP*) 14169 if test -d /usr/nec; then 14170 lt_prog_compiler_pic_F77=-Kconform_pic 14171 fi 14172 ;; 14173 14174 hpux*) 14175 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14176 # not for PA HP-UX. 14177 case $host_cpu in 14178 hppa*64*|ia64*) 14179 # +Z the default 14180 ;; 14181 *) 14182 lt_prog_compiler_pic_F77='-fPIC' 14183 ;; 14184 esac 14185 ;; 14186 14187 *) 14188 lt_prog_compiler_pic_F77='-fPIC' 14189 ;; 14190 esac 14191 else 14192 # PORTME Check for flag to pass linker flags through the system compiler. 14193 case $host_os in 14194 aix*) 14195 lt_prog_compiler_wl_F77='-Wl,' 14196 if test "$host_cpu" = ia64; then 14197 # AIX 5 now supports IA64 processor 14198 lt_prog_compiler_static_F77='-Bstatic' 14199 else 14200 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14201 fi 14202 ;; 14203 darwin*) 14204 # PIC is the default on this platform 14205 # Common symbols not allowed in MH_DYLIB files 14206 case $cc_basename in 14207 xlc*) 14208 lt_prog_compiler_pic_F77='-qnocommon' 14209 lt_prog_compiler_wl_F77='-Wl,' 14210 ;; 14211 esac 14212 ;; 14213 14214 mingw* | pw32* | os2*) 14215 # This hack is so that the source file can tell whether it is being 14216 # built for inclusion in a dll (and should export symbols for example). 14217 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14218 ;; 14219 14220 hpux9* | hpux10* | hpux11*) 14221 lt_prog_compiler_wl_F77='-Wl,' 14222 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14223 # not for PA HP-UX. 14224 case $host_cpu in 14225 hppa*64*|ia64*) 14226 # +Z the default 14227 ;; 14228 *) 14229 lt_prog_compiler_pic_F77='+Z' 14230 ;; 14231 esac 14232 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14233 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14234 ;; 14235 14236 irix5* | irix6* | nonstopux*) 14237 lt_prog_compiler_wl_F77='-Wl,' 14238 # PIC (with -KPIC) is the default. 14239 lt_prog_compiler_static_F77='-non_shared' 14240 ;; 14241 14242 newsos6) 14243 lt_prog_compiler_pic_F77='-KPIC' 14244 lt_prog_compiler_static_F77='-Bstatic' 14245 ;; 14246 14247 linux*) 14248 case $cc_basename in 14249 icc* | ecc*) 14250 lt_prog_compiler_wl_F77='-Wl,' 14251 lt_prog_compiler_pic_F77='-KPIC' 14252 lt_prog_compiler_static_F77='-static' 14253 ;; 14254 pgcc* | pgf77* | pgf90* | pgf95*) 14255 # Portland Group compilers (*not* the Pentium gcc compiler, 14256 # which looks to be a dead project) 14257 lt_prog_compiler_wl_F77='-Wl,' 14258 lt_prog_compiler_pic_F77='-fpic' 14259 lt_prog_compiler_static_F77='-Bstatic' 14260 ;; 14261 ccc*) 14262 lt_prog_compiler_wl_F77='-Wl,' 14263 # All Alpha code is PIC. 14264 lt_prog_compiler_static_F77='-non_shared' 14265 ;; 14266 esac 14267 ;; 14268 14269 osf3* | osf4* | osf5*) 14270 lt_prog_compiler_wl_F77='-Wl,' 14271 # All OSF/1 code is PIC. 14272 lt_prog_compiler_static_F77='-non_shared' 14273 ;; 14274 14275 solaris*) 14276 lt_prog_compiler_pic_F77='-KPIC' 14277 lt_prog_compiler_static_F77='-Bstatic' 14278 case $cc_basename in 14279 f77* | f90* | f95*) 14280 lt_prog_compiler_wl_F77='-Qoption ld ';; 14281 *) 14282 lt_prog_compiler_wl_F77='-Wl,';; 14283 esac 14284 ;; 14285 14286 sunos4*) 14287 lt_prog_compiler_wl_F77='-Qoption ld ' 14288 lt_prog_compiler_pic_F77='-PIC' 14289 lt_prog_compiler_static_F77='-Bstatic' 14290 ;; 14291 14292 sysv4 | sysv4.2uw2* | sysv4.3*) 14293 lt_prog_compiler_wl_F77='-Wl,' 14294 lt_prog_compiler_pic_F77='-KPIC' 14295 lt_prog_compiler_static_F77='-Bstatic' 14296 ;; 14297 14298 sysv4*MP*) 14299 if test -d /usr/nec ;then 14300 lt_prog_compiler_pic_F77='-Kconform_pic' 14301 lt_prog_compiler_static_F77='-Bstatic' 14302 fi 14303 ;; 14304 14305 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14306 lt_prog_compiler_wl_F77='-Wl,' 14307 lt_prog_compiler_pic_F77='-KPIC' 14308 lt_prog_compiler_static_F77='-Bstatic' 14309 ;; 14310 14311 unicos*) 14312 lt_prog_compiler_wl_F77='-Wl,' 14313 lt_prog_compiler_can_build_shared_F77=no 14314 ;; 14315 14316 uts4*) 14317 lt_prog_compiler_pic_F77='-pic' 14318 lt_prog_compiler_static_F77='-Bstatic' 14319 ;; 14320 14321 *) 14322 lt_prog_compiler_can_build_shared_F77=no 14323 ;; 14324 esac 14325 fi 14326 14327{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14328echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14329 14330# 14331# Check to make sure the PIC flag actually works. 14332# 14333if test -n "$lt_prog_compiler_pic_F77"; then 14334 14335{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14336echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14337if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14338 echo $ECHO_N "(cached) $ECHO_C" >&6 14339else 14340 lt_prog_compiler_pic_works_F77=no 14341 ac_outfile=conftest.$ac_objext 14342 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14343 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14344 # Insert the option either (1) after the last *FLAGS variable, or 14345 # (2) before a word containing "conftest.", or (3) at the end. 14346 # Note that $ac_compile itself does not contain backslashes and begins 14347 # with a dollar sign (not a hyphen), so the echo should work correctly. 14348 # The option is referenced via a variable to avoid confusing sed. 14349 lt_compile=`echo "$ac_compile" | $SED \ 14350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14352 -e 's:$: $lt_compiler_flag:'` 14353 (eval echo "\"\$as_me:14353: $lt_compile\"" >&5) 14354 (eval "$lt_compile" 2>conftest.err) 14355 ac_status=$? 14356 cat conftest.err >&5 14357 echo "$as_me:14357: \$? = $ac_status" >&5 14358 if (exit $ac_status) && test -s "$ac_outfile"; then 14359 # The compiler can only warn and ignore the option if not recognized 14360 # So say no if there are warnings other than the usual output. 14361 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14364 lt_prog_compiler_pic_works_F77=yes 14365 fi 14366 fi 14367 $rm conftest* 14368 14369fi 14370{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14371echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14372 14373if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14374 case $lt_prog_compiler_pic_F77 in 14375 "" | " "*) ;; 14376 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14377 esac 14378else 14379 lt_prog_compiler_pic_F77= 14380 lt_prog_compiler_can_build_shared_F77=no 14381fi 14382 14383fi 14384case $host_os in 14385 # For platforms which do not support PIC, -DPIC is meaningless: 14386 *djgpp*) 14387 lt_prog_compiler_pic_F77= 14388 ;; 14389 *) 14390 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14391 ;; 14392esac 14393 14394# 14395# Check to make sure the static flag actually works. 14396# 14397wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14398{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14399echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14400if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14401 echo $ECHO_N "(cached) $ECHO_C" >&6 14402else 14403 lt_prog_compiler_static_works_F77=no 14404 save_LDFLAGS="$LDFLAGS" 14405 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14406 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14407 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14408 # The linker can only warn and ignore the option if not recognized 14409 # So say no if there are warnings 14410 if test -s conftest.err; then 14411 # Append any errors to the config.log. 14412 cat conftest.err 1>&5 14413 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14415 if diff conftest.exp conftest.er2 >/dev/null; then 14416 lt_prog_compiler_static_works_F77=yes 14417 fi 14418 else 14419 lt_prog_compiler_static_works_F77=yes 14420 fi 14421 fi 14422 $rm conftest* 14423 LDFLAGS="$save_LDFLAGS" 14424 14425fi 14426{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14427echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14428 14429if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14430 : 14431else 14432 lt_prog_compiler_static_F77= 14433fi 14434 14435 14436{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14437echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14438if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14439 echo $ECHO_N "(cached) $ECHO_C" >&6 14440else 14441 lt_cv_prog_compiler_c_o_F77=no 14442 $rm -r conftest 2>/dev/null 14443 mkdir conftest 14444 cd conftest 14445 mkdir out 14446 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14447 14448 lt_compiler_flag="-o out/conftest2.$ac_objext" 14449 # Insert the option either (1) after the last *FLAGS variable, or 14450 # (2) before a word containing "conftest.", or (3) at the end. 14451 # Note that $ac_compile itself does not contain backslashes and begins 14452 # with a dollar sign (not a hyphen), so the echo should work correctly. 14453 lt_compile=`echo "$ac_compile" | $SED \ 14454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14456 -e 's:$: $lt_compiler_flag:'` 14457 (eval echo "\"\$as_me:14457: $lt_compile\"" >&5) 14458 (eval "$lt_compile" 2>out/conftest.err) 14459 ac_status=$? 14460 cat out/conftest.err >&5 14461 echo "$as_me:14461: \$? = $ac_status" >&5 14462 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14463 then 14464 # The compiler can only warn and ignore the option if not recognized 14465 # So say no if there are warnings 14466 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14467 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14468 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14469 lt_cv_prog_compiler_c_o_F77=yes 14470 fi 14471 fi 14472 chmod u+w . 2>&5 14473 $rm conftest* 14474 # SGI C++ compiler will create directory out/ii_files/ for 14475 # template instantiation 14476 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14477 $rm out/* && rmdir out 14478 cd .. 14479 rmdir conftest 14480 $rm conftest* 14481 14482fi 14483{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14484echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14485 14486 14487hard_links="nottested" 14488if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14489 # do not overwrite the value of need_locks provided by the user 14490 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14491echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14492 hard_links=yes 14493 $rm conftest* 14494 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14495 touch conftest.a 14496 ln conftest.a conftest.b 2>&5 || hard_links=no 14497 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14498 { echo "$as_me:$LINENO: result: $hard_links" >&5 14499echo "${ECHO_T}$hard_links" >&6; } 14500 if test "$hard_links" = no; then 14501 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14502echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14503 need_locks=warn 14504 fi 14505else 14506 need_locks=no 14507fi 14508 14509{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14510echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14511 14512 runpath_var= 14513 allow_undefined_flag_F77= 14514 enable_shared_with_static_runtimes_F77=no 14515 archive_cmds_F77= 14516 archive_expsym_cmds_F77= 14517 old_archive_From_new_cmds_F77= 14518 old_archive_from_expsyms_cmds_F77= 14519 export_dynamic_flag_spec_F77= 14520 whole_archive_flag_spec_F77= 14521 thread_safe_flag_spec_F77= 14522 hardcode_libdir_flag_spec_F77= 14523 hardcode_libdir_flag_spec_ld_F77= 14524 hardcode_libdir_separator_F77= 14525 hardcode_direct_F77=no 14526 hardcode_minus_L_F77=no 14527 hardcode_shlibpath_var_F77=unsupported 14528 link_all_deplibs_F77=unknown 14529 hardcode_automatic_F77=no 14530 module_cmds_F77= 14531 module_expsym_cmds_F77= 14532 always_export_symbols_F77=no 14533 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14534 # include_expsyms should be a list of space-separated symbols to be *always* 14535 # included in the symbol list 14536 include_expsyms_F77= 14537 # exclude_expsyms can be an extended regexp of symbols to exclude 14538 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14539 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14540 # as well as any symbol that contains `d'. 14541 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14542 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14543 # platforms (ab)use it in PIC code, but their linkers get confused if 14544 # the symbol is explicitly referenced. Since portable code cannot 14545 # rely on this symbol name, it's probably fine to never include it in 14546 # preloaded symbol tables. 14547 extract_expsyms_cmds= 14548 # Just being paranoid about ensuring that cc_basename is set. 14549 for cc_temp in $compiler""; do 14550 case $cc_temp in 14551 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14552 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14553 \-*) ;; 14554 *) break;; 14555 esac 14556done 14557cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14558 14559 case $host_os in 14560 cygwin* | mingw* | pw32*) 14561 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14562 # When not using gcc, we currently assume that we are using 14563 # Microsoft Visual C++. 14564 if test "$GCC" != yes; then 14565 with_gnu_ld=no 14566 fi 14567 ;; 14568 interix*) 14569 # we just hope/assume this is gcc and not c89 (= MSVC++) 14570 with_gnu_ld=yes 14571 ;; 14572 openbsd*) 14573 with_gnu_ld=no 14574 ;; 14575 esac 14576 14577 ld_shlibs_F77=yes 14578 if test "$with_gnu_ld" = yes; then 14579 # If archive_cmds runs LD, not CC, wlarc should be empty 14580 wlarc='${wl}' 14581 14582 # Set some defaults for GNU ld with shared library support. These 14583 # are reset later if shared libraries are not supported. Putting them 14584 # here allows them to be overridden if necessary. 14585 runpath_var=LD_RUN_PATH 14586 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14587 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14588 # ancient GNU ld didn't support --whole-archive et. al. 14589 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14590 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14591 else 14592 whole_archive_flag_spec_F77= 14593 fi 14594 supports_anon_versioning=no 14595 case `$LD -v 2>/dev/null` in 14596 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14597 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14598 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14599 *\ 2.11.*) ;; # other 2.11 versions 14600 *) supports_anon_versioning=yes ;; 14601 esac 14602 14603 # See if GNU ld supports shared libraries. 14604 case $host_os in 14605 aix3* | aix4* | aix5*) 14606 # On AIX/PPC, the GNU linker is very broken 14607 if test "$host_cpu" != ia64; then 14608 ld_shlibs_F77=no 14609 cat <<EOF 1>&2 14610 14611*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14612*** to be unable to reliably create shared libraries on AIX. 14613*** Therefore, libtool is disabling shared libraries support. If you 14614*** really care for shared libraries, you may want to modify your PATH 14615*** so that a non-GNU linker is found, and then restart. 14616 14617EOF 14618 fi 14619 ;; 14620 14621 amigaos*) 14622 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)' 14623 hardcode_libdir_flag_spec_F77='-L$libdir' 14624 hardcode_minus_L_F77=yes 14625 14626 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14627 # that the semantics of dynamic libraries on AmigaOS, at least up 14628 # to version 4, is to share data among multiple programs linked 14629 # with the same dynamic library. Since this doesn't match the 14630 # behavior of shared libraries on other platforms, we can't use 14631 # them. 14632 ld_shlibs_F77=no 14633 ;; 14634 14635 beos*) 14636 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14637 allow_undefined_flag_F77=unsupported 14638 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14639 # support --undefined. This deserves some investigation. FIXME 14640 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14641 else 14642 ld_shlibs_F77=no 14643 fi 14644 ;; 14645 14646 cygwin* | mingw* | pw32*) 14647 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14648 # as there is no search path for DLLs. 14649 hardcode_libdir_flag_spec_F77='-L$libdir' 14650 allow_undefined_flag_F77=unsupported 14651 always_export_symbols_F77=no 14652 enable_shared_with_static_runtimes_F77=yes 14653 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14654 14655 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14656 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14657 # If the export-symbols file already is a .def file (1st line 14658 # is EXPORTS), use it as is; otherwise, prepend... 14659 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14660 cp $export_symbols $output_objdir/$soname.def; 14661 else 14662 echo EXPORTS > $output_objdir/$soname.def; 14663 cat $export_symbols >> $output_objdir/$soname.def; 14664 fi~ 14665 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14666 else 14667 ld_shlibs_F77=no 14668 fi 14669 ;; 14670 14671 interix3*) 14672 hardcode_direct_F77=no 14673 hardcode_shlibpath_var_F77=no 14674 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14675 export_dynamic_flag_spec_F77='${wl}-E' 14676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14677 # Instead, shared libraries are loaded at an image base (0x10000000 by 14678 # default) and relocated if they conflict, which is a slow very memory 14679 # consuming and fragmenting process. To avoid this, we pick a random, 14680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14681 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14682 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' 14683 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' 14684 ;; 14685 14686 linux*) 14687 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14688 tmp_addflag= 14689 case $cc_basename,$host_cpu in 14690 pgcc*) # Portland Group C compiler 14691 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' 14692 tmp_addflag=' $pic_flag' 14693 ;; 14694 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14695 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' 14696 tmp_addflag=' $pic_flag -Mnomain' ;; 14697 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14698 tmp_addflag=' -i_dynamic' ;; 14699 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14700 tmp_addflag=' -i_dynamic -nofor_main' ;; 14701 ifc* | ifort*) # Intel Fortran compiler 14702 tmp_addflag=' -nofor_main' ;; 14703 esac 14704 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14705 14706 if test $supports_anon_versioning = yes; then 14707 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14708 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14709 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14710 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14711 fi 14712 else 14713 ld_shlibs_F77=no 14714 fi 14715 ;; 14716 14717 netbsd*) 14718 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14719 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14720 wlarc= 14721 else 14722 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14723 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14724 fi 14725 ;; 14726 14727 solaris*) 14728 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14729 ld_shlibs_F77=no 14730 cat <<EOF 1>&2 14731 14732*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14733*** create shared libraries on Solaris systems. Therefore, libtool 14734*** is disabling shared libraries support. We urge you to upgrade GNU 14735*** binutils to release 2.9.1 or newer. Another option is to modify 14736*** your PATH or compiler configuration so that the native linker is 14737*** used, and then restart. 14738 14739EOF 14740 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14741 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14742 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14743 else 14744 ld_shlibs_F77=no 14745 fi 14746 ;; 14747 14748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14749 case `$LD -v 2>&1` in 14750 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14751 ld_shlibs_F77=no 14752 cat <<_LT_EOF 1>&2 14753 14754*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14755*** reliably create shared libraries on SCO systems. Therefore, libtool 14756*** is disabling shared libraries support. We urge you to upgrade GNU 14757*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14758*** your PATH or compiler configuration so that the native linker is 14759*** used, and then restart. 14760 14761_LT_EOF 14762 ;; 14763 *) 14764 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14765 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14766 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14767 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14768 else 14769 ld_shlibs_F77=no 14770 fi 14771 ;; 14772 esac 14773 ;; 14774 14775 sunos4*) 14776 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14777 wlarc= 14778 hardcode_direct_F77=yes 14779 hardcode_shlibpath_var_F77=no 14780 ;; 14781 14782 *) 14783 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14784 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14785 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14786 else 14787 ld_shlibs_F77=no 14788 fi 14789 ;; 14790 esac 14791 14792 if test "$ld_shlibs_F77" = no; then 14793 runpath_var= 14794 hardcode_libdir_flag_spec_F77= 14795 export_dynamic_flag_spec_F77= 14796 whole_archive_flag_spec_F77= 14797 fi 14798 else 14799 # PORTME fill in a description of your system's linker (not GNU ld) 14800 case $host_os in 14801 aix3*) 14802 allow_undefined_flag_F77=unsupported 14803 always_export_symbols_F77=yes 14804 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' 14805 # Note: this linker hardcodes the directories in LIBPATH if there 14806 # are no directories specified by -L. 14807 hardcode_minus_L_F77=yes 14808 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14809 # Neither direct hardcoding nor static linking is supported with a 14810 # broken collect2. 14811 hardcode_direct_F77=unsupported 14812 fi 14813 ;; 14814 14815 aix4* | aix5*) 14816 if test "$host_cpu" = ia64; then 14817 # On IA64, the linker does run time linking by default, so we don't 14818 # have to do anything special. 14819 aix_use_runtimelinking=no 14820 exp_sym_flag='-Bexport' 14821 no_entry_flag="" 14822 else 14823 # If we're using GNU nm, then we don't want the "-C" option. 14824 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14825 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14826 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' 14827 else 14828 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' 14829 fi 14830 aix_use_runtimelinking=no 14831 14832 # Test if we are trying to use run time linking or normal 14833 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14834 # need to do runtime linking. 14835 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14836 for ld_flag in $LDFLAGS; do 14837 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14838 aix_use_runtimelinking=yes 14839 break 14840 fi 14841 done 14842 ;; 14843 esac 14844 14845 exp_sym_flag='-bexport' 14846 no_entry_flag='-bnoentry' 14847 fi 14848 14849 # When large executables or shared objects are built, AIX ld can 14850 # have problems creating the table of contents. If linking a library 14851 # or program results in "error TOC overflow" add -mminimal-toc to 14852 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14853 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14854 14855 archive_cmds_F77='' 14856 hardcode_direct_F77=yes 14857 hardcode_libdir_separator_F77=':' 14858 link_all_deplibs_F77=yes 14859 14860 if test "$GCC" = yes; then 14861 case $host_os in aix4.[012]|aix4.[012].*) 14862 # We only want to do this on AIX 4.2 and lower, the check 14863 # below for broken collect2 doesn't work under 4.3+ 14864 collect2name=`${CC} -print-prog-name=collect2` 14865 if test -f "$collect2name" && \ 14866 strings "$collect2name" | grep resolve_lib_name >/dev/null 14867 then 14868 # We have reworked collect2 14869 hardcode_direct_F77=yes 14870 else 14871 # We have old collect2 14872 hardcode_direct_F77=unsupported 14873 # It fails to find uninstalled libraries when the uninstalled 14874 # path is not listed in the libpath. Setting hardcode_minus_L 14875 # to unsupported forces relinking 14876 hardcode_minus_L_F77=yes 14877 hardcode_libdir_flag_spec_F77='-L$libdir' 14878 hardcode_libdir_separator_F77= 14879 fi 14880 ;; 14881 esac 14882 shared_flag='-shared' 14883 if test "$aix_use_runtimelinking" = yes; then 14884 shared_flag="$shared_flag "'${wl}-G' 14885 fi 14886 else 14887 # not using gcc 14888 if test "$host_cpu" = ia64; then 14889 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14890 # chokes on -Wl,-G. The following line is correct: 14891 shared_flag='-G' 14892 else 14893 if test "$aix_use_runtimelinking" = yes; then 14894 shared_flag='${wl}-G' 14895 else 14896 shared_flag='${wl}-bM:SRE' 14897 fi 14898 fi 14899 fi 14900 14901 # It seems that -bexpall does not export symbols beginning with 14902 # underscore (_), so it is better to generate a list of symbols to export. 14903 always_export_symbols_F77=yes 14904 if test "$aix_use_runtimelinking" = yes; then 14905 # Warning - without using the other runtime loading flags (-brtl), 14906 # -berok will link without error, but may produce a broken library. 14907 allow_undefined_flag_F77='-berok' 14908 # Determine the default libpath from the value encoded in an empty executable. 14909 cat >conftest.$ac_ext <<_ACEOF 14910 program main 14911 14912 end 14913_ACEOF 14914rm -f conftest.$ac_objext conftest$ac_exeext 14915if { (ac_try="$ac_link" 14916case "(($ac_try" in 14917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14918 *) ac_try_echo=$ac_try;; 14919esac 14920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14921 (eval "$ac_link") 2>conftest.er1 14922 ac_status=$? 14923 grep -v '^ *+' conftest.er1 >conftest.err 14924 rm -f conftest.er1 14925 cat conftest.err >&5 14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14927 (exit $ac_status); } && 14928 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14929 { (case "(($ac_try" in 14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14931 *) ac_try_echo=$ac_try;; 14932esac 14933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14934 (eval "$ac_try") 2>&5 14935 ac_status=$? 14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14937 (exit $ac_status); }; } && 14938 { ac_try='test -s conftest$ac_exeext' 14939 { (case "(($ac_try" in 14940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14941 *) ac_try_echo=$ac_try;; 14942esac 14943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14944 (eval "$ac_try") 2>&5 14945 ac_status=$? 14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14947 (exit $ac_status); }; }; then 14948 14949aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14950}'` 14951# Check for a 64-bit object if we didn't find anything. 14952if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14953}'`; fi 14954else 14955 echo "$as_me: failed program was:" >&5 14956sed 's/^/| /' conftest.$ac_ext >&5 14957 14958 14959fi 14960 14961rm -f core conftest.err conftest.$ac_objext \ 14962 conftest$ac_exeext conftest.$ac_ext 14963if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14964 14965 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14966 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" 14967 else 14968 if test "$host_cpu" = ia64; then 14969 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14970 allow_undefined_flag_F77="-z nodefs" 14971 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" 14972 else 14973 # Determine the default libpath from the value encoded in an empty executable. 14974 cat >conftest.$ac_ext <<_ACEOF 14975 program main 14976 14977 end 14978_ACEOF 14979rm -f conftest.$ac_objext conftest$ac_exeext 14980if { (ac_try="$ac_link" 14981case "(($ac_try" in 14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14983 *) ac_try_echo=$ac_try;; 14984esac 14985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14986 (eval "$ac_link") 2>conftest.er1 14987 ac_status=$? 14988 grep -v '^ *+' conftest.er1 >conftest.err 14989 rm -f conftest.er1 14990 cat conftest.err >&5 14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14992 (exit $ac_status); } && 14993 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 14994 { (case "(($ac_try" in 14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14996 *) ac_try_echo=$ac_try;; 14997esac 14998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14999 (eval "$ac_try") 2>&5 15000 ac_status=$? 15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15002 (exit $ac_status); }; } && 15003 { ac_try='test -s conftest$ac_exeext' 15004 { (case "(($ac_try" in 15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15006 *) ac_try_echo=$ac_try;; 15007esac 15008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15009 (eval "$ac_try") 2>&5 15010 ac_status=$? 15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15012 (exit $ac_status); }; }; then 15013 15014aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15015}'` 15016# Check for a 64-bit object if we didn't find anything. 15017if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15018}'`; fi 15019else 15020 echo "$as_me: failed program was:" >&5 15021sed 's/^/| /' conftest.$ac_ext >&5 15022 15023 15024fi 15025 15026rm -f core conftest.err conftest.$ac_objext \ 15027 conftest$ac_exeext conftest.$ac_ext 15028if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15029 15030 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15031 # Warning - without using the other run time loading flags, 15032 # -berok will link without error, but may produce a broken library. 15033 no_undefined_flag_F77=' ${wl}-bernotok' 15034 allow_undefined_flag_F77=' ${wl}-berok' 15035 # Exported symbols can be pulled into shared objects from archives 15036 whole_archive_flag_spec_F77='$convenience' 15037 archive_cmds_need_lc_F77=yes 15038 # This is similar to how AIX traditionally builds its shared libraries. 15039 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' 15040 fi 15041 fi 15042 ;; 15043 15044 amigaos*) 15045 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)' 15046 hardcode_libdir_flag_spec_F77='-L$libdir' 15047 hardcode_minus_L_F77=yes 15048 # see comment about different semantics on the GNU ld section 15049 ld_shlibs_F77=no 15050 ;; 15051 15052 bsdi[45]*) 15053 export_dynamic_flag_spec_F77=-rdynamic 15054 ;; 15055 15056 cygwin* | mingw* | pw32*) 15057 # When not using gcc, we currently assume that we are using 15058 # Microsoft Visual C++. 15059 # hardcode_libdir_flag_spec is actually meaningless, as there is 15060 # no search path for DLLs. 15061 hardcode_libdir_flag_spec_F77=' ' 15062 allow_undefined_flag_F77=unsupported 15063 # Tell ltmain to make .lib files, not .a files. 15064 libext=lib 15065 # Tell ltmain to make .dll files, not .so files. 15066 shrext_cmds=".dll" 15067 # FIXME: Setting linknames here is a bad hack. 15068 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15069 # The linker will automatically build a .lib file if we build a DLL. 15070 old_archive_From_new_cmds_F77='true' 15071 # FIXME: Should let the user specify the lib program. 15072 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15073 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15074 enable_shared_with_static_runtimes_F77=yes 15075 ;; 15076 15077 darwin* | rhapsody*) 15078 case $host_os in 15079 rhapsody* | darwin1.[012]) 15080 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15081 ;; 15082 *) # Darwin 1.3 on 15083 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15084 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15085 else 15086 case ${MACOSX_DEPLOYMENT_TARGET} in 15087 10.[012]) 15088 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15089 ;; 15090 10.*) 15091 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15092 ;; 15093 esac 15094 fi 15095 ;; 15096 esac 15097 archive_cmds_need_lc_F77=no 15098 hardcode_direct_F77=no 15099 hardcode_automatic_F77=yes 15100 hardcode_shlibpath_var_F77=unsupported 15101 whole_archive_flag_spec_F77='' 15102 link_all_deplibs_F77=yes 15103 if test "$GCC" = yes ; then 15104 output_verbose_link_cmd='echo' 15105 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15106 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15107 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15108 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}' 15109 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}' 15110 else 15111 case $cc_basename in 15112 xlc*) 15113 output_verbose_link_cmd='echo' 15114 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15115 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15116 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15117 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15118 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}' 15119 ;; 15120 *) 15121 ld_shlibs_F77=no 15122 ;; 15123 esac 15124 fi 15125 ;; 15126 15127 dgux*) 15128 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15129 hardcode_libdir_flag_spec_F77='-L$libdir' 15130 hardcode_shlibpath_var_F77=no 15131 ;; 15132 15133 freebsd1*) 15134 ld_shlibs_F77=no 15135 ;; 15136 15137 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15138 # support. Future versions do this automatically, but an explicit c++rt0.o 15139 # does not break anything, and helps significantly (at the cost of a little 15140 # extra space). 15141 freebsd2.2*) 15142 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15143 hardcode_libdir_flag_spec_F77='-R$libdir' 15144 hardcode_direct_F77=yes 15145 hardcode_shlibpath_var_F77=no 15146 ;; 15147 15148 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15149 freebsd2*) 15150 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15151 hardcode_direct_F77=yes 15152 hardcode_minus_L_F77=yes 15153 hardcode_shlibpath_var_F77=no 15154 ;; 15155 15156 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15157 freebsd* | kfreebsd*-gnu | dragonfly*) 15158 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15159 hardcode_libdir_flag_spec_F77='-R$libdir' 15160 hardcode_direct_F77=yes 15161 hardcode_shlibpath_var_F77=no 15162 ;; 15163 15164 hpux9*) 15165 if test "$GCC" = yes; then 15166 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' 15167 else 15168 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' 15169 fi 15170 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15171 hardcode_libdir_separator_F77=: 15172 hardcode_direct_F77=yes 15173 15174 # hardcode_minus_L: Not really in the search PATH, 15175 # but as the default location of the library. 15176 hardcode_minus_L_F77=yes 15177 export_dynamic_flag_spec_F77='${wl}-E' 15178 ;; 15179 15180 hpux10*) 15181 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15182 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15183 else 15184 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15185 fi 15186 if test "$with_gnu_ld" = no; then 15187 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15188 hardcode_libdir_separator_F77=: 15189 15190 hardcode_direct_F77=yes 15191 export_dynamic_flag_spec_F77='${wl}-E' 15192 15193 # hardcode_minus_L: Not really in the search PATH, 15194 # but as the default location of the library. 15195 hardcode_minus_L_F77=yes 15196 fi 15197 ;; 15198 15199 hpux11*) 15200 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15201 case $host_cpu in 15202 hppa*64*) 15203 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15204 ;; 15205 ia64*) 15206 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15207 ;; 15208 *) 15209 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15210 ;; 15211 esac 15212 else 15213 case $host_cpu in 15214 hppa*64*) 15215 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15216 ;; 15217 ia64*) 15218 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15219 ;; 15220 *) 15221 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15222 ;; 15223 esac 15224 fi 15225 if test "$with_gnu_ld" = no; then 15226 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15227 hardcode_libdir_separator_F77=: 15228 15229 case $host_cpu in 15230 hppa*64*|ia64*) 15231 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15232 hardcode_direct_F77=no 15233 hardcode_shlibpath_var_F77=no 15234 ;; 15235 *) 15236 hardcode_direct_F77=yes 15237 export_dynamic_flag_spec_F77='${wl}-E' 15238 15239 # hardcode_minus_L: Not really in the search PATH, 15240 # but as the default location of the library. 15241 hardcode_minus_L_F77=yes 15242 ;; 15243 esac 15244 fi 15245 ;; 15246 15247 irix5* | irix6* | nonstopux*) 15248 if test "$GCC" = yes; then 15249 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' 15250 else 15251 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' 15252 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15253 fi 15254 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15255 hardcode_libdir_separator_F77=: 15256 link_all_deplibs_F77=yes 15257 ;; 15258 15259 netbsd*) 15260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15261 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15262 else 15263 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15264 fi 15265 hardcode_libdir_flag_spec_F77='-R$libdir' 15266 hardcode_direct_F77=yes 15267 hardcode_shlibpath_var_F77=no 15268 ;; 15269 15270 newsos6) 15271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15272 hardcode_direct_F77=yes 15273 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15274 hardcode_libdir_separator_F77=: 15275 hardcode_shlibpath_var_F77=no 15276 ;; 15277 15278 openbsd*) 15279 hardcode_direct_F77=yes 15280 hardcode_shlibpath_var_F77=no 15281 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15282 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15283 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15284 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15285 export_dynamic_flag_spec_F77='${wl}-E' 15286 else 15287 case $host_os in 15288 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15289 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15290 hardcode_libdir_flag_spec_F77='-R$libdir' 15291 ;; 15292 *) 15293 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15294 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15295 ;; 15296 esac 15297 fi 15298 ;; 15299 15300 os2*) 15301 hardcode_libdir_flag_spec_F77='-L$libdir' 15302 hardcode_minus_L_F77=yes 15303 allow_undefined_flag_F77=unsupported 15304 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' 15305 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15306 ;; 15307 15308 osf3*) 15309 if test "$GCC" = yes; then 15310 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15311 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' 15312 else 15313 allow_undefined_flag_F77=' -expect_unresolved \*' 15314 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' 15315 fi 15316 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15317 hardcode_libdir_separator_F77=: 15318 ;; 15319 15320 osf4* | osf5*) # as osf3* with the addition of -msym flag 15321 if test "$GCC" = yes; then 15322 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15323 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' 15324 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15325 else 15326 allow_undefined_flag_F77=' -expect_unresolved \*' 15327 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' 15328 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~ 15329 $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' 15330 15331 # Both c and cxx compiler support -rpath directly 15332 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15333 fi 15334 hardcode_libdir_separator_F77=: 15335 ;; 15336 15337 solaris*) 15338 no_undefined_flag_F77=' -z text' 15339 if test "$GCC" = yes; then 15340 wlarc='${wl}' 15341 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15342 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15343 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15344 else 15345 wlarc='' 15346 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15347 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15348 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15349 fi 15350 hardcode_libdir_flag_spec_F77='-R$libdir' 15351 hardcode_shlibpath_var_F77=no 15352 case $host_os in 15353 solaris2.[0-5] | solaris2.[0-5].*) ;; 15354 *) 15355 # The compiler driver will combine linker options so we 15356 # cannot just pass the convience library names through 15357 # without $wl, iff we do not link with $LD. 15358 # Luckily, gcc supports the same syntax we need for Sun Studio. 15359 # Supported since Solaris 2.6 (maybe 2.5.1?) 15360 case $wlarc in 15361 '') 15362 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15363 *) 15364 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 15365 esac ;; 15366 esac 15367 link_all_deplibs_F77=yes 15368 ;; 15369 15370 sunos4*) 15371 if test "x$host_vendor" = xsequent; then 15372 # Use $CC to link under sequent, because it throws in some extra .o 15373 # files that make .init and .fini sections work. 15374 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15375 else 15376 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15377 fi 15378 hardcode_libdir_flag_spec_F77='-L$libdir' 15379 hardcode_direct_F77=yes 15380 hardcode_minus_L_F77=yes 15381 hardcode_shlibpath_var_F77=no 15382 ;; 15383 15384 sysv4) 15385 case $host_vendor in 15386 sni) 15387 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15388 hardcode_direct_F77=yes # is this really true??? 15389 ;; 15390 siemens) 15391 ## LD is ld it makes a PLAMLIB 15392 ## CC just makes a GrossModule. 15393 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15394 reload_cmds_F77='$CC -r -o $output$reload_objs' 15395 hardcode_direct_F77=no 15396 ;; 15397 motorola) 15398 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15399 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15400 ;; 15401 esac 15402 runpath_var='LD_RUN_PATH' 15403 hardcode_shlibpath_var_F77=no 15404 ;; 15405 15406 sysv4.3*) 15407 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15408 hardcode_shlibpath_var_F77=no 15409 export_dynamic_flag_spec_F77='-Bexport' 15410 ;; 15411 15412 sysv4*MP*) 15413 if test -d /usr/nec; then 15414 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15415 hardcode_shlibpath_var_F77=no 15416 runpath_var=LD_RUN_PATH 15417 hardcode_runpath_var=yes 15418 ld_shlibs_F77=yes 15419 fi 15420 ;; 15421 15422 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15423 no_undefined_flag_F77='${wl}-z,text' 15424 archive_cmds_need_lc_F77=no 15425 hardcode_shlibpath_var_F77=no 15426 runpath_var='LD_RUN_PATH' 15427 15428 if test "$GCC" = yes; then 15429 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15430 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15431 else 15432 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15433 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15434 fi 15435 ;; 15436 15437 sysv5* | sco3.2v5* | sco5v6*) 15438 # Note: We can NOT use -z defs as we might desire, because we do not 15439 # link with -lc, and that would cause any symbols used from libc to 15440 # always be unresolved, which means just about no library would 15441 # ever link correctly. If we're not using GNU ld we use -z text 15442 # though, which does catch some bad symbols but isn't as heavy-handed 15443 # as -z defs. 15444 no_undefined_flag_F77='${wl}-z,text' 15445 allow_undefined_flag_F77='${wl}-z,nodefs' 15446 archive_cmds_need_lc_F77=no 15447 hardcode_shlibpath_var_F77=no 15448 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15449 hardcode_libdir_separator_F77=':' 15450 link_all_deplibs_F77=yes 15451 export_dynamic_flag_spec_F77='${wl}-Bexport' 15452 runpath_var='LD_RUN_PATH' 15453 15454 if test "$GCC" = yes; then 15455 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15456 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15457 else 15458 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15459 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15460 fi 15461 ;; 15462 15463 uts4*) 15464 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15465 hardcode_libdir_flag_spec_F77='-L$libdir' 15466 hardcode_shlibpath_var_F77=no 15467 ;; 15468 15469 *) 15470 ld_shlibs_F77=no 15471 ;; 15472 esac 15473 fi 15474 15475{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15476echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15477test "$ld_shlibs_F77" = no && can_build_shared=no 15478 15479# 15480# Do we need to explicitly link libc? 15481# 15482case "x$archive_cmds_need_lc_F77" in 15483x|xyes) 15484 # Assume -lc should be added 15485 archive_cmds_need_lc_F77=yes 15486 15487 if test "$enable_shared" = yes && test "$GCC" = yes; then 15488 case $archive_cmds_F77 in 15489 *'~'*) 15490 # FIXME: we may have to deal with multi-command sequences. 15491 ;; 15492 '$CC '*) 15493 # Test whether the compiler implicitly links with -lc since on some 15494 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15495 # to ld, don't add -lc before -lgcc. 15496 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15497echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15498 $rm conftest* 15499 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15500 15501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15502 (eval $ac_compile) 2>&5 15503 ac_status=$? 15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15505 (exit $ac_status); } 2>conftest.err; then 15506 soname=conftest 15507 lib=conftest 15508 libobjs=conftest.$ac_objext 15509 deplibs= 15510 wl=$lt_prog_compiler_wl_F77 15511 pic_flag=$lt_prog_compiler_pic_F77 15512 compiler_flags=-v 15513 linker_flags=-v 15514 verstring= 15515 output_objdir=. 15516 libname=conftest 15517 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15518 allow_undefined_flag_F77= 15519 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15520 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15521 ac_status=$? 15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15523 (exit $ac_status); } 15524 then 15525 archive_cmds_need_lc_F77=no 15526 else 15527 archive_cmds_need_lc_F77=yes 15528 fi 15529 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15530 else 15531 cat conftest.err 1>&5 15532 fi 15533 $rm conftest* 15534 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15535echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15536 ;; 15537 esac 15538 fi 15539 ;; 15540esac 15541 15542{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15543echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15544library_names_spec= 15545libname_spec='lib$name' 15546soname_spec= 15547shrext_cmds=".so" 15548postinstall_cmds= 15549postuninstall_cmds= 15550finish_cmds= 15551finish_eval= 15552shlibpath_var= 15553shlibpath_overrides_runpath=unknown 15554version_type=none 15555dynamic_linker="$host_os ld.so" 15556sys_lib_dlsearch_path_spec="/lib /usr/lib" 15557if test "$GCC" = yes; then 15558 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15559 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15560 # if the path contains ";" then we assume it to be the separator 15561 # otherwise default to the standard path separator (i.e. ":") - it is 15562 # assumed that no part of a normal pathname contains ";" but that should 15563 # okay in the real world where ";" in dirpaths is itself problematic. 15564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15565 else 15566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15567 fi 15568else 15569 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15570fi 15571need_lib_prefix=unknown 15572hardcode_into_libs=no 15573 15574# when you set need_version to no, make sure it does not cause -set_version 15575# flags to be left without arguments 15576need_version=unknown 15577 15578case $host_os in 15579aix3*) 15580 version_type=linux 15581 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15582 shlibpath_var=LIBPATH 15583 15584 # AIX 3 has no versioning support, so we append a major version to the name. 15585 soname_spec='${libname}${release}${shared_ext}$major' 15586 ;; 15587 15588aix4* | aix5*) 15589 version_type=linux 15590 need_lib_prefix=no 15591 need_version=no 15592 hardcode_into_libs=yes 15593 if test "$host_cpu" = ia64; then 15594 # AIX 5 supports IA64 15595 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15596 shlibpath_var=LD_LIBRARY_PATH 15597 else 15598 # With GCC up to 2.95.x, collect2 would create an import file 15599 # for dependence libraries. The import file would start with 15600 # the line `#! .'. This would cause the generated library to 15601 # depend on `.', always an invalid library. This was fixed in 15602 # development snapshots of GCC prior to 3.0. 15603 case $host_os in 15604 aix4 | aix4.[01] | aix4.[01].*) 15605 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15606 echo ' yes ' 15607 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15608 : 15609 else 15610 can_build_shared=no 15611 fi 15612 ;; 15613 esac 15614 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15615 # soname into executable. Probably we can add versioning support to 15616 # collect2, so additional links can be useful in future. 15617 if test "$aix_use_runtimelinking" = yes; then 15618 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15619 # instead of lib<name>.a to let people know that these are not 15620 # typical AIX shared libraries. 15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15622 else 15623 # We preserve .a as extension for shared libraries through AIX4.2 15624 # and later when we are not doing run time linking. 15625 library_names_spec='${libname}${release}.a $libname.a' 15626 soname_spec='${libname}${release}${shared_ext}$major' 15627 fi 15628 shlibpath_var=LIBPATH 15629 fi 15630 ;; 15631 15632amigaos*) 15633 library_names_spec='$libname.ixlibrary $libname.a' 15634 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15635 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' 15636 ;; 15637 15638beos*) 15639 library_names_spec='${libname}${shared_ext}' 15640 dynamic_linker="$host_os ld.so" 15641 shlibpath_var=LIBRARY_PATH 15642 ;; 15643 15644bsdi[45]*) 15645 version_type=linux 15646 need_version=no 15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15648 soname_spec='${libname}${release}${shared_ext}$major' 15649 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15650 shlibpath_var=LD_LIBRARY_PATH 15651 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15652 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15653 # the default ld.so.conf also contains /usr/contrib/lib and 15654 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15655 # libtool to hard-code these into programs 15656 ;; 15657 15658cygwin* | mingw* | pw32*) 15659 version_type=windows 15660 shrext_cmds=".dll" 15661 need_version=no 15662 need_lib_prefix=no 15663 15664 case $GCC,$host_os in 15665 yes,cygwin* | yes,mingw* | yes,pw32*) 15666 library_names_spec='$libname.dll.a' 15667 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15668 postinstall_cmds='base_file=`basename \${file}`~ 15669 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15670 dldir=$destdir/`dirname \$dlpath`~ 15671 test -d \$dldir || mkdir -p \$dldir~ 15672 $install_prog $dir/$dlname \$dldir/$dlname~ 15673 chmod a+x \$dldir/$dlname' 15674 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15675 dlpath=$dir/\$dldll~ 15676 $rm \$dlpath' 15677 shlibpath_overrides_runpath=yes 15678 15679 case $host_os in 15680 cygwin*) 15681 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15682 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15683 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15684 ;; 15685 mingw*) 15686 # MinGW DLLs use traditional 'lib' prefix 15687 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15688 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15689 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15690 # It is most probably a Windows format PATH printed by 15691 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15692 # path with ; separators, and with drive letters. We can handle the 15693 # drive letters (cygwin fileutils understands them), so leave them, 15694 # especially as we might pass files found there to a mingw objdump, 15695 # which wouldn't understand a cygwinified path. Ahh. 15696 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15697 else 15698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15699 fi 15700 ;; 15701 pw32*) 15702 # pw32 DLLs use 'pw' prefix rather than 'lib' 15703 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15704 ;; 15705 esac 15706 ;; 15707 15708 *) 15709 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15710 ;; 15711 esac 15712 dynamic_linker='Win32 ld.exe' 15713 # FIXME: first we should search . and the directory the executable is in 15714 shlibpath_var=PATH 15715 ;; 15716 15717darwin* | rhapsody*) 15718 dynamic_linker="$host_os dyld" 15719 version_type=darwin 15720 need_lib_prefix=no 15721 need_version=no 15722 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15723 soname_spec='${libname}${release}${major}$shared_ext' 15724 shlibpath_overrides_runpath=yes 15725 shlibpath_var=DYLD_LIBRARY_PATH 15726 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15727 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15728 if test "$GCC" = yes; then 15729 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15730 else 15731 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15732 fi 15733 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15734 ;; 15735 15736dgux*) 15737 version_type=linux 15738 need_lib_prefix=no 15739 need_version=no 15740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15741 soname_spec='${libname}${release}${shared_ext}$major' 15742 shlibpath_var=LD_LIBRARY_PATH 15743 ;; 15744 15745freebsd1*) 15746 dynamic_linker=no 15747 ;; 15748 15749kfreebsd*-gnu) 15750 version_type=linux 15751 need_lib_prefix=no 15752 need_version=no 15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15754 soname_spec='${libname}${release}${shared_ext}$major' 15755 shlibpath_var=LD_LIBRARY_PATH 15756 shlibpath_overrides_runpath=no 15757 hardcode_into_libs=yes 15758 dynamic_linker='GNU ld.so' 15759 ;; 15760 15761freebsd* | dragonfly*) 15762 # DragonFly does not have aout. When/if they implement a new 15763 # versioning mechanism, adjust this. 15764 if test -x /usr/bin/objformat; then 15765 objformat=`/usr/bin/objformat` 15766 else 15767 case $host_os in 15768 freebsd[123]*) objformat=aout ;; 15769 *) objformat=elf ;; 15770 esac 15771 fi 15772 version_type=freebsd-$objformat 15773 case $version_type in 15774 freebsd-elf*) 15775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15776 need_version=no 15777 need_lib_prefix=no 15778 ;; 15779 freebsd-*) 15780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15781 need_version=yes 15782 ;; 15783 esac 15784 shlibpath_var=LD_LIBRARY_PATH 15785 case $host_os in 15786 freebsd2*) 15787 shlibpath_overrides_runpath=yes 15788 ;; 15789 freebsd3.[01]* | freebsdelf3.[01]*) 15790 shlibpath_overrides_runpath=yes 15791 hardcode_into_libs=yes 15792 ;; 15793 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15794 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15795 shlibpath_overrides_runpath=no 15796 hardcode_into_libs=yes 15797 ;; 15798 freebsd*) # from 4.6 on 15799 shlibpath_overrides_runpath=yes 15800 hardcode_into_libs=yes 15801 ;; 15802 esac 15803 ;; 15804 15805gnu*) 15806 version_type=linux 15807 need_lib_prefix=no 15808 need_version=no 15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15810 soname_spec='${libname}${release}${shared_ext}$major' 15811 shlibpath_var=LD_LIBRARY_PATH 15812 hardcode_into_libs=yes 15813 ;; 15814 15815hpux9* | hpux10* | hpux11*) 15816 # Give a soname corresponding to the major version so that dld.sl refuses to 15817 # link against other versions. 15818 version_type=sunos 15819 need_lib_prefix=no 15820 need_version=no 15821 case $host_cpu in 15822 ia64*) 15823 shrext_cmds='.so' 15824 hardcode_into_libs=yes 15825 dynamic_linker="$host_os dld.so" 15826 shlibpath_var=LD_LIBRARY_PATH 15827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15829 soname_spec='${libname}${release}${shared_ext}$major' 15830 if test "X$HPUX_IA64_MODE" = X32; then 15831 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15832 else 15833 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15834 fi 15835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15836 ;; 15837 hppa*64*) 15838 shrext_cmds='.sl' 15839 hardcode_into_libs=yes 15840 dynamic_linker="$host_os dld.sl" 15841 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15844 soname_spec='${libname}${release}${shared_ext}$major' 15845 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15847 ;; 15848 *) 15849 shrext_cmds='.sl' 15850 dynamic_linker="$host_os dld.sl" 15851 shlibpath_var=SHLIB_PATH 15852 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15854 soname_spec='${libname}${release}${shared_ext}$major' 15855 ;; 15856 esac 15857 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15858 postinstall_cmds='chmod 555 $lib' 15859 ;; 15860 15861interix3*) 15862 version_type=linux 15863 need_lib_prefix=no 15864 need_version=no 15865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15866 soname_spec='${libname}${release}${shared_ext}$major' 15867 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15868 shlibpath_var=LD_LIBRARY_PATH 15869 shlibpath_overrides_runpath=no 15870 hardcode_into_libs=yes 15871 ;; 15872 15873irix5* | irix6* | nonstopux*) 15874 case $host_os in 15875 nonstopux*) version_type=nonstopux ;; 15876 *) 15877 if test "$lt_cv_prog_gnu_ld" = yes; then 15878 version_type=linux 15879 else 15880 version_type=irix 15881 fi ;; 15882 esac 15883 need_lib_prefix=no 15884 need_version=no 15885 soname_spec='${libname}${release}${shared_ext}$major' 15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15887 case $host_os in 15888 irix5* | nonstopux*) 15889 libsuff= shlibsuff= 15890 ;; 15891 *) 15892 case $LD in # libtool.m4 will add one of these switches to LD 15893 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15894 libsuff= shlibsuff= libmagic=32-bit;; 15895 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15896 libsuff=32 shlibsuff=N32 libmagic=N32;; 15897 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15898 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15899 *) libsuff= shlibsuff= libmagic=never-match;; 15900 esac 15901 ;; 15902 esac 15903 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15904 shlibpath_overrides_runpath=no 15905 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15906 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15907 hardcode_into_libs=yes 15908 ;; 15909 15910# No shared lib support for Linux oldld, aout, or coff. 15911linux*oldld* | linux*aout* | linux*coff*) 15912 dynamic_linker=no 15913 ;; 15914 15915# This must be Linux ELF. 15916linux*) 15917 version_type=linux 15918 need_lib_prefix=no 15919 need_version=no 15920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15921 soname_spec='${libname}${release}${shared_ext}$major' 15922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15923 shlibpath_var=LD_LIBRARY_PATH 15924 shlibpath_overrides_runpath=no 15925 # This implies no fast_install, which is unacceptable. 15926 # Some rework will be needed to allow for fast_install 15927 # before this can be enabled. 15928 hardcode_into_libs=yes 15929 15930 # Append ld.so.conf contents to the search path 15931 if test -f /etc/ld.so.conf; then 15932 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15934 fi 15935 15936 # We used to test for /lib/ld.so.1 and disable shared libraries on 15937 # powerpc, because MkLinux only supported shared libraries with the 15938 # GNU dynamic linker. Since this was broken with cross compilers, 15939 # most powerpc-linux boxes support dynamic linking these days and 15940 # people can always --disable-shared, the test was removed, and we 15941 # assume the GNU/Linux dynamic linker is in use. 15942 dynamic_linker='GNU/Linux ld.so' 15943 ;; 15944 15945knetbsd*-gnu) 15946 version_type=linux 15947 need_lib_prefix=no 15948 need_version=no 15949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15950 soname_spec='${libname}${release}${shared_ext}$major' 15951 shlibpath_var=LD_LIBRARY_PATH 15952 shlibpath_overrides_runpath=no 15953 hardcode_into_libs=yes 15954 dynamic_linker='GNU ld.so' 15955 ;; 15956 15957netbsd*) 15958 version_type=sunos 15959 need_lib_prefix=no 15960 need_version=no 15961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15964 dynamic_linker='NetBSD (a.out) ld.so' 15965 else 15966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15967 soname_spec='${libname}${release}${shared_ext}$major' 15968 dynamic_linker='NetBSD ld.elf_so' 15969 fi 15970 shlibpath_var=LD_LIBRARY_PATH 15971 shlibpath_overrides_runpath=yes 15972 hardcode_into_libs=yes 15973 ;; 15974 15975newsos6) 15976 version_type=linux 15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15978 shlibpath_var=LD_LIBRARY_PATH 15979 shlibpath_overrides_runpath=yes 15980 ;; 15981 15982nto-qnx*) 15983 version_type=linux 15984 need_lib_prefix=no 15985 need_version=no 15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15987 soname_spec='${libname}${release}${shared_ext}$major' 15988 shlibpath_var=LD_LIBRARY_PATH 15989 shlibpath_overrides_runpath=yes 15990 ;; 15991 15992openbsd*) 15993 version_type=sunos 15994 sys_lib_dlsearch_path_spec="/usr/lib" 15995 need_lib_prefix=no 15996 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15997 case $host_os in 15998 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15999 *) need_version=no ;; 16000 esac 16001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16003 shlibpath_var=LD_LIBRARY_PATH 16004 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16005 case $host_os in 16006 openbsd2.[89] | openbsd2.[89].*) 16007 shlibpath_overrides_runpath=no 16008 ;; 16009 *) 16010 shlibpath_overrides_runpath=yes 16011 ;; 16012 esac 16013 else 16014 shlibpath_overrides_runpath=yes 16015 fi 16016 ;; 16017 16018os2*) 16019 libname_spec='$name' 16020 shrext_cmds=".dll" 16021 need_lib_prefix=no 16022 library_names_spec='$libname${shared_ext} $libname.a' 16023 dynamic_linker='OS/2 ld.exe' 16024 shlibpath_var=LIBPATH 16025 ;; 16026 16027osf3* | osf4* | osf5*) 16028 version_type=osf 16029 need_lib_prefix=no 16030 need_version=no 16031 soname_spec='${libname}${release}${shared_ext}$major' 16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16033 shlibpath_var=LD_LIBRARY_PATH 16034 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16035 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16036 ;; 16037 16038solaris*) 16039 version_type=linux 16040 need_lib_prefix=no 16041 need_version=no 16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16043 soname_spec='${libname}${release}${shared_ext}$major' 16044 shlibpath_var=LD_LIBRARY_PATH 16045 shlibpath_overrides_runpath=yes 16046 hardcode_into_libs=yes 16047 # ldd complains unless libraries are executable 16048 postinstall_cmds='chmod +x $lib' 16049 ;; 16050 16051sunos4*) 16052 version_type=sunos 16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16054 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16055 shlibpath_var=LD_LIBRARY_PATH 16056 shlibpath_overrides_runpath=yes 16057 if test "$with_gnu_ld" = yes; then 16058 need_lib_prefix=no 16059 fi 16060 need_version=yes 16061 ;; 16062 16063sysv4 | sysv4.3*) 16064 version_type=linux 16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16066 soname_spec='${libname}${release}${shared_ext}$major' 16067 shlibpath_var=LD_LIBRARY_PATH 16068 case $host_vendor in 16069 sni) 16070 shlibpath_overrides_runpath=no 16071 need_lib_prefix=no 16072 export_dynamic_flag_spec='${wl}-Blargedynsym' 16073 runpath_var=LD_RUN_PATH 16074 ;; 16075 siemens) 16076 need_lib_prefix=no 16077 ;; 16078 motorola) 16079 need_lib_prefix=no 16080 need_version=no 16081 shlibpath_overrides_runpath=no 16082 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16083 ;; 16084 esac 16085 ;; 16086 16087sysv4*MP*) 16088 if test -d /usr/nec ;then 16089 version_type=linux 16090 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16091 soname_spec='$libname${shared_ext}.$major' 16092 shlibpath_var=LD_LIBRARY_PATH 16093 fi 16094 ;; 16095 16096sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16097 version_type=freebsd-elf 16098 need_lib_prefix=no 16099 need_version=no 16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16101 soname_spec='${libname}${release}${shared_ext}$major' 16102 shlibpath_var=LD_LIBRARY_PATH 16103 hardcode_into_libs=yes 16104 if test "$with_gnu_ld" = yes; then 16105 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16106 shlibpath_overrides_runpath=no 16107 else 16108 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16109 shlibpath_overrides_runpath=yes 16110 case $host_os in 16111 sco3.2v5*) 16112 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16113 ;; 16114 esac 16115 fi 16116 sys_lib_dlsearch_path_spec='/usr/lib' 16117 ;; 16118 16119uts4*) 16120 version_type=linux 16121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16122 soname_spec='${libname}${release}${shared_ext}$major' 16123 shlibpath_var=LD_LIBRARY_PATH 16124 ;; 16125 16126*) 16127 dynamic_linker=no 16128 ;; 16129esac 16130{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16131echo "${ECHO_T}$dynamic_linker" >&6; } 16132test "$dynamic_linker" = no && can_build_shared=no 16133 16134variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16135if test "$GCC" = yes; then 16136 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16137fi 16138 16139{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16140echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16141hardcode_action_F77= 16142if test -n "$hardcode_libdir_flag_spec_F77" || \ 16143 test -n "$runpath_var_F77" || \ 16144 test "X$hardcode_automatic_F77" = "Xyes" ; then 16145 16146 # We can hardcode non-existant directories. 16147 if test "$hardcode_direct_F77" != no && 16148 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16149 # have to relink, otherwise we might link with an installed library 16150 # when we should be linking with a yet-to-be-installed one 16151 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16152 test "$hardcode_minus_L_F77" != no; then 16153 # Linking always hardcodes the temporary library directory. 16154 hardcode_action_F77=relink 16155 else 16156 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16157 hardcode_action_F77=immediate 16158 fi 16159else 16160 # We cannot hardcode anything, or else we can only hardcode existing 16161 # directories. 16162 hardcode_action_F77=unsupported 16163fi 16164{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16165echo "${ECHO_T}$hardcode_action_F77" >&6; } 16166 16167if test "$hardcode_action_F77" = relink; then 16168 # Fast installation is not supported 16169 enable_fast_install=no 16170elif test "$shlibpath_overrides_runpath" = yes || 16171 test "$enable_shared" = no; then 16172 # Fast installation is not necessary 16173 enable_fast_install=needless 16174fi 16175 16176 16177# The else clause should only fire when bootstrapping the 16178# libtool distribution, otherwise you forgot to ship ltmain.sh 16179# with your package, and you will get complaints that there are 16180# no rules to generate ltmain.sh. 16181if test -f "$ltmain"; then 16182 # See if we are running on zsh, and set the options which allow our commands through 16183 # without removal of \ escapes. 16184 if test -n "${ZSH_VERSION+set}" ; then 16185 setopt NO_GLOB_SUBST 16186 fi 16187 # Now quote all the things that may contain metacharacters while being 16188 # careful not to overquote the AC_SUBSTed values. We take copies of the 16189 # variables and quote the copies for generation of the libtool script. 16190 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16191 SED SHELL STRIP \ 16192 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16193 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16194 deplibs_check_method reload_flag reload_cmds need_locks \ 16195 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16196 lt_cv_sys_global_symbol_to_c_name_address \ 16197 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16198 old_postinstall_cmds old_postuninstall_cmds \ 16199 compiler_F77 \ 16200 CC_F77 \ 16201 LD_F77 \ 16202 lt_prog_compiler_wl_F77 \ 16203 lt_prog_compiler_pic_F77 \ 16204 lt_prog_compiler_static_F77 \ 16205 lt_prog_compiler_no_builtin_flag_F77 \ 16206 export_dynamic_flag_spec_F77 \ 16207 thread_safe_flag_spec_F77 \ 16208 whole_archive_flag_spec_F77 \ 16209 enable_shared_with_static_runtimes_F77 \ 16210 old_archive_cmds_F77 \ 16211 old_archive_from_new_cmds_F77 \ 16212 predep_objects_F77 \ 16213 postdep_objects_F77 \ 16214 predeps_F77 \ 16215 postdeps_F77 \ 16216 compiler_lib_search_path_F77 \ 16217 archive_cmds_F77 \ 16218 archive_expsym_cmds_F77 \ 16219 postinstall_cmds_F77 \ 16220 postuninstall_cmds_F77 \ 16221 old_archive_from_expsyms_cmds_F77 \ 16222 allow_undefined_flag_F77 \ 16223 no_undefined_flag_F77 \ 16224 export_symbols_cmds_F77 \ 16225 hardcode_libdir_flag_spec_F77 \ 16226 hardcode_libdir_flag_spec_ld_F77 \ 16227 hardcode_libdir_separator_F77 \ 16228 hardcode_automatic_F77 \ 16229 module_cmds_F77 \ 16230 module_expsym_cmds_F77 \ 16231 lt_cv_prog_compiler_c_o_F77 \ 16232 exclude_expsyms_F77 \ 16233 include_expsyms_F77; do 16234 16235 case $var in 16236 old_archive_cmds_F77 | \ 16237 old_archive_from_new_cmds_F77 | \ 16238 archive_cmds_F77 | \ 16239 archive_expsym_cmds_F77 | \ 16240 module_cmds_F77 | \ 16241 module_expsym_cmds_F77 | \ 16242 old_archive_from_expsyms_cmds_F77 | \ 16243 export_symbols_cmds_F77 | \ 16244 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16245 postinstall_cmds | postuninstall_cmds | \ 16246 old_postinstall_cmds | old_postuninstall_cmds | \ 16247 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16248 # Double-quote double-evaled strings. 16249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16250 ;; 16251 *) 16252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16253 ;; 16254 esac 16255 done 16256 16257 case $lt_echo in 16258 *'\$0 --fallback-echo"') 16259 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16260 ;; 16261 esac 16262 16263cfgfile="$ofile" 16264 16265 cat <<__EOF__ >> "$cfgfile" 16266# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16267 16268# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16269 16270# Shell to use when invoking shell scripts. 16271SHELL=$lt_SHELL 16272 16273# Whether or not to build shared libraries. 16274build_libtool_libs=$enable_shared 16275 16276# Whether or not to build static libraries. 16277build_old_libs=$enable_static 16278 16279# Whether or not to add -lc for building shared libraries. 16280build_libtool_need_lc=$archive_cmds_need_lc_F77 16281 16282# Whether or not to disallow shared libs when runtime libs are static 16283allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16284 16285# Whether or not to optimize for fast installation. 16286fast_install=$enable_fast_install 16287 16288# The host system. 16289host_alias=$host_alias 16290host=$host 16291host_os=$host_os 16292 16293# The build system. 16294build_alias=$build_alias 16295build=$build 16296build_os=$build_os 16297 16298# An echo program that does not interpret backslashes. 16299echo=$lt_echo 16300 16301# The archiver. 16302AR=$lt_AR 16303AR_FLAGS=$lt_AR_FLAGS 16304 16305# A C compiler. 16306LTCC=$lt_LTCC 16307 16308# LTCC compiler flags. 16309LTCFLAGS=$lt_LTCFLAGS 16310 16311# A language-specific compiler. 16312CC=$lt_compiler_F77 16313 16314# Is the compiler the GNU C compiler? 16315with_gcc=$GCC_F77 16316 16317# An ERE matcher. 16318EGREP=$lt_EGREP 16319 16320# The linker used to build libraries. 16321LD=$lt_LD_F77 16322 16323# Whether we need hard or soft links. 16324LN_S=$lt_LN_S 16325 16326# A BSD-compatible nm program. 16327NM=$lt_NM 16328 16329# A symbol stripping program 16330STRIP=$lt_STRIP 16331 16332# Used to examine libraries when file_magic_cmd begins "file" 16333MAGIC_CMD=$MAGIC_CMD 16334 16335# Used on cygwin: DLL creation program. 16336DLLTOOL="$DLLTOOL" 16337 16338# Used on cygwin: object dumper. 16339OBJDUMP="$OBJDUMP" 16340 16341# Used on cygwin: assembler. 16342AS="$AS" 16343 16344# The name of the directory that contains temporary libtool files. 16345objdir=$objdir 16346 16347# How to create reloadable object files. 16348reload_flag=$lt_reload_flag 16349reload_cmds=$lt_reload_cmds 16350 16351# How to pass a linker flag through the compiler. 16352wl=$lt_lt_prog_compiler_wl_F77 16353 16354# Object file suffix (normally "o"). 16355objext="$ac_objext" 16356 16357# Old archive suffix (normally "a"). 16358libext="$libext" 16359 16360# Shared library suffix (normally ".so"). 16361shrext_cmds='$shrext_cmds' 16362 16363# Executable file suffix (normally ""). 16364exeext="$exeext" 16365 16366# Additional compiler flags for building library objects. 16367pic_flag=$lt_lt_prog_compiler_pic_F77 16368pic_mode=$pic_mode 16369 16370# What is the maximum length of a command? 16371max_cmd_len=$lt_cv_sys_max_cmd_len 16372 16373# Does compiler simultaneously support -c and -o options? 16374compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16375 16376# Must we lock files when doing compilation? 16377need_locks=$lt_need_locks 16378 16379# Do we need the lib prefix for modules? 16380need_lib_prefix=$need_lib_prefix 16381 16382# Do we need a version for libraries? 16383need_version=$need_version 16384 16385# Whether dlopen is supported. 16386dlopen_support=$enable_dlopen 16387 16388# Whether dlopen of programs is supported. 16389dlopen_self=$enable_dlopen_self 16390 16391# Whether dlopen of statically linked programs is supported. 16392dlopen_self_static=$enable_dlopen_self_static 16393 16394# Compiler flag to prevent dynamic linking. 16395link_static_flag=$lt_lt_prog_compiler_static_F77 16396 16397# Compiler flag to turn off builtin functions. 16398no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16399 16400# Compiler flag to allow reflexive dlopens. 16401export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16402 16403# Compiler flag to generate shared objects directly from archives. 16404whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16405 16406# Compiler flag to generate thread-safe objects. 16407thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16408 16409# Library versioning type. 16410version_type=$version_type 16411 16412# Format of library name prefix. 16413libname_spec=$lt_libname_spec 16414 16415# List of archive names. First name is the real one, the rest are links. 16416# The last name is the one that the linker finds with -lNAME. 16417library_names_spec=$lt_library_names_spec 16418 16419# The coded name of the library, if different from the real name. 16420soname_spec=$lt_soname_spec 16421 16422# Commands used to build and install an old-style archive. 16423RANLIB=$lt_RANLIB 16424old_archive_cmds=$lt_old_archive_cmds_F77 16425old_postinstall_cmds=$lt_old_postinstall_cmds 16426old_postuninstall_cmds=$lt_old_postuninstall_cmds 16427 16428# Create an old-style archive from a shared archive. 16429old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16430 16431# Create a temporary old-style archive to link instead of a shared archive. 16432old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16433 16434# Commands used to build and install a shared archive. 16435archive_cmds=$lt_archive_cmds_F77 16436archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16437postinstall_cmds=$lt_postinstall_cmds 16438postuninstall_cmds=$lt_postuninstall_cmds 16439 16440# Commands used to build a loadable module (assumed same as above if empty) 16441module_cmds=$lt_module_cmds_F77 16442module_expsym_cmds=$lt_module_expsym_cmds_F77 16443 16444# Commands to strip libraries. 16445old_striplib=$lt_old_striplib 16446striplib=$lt_striplib 16447 16448# Dependencies to place before the objects being linked to create a 16449# shared library. 16450predep_objects=$lt_predep_objects_F77 16451 16452# Dependencies to place after the objects being linked to create a 16453# shared library. 16454postdep_objects=$lt_postdep_objects_F77 16455 16456# Dependencies to place before the objects being linked to create a 16457# shared library. 16458predeps=$lt_predeps_F77 16459 16460# Dependencies to place after the objects being linked to create a 16461# shared library. 16462postdeps=$lt_postdeps_F77 16463 16464# The library search path used internally by the compiler when linking 16465# a shared library. 16466compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16467 16468# Method to check whether dependent libraries are shared objects. 16469deplibs_check_method=$lt_deplibs_check_method 16470 16471# Command to use when deplibs_check_method == file_magic. 16472file_magic_cmd=$lt_file_magic_cmd 16473 16474# Flag that allows shared libraries with undefined symbols to be built. 16475allow_undefined_flag=$lt_allow_undefined_flag_F77 16476 16477# Flag that forces no undefined symbols. 16478no_undefined_flag=$lt_no_undefined_flag_F77 16479 16480# Commands used to finish a libtool library installation in a directory. 16481finish_cmds=$lt_finish_cmds 16482 16483# Same as above, but a single script fragment to be evaled but not shown. 16484finish_eval=$lt_finish_eval 16485 16486# Take the output of nm and produce a listing of raw symbols and C names. 16487global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16488 16489# Transform the output of nm in a proper C declaration 16490global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16491 16492# Transform the output of nm in a C name address pair 16493global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16494 16495# This is the shared library runtime path variable. 16496runpath_var=$runpath_var 16497 16498# This is the shared library path variable. 16499shlibpath_var=$shlibpath_var 16500 16501# Is shlibpath searched before the hard-coded library search path? 16502shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16503 16504# How to hardcode a shared library path into an executable. 16505hardcode_action=$hardcode_action_F77 16506 16507# Whether we should hardcode library paths into libraries. 16508hardcode_into_libs=$hardcode_into_libs 16509 16510# Flag to hardcode \$libdir into a binary during linking. 16511# This must work even if \$libdir does not exist. 16512hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16513 16514# If ld is used when linking, flag to hardcode \$libdir into 16515# a binary during linking. This must work even if \$libdir does 16516# not exist. 16517hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16518 16519# Whether we need a single -rpath flag with a separated argument. 16520hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16521 16522# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16523# resulting binary. 16524hardcode_direct=$hardcode_direct_F77 16525 16526# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16527# resulting binary. 16528hardcode_minus_L=$hardcode_minus_L_F77 16529 16530# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16531# the resulting binary. 16532hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16533 16534# Set to yes if building a shared library automatically hardcodes DIR into the library 16535# and all subsequent libraries and executables linked against it. 16536hardcode_automatic=$hardcode_automatic_F77 16537 16538# Variables whose values should be saved in libtool wrapper scripts and 16539# restored at relink time. 16540variables_saved_for_relink="$variables_saved_for_relink" 16541 16542# Whether libtool must link a program against all its dependency libraries. 16543link_all_deplibs=$link_all_deplibs_F77 16544 16545# Compile-time system search path for libraries 16546sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16547 16548# Run-time system search path for libraries 16549sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16550 16551# Fix the shell variable \$srcfile for the compiler. 16552fix_srcfile_path="$fix_srcfile_path_F77" 16553 16554# Set to yes if exported symbols are required. 16555always_export_symbols=$always_export_symbols_F77 16556 16557# The commands to list exported symbols. 16558export_symbols_cmds=$lt_export_symbols_cmds_F77 16559 16560# The commands to extract the exported symbol list from a shared archive. 16561extract_expsyms_cmds=$lt_extract_expsyms_cmds 16562 16563# Symbols that should not be listed in the preloaded symbols. 16564exclude_expsyms=$lt_exclude_expsyms_F77 16565 16566# Symbols that must always be exported. 16567include_expsyms=$lt_include_expsyms_F77 16568 16569# ### END LIBTOOL TAG CONFIG: $tagname 16570 16571__EOF__ 16572 16573 16574else 16575 # If there is no Makefile yet, we rely on a make rule to execute 16576 # `config.status --recheck' to rerun these tests and create the 16577 # libtool script then. 16578 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16579 if test -f "$ltmain_in"; then 16580 test -f Makefile && make "$ltmain" 16581 fi 16582fi 16583 16584 16585ac_ext=c 16586ac_cpp='$CPP $CPPFLAGS' 16587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16589ac_compiler_gnu=$ac_cv_c_compiler_gnu 16590 16591CC="$lt_save_CC" 16592 16593 else 16594 tagname="" 16595 fi 16596 ;; 16597 16598 GCJ) 16599 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16600 16601 16602# Source file extension for Java test sources. 16603ac_ext=java 16604 16605# Object file extension for compiled Java test sources. 16606objext=o 16607objext_GCJ=$objext 16608 16609# Code to be used in simple compile tests 16610lt_simple_compile_test_code="class foo {}\n" 16611 16612# Code to be used in simple link tests 16613lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16614 16615# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16616 16617# If no C compiler was specified, use CC. 16618LTCC=${LTCC-"$CC"} 16619 16620# If no C compiler flags were specified, use CFLAGS. 16621LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16622 16623# Allow CC to be a program name with arguments. 16624compiler=$CC 16625 16626 16627# save warnings/boilerplate of simple test code 16628ac_outfile=conftest.$ac_objext 16629printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16630eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16631_lt_compiler_boilerplate=`cat conftest.err` 16632$rm conftest* 16633 16634ac_outfile=conftest.$ac_objext 16635printf "$lt_simple_link_test_code" >conftest.$ac_ext 16636eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16637_lt_linker_boilerplate=`cat conftest.err` 16638$rm conftest* 16639 16640 16641# Allow CC to be a program name with arguments. 16642lt_save_CC="$CC" 16643CC=${GCJ-"gcj"} 16644compiler=$CC 16645compiler_GCJ=$CC 16646for cc_temp in $compiler""; do 16647 case $cc_temp in 16648 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16649 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16650 \-*) ;; 16651 *) break;; 16652 esac 16653done 16654cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16655 16656 16657# GCJ did not exist at the time GCC didn't implicitly link libc in. 16658archive_cmds_need_lc_GCJ=no 16659 16660old_archive_cmds_GCJ=$old_archive_cmds 16661 16662 16663lt_prog_compiler_no_builtin_flag_GCJ= 16664 16665if test "$GCC" = yes; then 16666 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16667 16668 16669{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16670echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16671if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16672 echo $ECHO_N "(cached) $ECHO_C" >&6 16673else 16674 lt_cv_prog_compiler_rtti_exceptions=no 16675 ac_outfile=conftest.$ac_objext 16676 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16677 lt_compiler_flag="-fno-rtti -fno-exceptions" 16678 # Insert the option either (1) after the last *FLAGS variable, or 16679 # (2) before a word containing "conftest.", or (3) at the end. 16680 # Note that $ac_compile itself does not contain backslashes and begins 16681 # with a dollar sign (not a hyphen), so the echo should work correctly. 16682 # The option is referenced via a variable to avoid confusing sed. 16683 lt_compile=`echo "$ac_compile" | $SED \ 16684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16686 -e 's:$: $lt_compiler_flag:'` 16687 (eval echo "\"\$as_me:16687: $lt_compile\"" >&5) 16688 (eval "$lt_compile" 2>conftest.err) 16689 ac_status=$? 16690 cat conftest.err >&5 16691 echo "$as_me:16691: \$? = $ac_status" >&5 16692 if (exit $ac_status) && test -s "$ac_outfile"; then 16693 # The compiler can only warn and ignore the option if not recognized 16694 # So say no if there are warnings other than the usual output. 16695 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16698 lt_cv_prog_compiler_rtti_exceptions=yes 16699 fi 16700 fi 16701 $rm conftest* 16702 16703fi 16704{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16705echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16706 16707if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16708 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16709else 16710 : 16711fi 16712 16713fi 16714 16715lt_prog_compiler_wl_GCJ= 16716lt_prog_compiler_pic_GCJ= 16717lt_prog_compiler_static_GCJ= 16718 16719{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16720echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16721 16722 if test "$GCC" = yes; then 16723 lt_prog_compiler_wl_GCJ='-Wl,' 16724 lt_prog_compiler_static_GCJ='-static' 16725 16726 case $host_os in 16727 aix*) 16728 # All AIX code is PIC. 16729 if test "$host_cpu" = ia64; then 16730 # AIX 5 now supports IA64 processor 16731 lt_prog_compiler_static_GCJ='-Bstatic' 16732 fi 16733 ;; 16734 16735 amigaos*) 16736 # FIXME: we need at least 68020 code to build shared libraries, but 16737 # adding the `-m68020' flag to GCC prevents building anything better, 16738 # like `-m68040'. 16739 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16740 ;; 16741 16742 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16743 # PIC is the default for these OSes. 16744 ;; 16745 16746 mingw* | pw32* | os2*) 16747 # This hack is so that the source file can tell whether it is being 16748 # built for inclusion in a dll (and should export symbols for example). 16749 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16750 ;; 16751 16752 darwin* | rhapsody*) 16753 # PIC is the default on this platform 16754 # Common symbols not allowed in MH_DYLIB files 16755 lt_prog_compiler_pic_GCJ='-fno-common' 16756 ;; 16757 16758 interix3*) 16759 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16760 # Instead, we relocate shared libraries at runtime. 16761 ;; 16762 16763 msdosdjgpp*) 16764 # Just because we use GCC doesn't mean we suddenly get shared libraries 16765 # on systems that don't support them. 16766 lt_prog_compiler_can_build_shared_GCJ=no 16767 enable_shared=no 16768 ;; 16769 16770 sysv4*MP*) 16771 if test -d /usr/nec; then 16772 lt_prog_compiler_pic_GCJ=-Kconform_pic 16773 fi 16774 ;; 16775 16776 hpux*) 16777 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16778 # not for PA HP-UX. 16779 case $host_cpu in 16780 hppa*64*|ia64*) 16781 # +Z the default 16782 ;; 16783 *) 16784 lt_prog_compiler_pic_GCJ='-fPIC' 16785 ;; 16786 esac 16787 ;; 16788 16789 *) 16790 lt_prog_compiler_pic_GCJ='-fPIC' 16791 ;; 16792 esac 16793 else 16794 # PORTME Check for flag to pass linker flags through the system compiler. 16795 case $host_os in 16796 aix*) 16797 lt_prog_compiler_wl_GCJ='-Wl,' 16798 if test "$host_cpu" = ia64; then 16799 # AIX 5 now supports IA64 processor 16800 lt_prog_compiler_static_GCJ='-Bstatic' 16801 else 16802 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16803 fi 16804 ;; 16805 darwin*) 16806 # PIC is the default on this platform 16807 # Common symbols not allowed in MH_DYLIB files 16808 case $cc_basename in 16809 xlc*) 16810 lt_prog_compiler_pic_GCJ='-qnocommon' 16811 lt_prog_compiler_wl_GCJ='-Wl,' 16812 ;; 16813 esac 16814 ;; 16815 16816 mingw* | pw32* | os2*) 16817 # This hack is so that the source file can tell whether it is being 16818 # built for inclusion in a dll (and should export symbols for example). 16819 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16820 ;; 16821 16822 hpux9* | hpux10* | hpux11*) 16823 lt_prog_compiler_wl_GCJ='-Wl,' 16824 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16825 # not for PA HP-UX. 16826 case $host_cpu in 16827 hppa*64*|ia64*) 16828 # +Z the default 16829 ;; 16830 *) 16831 lt_prog_compiler_pic_GCJ='+Z' 16832 ;; 16833 esac 16834 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16835 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16836 ;; 16837 16838 irix5* | irix6* | nonstopux*) 16839 lt_prog_compiler_wl_GCJ='-Wl,' 16840 # PIC (with -KPIC) is the default. 16841 lt_prog_compiler_static_GCJ='-non_shared' 16842 ;; 16843 16844 newsos6) 16845 lt_prog_compiler_pic_GCJ='-KPIC' 16846 lt_prog_compiler_static_GCJ='-Bstatic' 16847 ;; 16848 16849 linux*) 16850 case $cc_basename in 16851 icc* | ecc*) 16852 lt_prog_compiler_wl_GCJ='-Wl,' 16853 lt_prog_compiler_pic_GCJ='-KPIC' 16854 lt_prog_compiler_static_GCJ='-static' 16855 ;; 16856 pgcc* | pgf77* | pgf90* | pgf95*) 16857 # Portland Group compilers (*not* the Pentium gcc compiler, 16858 # which looks to be a dead project) 16859 lt_prog_compiler_wl_GCJ='-Wl,' 16860 lt_prog_compiler_pic_GCJ='-fpic' 16861 lt_prog_compiler_static_GCJ='-Bstatic' 16862 ;; 16863 ccc*) 16864 lt_prog_compiler_wl_GCJ='-Wl,' 16865 # All Alpha code is PIC. 16866 lt_prog_compiler_static_GCJ='-non_shared' 16867 ;; 16868 esac 16869 ;; 16870 16871 osf3* | osf4* | osf5*) 16872 lt_prog_compiler_wl_GCJ='-Wl,' 16873 # All OSF/1 code is PIC. 16874 lt_prog_compiler_static_GCJ='-non_shared' 16875 ;; 16876 16877 solaris*) 16878 lt_prog_compiler_pic_GCJ='-KPIC' 16879 lt_prog_compiler_static_GCJ='-Bstatic' 16880 case $cc_basename in 16881 f77* | f90* | f95*) 16882 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16883 *) 16884 lt_prog_compiler_wl_GCJ='-Wl,';; 16885 esac 16886 ;; 16887 16888 sunos4*) 16889 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16890 lt_prog_compiler_pic_GCJ='-PIC' 16891 lt_prog_compiler_static_GCJ='-Bstatic' 16892 ;; 16893 16894 sysv4 | sysv4.2uw2* | sysv4.3*) 16895 lt_prog_compiler_wl_GCJ='-Wl,' 16896 lt_prog_compiler_pic_GCJ='-KPIC' 16897 lt_prog_compiler_static_GCJ='-Bstatic' 16898 ;; 16899 16900 sysv4*MP*) 16901 if test -d /usr/nec ;then 16902 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16903 lt_prog_compiler_static_GCJ='-Bstatic' 16904 fi 16905 ;; 16906 16907 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16908 lt_prog_compiler_wl_GCJ='-Wl,' 16909 lt_prog_compiler_pic_GCJ='-KPIC' 16910 lt_prog_compiler_static_GCJ='-Bstatic' 16911 ;; 16912 16913 unicos*) 16914 lt_prog_compiler_wl_GCJ='-Wl,' 16915 lt_prog_compiler_can_build_shared_GCJ=no 16916 ;; 16917 16918 uts4*) 16919 lt_prog_compiler_pic_GCJ='-pic' 16920 lt_prog_compiler_static_GCJ='-Bstatic' 16921 ;; 16922 16923 *) 16924 lt_prog_compiler_can_build_shared_GCJ=no 16925 ;; 16926 esac 16927 fi 16928 16929{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16930echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16931 16932# 16933# Check to make sure the PIC flag actually works. 16934# 16935if test -n "$lt_prog_compiler_pic_GCJ"; then 16936 16937{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16938echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16939if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16940 echo $ECHO_N "(cached) $ECHO_C" >&6 16941else 16942 lt_prog_compiler_pic_works_GCJ=no 16943 ac_outfile=conftest.$ac_objext 16944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16945 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16946 # Insert the option either (1) after the last *FLAGS variable, or 16947 # (2) before a word containing "conftest.", or (3) at the end. 16948 # Note that $ac_compile itself does not contain backslashes and begins 16949 # with a dollar sign (not a hyphen), so the echo should work correctly. 16950 # The option is referenced via a variable to avoid confusing sed. 16951 lt_compile=`echo "$ac_compile" | $SED \ 16952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16954 -e 's:$: $lt_compiler_flag:'` 16955 (eval echo "\"\$as_me:16955: $lt_compile\"" >&5) 16956 (eval "$lt_compile" 2>conftest.err) 16957 ac_status=$? 16958 cat conftest.err >&5 16959 echo "$as_me:16959: \$? = $ac_status" >&5 16960 if (exit $ac_status) && test -s "$ac_outfile"; then 16961 # The compiler can only warn and ignore the option if not recognized 16962 # So say no if there are warnings other than the usual output. 16963 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16966 lt_prog_compiler_pic_works_GCJ=yes 16967 fi 16968 fi 16969 $rm conftest* 16970 16971fi 16972{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16973echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16974 16975if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16976 case $lt_prog_compiler_pic_GCJ in 16977 "" | " "*) ;; 16978 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16979 esac 16980else 16981 lt_prog_compiler_pic_GCJ= 16982 lt_prog_compiler_can_build_shared_GCJ=no 16983fi 16984 16985fi 16986case $host_os in 16987 # For platforms which do not support PIC, -DPIC is meaningless: 16988 *djgpp*) 16989 lt_prog_compiler_pic_GCJ= 16990 ;; 16991 *) 16992 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16993 ;; 16994esac 16995 16996# 16997# Check to make sure the static flag actually works. 16998# 16999wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 17000{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17001echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17002if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17003 echo $ECHO_N "(cached) $ECHO_C" >&6 17004else 17005 lt_prog_compiler_static_works_GCJ=no 17006 save_LDFLAGS="$LDFLAGS" 17007 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17008 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17009 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17010 # The linker can only warn and ignore the option if not recognized 17011 # So say no if there are warnings 17012 if test -s conftest.err; then 17013 # Append any errors to the config.log. 17014 cat conftest.err 1>&5 17015 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17016 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17017 if diff conftest.exp conftest.er2 >/dev/null; then 17018 lt_prog_compiler_static_works_GCJ=yes 17019 fi 17020 else 17021 lt_prog_compiler_static_works_GCJ=yes 17022 fi 17023 fi 17024 $rm conftest* 17025 LDFLAGS="$save_LDFLAGS" 17026 17027fi 17028{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17029echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17030 17031if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17032 : 17033else 17034 lt_prog_compiler_static_GCJ= 17035fi 17036 17037 17038{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17039echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17040if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17041 echo $ECHO_N "(cached) $ECHO_C" >&6 17042else 17043 lt_cv_prog_compiler_c_o_GCJ=no 17044 $rm -r conftest 2>/dev/null 17045 mkdir conftest 17046 cd conftest 17047 mkdir out 17048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17049 17050 lt_compiler_flag="-o out/conftest2.$ac_objext" 17051 # Insert the option either (1) after the last *FLAGS variable, or 17052 # (2) before a word containing "conftest.", or (3) at the end. 17053 # Note that $ac_compile itself does not contain backslashes and begins 17054 # with a dollar sign (not a hyphen), so the echo should work correctly. 17055 lt_compile=`echo "$ac_compile" | $SED \ 17056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17058 -e 's:$: $lt_compiler_flag:'` 17059 (eval echo "\"\$as_me:17059: $lt_compile\"" >&5) 17060 (eval "$lt_compile" 2>out/conftest.err) 17061 ac_status=$? 17062 cat out/conftest.err >&5 17063 echo "$as_me:17063: \$? = $ac_status" >&5 17064 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17065 then 17066 # The compiler can only warn and ignore the option if not recognized 17067 # So say no if there are warnings 17068 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17071 lt_cv_prog_compiler_c_o_GCJ=yes 17072 fi 17073 fi 17074 chmod u+w . 2>&5 17075 $rm conftest* 17076 # SGI C++ compiler will create directory out/ii_files/ for 17077 # template instantiation 17078 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17079 $rm out/* && rmdir out 17080 cd .. 17081 rmdir conftest 17082 $rm conftest* 17083 17084fi 17085{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17086echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17087 17088 17089hard_links="nottested" 17090if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17091 # do not overwrite the value of need_locks provided by the user 17092 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17093echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17094 hard_links=yes 17095 $rm conftest* 17096 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17097 touch conftest.a 17098 ln conftest.a conftest.b 2>&5 || hard_links=no 17099 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17100 { echo "$as_me:$LINENO: result: $hard_links" >&5 17101echo "${ECHO_T}$hard_links" >&6; } 17102 if test "$hard_links" = no; then 17103 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17104echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17105 need_locks=warn 17106 fi 17107else 17108 need_locks=no 17109fi 17110 17111{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17112echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17113 17114 runpath_var= 17115 allow_undefined_flag_GCJ= 17116 enable_shared_with_static_runtimes_GCJ=no 17117 archive_cmds_GCJ= 17118 archive_expsym_cmds_GCJ= 17119 old_archive_From_new_cmds_GCJ= 17120 old_archive_from_expsyms_cmds_GCJ= 17121 export_dynamic_flag_spec_GCJ= 17122 whole_archive_flag_spec_GCJ= 17123 thread_safe_flag_spec_GCJ= 17124 hardcode_libdir_flag_spec_GCJ= 17125 hardcode_libdir_flag_spec_ld_GCJ= 17126 hardcode_libdir_separator_GCJ= 17127 hardcode_direct_GCJ=no 17128 hardcode_minus_L_GCJ=no 17129 hardcode_shlibpath_var_GCJ=unsupported 17130 link_all_deplibs_GCJ=unknown 17131 hardcode_automatic_GCJ=no 17132 module_cmds_GCJ= 17133 module_expsym_cmds_GCJ= 17134 always_export_symbols_GCJ=no 17135 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17136 # include_expsyms should be a list of space-separated symbols to be *always* 17137 # included in the symbol list 17138 include_expsyms_GCJ= 17139 # exclude_expsyms can be an extended regexp of symbols to exclude 17140 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17141 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17142 # as well as any symbol that contains `d'. 17143 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17144 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17145 # platforms (ab)use it in PIC code, but their linkers get confused if 17146 # the symbol is explicitly referenced. Since portable code cannot 17147 # rely on this symbol name, it's probably fine to never include it in 17148 # preloaded symbol tables. 17149 extract_expsyms_cmds= 17150 # Just being paranoid about ensuring that cc_basename is set. 17151 for cc_temp in $compiler""; do 17152 case $cc_temp in 17153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17155 \-*) ;; 17156 *) break;; 17157 esac 17158done 17159cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17160 17161 case $host_os in 17162 cygwin* | mingw* | pw32*) 17163 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17164 # When not using gcc, we currently assume that we are using 17165 # Microsoft Visual C++. 17166 if test "$GCC" != yes; then 17167 with_gnu_ld=no 17168 fi 17169 ;; 17170 interix*) 17171 # we just hope/assume this is gcc and not c89 (= MSVC++) 17172 with_gnu_ld=yes 17173 ;; 17174 openbsd*) 17175 with_gnu_ld=no 17176 ;; 17177 esac 17178 17179 ld_shlibs_GCJ=yes 17180 if test "$with_gnu_ld" = yes; then 17181 # If archive_cmds runs LD, not CC, wlarc should be empty 17182 wlarc='${wl}' 17183 17184 # Set some defaults for GNU ld with shared library support. These 17185 # are reset later if shared libraries are not supported. Putting them 17186 # here allows them to be overridden if necessary. 17187 runpath_var=LD_RUN_PATH 17188 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17189 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17190 # ancient GNU ld didn't support --whole-archive et. al. 17191 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17192 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17193 else 17194 whole_archive_flag_spec_GCJ= 17195 fi 17196 supports_anon_versioning=no 17197 case `$LD -v 2>/dev/null` in 17198 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17199 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17200 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17201 *\ 2.11.*) ;; # other 2.11 versions 17202 *) supports_anon_versioning=yes ;; 17203 esac 17204 17205 # See if GNU ld supports shared libraries. 17206 case $host_os in 17207 aix3* | aix4* | aix5*) 17208 # On AIX/PPC, the GNU linker is very broken 17209 if test "$host_cpu" != ia64; then 17210 ld_shlibs_GCJ=no 17211 cat <<EOF 1>&2 17212 17213*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17214*** to be unable to reliably create shared libraries on AIX. 17215*** Therefore, libtool is disabling shared libraries support. If you 17216*** really care for shared libraries, you may want to modify your PATH 17217*** so that a non-GNU linker is found, and then restart. 17218 17219EOF 17220 fi 17221 ;; 17222 17223 amigaos*) 17224 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)' 17225 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17226 hardcode_minus_L_GCJ=yes 17227 17228 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17229 # that the semantics of dynamic libraries on AmigaOS, at least up 17230 # to version 4, is to share data among multiple programs linked 17231 # with the same dynamic library. Since this doesn't match the 17232 # behavior of shared libraries on other platforms, we can't use 17233 # them. 17234 ld_shlibs_GCJ=no 17235 ;; 17236 17237 beos*) 17238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17239 allow_undefined_flag_GCJ=unsupported 17240 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17241 # support --undefined. This deserves some investigation. FIXME 17242 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17243 else 17244 ld_shlibs_GCJ=no 17245 fi 17246 ;; 17247 17248 cygwin* | mingw* | pw32*) 17249 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17250 # as there is no search path for DLLs. 17251 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17252 allow_undefined_flag_GCJ=unsupported 17253 always_export_symbols_GCJ=no 17254 enable_shared_with_static_runtimes_GCJ=yes 17255 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17256 17257 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17258 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17259 # If the export-symbols file already is a .def file (1st line 17260 # is EXPORTS), use it as is; otherwise, prepend... 17261 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17262 cp $export_symbols $output_objdir/$soname.def; 17263 else 17264 echo EXPORTS > $output_objdir/$soname.def; 17265 cat $export_symbols >> $output_objdir/$soname.def; 17266 fi~ 17267 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17268 else 17269 ld_shlibs_GCJ=no 17270 fi 17271 ;; 17272 17273 interix3*) 17274 hardcode_direct_GCJ=no 17275 hardcode_shlibpath_var_GCJ=no 17276 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17277 export_dynamic_flag_spec_GCJ='${wl}-E' 17278 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17279 # Instead, shared libraries are loaded at an image base (0x10000000 by 17280 # default) and relocated if they conflict, which is a slow very memory 17281 # consuming and fragmenting process. To avoid this, we pick a random, 17282 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17283 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17284 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' 17285 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' 17286 ;; 17287 17288 linux*) 17289 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17290 tmp_addflag= 17291 case $cc_basename,$host_cpu in 17292 pgcc*) # Portland Group C compiler 17293 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' 17294 tmp_addflag=' $pic_flag' 17295 ;; 17296 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17297 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' 17298 tmp_addflag=' $pic_flag -Mnomain' ;; 17299 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17300 tmp_addflag=' -i_dynamic' ;; 17301 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17302 tmp_addflag=' -i_dynamic -nofor_main' ;; 17303 ifc* | ifort*) # Intel Fortran compiler 17304 tmp_addflag=' -nofor_main' ;; 17305 esac 17306 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17307 17308 if test $supports_anon_versioning = yes; then 17309 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17310 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17311 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17312 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17313 fi 17314 else 17315 ld_shlibs_GCJ=no 17316 fi 17317 ;; 17318 17319 netbsd*) 17320 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17321 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17322 wlarc= 17323 else 17324 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17325 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17326 fi 17327 ;; 17328 17329 solaris*) 17330 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17331 ld_shlibs_GCJ=no 17332 cat <<EOF 1>&2 17333 17334*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17335*** create shared libraries on Solaris systems. Therefore, libtool 17336*** is disabling shared libraries support. We urge you to upgrade GNU 17337*** binutils to release 2.9.1 or newer. Another option is to modify 17338*** your PATH or compiler configuration so that the native linker is 17339*** used, and then restart. 17340 17341EOF 17342 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17343 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17344 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17345 else 17346 ld_shlibs_GCJ=no 17347 fi 17348 ;; 17349 17350 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17351 case `$LD -v 2>&1` in 17352 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17353 ld_shlibs_GCJ=no 17354 cat <<_LT_EOF 1>&2 17355 17356*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17357*** reliably create shared libraries on SCO systems. Therefore, libtool 17358*** is disabling shared libraries support. We urge you to upgrade GNU 17359*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17360*** your PATH or compiler configuration so that the native linker is 17361*** used, and then restart. 17362 17363_LT_EOF 17364 ;; 17365 *) 17366 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17367 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17368 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17369 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17370 else 17371 ld_shlibs_GCJ=no 17372 fi 17373 ;; 17374 esac 17375 ;; 17376 17377 sunos4*) 17378 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17379 wlarc= 17380 hardcode_direct_GCJ=yes 17381 hardcode_shlibpath_var_GCJ=no 17382 ;; 17383 17384 *) 17385 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17386 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17387 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17388 else 17389 ld_shlibs_GCJ=no 17390 fi 17391 ;; 17392 esac 17393 17394 if test "$ld_shlibs_GCJ" = no; then 17395 runpath_var= 17396 hardcode_libdir_flag_spec_GCJ= 17397 export_dynamic_flag_spec_GCJ= 17398 whole_archive_flag_spec_GCJ= 17399 fi 17400 else 17401 # PORTME fill in a description of your system's linker (not GNU ld) 17402 case $host_os in 17403 aix3*) 17404 allow_undefined_flag_GCJ=unsupported 17405 always_export_symbols_GCJ=yes 17406 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' 17407 # Note: this linker hardcodes the directories in LIBPATH if there 17408 # are no directories specified by -L. 17409 hardcode_minus_L_GCJ=yes 17410 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17411 # Neither direct hardcoding nor static linking is supported with a 17412 # broken collect2. 17413 hardcode_direct_GCJ=unsupported 17414 fi 17415 ;; 17416 17417 aix4* | aix5*) 17418 if test "$host_cpu" = ia64; then 17419 # On IA64, the linker does run time linking by default, so we don't 17420 # have to do anything special. 17421 aix_use_runtimelinking=no 17422 exp_sym_flag='-Bexport' 17423 no_entry_flag="" 17424 else 17425 # If we're using GNU nm, then we don't want the "-C" option. 17426 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17427 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17428 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' 17429 else 17430 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' 17431 fi 17432 aix_use_runtimelinking=no 17433 17434 # Test if we are trying to use run time linking or normal 17435 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17436 # need to do runtime linking. 17437 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17438 for ld_flag in $LDFLAGS; do 17439 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17440 aix_use_runtimelinking=yes 17441 break 17442 fi 17443 done 17444 ;; 17445 esac 17446 17447 exp_sym_flag='-bexport' 17448 no_entry_flag='-bnoentry' 17449 fi 17450 17451 # When large executables or shared objects are built, AIX ld can 17452 # have problems creating the table of contents. If linking a library 17453 # or program results in "error TOC overflow" add -mminimal-toc to 17454 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17455 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17456 17457 archive_cmds_GCJ='' 17458 hardcode_direct_GCJ=yes 17459 hardcode_libdir_separator_GCJ=':' 17460 link_all_deplibs_GCJ=yes 17461 17462 if test "$GCC" = yes; then 17463 case $host_os in aix4.[012]|aix4.[012].*) 17464 # We only want to do this on AIX 4.2 and lower, the check 17465 # below for broken collect2 doesn't work under 4.3+ 17466 collect2name=`${CC} -print-prog-name=collect2` 17467 if test -f "$collect2name" && \ 17468 strings "$collect2name" | grep resolve_lib_name >/dev/null 17469 then 17470 # We have reworked collect2 17471 hardcode_direct_GCJ=yes 17472 else 17473 # We have old collect2 17474 hardcode_direct_GCJ=unsupported 17475 # It fails to find uninstalled libraries when the uninstalled 17476 # path is not listed in the libpath. Setting hardcode_minus_L 17477 # to unsupported forces relinking 17478 hardcode_minus_L_GCJ=yes 17479 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17480 hardcode_libdir_separator_GCJ= 17481 fi 17482 ;; 17483 esac 17484 shared_flag='-shared' 17485 if test "$aix_use_runtimelinking" = yes; then 17486 shared_flag="$shared_flag "'${wl}-G' 17487 fi 17488 else 17489 # not using gcc 17490 if test "$host_cpu" = ia64; then 17491 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17492 # chokes on -Wl,-G. The following line is correct: 17493 shared_flag='-G' 17494 else 17495 if test "$aix_use_runtimelinking" = yes; then 17496 shared_flag='${wl}-G' 17497 else 17498 shared_flag='${wl}-bM:SRE' 17499 fi 17500 fi 17501 fi 17502 17503 # It seems that -bexpall does not export symbols beginning with 17504 # underscore (_), so it is better to generate a list of symbols to export. 17505 always_export_symbols_GCJ=yes 17506 if test "$aix_use_runtimelinking" = yes; then 17507 # Warning - without using the other runtime loading flags (-brtl), 17508 # -berok will link without error, but may produce a broken library. 17509 allow_undefined_flag_GCJ='-berok' 17510 # Determine the default libpath from the value encoded in an empty executable. 17511 cat >conftest.$ac_ext <<_ACEOF 17512/* confdefs.h. */ 17513_ACEOF 17514cat confdefs.h >>conftest.$ac_ext 17515cat >>conftest.$ac_ext <<_ACEOF 17516/* end confdefs.h. */ 17517 17518int 17519main () 17520{ 17521 17522 ; 17523 return 0; 17524} 17525_ACEOF 17526rm -f conftest.$ac_objext conftest$ac_exeext 17527if { (ac_try="$ac_link" 17528case "(($ac_try" in 17529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17530 *) ac_try_echo=$ac_try;; 17531esac 17532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17533 (eval "$ac_link") 2>conftest.er1 17534 ac_status=$? 17535 grep -v '^ *+' conftest.er1 >conftest.err 17536 rm -f conftest.er1 17537 cat conftest.err >&5 17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17539 (exit $ac_status); } && 17540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17541 { (case "(($ac_try" in 17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17543 *) ac_try_echo=$ac_try;; 17544esac 17545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17546 (eval "$ac_try") 2>&5 17547 ac_status=$? 17548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17549 (exit $ac_status); }; } && 17550 { ac_try='test -s conftest$ac_exeext' 17551 { (case "(($ac_try" in 17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17553 *) ac_try_echo=$ac_try;; 17554esac 17555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17556 (eval "$ac_try") 2>&5 17557 ac_status=$? 17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17559 (exit $ac_status); }; }; then 17560 17561aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17562}'` 17563# Check for a 64-bit object if we didn't find anything. 17564if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17565}'`; fi 17566else 17567 echo "$as_me: failed program was:" >&5 17568sed 's/^/| /' conftest.$ac_ext >&5 17569 17570 17571fi 17572 17573rm -f core conftest.err conftest.$ac_objext \ 17574 conftest$ac_exeext conftest.$ac_ext 17575if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17576 17577 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17578 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" 17579 else 17580 if test "$host_cpu" = ia64; then 17581 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17582 allow_undefined_flag_GCJ="-z nodefs" 17583 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" 17584 else 17585 # Determine the default libpath from the value encoded in an empty executable. 17586 cat >conftest.$ac_ext <<_ACEOF 17587/* confdefs.h. */ 17588_ACEOF 17589cat confdefs.h >>conftest.$ac_ext 17590cat >>conftest.$ac_ext <<_ACEOF 17591/* end confdefs.h. */ 17592 17593int 17594main () 17595{ 17596 17597 ; 17598 return 0; 17599} 17600_ACEOF 17601rm -f conftest.$ac_objext conftest$ac_exeext 17602if { (ac_try="$ac_link" 17603case "(($ac_try" in 17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17605 *) ac_try_echo=$ac_try;; 17606esac 17607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17608 (eval "$ac_link") 2>conftest.er1 17609 ac_status=$? 17610 grep -v '^ *+' conftest.er1 >conftest.err 17611 rm -f conftest.er1 17612 cat conftest.err >&5 17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17614 (exit $ac_status); } && 17615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17616 { (case "(($ac_try" in 17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17618 *) ac_try_echo=$ac_try;; 17619esac 17620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17621 (eval "$ac_try") 2>&5 17622 ac_status=$? 17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17624 (exit $ac_status); }; } && 17625 { ac_try='test -s conftest$ac_exeext' 17626 { (case "(($ac_try" in 17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17628 *) ac_try_echo=$ac_try;; 17629esac 17630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17631 (eval "$ac_try") 2>&5 17632 ac_status=$? 17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17634 (exit $ac_status); }; }; then 17635 17636aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17637}'` 17638# Check for a 64-bit object if we didn't find anything. 17639if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17640}'`; fi 17641else 17642 echo "$as_me: failed program was:" >&5 17643sed 's/^/| /' conftest.$ac_ext >&5 17644 17645 17646fi 17647 17648rm -f core conftest.err conftest.$ac_objext \ 17649 conftest$ac_exeext conftest.$ac_ext 17650if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17651 17652 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17653 # Warning - without using the other run time loading flags, 17654 # -berok will link without error, but may produce a broken library. 17655 no_undefined_flag_GCJ=' ${wl}-bernotok' 17656 allow_undefined_flag_GCJ=' ${wl}-berok' 17657 # Exported symbols can be pulled into shared objects from archives 17658 whole_archive_flag_spec_GCJ='$convenience' 17659 archive_cmds_need_lc_GCJ=yes 17660 # This is similar to how AIX traditionally builds its shared libraries. 17661 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' 17662 fi 17663 fi 17664 ;; 17665 17666 amigaos*) 17667 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)' 17668 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17669 hardcode_minus_L_GCJ=yes 17670 # see comment about different semantics on the GNU ld section 17671 ld_shlibs_GCJ=no 17672 ;; 17673 17674 bsdi[45]*) 17675 export_dynamic_flag_spec_GCJ=-rdynamic 17676 ;; 17677 17678 cygwin* | mingw* | pw32*) 17679 # When not using gcc, we currently assume that we are using 17680 # Microsoft Visual C++. 17681 # hardcode_libdir_flag_spec is actually meaningless, as there is 17682 # no search path for DLLs. 17683 hardcode_libdir_flag_spec_GCJ=' ' 17684 allow_undefined_flag_GCJ=unsupported 17685 # Tell ltmain to make .lib files, not .a files. 17686 libext=lib 17687 # Tell ltmain to make .dll files, not .so files. 17688 shrext_cmds=".dll" 17689 # FIXME: Setting linknames here is a bad hack. 17690 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17691 # The linker will automatically build a .lib file if we build a DLL. 17692 old_archive_From_new_cmds_GCJ='true' 17693 # FIXME: Should let the user specify the lib program. 17694 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17695 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17696 enable_shared_with_static_runtimes_GCJ=yes 17697 ;; 17698 17699 darwin* | rhapsody*) 17700 case $host_os in 17701 rhapsody* | darwin1.[012]) 17702 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17703 ;; 17704 *) # Darwin 1.3 on 17705 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17706 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17707 else 17708 case ${MACOSX_DEPLOYMENT_TARGET} in 17709 10.[012]) 17710 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17711 ;; 17712 10.*) 17713 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17714 ;; 17715 esac 17716 fi 17717 ;; 17718 esac 17719 archive_cmds_need_lc_GCJ=no 17720 hardcode_direct_GCJ=no 17721 hardcode_automatic_GCJ=yes 17722 hardcode_shlibpath_var_GCJ=unsupported 17723 whole_archive_flag_spec_GCJ='' 17724 link_all_deplibs_GCJ=yes 17725 if test "$GCC" = yes ; then 17726 output_verbose_link_cmd='echo' 17727 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17728 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17729 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17730 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}' 17731 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}' 17732 else 17733 case $cc_basename in 17734 xlc*) 17735 output_verbose_link_cmd='echo' 17736 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17737 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17738 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17739 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17740 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}' 17741 ;; 17742 *) 17743 ld_shlibs_GCJ=no 17744 ;; 17745 esac 17746 fi 17747 ;; 17748 17749 dgux*) 17750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17751 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17752 hardcode_shlibpath_var_GCJ=no 17753 ;; 17754 17755 freebsd1*) 17756 ld_shlibs_GCJ=no 17757 ;; 17758 17759 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17760 # support. Future versions do this automatically, but an explicit c++rt0.o 17761 # does not break anything, and helps significantly (at the cost of a little 17762 # extra space). 17763 freebsd2.2*) 17764 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17765 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17766 hardcode_direct_GCJ=yes 17767 hardcode_shlibpath_var_GCJ=no 17768 ;; 17769 17770 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17771 freebsd2*) 17772 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17773 hardcode_direct_GCJ=yes 17774 hardcode_minus_L_GCJ=yes 17775 hardcode_shlibpath_var_GCJ=no 17776 ;; 17777 17778 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17779 freebsd* | kfreebsd*-gnu | dragonfly*) 17780 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17781 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17782 hardcode_direct_GCJ=yes 17783 hardcode_shlibpath_var_GCJ=no 17784 ;; 17785 17786 hpux9*) 17787 if test "$GCC" = yes; then 17788 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' 17789 else 17790 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' 17791 fi 17792 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17793 hardcode_libdir_separator_GCJ=: 17794 hardcode_direct_GCJ=yes 17795 17796 # hardcode_minus_L: Not really in the search PATH, 17797 # but as the default location of the library. 17798 hardcode_minus_L_GCJ=yes 17799 export_dynamic_flag_spec_GCJ='${wl}-E' 17800 ;; 17801 17802 hpux10*) 17803 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17804 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17805 else 17806 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17807 fi 17808 if test "$with_gnu_ld" = no; then 17809 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17810 hardcode_libdir_separator_GCJ=: 17811 17812 hardcode_direct_GCJ=yes 17813 export_dynamic_flag_spec_GCJ='${wl}-E' 17814 17815 # hardcode_minus_L: Not really in the search PATH, 17816 # but as the default location of the library. 17817 hardcode_minus_L_GCJ=yes 17818 fi 17819 ;; 17820 17821 hpux11*) 17822 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17823 case $host_cpu in 17824 hppa*64*) 17825 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17826 ;; 17827 ia64*) 17828 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17829 ;; 17830 *) 17831 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17832 ;; 17833 esac 17834 else 17835 case $host_cpu in 17836 hppa*64*) 17837 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17838 ;; 17839 ia64*) 17840 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17841 ;; 17842 *) 17843 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17844 ;; 17845 esac 17846 fi 17847 if test "$with_gnu_ld" = no; then 17848 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17849 hardcode_libdir_separator_GCJ=: 17850 17851 case $host_cpu in 17852 hppa*64*|ia64*) 17853 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17854 hardcode_direct_GCJ=no 17855 hardcode_shlibpath_var_GCJ=no 17856 ;; 17857 *) 17858 hardcode_direct_GCJ=yes 17859 export_dynamic_flag_spec_GCJ='${wl}-E' 17860 17861 # hardcode_minus_L: Not really in the search PATH, 17862 # but as the default location of the library. 17863 hardcode_minus_L_GCJ=yes 17864 ;; 17865 esac 17866 fi 17867 ;; 17868 17869 irix5* | irix6* | nonstopux*) 17870 if test "$GCC" = yes; then 17871 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' 17872 else 17873 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' 17874 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17875 fi 17876 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17877 hardcode_libdir_separator_GCJ=: 17878 link_all_deplibs_GCJ=yes 17879 ;; 17880 17881 netbsd*) 17882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17883 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17884 else 17885 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17886 fi 17887 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17888 hardcode_direct_GCJ=yes 17889 hardcode_shlibpath_var_GCJ=no 17890 ;; 17891 17892 newsos6) 17893 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17894 hardcode_direct_GCJ=yes 17895 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17896 hardcode_libdir_separator_GCJ=: 17897 hardcode_shlibpath_var_GCJ=no 17898 ;; 17899 17900 openbsd*) 17901 hardcode_direct_GCJ=yes 17902 hardcode_shlibpath_var_GCJ=no 17903 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17904 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17905 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17906 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17907 export_dynamic_flag_spec_GCJ='${wl}-E' 17908 else 17909 case $host_os in 17910 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17911 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17912 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17913 ;; 17914 *) 17915 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17916 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17917 ;; 17918 esac 17919 fi 17920 ;; 17921 17922 os2*) 17923 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17924 hardcode_minus_L_GCJ=yes 17925 allow_undefined_flag_GCJ=unsupported 17926 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' 17927 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17928 ;; 17929 17930 osf3*) 17931 if test "$GCC" = yes; then 17932 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17933 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' 17934 else 17935 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17936 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' 17937 fi 17938 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17939 hardcode_libdir_separator_GCJ=: 17940 ;; 17941 17942 osf4* | osf5*) # as osf3* with the addition of -msym flag 17943 if test "$GCC" = yes; then 17944 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17945 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' 17946 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17947 else 17948 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17949 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' 17950 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~ 17951 $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' 17952 17953 # Both c and cxx compiler support -rpath directly 17954 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17955 fi 17956 hardcode_libdir_separator_GCJ=: 17957 ;; 17958 17959 solaris*) 17960 no_undefined_flag_GCJ=' -z text' 17961 if test "$GCC" = yes; then 17962 wlarc='${wl}' 17963 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17964 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17965 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17966 else 17967 wlarc='' 17968 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17969 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17970 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17971 fi 17972 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17973 hardcode_shlibpath_var_GCJ=no 17974 case $host_os in 17975 solaris2.[0-5] | solaris2.[0-5].*) ;; 17976 *) 17977 # The compiler driver will combine linker options so we 17978 # cannot just pass the convience library names through 17979 # without $wl, iff we do not link with $LD. 17980 # Luckily, gcc supports the same syntax we need for Sun Studio. 17981 # Supported since Solaris 2.6 (maybe 2.5.1?) 17982 case $wlarc in 17983 '') 17984 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17985 *) 17986 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17987 esac ;; 17988 esac 17989 link_all_deplibs_GCJ=yes 17990 ;; 17991 17992 sunos4*) 17993 if test "x$host_vendor" = xsequent; then 17994 # Use $CC to link under sequent, because it throws in some extra .o 17995 # files that make .init and .fini sections work. 17996 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17997 else 17998 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17999 fi 18000 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18001 hardcode_direct_GCJ=yes 18002 hardcode_minus_L_GCJ=yes 18003 hardcode_shlibpath_var_GCJ=no 18004 ;; 18005 18006 sysv4) 18007 case $host_vendor in 18008 sni) 18009 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18010 hardcode_direct_GCJ=yes # is this really true??? 18011 ;; 18012 siemens) 18013 ## LD is ld it makes a PLAMLIB 18014 ## CC just makes a GrossModule. 18015 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18016 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18017 hardcode_direct_GCJ=no 18018 ;; 18019 motorola) 18020 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18021 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18022 ;; 18023 esac 18024 runpath_var='LD_RUN_PATH' 18025 hardcode_shlibpath_var_GCJ=no 18026 ;; 18027 18028 sysv4.3*) 18029 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18030 hardcode_shlibpath_var_GCJ=no 18031 export_dynamic_flag_spec_GCJ='-Bexport' 18032 ;; 18033 18034 sysv4*MP*) 18035 if test -d /usr/nec; then 18036 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18037 hardcode_shlibpath_var_GCJ=no 18038 runpath_var=LD_RUN_PATH 18039 hardcode_runpath_var=yes 18040 ld_shlibs_GCJ=yes 18041 fi 18042 ;; 18043 18044 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18045 no_undefined_flag_GCJ='${wl}-z,text' 18046 archive_cmds_need_lc_GCJ=no 18047 hardcode_shlibpath_var_GCJ=no 18048 runpath_var='LD_RUN_PATH' 18049 18050 if test "$GCC" = yes; then 18051 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18052 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18053 else 18054 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18055 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18056 fi 18057 ;; 18058 18059 sysv5* | sco3.2v5* | sco5v6*) 18060 # Note: We can NOT use -z defs as we might desire, because we do not 18061 # link with -lc, and that would cause any symbols used from libc to 18062 # always be unresolved, which means just about no library would 18063 # ever link correctly. If we're not using GNU ld we use -z text 18064 # though, which does catch some bad symbols but isn't as heavy-handed 18065 # as -z defs. 18066 no_undefined_flag_GCJ='${wl}-z,text' 18067 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18068 archive_cmds_need_lc_GCJ=no 18069 hardcode_shlibpath_var_GCJ=no 18070 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18071 hardcode_libdir_separator_GCJ=':' 18072 link_all_deplibs_GCJ=yes 18073 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18074 runpath_var='LD_RUN_PATH' 18075 18076 if test "$GCC" = yes; then 18077 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18078 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18079 else 18080 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18081 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18082 fi 18083 ;; 18084 18085 uts4*) 18086 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18087 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18088 hardcode_shlibpath_var_GCJ=no 18089 ;; 18090 18091 *) 18092 ld_shlibs_GCJ=no 18093 ;; 18094 esac 18095 fi 18096 18097{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18098echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18099test "$ld_shlibs_GCJ" = no && can_build_shared=no 18100 18101# 18102# Do we need to explicitly link libc? 18103# 18104case "x$archive_cmds_need_lc_GCJ" in 18105x|xyes) 18106 # Assume -lc should be added 18107 archive_cmds_need_lc_GCJ=yes 18108 18109 if test "$enable_shared" = yes && test "$GCC" = yes; then 18110 case $archive_cmds_GCJ in 18111 *'~'*) 18112 # FIXME: we may have to deal with multi-command sequences. 18113 ;; 18114 '$CC '*) 18115 # Test whether the compiler implicitly links with -lc since on some 18116 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18117 # to ld, don't add -lc before -lgcc. 18118 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18119echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18120 $rm conftest* 18121 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18122 18123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18124 (eval $ac_compile) 2>&5 18125 ac_status=$? 18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18127 (exit $ac_status); } 2>conftest.err; then 18128 soname=conftest 18129 lib=conftest 18130 libobjs=conftest.$ac_objext 18131 deplibs= 18132 wl=$lt_prog_compiler_wl_GCJ 18133 pic_flag=$lt_prog_compiler_pic_GCJ 18134 compiler_flags=-v 18135 linker_flags=-v 18136 verstring= 18137 output_objdir=. 18138 libname=conftest 18139 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18140 allow_undefined_flag_GCJ= 18141 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18142 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18143 ac_status=$? 18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18145 (exit $ac_status); } 18146 then 18147 archive_cmds_need_lc_GCJ=no 18148 else 18149 archive_cmds_need_lc_GCJ=yes 18150 fi 18151 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18152 else 18153 cat conftest.err 1>&5 18154 fi 18155 $rm conftest* 18156 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18157echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18158 ;; 18159 esac 18160 fi 18161 ;; 18162esac 18163 18164{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18165echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18166library_names_spec= 18167libname_spec='lib$name' 18168soname_spec= 18169shrext_cmds=".so" 18170postinstall_cmds= 18171postuninstall_cmds= 18172finish_cmds= 18173finish_eval= 18174shlibpath_var= 18175shlibpath_overrides_runpath=unknown 18176version_type=none 18177dynamic_linker="$host_os ld.so" 18178sys_lib_dlsearch_path_spec="/lib /usr/lib" 18179if test "$GCC" = yes; then 18180 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18181 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18182 # if the path contains ";" then we assume it to be the separator 18183 # otherwise default to the standard path separator (i.e. ":") - it is 18184 # assumed that no part of a normal pathname contains ";" but that should 18185 # okay in the real world where ";" in dirpaths is itself problematic. 18186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18187 else 18188 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18189 fi 18190else 18191 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18192fi 18193need_lib_prefix=unknown 18194hardcode_into_libs=no 18195 18196# when you set need_version to no, make sure it does not cause -set_version 18197# flags to be left without arguments 18198need_version=unknown 18199 18200case $host_os in 18201aix3*) 18202 version_type=linux 18203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18204 shlibpath_var=LIBPATH 18205 18206 # AIX 3 has no versioning support, so we append a major version to the name. 18207 soname_spec='${libname}${release}${shared_ext}$major' 18208 ;; 18209 18210aix4* | aix5*) 18211 version_type=linux 18212 need_lib_prefix=no 18213 need_version=no 18214 hardcode_into_libs=yes 18215 if test "$host_cpu" = ia64; then 18216 # AIX 5 supports IA64 18217 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18218 shlibpath_var=LD_LIBRARY_PATH 18219 else 18220 # With GCC up to 2.95.x, collect2 would create an import file 18221 # for dependence libraries. The import file would start with 18222 # the line `#! .'. This would cause the generated library to 18223 # depend on `.', always an invalid library. This was fixed in 18224 # development snapshots of GCC prior to 3.0. 18225 case $host_os in 18226 aix4 | aix4.[01] | aix4.[01].*) 18227 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18228 echo ' yes ' 18229 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18230 : 18231 else 18232 can_build_shared=no 18233 fi 18234 ;; 18235 esac 18236 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18237 # soname into executable. Probably we can add versioning support to 18238 # collect2, so additional links can be useful in future. 18239 if test "$aix_use_runtimelinking" = yes; then 18240 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18241 # instead of lib<name>.a to let people know that these are not 18242 # typical AIX shared libraries. 18243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18244 else 18245 # We preserve .a as extension for shared libraries through AIX4.2 18246 # and later when we are not doing run time linking. 18247 library_names_spec='${libname}${release}.a $libname.a' 18248 soname_spec='${libname}${release}${shared_ext}$major' 18249 fi 18250 shlibpath_var=LIBPATH 18251 fi 18252 ;; 18253 18254amigaos*) 18255 library_names_spec='$libname.ixlibrary $libname.a' 18256 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18257 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' 18258 ;; 18259 18260beos*) 18261 library_names_spec='${libname}${shared_ext}' 18262 dynamic_linker="$host_os ld.so" 18263 shlibpath_var=LIBRARY_PATH 18264 ;; 18265 18266bsdi[45]*) 18267 version_type=linux 18268 need_version=no 18269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18270 soname_spec='${libname}${release}${shared_ext}$major' 18271 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18272 shlibpath_var=LD_LIBRARY_PATH 18273 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18274 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18275 # the default ld.so.conf also contains /usr/contrib/lib and 18276 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18277 # libtool to hard-code these into programs 18278 ;; 18279 18280cygwin* | mingw* | pw32*) 18281 version_type=windows 18282 shrext_cmds=".dll" 18283 need_version=no 18284 need_lib_prefix=no 18285 18286 case $GCC,$host_os in 18287 yes,cygwin* | yes,mingw* | yes,pw32*) 18288 library_names_spec='$libname.dll.a' 18289 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18290 postinstall_cmds='base_file=`basename \${file}`~ 18291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18292 dldir=$destdir/`dirname \$dlpath`~ 18293 test -d \$dldir || mkdir -p \$dldir~ 18294 $install_prog $dir/$dlname \$dldir/$dlname~ 18295 chmod a+x \$dldir/$dlname' 18296 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18297 dlpath=$dir/\$dldll~ 18298 $rm \$dlpath' 18299 shlibpath_overrides_runpath=yes 18300 18301 case $host_os in 18302 cygwin*) 18303 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18304 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18305 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18306 ;; 18307 mingw*) 18308 # MinGW DLLs use traditional 'lib' prefix 18309 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18310 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18311 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18312 # It is most probably a Windows format PATH printed by 18313 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18314 # path with ; separators, and with drive letters. We can handle the 18315 # drive letters (cygwin fileutils understands them), so leave them, 18316 # especially as we might pass files found there to a mingw objdump, 18317 # which wouldn't understand a cygwinified path. Ahh. 18318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18319 else 18320 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18321 fi 18322 ;; 18323 pw32*) 18324 # pw32 DLLs use 'pw' prefix rather than 'lib' 18325 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18326 ;; 18327 esac 18328 ;; 18329 18330 *) 18331 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18332 ;; 18333 esac 18334 dynamic_linker='Win32 ld.exe' 18335 # FIXME: first we should search . and the directory the executable is in 18336 shlibpath_var=PATH 18337 ;; 18338 18339darwin* | rhapsody*) 18340 dynamic_linker="$host_os dyld" 18341 version_type=darwin 18342 need_lib_prefix=no 18343 need_version=no 18344 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18345 soname_spec='${libname}${release}${major}$shared_ext' 18346 shlibpath_overrides_runpath=yes 18347 shlibpath_var=DYLD_LIBRARY_PATH 18348 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18349 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18350 if test "$GCC" = yes; then 18351 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 18352 else 18353 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18354 fi 18355 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18356 ;; 18357 18358dgux*) 18359 version_type=linux 18360 need_lib_prefix=no 18361 need_version=no 18362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18363 soname_spec='${libname}${release}${shared_ext}$major' 18364 shlibpath_var=LD_LIBRARY_PATH 18365 ;; 18366 18367freebsd1*) 18368 dynamic_linker=no 18369 ;; 18370 18371kfreebsd*-gnu) 18372 version_type=linux 18373 need_lib_prefix=no 18374 need_version=no 18375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18376 soname_spec='${libname}${release}${shared_ext}$major' 18377 shlibpath_var=LD_LIBRARY_PATH 18378 shlibpath_overrides_runpath=no 18379 hardcode_into_libs=yes 18380 dynamic_linker='GNU ld.so' 18381 ;; 18382 18383freebsd* | dragonfly*) 18384 # DragonFly does not have aout. When/if they implement a new 18385 # versioning mechanism, adjust this. 18386 if test -x /usr/bin/objformat; then 18387 objformat=`/usr/bin/objformat` 18388 else 18389 case $host_os in 18390 freebsd[123]*) objformat=aout ;; 18391 *) objformat=elf ;; 18392 esac 18393 fi 18394 version_type=freebsd-$objformat 18395 case $version_type in 18396 freebsd-elf*) 18397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18398 need_version=no 18399 need_lib_prefix=no 18400 ;; 18401 freebsd-*) 18402 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18403 need_version=yes 18404 ;; 18405 esac 18406 shlibpath_var=LD_LIBRARY_PATH 18407 case $host_os in 18408 freebsd2*) 18409 shlibpath_overrides_runpath=yes 18410 ;; 18411 freebsd3.[01]* | freebsdelf3.[01]*) 18412 shlibpath_overrides_runpath=yes 18413 hardcode_into_libs=yes 18414 ;; 18415 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18416 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18417 shlibpath_overrides_runpath=no 18418 hardcode_into_libs=yes 18419 ;; 18420 freebsd*) # from 4.6 on 18421 shlibpath_overrides_runpath=yes 18422 hardcode_into_libs=yes 18423 ;; 18424 esac 18425 ;; 18426 18427gnu*) 18428 version_type=linux 18429 need_lib_prefix=no 18430 need_version=no 18431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18432 soname_spec='${libname}${release}${shared_ext}$major' 18433 shlibpath_var=LD_LIBRARY_PATH 18434 hardcode_into_libs=yes 18435 ;; 18436 18437hpux9* | hpux10* | hpux11*) 18438 # Give a soname corresponding to the major version so that dld.sl refuses to 18439 # link against other versions. 18440 version_type=sunos 18441 need_lib_prefix=no 18442 need_version=no 18443 case $host_cpu in 18444 ia64*) 18445 shrext_cmds='.so' 18446 hardcode_into_libs=yes 18447 dynamic_linker="$host_os dld.so" 18448 shlibpath_var=LD_LIBRARY_PATH 18449 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18451 soname_spec='${libname}${release}${shared_ext}$major' 18452 if test "X$HPUX_IA64_MODE" = X32; then 18453 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18454 else 18455 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18456 fi 18457 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18458 ;; 18459 hppa*64*) 18460 shrext_cmds='.sl' 18461 hardcode_into_libs=yes 18462 dynamic_linker="$host_os dld.sl" 18463 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18464 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18466 soname_spec='${libname}${release}${shared_ext}$major' 18467 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18468 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18469 ;; 18470 *) 18471 shrext_cmds='.sl' 18472 dynamic_linker="$host_os dld.sl" 18473 shlibpath_var=SHLIB_PATH 18474 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18476 soname_spec='${libname}${release}${shared_ext}$major' 18477 ;; 18478 esac 18479 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18480 postinstall_cmds='chmod 555 $lib' 18481 ;; 18482 18483interix3*) 18484 version_type=linux 18485 need_lib_prefix=no 18486 need_version=no 18487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18488 soname_spec='${libname}${release}${shared_ext}$major' 18489 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18490 shlibpath_var=LD_LIBRARY_PATH 18491 shlibpath_overrides_runpath=no 18492 hardcode_into_libs=yes 18493 ;; 18494 18495irix5* | irix6* | nonstopux*) 18496 case $host_os in 18497 nonstopux*) version_type=nonstopux ;; 18498 *) 18499 if test "$lt_cv_prog_gnu_ld" = yes; then 18500 version_type=linux 18501 else 18502 version_type=irix 18503 fi ;; 18504 esac 18505 need_lib_prefix=no 18506 need_version=no 18507 soname_spec='${libname}${release}${shared_ext}$major' 18508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18509 case $host_os in 18510 irix5* | nonstopux*) 18511 libsuff= shlibsuff= 18512 ;; 18513 *) 18514 case $LD in # libtool.m4 will add one of these switches to LD 18515 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18516 libsuff= shlibsuff= libmagic=32-bit;; 18517 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18518 libsuff=32 shlibsuff=N32 libmagic=N32;; 18519 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18520 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18521 *) libsuff= shlibsuff= libmagic=never-match;; 18522 esac 18523 ;; 18524 esac 18525 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18526 shlibpath_overrides_runpath=no 18527 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18528 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18529 hardcode_into_libs=yes 18530 ;; 18531 18532# No shared lib support for Linux oldld, aout, or coff. 18533linux*oldld* | linux*aout* | linux*coff*) 18534 dynamic_linker=no 18535 ;; 18536 18537# This must be Linux ELF. 18538linux*) 18539 version_type=linux 18540 need_lib_prefix=no 18541 need_version=no 18542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18543 soname_spec='${libname}${release}${shared_ext}$major' 18544 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18545 shlibpath_var=LD_LIBRARY_PATH 18546 shlibpath_overrides_runpath=no 18547 # This implies no fast_install, which is unacceptable. 18548 # Some rework will be needed to allow for fast_install 18549 # before this can be enabled. 18550 hardcode_into_libs=yes 18551 18552 # Append ld.so.conf contents to the search path 18553 if test -f /etc/ld.so.conf; then 18554 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 18555 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18556 fi 18557 18558 # We used to test for /lib/ld.so.1 and disable shared libraries on 18559 # powerpc, because MkLinux only supported shared libraries with the 18560 # GNU dynamic linker. Since this was broken with cross compilers, 18561 # most powerpc-linux boxes support dynamic linking these days and 18562 # people can always --disable-shared, the test was removed, and we 18563 # assume the GNU/Linux dynamic linker is in use. 18564 dynamic_linker='GNU/Linux ld.so' 18565 ;; 18566 18567knetbsd*-gnu) 18568 version_type=linux 18569 need_lib_prefix=no 18570 need_version=no 18571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18572 soname_spec='${libname}${release}${shared_ext}$major' 18573 shlibpath_var=LD_LIBRARY_PATH 18574 shlibpath_overrides_runpath=no 18575 hardcode_into_libs=yes 18576 dynamic_linker='GNU ld.so' 18577 ;; 18578 18579netbsd*) 18580 version_type=sunos 18581 need_lib_prefix=no 18582 need_version=no 18583 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18586 dynamic_linker='NetBSD (a.out) ld.so' 18587 else 18588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18589 soname_spec='${libname}${release}${shared_ext}$major' 18590 dynamic_linker='NetBSD ld.elf_so' 18591 fi 18592 shlibpath_var=LD_LIBRARY_PATH 18593 shlibpath_overrides_runpath=yes 18594 hardcode_into_libs=yes 18595 ;; 18596 18597newsos6) 18598 version_type=linux 18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18600 shlibpath_var=LD_LIBRARY_PATH 18601 shlibpath_overrides_runpath=yes 18602 ;; 18603 18604nto-qnx*) 18605 version_type=linux 18606 need_lib_prefix=no 18607 need_version=no 18608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18609 soname_spec='${libname}${release}${shared_ext}$major' 18610 shlibpath_var=LD_LIBRARY_PATH 18611 shlibpath_overrides_runpath=yes 18612 ;; 18613 18614openbsd*) 18615 version_type=sunos 18616 sys_lib_dlsearch_path_spec="/usr/lib" 18617 need_lib_prefix=no 18618 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18619 case $host_os in 18620 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18621 *) need_version=no ;; 18622 esac 18623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18625 shlibpath_var=LD_LIBRARY_PATH 18626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18627 case $host_os in 18628 openbsd2.[89] | openbsd2.[89].*) 18629 shlibpath_overrides_runpath=no 18630 ;; 18631 *) 18632 shlibpath_overrides_runpath=yes 18633 ;; 18634 esac 18635 else 18636 shlibpath_overrides_runpath=yes 18637 fi 18638 ;; 18639 18640os2*) 18641 libname_spec='$name' 18642 shrext_cmds=".dll" 18643 need_lib_prefix=no 18644 library_names_spec='$libname${shared_ext} $libname.a' 18645 dynamic_linker='OS/2 ld.exe' 18646 shlibpath_var=LIBPATH 18647 ;; 18648 18649osf3* | osf4* | osf5*) 18650 version_type=osf 18651 need_lib_prefix=no 18652 need_version=no 18653 soname_spec='${libname}${release}${shared_ext}$major' 18654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18655 shlibpath_var=LD_LIBRARY_PATH 18656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18657 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18658 ;; 18659 18660solaris*) 18661 version_type=linux 18662 need_lib_prefix=no 18663 need_version=no 18664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18665 soname_spec='${libname}${release}${shared_ext}$major' 18666 shlibpath_var=LD_LIBRARY_PATH 18667 shlibpath_overrides_runpath=yes 18668 hardcode_into_libs=yes 18669 # ldd complains unless libraries are executable 18670 postinstall_cmds='chmod +x $lib' 18671 ;; 18672 18673sunos4*) 18674 version_type=sunos 18675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18676 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18677 shlibpath_var=LD_LIBRARY_PATH 18678 shlibpath_overrides_runpath=yes 18679 if test "$with_gnu_ld" = yes; then 18680 need_lib_prefix=no 18681 fi 18682 need_version=yes 18683 ;; 18684 18685sysv4 | sysv4.3*) 18686 version_type=linux 18687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18688 soname_spec='${libname}${release}${shared_ext}$major' 18689 shlibpath_var=LD_LIBRARY_PATH 18690 case $host_vendor in 18691 sni) 18692 shlibpath_overrides_runpath=no 18693 need_lib_prefix=no 18694 export_dynamic_flag_spec='${wl}-Blargedynsym' 18695 runpath_var=LD_RUN_PATH 18696 ;; 18697 siemens) 18698 need_lib_prefix=no 18699 ;; 18700 motorola) 18701 need_lib_prefix=no 18702 need_version=no 18703 shlibpath_overrides_runpath=no 18704 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18705 ;; 18706 esac 18707 ;; 18708 18709sysv4*MP*) 18710 if test -d /usr/nec ;then 18711 version_type=linux 18712 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18713 soname_spec='$libname${shared_ext}.$major' 18714 shlibpath_var=LD_LIBRARY_PATH 18715 fi 18716 ;; 18717 18718sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18719 version_type=freebsd-elf 18720 need_lib_prefix=no 18721 need_version=no 18722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18723 soname_spec='${libname}${release}${shared_ext}$major' 18724 shlibpath_var=LD_LIBRARY_PATH 18725 hardcode_into_libs=yes 18726 if test "$with_gnu_ld" = yes; then 18727 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18728 shlibpath_overrides_runpath=no 18729 else 18730 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18731 shlibpath_overrides_runpath=yes 18732 case $host_os in 18733 sco3.2v5*) 18734 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18735 ;; 18736 esac 18737 fi 18738 sys_lib_dlsearch_path_spec='/usr/lib' 18739 ;; 18740 18741uts4*) 18742 version_type=linux 18743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18744 soname_spec='${libname}${release}${shared_ext}$major' 18745 shlibpath_var=LD_LIBRARY_PATH 18746 ;; 18747 18748*) 18749 dynamic_linker=no 18750 ;; 18751esac 18752{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18753echo "${ECHO_T}$dynamic_linker" >&6; } 18754test "$dynamic_linker" = no && can_build_shared=no 18755 18756variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18757if test "$GCC" = yes; then 18758 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18759fi 18760 18761{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18762echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18763hardcode_action_GCJ= 18764if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18765 test -n "$runpath_var_GCJ" || \ 18766 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18767 18768 # We can hardcode non-existant directories. 18769 if test "$hardcode_direct_GCJ" != no && 18770 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18771 # have to relink, otherwise we might link with an installed library 18772 # when we should be linking with a yet-to-be-installed one 18773 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18774 test "$hardcode_minus_L_GCJ" != no; then 18775 # Linking always hardcodes the temporary library directory. 18776 hardcode_action_GCJ=relink 18777 else 18778 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18779 hardcode_action_GCJ=immediate 18780 fi 18781else 18782 # We cannot hardcode anything, or else we can only hardcode existing 18783 # directories. 18784 hardcode_action_GCJ=unsupported 18785fi 18786{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18787echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18788 18789if test "$hardcode_action_GCJ" = relink; then 18790 # Fast installation is not supported 18791 enable_fast_install=no 18792elif test "$shlibpath_overrides_runpath" = yes || 18793 test "$enable_shared" = no; then 18794 # Fast installation is not necessary 18795 enable_fast_install=needless 18796fi 18797 18798 18799# The else clause should only fire when bootstrapping the 18800# libtool distribution, otherwise you forgot to ship ltmain.sh 18801# with your package, and you will get complaints that there are 18802# no rules to generate ltmain.sh. 18803if test -f "$ltmain"; then 18804 # See if we are running on zsh, and set the options which allow our commands through 18805 # without removal of \ escapes. 18806 if test -n "${ZSH_VERSION+set}" ; then 18807 setopt NO_GLOB_SUBST 18808 fi 18809 # Now quote all the things that may contain metacharacters while being 18810 # careful not to overquote the AC_SUBSTed values. We take copies of the 18811 # variables and quote the copies for generation of the libtool script. 18812 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18813 SED SHELL STRIP \ 18814 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18815 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18816 deplibs_check_method reload_flag reload_cmds need_locks \ 18817 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18818 lt_cv_sys_global_symbol_to_c_name_address \ 18819 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18820 old_postinstall_cmds old_postuninstall_cmds \ 18821 compiler_GCJ \ 18822 CC_GCJ \ 18823 LD_GCJ \ 18824 lt_prog_compiler_wl_GCJ \ 18825 lt_prog_compiler_pic_GCJ \ 18826 lt_prog_compiler_static_GCJ \ 18827 lt_prog_compiler_no_builtin_flag_GCJ \ 18828 export_dynamic_flag_spec_GCJ \ 18829 thread_safe_flag_spec_GCJ \ 18830 whole_archive_flag_spec_GCJ \ 18831 enable_shared_with_static_runtimes_GCJ \ 18832 old_archive_cmds_GCJ \ 18833 old_archive_from_new_cmds_GCJ \ 18834 predep_objects_GCJ \ 18835 postdep_objects_GCJ \ 18836 predeps_GCJ \ 18837 postdeps_GCJ \ 18838 compiler_lib_search_path_GCJ \ 18839 archive_cmds_GCJ \ 18840 archive_expsym_cmds_GCJ \ 18841 postinstall_cmds_GCJ \ 18842 postuninstall_cmds_GCJ \ 18843 old_archive_from_expsyms_cmds_GCJ \ 18844 allow_undefined_flag_GCJ \ 18845 no_undefined_flag_GCJ \ 18846 export_symbols_cmds_GCJ \ 18847 hardcode_libdir_flag_spec_GCJ \ 18848 hardcode_libdir_flag_spec_ld_GCJ \ 18849 hardcode_libdir_separator_GCJ \ 18850 hardcode_automatic_GCJ \ 18851 module_cmds_GCJ \ 18852 module_expsym_cmds_GCJ \ 18853 lt_cv_prog_compiler_c_o_GCJ \ 18854 exclude_expsyms_GCJ \ 18855 include_expsyms_GCJ; do 18856 18857 case $var in 18858 old_archive_cmds_GCJ | \ 18859 old_archive_from_new_cmds_GCJ | \ 18860 archive_cmds_GCJ | \ 18861 archive_expsym_cmds_GCJ | \ 18862 module_cmds_GCJ | \ 18863 module_expsym_cmds_GCJ | \ 18864 old_archive_from_expsyms_cmds_GCJ | \ 18865 export_symbols_cmds_GCJ | \ 18866 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18867 postinstall_cmds | postuninstall_cmds | \ 18868 old_postinstall_cmds | old_postuninstall_cmds | \ 18869 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18870 # Double-quote double-evaled strings. 18871 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18872 ;; 18873 *) 18874 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18875 ;; 18876 esac 18877 done 18878 18879 case $lt_echo in 18880 *'\$0 --fallback-echo"') 18881 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18882 ;; 18883 esac 18884 18885cfgfile="$ofile" 18886 18887 cat <<__EOF__ >> "$cfgfile" 18888# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18889 18890# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18891 18892# Shell to use when invoking shell scripts. 18893SHELL=$lt_SHELL 18894 18895# Whether or not to build shared libraries. 18896build_libtool_libs=$enable_shared 18897 18898# Whether or not to build static libraries. 18899build_old_libs=$enable_static 18900 18901# Whether or not to add -lc for building shared libraries. 18902build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18903 18904# Whether or not to disallow shared libs when runtime libs are static 18905allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18906 18907# Whether or not to optimize for fast installation. 18908fast_install=$enable_fast_install 18909 18910# The host system. 18911host_alias=$host_alias 18912host=$host 18913host_os=$host_os 18914 18915# The build system. 18916build_alias=$build_alias 18917build=$build 18918build_os=$build_os 18919 18920# An echo program that does not interpret backslashes. 18921echo=$lt_echo 18922 18923# The archiver. 18924AR=$lt_AR 18925AR_FLAGS=$lt_AR_FLAGS 18926 18927# A C compiler. 18928LTCC=$lt_LTCC 18929 18930# LTCC compiler flags. 18931LTCFLAGS=$lt_LTCFLAGS 18932 18933# A language-specific compiler. 18934CC=$lt_compiler_GCJ 18935 18936# Is the compiler the GNU C compiler? 18937with_gcc=$GCC_GCJ 18938 18939# An ERE matcher. 18940EGREP=$lt_EGREP 18941 18942# The linker used to build libraries. 18943LD=$lt_LD_GCJ 18944 18945# Whether we need hard or soft links. 18946LN_S=$lt_LN_S 18947 18948# A BSD-compatible nm program. 18949NM=$lt_NM 18950 18951# A symbol stripping program 18952STRIP=$lt_STRIP 18953 18954# Used to examine libraries when file_magic_cmd begins "file" 18955MAGIC_CMD=$MAGIC_CMD 18956 18957# Used on cygwin: DLL creation program. 18958DLLTOOL="$DLLTOOL" 18959 18960# Used on cygwin: object dumper. 18961OBJDUMP="$OBJDUMP" 18962 18963# Used on cygwin: assembler. 18964AS="$AS" 18965 18966# The name of the directory that contains temporary libtool files. 18967objdir=$objdir 18968 18969# How to create reloadable object files. 18970reload_flag=$lt_reload_flag 18971reload_cmds=$lt_reload_cmds 18972 18973# How to pass a linker flag through the compiler. 18974wl=$lt_lt_prog_compiler_wl_GCJ 18975 18976# Object file suffix (normally "o"). 18977objext="$ac_objext" 18978 18979# Old archive suffix (normally "a"). 18980libext="$libext" 18981 18982# Shared library suffix (normally ".so"). 18983shrext_cmds='$shrext_cmds' 18984 18985# Executable file suffix (normally ""). 18986exeext="$exeext" 18987 18988# Additional compiler flags for building library objects. 18989pic_flag=$lt_lt_prog_compiler_pic_GCJ 18990pic_mode=$pic_mode 18991 18992# What is the maximum length of a command? 18993max_cmd_len=$lt_cv_sys_max_cmd_len 18994 18995# Does compiler simultaneously support -c and -o options? 18996compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18997 18998# Must we lock files when doing compilation? 18999need_locks=$lt_need_locks 19000 19001# Do we need the lib prefix for modules? 19002need_lib_prefix=$need_lib_prefix 19003 19004# Do we need a version for libraries? 19005need_version=$need_version 19006 19007# Whether dlopen is supported. 19008dlopen_support=$enable_dlopen 19009 19010# Whether dlopen of programs is supported. 19011dlopen_self=$enable_dlopen_self 19012 19013# Whether dlopen of statically linked programs is supported. 19014dlopen_self_static=$enable_dlopen_self_static 19015 19016# Compiler flag to prevent dynamic linking. 19017link_static_flag=$lt_lt_prog_compiler_static_GCJ 19018 19019# Compiler flag to turn off builtin functions. 19020no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19021 19022# Compiler flag to allow reflexive dlopens. 19023export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19024 19025# Compiler flag to generate shared objects directly from archives. 19026whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19027 19028# Compiler flag to generate thread-safe objects. 19029thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19030 19031# Library versioning type. 19032version_type=$version_type 19033 19034# Format of library name prefix. 19035libname_spec=$lt_libname_spec 19036 19037# List of archive names. First name is the real one, the rest are links. 19038# The last name is the one that the linker finds with -lNAME. 19039library_names_spec=$lt_library_names_spec 19040 19041# The coded name of the library, if different from the real name. 19042soname_spec=$lt_soname_spec 19043 19044# Commands used to build and install an old-style archive. 19045RANLIB=$lt_RANLIB 19046old_archive_cmds=$lt_old_archive_cmds_GCJ 19047old_postinstall_cmds=$lt_old_postinstall_cmds 19048old_postuninstall_cmds=$lt_old_postuninstall_cmds 19049 19050# Create an old-style archive from a shared archive. 19051old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19052 19053# Create a temporary old-style archive to link instead of a shared archive. 19054old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19055 19056# Commands used to build and install a shared archive. 19057archive_cmds=$lt_archive_cmds_GCJ 19058archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19059postinstall_cmds=$lt_postinstall_cmds 19060postuninstall_cmds=$lt_postuninstall_cmds 19061 19062# Commands used to build a loadable module (assumed same as above if empty) 19063module_cmds=$lt_module_cmds_GCJ 19064module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19065 19066# Commands to strip libraries. 19067old_striplib=$lt_old_striplib 19068striplib=$lt_striplib 19069 19070# Dependencies to place before the objects being linked to create a 19071# shared library. 19072predep_objects=$lt_predep_objects_GCJ 19073 19074# Dependencies to place after the objects being linked to create a 19075# shared library. 19076postdep_objects=$lt_postdep_objects_GCJ 19077 19078# Dependencies to place before the objects being linked to create a 19079# shared library. 19080predeps=$lt_predeps_GCJ 19081 19082# Dependencies to place after the objects being linked to create a 19083# shared library. 19084postdeps=$lt_postdeps_GCJ 19085 19086# The library search path used internally by the compiler when linking 19087# a shared library. 19088compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19089 19090# Method to check whether dependent libraries are shared objects. 19091deplibs_check_method=$lt_deplibs_check_method 19092 19093# Command to use when deplibs_check_method == file_magic. 19094file_magic_cmd=$lt_file_magic_cmd 19095 19096# Flag that allows shared libraries with undefined symbols to be built. 19097allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19098 19099# Flag that forces no undefined symbols. 19100no_undefined_flag=$lt_no_undefined_flag_GCJ 19101 19102# Commands used to finish a libtool library installation in a directory. 19103finish_cmds=$lt_finish_cmds 19104 19105# Same as above, but a single script fragment to be evaled but not shown. 19106finish_eval=$lt_finish_eval 19107 19108# Take the output of nm and produce a listing of raw symbols and C names. 19109global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19110 19111# Transform the output of nm in a proper C declaration 19112global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19113 19114# Transform the output of nm in a C name address pair 19115global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19116 19117# This is the shared library runtime path variable. 19118runpath_var=$runpath_var 19119 19120# This is the shared library path variable. 19121shlibpath_var=$shlibpath_var 19122 19123# Is shlibpath searched before the hard-coded library search path? 19124shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19125 19126# How to hardcode a shared library path into an executable. 19127hardcode_action=$hardcode_action_GCJ 19128 19129# Whether we should hardcode library paths into libraries. 19130hardcode_into_libs=$hardcode_into_libs 19131 19132# Flag to hardcode \$libdir into a binary during linking. 19133# This must work even if \$libdir does not exist. 19134hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19135 19136# If ld is used when linking, flag to hardcode \$libdir into 19137# a binary during linking. This must work even if \$libdir does 19138# not exist. 19139hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19140 19141# Whether we need a single -rpath flag with a separated argument. 19142hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19143 19144# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19145# resulting binary. 19146hardcode_direct=$hardcode_direct_GCJ 19147 19148# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19149# resulting binary. 19150hardcode_minus_L=$hardcode_minus_L_GCJ 19151 19152# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19153# the resulting binary. 19154hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19155 19156# Set to yes if building a shared library automatically hardcodes DIR into the library 19157# and all subsequent libraries and executables linked against it. 19158hardcode_automatic=$hardcode_automatic_GCJ 19159 19160# Variables whose values should be saved in libtool wrapper scripts and 19161# restored at relink time. 19162variables_saved_for_relink="$variables_saved_for_relink" 19163 19164# Whether libtool must link a program against all its dependency libraries. 19165link_all_deplibs=$link_all_deplibs_GCJ 19166 19167# Compile-time system search path for libraries 19168sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19169 19170# Run-time system search path for libraries 19171sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19172 19173# Fix the shell variable \$srcfile for the compiler. 19174fix_srcfile_path="$fix_srcfile_path_GCJ" 19175 19176# Set to yes if exported symbols are required. 19177always_export_symbols=$always_export_symbols_GCJ 19178 19179# The commands to list exported symbols. 19180export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19181 19182# The commands to extract the exported symbol list from a shared archive. 19183extract_expsyms_cmds=$lt_extract_expsyms_cmds 19184 19185# Symbols that should not be listed in the preloaded symbols. 19186exclude_expsyms=$lt_exclude_expsyms_GCJ 19187 19188# Symbols that must always be exported. 19189include_expsyms=$lt_include_expsyms_GCJ 19190 19191# ### END LIBTOOL TAG CONFIG: $tagname 19192 19193__EOF__ 19194 19195 19196else 19197 # If there is no Makefile yet, we rely on a make rule to execute 19198 # `config.status --recheck' to rerun these tests and create the 19199 # libtool script then. 19200 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19201 if test -f "$ltmain_in"; then 19202 test -f Makefile && make "$ltmain" 19203 fi 19204fi 19205 19206 19207ac_ext=c 19208ac_cpp='$CPP $CPPFLAGS' 19209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19211ac_compiler_gnu=$ac_cv_c_compiler_gnu 19212 19213CC="$lt_save_CC" 19214 19215 else 19216 tagname="" 19217 fi 19218 ;; 19219 19220 RC) 19221 19222 19223# Source file extension for RC test sources. 19224ac_ext=rc 19225 19226# Object file extension for compiled RC test sources. 19227objext=o 19228objext_RC=$objext 19229 19230# Code to be used in simple compile tests 19231lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19232 19233# Code to be used in simple link tests 19234lt_simple_link_test_code="$lt_simple_compile_test_code" 19235 19236# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19237 19238# If no C compiler was specified, use CC. 19239LTCC=${LTCC-"$CC"} 19240 19241# If no C compiler flags were specified, use CFLAGS. 19242LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19243 19244# Allow CC to be a program name with arguments. 19245compiler=$CC 19246 19247 19248# save warnings/boilerplate of simple test code 19249ac_outfile=conftest.$ac_objext 19250printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19251eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19252_lt_compiler_boilerplate=`cat conftest.err` 19253$rm conftest* 19254 19255ac_outfile=conftest.$ac_objext 19256printf "$lt_simple_link_test_code" >conftest.$ac_ext 19257eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19258_lt_linker_boilerplate=`cat conftest.err` 19259$rm conftest* 19260 19261 19262# Allow CC to be a program name with arguments. 19263lt_save_CC="$CC" 19264CC=${RC-"windres"} 19265compiler=$CC 19266compiler_RC=$CC 19267for cc_temp in $compiler""; do 19268 case $cc_temp in 19269 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19270 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19271 \-*) ;; 19272 *) break;; 19273 esac 19274done 19275cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19276 19277lt_cv_prog_compiler_c_o_RC=yes 19278 19279# The else clause should only fire when bootstrapping the 19280# libtool distribution, otherwise you forgot to ship ltmain.sh 19281# with your package, and you will get complaints that there are 19282# no rules to generate ltmain.sh. 19283if test -f "$ltmain"; then 19284 # See if we are running on zsh, and set the options which allow our commands through 19285 # without removal of \ escapes. 19286 if test -n "${ZSH_VERSION+set}" ; then 19287 setopt NO_GLOB_SUBST 19288 fi 19289 # Now quote all the things that may contain metacharacters while being 19290 # careful not to overquote the AC_SUBSTed values. We take copies of the 19291 # variables and quote the copies for generation of the libtool script. 19292 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19293 SED SHELL STRIP \ 19294 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19295 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19296 deplibs_check_method reload_flag reload_cmds need_locks \ 19297 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19298 lt_cv_sys_global_symbol_to_c_name_address \ 19299 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19300 old_postinstall_cmds old_postuninstall_cmds \ 19301 compiler_RC \ 19302 CC_RC \ 19303 LD_RC \ 19304 lt_prog_compiler_wl_RC \ 19305 lt_prog_compiler_pic_RC \ 19306 lt_prog_compiler_static_RC \ 19307 lt_prog_compiler_no_builtin_flag_RC \ 19308 export_dynamic_flag_spec_RC \ 19309 thread_safe_flag_spec_RC \ 19310 whole_archive_flag_spec_RC \ 19311 enable_shared_with_static_runtimes_RC \ 19312 old_archive_cmds_RC \ 19313 old_archive_from_new_cmds_RC \ 19314 predep_objects_RC \ 19315 postdep_objects_RC \ 19316 predeps_RC \ 19317 postdeps_RC \ 19318 compiler_lib_search_path_RC \ 19319 archive_cmds_RC \ 19320 archive_expsym_cmds_RC \ 19321 postinstall_cmds_RC \ 19322 postuninstall_cmds_RC \ 19323 old_archive_from_expsyms_cmds_RC \ 19324 allow_undefined_flag_RC \ 19325 no_undefined_flag_RC \ 19326 export_symbols_cmds_RC \ 19327 hardcode_libdir_flag_spec_RC \ 19328 hardcode_libdir_flag_spec_ld_RC \ 19329 hardcode_libdir_separator_RC \ 19330 hardcode_automatic_RC \ 19331 module_cmds_RC \ 19332 module_expsym_cmds_RC \ 19333 lt_cv_prog_compiler_c_o_RC \ 19334 exclude_expsyms_RC \ 19335 include_expsyms_RC; do 19336 19337 case $var in 19338 old_archive_cmds_RC | \ 19339 old_archive_from_new_cmds_RC | \ 19340 archive_cmds_RC | \ 19341 archive_expsym_cmds_RC | \ 19342 module_cmds_RC | \ 19343 module_expsym_cmds_RC | \ 19344 old_archive_from_expsyms_cmds_RC | \ 19345 export_symbols_cmds_RC | \ 19346 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19347 postinstall_cmds | postuninstall_cmds | \ 19348 old_postinstall_cmds | old_postuninstall_cmds | \ 19349 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19350 # Double-quote double-evaled strings. 19351 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19352 ;; 19353 *) 19354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19355 ;; 19356 esac 19357 done 19358 19359 case $lt_echo in 19360 *'\$0 --fallback-echo"') 19361 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19362 ;; 19363 esac 19364 19365cfgfile="$ofile" 19366 19367 cat <<__EOF__ >> "$cfgfile" 19368# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19369 19370# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19371 19372# Shell to use when invoking shell scripts. 19373SHELL=$lt_SHELL 19374 19375# Whether or not to build shared libraries. 19376build_libtool_libs=$enable_shared 19377 19378# Whether or not to build static libraries. 19379build_old_libs=$enable_static 19380 19381# Whether or not to add -lc for building shared libraries. 19382build_libtool_need_lc=$archive_cmds_need_lc_RC 19383 19384# Whether or not to disallow shared libs when runtime libs are static 19385allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19386 19387# Whether or not to optimize for fast installation. 19388fast_install=$enable_fast_install 19389 19390# The host system. 19391host_alias=$host_alias 19392host=$host 19393host_os=$host_os 19394 19395# The build system. 19396build_alias=$build_alias 19397build=$build 19398build_os=$build_os 19399 19400# An echo program that does not interpret backslashes. 19401echo=$lt_echo 19402 19403# The archiver. 19404AR=$lt_AR 19405AR_FLAGS=$lt_AR_FLAGS 19406 19407# A C compiler. 19408LTCC=$lt_LTCC 19409 19410# LTCC compiler flags. 19411LTCFLAGS=$lt_LTCFLAGS 19412 19413# A language-specific compiler. 19414CC=$lt_compiler_RC 19415 19416# Is the compiler the GNU C compiler? 19417with_gcc=$GCC_RC 19418 19419# An ERE matcher. 19420EGREP=$lt_EGREP 19421 19422# The linker used to build libraries. 19423LD=$lt_LD_RC 19424 19425# Whether we need hard or soft links. 19426LN_S=$lt_LN_S 19427 19428# A BSD-compatible nm program. 19429NM=$lt_NM 19430 19431# A symbol stripping program 19432STRIP=$lt_STRIP 19433 19434# Used to examine libraries when file_magic_cmd begins "file" 19435MAGIC_CMD=$MAGIC_CMD 19436 19437# Used on cygwin: DLL creation program. 19438DLLTOOL="$DLLTOOL" 19439 19440# Used on cygwin: object dumper. 19441OBJDUMP="$OBJDUMP" 19442 19443# Used on cygwin: assembler. 19444AS="$AS" 19445 19446# The name of the directory that contains temporary libtool files. 19447objdir=$objdir 19448 19449# How to create reloadable object files. 19450reload_flag=$lt_reload_flag 19451reload_cmds=$lt_reload_cmds 19452 19453# How to pass a linker flag through the compiler. 19454wl=$lt_lt_prog_compiler_wl_RC 19455 19456# Object file suffix (normally "o"). 19457objext="$ac_objext" 19458 19459# Old archive suffix (normally "a"). 19460libext="$libext" 19461 19462# Shared library suffix (normally ".so"). 19463shrext_cmds='$shrext_cmds' 19464 19465# Executable file suffix (normally ""). 19466exeext="$exeext" 19467 19468# Additional compiler flags for building library objects. 19469pic_flag=$lt_lt_prog_compiler_pic_RC 19470pic_mode=$pic_mode 19471 19472# What is the maximum length of a command? 19473max_cmd_len=$lt_cv_sys_max_cmd_len 19474 19475# Does compiler simultaneously support -c and -o options? 19476compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19477 19478# Must we lock files when doing compilation? 19479need_locks=$lt_need_locks 19480 19481# Do we need the lib prefix for modules? 19482need_lib_prefix=$need_lib_prefix 19483 19484# Do we need a version for libraries? 19485need_version=$need_version 19486 19487# Whether dlopen is supported. 19488dlopen_support=$enable_dlopen 19489 19490# Whether dlopen of programs is supported. 19491dlopen_self=$enable_dlopen_self 19492 19493# Whether dlopen of statically linked programs is supported. 19494dlopen_self_static=$enable_dlopen_self_static 19495 19496# Compiler flag to prevent dynamic linking. 19497link_static_flag=$lt_lt_prog_compiler_static_RC 19498 19499# Compiler flag to turn off builtin functions. 19500no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19501 19502# Compiler flag to allow reflexive dlopens. 19503export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19504 19505# Compiler flag to generate shared objects directly from archives. 19506whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19507 19508# Compiler flag to generate thread-safe objects. 19509thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19510 19511# Library versioning type. 19512version_type=$version_type 19513 19514# Format of library name prefix. 19515libname_spec=$lt_libname_spec 19516 19517# List of archive names. First name is the real one, the rest are links. 19518# The last name is the one that the linker finds with -lNAME. 19519library_names_spec=$lt_library_names_spec 19520 19521# The coded name of the library, if different from the real name. 19522soname_spec=$lt_soname_spec 19523 19524# Commands used to build and install an old-style archive. 19525RANLIB=$lt_RANLIB 19526old_archive_cmds=$lt_old_archive_cmds_RC 19527old_postinstall_cmds=$lt_old_postinstall_cmds 19528old_postuninstall_cmds=$lt_old_postuninstall_cmds 19529 19530# Create an old-style archive from a shared archive. 19531old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19532 19533# Create a temporary old-style archive to link instead of a shared archive. 19534old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19535 19536# Commands used to build and install a shared archive. 19537archive_cmds=$lt_archive_cmds_RC 19538archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19539postinstall_cmds=$lt_postinstall_cmds 19540postuninstall_cmds=$lt_postuninstall_cmds 19541 19542# Commands used to build a loadable module (assumed same as above if empty) 19543module_cmds=$lt_module_cmds_RC 19544module_expsym_cmds=$lt_module_expsym_cmds_RC 19545 19546# Commands to strip libraries. 19547old_striplib=$lt_old_striplib 19548striplib=$lt_striplib 19549 19550# Dependencies to place before the objects being linked to create a 19551# shared library. 19552predep_objects=$lt_predep_objects_RC 19553 19554# Dependencies to place after the objects being linked to create a 19555# shared library. 19556postdep_objects=$lt_postdep_objects_RC 19557 19558# Dependencies to place before the objects being linked to create a 19559# shared library. 19560predeps=$lt_predeps_RC 19561 19562# Dependencies to place after the objects being linked to create a 19563# shared library. 19564postdeps=$lt_postdeps_RC 19565 19566# The library search path used internally by the compiler when linking 19567# a shared library. 19568compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19569 19570# Method to check whether dependent libraries are shared objects. 19571deplibs_check_method=$lt_deplibs_check_method 19572 19573# Command to use when deplibs_check_method == file_magic. 19574file_magic_cmd=$lt_file_magic_cmd 19575 19576# Flag that allows shared libraries with undefined symbols to be built. 19577allow_undefined_flag=$lt_allow_undefined_flag_RC 19578 19579# Flag that forces no undefined symbols. 19580no_undefined_flag=$lt_no_undefined_flag_RC 19581 19582# Commands used to finish a libtool library installation in a directory. 19583finish_cmds=$lt_finish_cmds 19584 19585# Same as above, but a single script fragment to be evaled but not shown. 19586finish_eval=$lt_finish_eval 19587 19588# Take the output of nm and produce a listing of raw symbols and C names. 19589global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19590 19591# Transform the output of nm in a proper C declaration 19592global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19593 19594# Transform the output of nm in a C name address pair 19595global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19596 19597# This is the shared library runtime path variable. 19598runpath_var=$runpath_var 19599 19600# This is the shared library path variable. 19601shlibpath_var=$shlibpath_var 19602 19603# Is shlibpath searched before the hard-coded library search path? 19604shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19605 19606# How to hardcode a shared library path into an executable. 19607hardcode_action=$hardcode_action_RC 19608 19609# Whether we should hardcode library paths into libraries. 19610hardcode_into_libs=$hardcode_into_libs 19611 19612# Flag to hardcode \$libdir into a binary during linking. 19613# This must work even if \$libdir does not exist. 19614hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19615 19616# If ld is used when linking, flag to hardcode \$libdir into 19617# a binary during linking. This must work even if \$libdir does 19618# not exist. 19619hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19620 19621# Whether we need a single -rpath flag with a separated argument. 19622hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19623 19624# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19625# resulting binary. 19626hardcode_direct=$hardcode_direct_RC 19627 19628# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19629# resulting binary. 19630hardcode_minus_L=$hardcode_minus_L_RC 19631 19632# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19633# the resulting binary. 19634hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19635 19636# Set to yes if building a shared library automatically hardcodes DIR into the library 19637# and all subsequent libraries and executables linked against it. 19638hardcode_automatic=$hardcode_automatic_RC 19639 19640# Variables whose values should be saved in libtool wrapper scripts and 19641# restored at relink time. 19642variables_saved_for_relink="$variables_saved_for_relink" 19643 19644# Whether libtool must link a program against all its dependency libraries. 19645link_all_deplibs=$link_all_deplibs_RC 19646 19647# Compile-time system search path for libraries 19648sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19649 19650# Run-time system search path for libraries 19651sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19652 19653# Fix the shell variable \$srcfile for the compiler. 19654fix_srcfile_path="$fix_srcfile_path_RC" 19655 19656# Set to yes if exported symbols are required. 19657always_export_symbols=$always_export_symbols_RC 19658 19659# The commands to list exported symbols. 19660export_symbols_cmds=$lt_export_symbols_cmds_RC 19661 19662# The commands to extract the exported symbol list from a shared archive. 19663extract_expsyms_cmds=$lt_extract_expsyms_cmds 19664 19665# Symbols that should not be listed in the preloaded symbols. 19666exclude_expsyms=$lt_exclude_expsyms_RC 19667 19668# Symbols that must always be exported. 19669include_expsyms=$lt_include_expsyms_RC 19670 19671# ### END LIBTOOL TAG CONFIG: $tagname 19672 19673__EOF__ 19674 19675 19676else 19677 # If there is no Makefile yet, we rely on a make rule to execute 19678 # `config.status --recheck' to rerun these tests and create the 19679 # libtool script then. 19680 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19681 if test -f "$ltmain_in"; then 19682 test -f Makefile && make "$ltmain" 19683 fi 19684fi 19685 19686 19687ac_ext=c 19688ac_cpp='$CPP $CPPFLAGS' 19689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19691ac_compiler_gnu=$ac_cv_c_compiler_gnu 19692 19693CC="$lt_save_CC" 19694 19695 ;; 19696 19697 *) 19698 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19699echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19700 { (exit 1); exit 1; }; } 19701 ;; 19702 esac 19703 19704 # Append the new tag name to the list of available tags. 19705 if test -n "$tagname" ; then 19706 available_tags="$available_tags $tagname" 19707 fi 19708 fi 19709 done 19710 IFS="$lt_save_ifs" 19711 19712 # Now substitute the updated list of available tags. 19713 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19714 mv "${ofile}T" "$ofile" 19715 chmod +x "$ofile" 19716 else 19717 rm -f "${ofile}T" 19718 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19719echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19720 { (exit 1); exit 1; }; } 19721 fi 19722fi 19723 19724 19725 19726# This can be used to rebuild libtool when needed 19727LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19728 19729# Always use our own libtool. 19730LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19731 19732# Prevent multiple expansion 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19757 if test -n "$ac_tool_prefix"; then 19758 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19759set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19760{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19762if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19763 echo $ECHO_N "(cached) $ECHO_C" >&6 19764else 19765 case $PKG_CONFIG in 19766 [\\/]* | ?:[\\/]*) 19767 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19768 ;; 19769 *) 19770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19771for as_dir in $PATH 19772do 19773 IFS=$as_save_IFS 19774 test -z "$as_dir" && as_dir=. 19775 for ac_exec_ext in '' $ac_executable_extensions; do 19776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19777 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19779 break 2 19780 fi 19781done 19782done 19783IFS=$as_save_IFS 19784 19785 ;; 19786esac 19787fi 19788PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19789if test -n "$PKG_CONFIG"; then 19790 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19791echo "${ECHO_T}$PKG_CONFIG" >&6; } 19792else 19793 { echo "$as_me:$LINENO: result: no" >&5 19794echo "${ECHO_T}no" >&6; } 19795fi 19796 19797 19798fi 19799if test -z "$ac_cv_path_PKG_CONFIG"; then 19800 ac_pt_PKG_CONFIG=$PKG_CONFIG 19801 # Extract the first word of "pkg-config", so it can be a program name with args. 19802set dummy pkg-config; ac_word=$2 19803{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19805if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19806 echo $ECHO_N "(cached) $ECHO_C" >&6 19807else 19808 case $ac_pt_PKG_CONFIG in 19809 [\\/]* | ?:[\\/]*) 19810 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19811 ;; 19812 *) 19813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19814for as_dir in $PATH 19815do 19816 IFS=$as_save_IFS 19817 test -z "$as_dir" && as_dir=. 19818 for ac_exec_ext in '' $ac_executable_extensions; do 19819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19820 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19822 break 2 19823 fi 19824done 19825done 19826IFS=$as_save_IFS 19827 19828 ;; 19829esac 19830fi 19831ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19832if test -n "$ac_pt_PKG_CONFIG"; then 19833 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19834echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 19835else 19836 { echo "$as_me:$LINENO: result: no" >&5 19837echo "${ECHO_T}no" >&6; } 19838fi 19839 19840 if test "x$ac_pt_PKG_CONFIG" = x; then 19841 PKG_CONFIG="" 19842 else 19843 case $cross_compiling:$ac_tool_warned in 19844yes:) 19845{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19846whose name does not start with the host triplet. If you think this 19847configuration is useful to you, please write to autoconf@gnu.org." >&5 19848echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19849whose name does not start with the host triplet. If you think this 19850configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19851ac_tool_warned=yes ;; 19852esac 19853 PKG_CONFIG=$ac_pt_PKG_CONFIG 19854 fi 19855else 19856 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19857fi 19858 19859fi 19860if test -n "$PKG_CONFIG"; then 19861 _pkg_min_version=0.9.0 19862 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19863echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 19864 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19865 { echo "$as_me:$LINENO: result: yes" >&5 19866echo "${ECHO_T}yes" >&6; } 19867 else 19868 { echo "$as_me:$LINENO: result: no" >&5 19869echo "${ECHO_T}no" >&6; } 19870 PKG_CONFIG="" 19871 fi 19872 19873fi 19874 19875pkg_failed=no 19876{ echo "$as_me:$LINENO: checking for XT" >&5 19877echo $ECHO_N "checking for XT... $ECHO_C" >&6; } 19878 19879if test -n "$PKG_CONFIG"; then 19880 if test -n "$PKG_CONFIG" && \ 19881 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sm x11 xproto kbproto\"") >&5 19882 ($PKG_CONFIG --exists --print-errors "sm x11 xproto kbproto") 2>&5 19883 ac_status=$? 19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19885 (exit $ac_status); }; then 19886 pkg_cv_XT_CFLAGS=`$PKG_CONFIG --cflags "sm x11 xproto kbproto" 2>/dev/null` 19887else 19888 pkg_failed=yes 19889fi 19890else 19891 pkg_failed=untried 19892fi 19893if test -n "$PKG_CONFIG"; then 19894 if test -n "$PKG_CONFIG" && \ 19895 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sm x11 xproto kbproto\"") >&5 19896 ($PKG_CONFIG --exists --print-errors "sm x11 xproto kbproto") 2>&5 19897 ac_status=$? 19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19899 (exit $ac_status); }; then 19900 pkg_cv_XT_LIBS=`$PKG_CONFIG --libs "sm x11 xproto kbproto" 2>/dev/null` 19901else 19902 pkg_failed=yes 19903fi 19904else 19905 pkg_failed=untried 19906fi 19907 19908if test $pkg_failed = yes; then 19909 XT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sm x11 xproto kbproto"` 19910 # Put the nasty error message in config.log where it belongs 19911 echo "$XT_PKG_ERRORS" 1>&5 19912 19913 { { echo "$as_me:$LINENO: error: Package requirements (sm x11 xproto kbproto) were not met. 19914Consider adjusting the PKG_CONFIG_PATH environment variable if you 19915installed software in a non-standard prefix. 19916 19917Alternatively you may set the XT_CFLAGS and XT_LIBS environment variables 19918to avoid the need to call pkg-config. See the pkg-config man page for 19919more details." >&5 19920echo "$as_me: error: Package requirements (sm x11 xproto kbproto) were not met. 19921Consider adjusting the PKG_CONFIG_PATH environment variable if you 19922installed software in a non-standard prefix. 19923 19924Alternatively you may set the XT_CFLAGS and XT_LIBS environment variables 19925to avoid the need to call pkg-config. See the pkg-config man page for 19926more details." >&2;} 19927 { (exit 1); exit 1; }; } 19928elif test $pkg_failed = untried; then 19929 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 19930is in your PATH or set the PKG_CONFIG environment variable to the full 19931path to pkg-config. 19932 19933Alternatively you may set the XT_CFLAGS and XT_LIBS environment variables 19934to avoid the need to call pkg-config. See the pkg-config man page for 19935more details. 19936 19937To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19938See \`config.log' for more details." >&5 19939echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 19940is in your PATH or set the PKG_CONFIG environment variable to the full 19941path to pkg-config. 19942 19943Alternatively you may set the XT_CFLAGS and XT_LIBS environment variables 19944to avoid the need to call pkg-config. See the pkg-config man page for 19945more details. 19946 19947To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 19948See \`config.log' for more details." >&2;} 19949 { (exit 1); exit 1; }; } 19950else 19951 XT_CFLAGS=$pkg_cv_XT_CFLAGS 19952 XT_LIBS=$pkg_cv_XT_LIBS 19953 { echo "$as_me:$LINENO: result: yes" >&5 19954echo "${ECHO_T}yes" >&6; } 19955 : 19956fi 19957 19958# Needed for including Xalloca.h 19959if test "${ac_cv_header_alloca_h+set}" = set; then 19960 { echo "$as_me:$LINENO: checking for alloca.h" >&5 19961echo $ECHO_N "checking for alloca.h... $ECHO_C" >&6; } 19962if test "${ac_cv_header_alloca_h+set}" = set; then 19963 echo $ECHO_N "(cached) $ECHO_C" >&6 19964fi 19965{ echo "$as_me:$LINENO: result: $ac_cv_header_alloca_h" >&5 19966echo "${ECHO_T}$ac_cv_header_alloca_h" >&6; } 19967else 19968 # Is the header compilable? 19969{ echo "$as_me:$LINENO: checking alloca.h usability" >&5 19970echo $ECHO_N "checking alloca.h usability... $ECHO_C" >&6; } 19971cat >conftest.$ac_ext <<_ACEOF 19972/* confdefs.h. */ 19973_ACEOF 19974cat confdefs.h >>conftest.$ac_ext 19975cat >>conftest.$ac_ext <<_ACEOF 19976/* end confdefs.h. */ 19977$ac_includes_default 19978#include <alloca.h> 19979_ACEOF 19980rm -f conftest.$ac_objext 19981if { (ac_try="$ac_compile" 19982case "(($ac_try" in 19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19984 *) ac_try_echo=$ac_try;; 19985esac 19986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 19987 (eval "$ac_compile") 2>conftest.er1 19988 ac_status=$? 19989 grep -v '^ *+' conftest.er1 >conftest.err 19990 rm -f conftest.er1 19991 cat conftest.err >&5 19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19993 (exit $ac_status); } && 19994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 19995 { (case "(($ac_try" in 19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 19997 *) ac_try_echo=$ac_try;; 19998esac 19999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20000 (eval "$ac_try") 2>&5 20001 ac_status=$? 20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20003 (exit $ac_status); }; } && 20004 { ac_try='test -s conftest.$ac_objext' 20005 { (case "(($ac_try" in 20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20007 *) ac_try_echo=$ac_try;; 20008esac 20009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20010 (eval "$ac_try") 2>&5 20011 ac_status=$? 20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20013 (exit $ac_status); }; }; then 20014 ac_header_compiler=yes 20015else 20016 echo "$as_me: failed program was:" >&5 20017sed 's/^/| /' conftest.$ac_ext >&5 20018 20019 ac_header_compiler=no 20020fi 20021 20022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20023{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20024echo "${ECHO_T}$ac_header_compiler" >&6; } 20025 20026# Is the header present? 20027{ echo "$as_me:$LINENO: checking alloca.h presence" >&5 20028echo $ECHO_N "checking alloca.h presence... $ECHO_C" >&6; } 20029cat >conftest.$ac_ext <<_ACEOF 20030/* confdefs.h. */ 20031_ACEOF 20032cat confdefs.h >>conftest.$ac_ext 20033cat >>conftest.$ac_ext <<_ACEOF 20034/* end confdefs.h. */ 20035#include <alloca.h> 20036_ACEOF 20037if { (ac_try="$ac_cpp conftest.$ac_ext" 20038case "(($ac_try" in 20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20040 *) ac_try_echo=$ac_try;; 20041esac 20042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20044 ac_status=$? 20045 grep -v '^ *+' conftest.er1 >conftest.err 20046 rm -f conftest.er1 20047 cat conftest.err >&5 20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20049 (exit $ac_status); } >/dev/null; then 20050 if test -s conftest.err; then 20051 ac_cpp_err=$ac_c_preproc_warn_flag 20052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20053 else 20054 ac_cpp_err= 20055 fi 20056else 20057 ac_cpp_err=yes 20058fi 20059if test -z "$ac_cpp_err"; then 20060 ac_header_preproc=yes 20061else 20062 echo "$as_me: failed program was:" >&5 20063sed 's/^/| /' conftest.$ac_ext >&5 20064 20065 ac_header_preproc=no 20066fi 20067 20068rm -f conftest.err conftest.$ac_ext 20069{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20070echo "${ECHO_T}$ac_header_preproc" >&6; } 20071 20072# So? What about this header? 20073case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20074 yes:no: ) 20075 { echo "$as_me:$LINENO: WARNING: alloca.h: accepted by the compiler, rejected by the preprocessor!" >&5 20076echo "$as_me: WARNING: alloca.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 20077 { echo "$as_me:$LINENO: WARNING: alloca.h: proceeding with the compiler's result" >&5 20078echo "$as_me: WARNING: alloca.h: proceeding with the compiler's result" >&2;} 20079 ac_header_preproc=yes 20080 ;; 20081 no:yes:* ) 20082 { echo "$as_me:$LINENO: WARNING: alloca.h: present but cannot be compiled" >&5 20083echo "$as_me: WARNING: alloca.h: present but cannot be compiled" >&2;} 20084 { echo "$as_me:$LINENO: WARNING: alloca.h: check for missing prerequisite headers?" >&5 20085echo "$as_me: WARNING: alloca.h: check for missing prerequisite headers?" >&2;} 20086 { echo "$as_me:$LINENO: WARNING: alloca.h: see the Autoconf documentation" >&5 20087echo "$as_me: WARNING: alloca.h: see the Autoconf documentation" >&2;} 20088 { echo "$as_me:$LINENO: WARNING: alloca.h: section \"Present But Cannot Be Compiled\"" >&5 20089echo "$as_me: WARNING: alloca.h: section \"Present But Cannot Be Compiled\"" >&2;} 20090 { echo "$as_me:$LINENO: WARNING: alloca.h: proceeding with the preprocessor's result" >&5 20091echo "$as_me: WARNING: alloca.h: proceeding with the preprocessor's result" >&2;} 20092 { echo "$as_me:$LINENO: WARNING: alloca.h: in the future, the compiler will take precedence" >&5 20093echo "$as_me: WARNING: alloca.h: in the future, the compiler will take precedence" >&2;} 20094 ( cat <<\_ASBOX 20095## ---------------------------------------------------------------------- ## 20096## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 20097## ---------------------------------------------------------------------- ## 20098_ASBOX 20099 ) | sed "s/^/$as_me: WARNING: /" >&2 20100 ;; 20101esac 20102{ echo "$as_me:$LINENO: checking for alloca.h" >&5 20103echo $ECHO_N "checking for alloca.h... $ECHO_C" >&6; } 20104if test "${ac_cv_header_alloca_h+set}" = set; then 20105 echo $ECHO_N "(cached) $ECHO_C" >&6 20106else 20107 ac_cv_header_alloca_h=$ac_header_preproc 20108fi 20109{ echo "$as_me:$LINENO: result: $ac_cv_header_alloca_h" >&5 20110echo "${ECHO_T}$ac_cv_header_alloca_h" >&6; } 20111 20112fi 20113if test $ac_cv_header_alloca_h = yes; then 20114 20115cat >>confdefs.h <<\_ACEOF 20116#define INCLUDE_ALLOCA_H 1 20117_ACEOF 20118 20119fi 20120 20121 20122 20123# Map function checks to old Imake #defines 20124{ echo "$as_me:$LINENO: checking for poll" >&5 20125echo $ECHO_N "checking for poll... $ECHO_C" >&6; } 20126if test "${ac_cv_func_poll+set}" = set; then 20127 echo $ECHO_N "(cached) $ECHO_C" >&6 20128else 20129 cat >conftest.$ac_ext <<_ACEOF 20130/* confdefs.h. */ 20131_ACEOF 20132cat confdefs.h >>conftest.$ac_ext 20133cat >>conftest.$ac_ext <<_ACEOF 20134/* end confdefs.h. */ 20135/* Define poll to an innocuous variant, in case <limits.h> declares poll. 20136 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20137#define poll innocuous_poll 20138 20139/* System header to define __stub macros and hopefully few prototypes, 20140 which can conflict with char poll (); below. 20141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20142 <limits.h> exists even on freestanding compilers. */ 20143 20144#ifdef __STDC__ 20145# include <limits.h> 20146#else 20147# include <assert.h> 20148#endif 20149 20150#undef poll 20151 20152/* Override any GCC internal prototype to avoid an error. 20153 Use char because int might match the return type of a GCC 20154 builtin and then its argument prototype would still apply. */ 20155#ifdef __cplusplus 20156extern "C" 20157#endif 20158char poll (); 20159/* The GNU C library defines this for functions which it implements 20160 to always fail with ENOSYS. Some functions are actually named 20161 something starting with __ and the normal name is an alias. */ 20162#if defined __stub_poll || defined __stub___poll 20163choke me 20164#endif 20165 20166int 20167main () 20168{ 20169return poll (); 20170 ; 20171 return 0; 20172} 20173_ACEOF 20174rm -f conftest.$ac_objext conftest$ac_exeext 20175if { (ac_try="$ac_link" 20176case "(($ac_try" in 20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20178 *) ac_try_echo=$ac_try;; 20179esac 20180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20181 (eval "$ac_link") 2>conftest.er1 20182 ac_status=$? 20183 grep -v '^ *+' conftest.er1 >conftest.err 20184 rm -f conftest.er1 20185 cat conftest.err >&5 20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20187 (exit $ac_status); } && 20188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20189 { (case "(($ac_try" in 20190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20191 *) ac_try_echo=$ac_try;; 20192esac 20193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20194 (eval "$ac_try") 2>&5 20195 ac_status=$? 20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20197 (exit $ac_status); }; } && 20198 { ac_try='test -s conftest$ac_exeext' 20199 { (case "(($ac_try" in 20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20201 *) ac_try_echo=$ac_try;; 20202esac 20203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20204 (eval "$ac_try") 2>&5 20205 ac_status=$? 20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20207 (exit $ac_status); }; }; then 20208 ac_cv_func_poll=yes 20209else 20210 echo "$as_me: failed program was:" >&5 20211sed 's/^/| /' conftest.$ac_ext >&5 20212 20213 ac_cv_func_poll=no 20214fi 20215 20216rm -f core conftest.err conftest.$ac_objext \ 20217 conftest$ac_exeext conftest.$ac_ext 20218fi 20219{ echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5 20220echo "${ECHO_T}$ac_cv_func_poll" >&6; } 20221if test $ac_cv_func_poll = yes; then 20222 20223cat >>confdefs.h <<\_ACEOF 20224#define USE_POLL 1 20225_ACEOF 20226 20227fi 20228 20229{ echo "$as_me:$LINENO: checking for snprintf" >&5 20230echo $ECHO_N "checking for snprintf... $ECHO_C" >&6; } 20231if test "${ac_cv_func_snprintf+set}" = set; then 20232 echo $ECHO_N "(cached) $ECHO_C" >&6 20233else 20234 cat >conftest.$ac_ext <<_ACEOF 20235/* confdefs.h. */ 20236_ACEOF 20237cat confdefs.h >>conftest.$ac_ext 20238cat >>conftest.$ac_ext <<_ACEOF 20239/* end confdefs.h. */ 20240/* Define snprintf to an innocuous variant, in case <limits.h> declares snprintf. 20241 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20242#define snprintf innocuous_snprintf 20243 20244/* System header to define __stub macros and hopefully few prototypes, 20245 which can conflict with char snprintf (); below. 20246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20247 <limits.h> exists even on freestanding compilers. */ 20248 20249#ifdef __STDC__ 20250# include <limits.h> 20251#else 20252# include <assert.h> 20253#endif 20254 20255#undef snprintf 20256 20257/* Override any GCC internal prototype to avoid an error. 20258 Use char because int might match the return type of a GCC 20259 builtin and then its argument prototype would still apply. */ 20260#ifdef __cplusplus 20261extern "C" 20262#endif 20263char snprintf (); 20264/* The GNU C library defines this for functions which it implements 20265 to always fail with ENOSYS. Some functions are actually named 20266 something starting with __ and the normal name is an alias. */ 20267#if defined __stub_snprintf || defined __stub___snprintf 20268choke me 20269#endif 20270 20271int 20272main () 20273{ 20274return snprintf (); 20275 ; 20276 return 0; 20277} 20278_ACEOF 20279rm -f conftest.$ac_objext conftest$ac_exeext 20280if { (ac_try="$ac_link" 20281case "(($ac_try" in 20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20283 *) ac_try_echo=$ac_try;; 20284esac 20285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20286 (eval "$ac_link") 2>conftest.er1 20287 ac_status=$? 20288 grep -v '^ *+' conftest.er1 >conftest.err 20289 rm -f conftest.er1 20290 cat conftest.err >&5 20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20292 (exit $ac_status); } && 20293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20294 { (case "(($ac_try" in 20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20296 *) ac_try_echo=$ac_try;; 20297esac 20298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20299 (eval "$ac_try") 2>&5 20300 ac_status=$? 20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20302 (exit $ac_status); }; } && 20303 { ac_try='test -s conftest$ac_exeext' 20304 { (case "(($ac_try" in 20305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20306 *) ac_try_echo=$ac_try;; 20307esac 20308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20309 (eval "$ac_try") 2>&5 20310 ac_status=$? 20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20312 (exit $ac_status); }; }; then 20313 ac_cv_func_snprintf=yes 20314else 20315 echo "$as_me: failed program was:" >&5 20316sed 's/^/| /' conftest.$ac_ext >&5 20317 20318 ac_cv_func_snprintf=no 20319fi 20320 20321rm -f core conftest.err conftest.$ac_objext \ 20322 conftest$ac_exeext conftest.$ac_ext 20323fi 20324{ echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5 20325echo "${ECHO_T}$ac_cv_func_snprintf" >&6; } 20326if test $ac_cv_func_snprintf = yes; then 20327 20328cat >>confdefs.h <<\_ACEOF 20329#define USE_SNPRINTF 1 20330_ACEOF 20331 20332fi 20333 20334 20335# Options 20336# Check whether --enable-xkb was given. 20337if test "${enable_xkb+set}" = set; then 20338 enableval=$enable_xkb; XKB="$enableval" 20339else 20340 XKB="yes" 20341fi 20342 20343if test "x$XKB" = "xyes" ; then 20344 20345cat >>confdefs.h <<\_ACEOF 20346#define XKB 1 20347_ACEOF 20348 20349fi 20350 20351# Check whether --enable-install-makestrs was given. 20352if test "${enable_install_makestrs+set}" = set; then 20353 enableval=$enable_install_makestrs; INSTALL_MAKESTRS="$enableval" 20354else 20355 INSTALL_MAKESTRS="yes" 20356fi 20357 20358 20359 20360if test "x$INSTALL_MAKESTRS" = xyes; then 20361 INSTALL_MAKESTRS_TRUE= 20362 INSTALL_MAKESTRS_FALSE='#' 20363else 20364 INSTALL_MAKESTRS_TRUE='#' 20365 INSTALL_MAKESTRS_FALSE= 20366fi 20367 20368 20369# Replaces XFileSearchPathDefault from Imake configs 20370XFILESEARCHPATHDEFAULT='$(sysconfdir)/X11/%L/%T/%N%C%S:$(sysconfdir)/X11/%l/%T/%N%C%S:$(sysconfdir)/X11/%T/%N%C%S:$(sysconfdir)/X11/%L/%T/%N%S:$(sysconfdir)/X11/%l/%T/%N%S:$(sysconfdir)/X11/%T/%N%S:$(datadir)/X11/%L/%T/%N%C%S:$(datadir)/X11/%l/%T/%N%C%S:$(datadir)/X11/%T/%N%C%S:$(datadir)/X11/%L/%T/%N%S:$(datadir)/X11/%l/%T/%N%S:$(datadir)/X11/%T/%N%S:$(libdir)/X11/%L/%T/%N%C%S:$(libdir)/X11/%l/%T/%N%C%S:$(libdir)/X11/%T/%N%C%S:$(libdir)/X11/%L/%T/%N%S:$(libdir)/X11/%l/%T/%N%S:$(libdir)/X11/%T/%N%S' 20371 20372 20373# Check whether --with-xfile-search-path was given. 20374if test "${with_xfile_search_path+set}" = set; then 20375 withval=$with_xfile_search_path; XFILESEARCHPATHDEFAULT="$withval" 20376fi 20377 20378 20379 20380 20381# Check whether --with-appdefaultdir was given. 20382if test "${with_appdefaultdir+set}" = set; then 20383 withval=$with_appdefaultdir; appdefaultdir="$withval" 20384else 20385 appdefaultdir=${datadir}/X11/app-defaults 20386fi 20387 20388 20389 prefix_NONE= 20390 exec_prefix_NONE= 20391 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix 20392 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix 20393 eval ac_define_dir="\"$appdefaultdir\"" 20394 eval ac_define_dir="\"$ac_define_dir\"" 20395 appdefaultdir="$ac_define_dir" 20396 20397 20398cat >>confdefs.h <<_ACEOF 20399#define appdefaultdir "$ac_define_dir" 20400_ACEOF 20401 20402 test "$prefix_NONE" && prefix=NONE 20403 test "$exec_prefix_NONE" && exec_prefix=NONE 20404 20405 20406# Replacement for Imake ToolkitStringsABIOptions, controls string tables 20407# generated by util/string.list in StringDefs.h & Shell.h 20408case $host_os in 20409 solaris*) 20410 case $host_cpu in 20411 sparc*) STRINGSABIOPTIONS="-sparcabi -solarisabinames" ;; 20412 *) STRINGSABIOPTIONS="-intelabi -solarisabinames" ;; 20413 esac 20414 ;; 20415 sco* | svr4*) 20416 case $host_cpu in 20417 i*86) STRINGSABIOPTIONS="-intelabi" ;; 20418 *) STRINGSABIOPTIONS="" ;; 20419 esac 20420 ;; 20421esac 20422 20423 20424# Man page processing requirements 20425 20426 20427for ac_prog in cpp 20428do 20429 # Extract the first word of "$ac_prog", so it can be a program name with args. 20430set dummy $ac_prog; ac_word=$2 20431{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20433if test "${ac_cv_path_RAWCPP+set}" = set; then 20434 echo $ECHO_N "(cached) $ECHO_C" >&6 20435else 20436 case $RAWCPP in 20437 [\\/]* | ?:[\\/]*) 20438 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 20439 ;; 20440 *) 20441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20442as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 20443for as_dir in $as_dummy 20444do 20445 IFS=$as_save_IFS 20446 test -z "$as_dir" && as_dir=. 20447 for ac_exec_ext in '' $ac_executable_extensions; do 20448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20449 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext" 20450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20451 break 2 20452 fi 20453done 20454done 20455IFS=$as_save_IFS 20456 20457 ;; 20458esac 20459fi 20460RAWCPP=$ac_cv_path_RAWCPP 20461if test -n "$RAWCPP"; then 20462 { echo "$as_me:$LINENO: result: $RAWCPP" >&5 20463echo "${ECHO_T}$RAWCPP" >&6; } 20464else 20465 { echo "$as_me:$LINENO: result: no" >&5 20466echo "${ECHO_T}no" >&6; } 20467fi 20468 20469 20470 test -n "$RAWCPP" && break 20471done 20472test -n "$RAWCPP" || RAWCPP="${CPP}" 20473 20474 20475# Check for flag to avoid builtin definitions - assumes unix is predefined, 20476# which is not the best choice for supporting other OS'es, but covers most 20477# of the ones we need for now. 20478{ echo "$as_me:$LINENO: checking if $RAWCPP requires -undef" >&5 20479echo $ECHO_N "checking if $RAWCPP requires -undef... $ECHO_C" >&6; } 20480cat >conftest.$ac_ext <<_ACEOF 20481Does cpp redefine unix ? 20482_ACEOF 20483if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 20484 { echo "$as_me:$LINENO: result: no" >&5 20485echo "${ECHO_T}no" >&6; } 20486else 20487 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 20488 RAWCPPFLAGS=-undef 20489 { echo "$as_me:$LINENO: result: yes" >&5 20490echo "${ECHO_T}yes" >&6; } 20491 else 20492 { { echo "$as_me:$LINENO: error: ${RAWCPP} defines unix with or without -undef. I don't know what to do." >&5 20493echo "$as_me: error: ${RAWCPP} defines unix with or without -undef. I don't know what to do." >&2;} 20494 { (exit 1); exit 1; }; } 20495 fi 20496fi 20497rm -f conftest.$ac_ext 20498 20499{ echo "$as_me:$LINENO: checking if $RAWCPP requires -traditional" >&5 20500echo $ECHO_N "checking if $RAWCPP requires -traditional... $ECHO_C" >&6; } 20501cat >conftest.$ac_ext <<_ACEOF 20502Does cpp preserve "whitespace"? 20503_ACEOF 20504if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 20505 { echo "$as_me:$LINENO: result: no" >&5 20506echo "${ECHO_T}no" >&6; } 20507else 20508 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 20509 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 20510 { echo "$as_me:$LINENO: result: yes" >&5 20511echo "${ECHO_T}yes" >&6; } 20512 else 20513 { { echo "$as_me:$LINENO: error: ${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." >&5 20514echo "$as_me: error: ${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." >&2;} 20515 { (exit 1); exit 1; }; } 20516 fi 20517fi 20518rm -f conftest.$ac_ext 20519 20520 20521 20522 20523 20524if test x$APP_MAN_SUFFIX = x ; then 20525 APP_MAN_SUFFIX=1 20526fi 20527if test x$APP_MAN_DIR = x ; then 20528 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20529fi 20530 20531if test x$LIB_MAN_SUFFIX = x ; then 20532 LIB_MAN_SUFFIX=3 20533fi 20534if test x$LIB_MAN_DIR = x ; then 20535 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20536fi 20537 20538if test x$FILE_MAN_SUFFIX = x ; then 20539 case $host_os in 20540 solaris*) FILE_MAN_SUFFIX=4 ;; 20541 *) FILE_MAN_SUFFIX=5 ;; 20542 esac 20543fi 20544if test x$FILE_MAN_DIR = x ; then 20545 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20546fi 20547 20548if test x$MISC_MAN_SUFFIX = x ; then 20549 case $host_os in 20550 solaris*) MISC_MAN_SUFFIX=5 ;; 20551 *) MISC_MAN_SUFFIX=7 ;; 20552 esac 20553fi 20554if test x$MISC_MAN_DIR = x ; then 20555 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20556fi 20557 20558if test x$DRIVER_MAN_SUFFIX = x ; then 20559 case $host_os in 20560 solaris*) DRIVER_MAN_SUFFIX=7 ;; 20561 *) DRIVER_MAN_SUFFIX=4 ;; 20562 esac 20563fi 20564if test x$DRIVER_MAN_DIR = x ; then 20565 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20566fi 20567 20568if test x$ADMIN_MAN_SUFFIX = x ; then 20569 case $host_os in 20570 solaris*) ADMIN_MAN_SUFFIX=1m ;; 20571 *) ADMIN_MAN_SUFFIX=8 ;; 20572 esac 20573fi 20574if test x$ADMIN_MAN_DIR = x ; then 20575 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20576fi 20577 20578 20579 20580 20581 20582 20583 20584 20585 20586 20587 20588 20589 20590 20591 20592 20593# Check render configuration, strip extra digits from package version to 20594# find the required protocol version 20595 20596 20597# Check whether --enable-malloc0returnsnull was given. 20598if test "${enable_malloc0returnsnull+set}" = set; then 20599 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 20600else 20601 MALLOC_ZERO_RETURNS_NULL=auto 20602fi 20603 20604 20605{ echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5 20606echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6; } 20607if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 20608 if test "$cross_compiling" = yes; then 20609 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 20610See \`config.log' for more details." >&5 20611echo "$as_me: error: cannot run test program while cross compiling 20612See \`config.log' for more details." >&2;} 20613 { (exit 1); exit 1; }; } 20614else 20615 cat >conftest.$ac_ext <<_ACEOF 20616 20617char *malloc(); 20618char *realloc(); 20619char *calloc(); 20620main() { 20621 char *m0, *r0, *c0, *p; 20622 m0 = malloc(0); 20623 p = malloc(10); 20624 r0 = realloc(p,0); 20625 c0 = calloc(0); 20626 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 20627} 20628_ACEOF 20629rm -f conftest$ac_exeext 20630if { (ac_try="$ac_link" 20631case "(($ac_try" in 20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20633 *) ac_try_echo=$ac_try;; 20634esac 20635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20636 (eval "$ac_link") 2>&5 20637 ac_status=$? 20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20640 { (case "(($ac_try" in 20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20642 *) ac_try_echo=$ac_try;; 20643esac 20644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20645 (eval "$ac_try") 2>&5 20646 ac_status=$? 20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20648 (exit $ac_status); }; }; then 20649 MALLOC_ZERO_RETURNS_NULL=yes 20650else 20651 echo "$as_me: program exited with status $ac_status" >&5 20652echo "$as_me: failed program was:" >&5 20653sed 's/^/| /' conftest.$ac_ext >&5 20654 20655( exit $ac_status ) 20656MALLOC_ZERO_RETURNS_NULL=no 20657fi 20658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20659fi 20660 20661 20662fi 20663{ echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5 20664echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6; } 20665 20666if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 20667 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 20668 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 20669 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 20670else 20671 MALLOC_ZERO_CFLAGS="" 20672 XMALLOC_ZERO_CFLAGS="" 20673 XTMALLOC_ZERO_CFLAGS="" 20674fi 20675 20676 20677 20678 20679 20680 20681 20682# Check whether --with-release-version was given. 20683if test "${with_release_version+set}" = set; then 20684 withval=$with_release_version; RELEASE_VERSION="$withval" 20685else 20686 RELEASE_VERSION="" 20687fi 20688 20689 if test "x$RELEASE_VERSION" != "x"; then 20690 PACKAGE="$PACKAGE-$RELEASE_VERSION" 20691 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 20692 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 20693echo "$as_me: Building with package name set to $PACKAGE" >&6;} 20694 fi 20695 20696cat >>confdefs.h <<_ACEOF 20697#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20698_ACEOF 20699 20700 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2` 20701 if test "x$PVM" = "x"; then 20702 PVM="0" 20703 fi 20704 20705cat >>confdefs.h <<_ACEOF 20706#define PACKAGE_VERSION_MINOR $PVM 20707_ACEOF 20708 20709 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3` 20710 if test "x$PVP" = "x"; then 20711 PVP="0" 20712 fi 20713 20714cat >>confdefs.h <<_ACEOF 20715#define PACKAGE_VERSION_PATCHLEVEL $PVP 20716_ACEOF 20717 20718 20719 20720ac_config_files="$ac_config_files Makefile src/Makefile util/Makefile include/Makefile man/Makefile xt.pc" 20721 20722cat >confcache <<\_ACEOF 20723# This file is a shell script that caches the results of configure 20724# tests run on this system so they can be shared between configure 20725# scripts and configure runs, see configure's option --config-cache. 20726# It is not useful on other systems. If it contains results you don't 20727# want to keep, you may remove or edit it. 20728# 20729# config.status only pays attention to the cache file if you give it 20730# the --recheck option to rerun configure. 20731# 20732# `ac_cv_env_foo' variables (set or unset) will be overridden when 20733# loading this file, other *unset* `ac_cv_foo' will be assigned the 20734# following values. 20735 20736_ACEOF 20737 20738# The following way of writing the cache mishandles newlines in values, 20739# but we know of no workaround that is simple, portable, and efficient. 20740# So, we kill variables containing newlines. 20741# Ultrix sh set writes to stderr and can't be redirected directly, 20742# and sets the high bit in the cache file unless we assign to the vars. 20743( 20744 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20745 eval ac_val=\$$ac_var 20746 case $ac_val in #( 20747 *${as_nl}*) 20748 case $ac_var in #( 20749 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 20750echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 20751 esac 20752 case $ac_var in #( 20753 _ | IFS | as_nl) ;; #( 20754 *) $as_unset $ac_var ;; 20755 esac ;; 20756 esac 20757 done 20758 20759 (set) 2>&1 | 20760 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20761 *${as_nl}ac_space=\ *) 20762 # `set' does not quote correctly, so add quotes (double-quote 20763 # substitution turns \\\\ into \\, and sed turns \\ into \). 20764 sed -n \ 20765 "s/'/'\\\\''/g; 20766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20767 ;; #( 20768 *) 20769 # `set' quotes correctly as required by POSIX, so do not add quotes. 20770 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20771 ;; 20772 esac | 20773 sort 20774) | 20775 sed ' 20776 /^ac_cv_env_/b end 20777 t clear 20778 :clear 20779 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20780 t end 20781 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20782 :end' >>confcache 20783if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20784 if test -w "$cache_file"; then 20785 test "x$cache_file" != "x/dev/null" && 20786 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 20787echo "$as_me: updating cache $cache_file" >&6;} 20788 cat confcache >$cache_file 20789 else 20790 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 20791echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20792 fi 20793fi 20794rm -f confcache 20795 20796test "x$prefix" = xNONE && prefix=$ac_default_prefix 20797# Let make expand exec_prefix. 20798test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20799 20800DEFS=-DHAVE_CONFIG_H 20801 20802ac_libobjs= 20803ac_ltlibobjs= 20804for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20805 # 1. Remove the extension, and $U if already installed. 20806 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20807 ac_i=`echo "$ac_i" | sed "$ac_script"` 20808 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20809 # will be set to the directory where LIBOBJS objects are built. 20810 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20811 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 20812done 20813LIBOBJS=$ac_libobjs 20814 20815LTLIBOBJS=$ac_ltlibobjs 20816 20817 20818if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 20819 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 20820Usually this means the macro was only invoked conditionally." >&5 20821echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 20822Usually this means the macro was only invoked conditionally." >&2;} 20823 { (exit 1); exit 1; }; } 20824fi 20825if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20826 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 20827Usually this means the macro was only invoked conditionally." >&5 20828echo "$as_me: error: conditional \"AMDEP\" was never defined. 20829Usually this means the macro was only invoked conditionally." >&2;} 20830 { (exit 1); exit 1; }; } 20831fi 20832if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20833 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 20834Usually this means the macro was only invoked conditionally." >&5 20835echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 20836Usually this means the macro was only invoked conditionally." >&2;} 20837 { (exit 1); exit 1; }; } 20838fi 20839if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20840 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 20841Usually this means the macro was only invoked conditionally." >&5 20842echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 20843Usually this means the macro was only invoked conditionally." >&2;} 20844 { (exit 1); exit 1; }; } 20845fi 20846if test -z "${INSTALL_MAKESTRS_TRUE}" && test -z "${INSTALL_MAKESTRS_FALSE}"; then 20847 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_MAKESTRS\" was never defined. 20848Usually this means the macro was only invoked conditionally." >&5 20849echo "$as_me: error: conditional \"INSTALL_MAKESTRS\" was never defined. 20850Usually this means the macro was only invoked conditionally." >&2;} 20851 { (exit 1); exit 1; }; } 20852fi 20853 20854: ${CONFIG_STATUS=./config.status} 20855ac_clean_files_save=$ac_clean_files 20856ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20857{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 20858echo "$as_me: creating $CONFIG_STATUS" >&6;} 20859cat >$CONFIG_STATUS <<_ACEOF 20860#! $SHELL 20861# Generated by $as_me. 20862# Run this file to recreate the current configuration. 20863# Compiler output produced by configure, useful for debugging 20864# configure, is in config.log if it exists. 20865 20866debug=false 20867ac_cs_recheck=false 20868ac_cs_silent=false 20869SHELL=\${CONFIG_SHELL-$SHELL} 20870_ACEOF 20871 20872cat >>$CONFIG_STATUS <<\_ACEOF 20873## --------------------- ## 20874## M4sh Initialization. ## 20875## --------------------- ## 20876 20877# Be Bourne compatible 20878if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20879 emulate sh 20880 NULLCMD=: 20881 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20882 # is contrary to our usage. Disable this feature. 20883 alias -g '${1+"$@"}'='"$@"' 20884 setopt NO_GLOB_SUBST 20885else 20886 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 20887fi 20888BIN_SH=xpg4; export BIN_SH # for Tru64 20889DUALCASE=1; export DUALCASE # for MKS sh 20890 20891 20892# PATH needs CR 20893# Avoid depending upon Character Ranges. 20894as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20895as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20896as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20897as_cr_digits='0123456789' 20898as_cr_alnum=$as_cr_Letters$as_cr_digits 20899 20900# The user is always right. 20901if test "${PATH_SEPARATOR+set}" != set; then 20902 echo "#! /bin/sh" >conf$$.sh 20903 echo "exit 0" >>conf$$.sh 20904 chmod +x conf$$.sh 20905 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 20906 PATH_SEPARATOR=';' 20907 else 20908 PATH_SEPARATOR=: 20909 fi 20910 rm -f conf$$.sh 20911fi 20912 20913# Support unset when possible. 20914if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 20915 as_unset=unset 20916else 20917 as_unset=false 20918fi 20919 20920 20921# IFS 20922# We need space, tab and new line, in precisely that order. Quoting is 20923# there to prevent editors from complaining about space-tab. 20924# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20925# splitting by setting IFS to empty value.) 20926as_nl=' 20927' 20928IFS=" "" $as_nl" 20929 20930# Find who we are. Look in the path if we contain no directory separator. 20931case $0 in 20932 *[\\/]* ) as_myself=$0 ;; 20933 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20934for as_dir in $PATH 20935do 20936 IFS=$as_save_IFS 20937 test -z "$as_dir" && as_dir=. 20938 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20939done 20940IFS=$as_save_IFS 20941 20942 ;; 20943esac 20944# We did not find ourselves, most probably we were run as `sh COMMAND' 20945# in which case we are not to be found in the path. 20946if test "x$as_myself" = x; then 20947 as_myself=$0 20948fi 20949if test ! -f "$as_myself"; then 20950 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20951 { (exit 1); exit 1; } 20952fi 20953 20954# Work around bugs in pre-3.0 UWIN ksh. 20955for as_var in ENV MAIL MAILPATH 20956do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20957done 20958PS1='$ ' 20959PS2='> ' 20960PS4='+ ' 20961 20962# NLS nuisances. 20963for as_var in \ 20964 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 20965 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 20966 LC_TELEPHONE LC_TIME 20967do 20968 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 20969 eval $as_var=C; export $as_var 20970 else 20971 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 20972 fi 20973done 20974 20975# Required to use basename. 20976if expr a : '\(a\)' >/dev/null 2>&1 && 20977 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20978 as_expr=expr 20979else 20980 as_expr=false 20981fi 20982 20983if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20984 as_basename=basename 20985else 20986 as_basename=false 20987fi 20988 20989 20990# Name of the executable. 20991as_me=`$as_basename -- "$0" || 20992$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20993 X"$0" : 'X\(//\)$' \| \ 20994 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20995echo X/"$0" | 20996 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20997 s//\1/ 20998 q 20999 } 21000 /^X\/\(\/\/\)$/{ 21001 s//\1/ 21002 q 21003 } 21004 /^X\/\(\/\).*/{ 21005 s//\1/ 21006 q 21007 } 21008 s/.*/./; q'` 21009 21010# CDPATH. 21011$as_unset CDPATH 21012 21013 21014 21015 as_lineno_1=$LINENO 21016 as_lineno_2=$LINENO 21017 test "x$as_lineno_1" != "x$as_lineno_2" && 21018 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21019 21020 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21021 # uniformly replaced by the line number. The first 'sed' inserts a 21022 # line-number line after each line using $LINENO; the second 'sed' 21023 # does the real work. The second script uses 'N' to pair each 21024 # line-number line with the line containing $LINENO, and appends 21025 # trailing '-' during substitution so that $LINENO is not a special 21026 # case at line end. 21027 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21028 # scripts with optimization help from Paolo Bonzini. Blame Lee 21029 # E. McMahon (1931-1989) for sed's syntax. :-) 21030 sed -n ' 21031 p 21032 /[$]LINENO/= 21033 ' <$as_myself | 21034 sed ' 21035 s/[$]LINENO.*/&-/ 21036 t lineno 21037 b 21038 :lineno 21039 N 21040 :loop 21041 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21042 t loop 21043 s/-\n.*// 21044 ' >$as_me.lineno && 21045 chmod +x "$as_me.lineno" || 21046 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21047 { (exit 1); exit 1; }; } 21048 21049 # Don't try to exec as it changes $[0], causing all sort of problems 21050 # (the dirname of $[0] is not the place where we might find the 21051 # original and so on. Autoconf is especially sensitive to this). 21052 . "./$as_me.lineno" 21053 # Exit status is that of the last command. 21054 exit 21055} 21056 21057 21058if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21059 as_dirname=dirname 21060else 21061 as_dirname=false 21062fi 21063 21064ECHO_C= ECHO_N= ECHO_T= 21065case `echo -n x` in 21066-n*) 21067 case `echo 'x\c'` in 21068 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21069 *) ECHO_C='\c';; 21070 esac;; 21071*) 21072 ECHO_N='-n';; 21073esac 21074 21075if expr a : '\(a\)' >/dev/null 2>&1 && 21076 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21077 as_expr=expr 21078else 21079 as_expr=false 21080fi 21081 21082rm -f conf$$ conf$$.exe conf$$.file 21083if test -d conf$$.dir; then 21084 rm -f conf$$.dir/conf$$.file 21085else 21086 rm -f conf$$.dir 21087 mkdir conf$$.dir 21088fi 21089echo >conf$$.file 21090if ln -s conf$$.file conf$$ 2>/dev/null; then 21091 as_ln_s='ln -s' 21092 # ... but there are two gotchas: 21093 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21094 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21095 # In both cases, we have to default to `cp -p'. 21096 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21097 as_ln_s='cp -p' 21098elif ln conf$$.file conf$$ 2>/dev/null; then 21099 as_ln_s=ln 21100else 21101 as_ln_s='cp -p' 21102fi 21103rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21104rmdir conf$$.dir 2>/dev/null 21105 21106if mkdir -p . 2>/dev/null; then 21107 as_mkdir_p=: 21108else 21109 test -d ./-p && rmdir ./-p 21110 as_mkdir_p=false 21111fi 21112 21113# Find out whether ``test -x'' works. Don't use a zero-byte file, as 21114# systems may use methods other than mode bits to determine executability. 21115cat >conf$$.file <<_ASEOF 21116#! /bin/sh 21117exit 0 21118_ASEOF 21119chmod +x conf$$.file 21120if test -x conf$$.file >/dev/null 2>&1; then 21121 as_executable_p="test -x" 21122else 21123 as_executable_p=: 21124fi 21125rm -f conf$$.file 21126 21127# Sed expression to map a string onto a valid CPP name. 21128as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21129 21130# Sed expression to map a string onto a valid variable name. 21131as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21132 21133 21134exec 6>&1 21135 21136# Save the log message, to keep $[0] and so on meaningful, and to 21137# report actual input values of CONFIG_FILES etc. instead of their 21138# values after options handling. 21139ac_log=" 21140This file was extended by libXt $as_me 1.0.5, which was 21141generated by GNU Autoconf 2.60. Invocation command line was 21142 21143 CONFIG_FILES = $CONFIG_FILES 21144 CONFIG_HEADERS = $CONFIG_HEADERS 21145 CONFIG_LINKS = $CONFIG_LINKS 21146 CONFIG_COMMANDS = $CONFIG_COMMANDS 21147 $ $0 $@ 21148 21149on `(hostname || uname -n) 2>/dev/null | sed 1q` 21150" 21151 21152_ACEOF 21153 21154cat >>$CONFIG_STATUS <<_ACEOF 21155# Files that config.status was made for. 21156config_files="$ac_config_files" 21157config_headers="$ac_config_headers" 21158config_commands="$ac_config_commands" 21159 21160_ACEOF 21161 21162cat >>$CONFIG_STATUS <<\_ACEOF 21163ac_cs_usage="\ 21164\`$as_me' instantiates files from templates according to the 21165current configuration. 21166 21167Usage: $0 [OPTIONS] [FILE]... 21168 21169 -h, --help print this help, then exit 21170 -V, --version print version number, then exit 21171 -q, --quiet do not print progress messages 21172 -d, --debug don't remove temporary files 21173 --recheck update $as_me by reconfiguring in the same conditions 21174 --file=FILE[:TEMPLATE] 21175 instantiate the configuration file FILE 21176 --header=FILE[:TEMPLATE] 21177 instantiate the configuration header FILE 21178 21179Configuration files: 21180$config_files 21181 21182Configuration headers: 21183$config_headers 21184 21185Configuration commands: 21186$config_commands 21187 21188Report bugs to <bug-autoconf@gnu.org>." 21189 21190_ACEOF 21191cat >>$CONFIG_STATUS <<_ACEOF 21192ac_cs_version="\\ 21193libXt config.status 1.0.5 21194configured by $0, generated by GNU Autoconf 2.60, 21195 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21196 21197Copyright (C) 2006 Free Software Foundation, Inc. 21198This config.status script is free software; the Free Software Foundation 21199gives unlimited permission to copy, distribute and modify it." 21200 21201ac_pwd='$ac_pwd' 21202srcdir='$srcdir' 21203INSTALL='$INSTALL' 21204_ACEOF 21205 21206cat >>$CONFIG_STATUS <<\_ACEOF 21207# If no file are specified by the user, then we need to provide default 21208# value. By we need to know if files were specified by the user. 21209ac_need_defaults=: 21210while test $# != 0 21211do 21212 case $1 in 21213 --*=*) 21214 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21215 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21216 ac_shift=: 21217 ;; 21218 *) 21219 ac_option=$1 21220 ac_optarg=$2 21221 ac_shift=shift 21222 ;; 21223 esac 21224 21225 case $ac_option in 21226 # Handling of the options. 21227 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21228 ac_cs_recheck=: ;; 21229 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21230 echo "$ac_cs_version"; exit ;; 21231 --debug | --debu | --deb | --de | --d | -d ) 21232 debug=: ;; 21233 --file | --fil | --fi | --f ) 21234 $ac_shift 21235 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21236 ac_need_defaults=false;; 21237 --header | --heade | --head | --hea ) 21238 $ac_shift 21239 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21240 ac_need_defaults=false;; 21241 --he | --h) 21242 # Conflict between --help and --header 21243 { echo "$as_me: error: ambiguous option: $1 21244Try \`$0 --help' for more information." >&2 21245 { (exit 1); exit 1; }; };; 21246 --help | --hel | -h ) 21247 echo "$ac_cs_usage"; exit ;; 21248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21249 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21250 ac_cs_silent=: ;; 21251 21252 # This is an error. 21253 -*) { echo "$as_me: error: unrecognized option: $1 21254Try \`$0 --help' for more information." >&2 21255 { (exit 1); exit 1; }; } ;; 21256 21257 *) ac_config_targets="$ac_config_targets $1" 21258 ac_need_defaults=false ;; 21259 21260 esac 21261 shift 21262done 21263 21264ac_configure_extra_args= 21265 21266if $ac_cs_silent; then 21267 exec 6>/dev/null 21268 ac_configure_extra_args="$ac_configure_extra_args --silent" 21269fi 21270 21271_ACEOF 21272cat >>$CONFIG_STATUS <<_ACEOF 21273if \$ac_cs_recheck; then 21274 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21275 CONFIG_SHELL=$SHELL 21276 export CONFIG_SHELL 21277 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21278fi 21279 21280_ACEOF 21281cat >>$CONFIG_STATUS <<\_ACEOF 21282exec 5>>config.log 21283{ 21284 echo 21285 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21286## Running $as_me. ## 21287_ASBOX 21288 echo "$ac_log" 21289} >&5 21290 21291_ACEOF 21292cat >>$CONFIG_STATUS <<_ACEOF 21293# 21294# INIT-COMMANDS 21295# 21296AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21297 21298_ACEOF 21299 21300cat >>$CONFIG_STATUS <<\_ACEOF 21301 21302# Handling of arguments. 21303for ac_config_target in $ac_config_targets 21304do 21305 case $ac_config_target in 21306 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21307 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21308 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21309 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21310 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 21311 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 21312 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21313 "xt.pc") CONFIG_FILES="$CONFIG_FILES xt.pc" ;; 21314 21315 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21316echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21317 { (exit 1); exit 1; }; };; 21318 esac 21319done 21320 21321 21322# If the user did not use the arguments to specify the items to instantiate, 21323# then the envvar interface is used. Set only those that are not. 21324# We use the long form for the default assignment because of an extremely 21325# bizarre bug on SunOS 4.1.3. 21326if $ac_need_defaults; then 21327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21329 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21330fi 21331 21332# Have a temporary directory for convenience. Make it in the build tree 21333# simply because there is no reason against having it here, and in addition, 21334# creating and moving files from /tmp can sometimes cause problems. 21335# Hook for its removal unless debugging. 21336# Note that there is a small window in which the directory will not be cleaned: 21337# after its creation but before its name has been assigned to `$tmp'. 21338$debug || 21339{ 21340 tmp= 21341 trap 'exit_status=$? 21342 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21343' 0 21344 trap '{ (exit 1); exit 1; }' 1 2 13 15 21345} 21346# Create a (secure) tmp directory for tmp files. 21347 21348{ 21349 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21350 test -n "$tmp" && test -d "$tmp" 21351} || 21352{ 21353 tmp=./conf$$-$RANDOM 21354 (umask 077 && mkdir "$tmp") 21355} || 21356{ 21357 echo "$me: cannot create a temporary directory in ." >&2 21358 { (exit 1); exit 1; } 21359} 21360 21361# 21362# Set up the sed scripts for CONFIG_FILES section. 21363# 21364 21365# No need to generate the scripts if there are no CONFIG_FILES. 21366# This happens for instance when ./config.status config.h 21367if test -n "$CONFIG_FILES"; then 21368 21369_ACEOF 21370 21371 21372 21373ac_delim='%!_!# ' 21374for ac_last_try in false false false false false :; do 21375 cat >conf$$subs.sed <<_ACEOF 21376SHELL!$SHELL$ac_delim 21377PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21378PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21379PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21380PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21381PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21382PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21383exec_prefix!$exec_prefix$ac_delim 21384prefix!$prefix$ac_delim 21385program_transform_name!$program_transform_name$ac_delim 21386bindir!$bindir$ac_delim 21387sbindir!$sbindir$ac_delim 21388libexecdir!$libexecdir$ac_delim 21389datarootdir!$datarootdir$ac_delim 21390datadir!$datadir$ac_delim 21391sysconfdir!$sysconfdir$ac_delim 21392sharedstatedir!$sharedstatedir$ac_delim 21393localstatedir!$localstatedir$ac_delim 21394includedir!$includedir$ac_delim 21395oldincludedir!$oldincludedir$ac_delim 21396docdir!$docdir$ac_delim 21397infodir!$infodir$ac_delim 21398htmldir!$htmldir$ac_delim 21399dvidir!$dvidir$ac_delim 21400pdfdir!$pdfdir$ac_delim 21401psdir!$psdir$ac_delim 21402libdir!$libdir$ac_delim 21403localedir!$localedir$ac_delim 21404mandir!$mandir$ac_delim 21405DEFS!$DEFS$ac_delim 21406ECHO_C!$ECHO_C$ac_delim 21407ECHO_N!$ECHO_N$ac_delim 21408ECHO_T!$ECHO_T$ac_delim 21409LIBS!$LIBS$ac_delim 21410build_alias!$build_alias$ac_delim 21411host_alias!$host_alias$ac_delim 21412target_alias!$target_alias$ac_delim 21413INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21414INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21415INSTALL_DATA!$INSTALL_DATA$ac_delim 21416CYGPATH_W!$CYGPATH_W$ac_delim 21417PACKAGE!$PACKAGE$ac_delim 21418VERSION!$VERSION$ac_delim 21419ACLOCAL!$ACLOCAL$ac_delim 21420AUTOCONF!$AUTOCONF$ac_delim 21421AUTOMAKE!$AUTOMAKE$ac_delim 21422AUTOHEADER!$AUTOHEADER$ac_delim 21423MAKEINFO!$MAKEINFO$ac_delim 21424install_sh!$install_sh$ac_delim 21425STRIP!$STRIP$ac_delim 21426INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21427mkdir_p!$mkdir_p$ac_delim 21428AWK!$AWK$ac_delim 21429SET_MAKE!$SET_MAKE$ac_delim 21430am__leading_dot!$am__leading_dot$ac_delim 21431AMTAR!$AMTAR$ac_delim 21432am__tar!$am__tar$ac_delim 21433am__untar!$am__untar$ac_delim 21434MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 21435MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 21436MAINT!$MAINT$ac_delim 21437CC!$CC$ac_delim 21438CFLAGS!$CFLAGS$ac_delim 21439LDFLAGS!$LDFLAGS$ac_delim 21440CPPFLAGS!$CPPFLAGS$ac_delim 21441ac_ct_CC!$ac_ct_CC$ac_delim 21442EXEEXT!$EXEEXT$ac_delim 21443OBJEXT!$OBJEXT$ac_delim 21444DEPDIR!$DEPDIR$ac_delim 21445am__include!$am__include$ac_delim 21446am__quote!$am__quote$ac_delim 21447AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21448AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21449AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21450CCDEPMODE!$CCDEPMODE$ac_delim 21451am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21452am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21453build!$build$ac_delim 21454build_cpu!$build_cpu$ac_delim 21455build_vendor!$build_vendor$ac_delim 21456build_os!$build_os$ac_delim 21457host!$host$ac_delim 21458host_cpu!$host_cpu$ac_delim 21459host_vendor!$host_vendor$ac_delim 21460host_os!$host_os$ac_delim 21461GREP!$GREP$ac_delim 21462EGREP!$EGREP$ac_delim 21463LN_S!$LN_S$ac_delim 21464ECHO!$ECHO$ac_delim 21465AR!$AR$ac_delim 21466RANLIB!$RANLIB$ac_delim 21467CPP!$CPP$ac_delim 21468CXX!$CXX$ac_delim 21469CXXFLAGS!$CXXFLAGS$ac_delim 21470ac_ct_CXX!$ac_ct_CXX$ac_delim 21471CXXDEPMODE!$CXXDEPMODE$ac_delim 21472am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21473_ACEOF 21474 21475 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21476 break 21477 elif $ac_last_try; then 21478 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21479echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21480 { (exit 1); exit 1; }; } 21481 else 21482 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21483 fi 21484done 21485 21486ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21487if test -n "$ac_eof"; then 21488 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21489 ac_eof=`expr $ac_eof + 1` 21490fi 21491 21492cat >>$CONFIG_STATUS <<_ACEOF 21493cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21494/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21495_ACEOF 21496sed ' 21497s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21498s/^/s,@/; s/!/@,|#_!!_#|/ 21499:n 21500t n 21501s/'"$ac_delim"'$/,g/; t 21502s/$/\\/; p 21503N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21504' >>$CONFIG_STATUS <conf$$subs.sed 21505rm -f conf$$subs.sed 21506cat >>$CONFIG_STATUS <<_ACEOF 21507CEOF$ac_eof 21508_ACEOF 21509 21510 21511ac_delim='%!_!# ' 21512for ac_last_try in false false false false false :; do 21513 cat >conf$$subs.sed <<_ACEOF 21514am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21515CXXCPP!$CXXCPP$ac_delim 21516F77!$F77$ac_delim 21517FFLAGS!$FFLAGS$ac_delim 21518ac_ct_F77!$ac_ct_F77$ac_delim 21519LIBTOOL!$LIBTOOL$ac_delim 21520PKG_CONFIG!$PKG_CONFIG$ac_delim 21521XT_CFLAGS!$XT_CFLAGS$ac_delim 21522XT_LIBS!$XT_LIBS$ac_delim 21523INSTALL_MAKESTRS_TRUE!$INSTALL_MAKESTRS_TRUE$ac_delim 21524INSTALL_MAKESTRS_FALSE!$INSTALL_MAKESTRS_FALSE$ac_delim 21525XFILESEARCHPATHDEFAULT!$XFILESEARCHPATHDEFAULT$ac_delim 21526appdefaultdir!$appdefaultdir$ac_delim 21527STRINGSABIOPTIONS!$STRINGSABIOPTIONS$ac_delim 21528RAWCPP!$RAWCPP$ac_delim 21529RAWCPPFLAGS!$RAWCPPFLAGS$ac_delim 21530APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim 21531LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim 21532FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim 21533MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim 21534DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim 21535ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim 21536APP_MAN_DIR!$APP_MAN_DIR$ac_delim 21537LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim 21538FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim 21539MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim 21540DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim 21541ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim 21542MALLOC_ZERO_CFLAGS!$MALLOC_ZERO_CFLAGS$ac_delim 21543XMALLOC_ZERO_CFLAGS!$XMALLOC_ZERO_CFLAGS$ac_delim 21544XTMALLOC_ZERO_CFLAGS!$XTMALLOC_ZERO_CFLAGS$ac_delim 21545LIBOBJS!$LIBOBJS$ac_delim 21546LTLIBOBJS!$LTLIBOBJS$ac_delim 21547_ACEOF 21548 21549 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then 21550 break 21551 elif $ac_last_try; then 21552 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21553echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21554 { (exit 1); exit 1; }; } 21555 else 21556 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21557 fi 21558done 21559 21560ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21561if test -n "$ac_eof"; then 21562 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21563 ac_eof=`expr $ac_eof + 1` 21564fi 21565 21566cat >>$CONFIG_STATUS <<_ACEOF 21567cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21568/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21569_ACEOF 21570sed ' 21571s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21572s/^/s,@/; s/!/@,|#_!!_#|/ 21573:n 21574t n 21575s/'"$ac_delim"'$/,g/; t 21576s/$/\\/; p 21577N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21578' >>$CONFIG_STATUS <conf$$subs.sed 21579rm -f conf$$subs.sed 21580cat >>$CONFIG_STATUS <<_ACEOF 21581:end 21582s/|#_!!_#|//g 21583CEOF$ac_eof 21584_ACEOF 21585 21586 21587# VPATH may cause trouble with some makes, so we remove $(srcdir), 21588# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 21589# trailing colons and then remove the whole line if VPATH becomes empty 21590# (actually we leave an empty line to preserve line numbers). 21591if test "x$srcdir" = x.; then 21592 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 21593s/:*\$(srcdir):*/:/ 21594s/:*\${srcdir}:*/:/ 21595s/:*@srcdir@:*/:/ 21596s/^\([^=]*=[ ]*\):*/\1/ 21597s/:*$// 21598s/^[^=]*=[ ]*$// 21599}' 21600fi 21601 21602cat >>$CONFIG_STATUS <<\_ACEOF 21603fi # test -n "$CONFIG_FILES" 21604 21605 21606for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 21607do 21608 case $ac_tag in 21609 :[FHLC]) ac_mode=$ac_tag; continue;; 21610 esac 21611 case $ac_mode$ac_tag in 21612 :[FHL]*:*);; 21613 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 21614echo "$as_me: error: Invalid tag $ac_tag." >&2;} 21615 { (exit 1); exit 1; }; };; 21616 :[FH]-) ac_tag=-:-;; 21617 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21618 esac 21619 ac_save_IFS=$IFS 21620 IFS=: 21621 set x $ac_tag 21622 IFS=$ac_save_IFS 21623 shift 21624 ac_file=$1 21625 shift 21626 21627 case $ac_mode in 21628 :L) ac_source=$1;; 21629 :[FH]) 21630 ac_file_inputs= 21631 for ac_f 21632 do 21633 case $ac_f in 21634 -) ac_f="$tmp/stdin";; 21635 *) # Look for the file first in the build tree, then in the source tree 21636 # (if the path is not absolute). The absolute path cannot be DOS-style, 21637 # because $ac_f cannot contain `:'. 21638 test -f "$ac_f" || 21639 case $ac_f in 21640 [\\/$]*) false;; 21641 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21642 esac || 21643 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 21644echo "$as_me: error: cannot find input file: $ac_f" >&2;} 21645 { (exit 1); exit 1; }; };; 21646 esac 21647 ac_file_inputs="$ac_file_inputs $ac_f" 21648 done 21649 21650 # Let's still pretend it is `configure' which instantiates (i.e., don't 21651 # use $as_me), people would be surprised to read: 21652 # /* config.h. Generated by config.status. */ 21653 configure_input="Generated from "`IFS=: 21654 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 21655 if test x"$ac_file" != x-; then 21656 configure_input="$ac_file. $configure_input" 21657 { echo "$as_me:$LINENO: creating $ac_file" >&5 21658echo "$as_me: creating $ac_file" >&6;} 21659 fi 21660 21661 case $ac_tag in 21662 *:-:* | *:-) cat >"$tmp/stdin";; 21663 esac 21664 ;; 21665 esac 21666 21667 ac_dir=`$as_dirname -- "$ac_file" || 21668$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21669 X"$ac_file" : 'X\(//\)[^/]' \| \ 21670 X"$ac_file" : 'X\(//\)$' \| \ 21671 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21672echo X"$ac_file" | 21673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21674 s//\1/ 21675 q 21676 } 21677 /^X\(\/\/\)[^/].*/{ 21678 s//\1/ 21679 q 21680 } 21681 /^X\(\/\/\)$/{ 21682 s//\1/ 21683 q 21684 } 21685 /^X\(\/\).*/{ 21686 s//\1/ 21687 q 21688 } 21689 s/.*/./; q'` 21690 { as_dir="$ac_dir" 21691 case $as_dir in #( 21692 -*) as_dir=./$as_dir;; 21693 esac 21694 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 21695 as_dirs= 21696 while :; do 21697 case $as_dir in #( 21698 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 21699 *) as_qdir=$as_dir;; 21700 esac 21701 as_dirs="'$as_qdir' $as_dirs" 21702 as_dir=`$as_dirname -- "$as_dir" || 21703$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21704 X"$as_dir" : 'X\(//\)[^/]' \| \ 21705 X"$as_dir" : 'X\(//\)$' \| \ 21706 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21707echo X"$as_dir" | 21708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21709 s//\1/ 21710 q 21711 } 21712 /^X\(\/\/\)[^/].*/{ 21713 s//\1/ 21714 q 21715 } 21716 /^X\(\/\/\)$/{ 21717 s//\1/ 21718 q 21719 } 21720 /^X\(\/\).*/{ 21721 s//\1/ 21722 q 21723 } 21724 s/.*/./; q'` 21725 test -d "$as_dir" && break 21726 done 21727 test -z "$as_dirs" || eval "mkdir $as_dirs" 21728 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 21729echo "$as_me: error: cannot create directory $as_dir" >&2;} 21730 { (exit 1); exit 1; }; }; } 21731 ac_builddir=. 21732 21733case "$ac_dir" in 21734.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21735*) 21736 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21737 # A ".." for each directory in $ac_dir_suffix. 21738 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 21739 case $ac_top_builddir_sub in 21740 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21741 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21742 esac ;; 21743esac 21744ac_abs_top_builddir=$ac_pwd 21745ac_abs_builddir=$ac_pwd$ac_dir_suffix 21746# for backward compatibility: 21747ac_top_builddir=$ac_top_build_prefix 21748 21749case $srcdir in 21750 .) # We are building in place. 21751 ac_srcdir=. 21752 ac_top_srcdir=$ac_top_builddir_sub 21753 ac_abs_top_srcdir=$ac_pwd ;; 21754 [\\/]* | ?:[\\/]* ) # Absolute name. 21755 ac_srcdir=$srcdir$ac_dir_suffix; 21756 ac_top_srcdir=$srcdir 21757 ac_abs_top_srcdir=$srcdir ;; 21758 *) # Relative name. 21759 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21760 ac_top_srcdir=$ac_top_build_prefix$srcdir 21761 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21762esac 21763ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21764 21765 21766 case $ac_mode in 21767 :F) 21768 # 21769 # CONFIG_FILE 21770 # 21771 21772 case $INSTALL in 21773 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21774 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21775 esac 21776_ACEOF 21777 21778cat >>$CONFIG_STATUS <<\_ACEOF 21779# If the template does not know about datarootdir, expand it. 21780# FIXME: This hack should be removed a few years after 2.60. 21781ac_datarootdir_hack=; ac_datarootdir_seen= 21782 21783case `sed -n '/datarootdir/ { 21784 p 21785 q 21786} 21787/@datadir@/p 21788/@docdir@/p 21789/@infodir@/p 21790/@localedir@/p 21791/@mandir@/p 21792' $ac_file_inputs` in 21793*datarootdir*) ac_datarootdir_seen=yes;; 21794*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21795 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21796echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21797_ACEOF 21798cat >>$CONFIG_STATUS <<_ACEOF 21799 ac_datarootdir_hack=' 21800 s&@datadir@&$datadir&g 21801 s&@docdir@&$docdir&g 21802 s&@infodir@&$infodir&g 21803 s&@localedir@&$localedir&g 21804 s&@mandir@&$mandir&g 21805 s&\\\${datarootdir}&$datarootdir&g' ;; 21806esac 21807_ACEOF 21808 21809# Neutralize VPATH when `$srcdir' = `.'. 21810# Shell code in configure.ac might set extrasub. 21811# FIXME: do we really want to maintain this feature? 21812cat >>$CONFIG_STATUS <<_ACEOF 21813 sed "$ac_vpsub 21814$extrasub 21815_ACEOF 21816cat >>$CONFIG_STATUS <<\_ACEOF 21817:t 21818/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21819s&@configure_input@&$configure_input&;t t 21820s&@top_builddir@&$ac_top_builddir_sub&;t t 21821s&@srcdir@&$ac_srcdir&;t t 21822s&@abs_srcdir@&$ac_abs_srcdir&;t t 21823s&@top_srcdir@&$ac_top_srcdir&;t t 21824s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21825s&@builddir@&$ac_builddir&;t t 21826s&@abs_builddir@&$ac_abs_builddir&;t t 21827s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21828s&@INSTALL@&$ac_INSTALL&;t t 21829$ac_datarootdir_hack 21830" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 21831 21832test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21833 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 21834 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 21835 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21836which seems to be undefined. Please make sure it is defined." >&5 21837echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21838which seems to be undefined. Please make sure it is defined." >&2;} 21839 21840 rm -f "$tmp/stdin" 21841 case $ac_file in 21842 -) cat "$tmp/out"; rm -f "$tmp/out";; 21843 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 21844 esac 21845 ;; 21846 :H) 21847 # 21848 # CONFIG_HEADER 21849 # 21850_ACEOF 21851 21852# Transform confdefs.h into a sed script `conftest.defines', that 21853# substitutes the proper values into config.h.in to produce config.h. 21854rm -f conftest.defines conftest.tail 21855# First, append a space to every undef/define line, to ease matching. 21856echo 's/$/ /' >conftest.defines 21857# Then, protect against being on the right side of a sed subst, or in 21858# an unquoted here document, in config.status. If some macros were 21859# called several times there might be several #defines for the same 21860# symbol, which is useless. But do not sort them, since the last 21861# AC_DEFINE must be honored. 21862ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21863# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 21864# NAME is the cpp macro being defined, VALUE is the value it is being given. 21865# PARAMS is the parameter list in the macro definition--in most cases, it's 21866# just an empty string. 21867ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 21868ac_dB='\\)[ (].*,\\1define\\2' 21869ac_dC=' ' 21870ac_dD=' ,' 21871 21872uniq confdefs.h | 21873 sed -n ' 21874 t rset 21875 :rset 21876 s/^[ ]*#[ ]*define[ ][ ]*// 21877 t ok 21878 d 21879 :ok 21880 s/[\\&,]/\\&/g 21881 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 21882 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 21883 ' >>conftest.defines 21884 21885# Remove the space that was appended to ease matching. 21886# Then replace #undef with comments. This is necessary, for 21887# example, in the case of _POSIX_SOURCE, which is predefined and required 21888# on some systems where configure will not decide to define it. 21889# (The regexp can be short, since the line contains either #define or #undef.) 21890echo 's/ $// 21891s,^[ #]*u.*,/* & */,' >>conftest.defines 21892 21893# Break up conftest.defines: 21894ac_max_sed_lines=50 21895 21896# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 21897# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 21898# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 21899# et cetera. 21900ac_in='$ac_file_inputs' 21901ac_out='"$tmp/out1"' 21902ac_nxt='"$tmp/out2"' 21903 21904while : 21905do 21906 # Write a here document: 21907 cat >>$CONFIG_STATUS <<_ACEOF 21908 # First, check the format of the line: 21909 cat >"\$tmp/defines.sed" <<\\CEOF 21910/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 21911/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 21912b 21913:def 21914_ACEOF 21915 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 21916 echo 'CEOF 21917 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 21918 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 21919 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 21920 grep . conftest.tail >/dev/null || break 21921 rm -f conftest.defines 21922 mv conftest.tail conftest.defines 21923done 21924rm -f conftest.defines conftest.tail 21925 21926echo "ac_result=$ac_in" >>$CONFIG_STATUS 21927cat >>$CONFIG_STATUS <<\_ACEOF 21928 if test x"$ac_file" != x-; then 21929 echo "/* $configure_input */" >"$tmp/config.h" 21930 cat "$ac_result" >>"$tmp/config.h" 21931 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 21932 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 21933echo "$as_me: $ac_file is unchanged" >&6;} 21934 else 21935 rm -f $ac_file 21936 mv "$tmp/config.h" $ac_file 21937 fi 21938 else 21939 echo "/* $configure_input */" 21940 cat "$ac_result" 21941 fi 21942 rm -f "$tmp/out12" 21943# Compute $ac_file's index in $config_headers. 21944_am_stamp_count=1 21945for _am_header in $config_headers :; do 21946 case $_am_header in 21947 $ac_file | $ac_file:* ) 21948 break ;; 21949 * ) 21950 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21951 esac 21952done 21953echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 21954$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21955 X$ac_file : 'X\(//\)[^/]' \| \ 21956 X$ac_file : 'X\(//\)$' \| \ 21957 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 21958echo X$ac_file | 21959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21960 s//\1/ 21961 q 21962 } 21963 /^X\(\/\/\)[^/].*/{ 21964 s//\1/ 21965 q 21966 } 21967 /^X\(\/\/\)$/{ 21968 s//\1/ 21969 q 21970 } 21971 /^X\(\/\).*/{ 21972 s//\1/ 21973 q 21974 } 21975 s/.*/./; q'`/stamp-h$_am_stamp_count 21976 ;; 21977 21978 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 21979echo "$as_me: executing $ac_file commands" >&6;} 21980 ;; 21981 esac 21982 21983 21984 case $ac_file$ac_mode in 21985 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21986 # Strip MF so we end up with the name of the file. 21987 mf=`echo "$mf" | sed -e 's/:.*$//'` 21988 # Check whether this is an Automake generated Makefile or not. 21989 # We used to match only the files named `Makefile.in', but 21990 # some people rename them; so instead we look at the file content. 21991 # Grep'ing the first line is not enough: some people post-process 21992 # each Makefile.in and add a new line on top of each file to say so. 21993 # So let's grep whole file. 21994 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21995 dirpart=`$as_dirname -- "$mf" || 21996$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21997 X"$mf" : 'X\(//\)[^/]' \| \ 21998 X"$mf" : 'X\(//\)$' \| \ 21999 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22000echo X"$mf" | 22001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22002 s//\1/ 22003 q 22004 } 22005 /^X\(\/\/\)[^/].*/{ 22006 s//\1/ 22007 q 22008 } 22009 /^X\(\/\/\)$/{ 22010 s//\1/ 22011 q 22012 } 22013 /^X\(\/\).*/{ 22014 s//\1/ 22015 q 22016 } 22017 s/.*/./; q'` 22018 else 22019 continue 22020 fi 22021 # Extract the definition of DEPDIR, am__include, and am__quote 22022 # from the Makefile without running `make'. 22023 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22024 test -z "$DEPDIR" && continue 22025 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22026 test -z "am__include" && continue 22027 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22028 # When using ansi2knr, U may be empty or an underscore; expand it 22029 U=`sed -n 's/^U = //p' < "$mf"` 22030 # Find all dependency output files, they are included files with 22031 # $(DEPDIR) in their names. We invoke sed twice because it is the 22032 # simplest approach to changing $(DEPDIR) to its actual value in the 22033 # expansion. 22034 for file in `sed -n " 22035 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22036 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22037 # Make sure the directory exists. 22038 test -f "$dirpart/$file" && continue 22039 fdir=`$as_dirname -- "$file" || 22040$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22041 X"$file" : 'X\(//\)[^/]' \| \ 22042 X"$file" : 'X\(//\)$' \| \ 22043 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22044echo X"$file" | 22045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22046 s//\1/ 22047 q 22048 } 22049 /^X\(\/\/\)[^/].*/{ 22050 s//\1/ 22051 q 22052 } 22053 /^X\(\/\/\)$/{ 22054 s//\1/ 22055 q 22056 } 22057 /^X\(\/\).*/{ 22058 s//\1/ 22059 q 22060 } 22061 s/.*/./; q'` 22062 { as_dir=$dirpart/$fdir 22063 case $as_dir in #( 22064 -*) as_dir=./$as_dir;; 22065 esac 22066 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22067 as_dirs= 22068 while :; do 22069 case $as_dir in #( 22070 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22071 *) as_qdir=$as_dir;; 22072 esac 22073 as_dirs="'$as_qdir' $as_dirs" 22074 as_dir=`$as_dirname -- "$as_dir" || 22075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22076 X"$as_dir" : 'X\(//\)[^/]' \| \ 22077 X"$as_dir" : 'X\(//\)$' \| \ 22078 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22079echo X"$as_dir" | 22080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22081 s//\1/ 22082 q 22083 } 22084 /^X\(\/\/\)[^/].*/{ 22085 s//\1/ 22086 q 22087 } 22088 /^X\(\/\/\)$/{ 22089 s//\1/ 22090 q 22091 } 22092 /^X\(\/\).*/{ 22093 s//\1/ 22094 q 22095 } 22096 s/.*/./; q'` 22097 test -d "$as_dir" && break 22098 done 22099 test -z "$as_dirs" || eval "mkdir $as_dirs" 22100 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22101echo "$as_me: error: cannot create directory $as_dir" >&2;} 22102 { (exit 1); exit 1; }; }; } 22103 # echo "creating $dirpart/$file" 22104 echo '# dummy' > "$dirpart/$file" 22105 done 22106done 22107 ;; 22108 22109 esac 22110done # for ac_tag 22111 22112 22113{ (exit 0); exit 0; } 22114_ACEOF 22115chmod +x $CONFIG_STATUS 22116ac_clean_files=$ac_clean_files_save 22117 22118 22119# configure is writing to config.log, and then calls config.status. 22120# config.status does its own redirection, appending to config.log. 22121# Unfortunately, on DOS this fails, as config.log is still kept open 22122# by configure, so config.status won't be able to write to it; its 22123# output is simply discarded. So we exec the FD to /dev/null, 22124# effectively closing config.log, so it can be properly (re)opened and 22125# appended to by config.status. When coming back to configure, we 22126# need to make the FD available again. 22127if test "$no_create" != yes; then 22128 ac_cs_success=: 22129 ac_config_status_args= 22130 test "$silent" = yes && 22131 ac_config_status_args="$ac_config_status_args --quiet" 22132 exec 5>/dev/null 22133 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22134 exec 5>>config.log 22135 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22136 # would make configure fail if this is the last instruction. 22137 $ac_cs_success || { (exit 1); exit 1; } 22138fi 22139 22140