configure revision c76ae52d
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.60 for libXft 2.1.12. 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='libXft' 715PACKAGE_TARNAME='libXft' 716PACKAGE_VERSION='2.1.12' 717PACKAGE_STRING='libXft 2.1.12' 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 814AMSHOWCMDSAT 815AMDEPSHOWCMDSAT 816AMPRETTYECHO 817AMCMDECHO 818LT_QUIET 819MAINTAINER_MODE_TRUE 820MAINTAINER_MODE_FALSE 821MAINT 822CC 823CFLAGS 824LDFLAGS 825CPPFLAGS 826ac_ct_CC 827EXEEXT 828OBJEXT 829DEPDIR 830am__include 831am__quote 832AMDEP_TRUE 833AMDEP_FALSE 834AMDEPBACKSLASH 835CCDEPMODE 836am__fastdepCC_TRUE 837am__fastdepCC_FALSE 838build 839build_cpu 840build_vendor 841build_os 842host 843host_cpu 844host_vendor 845host_os 846GREP 847EGREP 848LN_S 849ECHO 850AR 851RANLIB 852CPP 853CXX 854CXXFLAGS 855ac_ct_CXX 856CXXDEPMODE 857am__fastdepCXX_TRUE 858am__fastdepCXX_FALSE 859CXXCPP 860F77 861FFLAGS 862ac_ct_F77 863LIBTOOL 864PKG_CONFIG 865XRENDER_CFLAGS 866XRENDER_LIBS 867XMKMF 868FREETYPE_CFLAGS 869FREETYPE_LIBS 870ft_config 871FONTCONFIG_CFLAGS 872FONTCONFIG_LIBS 873WARN_CFLAGS 874LIBOBJS 875LTLIBOBJS' 876ac_subst_files='' 877 ac_precious_vars='build_alias 878host_alias 879target_alias 880CC 881CFLAGS 882LDFLAGS 883CPPFLAGS 884CPP 885CXX 886CXXFLAGS 887CCC 888CXXCPP 889F77 890FFLAGS 891PKG_CONFIG 892XRENDER_CFLAGS 893XRENDER_LIBS 894XMKMF 895FREETYPE_CFLAGS 896FREETYPE_LIBS 897FONTCONFIG_CFLAGS 898FONTCONFIG_LIBS' 899 900 901# Initialize some variables set by options. 902ac_init_help= 903ac_init_version=false 904# The variables have the same names as the options, with 905# dashes changed to underlines. 906cache_file=/dev/null 907exec_prefix=NONE 908no_create= 909no_recursion= 910prefix=NONE 911program_prefix=NONE 912program_suffix=NONE 913program_transform_name=s,x,x, 914silent= 915site= 916srcdir= 917verbose= 918x_includes=NONE 919x_libraries=NONE 920 921# Installation directory options. 922# These are left unexpanded so users can "make install exec_prefix=/foo" 923# and all the variables that are supposed to be based on exec_prefix 924# by default will actually change. 925# Use braces instead of parens because sh, perl, etc. also accept them. 926# (The list follows the same order as the GNU Coding Standards.) 927bindir='${exec_prefix}/bin' 928sbindir='${exec_prefix}/sbin' 929libexecdir='${exec_prefix}/libexec' 930datarootdir='${prefix}/share' 931datadir='${datarootdir}' 932sysconfdir='${prefix}/etc' 933sharedstatedir='${prefix}/com' 934localstatedir='${prefix}/var' 935includedir='${prefix}/include' 936oldincludedir='/usr/include' 937docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 938infodir='${datarootdir}/info' 939htmldir='${docdir}' 940dvidir='${docdir}' 941pdfdir='${docdir}' 942psdir='${docdir}' 943libdir='${exec_prefix}/lib' 944localedir='${datarootdir}/locale' 945mandir='${datarootdir}/man' 946 947ac_prev= 948ac_dashdash= 949for ac_option 950do 951 # If the previous option needs an argument, assign it. 952 if test -n "$ac_prev"; then 953 eval $ac_prev=\$ac_option 954 ac_prev= 955 continue 956 fi 957 958 case $ac_option in 959 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 960 *) ac_optarg=yes ;; 961 esac 962 963 # Accept the important Cygnus configure options, so we can diagnose typos. 964 965 case $ac_dashdash$ac_option in 966 --) 967 ac_dashdash=yes ;; 968 969 -bindir | --bindir | --bindi | --bind | --bin | --bi) 970 ac_prev=bindir ;; 971 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 972 bindir=$ac_optarg ;; 973 974 -build | --build | --buil | --bui | --bu) 975 ac_prev=build_alias ;; 976 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 977 build_alias=$ac_optarg ;; 978 979 -cache-file | --cache-file | --cache-fil | --cache-fi \ 980 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 981 ac_prev=cache_file ;; 982 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 983 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 984 cache_file=$ac_optarg ;; 985 986 --config-cache | -C) 987 cache_file=config.cache ;; 988 989 -datadir | --datadir | --datadi | --datad) 990 ac_prev=datadir ;; 991 -datadir=* | --datadir=* | --datadi=* | --datad=*) 992 datadir=$ac_optarg ;; 993 994 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 995 | --dataroo | --dataro | --datar) 996 ac_prev=datarootdir ;; 997 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 998 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 999 datarootdir=$ac_optarg ;; 1000 1001 -disable-* | --disable-*) 1002 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1003 # Reject names that are not valid shell variable names. 1004 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1005 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1006 { (exit 1); exit 1; }; } 1007 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1008 eval enable_$ac_feature=no ;; 1009 1010 -docdir | --docdir | --docdi | --doc | --do) 1011 ac_prev=docdir ;; 1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1013 docdir=$ac_optarg ;; 1014 1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1016 ac_prev=dvidir ;; 1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1018 dvidir=$ac_optarg ;; 1019 1020 -enable-* | --enable-*) 1021 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1022 # Reject names that are not valid shell variable names. 1023 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 1024 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 1025 { (exit 1); exit 1; }; } 1026 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 1027 eval enable_$ac_feature=\$ac_optarg ;; 1028 1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1031 | --exec | --exe | --ex) 1032 ac_prev=exec_prefix ;; 1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1035 | --exec=* | --exe=* | --ex=*) 1036 exec_prefix=$ac_optarg ;; 1037 1038 -gas | --gas | --ga | --g) 1039 # Obsolete; use --with-gas. 1040 with_gas=yes ;; 1041 1042 -help | --help | --hel | --he | -h) 1043 ac_init_help=long ;; 1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1045 ac_init_help=recursive ;; 1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1047 ac_init_help=short ;; 1048 1049 -host | --host | --hos | --ho) 1050 ac_prev=host_alias ;; 1051 -host=* | --host=* | --hos=* | --ho=*) 1052 host_alias=$ac_optarg ;; 1053 1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1055 ac_prev=htmldir ;; 1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1057 | --ht=*) 1058 htmldir=$ac_optarg ;; 1059 1060 -includedir | --includedir | --includedi | --included | --include \ 1061 | --includ | --inclu | --incl | --inc) 1062 ac_prev=includedir ;; 1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1064 | --includ=* | --inclu=* | --incl=* | --inc=*) 1065 includedir=$ac_optarg ;; 1066 1067 -infodir | --infodir | --infodi | --infod | --info | --inf) 1068 ac_prev=infodir ;; 1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1070 infodir=$ac_optarg ;; 1071 1072 -libdir | --libdir | --libdi | --libd) 1073 ac_prev=libdir ;; 1074 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1075 libdir=$ac_optarg ;; 1076 1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1078 | --libexe | --libex | --libe) 1079 ac_prev=libexecdir ;; 1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1081 | --libexe=* | --libex=* | --libe=*) 1082 libexecdir=$ac_optarg ;; 1083 1084 -localedir | --localedir | --localedi | --localed | --locale) 1085 ac_prev=localedir ;; 1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1087 localedir=$ac_optarg ;; 1088 1089 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1090 | --localstate | --localstat | --localsta | --localst | --locals) 1091 ac_prev=localstatedir ;; 1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1094 localstatedir=$ac_optarg ;; 1095 1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1097 ac_prev=mandir ;; 1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1099 mandir=$ac_optarg ;; 1100 1101 -nfp | --nfp | --nf) 1102 # Obsolete; use --without-fp. 1103 with_fp=no ;; 1104 1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1106 | --no-cr | --no-c | -n) 1107 no_create=yes ;; 1108 1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1111 no_recursion=yes ;; 1112 1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1115 | --oldin | --oldi | --old | --ol | --o) 1116 ac_prev=oldincludedir ;; 1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1120 oldincludedir=$ac_optarg ;; 1121 1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1123 ac_prev=prefix ;; 1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1125 prefix=$ac_optarg ;; 1126 1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1128 | --program-pre | --program-pr | --program-p) 1129 ac_prev=program_prefix ;; 1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1132 program_prefix=$ac_optarg ;; 1133 1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1135 | --program-suf | --program-su | --program-s) 1136 ac_prev=program_suffix ;; 1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1139 program_suffix=$ac_optarg ;; 1140 1141 -program-transform-name | --program-transform-name \ 1142 | --program-transform-nam | --program-transform-na \ 1143 | --program-transform-n | --program-transform- \ 1144 | --program-transform | --program-transfor \ 1145 | --program-transfo | --program-transf \ 1146 | --program-trans | --program-tran \ 1147 | --progr-tra | --program-tr | --program-t) 1148 ac_prev=program_transform_name ;; 1149 -program-transform-name=* | --program-transform-name=* \ 1150 | --program-transform-nam=* | --program-transform-na=* \ 1151 | --program-transform-n=* | --program-transform-=* \ 1152 | --program-transform=* | --program-transfor=* \ 1153 | --program-transfo=* | --program-transf=* \ 1154 | --program-trans=* | --program-tran=* \ 1155 | --progr-tra=* | --program-tr=* | --program-t=*) 1156 program_transform_name=$ac_optarg ;; 1157 1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1159 ac_prev=pdfdir ;; 1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1161 pdfdir=$ac_optarg ;; 1162 1163 -psdir | --psdir | --psdi | --psd | --ps) 1164 ac_prev=psdir ;; 1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1166 psdir=$ac_optarg ;; 1167 1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1169 | -silent | --silent | --silen | --sile | --sil) 1170 silent=yes ;; 1171 1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1173 ac_prev=sbindir ;; 1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1175 | --sbi=* | --sb=*) 1176 sbindir=$ac_optarg ;; 1177 1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1180 | --sharedst | --shareds | --shared | --share | --shar \ 1181 | --sha | --sh) 1182 ac_prev=sharedstatedir ;; 1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1186 | --sha=* | --sh=*) 1187 sharedstatedir=$ac_optarg ;; 1188 1189 -site | --site | --sit) 1190 ac_prev=site ;; 1191 -site=* | --site=* | --sit=*) 1192 site=$ac_optarg ;; 1193 1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1195 ac_prev=srcdir ;; 1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1197 srcdir=$ac_optarg ;; 1198 1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1200 | --syscon | --sysco | --sysc | --sys | --sy) 1201 ac_prev=sysconfdir ;; 1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1204 sysconfdir=$ac_optarg ;; 1205 1206 -target | --target | --targe | --targ | --tar | --ta | --t) 1207 ac_prev=target_alias ;; 1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1209 target_alias=$ac_optarg ;; 1210 1211 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1212 verbose=yes ;; 1213 1214 -version | --version | --versio | --versi | --vers | -V) 1215 ac_init_version=: ;; 1216 1217 -with-* | --with-*) 1218 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1219 # Reject names that are not valid shell variable names. 1220 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1221 { echo "$as_me: error: invalid package name: $ac_package" >&2 1222 { (exit 1); exit 1; }; } 1223 ac_package=`echo $ac_package| sed 's/-/_/g'` 1224 eval with_$ac_package=\$ac_optarg ;; 1225 1226 -without-* | --without-*) 1227 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1228 # Reject names that are not valid shell variable names. 1229 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1230 { echo "$as_me: error: invalid package name: $ac_package" >&2 1231 { (exit 1); exit 1; }; } 1232 ac_package=`echo $ac_package | sed 's/-/_/g'` 1233 eval with_$ac_package=no ;; 1234 1235 --x) 1236 # Obsolete; use --with-x. 1237 with_x=yes ;; 1238 1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1240 | --x-incl | --x-inc | --x-in | --x-i) 1241 ac_prev=x_includes ;; 1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1244 x_includes=$ac_optarg ;; 1245 1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1248 ac_prev=x_libraries ;; 1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1251 x_libraries=$ac_optarg ;; 1252 1253 -*) { echo "$as_me: error: unrecognized option: $ac_option 1254Try \`$0 --help' for more information." >&2 1255 { (exit 1); exit 1; }; } 1256 ;; 1257 1258 *=*) 1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1260 # Reject names that are not valid shell variable names. 1261 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1262 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1263 { (exit 1); exit 1; }; } 1264 eval $ac_envvar=\$ac_optarg 1265 export $ac_envvar ;; 1266 1267 *) 1268 # FIXME: should be removed in autoconf 3.0. 1269 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1271 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1273 ;; 1274 1275 esac 1276done 1277 1278if test -n "$ac_prev"; then 1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1280 { echo "$as_me: error: missing argument to $ac_option" >&2 1281 { (exit 1); exit 1; }; } 1282fi 1283 1284# Be sure to have absolute directory names. 1285for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1286 datadir sysconfdir sharedstatedir localstatedir includedir \ 1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1288 libdir localedir mandir 1289do 1290 eval ac_val=\$$ac_var 1291 case $ac_val in 1292 [\\/$]* | ?:[\\/]* ) continue;; 1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1294 esac 1295 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1296 { (exit 1); exit 1; }; } 1297done 1298 1299# There might be people who depend on the old broken behavior: `$host' 1300# used to hold the argument of --host etc. 1301# FIXME: To remove some day. 1302build=$build_alias 1303host=$host_alias 1304target=$target_alias 1305 1306# FIXME: To remove some day. 1307if test "x$host_alias" != x; then 1308 if test "x$build_alias" = x; then 1309 cross_compiling=maybe 1310 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1311 If a cross compiler is detected then cross compile mode will be used." >&2 1312 elif test "x$build_alias" != "x$host_alias"; then 1313 cross_compiling=yes 1314 fi 1315fi 1316 1317ac_tool_prefix= 1318test -n "$host_alias" && ac_tool_prefix=$host_alias- 1319 1320test "$silent" = yes && exec 6>/dev/null 1321 1322 1323ac_pwd=`pwd` && test -n "$ac_pwd" && 1324ac_ls_di=`ls -di .` && 1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1326 { echo "$as_me: error: Working directory cannot be determined" >&2 1327 { (exit 1); exit 1; }; } 1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1329 { echo "$as_me: error: pwd does not report name of working directory" >&2 1330 { (exit 1); exit 1; }; } 1331 1332 1333# Find the source files, if location was not specified. 1334if test -z "$srcdir"; then 1335 ac_srcdir_defaulted=yes 1336 # Try the directory containing this script, then the parent directory. 1337 ac_confdir=`$as_dirname -- "$0" || 1338$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1339 X"$0" : 'X\(//\)[^/]' \| \ 1340 X"$0" : 'X\(//\)$' \| \ 1341 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1342echo X"$0" | 1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)[^/].*/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\/\)$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\).*/{ 1356 s//\1/ 1357 q 1358 } 1359 s/.*/./; q'` 1360 srcdir=$ac_confdir 1361 if test ! -r "$srcdir/$ac_unique_file"; then 1362 srcdir=.. 1363 fi 1364else 1365 ac_srcdir_defaulted=no 1366fi 1367if test ! -r "$srcdir/$ac_unique_file"; then 1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1369 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1370 { (exit 1); exit 1; }; } 1371fi 1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1373ac_abs_confdir=`( 1374 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1375 { (exit 1); exit 1; }; } 1376 pwd)` 1377# When building in place, set srcdir=. 1378if test "$ac_abs_confdir" = "$ac_pwd"; then 1379 srcdir=. 1380fi 1381# Remove unnecessary trailing slashes from srcdir. 1382# Double slashes in file names in object file debugging info 1383# mess up M-x gdb in Emacs. 1384case $srcdir in 1385*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1386esac 1387for ac_var in $ac_precious_vars; do 1388 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1389 eval ac_env_${ac_var}_value=\$${ac_var} 1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1391 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1392done 1393 1394# 1395# Report the --help message. 1396# 1397if test "$ac_init_help" = "long"; then 1398 # Omit some internal or obsolete options to make the list less imposing. 1399 # This message is too long to be a string in the A/UX 3.1 sh. 1400 cat <<_ACEOF 1401\`configure' configures libXft 2.1.12 to adapt to many kinds of systems. 1402 1403Usage: $0 [OPTION]... [VAR=VALUE]... 1404 1405To assign environment variables (e.g., CC, CFLAGS...), specify them as 1406VAR=VALUE. See below for descriptions of some of the useful variables. 1407 1408Defaults for the options are specified in brackets. 1409 1410Configuration: 1411 -h, --help display this help and exit 1412 --help=short display options specific to this package 1413 --help=recursive display the short help of all the included packages 1414 -V, --version display version information and exit 1415 -q, --quiet, --silent do not print \`checking...' messages 1416 --cache-file=FILE cache test results in FILE [disabled] 1417 -C, --config-cache alias for \`--cache-file=config.cache' 1418 -n, --no-create do not create output files 1419 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1420 1421Installation directories: 1422 --prefix=PREFIX install architecture-independent files in PREFIX 1423 [$ac_default_prefix] 1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1425 [PREFIX] 1426 1427By default, \`make install' will install all the files in 1428\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1429an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1430for instance \`--prefix=\$HOME'. 1431 1432For better control, use the options below. 1433 1434Fine tuning of the installation directories: 1435 --bindir=DIR user executables [EPREFIX/bin] 1436 --sbindir=DIR system admin executables [EPREFIX/sbin] 1437 --libexecdir=DIR program executables [EPREFIX/libexec] 1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1441 --libdir=DIR object code libraries [EPREFIX/lib] 1442 --includedir=DIR C header files [PREFIX/include] 1443 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1446 --infodir=DIR info documentation [DATAROOTDIR/info] 1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1448 --mandir=DIR man documentation [DATAROOTDIR/man] 1449 --docdir=DIR documentation root [DATAROOTDIR/doc/libXft] 1450 --htmldir=DIR html documentation [DOCDIR] 1451 --dvidir=DIR dvi documentation [DOCDIR] 1452 --pdfdir=DIR pdf documentation [DOCDIR] 1453 --psdir=DIR ps documentation [DOCDIR] 1454_ACEOF 1455 1456 cat <<\_ACEOF 1457 1458Program names: 1459 --program-prefix=PREFIX prepend PREFIX to installed program names 1460 --program-suffix=SUFFIX append SUFFIX to installed program names 1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1462 1463X features: 1464 --x-includes=DIR X include files are in DIR 1465 --x-libraries=DIR X library files are in DIR 1466 1467System types: 1468 --build=BUILD configure for building on BUILD [guessed] 1469 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1470_ACEOF 1471fi 1472 1473if test -n "$ac_init_help"; then 1474 case $ac_init_help in 1475 short | recursive ) echo "Configuration of libXft 2.1.12:";; 1476 esac 1477 cat <<\_ACEOF 1478 1479Optional Features: 1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1482 --disable-pretty-cmds show all commands executed 1483 --enable-pretty-cmds do not output the entire command lines 1484 --enable-maintainer-mode enable make rules and dependencies not useful 1485 (and sometimes confusing) to the casual installer 1486 --disable-dependency-tracking speeds up one-time build 1487 --enable-dependency-tracking do not reject slow dependency extractors 1488 --enable-shared[=PKGS] build shared libraries [default=yes] 1489 --enable-static[=PKGS] build static libraries [default=yes] 1490 --enable-fast-install[=PKGS] 1491 optimize for fast installation [default=yes] 1492 --disable-libtool-lock avoid locking (might break parallel builds) 1493 1494Optional Packages: 1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1498 --with-pic try to use only PIC/non-PIC objects [default=use 1499 both] 1500 --with-tags[=TAGS] include additional configurations [automatic] 1501 --with-x use the X Window System 1502 --with-freetype-config=PROG Use FreeType configuration program PROG 1503 --with-release-version=STRING 1504 Use release version string in package name 1505 1506Some influential environment variables: 1507 CC C compiler command 1508 CFLAGS C compiler flags 1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1510 nonstandard directory <lib dir> 1511 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1512 you have headers in a nonstandard directory <include dir> 1513 CPP C preprocessor 1514 CXX C++ compiler command 1515 CXXFLAGS C++ compiler flags 1516 CXXCPP C++ preprocessor 1517 F77 Fortran 77 compiler command 1518 FFLAGS Fortran 77 compiler flags 1519 PKG_CONFIG path to pkg-config utility 1520 XRENDER_CFLAGS 1521 C compiler flags for XRENDER, overriding pkg-config 1522 XRENDER_LIBS 1523 linker flags for XRENDER, overriding pkg-config 1524 XMKMF Path to xmkmf, Makefile generator for X Window System 1525 FREETYPE_CFLAGS 1526 C compiler flags for FREETYPE, overriding pkg-config 1527 FREETYPE_LIBS 1528 linker flags for FREETYPE, overriding pkg-config 1529 FONTCONFIG_CFLAGS 1530 C compiler flags for FONTCONFIG, overriding pkg-config 1531 FONTCONFIG_LIBS 1532 linker flags for FONTCONFIG, overriding pkg-config 1533 1534Use these variables to override the choices made by `configure' or to help 1535it to find libraries and programs with nonstandard names/locations. 1536 1537Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1538_ACEOF 1539ac_status=$? 1540fi 1541 1542if test "$ac_init_help" = "recursive"; then 1543 # If there are subdirs, report their specific --help. 1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1545 test -d "$ac_dir" || continue 1546 ac_builddir=. 1547 1548case "$ac_dir" in 1549.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1550*) 1551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1552 # A ".." for each directory in $ac_dir_suffix. 1553 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1554 case $ac_top_builddir_sub in 1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1557 esac ;; 1558esac 1559ac_abs_top_builddir=$ac_pwd 1560ac_abs_builddir=$ac_pwd$ac_dir_suffix 1561# for backward compatibility: 1562ac_top_builddir=$ac_top_build_prefix 1563 1564case $srcdir in 1565 .) # We are building in place. 1566 ac_srcdir=. 1567 ac_top_srcdir=$ac_top_builddir_sub 1568 ac_abs_top_srcdir=$ac_pwd ;; 1569 [\\/]* | ?:[\\/]* ) # Absolute name. 1570 ac_srcdir=$srcdir$ac_dir_suffix; 1571 ac_top_srcdir=$srcdir 1572 ac_abs_top_srcdir=$srcdir ;; 1573 *) # Relative name. 1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1575 ac_top_srcdir=$ac_top_build_prefix$srcdir 1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1577esac 1578ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1579 1580 cd "$ac_dir" || { ac_status=$?; continue; } 1581 # Check for guested configure. 1582 if test -f "$ac_srcdir/configure.gnu"; then 1583 echo && 1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1585 elif test -f "$ac_srcdir/configure"; then 1586 echo && 1587 $SHELL "$ac_srcdir/configure" --help=recursive 1588 else 1589 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1590 fi || ac_status=$? 1591 cd "$ac_pwd" || { ac_status=$?; break; } 1592 done 1593fi 1594 1595test -n "$ac_init_help" && exit $ac_status 1596if $ac_init_version; then 1597 cat <<\_ACEOF 1598libXft configure 2.1.12 1599generated by GNU Autoconf 2.60 1600 1601Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 16022002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1603This configure script is free software; the Free Software Foundation 1604gives unlimited permission to copy, distribute and modify it. 1605_ACEOF 1606 exit 1607fi 1608cat >config.log <<_ACEOF 1609This file contains any messages produced by compilers while 1610running configure, to aid debugging if configure makes a mistake. 1611 1612It was created by libXft $as_me 2.1.12, which was 1613generated by GNU Autoconf 2.60. Invocation command line was 1614 1615 $ $0 $@ 1616 1617_ACEOF 1618exec 5>>config.log 1619{ 1620cat <<_ASUNAME 1621## --------- ## 1622## Platform. ## 1623## --------- ## 1624 1625hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1626uname -m = `(uname -m) 2>/dev/null || echo unknown` 1627uname -r = `(uname -r) 2>/dev/null || echo unknown` 1628uname -s = `(uname -s) 2>/dev/null || echo unknown` 1629uname -v = `(uname -v) 2>/dev/null || echo unknown` 1630 1631/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1632/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1633 1634/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1635/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1636/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1637/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1638/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1639/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1640/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1641 1642_ASUNAME 1643 1644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1645for as_dir in $PATH 1646do 1647 IFS=$as_save_IFS 1648 test -z "$as_dir" && as_dir=. 1649 echo "PATH: $as_dir" 1650done 1651IFS=$as_save_IFS 1652 1653} >&5 1654 1655cat >&5 <<_ACEOF 1656 1657 1658## ----------- ## 1659## Core tests. ## 1660## ----------- ## 1661 1662_ACEOF 1663 1664 1665# Keep a trace of the command line. 1666# Strip out --no-create and --no-recursion so they do not pile up. 1667# Strip out --silent because we don't want to record it for future runs. 1668# Also quote any args containing shell meta-characters. 1669# Make two passes to allow for proper duplicate-argument suppression. 1670ac_configure_args= 1671ac_configure_args0= 1672ac_configure_args1= 1673ac_must_keep_next=false 1674for ac_pass in 1 2 1675do 1676 for ac_arg 1677 do 1678 case $ac_arg in 1679 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1681 | -silent | --silent | --silen | --sile | --sil) 1682 continue ;; 1683 *\'*) 1684 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1685 esac 1686 case $ac_pass in 1687 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1688 2) 1689 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1690 if test $ac_must_keep_next = true; then 1691 ac_must_keep_next=false # Got value, back to normal. 1692 else 1693 case $ac_arg in 1694 *=* | --config-cache | -C | -disable-* | --disable-* \ 1695 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1696 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1697 | -with-* | --with-* | -without-* | --without-* | --x) 1698 case "$ac_configure_args0 " in 1699 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1700 esac 1701 ;; 1702 -* ) ac_must_keep_next=true ;; 1703 esac 1704 fi 1705 ac_configure_args="$ac_configure_args '$ac_arg'" 1706 ;; 1707 esac 1708 done 1709done 1710$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1711$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1712 1713# When interrupted or exit'd, cleanup temporary files, and complete 1714# config.log. We remove comments because anyway the quotes in there 1715# would cause problems or look ugly. 1716# WARNING: Use '\'' to represent an apostrophe within the trap. 1717# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1718trap 'exit_status=$? 1719 # Save into config.log some information that might help in debugging. 1720 { 1721 echo 1722 1723 cat <<\_ASBOX 1724## ---------------- ## 1725## Cache variables. ## 1726## ---------------- ## 1727_ASBOX 1728 echo 1729 # The following way of writing the cache mishandles newlines in values, 1730( 1731 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1732 eval ac_val=\$$ac_var 1733 case $ac_val in #( 1734 *${as_nl}*) 1735 case $ac_var in #( 1736 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1737echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1738 esac 1739 case $ac_var in #( 1740 _ | IFS | as_nl) ;; #( 1741 *) $as_unset $ac_var ;; 1742 esac ;; 1743 esac 1744 done 1745 (set) 2>&1 | 1746 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1747 *${as_nl}ac_space=\ *) 1748 sed -n \ 1749 "s/'\''/'\''\\\\'\'''\''/g; 1750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1751 ;; #( 1752 *) 1753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1754 ;; 1755 esac | 1756 sort 1757) 1758 echo 1759 1760 cat <<\_ASBOX 1761## ----------------- ## 1762## Output variables. ## 1763## ----------------- ## 1764_ASBOX 1765 echo 1766 for ac_var in $ac_subst_vars 1767 do 1768 eval ac_val=\$$ac_var 1769 case $ac_val in 1770 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1771 esac 1772 echo "$ac_var='\''$ac_val'\''" 1773 done | sort 1774 echo 1775 1776 if test -n "$ac_subst_files"; then 1777 cat <<\_ASBOX 1778## ------------------- ## 1779## File substitutions. ## 1780## ------------------- ## 1781_ASBOX 1782 echo 1783 for ac_var in $ac_subst_files 1784 do 1785 eval ac_val=\$$ac_var 1786 case $ac_val in 1787 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1788 esac 1789 echo "$ac_var='\''$ac_val'\''" 1790 done | sort 1791 echo 1792 fi 1793 1794 if test -s confdefs.h; then 1795 cat <<\_ASBOX 1796## ----------- ## 1797## confdefs.h. ## 1798## ----------- ## 1799_ASBOX 1800 echo 1801 cat confdefs.h 1802 echo 1803 fi 1804 test "$ac_signal" != 0 && 1805 echo "$as_me: caught signal $ac_signal" 1806 echo "$as_me: exit $exit_status" 1807 } >&5 1808 rm -f core *.core core.conftest.* && 1809 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1810 exit $exit_status 1811' 0 1812for ac_signal in 1 2 13 15; do 1813 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1814done 1815ac_signal=0 1816 1817# confdefs.h avoids OS command line length limits that DEFS can exceed. 1818rm -f -r conftest* confdefs.h 1819 1820# Predefined preprocessor variables. 1821 1822cat >>confdefs.h <<_ACEOF 1823#define PACKAGE_NAME "$PACKAGE_NAME" 1824_ACEOF 1825 1826 1827cat >>confdefs.h <<_ACEOF 1828#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1829_ACEOF 1830 1831 1832cat >>confdefs.h <<_ACEOF 1833#define PACKAGE_VERSION "$PACKAGE_VERSION" 1834_ACEOF 1835 1836 1837cat >>confdefs.h <<_ACEOF 1838#define PACKAGE_STRING "$PACKAGE_STRING" 1839_ACEOF 1840 1841 1842cat >>confdefs.h <<_ACEOF 1843#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1844_ACEOF 1845 1846 1847# Let the site file select an alternate cache file if it wants to. 1848# Prefer explicitly selected file to automatically selected ones. 1849if test -n "$CONFIG_SITE"; then 1850 set x "$CONFIG_SITE" 1851elif test "x$prefix" != xNONE; then 1852 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1853else 1854 set x "$ac_default_prefix/share/config.site" \ 1855 "$ac_default_prefix/etc/config.site" 1856fi 1857shift 1858for ac_site_file 1859do 1860 if test -r "$ac_site_file"; then 1861 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1862echo "$as_me: loading site script $ac_site_file" >&6;} 1863 sed 's/^/| /' "$ac_site_file" >&5 1864 . "$ac_site_file" 1865 fi 1866done 1867 1868if test -r "$cache_file"; then 1869 # Some versions of bash will fail to source /dev/null (special 1870 # files actually), so we avoid doing that. 1871 if test -f "$cache_file"; then 1872 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1873echo "$as_me: loading cache $cache_file" >&6;} 1874 case $cache_file in 1875 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1876 *) . "./$cache_file";; 1877 esac 1878 fi 1879else 1880 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1881echo "$as_me: creating cache $cache_file" >&6;} 1882 >$cache_file 1883fi 1884 1885# Check that the precious variables saved in the cache have kept the same 1886# value. 1887ac_cache_corrupted=false 1888for ac_var in $ac_precious_vars; do 1889 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1890 eval ac_new_set=\$ac_env_${ac_var}_set 1891 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1892 eval ac_new_val=\$ac_env_${ac_var}_value 1893 case $ac_old_set,$ac_new_set in 1894 set,) 1895 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1896echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1897 ac_cache_corrupted=: ;; 1898 ,set) 1899 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1900echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1901 ac_cache_corrupted=: ;; 1902 ,);; 1903 *) 1904 if test "x$ac_old_val" != "x$ac_new_val"; then 1905 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1906echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1907 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1908echo "$as_me: former value: $ac_old_val" >&2;} 1909 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1910echo "$as_me: current value: $ac_new_val" >&2;} 1911 ac_cache_corrupted=: 1912 fi;; 1913 esac 1914 # Pass precious variables to config.status. 1915 if test "$ac_new_set" = set; then 1916 case $ac_new_val in 1917 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1918 *) ac_arg=$ac_var=$ac_new_val ;; 1919 esac 1920 case " $ac_configure_args " in 1921 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1922 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1923 esac 1924 fi 1925done 1926if $ac_cache_corrupted; then 1927 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1928echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1929 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1930echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1931 { (exit 1); exit 1; }; } 1932fi 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958ac_ext=c 1959ac_cpp='$CPP $CPPFLAGS' 1960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1962ac_compiler_gnu=$ac_cv_c_compiler_gnu 1963 1964 1965ac_aux_dir= 1966for ac_dir in . "$srcdir"/.; do 1967 if test -f "$ac_dir/install-sh"; then 1968 ac_aux_dir=$ac_dir 1969 ac_install_sh="$ac_aux_dir/install-sh -c" 1970 break 1971 elif test -f "$ac_dir/install.sh"; then 1972 ac_aux_dir=$ac_dir 1973 ac_install_sh="$ac_aux_dir/install.sh -c" 1974 break 1975 elif test -f "$ac_dir/shtool"; then 1976 ac_aux_dir=$ac_dir 1977 ac_install_sh="$ac_aux_dir/shtool install -c" 1978 break 1979 fi 1980done 1981if test -z "$ac_aux_dir"; then 1982 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5 1983echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;} 1984 { (exit 1); exit 1; }; } 1985fi 1986 1987# These three variables are undocumented and unsupported, 1988# and are intended to be withdrawn in a future Autoconf release. 1989# They can cause serious problems if a builder's source tree is in a directory 1990# whose full name contains unusual characters. 1991ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1992ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1993ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1994 1995 1996 1997am__api_version="1.9" 1998# Find a good install program. We prefer a C program (faster), 1999# so one script is as good as another. But avoid the broken or 2000# incompatible versions: 2001# SysV /etc/install, /usr/sbin/install 2002# SunOS /usr/etc/install 2003# IRIX /sbin/install 2004# AIX /bin/install 2005# AmigaOS /C/install, which installs bootblocks on floppy discs 2006# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2007# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2008# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2009# OS/2's system install, which has a completely different semantic 2010# ./install, which can be erroneously created by make from ./install.sh. 2011{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2012echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 2013if test -z "$INSTALL"; then 2014if test "${ac_cv_path_install+set}" = set; then 2015 echo $ECHO_N "(cached) $ECHO_C" >&6 2016else 2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2018for as_dir in $PATH 2019do 2020 IFS=$as_save_IFS 2021 test -z "$as_dir" && as_dir=. 2022 # Account for people who put trailing slashes in PATH elements. 2023case $as_dir/ in 2024 ./ | .// | /cC/* | \ 2025 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2026 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2027 /usr/ucb/* ) ;; 2028 *) 2029 # OSF1 and SCO ODT 3.0 have their own names for install. 2030 # Don't use installbsd from OSF since it installs stuff as root 2031 # by default. 2032 for ac_prog in ginstall scoinst install; do 2033 for ac_exec_ext in '' $ac_executable_extensions; do 2034 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then 2035 if test $ac_prog = install && 2036 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2037 # AIX install. It has an incompatible calling convention. 2038 : 2039 elif test $ac_prog = install && 2040 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2041 # program-specific install script used by HP pwplus--don't use. 2042 : 2043 else 2044 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2045 break 3 2046 fi 2047 fi 2048 done 2049 done 2050 ;; 2051esac 2052done 2053IFS=$as_save_IFS 2054 2055 2056fi 2057 if test "${ac_cv_path_install+set}" = set; then 2058 INSTALL=$ac_cv_path_install 2059 else 2060 # As a last resort, use the slow shell script. Don't cache a 2061 # value for INSTALL within a source directory, because that will 2062 # break other packages using the cache if that directory is 2063 # removed, or if the value is a relative name. 2064 INSTALL=$ac_install_sh 2065 fi 2066fi 2067{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2068echo "${ECHO_T}$INSTALL" >&6; } 2069 2070# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2071# It thinks the first close brace ends the variable substitution. 2072test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2073 2074test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2075 2076test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2077 2078{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2079echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } 2080# Just in case 2081sleep 1 2082echo timestamp > conftest.file 2083# Do `set' in a subshell so we don't clobber the current shell's 2084# arguments. Must try -L first in case configure is actually a 2085# symlink; some systems play weird games with the mod time of symlinks 2086# (eg FreeBSD returns the mod time of the symlink's containing 2087# directory). 2088if ( 2089 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2090 if test "$*" = "X"; then 2091 # -L didn't work. 2092 set X `ls -t $srcdir/configure conftest.file` 2093 fi 2094 rm -f conftest.file 2095 if test "$*" != "X $srcdir/configure conftest.file" \ 2096 && test "$*" != "X conftest.file $srcdir/configure"; then 2097 2098 # If neither matched, then we have a broken ls. This can happen 2099 # if, for instance, CONFIG_SHELL is bash and it inherits a 2100 # broken ls alias from the environment. This has actually 2101 # happened. Such a system could not be considered "sane". 2102 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2103alias in your environment" >&5 2104echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2105alias in your environment" >&2;} 2106 { (exit 1); exit 1; }; } 2107 fi 2108 2109 test "$2" = conftest.file 2110 ) 2111then 2112 # Ok. 2113 : 2114else 2115 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2116Check your system clock" >&5 2117echo "$as_me: error: newly created file is older than distributed files! 2118Check your system clock" >&2;} 2119 { (exit 1); exit 1; }; } 2120fi 2121{ echo "$as_me:$LINENO: result: yes" >&5 2122echo "${ECHO_T}yes" >&6; } 2123test "$program_prefix" != NONE && 2124 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2125# Use a double $ so make ignores it. 2126test "$program_suffix" != NONE && 2127 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2128# Double any \ or $. echo might interpret backslashes. 2129# By default was `s,x,x', remove it if useless. 2130cat <<\_ACEOF >conftest.sed 2131s/[\\$]/&&/g;s/;s,x,x,$// 2132_ACEOF 2133program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2134rm -f conftest.sed 2135 2136# expand $ac_aux_dir to an absolute path 2137am_aux_dir=`cd $ac_aux_dir && pwd` 2138 2139test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2140# Use eval to expand $SHELL 2141if eval "$MISSING --run true"; then 2142 am_missing_run="$MISSING --run " 2143else 2144 am_missing_run= 2145 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2146echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2147fi 2148 2149if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2150 # We used to keeping the `.' as first argument, in order to 2151 # allow $(mkdir_p) to be used without argument. As in 2152 # $(mkdir_p) $(somedir) 2153 # where $(somedir) is conditionally defined. However this is wrong 2154 # for two reasons: 2155 # 1. if the package is installed by a user who cannot write `.' 2156 # make install will fail, 2157 # 2. the above comment should most certainly read 2158 # $(mkdir_p) $(DESTDIR)$(somedir) 2159 # so it does not work when $(somedir) is undefined and 2160 # $(DESTDIR) is not. 2161 # To support the latter case, we have to write 2162 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2163 # so the `.' trick is pointless. 2164 mkdir_p='mkdir -p --' 2165else 2166 # On NextStep and OpenStep, the `mkdir' command does not 2167 # recognize any option. It will interpret all options as 2168 # directories to create, and then abort because `.' already 2169 # exists. 2170 for d in ./-p ./--version; 2171 do 2172 test -d $d && rmdir $d 2173 done 2174 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2175 if test -f "$ac_aux_dir/mkinstalldirs"; then 2176 mkdir_p='$(mkinstalldirs)' 2177 else 2178 mkdir_p='$(install_sh) -d' 2179 fi 2180fi 2181 2182for ac_prog in gawk mawk nawk awk 2183do 2184 # Extract the first word of "$ac_prog", so it can be a program name with args. 2185set dummy $ac_prog; ac_word=$2 2186{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2188if test "${ac_cv_prog_AWK+set}" = set; then 2189 echo $ECHO_N "(cached) $ECHO_C" >&6 2190else 2191 if test -n "$AWK"; then 2192 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2193else 2194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2195for as_dir in $PATH 2196do 2197 IFS=$as_save_IFS 2198 test -z "$as_dir" && as_dir=. 2199 for ac_exec_ext in '' $ac_executable_extensions; do 2200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2201 ac_cv_prog_AWK="$ac_prog" 2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2203 break 2 2204 fi 2205done 2206done 2207IFS=$as_save_IFS 2208 2209fi 2210fi 2211AWK=$ac_cv_prog_AWK 2212if test -n "$AWK"; then 2213 { echo "$as_me:$LINENO: result: $AWK" >&5 2214echo "${ECHO_T}$AWK" >&6; } 2215else 2216 { echo "$as_me:$LINENO: result: no" >&5 2217echo "${ECHO_T}no" >&6; } 2218fi 2219 2220 2221 test -n "$AWK" && break 2222done 2223 2224{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2225echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2226set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2227if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2228 echo $ECHO_N "(cached) $ECHO_C" >&6 2229else 2230 cat >conftest.make <<\_ACEOF 2231SHELL = /bin/sh 2232all: 2233 @echo '@@@%%%=$(MAKE)=@@@%%%' 2234_ACEOF 2235# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2236case `${MAKE-make} -f conftest.make 2>/dev/null` in 2237 *@@@%%%=?*=@@@%%%*) 2238 eval ac_cv_prog_make_${ac_make}_set=yes;; 2239 *) 2240 eval ac_cv_prog_make_${ac_make}_set=no;; 2241esac 2242rm -f conftest.make 2243fi 2244if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2245 { echo "$as_me:$LINENO: result: yes" >&5 2246echo "${ECHO_T}yes" >&6; } 2247 SET_MAKE= 2248else 2249 { echo "$as_me:$LINENO: result: no" >&5 2250echo "${ECHO_T}no" >&6; } 2251 SET_MAKE="MAKE=${MAKE-make}" 2252fi 2253 2254rm -rf .tst 2>/dev/null 2255mkdir .tst 2>/dev/null 2256if test -d .tst; then 2257 am__leading_dot=. 2258else 2259 am__leading_dot=_ 2260fi 2261rmdir .tst 2>/dev/null 2262 2263# Check whether --enable-pretty-cmds was given. 2264if test "${enable_pretty_cmds+set}" = set; then 2265 enableval=$enable_pretty_cmds; 2266fi 2267 2268AMSHOWCMDSAT='' 2269AMDEPSHOWCMDSAT='' 2270AMPRETTYECHO=true 2271AMCMDECHO=echo 2272if test "x$enable_pretty_cmds" == xyes; 2273then 2274 AMSHOWCMDSAT='@' 2275 test x$enable_dependency_tracking == xno && AMDEPSHOWCMDSAT='@' 2276 AMPRETTYECHO=echo 2277 AMCMDECHO=true 2278 LT_QUIET='--quiet' 2279fi 2280 2281 2282 2283 2284 2285 2286# test to see if srcdir already configured 2287if test "`cd $srcdir && pwd`" != "`pwd`" && 2288 test -f $srcdir/config.status; then 2289 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2290echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2291 { (exit 1); exit 1; }; } 2292fi 2293 2294# test whether we have cygpath 2295if test -z "$CYGPATH_W"; then 2296 if (cygpath --version) >/dev/null 2>/dev/null; then 2297 CYGPATH_W='cygpath -w' 2298 else 2299 CYGPATH_W=echo 2300 fi 2301fi 2302 2303 2304# Define the identity of the package. 2305 PACKAGE='libXft' 2306 VERSION='2.1.12' 2307 2308 2309cat >>confdefs.h <<_ACEOF 2310#define PACKAGE "$PACKAGE" 2311_ACEOF 2312 2313 2314cat >>confdefs.h <<_ACEOF 2315#define VERSION "$VERSION" 2316_ACEOF 2317 2318# Some tools Automake needs. 2319 2320ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2321 2322 2323AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2324 2325 2326AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2327 2328 2329AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2330 2331 2332MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2333 2334install_sh=${install_sh-"$am_aux_dir/install-sh"} 2335 2336# Installed binaries are usually stripped using `strip' when the user 2337# run `make install-strip'. However `strip' might not be the right 2338# tool to use in cross-compilation environments, therefore Automake 2339# will honor the `STRIP' environment variable to overrule this program. 2340if test "$cross_compiling" != no; then 2341 if test -n "$ac_tool_prefix"; then 2342 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2343set dummy ${ac_tool_prefix}strip; ac_word=$2 2344{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2346if test "${ac_cv_prog_STRIP+set}" = set; then 2347 echo $ECHO_N "(cached) $ECHO_C" >&6 2348else 2349 if test -n "$STRIP"; then 2350 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2351else 2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2353for as_dir in $PATH 2354do 2355 IFS=$as_save_IFS 2356 test -z "$as_dir" && as_dir=. 2357 for ac_exec_ext in '' $ac_executable_extensions; do 2358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2359 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2361 break 2 2362 fi 2363done 2364done 2365IFS=$as_save_IFS 2366 2367fi 2368fi 2369STRIP=$ac_cv_prog_STRIP 2370if test -n "$STRIP"; then 2371 { echo "$as_me:$LINENO: result: $STRIP" >&5 2372echo "${ECHO_T}$STRIP" >&6; } 2373else 2374 { echo "$as_me:$LINENO: result: no" >&5 2375echo "${ECHO_T}no" >&6; } 2376fi 2377 2378 2379fi 2380if test -z "$ac_cv_prog_STRIP"; then 2381 ac_ct_STRIP=$STRIP 2382 # Extract the first word of "strip", so it can be a program name with args. 2383set dummy strip; ac_word=$2 2384{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2386if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2387 echo $ECHO_N "(cached) $ECHO_C" >&6 2388else 2389 if test -n "$ac_ct_STRIP"; then 2390 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2391else 2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2393for as_dir in $PATH 2394do 2395 IFS=$as_save_IFS 2396 test -z "$as_dir" && as_dir=. 2397 for ac_exec_ext in '' $ac_executable_extensions; do 2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2399 ac_cv_prog_ac_ct_STRIP="strip" 2400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2401 break 2 2402 fi 2403done 2404done 2405IFS=$as_save_IFS 2406 2407fi 2408fi 2409ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2410if test -n "$ac_ct_STRIP"; then 2411 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2412echo "${ECHO_T}$ac_ct_STRIP" >&6; } 2413else 2414 { echo "$as_me:$LINENO: result: no" >&5 2415echo "${ECHO_T}no" >&6; } 2416fi 2417 2418 if test "x$ac_ct_STRIP" = x; then 2419 STRIP=":" 2420 else 2421 case $cross_compiling:$ac_tool_warned in 2422yes:) 2423{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2424whose name does not start with the host triplet. If you think this 2425configuration is useful to you, please write to autoconf@gnu.org." >&5 2426echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2427whose name does not start with the host triplet. If you think this 2428configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2429ac_tool_warned=yes ;; 2430esac 2431 STRIP=$ac_ct_STRIP 2432 fi 2433else 2434 STRIP="$ac_cv_prog_STRIP" 2435fi 2436 2437fi 2438INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2439 2440# We need awk for the "check" target. The system "awk" is bad on 2441# some platforms. 2442# Always define AMTAR for backward compatibility. 2443 2444AMTAR=${AMTAR-"${am_missing_run}tar"} 2445 2446am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2447 2448 2449 2450 2451 2452 2453{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2454echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } 2455 # Check whether --enable-maintainer-mode was given. 2456if test "${enable_maintainer_mode+set}" = set; then 2457 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2458else 2459 USE_MAINTAINER_MODE=no 2460fi 2461 2462 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2463echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } 2464 2465 2466if test $USE_MAINTAINER_MODE = yes; then 2467 MAINTAINER_MODE_TRUE= 2468 MAINTAINER_MODE_FALSE='#' 2469else 2470 MAINTAINER_MODE_TRUE='#' 2471 MAINTAINER_MODE_FALSE= 2472fi 2473 2474 MAINT=$MAINTAINER_MODE_TRUE 2475 2476 2477 2478ac_config_headers="$ac_config_headers config.h" 2479 2480 2481# checks for progs 2482ac_ext=c 2483ac_cpp='$CPP $CPPFLAGS' 2484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2486ac_compiler_gnu=$ac_cv_c_compiler_gnu 2487if test -n "$ac_tool_prefix"; then 2488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2489set dummy ${ac_tool_prefix}gcc; ac_word=$2 2490{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2492if test "${ac_cv_prog_CC+set}" = set; then 2493 echo $ECHO_N "(cached) $ECHO_C" >&6 2494else 2495 if test -n "$CC"; then 2496 ac_cv_prog_CC="$CC" # Let the user override the test. 2497else 2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2499for as_dir in $PATH 2500do 2501 IFS=$as_save_IFS 2502 test -z "$as_dir" && as_dir=. 2503 for ac_exec_ext in '' $ac_executable_extensions; do 2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2505 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2507 break 2 2508 fi 2509done 2510done 2511IFS=$as_save_IFS 2512 2513fi 2514fi 2515CC=$ac_cv_prog_CC 2516if test -n "$CC"; then 2517 { echo "$as_me:$LINENO: result: $CC" >&5 2518echo "${ECHO_T}$CC" >&6; } 2519else 2520 { echo "$as_me:$LINENO: result: no" >&5 2521echo "${ECHO_T}no" >&6; } 2522fi 2523 2524 2525fi 2526if test -z "$ac_cv_prog_CC"; then 2527 ac_ct_CC=$CC 2528 # Extract the first word of "gcc", so it can be a program name with args. 2529set dummy gcc; ac_word=$2 2530{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2532if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2533 echo $ECHO_N "(cached) $ECHO_C" >&6 2534else 2535 if test -n "$ac_ct_CC"; then 2536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2537else 2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2539for as_dir in $PATH 2540do 2541 IFS=$as_save_IFS 2542 test -z "$as_dir" && as_dir=. 2543 for ac_exec_ext in '' $ac_executable_extensions; do 2544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2545 ac_cv_prog_ac_ct_CC="gcc" 2546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2547 break 2 2548 fi 2549done 2550done 2551IFS=$as_save_IFS 2552 2553fi 2554fi 2555ac_ct_CC=$ac_cv_prog_ac_ct_CC 2556if test -n "$ac_ct_CC"; then 2557 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2558echo "${ECHO_T}$ac_ct_CC" >&6; } 2559else 2560 { echo "$as_me:$LINENO: result: no" >&5 2561echo "${ECHO_T}no" >&6; } 2562fi 2563 2564 if test "x$ac_ct_CC" = x; then 2565 CC="" 2566 else 2567 case $cross_compiling:$ac_tool_warned in 2568yes:) 2569{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2570whose name does not start with the host triplet. If you think this 2571configuration is useful to you, please write to autoconf@gnu.org." >&5 2572echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2573whose name does not start with the host triplet. If you think this 2574configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2575ac_tool_warned=yes ;; 2576esac 2577 CC=$ac_ct_CC 2578 fi 2579else 2580 CC="$ac_cv_prog_CC" 2581fi 2582 2583if test -z "$CC"; then 2584 if test -n "$ac_tool_prefix"; then 2585 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2586set dummy ${ac_tool_prefix}cc; ac_word=$2 2587{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2589if test "${ac_cv_prog_CC+set}" = set; then 2590 echo $ECHO_N "(cached) $ECHO_C" >&6 2591else 2592 if test -n "$CC"; then 2593 ac_cv_prog_CC="$CC" # Let the user override the test. 2594else 2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2596for as_dir in $PATH 2597do 2598 IFS=$as_save_IFS 2599 test -z "$as_dir" && as_dir=. 2600 for ac_exec_ext in '' $ac_executable_extensions; do 2601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2602 ac_cv_prog_CC="${ac_tool_prefix}cc" 2603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2604 break 2 2605 fi 2606done 2607done 2608IFS=$as_save_IFS 2609 2610fi 2611fi 2612CC=$ac_cv_prog_CC 2613if test -n "$CC"; then 2614 { echo "$as_me:$LINENO: result: $CC" >&5 2615echo "${ECHO_T}$CC" >&6; } 2616else 2617 { echo "$as_me:$LINENO: result: no" >&5 2618echo "${ECHO_T}no" >&6; } 2619fi 2620 2621 2622 fi 2623fi 2624if test -z "$CC"; then 2625 # Extract the first word of "cc", so it can be a program name with args. 2626set dummy cc; ac_word=$2 2627{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2629if test "${ac_cv_prog_CC+set}" = set; then 2630 echo $ECHO_N "(cached) $ECHO_C" >&6 2631else 2632 if test -n "$CC"; then 2633 ac_cv_prog_CC="$CC" # Let the user override the test. 2634else 2635 ac_prog_rejected=no 2636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2637for as_dir in $PATH 2638do 2639 IFS=$as_save_IFS 2640 test -z "$as_dir" && as_dir=. 2641 for ac_exec_ext in '' $ac_executable_extensions; do 2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2643 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2644 ac_prog_rejected=yes 2645 continue 2646 fi 2647 ac_cv_prog_CC="cc" 2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2649 break 2 2650 fi 2651done 2652done 2653IFS=$as_save_IFS 2654 2655if test $ac_prog_rejected = yes; then 2656 # We found a bogon in the path, so make sure we never use it. 2657 set dummy $ac_cv_prog_CC 2658 shift 2659 if test $# != 0; then 2660 # We chose a different compiler from the bogus one. 2661 # However, it has the same basename, so the bogon will be chosen 2662 # first if we set CC to just the basename; use the full file name. 2663 shift 2664 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2665 fi 2666fi 2667fi 2668fi 2669CC=$ac_cv_prog_CC 2670if test -n "$CC"; then 2671 { echo "$as_me:$LINENO: result: $CC" >&5 2672echo "${ECHO_T}$CC" >&6; } 2673else 2674 { echo "$as_me:$LINENO: result: no" >&5 2675echo "${ECHO_T}no" >&6; } 2676fi 2677 2678 2679fi 2680if test -z "$CC"; then 2681 if test -n "$ac_tool_prefix"; then 2682 for ac_prog in cl.exe 2683 do 2684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2685set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2686{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2688if test "${ac_cv_prog_CC+set}" = set; then 2689 echo $ECHO_N "(cached) $ECHO_C" >&6 2690else 2691 if test -n "$CC"; then 2692 ac_cv_prog_CC="$CC" # Let the user override the test. 2693else 2694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2695for as_dir in $PATH 2696do 2697 IFS=$as_save_IFS 2698 test -z "$as_dir" && as_dir=. 2699 for ac_exec_ext in '' $ac_executable_extensions; do 2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2701 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2703 break 2 2704 fi 2705done 2706done 2707IFS=$as_save_IFS 2708 2709fi 2710fi 2711CC=$ac_cv_prog_CC 2712if test -n "$CC"; then 2713 { echo "$as_me:$LINENO: result: $CC" >&5 2714echo "${ECHO_T}$CC" >&6; } 2715else 2716 { echo "$as_me:$LINENO: result: no" >&5 2717echo "${ECHO_T}no" >&6; } 2718fi 2719 2720 2721 test -n "$CC" && break 2722 done 2723fi 2724if test -z "$CC"; then 2725 ac_ct_CC=$CC 2726 for ac_prog in cl.exe 2727do 2728 # Extract the first word of "$ac_prog", so it can be a program name with args. 2729set dummy $ac_prog; ac_word=$2 2730{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2732if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2733 echo $ECHO_N "(cached) $ECHO_C" >&6 2734else 2735 if test -n "$ac_ct_CC"; then 2736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2737else 2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2739for as_dir in $PATH 2740do 2741 IFS=$as_save_IFS 2742 test -z "$as_dir" && as_dir=. 2743 for ac_exec_ext in '' $ac_executable_extensions; do 2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 2745 ac_cv_prog_ac_ct_CC="$ac_prog" 2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2747 break 2 2748 fi 2749done 2750done 2751IFS=$as_save_IFS 2752 2753fi 2754fi 2755ac_ct_CC=$ac_cv_prog_ac_ct_CC 2756if test -n "$ac_ct_CC"; then 2757 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2758echo "${ECHO_T}$ac_ct_CC" >&6; } 2759else 2760 { echo "$as_me:$LINENO: result: no" >&5 2761echo "${ECHO_T}no" >&6; } 2762fi 2763 2764 2765 test -n "$ac_ct_CC" && break 2766done 2767 2768 if test "x$ac_ct_CC" = x; then 2769 CC="" 2770 else 2771 case $cross_compiling:$ac_tool_warned in 2772yes:) 2773{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2774whose name does not start with the host triplet. If you think this 2775configuration is useful to you, please write to autoconf@gnu.org." >&5 2776echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2777whose name does not start with the host triplet. If you think this 2778configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2779ac_tool_warned=yes ;; 2780esac 2781 CC=$ac_ct_CC 2782 fi 2783fi 2784 2785fi 2786 2787 2788test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2789See \`config.log' for more details." >&5 2790echo "$as_me: error: no acceptable C compiler found in \$PATH 2791See \`config.log' for more details." >&2;} 2792 { (exit 1); exit 1; }; } 2793 2794# Provide some information about the compiler. 2795echo "$as_me:$LINENO: checking for C compiler version" >&5 2796ac_compiler=`set X $ac_compile; echo $2` 2797{ (ac_try="$ac_compiler --version >&5" 2798case "(($ac_try" in 2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2800 *) ac_try_echo=$ac_try;; 2801esac 2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2803 (eval "$ac_compiler --version >&5") 2>&5 2804 ac_status=$? 2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2806 (exit $ac_status); } 2807{ (ac_try="$ac_compiler -v >&5" 2808case "(($ac_try" in 2809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2810 *) ac_try_echo=$ac_try;; 2811esac 2812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2813 (eval "$ac_compiler -v >&5") 2>&5 2814 ac_status=$? 2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2816 (exit $ac_status); } 2817{ (ac_try="$ac_compiler -V >&5" 2818case "(($ac_try" in 2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2820 *) ac_try_echo=$ac_try;; 2821esac 2822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2823 (eval "$ac_compiler -V >&5") 2>&5 2824 ac_status=$? 2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2826 (exit $ac_status); } 2827 2828cat >conftest.$ac_ext <<_ACEOF 2829/* confdefs.h. */ 2830_ACEOF 2831cat confdefs.h >>conftest.$ac_ext 2832cat >>conftest.$ac_ext <<_ACEOF 2833/* end confdefs.h. */ 2834 2835int 2836main () 2837{ 2838 2839 ; 2840 return 0; 2841} 2842_ACEOF 2843ac_clean_files_save=$ac_clean_files 2844ac_clean_files="$ac_clean_files a.out a.exe b.out" 2845# Try to create an executable without -o first, disregard a.out. 2846# It will help us diagnose broken compilers, and finding out an intuition 2847# of exeext. 2848{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2849echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2850ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2851# 2852# List of possible output files, starting from the most likely. 2853# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2854# only as a last resort. b.out is created by i960 compilers. 2855ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2856# 2857# The IRIX 6 linker writes into existing files which may not be 2858# executable, retaining their permissions. Remove them first so a 2859# subsequent execution test works. 2860ac_rmfiles= 2861for ac_file in $ac_files 2862do 2863 case $ac_file in 2864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2865 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2866 esac 2867done 2868rm -f $ac_rmfiles 2869 2870if { (ac_try="$ac_link_default" 2871case "(($ac_try" in 2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2873 *) ac_try_echo=$ac_try;; 2874esac 2875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2876 (eval "$ac_link_default") 2>&5 2877 ac_status=$? 2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2879 (exit $ac_status); }; then 2880 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2881# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2882# in a Makefile. We should not override ac_cv_exeext if it was cached, 2883# so that the user can short-circuit this test for compilers unknown to 2884# Autoconf. 2885for ac_file in $ac_files 2886do 2887 test -f "$ac_file" || continue 2888 case $ac_file in 2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2890 ;; 2891 [ab].out ) 2892 # We found the default executable, but exeext='' is most 2893 # certainly right. 2894 break;; 2895 *.* ) 2896 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2897 then :; else 2898 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2899 fi 2900 # We set ac_cv_exeext here because the later test for it is not 2901 # safe: cross compilers may not add the suffix if given an `-o' 2902 # argument, so we may need to know it at that point already. 2903 # Even if this section looks crufty: it has the advantage of 2904 # actually working. 2905 break;; 2906 * ) 2907 break;; 2908 esac 2909done 2910test "$ac_cv_exeext" = no && ac_cv_exeext= 2911 2912else 2913 echo "$as_me: failed program was:" >&5 2914sed 's/^/| /' conftest.$ac_ext >&5 2915 2916{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2917See \`config.log' for more details." >&5 2918echo "$as_me: error: C compiler cannot create executables 2919See \`config.log' for more details." >&2;} 2920 { (exit 77); exit 77; }; } 2921fi 2922 2923ac_exeext=$ac_cv_exeext 2924{ echo "$as_me:$LINENO: result: $ac_file" >&5 2925echo "${ECHO_T}$ac_file" >&6; } 2926 2927# Check that the compiler produces executables we can run. If not, either 2928# the compiler is broken, or we cross compile. 2929{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2930echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2931# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2932# If not cross compiling, check that we can run a simple program. 2933if test "$cross_compiling" != yes; then 2934 if { ac_try='./$ac_file' 2935 { (case "(($ac_try" in 2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2937 *) ac_try_echo=$ac_try;; 2938esac 2939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2940 (eval "$ac_try") 2>&5 2941 ac_status=$? 2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2943 (exit $ac_status); }; }; then 2944 cross_compiling=no 2945 else 2946 if test "$cross_compiling" = maybe; then 2947 cross_compiling=yes 2948 else 2949 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2950If you meant to cross compile, use \`--host'. 2951See \`config.log' for more details." >&5 2952echo "$as_me: error: cannot run C compiled programs. 2953If you meant to cross compile, use \`--host'. 2954See \`config.log' for more details." >&2;} 2955 { (exit 1); exit 1; }; } 2956 fi 2957 fi 2958fi 2959{ echo "$as_me:$LINENO: result: yes" >&5 2960echo "${ECHO_T}yes" >&6; } 2961 2962rm -f a.out a.exe conftest$ac_cv_exeext b.out 2963ac_clean_files=$ac_clean_files_save 2964# Check that the compiler produces executables we can run. If not, either 2965# the compiler is broken, or we cross compile. 2966{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2967echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2968{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2969echo "${ECHO_T}$cross_compiling" >&6; } 2970 2971{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2972echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2973if { (ac_try="$ac_link" 2974case "(($ac_try" in 2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2976 *) ac_try_echo=$ac_try;; 2977esac 2978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2979 (eval "$ac_link") 2>&5 2980 ac_status=$? 2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2982 (exit $ac_status); }; then 2983 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2984# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2985# work properly (i.e., refer to `conftest.exe'), while it won't with 2986# `rm'. 2987for ac_file in conftest.exe conftest conftest.*; do 2988 test -f "$ac_file" || continue 2989 case $ac_file in 2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2991 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2992 break;; 2993 * ) break;; 2994 esac 2995done 2996else 2997 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2998See \`config.log' for more details." >&5 2999echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3000See \`config.log' for more details." >&2;} 3001 { (exit 1); exit 1; }; } 3002fi 3003 3004rm -f conftest$ac_cv_exeext 3005{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3006echo "${ECHO_T}$ac_cv_exeext" >&6; } 3007 3008rm -f conftest.$ac_ext 3009EXEEXT=$ac_cv_exeext 3010ac_exeext=$EXEEXT 3011{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 3012echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 3013if test "${ac_cv_objext+set}" = set; then 3014 echo $ECHO_N "(cached) $ECHO_C" >&6 3015else 3016 cat >conftest.$ac_ext <<_ACEOF 3017/* confdefs.h. */ 3018_ACEOF 3019cat confdefs.h >>conftest.$ac_ext 3020cat >>conftest.$ac_ext <<_ACEOF 3021/* end confdefs.h. */ 3022 3023int 3024main () 3025{ 3026 3027 ; 3028 return 0; 3029} 3030_ACEOF 3031rm -f conftest.o conftest.obj 3032if { (ac_try="$ac_compile" 3033case "(($ac_try" in 3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3035 *) ac_try_echo=$ac_try;; 3036esac 3037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3038 (eval "$ac_compile") 2>&5 3039 ac_status=$? 3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3041 (exit $ac_status); }; then 3042 for ac_file in conftest.o conftest.obj conftest.*; do 3043 test -f "$ac_file" || continue; 3044 case $ac_file in 3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3046 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3047 break;; 3048 esac 3049done 3050else 3051 echo "$as_me: failed program was:" >&5 3052sed 's/^/| /' conftest.$ac_ext >&5 3053 3054{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3055See \`config.log' for more details." >&5 3056echo "$as_me: error: cannot compute suffix of object files: cannot compile 3057See \`config.log' for more details." >&2;} 3058 { (exit 1); exit 1; }; } 3059fi 3060 3061rm -f conftest.$ac_cv_objext conftest.$ac_ext 3062fi 3063{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3064echo "${ECHO_T}$ac_cv_objext" >&6; } 3065OBJEXT=$ac_cv_objext 3066ac_objext=$OBJEXT 3067{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3068echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3069if test "${ac_cv_c_compiler_gnu+set}" = set; then 3070 echo $ECHO_N "(cached) $ECHO_C" >&6 3071else 3072 cat >conftest.$ac_ext <<_ACEOF 3073/* confdefs.h. */ 3074_ACEOF 3075cat confdefs.h >>conftest.$ac_ext 3076cat >>conftest.$ac_ext <<_ACEOF 3077/* end confdefs.h. */ 3078 3079int 3080main () 3081{ 3082#ifndef __GNUC__ 3083 choke me 3084#endif 3085 3086 ; 3087 return 0; 3088} 3089_ACEOF 3090rm -f conftest.$ac_objext 3091if { (ac_try="$ac_compile" 3092case "(($ac_try" in 3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094 *) ac_try_echo=$ac_try;; 3095esac 3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3097 (eval "$ac_compile") 2>conftest.er1 3098 ac_status=$? 3099 grep -v '^ *+' conftest.er1 >conftest.err 3100 rm -f conftest.er1 3101 cat conftest.err >&5 3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3103 (exit $ac_status); } && 3104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3105 { (case "(($ac_try" in 3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3107 *) ac_try_echo=$ac_try;; 3108esac 3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3110 (eval "$ac_try") 2>&5 3111 ac_status=$? 3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3113 (exit $ac_status); }; } && 3114 { ac_try='test -s conftest.$ac_objext' 3115 { (case "(($ac_try" in 3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3117 *) ac_try_echo=$ac_try;; 3118esac 3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3120 (eval "$ac_try") 2>&5 3121 ac_status=$? 3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); }; }; then 3124 ac_compiler_gnu=yes 3125else 3126 echo "$as_me: failed program was:" >&5 3127sed 's/^/| /' conftest.$ac_ext >&5 3128 3129 ac_compiler_gnu=no 3130fi 3131 3132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3133ac_cv_c_compiler_gnu=$ac_compiler_gnu 3134 3135fi 3136{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3137echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3138GCC=`test $ac_compiler_gnu = yes && echo yes` 3139ac_test_CFLAGS=${CFLAGS+set} 3140ac_save_CFLAGS=$CFLAGS 3141{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3142echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3143if test "${ac_cv_prog_cc_g+set}" = set; then 3144 echo $ECHO_N "(cached) $ECHO_C" >&6 3145else 3146 ac_save_c_werror_flag=$ac_c_werror_flag 3147 ac_c_werror_flag=yes 3148 ac_cv_prog_cc_g=no 3149 CFLAGS="-g" 3150 cat >conftest.$ac_ext <<_ACEOF 3151/* confdefs.h. */ 3152_ACEOF 3153cat confdefs.h >>conftest.$ac_ext 3154cat >>conftest.$ac_ext <<_ACEOF 3155/* end confdefs.h. */ 3156 3157int 3158main () 3159{ 3160 3161 ; 3162 return 0; 3163} 3164_ACEOF 3165rm -f conftest.$ac_objext 3166if { (ac_try="$ac_compile" 3167case "(($ac_try" in 3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3169 *) ac_try_echo=$ac_try;; 3170esac 3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3172 (eval "$ac_compile") 2>conftest.er1 3173 ac_status=$? 3174 grep -v '^ *+' conftest.er1 >conftest.err 3175 rm -f conftest.er1 3176 cat conftest.err >&5 3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3178 (exit $ac_status); } && 3179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3180 { (case "(($ac_try" in 3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3182 *) ac_try_echo=$ac_try;; 3183esac 3184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3185 (eval "$ac_try") 2>&5 3186 ac_status=$? 3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3188 (exit $ac_status); }; } && 3189 { ac_try='test -s conftest.$ac_objext' 3190 { (case "(($ac_try" in 3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3192 *) ac_try_echo=$ac_try;; 3193esac 3194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3195 (eval "$ac_try") 2>&5 3196 ac_status=$? 3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 (exit $ac_status); }; }; then 3199 ac_cv_prog_cc_g=yes 3200else 3201 echo "$as_me: failed program was:" >&5 3202sed 's/^/| /' conftest.$ac_ext >&5 3203 3204 CFLAGS="" 3205 cat >conftest.$ac_ext <<_ACEOF 3206/* confdefs.h. */ 3207_ACEOF 3208cat confdefs.h >>conftest.$ac_ext 3209cat >>conftest.$ac_ext <<_ACEOF 3210/* end confdefs.h. */ 3211 3212int 3213main () 3214{ 3215 3216 ; 3217 return 0; 3218} 3219_ACEOF 3220rm -f conftest.$ac_objext 3221if { (ac_try="$ac_compile" 3222case "(($ac_try" in 3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3224 *) ac_try_echo=$ac_try;; 3225esac 3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3227 (eval "$ac_compile") 2>conftest.er1 3228 ac_status=$? 3229 grep -v '^ *+' conftest.er1 >conftest.err 3230 rm -f conftest.er1 3231 cat conftest.err >&5 3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3233 (exit $ac_status); } && 3234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3235 { (case "(($ac_try" in 3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3237 *) ac_try_echo=$ac_try;; 3238esac 3239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3240 (eval "$ac_try") 2>&5 3241 ac_status=$? 3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3243 (exit $ac_status); }; } && 3244 { ac_try='test -s conftest.$ac_objext' 3245 { (case "(($ac_try" in 3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3247 *) ac_try_echo=$ac_try;; 3248esac 3249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3250 (eval "$ac_try") 2>&5 3251 ac_status=$? 3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3253 (exit $ac_status); }; }; then 3254 : 3255else 3256 echo "$as_me: failed program was:" >&5 3257sed 's/^/| /' conftest.$ac_ext >&5 3258 3259 ac_c_werror_flag=$ac_save_c_werror_flag 3260 CFLAGS="-g" 3261 cat >conftest.$ac_ext <<_ACEOF 3262/* confdefs.h. */ 3263_ACEOF 3264cat confdefs.h >>conftest.$ac_ext 3265cat >>conftest.$ac_ext <<_ACEOF 3266/* end confdefs.h. */ 3267 3268int 3269main () 3270{ 3271 3272 ; 3273 return 0; 3274} 3275_ACEOF 3276rm -f conftest.$ac_objext 3277if { (ac_try="$ac_compile" 3278case "(($ac_try" in 3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3280 *) ac_try_echo=$ac_try;; 3281esac 3282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3283 (eval "$ac_compile") 2>conftest.er1 3284 ac_status=$? 3285 grep -v '^ *+' conftest.er1 >conftest.err 3286 rm -f conftest.er1 3287 cat conftest.err >&5 3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3289 (exit $ac_status); } && 3290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3291 { (case "(($ac_try" in 3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3293 *) ac_try_echo=$ac_try;; 3294esac 3295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3296 (eval "$ac_try") 2>&5 3297 ac_status=$? 3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3299 (exit $ac_status); }; } && 3300 { ac_try='test -s conftest.$ac_objext' 3301 { (case "(($ac_try" in 3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3303 *) ac_try_echo=$ac_try;; 3304esac 3305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3306 (eval "$ac_try") 2>&5 3307 ac_status=$? 3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3309 (exit $ac_status); }; }; then 3310 ac_cv_prog_cc_g=yes 3311else 3312 echo "$as_me: failed program was:" >&5 3313sed 's/^/| /' conftest.$ac_ext >&5 3314 3315 3316fi 3317 3318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3319fi 3320 3321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3322fi 3323 3324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3325 ac_c_werror_flag=$ac_save_c_werror_flag 3326fi 3327{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3328echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3329if test "$ac_test_CFLAGS" = set; then 3330 CFLAGS=$ac_save_CFLAGS 3331elif test $ac_cv_prog_cc_g = yes; then 3332 if test "$GCC" = yes; then 3333 CFLAGS="-g -O2" 3334 else 3335 CFLAGS="-g" 3336 fi 3337else 3338 if test "$GCC" = yes; then 3339 CFLAGS="-O2" 3340 else 3341 CFLAGS= 3342 fi 3343fi 3344{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3345echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3346if test "${ac_cv_prog_cc_c89+set}" = set; then 3347 echo $ECHO_N "(cached) $ECHO_C" >&6 3348else 3349 ac_cv_prog_cc_c89=no 3350ac_save_CC=$CC 3351cat >conftest.$ac_ext <<_ACEOF 3352/* confdefs.h. */ 3353_ACEOF 3354cat confdefs.h >>conftest.$ac_ext 3355cat >>conftest.$ac_ext <<_ACEOF 3356/* end confdefs.h. */ 3357#include <stdarg.h> 3358#include <stdio.h> 3359#include <sys/types.h> 3360#include <sys/stat.h> 3361/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3362struct buf { int x; }; 3363FILE * (*rcsopen) (struct buf *, struct stat *, int); 3364static char *e (p, i) 3365 char **p; 3366 int i; 3367{ 3368 return p[i]; 3369} 3370static char *f (char * (*g) (char **, int), char **p, ...) 3371{ 3372 char *s; 3373 va_list v; 3374 va_start (v,p); 3375 s = g (p, va_arg (v,int)); 3376 va_end (v); 3377 return s; 3378} 3379 3380/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3381 function prototypes and stuff, but not '\xHH' hex character constants. 3382 These don't provoke an error unfortunately, instead are silently treated 3383 as 'x'. The following induces an error, until -std is added to get 3384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3385 array size at least. It's necessary to write '\x00'==0 to get something 3386 that's true only with -std. */ 3387int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3388 3389/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3390 inside strings and character constants. */ 3391#define FOO(x) 'x' 3392int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3393 3394int test (int i, double x); 3395struct s1 {int (*f) (int a);}; 3396struct s2 {int (*f) (double a);}; 3397int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3398int argc; 3399char **argv; 3400int 3401main () 3402{ 3403return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3404 ; 3405 return 0; 3406} 3407_ACEOF 3408for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3409 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3410do 3411 CC="$ac_save_CC $ac_arg" 3412 rm -f conftest.$ac_objext 3413if { (ac_try="$ac_compile" 3414case "(($ac_try" in 3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3416 *) ac_try_echo=$ac_try;; 3417esac 3418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3419 (eval "$ac_compile") 2>conftest.er1 3420 ac_status=$? 3421 grep -v '^ *+' conftest.er1 >conftest.err 3422 rm -f conftest.er1 3423 cat conftest.err >&5 3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3425 (exit $ac_status); } && 3426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3427 { (case "(($ac_try" in 3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3429 *) ac_try_echo=$ac_try;; 3430esac 3431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3432 (eval "$ac_try") 2>&5 3433 ac_status=$? 3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3435 (exit $ac_status); }; } && 3436 { ac_try='test -s conftest.$ac_objext' 3437 { (case "(($ac_try" in 3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3439 *) ac_try_echo=$ac_try;; 3440esac 3441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3442 (eval "$ac_try") 2>&5 3443 ac_status=$? 3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3445 (exit $ac_status); }; }; then 3446 ac_cv_prog_cc_c89=$ac_arg 3447else 3448 echo "$as_me: failed program was:" >&5 3449sed 's/^/| /' conftest.$ac_ext >&5 3450 3451 3452fi 3453 3454rm -f core conftest.err conftest.$ac_objext 3455 test "x$ac_cv_prog_cc_c89" != "xno" && break 3456done 3457rm -f conftest.$ac_ext 3458CC=$ac_save_CC 3459 3460fi 3461# AC_CACHE_VAL 3462case "x$ac_cv_prog_cc_c89" in 3463 x) 3464 { echo "$as_me:$LINENO: result: none needed" >&5 3465echo "${ECHO_T}none needed" >&6; } ;; 3466 xno) 3467 { echo "$as_me:$LINENO: result: unsupported" >&5 3468echo "${ECHO_T}unsupported" >&6; } ;; 3469 *) 3470 CC="$CC $ac_cv_prog_cc_c89" 3471 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3472echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3473esac 3474 3475 3476ac_ext=c 3477ac_cpp='$CPP $CPPFLAGS' 3478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3480ac_compiler_gnu=$ac_cv_c_compiler_gnu 3481DEPDIR="${am__leading_dot}deps" 3482 3483ac_config_commands="$ac_config_commands depfiles" 3484 3485 3486am_make=${MAKE-make} 3487cat > confinc << 'END' 3488am__doit: 3489 @echo done 3490.PHONY: am__doit 3491END 3492# If we don't find an include directive, just comment out the code. 3493{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3494echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } 3495am__include="#" 3496am__quote= 3497_am_result=none 3498# First try GNU make style include. 3499echo "include confinc" > confmf 3500# We grep out `Entering directory' and `Leaving directory' 3501# messages which can occur if `w' ends up in MAKEFLAGS. 3502# In particular we don't look at `^make:' because GNU make might 3503# be invoked under some other name (usually "gmake"), in which 3504# case it prints its new name instead of `make'. 3505if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3506 am__include=include 3507 am__quote= 3508 _am_result=GNU 3509fi 3510# Now try BSD make style include. 3511if test "$am__include" = "#"; then 3512 echo '.include "confinc"' > confmf 3513 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3514 am__include=.include 3515 am__quote="\"" 3516 _am_result=BSD 3517 fi 3518fi 3519 3520 3521{ echo "$as_me:$LINENO: result: $_am_result" >&5 3522echo "${ECHO_T}$_am_result" >&6; } 3523rm -f confinc confmf 3524 3525# Check whether --enable-dependency-tracking was given. 3526if test "${enable_dependency_tracking+set}" = set; then 3527 enableval=$enable_dependency_tracking; 3528fi 3529 3530if test "x$enable_dependency_tracking" != xno; then 3531 am_depcomp="$ac_aux_dir/depcomp" 3532 AMDEPBACKSLASH='\' 3533fi 3534 3535 3536if test "x$enable_dependency_tracking" != xno; then 3537 AMDEP_TRUE= 3538 AMDEP_FALSE='#' 3539else 3540 AMDEP_TRUE='#' 3541 AMDEP_FALSE= 3542fi 3543 3544 3545 3546 3547depcc="$CC" am_compiler_list= 3548 3549{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3550echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 3551if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3552 echo $ECHO_N "(cached) $ECHO_C" >&6 3553else 3554 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3555 # We make a subdir and do the tests there. Otherwise we can end up 3556 # making bogus files that we don't know about and never remove. For 3557 # instance it was reported that on HP-UX the gcc test will end up 3558 # making a dummy file named `D' -- because `-MD' means `put the output 3559 # in D'. 3560 mkdir conftest.dir 3561 # Copy depcomp to subdir because otherwise we won't find it if we're 3562 # using a relative directory. 3563 cp "$am_depcomp" conftest.dir 3564 cd conftest.dir 3565 # We will build objects and dependencies in a subdirectory because 3566 # it helps to detect inapplicable dependency modes. For instance 3567 # both Tru64's cc and ICC support -MD to output dependencies as a 3568 # side effect of compilation, but ICC will put the dependencies in 3569 # the current directory while Tru64 will put them in the object 3570 # directory. 3571 mkdir sub 3572 3573 am_cv_CC_dependencies_compiler_type=none 3574 if test "$am_compiler_list" = ""; then 3575 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3576 fi 3577 for depmode in $am_compiler_list; do 3578 # Setup a source with many dependencies, because some compilers 3579 # like to wrap large dependency lists on column 80 (with \), and 3580 # we should not choose a depcomp mode which is confused by this. 3581 # 3582 # We need to recreate these files for each test, as the compiler may 3583 # overwrite some of them when testing with obscure command lines. 3584 # This happens at least with the AIX C compiler. 3585 : > sub/conftest.c 3586 for i in 1 2 3 4 5 6; do 3587 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3588 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3589 # Solaris 8's {/usr,}/bin/sh. 3590 touch sub/conftst$i.h 3591 done 3592 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3593 3594 case $depmode in 3595 nosideeffect) 3596 # after this tag, mechanisms are not by side-effect, so they'll 3597 # only be used when explicitly requested 3598 if test "x$enable_dependency_tracking" = xyes; then 3599 continue 3600 else 3601 break 3602 fi 3603 ;; 3604 none) break ;; 3605 esac 3606 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3607 # mode. It turns out that the SunPro C++ compiler does not properly 3608 # handle `-M -o', and we need to detect this. 3609 if depmode=$depmode \ 3610 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3611 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3612 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3613 >/dev/null 2>conftest.err && 3614 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3615 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3616 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3617 # icc doesn't choke on unknown options, it will just issue warnings 3618 # or remarks (even with -Werror). So we grep stderr for any message 3619 # that says an option was ignored or not supported. 3620 # When given -MP, icc 7.0 and 7.1 complain thusly: 3621 # icc: Command line warning: ignoring option '-M'; no argument required 3622 # The diagnosis changed in icc 8.0: 3623 # icc: Command line remark: option '-MP' not supported 3624 if (grep 'ignoring option' conftest.err || 3625 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3626 am_cv_CC_dependencies_compiler_type=$depmode 3627 break 3628 fi 3629 fi 3630 done 3631 3632 cd .. 3633 rm -rf conftest.dir 3634else 3635 am_cv_CC_dependencies_compiler_type=none 3636fi 3637 3638fi 3639{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3640echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } 3641CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3642 3643 3644 3645if 3646 test "x$enable_dependency_tracking" != xno \ 3647 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3648 am__fastdepCC_TRUE= 3649 am__fastdepCC_FALSE='#' 3650else 3651 am__fastdepCC_TRUE='#' 3652 am__fastdepCC_FALSE= 3653fi 3654 3655 3656# Check whether --enable-shared was given. 3657if test "${enable_shared+set}" = set; then 3658 enableval=$enable_shared; p=${PACKAGE-default} 3659 case $enableval in 3660 yes) enable_shared=yes ;; 3661 no) enable_shared=no ;; 3662 *) 3663 enable_shared=no 3664 # Look at the argument we got. We use all the common list separators. 3665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3666 for pkg in $enableval; do 3667 IFS="$lt_save_ifs" 3668 if test "X$pkg" = "X$p"; then 3669 enable_shared=yes 3670 fi 3671 done 3672 IFS="$lt_save_ifs" 3673 ;; 3674 esac 3675else 3676 enable_shared=yes 3677fi 3678 3679 3680# Check whether --enable-static was given. 3681if test "${enable_static+set}" = set; then 3682 enableval=$enable_static; p=${PACKAGE-default} 3683 case $enableval in 3684 yes) enable_static=yes ;; 3685 no) enable_static=no ;; 3686 *) 3687 enable_static=no 3688 # Look at the argument we got. We use all the common list separators. 3689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3690 for pkg in $enableval; do 3691 IFS="$lt_save_ifs" 3692 if test "X$pkg" = "X$p"; then 3693 enable_static=yes 3694 fi 3695 done 3696 IFS="$lt_save_ifs" 3697 ;; 3698 esac 3699else 3700 enable_static=yes 3701fi 3702 3703 3704# Check whether --enable-fast-install was given. 3705if test "${enable_fast_install+set}" = set; then 3706 enableval=$enable_fast_install; p=${PACKAGE-default} 3707 case $enableval in 3708 yes) enable_fast_install=yes ;; 3709 no) enable_fast_install=no ;; 3710 *) 3711 enable_fast_install=no 3712 # Look at the argument we got. We use all the common list separators. 3713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3714 for pkg in $enableval; do 3715 IFS="$lt_save_ifs" 3716 if test "X$pkg" = "X$p"; then 3717 enable_fast_install=yes 3718 fi 3719 done 3720 IFS="$lt_save_ifs" 3721 ;; 3722 esac 3723else 3724 enable_fast_install=yes 3725fi 3726 3727 3728# Make sure we can run config.sub. 3729$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3730 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3731echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3732 { (exit 1); exit 1; }; } 3733 3734{ echo "$as_me:$LINENO: checking build system type" >&5 3735echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 3736if test "${ac_cv_build+set}" = set; then 3737 echo $ECHO_N "(cached) $ECHO_C" >&6 3738else 3739 ac_build_alias=$build_alias 3740test "x$ac_build_alias" = x && 3741 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3742test "x$ac_build_alias" = x && 3743 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3744echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3745 { (exit 1); exit 1; }; } 3746ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3747 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3748echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3749 { (exit 1); exit 1; }; } 3750 3751fi 3752{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3753echo "${ECHO_T}$ac_cv_build" >&6; } 3754case $ac_cv_build in 3755*-*-*) ;; 3756*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3757echo "$as_me: error: invalid value of canonical build" >&2;} 3758 { (exit 1); exit 1; }; };; 3759esac 3760build=$ac_cv_build 3761ac_save_IFS=$IFS; IFS='-' 3762set x $ac_cv_build 3763shift 3764build_cpu=$1 3765build_vendor=$2 3766shift; shift 3767# Remember, the first character of IFS is used to create $*, 3768# except with old shells: 3769build_os=$* 3770IFS=$ac_save_IFS 3771case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3772 3773 3774{ echo "$as_me:$LINENO: checking host system type" >&5 3775echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 3776if test "${ac_cv_host+set}" = set; then 3777 echo $ECHO_N "(cached) $ECHO_C" >&6 3778else 3779 if test "x$host_alias" = x; then 3780 ac_cv_host=$ac_cv_build 3781else 3782 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3783 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3784echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3785 { (exit 1); exit 1; }; } 3786fi 3787 3788fi 3789{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3790echo "${ECHO_T}$ac_cv_host" >&6; } 3791case $ac_cv_host in 3792*-*-*) ;; 3793*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3794echo "$as_me: error: invalid value of canonical host" >&2;} 3795 { (exit 1); exit 1; }; };; 3796esac 3797host=$ac_cv_host 3798ac_save_IFS=$IFS; IFS='-' 3799set x $ac_cv_host 3800shift 3801host_cpu=$1 3802host_vendor=$2 3803shift; shift 3804# Remember, the first character of IFS is used to create $*, 3805# except with old shells: 3806host_os=$* 3807IFS=$ac_save_IFS 3808case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3809 3810 3811{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3812echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } 3813if test "${lt_cv_path_SED+set}" = set; then 3814 echo $ECHO_N "(cached) $ECHO_C" >&6 3815else 3816 # Loop through the user's path and test for sed and gsed. 3817# Then use that list of sed's as ones to test for truncation. 3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3819for as_dir in $PATH 3820do 3821 IFS=$as_save_IFS 3822 test -z "$as_dir" && as_dir=. 3823 for lt_ac_prog in sed gsed; do 3824 for ac_exec_ext in '' $ac_executable_extensions; do 3825 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3826 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3827 fi 3828 done 3829 done 3830done 3831lt_ac_max=0 3832lt_ac_count=0 3833# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3834# along with /bin/sed that truncates output. 3835for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3836 test ! -f $lt_ac_sed && continue 3837 cat /dev/null > conftest.in 3838 lt_ac_count=0 3839 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3840 # Check for GNU sed and select it if it is found. 3841 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3842 lt_cv_path_SED=$lt_ac_sed 3843 break 3844 fi 3845 while true; do 3846 cat conftest.in conftest.in >conftest.tmp 3847 mv conftest.tmp conftest.in 3848 cp conftest.in conftest.nl 3849 echo >>conftest.nl 3850 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3851 cmp -s conftest.out conftest.nl || break 3852 # 10000 chars as input seems more than enough 3853 test $lt_ac_count -gt 10 && break 3854 lt_ac_count=`expr $lt_ac_count + 1` 3855 if test $lt_ac_count -gt $lt_ac_max; then 3856 lt_ac_max=$lt_ac_count 3857 lt_cv_path_SED=$lt_ac_sed 3858 fi 3859 done 3860done 3861 3862fi 3863 3864SED=$lt_cv_path_SED 3865{ echo "$as_me:$LINENO: result: $SED" >&5 3866echo "${ECHO_T}$SED" >&6; } 3867 3868{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3869echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3870if test "${ac_cv_path_GREP+set}" = set; then 3871 echo $ECHO_N "(cached) $ECHO_C" >&6 3872else 3873 # Extract the first word of "grep ggrep" to use in msg output 3874if test -z "$GREP"; then 3875set dummy grep ggrep; ac_prog_name=$2 3876if test "${ac_cv_path_GREP+set}" = set; then 3877 echo $ECHO_N "(cached) $ECHO_C" >&6 3878else 3879 ac_path_GREP_found=false 3880# Loop through the user's path and test for each of PROGNAME-LIST 3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3882for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3883do 3884 IFS=$as_save_IFS 3885 test -z "$as_dir" && as_dir=. 3886 for ac_prog in grep ggrep; do 3887 for ac_exec_ext in '' $ac_executable_extensions; do 3888 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3889 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue 3890 # Check for GNU ac_path_GREP and select it if it is found. 3891 # Check for GNU $ac_path_GREP 3892case `"$ac_path_GREP" --version 2>&1` in 3893*GNU*) 3894 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3895*) 3896 ac_count=0 3897 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3898 while : 3899 do 3900 cat "conftest.in" "conftest.in" >"conftest.tmp" 3901 mv "conftest.tmp" "conftest.in" 3902 cp "conftest.in" "conftest.nl" 3903 echo 'GREP' >> "conftest.nl" 3904 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3906 ac_count=`expr $ac_count + 1` 3907 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3908 # Best one so far, save it but keep looking for a better one 3909 ac_cv_path_GREP="$ac_path_GREP" 3910 ac_path_GREP_max=$ac_count 3911 fi 3912 # 10*(2^10) chars as input seems more than enough 3913 test $ac_count -gt 10 && break 3914 done 3915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3916esac 3917 3918 3919 $ac_path_GREP_found && break 3 3920 done 3921done 3922 3923done 3924IFS=$as_save_IFS 3925 3926 3927fi 3928 3929GREP="$ac_cv_path_GREP" 3930if test -z "$GREP"; then 3931 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3932echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3933 { (exit 1); exit 1; }; } 3934fi 3935 3936else 3937 ac_cv_path_GREP=$GREP 3938fi 3939 3940 3941fi 3942{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3943echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3944 GREP="$ac_cv_path_GREP" 3945 3946 3947{ echo "$as_me:$LINENO: checking for egrep" >&5 3948echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3949if test "${ac_cv_path_EGREP+set}" = set; then 3950 echo $ECHO_N "(cached) $ECHO_C" >&6 3951else 3952 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3953 then ac_cv_path_EGREP="$GREP -E" 3954 else 3955 # Extract the first word of "egrep" to use in msg output 3956if test -z "$EGREP"; then 3957set dummy egrep; ac_prog_name=$2 3958if test "${ac_cv_path_EGREP+set}" = set; then 3959 echo $ECHO_N "(cached) $ECHO_C" >&6 3960else 3961 ac_path_EGREP_found=false 3962# Loop through the user's path and test for each of PROGNAME-LIST 3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3964for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3965do 3966 IFS=$as_save_IFS 3967 test -z "$as_dir" && as_dir=. 3968 for ac_prog in egrep; do 3969 for ac_exec_ext in '' $ac_executable_extensions; do 3970 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3971 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue 3972 # Check for GNU ac_path_EGREP and select it if it is found. 3973 # Check for GNU $ac_path_EGREP 3974case `"$ac_path_EGREP" --version 2>&1` in 3975*GNU*) 3976 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3977*) 3978 ac_count=0 3979 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3980 while : 3981 do 3982 cat "conftest.in" "conftest.in" >"conftest.tmp" 3983 mv "conftest.tmp" "conftest.in" 3984 cp "conftest.in" "conftest.nl" 3985 echo 'EGREP' >> "conftest.nl" 3986 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3987 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3988 ac_count=`expr $ac_count + 1` 3989 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3990 # Best one so far, save it but keep looking for a better one 3991 ac_cv_path_EGREP="$ac_path_EGREP" 3992 ac_path_EGREP_max=$ac_count 3993 fi 3994 # 10*(2^10) chars as input seems more than enough 3995 test $ac_count -gt 10 && break 3996 done 3997 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3998esac 3999 4000 4001 $ac_path_EGREP_found && break 3 4002 done 4003done 4004 4005done 4006IFS=$as_save_IFS 4007 4008 4009fi 4010 4011EGREP="$ac_cv_path_EGREP" 4012if test -z "$EGREP"; then 4013 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4014echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4015 { (exit 1); exit 1; }; } 4016fi 4017 4018else 4019 ac_cv_path_EGREP=$EGREP 4020fi 4021 4022 4023 fi 4024fi 4025{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4026echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4027 EGREP="$ac_cv_path_EGREP" 4028 4029 4030 4031# Check whether --with-gnu-ld was given. 4032if test "${with_gnu_ld+set}" = set; then 4033 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4034else 4035 with_gnu_ld=no 4036fi 4037 4038ac_prog=ld 4039if test "$GCC" = yes; then 4040 # Check if gcc -print-prog-name=ld gives a path. 4041 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 4042echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 4043 case $host in 4044 *-*-mingw*) 4045 # gcc leaves a trailing carriage return which upsets mingw 4046 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4047 *) 4048 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4049 esac 4050 case $ac_prog in 4051 # Accept absolute paths. 4052 [\\/]* | ?:[\\/]*) 4053 re_direlt='/[^/][^/]*/\.\./' 4054 # Canonicalize the pathname of ld 4055 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 4056 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4057 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 4058 done 4059 test -z "$LD" && LD="$ac_prog" 4060 ;; 4061 "") 4062 # If it fails, then pretend we aren't using GCC. 4063 ac_prog=ld 4064 ;; 4065 *) 4066 # If it is relative, then search for the first ld in PATH. 4067 with_gnu_ld=unknown 4068 ;; 4069 esac 4070elif test "$with_gnu_ld" = yes; then 4071 { echo "$as_me:$LINENO: checking for GNU ld" >&5 4072echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 4073else 4074 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4075echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 4076fi 4077if test "${lt_cv_path_LD+set}" = set; then 4078 echo $ECHO_N "(cached) $ECHO_C" >&6 4079else 4080 if test -z "$LD"; then 4081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4082 for ac_dir in $PATH; do 4083 IFS="$lt_save_ifs" 4084 test -z "$ac_dir" && ac_dir=. 4085 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4086 lt_cv_path_LD="$ac_dir/$ac_prog" 4087 # Check to see if the program is GNU ld. I'd rather use --version, 4088 # but apparently some variants of GNU ld only accept -v. 4089 # Break only if it was the GNU/non-GNU ld that we prefer. 4090 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4091 *GNU* | *'with BFD'*) 4092 test "$with_gnu_ld" != no && break 4093 ;; 4094 *) 4095 test "$with_gnu_ld" != yes && break 4096 ;; 4097 esac 4098 fi 4099 done 4100 IFS="$lt_save_ifs" 4101else 4102 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4103fi 4104fi 4105 4106LD="$lt_cv_path_LD" 4107if test -n "$LD"; then 4108 { echo "$as_me:$LINENO: result: $LD" >&5 4109echo "${ECHO_T}$LD" >&6; } 4110else 4111 { echo "$as_me:$LINENO: result: no" >&5 4112echo "${ECHO_T}no" >&6; } 4113fi 4114test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4115echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4116 { (exit 1); exit 1; }; } 4117{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4118echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 4119if test "${lt_cv_prog_gnu_ld+set}" = set; then 4120 echo $ECHO_N "(cached) $ECHO_C" >&6 4121else 4122 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4123case `$LD -v 2>&1 </dev/null` in 4124*GNU* | *'with BFD'*) 4125 lt_cv_prog_gnu_ld=yes 4126 ;; 4127*) 4128 lt_cv_prog_gnu_ld=no 4129 ;; 4130esac 4131fi 4132{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4133echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 4134with_gnu_ld=$lt_cv_prog_gnu_ld 4135 4136 4137{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4138echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } 4139if test "${lt_cv_ld_reload_flag+set}" = set; then 4140 echo $ECHO_N "(cached) $ECHO_C" >&6 4141else 4142 lt_cv_ld_reload_flag='-r' 4143fi 4144{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4145echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } 4146reload_flag=$lt_cv_ld_reload_flag 4147case $reload_flag in 4148"" | " "*) ;; 4149*) reload_flag=" $reload_flag" ;; 4150esac 4151reload_cmds='$LD$reload_flag -o $output$reload_objs' 4152case $host_os in 4153 darwin*) 4154 if test "$GCC" = yes; then 4155 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4156 else 4157 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4158 fi 4159 ;; 4160esac 4161 4162{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4163echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } 4164if test "${lt_cv_path_NM+set}" = set; then 4165 echo $ECHO_N "(cached) $ECHO_C" >&6 4166else 4167 if test -n "$NM"; then 4168 # Let the user override the test. 4169 lt_cv_path_NM="$NM" 4170else 4171 lt_nm_to_check="${ac_tool_prefix}nm" 4172 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4173 lt_nm_to_check="$lt_nm_to_check nm" 4174 fi 4175 for lt_tmp_nm in $lt_nm_to_check; do 4176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4177 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4178 IFS="$lt_save_ifs" 4179 test -z "$ac_dir" && ac_dir=. 4180 tmp_nm="$ac_dir/$lt_tmp_nm" 4181 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4182 # Check to see if the nm accepts a BSD-compat flag. 4183 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4184 # nm: unknown option "B" ignored 4185 # Tru64's nm complains that /dev/null is an invalid object file 4186 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4187 */dev/null* | *'Invalid file or object type'*) 4188 lt_cv_path_NM="$tmp_nm -B" 4189 break 4190 ;; 4191 *) 4192 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4193 */dev/null*) 4194 lt_cv_path_NM="$tmp_nm -p" 4195 break 4196 ;; 4197 *) 4198 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4199 continue # so that we can try to find one that supports BSD flags 4200 ;; 4201 esac 4202 ;; 4203 esac 4204 fi 4205 done 4206 IFS="$lt_save_ifs" 4207 done 4208 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4209fi 4210fi 4211{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4212echo "${ECHO_T}$lt_cv_path_NM" >&6; } 4213NM="$lt_cv_path_NM" 4214 4215{ echo "$as_me:$LINENO: checking whether ln -s works" >&5 4216echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } 4217LN_S=$as_ln_s 4218if test "$LN_S" = "ln -s"; then 4219 { echo "$as_me:$LINENO: result: yes" >&5 4220echo "${ECHO_T}yes" >&6; } 4221else 4222 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4223echo "${ECHO_T}no, using $LN_S" >&6; } 4224fi 4225 4226{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 4227echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } 4228if test "${lt_cv_deplibs_check_method+set}" = set; then 4229 echo $ECHO_N "(cached) $ECHO_C" >&6 4230else 4231 lt_cv_file_magic_cmd='$MAGIC_CMD' 4232lt_cv_file_magic_test_file= 4233lt_cv_deplibs_check_method='unknown' 4234# Need to set the preceding variable on all platforms that support 4235# interlibrary dependencies. 4236# 'none' -- dependencies not supported. 4237# `unknown' -- same as none, but documents that we really don't know. 4238# 'pass_all' -- all dependencies passed with no checks. 4239# 'test_compile' -- check by making test program. 4240# 'file_magic [[regex]]' -- check by looking for files in library path 4241# which responds to the $file_magic_cmd with a given extended regex. 4242# If you have `file' or equivalent on your system and you're not sure 4243# whether `pass_all' will *always* work, you probably want this one. 4244 4245case $host_os in 4246aix4* | aix5*) 4247 lt_cv_deplibs_check_method=pass_all 4248 ;; 4249 4250beos*) 4251 lt_cv_deplibs_check_method=pass_all 4252 ;; 4253 4254bsdi[45]*) 4255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4256 lt_cv_file_magic_cmd='/usr/bin/file -L' 4257 lt_cv_file_magic_test_file=/shlib/libc.so 4258 ;; 4259 4260cygwin*) 4261 # func_win32_libid is a shell function defined in ltmain.sh 4262 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4263 lt_cv_file_magic_cmd='func_win32_libid' 4264 ;; 4265 4266mingw* | pw32*) 4267 # Base MSYS/MinGW do not provide the 'file' command needed by 4268 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 4269 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4270 lt_cv_file_magic_cmd='$OBJDUMP -f' 4271 ;; 4272 4273darwin* | rhapsody*) 4274 lt_cv_deplibs_check_method=pass_all 4275 ;; 4276 4277freebsd* | dragonfly*) 4278 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4279 case $host_cpu in 4280 i*86 ) 4281 # Not sure whether the presence of OpenBSD here was a mistake. 4282 # Let's accept both of them until this is cleared up. 4283 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4284 lt_cv_file_magic_cmd=/usr/bin/file 4285 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4286 ;; 4287 esac 4288 else 4289 lt_cv_deplibs_check_method=pass_all 4290 fi 4291 ;; 4292 4293gnu*) 4294 lt_cv_deplibs_check_method=pass_all 4295 ;; 4296 4297hpux10.20* | hpux11*) 4298 lt_cv_file_magic_cmd=/usr/bin/file 4299 case $host_cpu in 4300 ia64*) 4301 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4302 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4303 ;; 4304 hppa*64*) 4305 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]' 4306 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4307 ;; 4308 *) 4309 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4310 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4311 ;; 4312 esac 4313 ;; 4314 4315interix3*) 4316 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4318 ;; 4319 4320irix5* | irix6* | nonstopux*) 4321 case $LD in 4322 *-32|*"-32 ") libmagic=32-bit;; 4323 *-n32|*"-n32 ") libmagic=N32;; 4324 *-64|*"-64 ") libmagic=64-bit;; 4325 *) libmagic=never-match;; 4326 esac 4327 lt_cv_deplibs_check_method=pass_all 4328 ;; 4329 4330# This must be Linux ELF. 4331linux* | k*bsd*-gnu) 4332 lt_cv_deplibs_check_method=pass_all 4333 ;; 4334 4335netbsd* | netbsdelf*-gnu) 4336 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4338 else 4339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4340 fi 4341 ;; 4342 4343newos6*) 4344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4345 lt_cv_file_magic_cmd=/usr/bin/file 4346 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4347 ;; 4348 4349nto-qnx*) 4350 lt_cv_deplibs_check_method=unknown 4351 ;; 4352 4353openbsd*) 4354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4355 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4356 else 4357 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4358 fi 4359 ;; 4360 4361osf3* | osf4* | osf5*) 4362 lt_cv_deplibs_check_method=pass_all 4363 ;; 4364 4365solaris*) 4366 lt_cv_deplibs_check_method=pass_all 4367 ;; 4368 4369sysv4 | sysv4.3*) 4370 case $host_vendor in 4371 motorola) 4372 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]' 4373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4374 ;; 4375 ncr) 4376 lt_cv_deplibs_check_method=pass_all 4377 ;; 4378 sequent) 4379 lt_cv_file_magic_cmd='/bin/file' 4380 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4381 ;; 4382 sni) 4383 lt_cv_file_magic_cmd='/bin/file' 4384 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4385 lt_cv_file_magic_test_file=/lib/libc.so 4386 ;; 4387 siemens) 4388 lt_cv_deplibs_check_method=pass_all 4389 ;; 4390 pc) 4391 lt_cv_deplibs_check_method=pass_all 4392 ;; 4393 esac 4394 ;; 4395 4396sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4397 lt_cv_deplibs_check_method=pass_all 4398 ;; 4399esac 4400 4401fi 4402{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4403echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } 4404file_magic_cmd=$lt_cv_file_magic_cmd 4405deplibs_check_method=$lt_cv_deplibs_check_method 4406test -z "$deplibs_check_method" && deplibs_check_method=unknown 4407 4408 4409 4410 4411# If no C compiler was specified, use CC. 4412LTCC=${LTCC-"$CC"} 4413 4414# If no C compiler flags were specified, use CFLAGS. 4415LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 4416 4417# Allow CC to be a program name with arguments. 4418compiler=$CC 4419 4420 4421# Check whether --enable-libtool-lock was given. 4422if test "${enable_libtool_lock+set}" = set; then 4423 enableval=$enable_libtool_lock; 4424fi 4425 4426test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4427 4428# Some flags need to be propagated to the compiler or linker for good 4429# libtool support. 4430case $host in 4431ia64-*-hpux*) 4432 # Find out which ABI we are using. 4433 echo 'int i;' > conftest.$ac_ext 4434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4435 (eval $ac_compile) 2>&5 4436 ac_status=$? 4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4438 (exit $ac_status); }; then 4439 case `/usr/bin/file conftest.$ac_objext` in 4440 *ELF-32*) 4441 HPUX_IA64_MODE="32" 4442 ;; 4443 *ELF-64*) 4444 HPUX_IA64_MODE="64" 4445 ;; 4446 esac 4447 fi 4448 rm -rf conftest* 4449 ;; 4450*-*-irix6*) 4451 # Find out which ABI we are using. 4452 echo '#line 4452 "configure"' > conftest.$ac_ext 4453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4454 (eval $ac_compile) 2>&5 4455 ac_status=$? 4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4457 (exit $ac_status); }; then 4458 if test "$lt_cv_prog_gnu_ld" = yes; then 4459 case `/usr/bin/file conftest.$ac_objext` in 4460 *32-bit*) 4461 LD="${LD-ld} -melf32bsmip" 4462 ;; 4463 *N32*) 4464 LD="${LD-ld} -melf32bmipn32" 4465 ;; 4466 *64-bit*) 4467 LD="${LD-ld} -melf64bmip" 4468 ;; 4469 esac 4470 else 4471 case `/usr/bin/file conftest.$ac_objext` in 4472 *32-bit*) 4473 LD="${LD-ld} -32" 4474 ;; 4475 *N32*) 4476 LD="${LD-ld} -n32" 4477 ;; 4478 *64-bit*) 4479 LD="${LD-ld} -64" 4480 ;; 4481 esac 4482 fi 4483 fi 4484 rm -rf conftest* 4485 ;; 4486 4487x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 4488 # Find out which ABI we are using. 4489 echo 'int i;' > conftest.$ac_ext 4490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4491 (eval $ac_compile) 2>&5 4492 ac_status=$? 4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4494 (exit $ac_status); }; then 4495 case `/usr/bin/file conftest.o` in 4496 *32-bit*) 4497 case $host in 4498 x86_64-*linux*) 4499 LD="${LD-ld} -m elf_i386" 4500 ;; 4501 ppc64-*linux*|powerpc64-*linux*) 4502 LD="${LD-ld} -m elf32ppclinux" 4503 ;; 4504 s390x-*linux*) 4505 LD="${LD-ld} -m elf_s390" 4506 ;; 4507 sparc64-*linux*) 4508 LD="${LD-ld} -m elf32_sparc" 4509 ;; 4510 esac 4511 ;; 4512 *64-bit*) 4513 case $host in 4514 x86_64-*linux*) 4515 LD="${LD-ld} -m elf_x86_64" 4516 ;; 4517 ppc*-*linux*|powerpc*-*linux*) 4518 LD="${LD-ld} -m elf64ppc" 4519 ;; 4520 s390*-*linux*) 4521 LD="${LD-ld} -m elf64_s390" 4522 ;; 4523 sparc*-*linux*) 4524 LD="${LD-ld} -m elf64_sparc" 4525 ;; 4526 esac 4527 ;; 4528 esac 4529 fi 4530 rm -rf conftest* 4531 ;; 4532 4533*-*-sco3.2v5*) 4534 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 4535 SAVE_CFLAGS="$CFLAGS" 4536 CFLAGS="$CFLAGS -belf" 4537 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 4538echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } 4539if test "${lt_cv_cc_needs_belf+set}" = set; then 4540 echo $ECHO_N "(cached) $ECHO_C" >&6 4541else 4542 ac_ext=c 4543ac_cpp='$CPP $CPPFLAGS' 4544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4546ac_compiler_gnu=$ac_cv_c_compiler_gnu 4547 4548 cat >conftest.$ac_ext <<_ACEOF 4549/* confdefs.h. */ 4550_ACEOF 4551cat confdefs.h >>conftest.$ac_ext 4552cat >>conftest.$ac_ext <<_ACEOF 4553/* end confdefs.h. */ 4554 4555int 4556main () 4557{ 4558 4559 ; 4560 return 0; 4561} 4562_ACEOF 4563rm -f conftest.$ac_objext conftest$ac_exeext 4564if { (ac_try="$ac_link" 4565case "(($ac_try" in 4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4567 *) ac_try_echo=$ac_try;; 4568esac 4569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4570 (eval "$ac_link") 2>conftest.er1 4571 ac_status=$? 4572 grep -v '^ *+' conftest.er1 >conftest.err 4573 rm -f conftest.er1 4574 cat conftest.err >&5 4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4576 (exit $ac_status); } && 4577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4578 { (case "(($ac_try" in 4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4580 *) ac_try_echo=$ac_try;; 4581esac 4582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4583 (eval "$ac_try") 2>&5 4584 ac_status=$? 4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4586 (exit $ac_status); }; } && 4587 { ac_try='test -s conftest$ac_exeext' 4588 { (case "(($ac_try" in 4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4590 *) ac_try_echo=$ac_try;; 4591esac 4592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4593 (eval "$ac_try") 2>&5 4594 ac_status=$? 4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4596 (exit $ac_status); }; }; then 4597 lt_cv_cc_needs_belf=yes 4598else 4599 echo "$as_me: failed program was:" >&5 4600sed 's/^/| /' conftest.$ac_ext >&5 4601 4602 lt_cv_cc_needs_belf=no 4603fi 4604 4605rm -f core conftest.err conftest.$ac_objext \ 4606 conftest$ac_exeext conftest.$ac_ext 4607 ac_ext=c 4608ac_cpp='$CPP $CPPFLAGS' 4609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4611ac_compiler_gnu=$ac_cv_c_compiler_gnu 4612 4613fi 4614{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 4615echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } 4616 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 4617 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 4618 CFLAGS="$SAVE_CFLAGS" 4619 fi 4620 ;; 4621sparc*-*solaris*) 4622 # Find out which ABI we are using. 4623 echo 'int i;' > conftest.$ac_ext 4624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4625 (eval $ac_compile) 2>&5 4626 ac_status=$? 4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4628 (exit $ac_status); }; then 4629 case `/usr/bin/file conftest.o` in 4630 *64-bit*) 4631 case $lt_cv_prog_gnu_ld in 4632 yes*) LD="${LD-ld} -m elf64_sparc" ;; 4633 *) LD="${LD-ld} -64" ;; 4634 esac 4635 ;; 4636 esac 4637 fi 4638 rm -rf conftest* 4639 ;; 4640 4641 4642esac 4643 4644need_locks="$enable_libtool_lock" 4645 4646 4647ac_ext=c 4648ac_cpp='$CPP $CPPFLAGS' 4649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4651ac_compiler_gnu=$ac_cv_c_compiler_gnu 4652{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4653echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 4654# On Suns, sometimes $CPP names a directory. 4655if test -n "$CPP" && test -d "$CPP"; then 4656 CPP= 4657fi 4658if test -z "$CPP"; then 4659 if test "${ac_cv_prog_CPP+set}" = set; then 4660 echo $ECHO_N "(cached) $ECHO_C" >&6 4661else 4662 # Double quotes because CPP needs to be expanded 4663 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4664 do 4665 ac_preproc_ok=false 4666for ac_c_preproc_warn_flag in '' yes 4667do 4668 # Use a header file that comes with gcc, so configuring glibc 4669 # with a fresh cross-compiler works. 4670 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4671 # <limits.h> exists even on freestanding compilers. 4672 # On the NeXT, cc -E runs the code through the compiler's parser, 4673 # not just through cpp. "Syntax error" is here to catch this case. 4674 cat >conftest.$ac_ext <<_ACEOF 4675/* confdefs.h. */ 4676_ACEOF 4677cat confdefs.h >>conftest.$ac_ext 4678cat >>conftest.$ac_ext <<_ACEOF 4679/* end confdefs.h. */ 4680#ifdef __STDC__ 4681# include <limits.h> 4682#else 4683# include <assert.h> 4684#endif 4685 Syntax error 4686_ACEOF 4687if { (ac_try="$ac_cpp conftest.$ac_ext" 4688case "(($ac_try" in 4689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4690 *) ac_try_echo=$ac_try;; 4691esac 4692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4694 ac_status=$? 4695 grep -v '^ *+' conftest.er1 >conftest.err 4696 rm -f conftest.er1 4697 cat conftest.err >&5 4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4699 (exit $ac_status); } >/dev/null; then 4700 if test -s conftest.err; then 4701 ac_cpp_err=$ac_c_preproc_warn_flag 4702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4703 else 4704 ac_cpp_err= 4705 fi 4706else 4707 ac_cpp_err=yes 4708fi 4709if test -z "$ac_cpp_err"; then 4710 : 4711else 4712 echo "$as_me: failed program was:" >&5 4713sed 's/^/| /' conftest.$ac_ext >&5 4714 4715 # Broken: fails on valid input. 4716continue 4717fi 4718 4719rm -f conftest.err conftest.$ac_ext 4720 4721 # OK, works on sane cases. Now check whether nonexistent headers 4722 # can be detected and how. 4723 cat >conftest.$ac_ext <<_ACEOF 4724/* confdefs.h. */ 4725_ACEOF 4726cat confdefs.h >>conftest.$ac_ext 4727cat >>conftest.$ac_ext <<_ACEOF 4728/* end confdefs.h. */ 4729#include <ac_nonexistent.h> 4730_ACEOF 4731if { (ac_try="$ac_cpp conftest.$ac_ext" 4732case "(($ac_try" in 4733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4734 *) ac_try_echo=$ac_try;; 4735esac 4736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4738 ac_status=$? 4739 grep -v '^ *+' conftest.er1 >conftest.err 4740 rm -f conftest.er1 4741 cat conftest.err >&5 4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4743 (exit $ac_status); } >/dev/null; then 4744 if test -s conftest.err; then 4745 ac_cpp_err=$ac_c_preproc_warn_flag 4746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4747 else 4748 ac_cpp_err= 4749 fi 4750else 4751 ac_cpp_err=yes 4752fi 4753if test -z "$ac_cpp_err"; then 4754 # Broken: success on invalid input. 4755continue 4756else 4757 echo "$as_me: failed program was:" >&5 4758sed 's/^/| /' conftest.$ac_ext >&5 4759 4760 # Passes both tests. 4761ac_preproc_ok=: 4762break 4763fi 4764 4765rm -f conftest.err conftest.$ac_ext 4766 4767done 4768# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4769rm -f conftest.err conftest.$ac_ext 4770if $ac_preproc_ok; then 4771 break 4772fi 4773 4774 done 4775 ac_cv_prog_CPP=$CPP 4776 4777fi 4778 CPP=$ac_cv_prog_CPP 4779else 4780 ac_cv_prog_CPP=$CPP 4781fi 4782{ echo "$as_me:$LINENO: result: $CPP" >&5 4783echo "${ECHO_T}$CPP" >&6; } 4784ac_preproc_ok=false 4785for ac_c_preproc_warn_flag in '' yes 4786do 4787 # Use a header file that comes with gcc, so configuring glibc 4788 # with a fresh cross-compiler works. 4789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4790 # <limits.h> exists even on freestanding compilers. 4791 # On the NeXT, cc -E runs the code through the compiler's parser, 4792 # not just through cpp. "Syntax error" is here to catch this case. 4793 cat >conftest.$ac_ext <<_ACEOF 4794/* confdefs.h. */ 4795_ACEOF 4796cat confdefs.h >>conftest.$ac_ext 4797cat >>conftest.$ac_ext <<_ACEOF 4798/* end confdefs.h. */ 4799#ifdef __STDC__ 4800# include <limits.h> 4801#else 4802# include <assert.h> 4803#endif 4804 Syntax error 4805_ACEOF 4806if { (ac_try="$ac_cpp conftest.$ac_ext" 4807case "(($ac_try" in 4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4809 *) ac_try_echo=$ac_try;; 4810esac 4811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4813 ac_status=$? 4814 grep -v '^ *+' conftest.er1 >conftest.err 4815 rm -f conftest.er1 4816 cat conftest.err >&5 4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4818 (exit $ac_status); } >/dev/null; then 4819 if test -s conftest.err; then 4820 ac_cpp_err=$ac_c_preproc_warn_flag 4821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4822 else 4823 ac_cpp_err= 4824 fi 4825else 4826 ac_cpp_err=yes 4827fi 4828if test -z "$ac_cpp_err"; then 4829 : 4830else 4831 echo "$as_me: failed program was:" >&5 4832sed 's/^/| /' conftest.$ac_ext >&5 4833 4834 # Broken: fails on valid input. 4835continue 4836fi 4837 4838rm -f conftest.err conftest.$ac_ext 4839 4840 # OK, works on sane cases. Now check whether nonexistent headers 4841 # can be detected and how. 4842 cat >conftest.$ac_ext <<_ACEOF 4843/* confdefs.h. */ 4844_ACEOF 4845cat confdefs.h >>conftest.$ac_ext 4846cat >>conftest.$ac_ext <<_ACEOF 4847/* end confdefs.h. */ 4848#include <ac_nonexistent.h> 4849_ACEOF 4850if { (ac_try="$ac_cpp conftest.$ac_ext" 4851case "(($ac_try" in 4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4853 *) ac_try_echo=$ac_try;; 4854esac 4855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4857 ac_status=$? 4858 grep -v '^ *+' conftest.er1 >conftest.err 4859 rm -f conftest.er1 4860 cat conftest.err >&5 4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4862 (exit $ac_status); } >/dev/null; then 4863 if test -s conftest.err; then 4864 ac_cpp_err=$ac_c_preproc_warn_flag 4865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4866 else 4867 ac_cpp_err= 4868 fi 4869else 4870 ac_cpp_err=yes 4871fi 4872if test -z "$ac_cpp_err"; then 4873 # Broken: success on invalid input. 4874continue 4875else 4876 echo "$as_me: failed program was:" >&5 4877sed 's/^/| /' conftest.$ac_ext >&5 4878 4879 # Passes both tests. 4880ac_preproc_ok=: 4881break 4882fi 4883 4884rm -f conftest.err conftest.$ac_ext 4885 4886done 4887# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4888rm -f conftest.err conftest.$ac_ext 4889if $ac_preproc_ok; then 4890 : 4891else 4892 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4893See \`config.log' for more details." >&5 4894echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4895See \`config.log' for more details." >&2;} 4896 { (exit 1); exit 1; }; } 4897fi 4898 4899ac_ext=c 4900ac_cpp='$CPP $CPPFLAGS' 4901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4903ac_compiler_gnu=$ac_cv_c_compiler_gnu 4904 4905 4906{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4907echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 4908if test "${ac_cv_header_stdc+set}" = set; then 4909 echo $ECHO_N "(cached) $ECHO_C" >&6 4910else 4911 cat >conftest.$ac_ext <<_ACEOF 4912/* confdefs.h. */ 4913_ACEOF 4914cat confdefs.h >>conftest.$ac_ext 4915cat >>conftest.$ac_ext <<_ACEOF 4916/* end confdefs.h. */ 4917#include <stdlib.h> 4918#include <stdarg.h> 4919#include <string.h> 4920#include <float.h> 4921 4922int 4923main () 4924{ 4925 4926 ; 4927 return 0; 4928} 4929_ACEOF 4930rm -f conftest.$ac_objext 4931if { (ac_try="$ac_compile" 4932case "(($ac_try" in 4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4934 *) ac_try_echo=$ac_try;; 4935esac 4936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4937 (eval "$ac_compile") 2>conftest.er1 4938 ac_status=$? 4939 grep -v '^ *+' conftest.er1 >conftest.err 4940 rm -f conftest.er1 4941 cat conftest.err >&5 4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4943 (exit $ac_status); } && 4944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4945 { (case "(($ac_try" in 4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4947 *) ac_try_echo=$ac_try;; 4948esac 4949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4950 (eval "$ac_try") 2>&5 4951 ac_status=$? 4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4953 (exit $ac_status); }; } && 4954 { ac_try='test -s conftest.$ac_objext' 4955 { (case "(($ac_try" in 4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4957 *) ac_try_echo=$ac_try;; 4958esac 4959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4960 (eval "$ac_try") 2>&5 4961 ac_status=$? 4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4963 (exit $ac_status); }; }; then 4964 ac_cv_header_stdc=yes 4965else 4966 echo "$as_me: failed program was:" >&5 4967sed 's/^/| /' conftest.$ac_ext >&5 4968 4969 ac_cv_header_stdc=no 4970fi 4971 4972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4973 4974if test $ac_cv_header_stdc = yes; then 4975 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4976 cat >conftest.$ac_ext <<_ACEOF 4977/* confdefs.h. */ 4978_ACEOF 4979cat confdefs.h >>conftest.$ac_ext 4980cat >>conftest.$ac_ext <<_ACEOF 4981/* end confdefs.h. */ 4982#include <string.h> 4983 4984_ACEOF 4985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4986 $EGREP "memchr" >/dev/null 2>&1; then 4987 : 4988else 4989 ac_cv_header_stdc=no 4990fi 4991rm -f conftest* 4992 4993fi 4994 4995if test $ac_cv_header_stdc = yes; then 4996 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4997 cat >conftest.$ac_ext <<_ACEOF 4998/* confdefs.h. */ 4999_ACEOF 5000cat confdefs.h >>conftest.$ac_ext 5001cat >>conftest.$ac_ext <<_ACEOF 5002/* end confdefs.h. */ 5003#include <stdlib.h> 5004 5005_ACEOF 5006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5007 $EGREP "free" >/dev/null 2>&1; then 5008 : 5009else 5010 ac_cv_header_stdc=no 5011fi 5012rm -f conftest* 5013 5014fi 5015 5016if test $ac_cv_header_stdc = yes; then 5017 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5018 if test "$cross_compiling" = yes; then 5019 : 5020else 5021 cat >conftest.$ac_ext <<_ACEOF 5022/* confdefs.h. */ 5023_ACEOF 5024cat confdefs.h >>conftest.$ac_ext 5025cat >>conftest.$ac_ext <<_ACEOF 5026/* end confdefs.h. */ 5027#include <ctype.h> 5028#include <stdlib.h> 5029#if ((' ' & 0x0FF) == 0x020) 5030# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5031# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5032#else 5033# define ISLOWER(c) \ 5034 (('a' <= (c) && (c) <= 'i') \ 5035 || ('j' <= (c) && (c) <= 'r') \ 5036 || ('s' <= (c) && (c) <= 'z')) 5037# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5038#endif 5039 5040#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5041int 5042main () 5043{ 5044 int i; 5045 for (i = 0; i < 256; i++) 5046 if (XOR (islower (i), ISLOWER (i)) 5047 || toupper (i) != TOUPPER (i)) 5048 return 2; 5049 return 0; 5050} 5051_ACEOF 5052rm -f conftest$ac_exeext 5053if { (ac_try="$ac_link" 5054case "(($ac_try" in 5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5056 *) ac_try_echo=$ac_try;; 5057esac 5058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5059 (eval "$ac_link") 2>&5 5060 ac_status=$? 5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5063 { (case "(($ac_try" in 5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5065 *) ac_try_echo=$ac_try;; 5066esac 5067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5068 (eval "$ac_try") 2>&5 5069 ac_status=$? 5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5071 (exit $ac_status); }; }; then 5072 : 5073else 5074 echo "$as_me: program exited with status $ac_status" >&5 5075echo "$as_me: failed program was:" >&5 5076sed 's/^/| /' conftest.$ac_ext >&5 5077 5078( exit $ac_status ) 5079ac_cv_header_stdc=no 5080fi 5081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5082fi 5083 5084 5085fi 5086fi 5087{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5088echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 5089if test $ac_cv_header_stdc = yes; then 5090 5091cat >>confdefs.h <<\_ACEOF 5092#define STDC_HEADERS 1 5093_ACEOF 5094 5095fi 5096 5097# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5108 inttypes.h stdint.h unistd.h 5109do 5110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5111{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5114 echo $ECHO_N "(cached) $ECHO_C" >&6 5115else 5116 cat >conftest.$ac_ext <<_ACEOF 5117/* confdefs.h. */ 5118_ACEOF 5119cat confdefs.h >>conftest.$ac_ext 5120cat >>conftest.$ac_ext <<_ACEOF 5121/* end confdefs.h. */ 5122$ac_includes_default 5123 5124#include <$ac_header> 5125_ACEOF 5126rm -f conftest.$ac_objext 5127if { (ac_try="$ac_compile" 5128case "(($ac_try" in 5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5130 *) ac_try_echo=$ac_try;; 5131esac 5132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5133 (eval "$ac_compile") 2>conftest.er1 5134 ac_status=$? 5135 grep -v '^ *+' conftest.er1 >conftest.err 5136 rm -f conftest.er1 5137 cat conftest.err >&5 5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5139 (exit $ac_status); } && 5140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5141 { (case "(($ac_try" in 5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5143 *) ac_try_echo=$ac_try;; 5144esac 5145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5146 (eval "$ac_try") 2>&5 5147 ac_status=$? 5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5149 (exit $ac_status); }; } && 5150 { ac_try='test -s conftest.$ac_objext' 5151 { (case "(($ac_try" in 5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5153 *) ac_try_echo=$ac_try;; 5154esac 5155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5156 (eval "$ac_try") 2>&5 5157 ac_status=$? 5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5159 (exit $ac_status); }; }; then 5160 eval "$as_ac_Header=yes" 5161else 5162 echo "$as_me: failed program was:" >&5 5163sed 's/^/| /' conftest.$ac_ext >&5 5164 5165 eval "$as_ac_Header=no" 5166fi 5167 5168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5169fi 5170ac_res=`eval echo '${'$as_ac_Header'}'` 5171 { echo "$as_me:$LINENO: result: $ac_res" >&5 5172echo "${ECHO_T}$ac_res" >&6; } 5173if test `eval echo '${'$as_ac_Header'}'` = yes; then 5174 cat >>confdefs.h <<_ACEOF 5175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5176_ACEOF 5177 5178fi 5179 5180done 5181 5182 5183 5184for ac_header in dlfcn.h 5185do 5186as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5188 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5191 echo $ECHO_N "(cached) $ECHO_C" >&6 5192fi 5193ac_res=`eval echo '${'$as_ac_Header'}'` 5194 { echo "$as_me:$LINENO: result: $ac_res" >&5 5195echo "${ECHO_T}$ac_res" >&6; } 5196else 5197 # Is the header compilable? 5198{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 5199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 5200cat >conftest.$ac_ext <<_ACEOF 5201/* confdefs.h. */ 5202_ACEOF 5203cat confdefs.h >>conftest.$ac_ext 5204cat >>conftest.$ac_ext <<_ACEOF 5205/* end confdefs.h. */ 5206$ac_includes_default 5207#include <$ac_header> 5208_ACEOF 5209rm -f conftest.$ac_objext 5210if { (ac_try="$ac_compile" 5211case "(($ac_try" in 5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5213 *) ac_try_echo=$ac_try;; 5214esac 5215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5216 (eval "$ac_compile") 2>conftest.er1 5217 ac_status=$? 5218 grep -v '^ *+' conftest.er1 >conftest.err 5219 rm -f conftest.er1 5220 cat conftest.err >&5 5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5222 (exit $ac_status); } && 5223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5224 { (case "(($ac_try" in 5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5226 *) ac_try_echo=$ac_try;; 5227esac 5228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5229 (eval "$ac_try") 2>&5 5230 ac_status=$? 5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5232 (exit $ac_status); }; } && 5233 { ac_try='test -s conftest.$ac_objext' 5234 { (case "(($ac_try" in 5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5236 *) ac_try_echo=$ac_try;; 5237esac 5238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5239 (eval "$ac_try") 2>&5 5240 ac_status=$? 5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5242 (exit $ac_status); }; }; then 5243 ac_header_compiler=yes 5244else 5245 echo "$as_me: failed program was:" >&5 5246sed 's/^/| /' conftest.$ac_ext >&5 5247 5248 ac_header_compiler=no 5249fi 5250 5251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5252{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5253echo "${ECHO_T}$ac_header_compiler" >&6; } 5254 5255# Is the header present? 5256{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 5257echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 5258cat >conftest.$ac_ext <<_ACEOF 5259/* confdefs.h. */ 5260_ACEOF 5261cat confdefs.h >>conftest.$ac_ext 5262cat >>conftest.$ac_ext <<_ACEOF 5263/* end confdefs.h. */ 5264#include <$ac_header> 5265_ACEOF 5266if { (ac_try="$ac_cpp conftest.$ac_ext" 5267case "(($ac_try" in 5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5269 *) ac_try_echo=$ac_try;; 5270esac 5271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5273 ac_status=$? 5274 grep -v '^ *+' conftest.er1 >conftest.err 5275 rm -f conftest.er1 5276 cat conftest.err >&5 5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5278 (exit $ac_status); } >/dev/null; then 5279 if test -s conftest.err; then 5280 ac_cpp_err=$ac_c_preproc_warn_flag 5281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5282 else 5283 ac_cpp_err= 5284 fi 5285else 5286 ac_cpp_err=yes 5287fi 5288if test -z "$ac_cpp_err"; then 5289 ac_header_preproc=yes 5290else 5291 echo "$as_me: failed program was:" >&5 5292sed 's/^/| /' conftest.$ac_ext >&5 5293 5294 ac_header_preproc=no 5295fi 5296 5297rm -f conftest.err conftest.$ac_ext 5298{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5299echo "${ECHO_T}$ac_header_preproc" >&6; } 5300 5301# So? What about this header? 5302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5303 yes:no: ) 5304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5305echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5307echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5308 ac_header_preproc=yes 5309 ;; 5310 no:yes:* ) 5311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5312echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5314echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5316echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5318echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5320echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5322echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5323 ( cat <<\_ASBOX 5324## ---------------------------------------------------------------------- ## 5325## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 5326## ---------------------------------------------------------------------- ## 5327_ASBOX 5328 ) | sed "s/^/$as_me: WARNING: /" >&2 5329 ;; 5330esac 5331{ echo "$as_me:$LINENO: checking for $ac_header" >&5 5332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5334 echo $ECHO_N "(cached) $ECHO_C" >&6 5335else 5336 eval "$as_ac_Header=\$ac_header_preproc" 5337fi 5338ac_res=`eval echo '${'$as_ac_Header'}'` 5339 { echo "$as_me:$LINENO: result: $ac_res" >&5 5340echo "${ECHO_T}$ac_res" >&6; } 5341 5342fi 5343if test `eval echo '${'$as_ac_Header'}'` = yes; then 5344 cat >>confdefs.h <<_ACEOF 5345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5346_ACEOF 5347 5348fi 5349 5350done 5351 5352ac_ext=cpp 5353ac_cpp='$CXXCPP $CPPFLAGS' 5354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5357if test -z "$CXX"; then 5358 if test -n "$CCC"; then 5359 CXX=$CCC 5360 else 5361 if test -n "$ac_tool_prefix"; then 5362 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5363 do 5364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5365set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5366{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5368if test "${ac_cv_prog_CXX+set}" = set; then 5369 echo $ECHO_N "(cached) $ECHO_C" >&6 5370else 5371 if test -n "$CXX"; then 5372 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5373else 5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5375for as_dir in $PATH 5376do 5377 IFS=$as_save_IFS 5378 test -z "$as_dir" && as_dir=. 5379 for ac_exec_ext in '' $ac_executable_extensions; do 5380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5381 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5383 break 2 5384 fi 5385done 5386done 5387IFS=$as_save_IFS 5388 5389fi 5390fi 5391CXX=$ac_cv_prog_CXX 5392if test -n "$CXX"; then 5393 { echo "$as_me:$LINENO: result: $CXX" >&5 5394echo "${ECHO_T}$CXX" >&6; } 5395else 5396 { echo "$as_me:$LINENO: result: no" >&5 5397echo "${ECHO_T}no" >&6; } 5398fi 5399 5400 5401 test -n "$CXX" && break 5402 done 5403fi 5404if test -z "$CXX"; then 5405 ac_ct_CXX=$CXX 5406 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5407do 5408 # Extract the first word of "$ac_prog", so it can be a program name with args. 5409set dummy $ac_prog; ac_word=$2 5410{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 5412if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 5413 echo $ECHO_N "(cached) $ECHO_C" >&6 5414else 5415 if test -n "$ac_ct_CXX"; then 5416 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5417else 5418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5419for as_dir in $PATH 5420do 5421 IFS=$as_save_IFS 5422 test -z "$as_dir" && as_dir=. 5423 for ac_exec_ext in '' $ac_executable_extensions; do 5424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 5425 ac_cv_prog_ac_ct_CXX="$ac_prog" 5426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5427 break 2 5428 fi 5429done 5430done 5431IFS=$as_save_IFS 5432 5433fi 5434fi 5435ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5436if test -n "$ac_ct_CXX"; then 5437 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 5438echo "${ECHO_T}$ac_ct_CXX" >&6; } 5439else 5440 { echo "$as_me:$LINENO: result: no" >&5 5441echo "${ECHO_T}no" >&6; } 5442fi 5443 5444 5445 test -n "$ac_ct_CXX" && break 5446done 5447 5448 if test "x$ac_ct_CXX" = x; then 5449 CXX="g++" 5450 else 5451 case $cross_compiling:$ac_tool_warned in 5452yes:) 5453{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5454whose name does not start with the host triplet. If you think this 5455configuration is useful to you, please write to autoconf@gnu.org." >&5 5456echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 5457whose name does not start with the host triplet. If you think this 5458configuration is useful to you, please write to autoconf@gnu.org." >&2;} 5459ac_tool_warned=yes ;; 5460esac 5461 CXX=$ac_ct_CXX 5462 fi 5463fi 5464 5465 fi 5466fi 5467# Provide some information about the compiler. 5468echo "$as_me:$LINENO: checking for C++ compiler version" >&5 5469ac_compiler=`set X $ac_compile; echo $2` 5470{ (ac_try="$ac_compiler --version >&5" 5471case "(($ac_try" in 5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5473 *) ac_try_echo=$ac_try;; 5474esac 5475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5476 (eval "$ac_compiler --version >&5") 2>&5 5477 ac_status=$? 5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5479 (exit $ac_status); } 5480{ (ac_try="$ac_compiler -v >&5" 5481case "(($ac_try" in 5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5483 *) ac_try_echo=$ac_try;; 5484esac 5485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5486 (eval "$ac_compiler -v >&5") 2>&5 5487 ac_status=$? 5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5489 (exit $ac_status); } 5490{ (ac_try="$ac_compiler -V >&5" 5491case "(($ac_try" in 5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5493 *) ac_try_echo=$ac_try;; 5494esac 5495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5496 (eval "$ac_compiler -V >&5") 2>&5 5497 ac_status=$? 5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5499 (exit $ac_status); } 5500 5501{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 5502echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 5503if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 5504 echo $ECHO_N "(cached) $ECHO_C" >&6 5505else 5506 cat >conftest.$ac_ext <<_ACEOF 5507/* confdefs.h. */ 5508_ACEOF 5509cat confdefs.h >>conftest.$ac_ext 5510cat >>conftest.$ac_ext <<_ACEOF 5511/* end confdefs.h. */ 5512 5513int 5514main () 5515{ 5516#ifndef __GNUC__ 5517 choke me 5518#endif 5519 5520 ; 5521 return 0; 5522} 5523_ACEOF 5524rm -f conftest.$ac_objext 5525if { (ac_try="$ac_compile" 5526case "(($ac_try" in 5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5528 *) ac_try_echo=$ac_try;; 5529esac 5530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5531 (eval "$ac_compile") 2>conftest.er1 5532 ac_status=$? 5533 grep -v '^ *+' conftest.er1 >conftest.err 5534 rm -f conftest.er1 5535 cat conftest.err >&5 5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5537 (exit $ac_status); } && 5538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5539 { (case "(($ac_try" in 5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5541 *) ac_try_echo=$ac_try;; 5542esac 5543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5544 (eval "$ac_try") 2>&5 5545 ac_status=$? 5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5547 (exit $ac_status); }; } && 5548 { ac_try='test -s conftest.$ac_objext' 5549 { (case "(($ac_try" in 5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5551 *) ac_try_echo=$ac_try;; 5552esac 5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5554 (eval "$ac_try") 2>&5 5555 ac_status=$? 5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5557 (exit $ac_status); }; }; then 5558 ac_compiler_gnu=yes 5559else 5560 echo "$as_me: failed program was:" >&5 5561sed 's/^/| /' conftest.$ac_ext >&5 5562 5563 ac_compiler_gnu=no 5564fi 5565 5566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5567ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5568 5569fi 5570{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 5571echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 5572GXX=`test $ac_compiler_gnu = yes && echo yes` 5573ac_test_CXXFLAGS=${CXXFLAGS+set} 5574ac_save_CXXFLAGS=$CXXFLAGS 5575{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 5576echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 5577if test "${ac_cv_prog_cxx_g+set}" = set; then 5578 echo $ECHO_N "(cached) $ECHO_C" >&6 5579else 5580 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5581 ac_cxx_werror_flag=yes 5582 ac_cv_prog_cxx_g=no 5583 CXXFLAGS="-g" 5584 cat >conftest.$ac_ext <<_ACEOF 5585/* confdefs.h. */ 5586_ACEOF 5587cat confdefs.h >>conftest.$ac_ext 5588cat >>conftest.$ac_ext <<_ACEOF 5589/* end confdefs.h. */ 5590 5591int 5592main () 5593{ 5594 5595 ; 5596 return 0; 5597} 5598_ACEOF 5599rm -f conftest.$ac_objext 5600if { (ac_try="$ac_compile" 5601case "(($ac_try" in 5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5603 *) ac_try_echo=$ac_try;; 5604esac 5605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5606 (eval "$ac_compile") 2>conftest.er1 5607 ac_status=$? 5608 grep -v '^ *+' conftest.er1 >conftest.err 5609 rm -f conftest.er1 5610 cat conftest.err >&5 5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5612 (exit $ac_status); } && 5613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5614 { (case "(($ac_try" in 5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5616 *) ac_try_echo=$ac_try;; 5617esac 5618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5619 (eval "$ac_try") 2>&5 5620 ac_status=$? 5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5622 (exit $ac_status); }; } && 5623 { ac_try='test -s conftest.$ac_objext' 5624 { (case "(($ac_try" in 5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5626 *) ac_try_echo=$ac_try;; 5627esac 5628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5629 (eval "$ac_try") 2>&5 5630 ac_status=$? 5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5632 (exit $ac_status); }; }; then 5633 ac_cv_prog_cxx_g=yes 5634else 5635 echo "$as_me: failed program was:" >&5 5636sed 's/^/| /' conftest.$ac_ext >&5 5637 5638 CXXFLAGS="" 5639 cat >conftest.$ac_ext <<_ACEOF 5640/* confdefs.h. */ 5641_ACEOF 5642cat confdefs.h >>conftest.$ac_ext 5643cat >>conftest.$ac_ext <<_ACEOF 5644/* end confdefs.h. */ 5645 5646int 5647main () 5648{ 5649 5650 ; 5651 return 0; 5652} 5653_ACEOF 5654rm -f conftest.$ac_objext 5655if { (ac_try="$ac_compile" 5656case "(($ac_try" in 5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5658 *) ac_try_echo=$ac_try;; 5659esac 5660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5661 (eval "$ac_compile") 2>conftest.er1 5662 ac_status=$? 5663 grep -v '^ *+' conftest.er1 >conftest.err 5664 rm -f conftest.er1 5665 cat conftest.err >&5 5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5667 (exit $ac_status); } && 5668 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5669 { (case "(($ac_try" in 5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5671 *) ac_try_echo=$ac_try;; 5672esac 5673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5674 (eval "$ac_try") 2>&5 5675 ac_status=$? 5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5677 (exit $ac_status); }; } && 5678 { ac_try='test -s conftest.$ac_objext' 5679 { (case "(($ac_try" in 5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5681 *) ac_try_echo=$ac_try;; 5682esac 5683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5684 (eval "$ac_try") 2>&5 5685 ac_status=$? 5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5687 (exit $ac_status); }; }; then 5688 : 5689else 5690 echo "$as_me: failed program was:" >&5 5691sed 's/^/| /' conftest.$ac_ext >&5 5692 5693 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5694 CXXFLAGS="-g" 5695 cat >conftest.$ac_ext <<_ACEOF 5696/* confdefs.h. */ 5697_ACEOF 5698cat confdefs.h >>conftest.$ac_ext 5699cat >>conftest.$ac_ext <<_ACEOF 5700/* end confdefs.h. */ 5701 5702int 5703main () 5704{ 5705 5706 ; 5707 return 0; 5708} 5709_ACEOF 5710rm -f conftest.$ac_objext 5711if { (ac_try="$ac_compile" 5712case "(($ac_try" in 5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5714 *) ac_try_echo=$ac_try;; 5715esac 5716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5717 (eval "$ac_compile") 2>conftest.er1 5718 ac_status=$? 5719 grep -v '^ *+' conftest.er1 >conftest.err 5720 rm -f conftest.er1 5721 cat conftest.err >&5 5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5723 (exit $ac_status); } && 5724 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 5725 { (case "(($ac_try" in 5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5727 *) ac_try_echo=$ac_try;; 5728esac 5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5730 (eval "$ac_try") 2>&5 5731 ac_status=$? 5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5733 (exit $ac_status); }; } && 5734 { ac_try='test -s conftest.$ac_objext' 5735 { (case "(($ac_try" in 5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5737 *) ac_try_echo=$ac_try;; 5738esac 5739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5740 (eval "$ac_try") 2>&5 5741 ac_status=$? 5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5743 (exit $ac_status); }; }; then 5744 ac_cv_prog_cxx_g=yes 5745else 5746 echo "$as_me: failed program was:" >&5 5747sed 's/^/| /' conftest.$ac_ext >&5 5748 5749 5750fi 5751 5752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5753fi 5754 5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5756fi 5757 5758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5759 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5760fi 5761{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 5762echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 5763if test "$ac_test_CXXFLAGS" = set; then 5764 CXXFLAGS=$ac_save_CXXFLAGS 5765elif test $ac_cv_prog_cxx_g = yes; then 5766 if test "$GXX" = yes; then 5767 CXXFLAGS="-g -O2" 5768 else 5769 CXXFLAGS="-g" 5770 fi 5771else 5772 if test "$GXX" = yes; then 5773 CXXFLAGS="-O2" 5774 else 5775 CXXFLAGS= 5776 fi 5777fi 5778ac_ext=cpp 5779ac_cpp='$CXXCPP $CPPFLAGS' 5780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5783 5784depcc="$CXX" am_compiler_list= 5785 5786{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 5787echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } 5788if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 5789 echo $ECHO_N "(cached) $ECHO_C" >&6 5790else 5791 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5792 # We make a subdir and do the tests there. Otherwise we can end up 5793 # making bogus files that we don't know about and never remove. For 5794 # instance it was reported that on HP-UX the gcc test will end up 5795 # making a dummy file named `D' -- because `-MD' means `put the output 5796 # in D'. 5797 mkdir conftest.dir 5798 # Copy depcomp to subdir because otherwise we won't find it if we're 5799 # using a relative directory. 5800 cp "$am_depcomp" conftest.dir 5801 cd conftest.dir 5802 # We will build objects and dependencies in a subdirectory because 5803 # it helps to detect inapplicable dependency modes. For instance 5804 # both Tru64's cc and ICC support -MD to output dependencies as a 5805 # side effect of compilation, but ICC will put the dependencies in 5806 # the current directory while Tru64 will put them in the object 5807 # directory. 5808 mkdir sub 5809 5810 am_cv_CXX_dependencies_compiler_type=none 5811 if test "$am_compiler_list" = ""; then 5812 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5813 fi 5814 for depmode in $am_compiler_list; do 5815 # Setup a source with many dependencies, because some compilers 5816 # like to wrap large dependency lists on column 80 (with \), and 5817 # we should not choose a depcomp mode which is confused by this. 5818 # 5819 # We need to recreate these files for each test, as the compiler may 5820 # overwrite some of them when testing with obscure command lines. 5821 # This happens at least with the AIX C compiler. 5822 : > sub/conftest.c 5823 for i in 1 2 3 4 5 6; do 5824 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5825 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5826 # Solaris 8's {/usr,}/bin/sh. 5827 touch sub/conftst$i.h 5828 done 5829 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5830 5831 case $depmode in 5832 nosideeffect) 5833 # after this tag, mechanisms are not by side-effect, so they'll 5834 # only be used when explicitly requested 5835 if test "x$enable_dependency_tracking" = xyes; then 5836 continue 5837 else 5838 break 5839 fi 5840 ;; 5841 none) break ;; 5842 esac 5843 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5844 # mode. It turns out that the SunPro C++ compiler does not properly 5845 # handle `-M -o', and we need to detect this. 5846 if depmode=$depmode \ 5847 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 5848 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5849 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 5850 >/dev/null 2>conftest.err && 5851 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5852 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 5853 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5854 # icc doesn't choke on unknown options, it will just issue warnings 5855 # or remarks (even with -Werror). So we grep stderr for any message 5856 # that says an option was ignored or not supported. 5857 # When given -MP, icc 7.0 and 7.1 complain thusly: 5858 # icc: Command line warning: ignoring option '-M'; no argument required 5859 # The diagnosis changed in icc 8.0: 5860 # icc: Command line remark: option '-MP' not supported 5861 if (grep 'ignoring option' conftest.err || 5862 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5863 am_cv_CXX_dependencies_compiler_type=$depmode 5864 break 5865 fi 5866 fi 5867 done 5868 5869 cd .. 5870 rm -rf conftest.dir 5871else 5872 am_cv_CXX_dependencies_compiler_type=none 5873fi 5874 5875fi 5876{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 5877echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } 5878CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5879 5880 5881 5882if 5883 test "x$enable_dependency_tracking" != xno \ 5884 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5885 am__fastdepCXX_TRUE= 5886 am__fastdepCXX_FALSE='#' 5887else 5888 am__fastdepCXX_TRUE='#' 5889 am__fastdepCXX_FALSE= 5890fi 5891 5892 5893 5894 5895if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5896 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5897 (test "X$CXX" != "Xg++"))) ; then 5898 ac_ext=cpp 5899ac_cpp='$CXXCPP $CPPFLAGS' 5900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5903{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5904echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5905if test -z "$CXXCPP"; then 5906 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5907 echo $ECHO_N "(cached) $ECHO_C" >&6 5908else 5909 # Double quotes because CXXCPP needs to be expanded 5910 for CXXCPP in "$CXX -E" "/lib/cpp" 5911 do 5912 ac_preproc_ok=false 5913for ac_cxx_preproc_warn_flag in '' yes 5914do 5915 # Use a header file that comes with gcc, so configuring glibc 5916 # with a fresh cross-compiler works. 5917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5918 # <limits.h> exists even on freestanding compilers. 5919 # On the NeXT, cc -E runs the code through the compiler's parser, 5920 # not just through cpp. "Syntax error" is here to catch this case. 5921 cat >conftest.$ac_ext <<_ACEOF 5922/* confdefs.h. */ 5923_ACEOF 5924cat confdefs.h >>conftest.$ac_ext 5925cat >>conftest.$ac_ext <<_ACEOF 5926/* end confdefs.h. */ 5927#ifdef __STDC__ 5928# include <limits.h> 5929#else 5930# include <assert.h> 5931#endif 5932 Syntax error 5933_ACEOF 5934if { (ac_try="$ac_cpp conftest.$ac_ext" 5935case "(($ac_try" in 5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5937 *) ac_try_echo=$ac_try;; 5938esac 5939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5941 ac_status=$? 5942 grep -v '^ *+' conftest.er1 >conftest.err 5943 rm -f conftest.er1 5944 cat conftest.err >&5 5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5946 (exit $ac_status); } >/dev/null; then 5947 if test -s conftest.err; then 5948 ac_cpp_err=$ac_cxx_preproc_warn_flag 5949 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5950 else 5951 ac_cpp_err= 5952 fi 5953else 5954 ac_cpp_err=yes 5955fi 5956if test -z "$ac_cpp_err"; then 5957 : 5958else 5959 echo "$as_me: failed program was:" >&5 5960sed 's/^/| /' conftest.$ac_ext >&5 5961 5962 # Broken: fails on valid input. 5963continue 5964fi 5965 5966rm -f conftest.err conftest.$ac_ext 5967 5968 # OK, works on sane cases. Now check whether nonexistent headers 5969 # can be detected and how. 5970 cat >conftest.$ac_ext <<_ACEOF 5971/* confdefs.h. */ 5972_ACEOF 5973cat confdefs.h >>conftest.$ac_ext 5974cat >>conftest.$ac_ext <<_ACEOF 5975/* end confdefs.h. */ 5976#include <ac_nonexistent.h> 5977_ACEOF 5978if { (ac_try="$ac_cpp conftest.$ac_ext" 5979case "(($ac_try" in 5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5981 *) ac_try_echo=$ac_try;; 5982esac 5983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5985 ac_status=$? 5986 grep -v '^ *+' conftest.er1 >conftest.err 5987 rm -f conftest.er1 5988 cat conftest.err >&5 5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5990 (exit $ac_status); } >/dev/null; then 5991 if test -s conftest.err; then 5992 ac_cpp_err=$ac_cxx_preproc_warn_flag 5993 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5994 else 5995 ac_cpp_err= 5996 fi 5997else 5998 ac_cpp_err=yes 5999fi 6000if test -z "$ac_cpp_err"; then 6001 # Broken: success on invalid input. 6002continue 6003else 6004 echo "$as_me: failed program was:" >&5 6005sed 's/^/| /' conftest.$ac_ext >&5 6006 6007 # Passes both tests. 6008ac_preproc_ok=: 6009break 6010fi 6011 6012rm -f conftest.err conftest.$ac_ext 6013 6014done 6015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6016rm -f conftest.err conftest.$ac_ext 6017if $ac_preproc_ok; then 6018 break 6019fi 6020 6021 done 6022 ac_cv_prog_CXXCPP=$CXXCPP 6023 6024fi 6025 CXXCPP=$ac_cv_prog_CXXCPP 6026else 6027 ac_cv_prog_CXXCPP=$CXXCPP 6028fi 6029{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 6030echo "${ECHO_T}$CXXCPP" >&6; } 6031ac_preproc_ok=false 6032for ac_cxx_preproc_warn_flag in '' yes 6033do 6034 # Use a header file that comes with gcc, so configuring glibc 6035 # with a fresh cross-compiler works. 6036 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6037 # <limits.h> exists even on freestanding compilers. 6038 # On the NeXT, cc -E runs the code through the compiler's parser, 6039 # not just through cpp. "Syntax error" is here to catch this case. 6040 cat >conftest.$ac_ext <<_ACEOF 6041/* confdefs.h. */ 6042_ACEOF 6043cat confdefs.h >>conftest.$ac_ext 6044cat >>conftest.$ac_ext <<_ACEOF 6045/* end confdefs.h. */ 6046#ifdef __STDC__ 6047# include <limits.h> 6048#else 6049# include <assert.h> 6050#endif 6051 Syntax error 6052_ACEOF 6053if { (ac_try="$ac_cpp conftest.$ac_ext" 6054case "(($ac_try" in 6055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6056 *) ac_try_echo=$ac_try;; 6057esac 6058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6060 ac_status=$? 6061 grep -v '^ *+' conftest.er1 >conftest.err 6062 rm -f conftest.er1 6063 cat conftest.err >&5 6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6065 (exit $ac_status); } >/dev/null; then 6066 if test -s conftest.err; then 6067 ac_cpp_err=$ac_cxx_preproc_warn_flag 6068 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6069 else 6070 ac_cpp_err= 6071 fi 6072else 6073 ac_cpp_err=yes 6074fi 6075if test -z "$ac_cpp_err"; then 6076 : 6077else 6078 echo "$as_me: failed program was:" >&5 6079sed 's/^/| /' conftest.$ac_ext >&5 6080 6081 # Broken: fails on valid input. 6082continue 6083fi 6084 6085rm -f conftest.err conftest.$ac_ext 6086 6087 # OK, works on sane cases. Now check whether nonexistent headers 6088 # can be detected and how. 6089 cat >conftest.$ac_ext <<_ACEOF 6090/* confdefs.h. */ 6091_ACEOF 6092cat confdefs.h >>conftest.$ac_ext 6093cat >>conftest.$ac_ext <<_ACEOF 6094/* end confdefs.h. */ 6095#include <ac_nonexistent.h> 6096_ACEOF 6097if { (ac_try="$ac_cpp conftest.$ac_ext" 6098case "(($ac_try" in 6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6100 *) ac_try_echo=$ac_try;; 6101esac 6102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6104 ac_status=$? 6105 grep -v '^ *+' conftest.er1 >conftest.err 6106 rm -f conftest.er1 6107 cat conftest.err >&5 6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6109 (exit $ac_status); } >/dev/null; then 6110 if test -s conftest.err; then 6111 ac_cpp_err=$ac_cxx_preproc_warn_flag 6112 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 6113 else 6114 ac_cpp_err= 6115 fi 6116else 6117 ac_cpp_err=yes 6118fi 6119if test -z "$ac_cpp_err"; then 6120 # Broken: success on invalid input. 6121continue 6122else 6123 echo "$as_me: failed program was:" >&5 6124sed 's/^/| /' conftest.$ac_ext >&5 6125 6126 # Passes both tests. 6127ac_preproc_ok=: 6128break 6129fi 6130 6131rm -f conftest.err conftest.$ac_ext 6132 6133done 6134# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6135rm -f conftest.err conftest.$ac_ext 6136if $ac_preproc_ok; then 6137 : 6138else 6139 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6140See \`config.log' for more details." >&5 6141echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6142See \`config.log' for more details." >&2;} 6143 { (exit 1); exit 1; }; } 6144fi 6145 6146ac_ext=cpp 6147ac_cpp='$CXXCPP $CPPFLAGS' 6148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6151 6152fi 6153 6154 6155ac_ext=f 6156ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6157ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6158ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6159if test -n "$ac_tool_prefix"; then 6160 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 6161 do 6162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6163set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6164{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6166if test "${ac_cv_prog_F77+set}" = set; then 6167 echo $ECHO_N "(cached) $ECHO_C" >&6 6168else 6169 if test -n "$F77"; then 6170 ac_cv_prog_F77="$F77" # Let the user override the test. 6171else 6172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6173for as_dir in $PATH 6174do 6175 IFS=$as_save_IFS 6176 test -z "$as_dir" && as_dir=. 6177 for ac_exec_ext in '' $ac_executable_extensions; do 6178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6179 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 6180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6181 break 2 6182 fi 6183done 6184done 6185IFS=$as_save_IFS 6186 6187fi 6188fi 6189F77=$ac_cv_prog_F77 6190if test -n "$F77"; then 6191 { echo "$as_me:$LINENO: result: $F77" >&5 6192echo "${ECHO_T}$F77" >&6; } 6193else 6194 { echo "$as_me:$LINENO: result: no" >&5 6195echo "${ECHO_T}no" >&6; } 6196fi 6197 6198 6199 test -n "$F77" && break 6200 done 6201fi 6202if test -z "$F77"; then 6203 ac_ct_F77=$F77 6204 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 6205do 6206 # Extract the first word of "$ac_prog", so it can be a program name with args. 6207set dummy $ac_prog; ac_word=$2 6208{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6210if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 6211 echo $ECHO_N "(cached) $ECHO_C" >&6 6212else 6213 if test -n "$ac_ct_F77"; then 6214 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 6215else 6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6217for as_dir in $PATH 6218do 6219 IFS=$as_save_IFS 6220 test -z "$as_dir" && as_dir=. 6221 for ac_exec_ext in '' $ac_executable_extensions; do 6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6223 ac_cv_prog_ac_ct_F77="$ac_prog" 6224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6225 break 2 6226 fi 6227done 6228done 6229IFS=$as_save_IFS 6230 6231fi 6232fi 6233ac_ct_F77=$ac_cv_prog_ac_ct_F77 6234if test -n "$ac_ct_F77"; then 6235 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 6236echo "${ECHO_T}$ac_ct_F77" >&6; } 6237else 6238 { echo "$as_me:$LINENO: result: no" >&5 6239echo "${ECHO_T}no" >&6; } 6240fi 6241 6242 6243 test -n "$ac_ct_F77" && break 6244done 6245 6246 if test "x$ac_ct_F77" = x; then 6247 F77="" 6248 else 6249 case $cross_compiling:$ac_tool_warned in 6250yes:) 6251{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6252whose name does not start with the host triplet. If you think this 6253configuration is useful to you, please write to autoconf@gnu.org." >&5 6254echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6255whose name does not start with the host triplet. If you think this 6256configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6257ac_tool_warned=yes ;; 6258esac 6259 F77=$ac_ct_F77 6260 fi 6261fi 6262 6263 6264# Provide some information about the compiler. 6265echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6266ac_compiler=`set X $ac_compile; echo $2` 6267{ (ac_try="$ac_compiler --version >&5" 6268case "(($ac_try" in 6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6270 *) ac_try_echo=$ac_try;; 6271esac 6272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6273 (eval "$ac_compiler --version >&5") 2>&5 6274 ac_status=$? 6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6276 (exit $ac_status); } 6277{ (ac_try="$ac_compiler -v >&5" 6278case "(($ac_try" in 6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6280 *) ac_try_echo=$ac_try;; 6281esac 6282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6283 (eval "$ac_compiler -v >&5") 2>&5 6284 ac_status=$? 6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6286 (exit $ac_status); } 6287{ (ac_try="$ac_compiler -V >&5" 6288case "(($ac_try" in 6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6290 *) ac_try_echo=$ac_try;; 6291esac 6292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6293 (eval "$ac_compiler -V >&5") 2>&5 6294 ac_status=$? 6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6296 (exit $ac_status); } 6297rm -f a.out 6298 6299# If we don't use `.F' as extension, the preprocessor is not run on the 6300# input file. (Note that this only needs to work for GNU compilers.) 6301ac_save_ext=$ac_ext 6302ac_ext=F 6303{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6304echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } 6305if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6306 echo $ECHO_N "(cached) $ECHO_C" >&6 6307else 6308 cat >conftest.$ac_ext <<_ACEOF 6309 program main 6310#ifndef __GNUC__ 6311 choke me 6312#endif 6313 6314 end 6315_ACEOF 6316rm -f conftest.$ac_objext 6317if { (ac_try="$ac_compile" 6318case "(($ac_try" in 6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6320 *) ac_try_echo=$ac_try;; 6321esac 6322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6323 (eval "$ac_compile") 2>conftest.er1 6324 ac_status=$? 6325 grep -v '^ *+' conftest.er1 >conftest.err 6326 rm -f conftest.er1 6327 cat conftest.err >&5 6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6329 (exit $ac_status); } && 6330 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6331 { (case "(($ac_try" in 6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6333 *) ac_try_echo=$ac_try;; 6334esac 6335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6336 (eval "$ac_try") 2>&5 6337 ac_status=$? 6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6339 (exit $ac_status); }; } && 6340 { ac_try='test -s conftest.$ac_objext' 6341 { (case "(($ac_try" in 6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6343 *) ac_try_echo=$ac_try;; 6344esac 6345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6346 (eval "$ac_try") 2>&5 6347 ac_status=$? 6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6349 (exit $ac_status); }; }; then 6350 ac_compiler_gnu=yes 6351else 6352 echo "$as_me: failed program was:" >&5 6353sed 's/^/| /' conftest.$ac_ext >&5 6354 6355 ac_compiler_gnu=no 6356fi 6357 6358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6359ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6360 6361fi 6362{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6363echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } 6364ac_ext=$ac_save_ext 6365ac_test_FFLAGS=${FFLAGS+set} 6366ac_save_FFLAGS=$FFLAGS 6367FFLAGS= 6368{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6369echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } 6370if test "${ac_cv_prog_f77_g+set}" = set; then 6371 echo $ECHO_N "(cached) $ECHO_C" >&6 6372else 6373 FFLAGS=-g 6374cat >conftest.$ac_ext <<_ACEOF 6375 program main 6376 6377 end 6378_ACEOF 6379rm -f conftest.$ac_objext 6380if { (ac_try="$ac_compile" 6381case "(($ac_try" in 6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6383 *) ac_try_echo=$ac_try;; 6384esac 6385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6386 (eval "$ac_compile") 2>conftest.er1 6387 ac_status=$? 6388 grep -v '^ *+' conftest.er1 >conftest.err 6389 rm -f conftest.er1 6390 cat conftest.err >&5 6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6392 (exit $ac_status); } && 6393 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 6394 { (case "(($ac_try" in 6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6396 *) ac_try_echo=$ac_try;; 6397esac 6398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6399 (eval "$ac_try") 2>&5 6400 ac_status=$? 6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6402 (exit $ac_status); }; } && 6403 { ac_try='test -s conftest.$ac_objext' 6404 { (case "(($ac_try" in 6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6406 *) ac_try_echo=$ac_try;; 6407esac 6408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6409 (eval "$ac_try") 2>&5 6410 ac_status=$? 6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6412 (exit $ac_status); }; }; then 6413 ac_cv_prog_f77_g=yes 6414else 6415 echo "$as_me: failed program was:" >&5 6416sed 's/^/| /' conftest.$ac_ext >&5 6417 6418 ac_cv_prog_f77_g=no 6419fi 6420 6421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6422 6423fi 6424{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6425echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } 6426if test "$ac_test_FFLAGS" = set; then 6427 FFLAGS=$ac_save_FFLAGS 6428elif test $ac_cv_prog_f77_g = yes; then 6429 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6430 FFLAGS="-g -O2" 6431 else 6432 FFLAGS="-g" 6433 fi 6434else 6435 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6436 FFLAGS="-O2" 6437 else 6438 FFLAGS= 6439 fi 6440fi 6441 6442G77=`test $ac_compiler_gnu = yes && echo yes` 6443ac_ext=c 6444ac_cpp='$CPP $CPPFLAGS' 6445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6447ac_compiler_gnu=$ac_cv_c_compiler_gnu 6448 6449 6450 6451# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6452 6453# find the maximum length of command line arguments 6454{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6455echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } 6456if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6457 echo $ECHO_N "(cached) $ECHO_C" >&6 6458else 6459 i=0 6460 teststring="ABCD" 6461 6462 case $build_os in 6463 msdosdjgpp*) 6464 # On DJGPP, this test can blow up pretty badly due to problems in libc 6465 # (any single argument exceeding 2000 bytes causes a buffer overrun 6466 # during glob expansion). Even if it were fixed, the result of this 6467 # check would be larger than it should be. 6468 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6469 ;; 6470 6471 gnu*) 6472 # Under GNU Hurd, this test is not required because there is 6473 # no limit to the length of command line arguments. 6474 # Libtool will interpret -1 as no limit whatsoever 6475 lt_cv_sys_max_cmd_len=-1; 6476 ;; 6477 6478 cygwin* | mingw*) 6479 # On Win9x/ME, this test blows up -- it succeeds, but takes 6480 # about 5 minutes as the teststring grows exponentially. 6481 # Worse, since 9x/ME are not pre-emptively multitasking, 6482 # you end up with a "frozen" computer, even though with patience 6483 # the test eventually succeeds (with a max line length of 256k). 6484 # Instead, let's just punt: use the minimum linelength reported by 6485 # all of the supported platforms: 8192 (on NT/2K/XP). 6486 lt_cv_sys_max_cmd_len=8192; 6487 ;; 6488 6489 amigaos*) 6490 # On AmigaOS with pdksh, this test takes hours, literally. 6491 # So we just punt and use a minimum line length of 8192. 6492 lt_cv_sys_max_cmd_len=8192; 6493 ;; 6494 6495 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6496 # This has been around since 386BSD, at least. Likely further. 6497 if test -x /sbin/sysctl; then 6498 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6499 elif test -x /usr/sbin/sysctl; then 6500 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6501 else 6502 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6503 fi 6504 # And add a safety zone 6505 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6506 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6507 ;; 6508 6509 interix*) 6510 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6511 lt_cv_sys_max_cmd_len=196608 6512 ;; 6513 6514 osf*) 6515 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6516 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6517 # nice to cause kernel panics so lets avoid the loop below. 6518 # First set a reasonable default. 6519 lt_cv_sys_max_cmd_len=16384 6520 # 6521 if test -x /sbin/sysconfig; then 6522 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6523 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6524 esac 6525 fi 6526 ;; 6527 sco3.2v5*) 6528 lt_cv_sys_max_cmd_len=102400 6529 ;; 6530 sysv5* | sco5v6* | sysv4.2uw2*) 6531 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6532 if test -n "$kargmax"; then 6533 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6534 else 6535 lt_cv_sys_max_cmd_len=32768 6536 fi 6537 ;; 6538 *) 6539 # If test is not a shell built-in, we'll probably end up computing a 6540 # maximum length that is only half of the actual maximum length, but 6541 # we can't tell. 6542 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6543 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6544 = "XX$teststring") >/dev/null 2>&1 && 6545 new_result=`expr "X$teststring" : ".*" 2>&1` && 6546 lt_cv_sys_max_cmd_len=$new_result && 6547 test $i != 17 # 1/2 MB should be enough 6548 do 6549 i=`expr $i + 1` 6550 teststring=$teststring$teststring 6551 done 6552 teststring= 6553 # Add a significant safety factor because C++ compilers can tack on massive 6554 # amounts of additional arguments before passing them to the linker. 6555 # It appears as though 1/2 is a usable value. 6556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6557 ;; 6558 esac 6559 6560fi 6561 6562if test -n $lt_cv_sys_max_cmd_len ; then 6563 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6564echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } 6565else 6566 { echo "$as_me:$LINENO: result: none" >&5 6567echo "${ECHO_T}none" >&6; } 6568fi 6569 6570 6571 6572 6573# Check for command to grab the raw symbol name followed by C symbol from nm. 6574{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 6575echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } 6576if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 6577 echo $ECHO_N "(cached) $ECHO_C" >&6 6578else 6579 6580# These are sane defaults that work on at least a few old systems. 6581# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6582 6583# Character class describing NM global symbol codes. 6584symcode='[BCDEGRST]' 6585 6586# Regexp to match symbols that can be accessed directly from C. 6587sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6588 6589# Transform an extracted symbol line into a proper C declaration 6590lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 6591 6592# Transform an extracted symbol line into symbol name and symbol address 6593lt_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'" 6594 6595# Define system-specific variables. 6596case $host_os in 6597aix*) 6598 symcode='[BCDT]' 6599 ;; 6600cygwin* | mingw* | pw32*) 6601 symcode='[ABCDGISTW]' 6602 ;; 6603hpux*) # Its linker distinguishes data from code symbols 6604 if test "$host_cpu" = ia64; then 6605 symcode='[ABCDEGRST]' 6606 fi 6607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6608 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'" 6609 ;; 6610linux* | k*bsd*-gnu) 6611 if test "$host_cpu" = ia64; then 6612 symcode='[ABCDGIRSTW]' 6613 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6614 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'" 6615 fi 6616 ;; 6617irix* | nonstopux*) 6618 symcode='[BCDEGRST]' 6619 ;; 6620osf*) 6621 symcode='[BCDEGQRST]' 6622 ;; 6623solaris*) 6624 symcode='[BDRT]' 6625 ;; 6626sco3.2v5*) 6627 symcode='[DT]' 6628 ;; 6629sysv4.2uw2*) 6630 symcode='[DT]' 6631 ;; 6632sysv5* | sco5v6* | unixware* | OpenUNIX*) 6633 symcode='[ABDT]' 6634 ;; 6635sysv4) 6636 symcode='[DFNSTU]' 6637 ;; 6638esac 6639 6640# Handle CRLF in mingw tool chain 6641opt_cr= 6642case $build_os in 6643mingw*) 6644 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6645 ;; 6646esac 6647 6648# If we're using GNU nm, then use its standard symbol codes. 6649case `$NM -V 2>&1` in 6650*GNU* | *'with BFD'*) 6651 symcode='[ABCDGIRSTW]' ;; 6652esac 6653 6654# Try without a prefix undercore, then with it. 6655for ac_symprfx in "" "_"; do 6656 6657 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6658 symxfrm="\\1 $ac_symprfx\\2 \\2" 6659 6660 # Write the raw and C identifiers. 6661 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6662 6663 # Check to see that the pipe works correctly. 6664 pipe_works=no 6665 6666 rm -f conftest* 6667 cat > conftest.$ac_ext <<EOF 6668#ifdef __cplusplus 6669extern "C" { 6670#endif 6671char nm_test_var; 6672void nm_test_func(){} 6673#ifdef __cplusplus 6674} 6675#endif 6676int main(){nm_test_var='a';nm_test_func();return(0);} 6677EOF 6678 6679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6680 (eval $ac_compile) 2>&5 6681 ac_status=$? 6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6683 (exit $ac_status); }; then 6684 # Now try to grab the symbols. 6685 nlist=conftest.nm 6686 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 6687 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6688 ac_status=$? 6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6690 (exit $ac_status); } && test -s "$nlist"; then 6691 # Try sorting and uniquifying the output. 6692 if sort "$nlist" | uniq > "$nlist"T; then 6693 mv -f "$nlist"T "$nlist" 6694 else 6695 rm -f "$nlist"T 6696 fi 6697 6698 # Make sure that we snagged all the symbols we need. 6699 if grep ' nm_test_var$' "$nlist" >/dev/null; then 6700 if grep ' nm_test_func$' "$nlist" >/dev/null; then 6701 cat <<EOF > conftest.$ac_ext 6702#ifdef __cplusplus 6703extern "C" { 6704#endif 6705 6706EOF 6707 # Now generate the symbol file. 6708 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6709 6710 cat <<EOF >> conftest.$ac_ext 6711#if defined (__STDC__) && __STDC__ 6712# define lt_ptr_t void * 6713#else 6714# define lt_ptr_t char * 6715# define const 6716#endif 6717 6718/* The mapping between symbol names and symbols. */ 6719const struct { 6720 const char *name; 6721 lt_ptr_t address; 6722} 6723lt_preloaded_symbols[] = 6724{ 6725EOF 6726 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6727 cat <<\EOF >> conftest.$ac_ext 6728 {0, (lt_ptr_t) 0} 6729}; 6730 6731#ifdef __cplusplus 6732} 6733#endif 6734EOF 6735 # Now try linking the two files. 6736 mv conftest.$ac_objext conftstm.$ac_objext 6737 lt_save_LIBS="$LIBS" 6738 lt_save_CFLAGS="$CFLAGS" 6739 LIBS="conftstm.$ac_objext" 6740 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6742 (eval $ac_link) 2>&5 6743 ac_status=$? 6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6745 (exit $ac_status); } && test -s conftest${ac_exeext}; then 6746 pipe_works=yes 6747 fi 6748 LIBS="$lt_save_LIBS" 6749 CFLAGS="$lt_save_CFLAGS" 6750 else 6751 echo "cannot find nm_test_func in $nlist" >&5 6752 fi 6753 else 6754 echo "cannot find nm_test_var in $nlist" >&5 6755 fi 6756 else 6757 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6758 fi 6759 else 6760 echo "$progname: failed program was:" >&5 6761 cat conftest.$ac_ext >&5 6762 fi 6763 rm -f conftest* conftst* 6764 6765 # Do not use the global_symbol_pipe unless it works. 6766 if test "$pipe_works" = yes; then 6767 break 6768 else 6769 lt_cv_sys_global_symbol_pipe= 6770 fi 6771done 6772 6773fi 6774 6775if test -z "$lt_cv_sys_global_symbol_pipe"; then 6776 lt_cv_sys_global_symbol_to_cdecl= 6777fi 6778if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6779 { echo "$as_me:$LINENO: result: failed" >&5 6780echo "${ECHO_T}failed" >&6; } 6781else 6782 { echo "$as_me:$LINENO: result: ok" >&5 6783echo "${ECHO_T}ok" >&6; } 6784fi 6785 6786{ echo "$as_me:$LINENO: checking for objdir" >&5 6787echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } 6788if test "${lt_cv_objdir+set}" = set; then 6789 echo $ECHO_N "(cached) $ECHO_C" >&6 6790else 6791 rm -f .libs 2>/dev/null 6792mkdir .libs 2>/dev/null 6793if test -d .libs; then 6794 lt_cv_objdir=.libs 6795else 6796 # MS-DOS does not allow filenames that begin with a dot. 6797 lt_cv_objdir=_libs 6798fi 6799rmdir .libs 2>/dev/null 6800fi 6801{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6802echo "${ECHO_T}$lt_cv_objdir" >&6; } 6803objdir=$lt_cv_objdir 6804 6805 6806 6807 6808 6809case $host_os in 6810aix3*) 6811 # AIX sometimes has problems with the GCC collect2 program. For some 6812 # reason, if we set the COLLECT_NAMES environment variable, the problems 6813 # vanish in a puff of smoke. 6814 if test "X${COLLECT_NAMES+set}" != Xset; then 6815 COLLECT_NAMES= 6816 export COLLECT_NAMES 6817 fi 6818 ;; 6819esac 6820 6821# Sed substitution that helps us do robust quoting. It backslashifies 6822# metacharacters that are still active within double-quoted strings. 6823Xsed='sed -e 1s/^X//' 6824sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 6825 6826# Same as above, but do not quote variable references. 6827double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 6828 6829# Sed substitution to delay expansion of an escaped shell variable in a 6830# double_quote_subst'ed string. 6831delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6832 6833# Sed substitution to avoid accidental globbing in evaled expressions 6834no_glob_subst='s/\*/\\\*/g' 6835 6836# Constants: 6837rm="rm -f" 6838 6839# Global variables: 6840default_ofile=libtool 6841can_build_shared=yes 6842 6843# All known linkers require a `.a' archive for static linking (except MSVC, 6844# which needs '.lib'). 6845libext=a 6846ltmain="$ac_aux_dir/ltmain.sh" 6847ofile="$default_ofile" 6848with_gnu_ld="$lt_cv_prog_gnu_ld" 6849 6850if test -n "$ac_tool_prefix"; then 6851 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6852set dummy ${ac_tool_prefix}ar; ac_word=$2 6853{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6855if test "${ac_cv_prog_AR+set}" = set; then 6856 echo $ECHO_N "(cached) $ECHO_C" >&6 6857else 6858 if test -n "$AR"; then 6859 ac_cv_prog_AR="$AR" # Let the user override the test. 6860else 6861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6862for as_dir in $PATH 6863do 6864 IFS=$as_save_IFS 6865 test -z "$as_dir" && as_dir=. 6866 for ac_exec_ext in '' $ac_executable_extensions; do 6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6868 ac_cv_prog_AR="${ac_tool_prefix}ar" 6869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6870 break 2 6871 fi 6872done 6873done 6874IFS=$as_save_IFS 6875 6876fi 6877fi 6878AR=$ac_cv_prog_AR 6879if test -n "$AR"; then 6880 { echo "$as_me:$LINENO: result: $AR" >&5 6881echo "${ECHO_T}$AR" >&6; } 6882else 6883 { echo "$as_me:$LINENO: result: no" >&5 6884echo "${ECHO_T}no" >&6; } 6885fi 6886 6887 6888fi 6889if test -z "$ac_cv_prog_AR"; then 6890 ac_ct_AR=$AR 6891 # Extract the first word of "ar", so it can be a program name with args. 6892set dummy ar; ac_word=$2 6893{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6895if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 6896 echo $ECHO_N "(cached) $ECHO_C" >&6 6897else 6898 if test -n "$ac_ct_AR"; then 6899 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6900else 6901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6902for as_dir in $PATH 6903do 6904 IFS=$as_save_IFS 6905 test -z "$as_dir" && as_dir=. 6906 for ac_exec_ext in '' $ac_executable_extensions; do 6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6908 ac_cv_prog_ac_ct_AR="ar" 6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6910 break 2 6911 fi 6912done 6913done 6914IFS=$as_save_IFS 6915 6916fi 6917fi 6918ac_ct_AR=$ac_cv_prog_ac_ct_AR 6919if test -n "$ac_ct_AR"; then 6920 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 6921echo "${ECHO_T}$ac_ct_AR" >&6; } 6922else 6923 { echo "$as_me:$LINENO: result: no" >&5 6924echo "${ECHO_T}no" >&6; } 6925fi 6926 6927 if test "x$ac_ct_AR" = x; then 6928 AR="false" 6929 else 6930 case $cross_compiling:$ac_tool_warned in 6931yes:) 6932{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 6933whose name does not start with the host triplet. If you think this 6934configuration is useful to you, please write to autoconf@gnu.org." >&5 6935echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 6936whose name does not start with the host triplet. If you think this 6937configuration is useful to you, please write to autoconf@gnu.org." >&2;} 6938ac_tool_warned=yes ;; 6939esac 6940 AR=$ac_ct_AR 6941 fi 6942else 6943 AR="$ac_cv_prog_AR" 6944fi 6945 6946if test -n "$ac_tool_prefix"; then 6947 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6948set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6949{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6951if test "${ac_cv_prog_RANLIB+set}" = set; then 6952 echo $ECHO_N "(cached) $ECHO_C" >&6 6953else 6954 if test -n "$RANLIB"; then 6955 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6956else 6957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6958for as_dir in $PATH 6959do 6960 IFS=$as_save_IFS 6961 test -z "$as_dir" && as_dir=. 6962 for ac_exec_ext in '' $ac_executable_extensions; do 6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 6964 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6966 break 2 6967 fi 6968done 6969done 6970IFS=$as_save_IFS 6971 6972fi 6973fi 6974RANLIB=$ac_cv_prog_RANLIB 6975if test -n "$RANLIB"; then 6976 { echo "$as_me:$LINENO: result: $RANLIB" >&5 6977echo "${ECHO_T}$RANLIB" >&6; } 6978else 6979 { echo "$as_me:$LINENO: result: no" >&5 6980echo "${ECHO_T}no" >&6; } 6981fi 6982 6983 6984fi 6985if test -z "$ac_cv_prog_RANLIB"; then 6986 ac_ct_RANLIB=$RANLIB 6987 # Extract the first word of "ranlib", so it can be a program name with args. 6988set dummy ranlib; ac_word=$2 6989{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6991if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 6992 echo $ECHO_N "(cached) $ECHO_C" >&6 6993else 6994 if test -n "$ac_ct_RANLIB"; then 6995 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6996else 6997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6998for as_dir in $PATH 6999do 7000 IFS=$as_save_IFS 7001 test -z "$as_dir" && as_dir=. 7002 for ac_exec_ext in '' $ac_executable_extensions; do 7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7004 ac_cv_prog_ac_ct_RANLIB="ranlib" 7005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7006 break 2 7007 fi 7008done 7009done 7010IFS=$as_save_IFS 7011 7012fi 7013fi 7014ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7015if test -n "$ac_ct_RANLIB"; then 7016 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 7017echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 7018else 7019 { echo "$as_me:$LINENO: result: no" >&5 7020echo "${ECHO_T}no" >&6; } 7021fi 7022 7023 if test "x$ac_ct_RANLIB" = x; then 7024 RANLIB=":" 7025 else 7026 case $cross_compiling:$ac_tool_warned in 7027yes:) 7028{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7029whose name does not start with the host triplet. If you think this 7030configuration is useful to you, please write to autoconf@gnu.org." >&5 7031echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7032whose name does not start with the host triplet. If you think this 7033configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7034ac_tool_warned=yes ;; 7035esac 7036 RANLIB=$ac_ct_RANLIB 7037 fi 7038else 7039 RANLIB="$ac_cv_prog_RANLIB" 7040fi 7041 7042if test -n "$ac_tool_prefix"; then 7043 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7044set dummy ${ac_tool_prefix}strip; ac_word=$2 7045{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7047if test "${ac_cv_prog_STRIP+set}" = set; then 7048 echo $ECHO_N "(cached) $ECHO_C" >&6 7049else 7050 if test -n "$STRIP"; then 7051 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7052else 7053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7054for as_dir in $PATH 7055do 7056 IFS=$as_save_IFS 7057 test -z "$as_dir" && as_dir=. 7058 for ac_exec_ext in '' $ac_executable_extensions; do 7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7060 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7062 break 2 7063 fi 7064done 7065done 7066IFS=$as_save_IFS 7067 7068fi 7069fi 7070STRIP=$ac_cv_prog_STRIP 7071if test -n "$STRIP"; then 7072 { echo "$as_me:$LINENO: result: $STRIP" >&5 7073echo "${ECHO_T}$STRIP" >&6; } 7074else 7075 { echo "$as_me:$LINENO: result: no" >&5 7076echo "${ECHO_T}no" >&6; } 7077fi 7078 7079 7080fi 7081if test -z "$ac_cv_prog_STRIP"; then 7082 ac_ct_STRIP=$STRIP 7083 # Extract the first word of "strip", so it can be a program name with args. 7084set dummy strip; ac_word=$2 7085{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7087if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 7088 echo $ECHO_N "(cached) $ECHO_C" >&6 7089else 7090 if test -n "$ac_ct_STRIP"; then 7091 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7092else 7093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7094for as_dir in $PATH 7095do 7096 IFS=$as_save_IFS 7097 test -z "$as_dir" && as_dir=. 7098 for ac_exec_ext in '' $ac_executable_extensions; do 7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 7100 ac_cv_prog_ac_ct_STRIP="strip" 7101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7102 break 2 7103 fi 7104done 7105done 7106IFS=$as_save_IFS 7107 7108fi 7109fi 7110ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7111if test -n "$ac_ct_STRIP"; then 7112 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 7113echo "${ECHO_T}$ac_ct_STRIP" >&6; } 7114else 7115 { echo "$as_me:$LINENO: result: no" >&5 7116echo "${ECHO_T}no" >&6; } 7117fi 7118 7119 if test "x$ac_ct_STRIP" = x; then 7120 STRIP=":" 7121 else 7122 case $cross_compiling:$ac_tool_warned in 7123yes:) 7124{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 7125whose name does not start with the host triplet. If you think this 7126configuration is useful to you, please write to autoconf@gnu.org." >&5 7127echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 7128whose name does not start with the host triplet. If you think this 7129configuration is useful to you, please write to autoconf@gnu.org." >&2;} 7130ac_tool_warned=yes ;; 7131esac 7132 STRIP=$ac_ct_STRIP 7133 fi 7134else 7135 STRIP="$ac_cv_prog_STRIP" 7136fi 7137 7138 7139old_CC="$CC" 7140old_CFLAGS="$CFLAGS" 7141 7142# Set sane defaults for various variables 7143test -z "$AR" && AR=ar 7144test -z "$AR_FLAGS" && AR_FLAGS=cru 7145test -z "$AS" && AS=as 7146test -z "$CC" && CC=cc 7147test -z "$LTCC" && LTCC=$CC 7148test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7149test -z "$DLLTOOL" && DLLTOOL=dlltool 7150test -z "$LD" && LD=ld 7151test -z "$LN_S" && LN_S="ln -s" 7152test -z "$MAGIC_CMD" && MAGIC_CMD=file 7153test -z "$NM" && NM=nm 7154test -z "$SED" && SED=sed 7155test -z "$OBJDUMP" && OBJDUMP=objdump 7156test -z "$RANLIB" && RANLIB=: 7157test -z "$STRIP" && STRIP=: 7158test -z "$ac_objext" && ac_objext=o 7159 7160# Determine commands to create old-style static archives. 7161old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 7162old_postinstall_cmds='chmod 644 $oldlib' 7163old_postuninstall_cmds= 7164 7165if test -n "$RANLIB"; then 7166 case $host_os in 7167 openbsd*) 7168 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7169 ;; 7170 *) 7171 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7172 ;; 7173 esac 7174 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7175fi 7176 7177for cc_temp in $compiler""; do 7178 case $cc_temp in 7179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7181 \-*) ;; 7182 *) break;; 7183 esac 7184done 7185cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7186 7187 7188# Only perform the check for file, if the check method requires it 7189case $deplibs_check_method in 7190file_magic*) 7191 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7192 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 7193echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } 7194if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7195 echo $ECHO_N "(cached) $ECHO_C" >&6 7196else 7197 case $MAGIC_CMD in 7198[\\/*] | ?:[\\/]*) 7199 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7200 ;; 7201*) 7202 lt_save_MAGIC_CMD="$MAGIC_CMD" 7203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7204 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7205 for ac_dir in $ac_dummy; do 7206 IFS="$lt_save_ifs" 7207 test -z "$ac_dir" && ac_dir=. 7208 if test -f $ac_dir/${ac_tool_prefix}file; then 7209 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7210 if test -n "$file_magic_test_file"; then 7211 case $deplibs_check_method in 7212 "file_magic "*) 7213 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7215 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7216 $EGREP "$file_magic_regex" > /dev/null; then 7217 : 7218 else 7219 cat <<EOF 1>&2 7220 7221*** Warning: the command libtool uses to detect shared libraries, 7222*** $file_magic_cmd, produces output that libtool cannot recognize. 7223*** The result is that libtool may fail to recognize shared libraries 7224*** as such. This will affect the creation of libtool libraries that 7225*** depend on shared libraries, but programs linked with such libtool 7226*** libraries will work regardless of this problem. Nevertheless, you 7227*** may want to report the problem to your system manager and/or to 7228*** bug-libtool@gnu.org 7229 7230EOF 7231 fi ;; 7232 esac 7233 fi 7234 break 7235 fi 7236 done 7237 IFS="$lt_save_ifs" 7238 MAGIC_CMD="$lt_save_MAGIC_CMD" 7239 ;; 7240esac 7241fi 7242 7243MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7244if test -n "$MAGIC_CMD"; then 7245 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7246echo "${ECHO_T}$MAGIC_CMD" >&6; } 7247else 7248 { echo "$as_me:$LINENO: result: no" >&5 7249echo "${ECHO_T}no" >&6; } 7250fi 7251 7252if test -z "$lt_cv_path_MAGIC_CMD"; then 7253 if test -n "$ac_tool_prefix"; then 7254 { echo "$as_me:$LINENO: checking for file" >&5 7255echo $ECHO_N "checking for file... $ECHO_C" >&6; } 7256if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 7257 echo $ECHO_N "(cached) $ECHO_C" >&6 7258else 7259 case $MAGIC_CMD in 7260[\\/*] | ?:[\\/]*) 7261 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7262 ;; 7263*) 7264 lt_save_MAGIC_CMD="$MAGIC_CMD" 7265 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7266 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7267 for ac_dir in $ac_dummy; do 7268 IFS="$lt_save_ifs" 7269 test -z "$ac_dir" && ac_dir=. 7270 if test -f $ac_dir/file; then 7271 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7272 if test -n "$file_magic_test_file"; then 7273 case $deplibs_check_method in 7274 "file_magic "*) 7275 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7277 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7278 $EGREP "$file_magic_regex" > /dev/null; then 7279 : 7280 else 7281 cat <<EOF 1>&2 7282 7283*** Warning: the command libtool uses to detect shared libraries, 7284*** $file_magic_cmd, produces output that libtool cannot recognize. 7285*** The result is that libtool may fail to recognize shared libraries 7286*** as such. This will affect the creation of libtool libraries that 7287*** depend on shared libraries, but programs linked with such libtool 7288*** libraries will work regardless of this problem. Nevertheless, you 7289*** may want to report the problem to your system manager and/or to 7290*** bug-libtool@gnu.org 7291 7292EOF 7293 fi ;; 7294 esac 7295 fi 7296 break 7297 fi 7298 done 7299 IFS="$lt_save_ifs" 7300 MAGIC_CMD="$lt_save_MAGIC_CMD" 7301 ;; 7302esac 7303fi 7304 7305MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7306if test -n "$MAGIC_CMD"; then 7307 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 7308echo "${ECHO_T}$MAGIC_CMD" >&6; } 7309else 7310 { echo "$as_me:$LINENO: result: no" >&5 7311echo "${ECHO_T}no" >&6; } 7312fi 7313 7314 else 7315 MAGIC_CMD=: 7316 fi 7317fi 7318 7319 fi 7320 ;; 7321esac 7322 7323enable_dlopen=no 7324enable_win32_dll=no 7325 7326# Check whether --enable-libtool-lock was given. 7327if test "${enable_libtool_lock+set}" = set; then 7328 enableval=$enable_libtool_lock; 7329fi 7330 7331test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7332 7333 7334# Check whether --with-pic was given. 7335if test "${with_pic+set}" = set; then 7336 withval=$with_pic; pic_mode="$withval" 7337else 7338 pic_mode=default 7339fi 7340 7341test -z "$pic_mode" && pic_mode=default 7342 7343# Use C for the default configuration in the libtool script 7344tagname= 7345lt_save_CC="$CC" 7346ac_ext=c 7347ac_cpp='$CPP $CPPFLAGS' 7348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7350ac_compiler_gnu=$ac_cv_c_compiler_gnu 7351 7352 7353# Source file extension for C test sources. 7354ac_ext=c 7355 7356# Object file extension for compiled C test sources. 7357objext=o 7358objext=$objext 7359 7360# Code to be used in simple compile tests 7361lt_simple_compile_test_code="int some_variable = 0;\n" 7362 7363# Code to be used in simple link tests 7364lt_simple_link_test_code='int main(){return(0);}\n' 7365 7366 7367# If no C compiler was specified, use CC. 7368LTCC=${LTCC-"$CC"} 7369 7370# If no C compiler flags were specified, use CFLAGS. 7371LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7372 7373# Allow CC to be a program name with arguments. 7374compiler=$CC 7375 7376 7377# save warnings/boilerplate of simple test code 7378ac_outfile=conftest.$ac_objext 7379printf "$lt_simple_compile_test_code" >conftest.$ac_ext 7380eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7381_lt_compiler_boilerplate=`cat conftest.err` 7382$rm conftest* 7383 7384ac_outfile=conftest.$ac_objext 7385printf "$lt_simple_link_test_code" >conftest.$ac_ext 7386eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7387_lt_linker_boilerplate=`cat conftest.err` 7388$rm conftest* 7389 7390 7391 7392lt_prog_compiler_no_builtin_flag= 7393 7394if test "$GCC" = yes; then 7395 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7396 7397 7398{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7399echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 7400if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 7401 echo $ECHO_N "(cached) $ECHO_C" >&6 7402else 7403 lt_cv_prog_compiler_rtti_exceptions=no 7404 ac_outfile=conftest.$ac_objext 7405 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7406 lt_compiler_flag="-fno-rtti -fno-exceptions" 7407 # Insert the option either (1) after the last *FLAGS variable, or 7408 # (2) before a word containing "conftest.", or (3) at the end. 7409 # Note that $ac_compile itself does not contain backslashes and begins 7410 # with a dollar sign (not a hyphen), so the echo should work correctly. 7411 # The option is referenced via a variable to avoid confusing sed. 7412 lt_compile=`echo "$ac_compile" | $SED \ 7413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7415 -e 's:$: $lt_compiler_flag:'` 7416 (eval echo "\"\$as_me:7416: $lt_compile\"" >&5) 7417 (eval "$lt_compile" 2>conftest.err) 7418 ac_status=$? 7419 cat conftest.err >&5 7420 echo "$as_me:7420: \$? = $ac_status" >&5 7421 if (exit $ac_status) && test -s "$ac_outfile"; then 7422 # The compiler can only warn and ignore the option if not recognized 7423 # So say no if there are warnings other than the usual output. 7424 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7427 lt_cv_prog_compiler_rtti_exceptions=yes 7428 fi 7429 fi 7430 $rm conftest* 7431 7432fi 7433{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7434echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7435 7436if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7437 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7438else 7439 : 7440fi 7441 7442fi 7443 7444lt_prog_compiler_wl= 7445lt_prog_compiler_pic= 7446lt_prog_compiler_static= 7447 7448{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 7449echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 7450 7451 if test "$GCC" = yes; then 7452 lt_prog_compiler_wl='-Wl,' 7453 lt_prog_compiler_static='-static' 7454 7455 case $host_os in 7456 aix*) 7457 # All AIX code is PIC. 7458 if test "$host_cpu" = ia64; then 7459 # AIX 5 now supports IA64 processor 7460 lt_prog_compiler_static='-Bstatic' 7461 fi 7462 ;; 7463 7464 amigaos*) 7465 # FIXME: we need at least 68020 code to build shared libraries, but 7466 # adding the `-m68020' flag to GCC prevents building anything better, 7467 # like `-m68040'. 7468 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7469 ;; 7470 7471 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7472 # PIC is the default for these OSes. 7473 ;; 7474 7475 mingw* | pw32* | os2*) 7476 # This hack is so that the source file can tell whether it is being 7477 # built for inclusion in a dll (and should export symbols for example). 7478 lt_prog_compiler_pic='-DDLL_EXPORT' 7479 ;; 7480 7481 darwin* | rhapsody*) 7482 # PIC is the default on this platform 7483 # Common symbols not allowed in MH_DYLIB files 7484 lt_prog_compiler_pic='-fno-common' 7485 ;; 7486 7487 interix3*) 7488 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7489 # Instead, we relocate shared libraries at runtime. 7490 ;; 7491 7492 msdosdjgpp*) 7493 # Just because we use GCC doesn't mean we suddenly get shared libraries 7494 # on systems that don't support them. 7495 lt_prog_compiler_can_build_shared=no 7496 enable_shared=no 7497 ;; 7498 7499 sysv4*MP*) 7500 if test -d /usr/nec; then 7501 lt_prog_compiler_pic=-Kconform_pic 7502 fi 7503 ;; 7504 7505 hpux*) 7506 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7507 # not for PA HP-UX. 7508 case $host_cpu in 7509 hppa*64*|ia64*) 7510 # +Z the default 7511 ;; 7512 *) 7513 lt_prog_compiler_pic='-fPIC' 7514 ;; 7515 esac 7516 ;; 7517 7518 *) 7519 lt_prog_compiler_pic='-fPIC' 7520 ;; 7521 esac 7522 else 7523 # PORTME Check for flag to pass linker flags through the system compiler. 7524 case $host_os in 7525 aix*) 7526 lt_prog_compiler_wl='-Wl,' 7527 if test "$host_cpu" = ia64; then 7528 # AIX 5 now supports IA64 processor 7529 lt_prog_compiler_static='-Bstatic' 7530 else 7531 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7532 fi 7533 ;; 7534 darwin*) 7535 # PIC is the default on this platform 7536 # Common symbols not allowed in MH_DYLIB files 7537 case $cc_basename in 7538 xlc*) 7539 lt_prog_compiler_pic='-qnocommon' 7540 lt_prog_compiler_wl='-Wl,' 7541 ;; 7542 esac 7543 ;; 7544 7545 mingw* | pw32* | os2*) 7546 # This hack is so that the source file can tell whether it is being 7547 # built for inclusion in a dll (and should export symbols for example). 7548 lt_prog_compiler_pic='-DDLL_EXPORT' 7549 ;; 7550 7551 hpux9* | hpux10* | hpux11*) 7552 lt_prog_compiler_wl='-Wl,' 7553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7554 # not for PA HP-UX. 7555 case $host_cpu in 7556 hppa*64*|ia64*) 7557 # +Z the default 7558 ;; 7559 *) 7560 lt_prog_compiler_pic='+Z' 7561 ;; 7562 esac 7563 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7564 lt_prog_compiler_static='${wl}-a ${wl}archive' 7565 ;; 7566 7567 irix5* | irix6* | nonstopux*) 7568 lt_prog_compiler_wl='-Wl,' 7569 # PIC (with -KPIC) is the default. 7570 lt_prog_compiler_static='-non_shared' 7571 ;; 7572 7573 newsos6) 7574 lt_prog_compiler_pic='-KPIC' 7575 lt_prog_compiler_static='-Bstatic' 7576 ;; 7577 7578 linux* | k*bsd*-gnu) 7579 case $cc_basename in 7580 icc* | ecc*) 7581 lt_prog_compiler_wl='-Wl,' 7582 lt_prog_compiler_pic='-KPIC' 7583 lt_prog_compiler_static='-static' 7584 ;; 7585 pgcc* | pgf77* | pgf90* | pgf95*) 7586 # Portland Group compilers (*not* the Pentium gcc compiler, 7587 # which looks to be a dead project) 7588 lt_prog_compiler_wl='-Wl,' 7589 lt_prog_compiler_pic='-fpic' 7590 lt_prog_compiler_static='-Bstatic' 7591 ;; 7592 ccc*) 7593 lt_prog_compiler_wl='-Wl,' 7594 # All Alpha code is PIC. 7595 lt_prog_compiler_static='-non_shared' 7596 ;; 7597 esac 7598 ;; 7599 7600 osf3* | osf4* | osf5*) 7601 lt_prog_compiler_wl='-Wl,' 7602 # All OSF/1 code is PIC. 7603 lt_prog_compiler_static='-non_shared' 7604 ;; 7605 7606 solaris*) 7607 lt_prog_compiler_pic='-KPIC' 7608 lt_prog_compiler_static='-Bstatic' 7609 case $cc_basename in 7610 f77* | f90* | f95*) 7611 lt_prog_compiler_wl='-Qoption ld ';; 7612 *) 7613 lt_prog_compiler_wl='-Wl,';; 7614 esac 7615 ;; 7616 7617 sunos4*) 7618 lt_prog_compiler_wl='-Qoption ld ' 7619 lt_prog_compiler_pic='-PIC' 7620 lt_prog_compiler_static='-Bstatic' 7621 ;; 7622 7623 sysv4 | sysv4.2uw2* | sysv4.3*) 7624 lt_prog_compiler_wl='-Wl,' 7625 lt_prog_compiler_pic='-KPIC' 7626 lt_prog_compiler_static='-Bstatic' 7627 ;; 7628 7629 sysv4*MP*) 7630 if test -d /usr/nec ;then 7631 lt_prog_compiler_pic='-Kconform_pic' 7632 lt_prog_compiler_static='-Bstatic' 7633 fi 7634 ;; 7635 7636 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7637 lt_prog_compiler_wl='-Wl,' 7638 lt_prog_compiler_pic='-KPIC' 7639 lt_prog_compiler_static='-Bstatic' 7640 ;; 7641 7642 unicos*) 7643 lt_prog_compiler_wl='-Wl,' 7644 lt_prog_compiler_can_build_shared=no 7645 ;; 7646 7647 uts4*) 7648 lt_prog_compiler_pic='-pic' 7649 lt_prog_compiler_static='-Bstatic' 7650 ;; 7651 7652 *) 7653 lt_prog_compiler_can_build_shared=no 7654 ;; 7655 esac 7656 fi 7657 7658{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 7659echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } 7660 7661# 7662# Check to make sure the PIC flag actually works. 7663# 7664if test -n "$lt_prog_compiler_pic"; then 7665 7666{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7667echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } 7668if test "${lt_prog_compiler_pic_works+set}" = set; then 7669 echo $ECHO_N "(cached) $ECHO_C" >&6 7670else 7671 lt_prog_compiler_pic_works=no 7672 ac_outfile=conftest.$ac_objext 7673 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7674 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7675 # Insert the option either (1) after the last *FLAGS variable, or 7676 # (2) before a word containing "conftest.", or (3) at the end. 7677 # Note that $ac_compile itself does not contain backslashes and begins 7678 # with a dollar sign (not a hyphen), so the echo should work correctly. 7679 # The option is referenced via a variable to avoid confusing sed. 7680 lt_compile=`echo "$ac_compile" | $SED \ 7681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7683 -e 's:$: $lt_compiler_flag:'` 7684 (eval echo "\"\$as_me:7684: $lt_compile\"" >&5) 7685 (eval "$lt_compile" 2>conftest.err) 7686 ac_status=$? 7687 cat conftest.err >&5 7688 echo "$as_me:7688: \$? = $ac_status" >&5 7689 if (exit $ac_status) && test -s "$ac_outfile"; then 7690 # The compiler can only warn and ignore the option if not recognized 7691 # So say no if there are warnings other than the usual output. 7692 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7694 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7695 lt_prog_compiler_pic_works=yes 7696 fi 7697 fi 7698 $rm conftest* 7699 7700fi 7701{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 7702echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } 7703 7704if test x"$lt_prog_compiler_pic_works" = xyes; then 7705 case $lt_prog_compiler_pic in 7706 "" | " "*) ;; 7707 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7708 esac 7709else 7710 lt_prog_compiler_pic= 7711 lt_prog_compiler_can_build_shared=no 7712fi 7713 7714fi 7715case $host_os in 7716 # For platforms which do not support PIC, -DPIC is meaningless: 7717 *djgpp*) 7718 lt_prog_compiler_pic= 7719 ;; 7720 *) 7721 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7722 ;; 7723esac 7724 7725# 7726# Check to make sure the static flag actually works. 7727# 7728wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7729{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7730echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 7731if test "${lt_prog_compiler_static_works+set}" = set; then 7732 echo $ECHO_N "(cached) $ECHO_C" >&6 7733else 7734 lt_prog_compiler_static_works=no 7735 save_LDFLAGS="$LDFLAGS" 7736 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7737 printf "$lt_simple_link_test_code" > conftest.$ac_ext 7738 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7739 # The linker can only warn and ignore the option if not recognized 7740 # So say no if there are warnings 7741 if test -s conftest.err; then 7742 # Append any errors to the config.log. 7743 cat conftest.err 1>&5 7744 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7746 if diff conftest.exp conftest.er2 >/dev/null; then 7747 lt_prog_compiler_static_works=yes 7748 fi 7749 else 7750 lt_prog_compiler_static_works=yes 7751 fi 7752 fi 7753 $rm conftest* 7754 LDFLAGS="$save_LDFLAGS" 7755 7756fi 7757{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 7758echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } 7759 7760if test x"$lt_prog_compiler_static_works" = xyes; then 7761 : 7762else 7763 lt_prog_compiler_static= 7764fi 7765 7766 7767{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 7768echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 7769if test "${lt_cv_prog_compiler_c_o+set}" = set; then 7770 echo $ECHO_N "(cached) $ECHO_C" >&6 7771else 7772 lt_cv_prog_compiler_c_o=no 7773 $rm -r conftest 2>/dev/null 7774 mkdir conftest 7775 cd conftest 7776 mkdir out 7777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7778 7779 lt_compiler_flag="-o out/conftest2.$ac_objext" 7780 # Insert the option either (1) after the last *FLAGS variable, or 7781 # (2) before a word containing "conftest.", or (3) at the end. 7782 # Note that $ac_compile itself does not contain backslashes and begins 7783 # with a dollar sign (not a hyphen), so the echo should work correctly. 7784 lt_compile=`echo "$ac_compile" | $SED \ 7785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7787 -e 's:$: $lt_compiler_flag:'` 7788 (eval echo "\"\$as_me:7788: $lt_compile\"" >&5) 7789 (eval "$lt_compile" 2>out/conftest.err) 7790 ac_status=$? 7791 cat out/conftest.err >&5 7792 echo "$as_me:7792: \$? = $ac_status" >&5 7793 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7794 then 7795 # The compiler can only warn and ignore the option if not recognized 7796 # So say no if there are warnings 7797 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 7798 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7799 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7800 lt_cv_prog_compiler_c_o=yes 7801 fi 7802 fi 7803 chmod u+w . 2>&5 7804 $rm conftest* 7805 # SGI C++ compiler will create directory out/ii_files/ for 7806 # template instantiation 7807 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 7808 $rm out/* && rmdir out 7809 cd .. 7810 rmdir conftest 7811 $rm conftest* 7812 7813fi 7814{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 7815echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } 7816 7817 7818hard_links="nottested" 7819if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7820 # do not overwrite the value of need_locks provided by the user 7821 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 7822echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 7823 hard_links=yes 7824 $rm conftest* 7825 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7826 touch conftest.a 7827 ln conftest.a conftest.b 2>&5 || hard_links=no 7828 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7829 { echo "$as_me:$LINENO: result: $hard_links" >&5 7830echo "${ECHO_T}$hard_links" >&6; } 7831 if test "$hard_links" = no; then 7832 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7833echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7834 need_locks=warn 7835 fi 7836else 7837 need_locks=no 7838fi 7839 7840{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7841echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 7842 7843 runpath_var= 7844 allow_undefined_flag= 7845 enable_shared_with_static_runtimes=no 7846 archive_cmds= 7847 archive_expsym_cmds= 7848 old_archive_From_new_cmds= 7849 old_archive_from_expsyms_cmds= 7850 export_dynamic_flag_spec= 7851 whole_archive_flag_spec= 7852 thread_safe_flag_spec= 7853 hardcode_libdir_flag_spec= 7854 hardcode_libdir_flag_spec_ld= 7855 hardcode_libdir_separator= 7856 hardcode_direct=no 7857 hardcode_minus_L=no 7858 hardcode_shlibpath_var=unsupported 7859 link_all_deplibs=unknown 7860 hardcode_automatic=no 7861 module_cmds= 7862 module_expsym_cmds= 7863 always_export_symbols=no 7864 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7865 # include_expsyms should be a list of space-separated symbols to be *always* 7866 # included in the symbol list 7867 include_expsyms= 7868 # exclude_expsyms can be an extended regexp of symbols to exclude 7869 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7870 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7871 # as well as any symbol that contains `d'. 7872 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 7873 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7874 # platforms (ab)use it in PIC code, but their linkers get confused if 7875 # the symbol is explicitly referenced. Since portable code cannot 7876 # rely on this symbol name, it's probably fine to never include it in 7877 # preloaded symbol tables. 7878 extract_expsyms_cmds= 7879 # Just being paranoid about ensuring that cc_basename is set. 7880 for cc_temp in $compiler""; do 7881 case $cc_temp in 7882 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7883 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7884 \-*) ;; 7885 *) break;; 7886 esac 7887done 7888cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7889 7890 case $host_os in 7891 cygwin* | mingw* | pw32*) 7892 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7893 # When not using gcc, we currently assume that we are using 7894 # Microsoft Visual C++. 7895 if test "$GCC" != yes; then 7896 with_gnu_ld=no 7897 fi 7898 ;; 7899 interix*) 7900 # we just hope/assume this is gcc and not c89 (= MSVC++) 7901 with_gnu_ld=yes 7902 ;; 7903 openbsd*) 7904 with_gnu_ld=no 7905 ;; 7906 esac 7907 7908 ld_shlibs=yes 7909 if test "$with_gnu_ld" = yes; then 7910 # If archive_cmds runs LD, not CC, wlarc should be empty 7911 wlarc='${wl}' 7912 7913 # Set some defaults for GNU ld with shared library support. These 7914 # are reset later if shared libraries are not supported. Putting them 7915 # here allows them to be overridden if necessary. 7916 runpath_var=LD_RUN_PATH 7917 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 7918 export_dynamic_flag_spec='${wl}--export-dynamic' 7919 # ancient GNU ld didn't support --whole-archive et. al. 7920 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 7921 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7922 else 7923 whole_archive_flag_spec= 7924 fi 7925 supports_anon_versioning=no 7926 case `$LD -v 2>/dev/null` in 7927 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7928 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7929 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7930 *\ 2.11.*) ;; # other 2.11 versions 7931 *) supports_anon_versioning=yes ;; 7932 esac 7933 7934 # See if GNU ld supports shared libraries. 7935 case $host_os in 7936 aix3* | aix4* | aix5*) 7937 # On AIX/PPC, the GNU linker is very broken 7938 if test "$host_cpu" != ia64; then 7939 ld_shlibs=no 7940 cat <<EOF 1>&2 7941 7942*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7943*** to be unable to reliably create shared libraries on AIX. 7944*** Therefore, libtool is disabling shared libraries support. If you 7945*** really care for shared libraries, you may want to modify your PATH 7946*** so that a non-GNU linker is found, and then restart. 7947 7948EOF 7949 fi 7950 ;; 7951 7952 amigaos*) 7953 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)' 7954 hardcode_libdir_flag_spec='-L$libdir' 7955 hardcode_minus_L=yes 7956 7957 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7958 # that the semantics of dynamic libraries on AmigaOS, at least up 7959 # to version 4, is to share data among multiple programs linked 7960 # with the same dynamic library. Since this doesn't match the 7961 # behavior of shared libraries on other platforms, we can't use 7962 # them. 7963 ld_shlibs=no 7964 ;; 7965 7966 beos*) 7967 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7968 allow_undefined_flag=unsupported 7969 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7970 # support --undefined. This deserves some investigation. FIXME 7971 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7972 else 7973 ld_shlibs=no 7974 fi 7975 ;; 7976 7977 cygwin* | mingw* | pw32*) 7978 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7979 # as there is no search path for DLLs. 7980 hardcode_libdir_flag_spec='-L$libdir' 7981 allow_undefined_flag=unsupported 7982 always_export_symbols=no 7983 enable_shared_with_static_runtimes=yes 7984 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 7985 7986 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 7987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7988 # If the export-symbols file already is a .def file (1st line 7989 # is EXPORTS), use it as is; otherwise, prepend... 7990 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7991 cp $export_symbols $output_objdir/$soname.def; 7992 else 7993 echo EXPORTS > $output_objdir/$soname.def; 7994 cat $export_symbols >> $output_objdir/$soname.def; 7995 fi~ 7996 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7997 else 7998 ld_shlibs=no 7999 fi 8000 ;; 8001 8002 interix3*) 8003 hardcode_direct=no 8004 hardcode_shlibpath_var=no 8005 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8006 export_dynamic_flag_spec='${wl}-E' 8007 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8008 # Instead, shared libraries are loaded at an image base (0x10000000 by 8009 # default) and relocated if they conflict, which is a slow very memory 8010 # consuming and fragmenting process. To avoid this, we pick a random, 8011 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8012 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8013 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8014 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' 8015 ;; 8016 8017 linux* | k*bsd*-gnu) 8018 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8019 tmp_addflag= 8020 case $cc_basename,$host_cpu in 8021 pgcc*) # Portland Group C compiler 8022 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' 8023 tmp_addflag=' $pic_flag' 8024 ;; 8025 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8026 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' 8027 tmp_addflag=' $pic_flag -Mnomain' ;; 8028 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8029 tmp_addflag=' -i_dynamic' ;; 8030 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8031 tmp_addflag=' -i_dynamic -nofor_main' ;; 8032 ifc* | ifort*) # Intel Fortran compiler 8033 tmp_addflag=' -nofor_main' ;; 8034 esac 8035 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8036 8037 if test $supports_anon_versioning = yes; then 8038 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8040 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8041 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8042 fi 8043 link_all_deplibs=no 8044 else 8045 ld_shlibs=no 8046 fi 8047 ;; 8048 8049 netbsd* | netbsdelf*-gnu) 8050 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8051 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8052 wlarc= 8053 else 8054 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8055 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8056 fi 8057 ;; 8058 8059 solaris*) 8060 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 8061 ld_shlibs=no 8062 cat <<EOF 1>&2 8063 8064*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8065*** create shared libraries on Solaris systems. Therefore, libtool 8066*** is disabling shared libraries support. We urge you to upgrade GNU 8067*** binutils to release 2.9.1 or newer. Another option is to modify 8068*** your PATH or compiler configuration so that the native linker is 8069*** used, and then restart. 8070 8071EOF 8072 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8073 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8074 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8075 else 8076 ld_shlibs=no 8077 fi 8078 ;; 8079 8080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8081 case `$LD -v 2>&1` in 8082 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8083 ld_shlibs=no 8084 cat <<_LT_EOF 1>&2 8085 8086*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8087*** reliably create shared libraries on SCO systems. Therefore, libtool 8088*** is disabling shared libraries support. We urge you to upgrade GNU 8089*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8090*** your PATH or compiler configuration so that the native linker is 8091*** used, and then restart. 8092 8093_LT_EOF 8094 ;; 8095 *) 8096 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8097 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8099 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 8100 else 8101 ld_shlibs=no 8102 fi 8103 ;; 8104 esac 8105 ;; 8106 8107 sunos4*) 8108 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8109 wlarc= 8110 hardcode_direct=yes 8111 hardcode_shlibpath_var=no 8112 ;; 8113 8114 *) 8115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8117 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8118 else 8119 ld_shlibs=no 8120 fi 8121 ;; 8122 esac 8123 8124 if test "$ld_shlibs" = no; then 8125 runpath_var= 8126 hardcode_libdir_flag_spec= 8127 export_dynamic_flag_spec= 8128 whole_archive_flag_spec= 8129 fi 8130 else 8131 # PORTME fill in a description of your system's linker (not GNU ld) 8132 case $host_os in 8133 aix3*) 8134 allow_undefined_flag=unsupported 8135 always_export_symbols=yes 8136 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' 8137 # Note: this linker hardcodes the directories in LIBPATH if there 8138 # are no directories specified by -L. 8139 hardcode_minus_L=yes 8140 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8141 # Neither direct hardcoding nor static linking is supported with a 8142 # broken collect2. 8143 hardcode_direct=unsupported 8144 fi 8145 ;; 8146 8147 aix4* | aix5*) 8148 if test "$host_cpu" = ia64; then 8149 # On IA64, the linker does run time linking by default, so we don't 8150 # have to do anything special. 8151 aix_use_runtimelinking=no 8152 exp_sym_flag='-Bexport' 8153 no_entry_flag="" 8154 else 8155 # If we're using GNU nm, then we don't want the "-C" option. 8156 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8157 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 8158 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' 8159 else 8160 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' 8161 fi 8162 aix_use_runtimelinking=no 8163 8164 # Test if we are trying to use run time linking or normal 8165 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8166 # need to do runtime linking. 8167 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 8168 for ld_flag in $LDFLAGS; do 8169 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8170 aix_use_runtimelinking=yes 8171 break 8172 fi 8173 done 8174 ;; 8175 esac 8176 8177 exp_sym_flag='-bexport' 8178 no_entry_flag='-bnoentry' 8179 fi 8180 8181 # When large executables or shared objects are built, AIX ld can 8182 # have problems creating the table of contents. If linking a library 8183 # or program results in "error TOC overflow" add -mminimal-toc to 8184 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8185 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8186 8187 archive_cmds='' 8188 hardcode_direct=yes 8189 hardcode_libdir_separator=':' 8190 link_all_deplibs=yes 8191 8192 if test "$GCC" = yes; then 8193 case $host_os in aix4.[012]|aix4.[012].*) 8194 # We only want to do this on AIX 4.2 and lower, the check 8195 # below for broken collect2 doesn't work under 4.3+ 8196 collect2name=`${CC} -print-prog-name=collect2` 8197 if test -f "$collect2name" && \ 8198 strings "$collect2name" | grep resolve_lib_name >/dev/null 8199 then 8200 # We have reworked collect2 8201 hardcode_direct=yes 8202 else 8203 # We have old collect2 8204 hardcode_direct=unsupported 8205 # It fails to find uninstalled libraries when the uninstalled 8206 # path is not listed in the libpath. Setting hardcode_minus_L 8207 # to unsupported forces relinking 8208 hardcode_minus_L=yes 8209 hardcode_libdir_flag_spec='-L$libdir' 8210 hardcode_libdir_separator= 8211 fi 8212 ;; 8213 esac 8214 shared_flag='-shared' 8215 if test "$aix_use_runtimelinking" = yes; then 8216 shared_flag="$shared_flag "'${wl}-G' 8217 fi 8218 else 8219 # not using gcc 8220 if test "$host_cpu" = ia64; then 8221 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8222 # chokes on -Wl,-G. The following line is correct: 8223 shared_flag='-G' 8224 else 8225 if test "$aix_use_runtimelinking" = yes; then 8226 shared_flag='${wl}-G' 8227 else 8228 shared_flag='${wl}-bM:SRE' 8229 fi 8230 fi 8231 fi 8232 8233 # It seems that -bexpall does not export symbols beginning with 8234 # underscore (_), so it is better to generate a list of symbols to export. 8235 always_export_symbols=yes 8236 if test "$aix_use_runtimelinking" = yes; then 8237 # Warning - without using the other runtime loading flags (-brtl), 8238 # -berok will link without error, but may produce a broken library. 8239 allow_undefined_flag='-berok' 8240 # Determine the default libpath from the value encoded in an empty executable. 8241 cat >conftest.$ac_ext <<_ACEOF 8242/* confdefs.h. */ 8243_ACEOF 8244cat confdefs.h >>conftest.$ac_ext 8245cat >>conftest.$ac_ext <<_ACEOF 8246/* end confdefs.h. */ 8247 8248int 8249main () 8250{ 8251 8252 ; 8253 return 0; 8254} 8255_ACEOF 8256rm -f conftest.$ac_objext conftest$ac_exeext 8257if { (ac_try="$ac_link" 8258case "(($ac_try" in 8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8260 *) ac_try_echo=$ac_try;; 8261esac 8262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8263 (eval "$ac_link") 2>conftest.er1 8264 ac_status=$? 8265 grep -v '^ *+' conftest.er1 >conftest.err 8266 rm -f conftest.er1 8267 cat conftest.err >&5 8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8269 (exit $ac_status); } && 8270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8271 { (case "(($ac_try" in 8272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8273 *) ac_try_echo=$ac_try;; 8274esac 8275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8276 (eval "$ac_try") 2>&5 8277 ac_status=$? 8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8279 (exit $ac_status); }; } && 8280 { ac_try='test -s conftest$ac_exeext' 8281 { (case "(($ac_try" in 8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8283 *) ac_try_echo=$ac_try;; 8284esac 8285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8286 (eval "$ac_try") 2>&5 8287 ac_status=$? 8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8289 (exit $ac_status); }; }; then 8290 8291aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8292}'` 8293# Check for a 64-bit object if we didn't find anything. 8294if 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; } 8295}'`; fi 8296else 8297 echo "$as_me: failed program was:" >&5 8298sed 's/^/| /' conftest.$ac_ext >&5 8299 8300 8301fi 8302 8303rm -f core conftest.err conftest.$ac_objext \ 8304 conftest$ac_exeext conftest.$ac_ext 8305if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8306 8307 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8308 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" 8309 else 8310 if test "$host_cpu" = ia64; then 8311 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8312 allow_undefined_flag="-z nodefs" 8313 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" 8314 else 8315 # Determine the default libpath from the value encoded in an empty executable. 8316 cat >conftest.$ac_ext <<_ACEOF 8317/* confdefs.h. */ 8318_ACEOF 8319cat confdefs.h >>conftest.$ac_ext 8320cat >>conftest.$ac_ext <<_ACEOF 8321/* end confdefs.h. */ 8322 8323int 8324main () 8325{ 8326 8327 ; 8328 return 0; 8329} 8330_ACEOF 8331rm -f conftest.$ac_objext conftest$ac_exeext 8332if { (ac_try="$ac_link" 8333case "(($ac_try" in 8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8335 *) ac_try_echo=$ac_try;; 8336esac 8337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8338 (eval "$ac_link") 2>conftest.er1 8339 ac_status=$? 8340 grep -v '^ *+' conftest.er1 >conftest.err 8341 rm -f conftest.er1 8342 cat conftest.err >&5 8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8344 (exit $ac_status); } && 8345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8346 { (case "(($ac_try" in 8347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8348 *) ac_try_echo=$ac_try;; 8349esac 8350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8351 (eval "$ac_try") 2>&5 8352 ac_status=$? 8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8354 (exit $ac_status); }; } && 8355 { ac_try='test -s conftest$ac_exeext' 8356 { (case "(($ac_try" in 8357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8358 *) ac_try_echo=$ac_try;; 8359esac 8360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8361 (eval "$ac_try") 2>&5 8362 ac_status=$? 8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8364 (exit $ac_status); }; }; then 8365 8366aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 8367}'` 8368# Check for a 64-bit object if we didn't find anything. 8369if 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; } 8370}'`; fi 8371else 8372 echo "$as_me: failed program was:" >&5 8373sed 's/^/| /' conftest.$ac_ext >&5 8374 8375 8376fi 8377 8378rm -f core conftest.err conftest.$ac_objext \ 8379 conftest$ac_exeext conftest.$ac_ext 8380if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8381 8382 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8383 # Warning - without using the other run time loading flags, 8384 # -berok will link without error, but may produce a broken library. 8385 no_undefined_flag=' ${wl}-bernotok' 8386 allow_undefined_flag=' ${wl}-berok' 8387 # Exported symbols can be pulled into shared objects from archives 8388 whole_archive_flag_spec='$convenience' 8389 archive_cmds_need_lc=yes 8390 # This is similar to how AIX traditionally builds its shared libraries. 8391 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' 8392 fi 8393 fi 8394 ;; 8395 8396 amigaos*) 8397 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)' 8398 hardcode_libdir_flag_spec='-L$libdir' 8399 hardcode_minus_L=yes 8400 # see comment about different semantics on the GNU ld section 8401 ld_shlibs=no 8402 ;; 8403 8404 bsdi[45]*) 8405 export_dynamic_flag_spec=-rdynamic 8406 ;; 8407 8408 cygwin* | mingw* | pw32*) 8409 # When not using gcc, we currently assume that we are using 8410 # Microsoft Visual C++. 8411 # hardcode_libdir_flag_spec is actually meaningless, as there is 8412 # no search path for DLLs. 8413 hardcode_libdir_flag_spec=' ' 8414 allow_undefined_flag=unsupported 8415 # Tell ltmain to make .lib files, not .a files. 8416 libext=lib 8417 # Tell ltmain to make .dll files, not .so files. 8418 shrext_cmds=".dll" 8419 # FIXME: Setting linknames here is a bad hack. 8420 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8421 # The linker will automatically build a .lib file if we build a DLL. 8422 old_archive_From_new_cmds='true' 8423 # FIXME: Should let the user specify the lib program. 8424 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 8425 fix_srcfile_path='`cygpath -w "$srcfile"`' 8426 enable_shared_with_static_runtimes=yes 8427 ;; 8428 8429 darwin* | rhapsody*) 8430 case $host_os in 8431 rhapsody* | darwin1.[012]) 8432 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8433 ;; 8434 *) # Darwin 1.3 on 8435 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8436 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8437 else 8438 case ${MACOSX_DEPLOYMENT_TARGET} in 8439 10.[012]) 8440 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8441 ;; 8442 10.*) 8443 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8444 ;; 8445 esac 8446 fi 8447 ;; 8448 esac 8449 archive_cmds_need_lc=no 8450 hardcode_direct=no 8451 hardcode_automatic=yes 8452 hardcode_shlibpath_var=unsupported 8453 whole_archive_flag_spec='' 8454 link_all_deplibs=yes 8455 if test "$GCC" = yes ; then 8456 output_verbose_link_cmd='echo' 8457 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 8458 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8460 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}' 8461 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}' 8462 else 8463 case $cc_basename in 8464 xlc*) 8465 output_verbose_link_cmd='echo' 8466 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 8467 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8468 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8469 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}' 8470 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}' 8471 ;; 8472 *) 8473 ld_shlibs=no 8474 ;; 8475 esac 8476 fi 8477 ;; 8478 8479 dgux*) 8480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8481 hardcode_libdir_flag_spec='-L$libdir' 8482 hardcode_shlibpath_var=no 8483 ;; 8484 8485 freebsd1*) 8486 ld_shlibs=no 8487 ;; 8488 8489 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8490 # support. Future versions do this automatically, but an explicit c++rt0.o 8491 # does not break anything, and helps significantly (at the cost of a little 8492 # extra space). 8493 freebsd2.2*) 8494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8495 hardcode_libdir_flag_spec='-R$libdir' 8496 hardcode_direct=yes 8497 hardcode_shlibpath_var=no 8498 ;; 8499 8500 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8501 freebsd2*) 8502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8503 hardcode_direct=yes 8504 hardcode_minus_L=yes 8505 hardcode_shlibpath_var=no 8506 ;; 8507 8508 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8509 freebsd* | dragonfly*) 8510 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8511 hardcode_libdir_flag_spec='-R$libdir' 8512 hardcode_direct=yes 8513 hardcode_shlibpath_var=no 8514 ;; 8515 8516 hpux9*) 8517 if test "$GCC" = yes; then 8518 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' 8519 else 8520 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' 8521 fi 8522 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8523 hardcode_libdir_separator=: 8524 hardcode_direct=yes 8525 8526 # hardcode_minus_L: Not really in the search PATH, 8527 # but as the default location of the library. 8528 hardcode_minus_L=yes 8529 export_dynamic_flag_spec='${wl}-E' 8530 ;; 8531 8532 hpux10*) 8533 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8534 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8535 else 8536 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8537 fi 8538 if test "$with_gnu_ld" = no; then 8539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8540 hardcode_libdir_separator=: 8541 8542 hardcode_direct=yes 8543 export_dynamic_flag_spec='${wl}-E' 8544 8545 # hardcode_minus_L: Not really in the search PATH, 8546 # but as the default location of the library. 8547 hardcode_minus_L=yes 8548 fi 8549 ;; 8550 8551 hpux11*) 8552 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 8553 case $host_cpu in 8554 hppa*64*) 8555 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8556 ;; 8557 ia64*) 8558 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8559 ;; 8560 *) 8561 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8562 ;; 8563 esac 8564 else 8565 case $host_cpu in 8566 hppa*64*) 8567 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8568 ;; 8569 ia64*) 8570 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8571 ;; 8572 *) 8573 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8574 ;; 8575 esac 8576 fi 8577 if test "$with_gnu_ld" = no; then 8578 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8579 hardcode_libdir_separator=: 8580 8581 case $host_cpu in 8582 hppa*64*|ia64*) 8583 hardcode_libdir_flag_spec_ld='+b $libdir' 8584 hardcode_direct=no 8585 hardcode_shlibpath_var=no 8586 ;; 8587 *) 8588 hardcode_direct=yes 8589 export_dynamic_flag_spec='${wl}-E' 8590 8591 # hardcode_minus_L: Not really in the search PATH, 8592 # but as the default location of the library. 8593 hardcode_minus_L=yes 8594 ;; 8595 esac 8596 fi 8597 ;; 8598 8599 irix5* | irix6* | nonstopux*) 8600 if test "$GCC" = yes; then 8601 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' 8602 else 8603 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' 8604 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8605 fi 8606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8607 hardcode_libdir_separator=: 8608 link_all_deplibs=yes 8609 ;; 8610 8611 netbsd* | netbsdelf*-gnu) 8612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8614 else 8615 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8616 fi 8617 hardcode_libdir_flag_spec='-R$libdir' 8618 hardcode_direct=yes 8619 hardcode_shlibpath_var=no 8620 ;; 8621 8622 newsos6) 8623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8624 hardcode_direct=yes 8625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8626 hardcode_libdir_separator=: 8627 hardcode_shlibpath_var=no 8628 ;; 8629 8630 openbsd*) 8631 hardcode_direct=yes 8632 hardcode_shlibpath_var=no 8633 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8635 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8636 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8637 export_dynamic_flag_spec='${wl}-E' 8638 else 8639 case $host_os in 8640 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8642 hardcode_libdir_flag_spec='-R$libdir' 8643 ;; 8644 *) 8645 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8646 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8647 ;; 8648 esac 8649 fi 8650 ;; 8651 8652 os2*) 8653 hardcode_libdir_flag_spec='-L$libdir' 8654 hardcode_minus_L=yes 8655 allow_undefined_flag=unsupported 8656 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' 8657 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8658 ;; 8659 8660 osf3*) 8661 if test "$GCC" = yes; then 8662 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8663 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' 8664 else 8665 allow_undefined_flag=' -expect_unresolved \*' 8666 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' 8667 fi 8668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8669 hardcode_libdir_separator=: 8670 ;; 8671 8672 osf4* | osf5*) # as osf3* with the addition of -msym flag 8673 if test "$GCC" = yes; then 8674 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8675 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' 8676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8677 else 8678 allow_undefined_flag=' -expect_unresolved \*' 8679 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' 8680 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 8681 $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' 8682 8683 # Both c and cxx compiler support -rpath directly 8684 hardcode_libdir_flag_spec='-rpath $libdir' 8685 fi 8686 hardcode_libdir_separator=: 8687 ;; 8688 8689 solaris*) 8690 no_undefined_flag=' -z text' 8691 if test "$GCC" = yes; then 8692 wlarc='${wl}' 8693 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8694 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8695 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 8696 else 8697 wlarc='' 8698 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8699 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8700 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 8701 fi 8702 hardcode_libdir_flag_spec='-R$libdir' 8703 hardcode_shlibpath_var=no 8704 case $host_os in 8705 solaris2.[0-5] | solaris2.[0-5].*) ;; 8706 *) 8707 # The compiler driver will combine linker options so we 8708 # cannot just pass the convience library names through 8709 # without $wl, iff we do not link with $LD. 8710 # Luckily, gcc supports the same syntax we need for Sun Studio. 8711 # Supported since Solaris 2.6 (maybe 2.5.1?) 8712 case $wlarc in 8713 '') 8714 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 8715 *) 8716 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' ;; 8717 esac ;; 8718 esac 8719 link_all_deplibs=yes 8720 ;; 8721 8722 sunos4*) 8723 if test "x$host_vendor" = xsequent; then 8724 # Use $CC to link under sequent, because it throws in some extra .o 8725 # files that make .init and .fini sections work. 8726 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8727 else 8728 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8729 fi 8730 hardcode_libdir_flag_spec='-L$libdir' 8731 hardcode_direct=yes 8732 hardcode_minus_L=yes 8733 hardcode_shlibpath_var=no 8734 ;; 8735 8736 sysv4) 8737 case $host_vendor in 8738 sni) 8739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8740 hardcode_direct=yes # is this really true??? 8741 ;; 8742 siemens) 8743 ## LD is ld it makes a PLAMLIB 8744 ## CC just makes a GrossModule. 8745 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8746 reload_cmds='$CC -r -o $output$reload_objs' 8747 hardcode_direct=no 8748 ;; 8749 motorola) 8750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8751 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8752 ;; 8753 esac 8754 runpath_var='LD_RUN_PATH' 8755 hardcode_shlibpath_var=no 8756 ;; 8757 8758 sysv4.3*) 8759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8760 hardcode_shlibpath_var=no 8761 export_dynamic_flag_spec='-Bexport' 8762 ;; 8763 8764 sysv4*MP*) 8765 if test -d /usr/nec; then 8766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8767 hardcode_shlibpath_var=no 8768 runpath_var=LD_RUN_PATH 8769 hardcode_runpath_var=yes 8770 ld_shlibs=yes 8771 fi 8772 ;; 8773 8774 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 8775 no_undefined_flag='${wl}-z,text' 8776 archive_cmds_need_lc=no 8777 hardcode_shlibpath_var=no 8778 runpath_var='LD_RUN_PATH' 8779 8780 if test "$GCC" = yes; then 8781 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8782 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8783 else 8784 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8785 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8786 fi 8787 ;; 8788 8789 sysv5* | sco3.2v5* | sco5v6*) 8790 # Note: We can NOT use -z defs as we might desire, because we do not 8791 # link with -lc, and that would cause any symbols used from libc to 8792 # always be unresolved, which means just about no library would 8793 # ever link correctly. If we're not using GNU ld we use -z text 8794 # though, which does catch some bad symbols but isn't as heavy-handed 8795 # as -z defs. 8796 no_undefined_flag='${wl}-z,text' 8797 allow_undefined_flag='${wl}-z,nodefs' 8798 archive_cmds_need_lc=no 8799 hardcode_shlibpath_var=no 8800 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 8801 hardcode_libdir_separator=':' 8802 link_all_deplibs=yes 8803 export_dynamic_flag_spec='${wl}-Bexport' 8804 runpath_var='LD_RUN_PATH' 8805 8806 if test "$GCC" = yes; then 8807 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8808 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8809 else 8810 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8811 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 8812 fi 8813 ;; 8814 8815 uts4*) 8816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8817 hardcode_libdir_flag_spec='-L$libdir' 8818 hardcode_shlibpath_var=no 8819 ;; 8820 8821 *) 8822 ld_shlibs=no 8823 ;; 8824 esac 8825 fi 8826 8827{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8828echo "${ECHO_T}$ld_shlibs" >&6; } 8829test "$ld_shlibs" = no && can_build_shared=no 8830 8831# 8832# Do we need to explicitly link libc? 8833# 8834case "x$archive_cmds_need_lc" in 8835x|xyes) 8836 # Assume -lc should be added 8837 archive_cmds_need_lc=yes 8838 8839 if test "$enable_shared" = yes && test "$GCC" = yes; then 8840 case $archive_cmds in 8841 *'~'*) 8842 # FIXME: we may have to deal with multi-command sequences. 8843 ;; 8844 '$CC '*) 8845 # Test whether the compiler implicitly links with -lc since on some 8846 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8847 # to ld, don't add -lc before -lgcc. 8848 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8849echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 8850 $rm conftest* 8851 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 8852 8853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8854 (eval $ac_compile) 2>&5 8855 ac_status=$? 8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8857 (exit $ac_status); } 2>conftest.err; then 8858 soname=conftest 8859 lib=conftest 8860 libobjs=conftest.$ac_objext 8861 deplibs= 8862 wl=$lt_prog_compiler_wl 8863 pic_flag=$lt_prog_compiler_pic 8864 compiler_flags=-v 8865 linker_flags=-v 8866 verstring= 8867 output_objdir=. 8868 libname=conftest 8869 lt_save_allow_undefined_flag=$allow_undefined_flag 8870 allow_undefined_flag= 8871 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 8872 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 8873 ac_status=$? 8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8875 (exit $ac_status); } 8876 then 8877 archive_cmds_need_lc=no 8878 else 8879 archive_cmds_need_lc=yes 8880 fi 8881 allow_undefined_flag=$lt_save_allow_undefined_flag 8882 else 8883 cat conftest.err 1>&5 8884 fi 8885 $rm conftest* 8886 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8887echo "${ECHO_T}$archive_cmds_need_lc" >&6; } 8888 ;; 8889 esac 8890 fi 8891 ;; 8892esac 8893 8894{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8895echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 8896library_names_spec= 8897libname_spec='lib$name' 8898soname_spec= 8899shrext_cmds=".so" 8900postinstall_cmds= 8901postuninstall_cmds= 8902finish_cmds= 8903finish_eval= 8904shlibpath_var= 8905shlibpath_overrides_runpath=unknown 8906version_type=none 8907dynamic_linker="$host_os ld.so" 8908sys_lib_dlsearch_path_spec="/lib /usr/lib" 8909if test "$GCC" = yes; then 8910 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8911 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 8912 # if the path contains ";" then we assume it to be the separator 8913 # otherwise default to the standard path separator (i.e. ":") - it is 8914 # assumed that no part of a normal pathname contains ";" but that should 8915 # okay in the real world where ";" in dirpaths is itself problematic. 8916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8917 else 8918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8919 fi 8920else 8921 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8922fi 8923need_lib_prefix=unknown 8924hardcode_into_libs=no 8925 8926# when you set need_version to no, make sure it does not cause -set_version 8927# flags to be left without arguments 8928need_version=unknown 8929 8930case $host_os in 8931aix3*) 8932 version_type=linux 8933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8934 shlibpath_var=LIBPATH 8935 8936 # AIX 3 has no versioning support, so we append a major version to the name. 8937 soname_spec='${libname}${release}${shared_ext}$major' 8938 ;; 8939 8940aix4* | aix5*) 8941 version_type=linux 8942 need_lib_prefix=no 8943 need_version=no 8944 hardcode_into_libs=yes 8945 if test "$host_cpu" = ia64; then 8946 # AIX 5 supports IA64 8947 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8948 shlibpath_var=LD_LIBRARY_PATH 8949 else 8950 # With GCC up to 2.95.x, collect2 would create an import file 8951 # for dependence libraries. The import file would start with 8952 # the line `#! .'. This would cause the generated library to 8953 # depend on `.', always an invalid library. This was fixed in 8954 # development snapshots of GCC prior to 3.0. 8955 case $host_os in 8956 aix4 | aix4.[01] | aix4.[01].*) 8957 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8958 echo ' yes ' 8959 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 8960 : 8961 else 8962 can_build_shared=no 8963 fi 8964 ;; 8965 esac 8966 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8967 # soname into executable. Probably we can add versioning support to 8968 # collect2, so additional links can be useful in future. 8969 if test "$aix_use_runtimelinking" = yes; then 8970 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8971 # instead of lib<name>.a to let people know that these are not 8972 # typical AIX shared libraries. 8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8974 else 8975 # We preserve .a as extension for shared libraries through AIX4.2 8976 # and later when we are not doing run time linking. 8977 library_names_spec='${libname}${release}.a $libname.a' 8978 soname_spec='${libname}${release}${shared_ext}$major' 8979 fi 8980 shlibpath_var=LIBPATH 8981 fi 8982 ;; 8983 8984amigaos*) 8985 library_names_spec='$libname.ixlibrary $libname.a' 8986 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8987 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' 8988 ;; 8989 8990beos*) 8991 library_names_spec='${libname}${shared_ext}' 8992 dynamic_linker="$host_os ld.so" 8993 shlibpath_var=LIBRARY_PATH 8994 ;; 8995 8996bsdi[45]*) 8997 version_type=linux 8998 need_version=no 8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9000 soname_spec='${libname}${release}${shared_ext}$major' 9001 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9002 shlibpath_var=LD_LIBRARY_PATH 9003 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9004 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9005 # the default ld.so.conf also contains /usr/contrib/lib and 9006 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9007 # libtool to hard-code these into programs 9008 ;; 9009 9010cygwin* | mingw* | pw32*) 9011 version_type=windows 9012 shrext_cmds=".dll" 9013 need_version=no 9014 need_lib_prefix=no 9015 9016 case $GCC,$host_os in 9017 yes,cygwin* | yes,mingw* | yes,pw32*) 9018 library_names_spec='$libname.dll.a' 9019 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9020 postinstall_cmds='base_file=`basename \${file}`~ 9021 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 9022 dldir=$destdir/`dirname \$dlpath`~ 9023 test -d \$dldir || mkdir -p \$dldir~ 9024 $install_prog $dir/$dlname \$dldir/$dlname~ 9025 chmod a+x \$dldir/$dlname' 9026 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9027 dlpath=$dir/\$dldll~ 9028 $rm \$dlpath' 9029 shlibpath_overrides_runpath=yes 9030 9031 case $host_os in 9032 cygwin*) 9033 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9034 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9035 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9036 ;; 9037 mingw*) 9038 # MinGW DLLs use traditional 'lib' prefix 9039 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9040 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9041 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 9042 # It is most probably a Windows format PATH printed by 9043 # mingw gcc, but we are running on Cygwin. Gcc prints its search 9044 # path with ; separators, and with drive letters. We can handle the 9045 # drive letters (cygwin fileutils understands them), so leave them, 9046 # especially as we might pass files found there to a mingw objdump, 9047 # which wouldn't understand a cygwinified path. Ahh. 9048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9049 else 9050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9051 fi 9052 ;; 9053 pw32*) 9054 # pw32 DLLs use 'pw' prefix rather than 'lib' 9055 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9056 ;; 9057 esac 9058 ;; 9059 9060 *) 9061 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9062 ;; 9063 esac 9064 dynamic_linker='Win32 ld.exe' 9065 # FIXME: first we should search . and the directory the executable is in 9066 shlibpath_var=PATH 9067 ;; 9068 9069darwin* | rhapsody*) 9070 dynamic_linker="$host_os dyld" 9071 version_type=darwin 9072 need_lib_prefix=no 9073 need_version=no 9074 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9075 soname_spec='${libname}${release}${major}$shared_ext' 9076 shlibpath_overrides_runpath=yes 9077 shlibpath_var=DYLD_LIBRARY_PATH 9078 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9079 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 9080 if test "$GCC" = yes; then 9081 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"` 9082 else 9083 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 9084 fi 9085 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9086 ;; 9087 9088dgux*) 9089 version_type=linux 9090 need_lib_prefix=no 9091 need_version=no 9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9093 soname_spec='${libname}${release}${shared_ext}$major' 9094 shlibpath_var=LD_LIBRARY_PATH 9095 ;; 9096 9097freebsd1*) 9098 dynamic_linker=no 9099 ;; 9100 9101freebsd* | dragonfly*) 9102 # DragonFly does not have aout. When/if they implement a new 9103 # versioning mechanism, adjust this. 9104 if test -x /usr/bin/objformat; then 9105 objformat=`/usr/bin/objformat` 9106 else 9107 case $host_os in 9108 freebsd[123]*) objformat=aout ;; 9109 *) objformat=elf ;; 9110 esac 9111 fi 9112 version_type=freebsd-$objformat 9113 case $version_type in 9114 freebsd-elf*) 9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9116 need_version=no 9117 need_lib_prefix=no 9118 ;; 9119 freebsd-*) 9120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9121 need_version=yes 9122 ;; 9123 esac 9124 shlibpath_var=LD_LIBRARY_PATH 9125 case $host_os in 9126 freebsd2*) 9127 shlibpath_overrides_runpath=yes 9128 ;; 9129 freebsd3.[01]* | freebsdelf3.[01]*) 9130 shlibpath_overrides_runpath=yes 9131 hardcode_into_libs=yes 9132 ;; 9133 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9134 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9135 shlibpath_overrides_runpath=no 9136 hardcode_into_libs=yes 9137 ;; 9138 freebsd*) # from 4.6 on 9139 shlibpath_overrides_runpath=yes 9140 hardcode_into_libs=yes 9141 ;; 9142 esac 9143 ;; 9144 9145gnu*) 9146 version_type=linux 9147 need_lib_prefix=no 9148 need_version=no 9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9150 soname_spec='${libname}${release}${shared_ext}$major' 9151 shlibpath_var=LD_LIBRARY_PATH 9152 hardcode_into_libs=yes 9153 ;; 9154 9155hpux9* | hpux10* | hpux11*) 9156 # Give a soname corresponding to the major version so that dld.sl refuses to 9157 # link against other versions. 9158 version_type=sunos 9159 need_lib_prefix=no 9160 need_version=no 9161 case $host_cpu in 9162 ia64*) 9163 shrext_cmds='.so' 9164 hardcode_into_libs=yes 9165 dynamic_linker="$host_os dld.so" 9166 shlibpath_var=LD_LIBRARY_PATH 9167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9169 soname_spec='${libname}${release}${shared_ext}$major' 9170 if test "X$HPUX_IA64_MODE" = X32; then 9171 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9172 else 9173 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9174 fi 9175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9176 ;; 9177 hppa*64*) 9178 shrext_cmds='.sl' 9179 hardcode_into_libs=yes 9180 dynamic_linker="$host_os dld.sl" 9181 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9184 soname_spec='${libname}${release}${shared_ext}$major' 9185 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9187 ;; 9188 *) 9189 shrext_cmds='.sl' 9190 dynamic_linker="$host_os dld.sl" 9191 shlibpath_var=SHLIB_PATH 9192 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9194 soname_spec='${libname}${release}${shared_ext}$major' 9195 ;; 9196 esac 9197 # HP-UX runs *really* slowly unless shared libraries are mode 555. 9198 postinstall_cmds='chmod 555 $lib' 9199 ;; 9200 9201interix3*) 9202 version_type=linux 9203 need_lib_prefix=no 9204 need_version=no 9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9206 soname_spec='${libname}${release}${shared_ext}$major' 9207 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9208 shlibpath_var=LD_LIBRARY_PATH 9209 shlibpath_overrides_runpath=no 9210 hardcode_into_libs=yes 9211 ;; 9212 9213irix5* | irix6* | nonstopux*) 9214 case $host_os in 9215 nonstopux*) version_type=nonstopux ;; 9216 *) 9217 if test "$lt_cv_prog_gnu_ld" = yes; then 9218 version_type=linux 9219 else 9220 version_type=irix 9221 fi ;; 9222 esac 9223 need_lib_prefix=no 9224 need_version=no 9225 soname_spec='${libname}${release}${shared_ext}$major' 9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9227 case $host_os in 9228 irix5* | nonstopux*) 9229 libsuff= shlibsuff= 9230 ;; 9231 *) 9232 case $LD in # libtool.m4 will add one of these switches to LD 9233 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9234 libsuff= shlibsuff= libmagic=32-bit;; 9235 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9236 libsuff=32 shlibsuff=N32 libmagic=N32;; 9237 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9238 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9239 *) libsuff= shlibsuff= libmagic=never-match;; 9240 esac 9241 ;; 9242 esac 9243 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9244 shlibpath_overrides_runpath=no 9245 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9246 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9247 hardcode_into_libs=yes 9248 ;; 9249 9250# No shared lib support for Linux oldld, aout, or coff. 9251linux*oldld* | linux*aout* | linux*coff*) 9252 dynamic_linker=no 9253 ;; 9254 9255# This must be Linux ELF. 9256linux* | k*bsd*-gnu) 9257 version_type=linux 9258 need_lib_prefix=no 9259 need_version=no 9260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9261 soname_spec='${libname}${release}${shared_ext}$major' 9262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9263 shlibpath_var=LD_LIBRARY_PATH 9264 shlibpath_overrides_runpath=no 9265 # This implies no fast_install, which is unacceptable. 9266 # Some rework will be needed to allow for fast_install 9267 # before this can be enabled. 9268 hardcode_into_libs=yes 9269 9270 # Append ld.so.conf contents to the search path 9271 if test -f /etc/ld.so.conf; then 9272 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' ' '` 9273 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9274 fi 9275 9276 # We used to test for /lib/ld.so.1 and disable shared libraries on 9277 # powerpc, because MkLinux only supported shared libraries with the 9278 # GNU dynamic linker. Since this was broken with cross compilers, 9279 # most powerpc-linux boxes support dynamic linking these days and 9280 # people can always --disable-shared, the test was removed, and we 9281 # assume the GNU/Linux dynamic linker is in use. 9282 dynamic_linker='GNU/Linux ld.so' 9283 ;; 9284 9285netbsdelf*-gnu) 9286 version_type=linux 9287 need_lib_prefix=no 9288 need_version=no 9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9290 soname_spec='${libname}${release}${shared_ext}$major' 9291 shlibpath_var=LD_LIBRARY_PATH 9292 shlibpath_overrides_runpath=no 9293 hardcode_into_libs=yes 9294 dynamic_linker='NetBSD ld.elf_so' 9295 ;; 9296 9297netbsd*) 9298 version_type=sunos 9299 need_lib_prefix=no 9300 need_version=no 9301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9304 dynamic_linker='NetBSD (a.out) ld.so' 9305 else 9306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9307 soname_spec='${libname}${release}${shared_ext}$major' 9308 dynamic_linker='NetBSD ld.elf_so' 9309 fi 9310 shlibpath_var=LD_LIBRARY_PATH 9311 shlibpath_overrides_runpath=yes 9312 hardcode_into_libs=yes 9313 ;; 9314 9315newsos6) 9316 version_type=linux 9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9318 shlibpath_var=LD_LIBRARY_PATH 9319 shlibpath_overrides_runpath=yes 9320 ;; 9321 9322nto-qnx*) 9323 version_type=linux 9324 need_lib_prefix=no 9325 need_version=no 9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9327 soname_spec='${libname}${release}${shared_ext}$major' 9328 shlibpath_var=LD_LIBRARY_PATH 9329 shlibpath_overrides_runpath=yes 9330 ;; 9331 9332openbsd*) 9333 version_type=sunos 9334 sys_lib_dlsearch_path_spec="/usr/lib" 9335 need_lib_prefix=no 9336 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9337 case $host_os in 9338 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9339 *) need_version=no ;; 9340 esac 9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9343 shlibpath_var=LD_LIBRARY_PATH 9344 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9345 case $host_os in 9346 openbsd2.[89] | openbsd2.[89].*) 9347 shlibpath_overrides_runpath=no 9348 ;; 9349 *) 9350 shlibpath_overrides_runpath=yes 9351 ;; 9352 esac 9353 else 9354 shlibpath_overrides_runpath=yes 9355 fi 9356 ;; 9357 9358os2*) 9359 libname_spec='$name' 9360 shrext_cmds=".dll" 9361 need_lib_prefix=no 9362 library_names_spec='$libname${shared_ext} $libname.a' 9363 dynamic_linker='OS/2 ld.exe' 9364 shlibpath_var=LIBPATH 9365 ;; 9366 9367osf3* | osf4* | osf5*) 9368 version_type=osf 9369 need_lib_prefix=no 9370 need_version=no 9371 soname_spec='${libname}${release}${shared_ext}$major' 9372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9373 shlibpath_var=LD_LIBRARY_PATH 9374 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9375 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9376 ;; 9377 9378solaris*) 9379 version_type=linux 9380 need_lib_prefix=no 9381 need_version=no 9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9383 soname_spec='${libname}${release}${shared_ext}$major' 9384 shlibpath_var=LD_LIBRARY_PATH 9385 shlibpath_overrides_runpath=yes 9386 hardcode_into_libs=yes 9387 # ldd complains unless libraries are executable 9388 postinstall_cmds='chmod +x $lib' 9389 ;; 9390 9391sunos4*) 9392 version_type=sunos 9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9395 shlibpath_var=LD_LIBRARY_PATH 9396 shlibpath_overrides_runpath=yes 9397 if test "$with_gnu_ld" = yes; then 9398 need_lib_prefix=no 9399 fi 9400 need_version=yes 9401 ;; 9402 9403sysv4 | sysv4.3*) 9404 version_type=linux 9405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9406 soname_spec='${libname}${release}${shared_ext}$major' 9407 shlibpath_var=LD_LIBRARY_PATH 9408 case $host_vendor in 9409 sni) 9410 shlibpath_overrides_runpath=no 9411 need_lib_prefix=no 9412 export_dynamic_flag_spec='${wl}-Blargedynsym' 9413 runpath_var=LD_RUN_PATH 9414 ;; 9415 siemens) 9416 need_lib_prefix=no 9417 ;; 9418 motorola) 9419 need_lib_prefix=no 9420 need_version=no 9421 shlibpath_overrides_runpath=no 9422 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9423 ;; 9424 esac 9425 ;; 9426 9427sysv4*MP*) 9428 if test -d /usr/nec ;then 9429 version_type=linux 9430 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9431 soname_spec='$libname${shared_ext}.$major' 9432 shlibpath_var=LD_LIBRARY_PATH 9433 fi 9434 ;; 9435 9436sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9437 version_type=freebsd-elf 9438 need_lib_prefix=no 9439 need_version=no 9440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9441 soname_spec='${libname}${release}${shared_ext}$major' 9442 shlibpath_var=LD_LIBRARY_PATH 9443 hardcode_into_libs=yes 9444 if test "$with_gnu_ld" = yes; then 9445 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9446 shlibpath_overrides_runpath=no 9447 else 9448 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9449 shlibpath_overrides_runpath=yes 9450 case $host_os in 9451 sco3.2v5*) 9452 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9453 ;; 9454 esac 9455 fi 9456 sys_lib_dlsearch_path_spec='/usr/lib' 9457 ;; 9458 9459uts4*) 9460 version_type=linux 9461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9462 soname_spec='${libname}${release}${shared_ext}$major' 9463 shlibpath_var=LD_LIBRARY_PATH 9464 ;; 9465 9466*) 9467 dynamic_linker=no 9468 ;; 9469esac 9470{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 9471echo "${ECHO_T}$dynamic_linker" >&6; } 9472test "$dynamic_linker" = no && can_build_shared=no 9473 9474variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9475if test "$GCC" = yes; then 9476 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9477fi 9478 9479{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9480echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 9481hardcode_action= 9482if test -n "$hardcode_libdir_flag_spec" || \ 9483 test -n "$runpath_var" || \ 9484 test "X$hardcode_automatic" = "Xyes" ; then 9485 9486 # We can hardcode non-existant directories. 9487 if test "$hardcode_direct" != no && 9488 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9489 # have to relink, otherwise we might link with an installed library 9490 # when we should be linking with a yet-to-be-installed one 9491 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 9492 test "$hardcode_minus_L" != no; then 9493 # Linking always hardcodes the temporary library directory. 9494 hardcode_action=relink 9495 else 9496 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9497 hardcode_action=immediate 9498 fi 9499else 9500 # We cannot hardcode anything, or else we can only hardcode existing 9501 # directories. 9502 hardcode_action=unsupported 9503fi 9504{ echo "$as_me:$LINENO: result: $hardcode_action" >&5 9505echo "${ECHO_T}$hardcode_action" >&6; } 9506 9507if test "$hardcode_action" = relink; then 9508 # Fast installation is not supported 9509 enable_fast_install=no 9510elif test "$shlibpath_overrides_runpath" = yes || 9511 test "$enable_shared" = no; then 9512 # Fast installation is not necessary 9513 enable_fast_install=needless 9514fi 9515 9516striplib= 9517old_striplib= 9518{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9519echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } 9520if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9521 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9522 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9523 { echo "$as_me:$LINENO: result: yes" >&5 9524echo "${ECHO_T}yes" >&6; } 9525else 9526# FIXME - insert some real tests, host_os isn't really good enough 9527 case $host_os in 9528 darwin*) 9529 if test -n "$STRIP" ; then 9530 striplib="$STRIP -x" 9531 { echo "$as_me:$LINENO: result: yes" >&5 9532echo "${ECHO_T}yes" >&6; } 9533 else 9534 { echo "$as_me:$LINENO: result: no" >&5 9535echo "${ECHO_T}no" >&6; } 9536fi 9537 ;; 9538 *) 9539 { echo "$as_me:$LINENO: result: no" >&5 9540echo "${ECHO_T}no" >&6; } 9541 ;; 9542 esac 9543fi 9544 9545if test "x$enable_dlopen" != xyes; then 9546 enable_dlopen=unknown 9547 enable_dlopen_self=unknown 9548 enable_dlopen_self_static=unknown 9549else 9550 lt_cv_dlopen=no 9551 lt_cv_dlopen_libs= 9552 9553 case $host_os in 9554 beos*) 9555 lt_cv_dlopen="load_add_on" 9556 lt_cv_dlopen_libs= 9557 lt_cv_dlopen_self=yes 9558 ;; 9559 9560 mingw* | pw32*) 9561 lt_cv_dlopen="LoadLibrary" 9562 lt_cv_dlopen_libs= 9563 ;; 9564 9565 cygwin*) 9566 lt_cv_dlopen="dlopen" 9567 lt_cv_dlopen_libs= 9568 ;; 9569 9570 darwin*) 9571 # if libdl is installed we need to link against it 9572 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9573echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9574if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9575 echo $ECHO_N "(cached) $ECHO_C" >&6 9576else 9577 ac_check_lib_save_LIBS=$LIBS 9578LIBS="-ldl $LIBS" 9579cat >conftest.$ac_ext <<_ACEOF 9580/* confdefs.h. */ 9581_ACEOF 9582cat confdefs.h >>conftest.$ac_ext 9583cat >>conftest.$ac_ext <<_ACEOF 9584/* end confdefs.h. */ 9585 9586/* Override any GCC internal prototype to avoid an error. 9587 Use char because int might match the return type of a GCC 9588 builtin and then its argument prototype would still apply. */ 9589#ifdef __cplusplus 9590extern "C" 9591#endif 9592char dlopen (); 9593int 9594main () 9595{ 9596return dlopen (); 9597 ; 9598 return 0; 9599} 9600_ACEOF 9601rm -f conftest.$ac_objext conftest$ac_exeext 9602if { (ac_try="$ac_link" 9603case "(($ac_try" in 9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9605 *) ac_try_echo=$ac_try;; 9606esac 9607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9608 (eval "$ac_link") 2>conftest.er1 9609 ac_status=$? 9610 grep -v '^ *+' conftest.er1 >conftest.err 9611 rm -f conftest.er1 9612 cat conftest.err >&5 9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9614 (exit $ac_status); } && 9615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9616 { (case "(($ac_try" in 9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9618 *) ac_try_echo=$ac_try;; 9619esac 9620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9621 (eval "$ac_try") 2>&5 9622 ac_status=$? 9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9624 (exit $ac_status); }; } && 9625 { ac_try='test -s conftest$ac_exeext' 9626 { (case "(($ac_try" in 9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9628 *) ac_try_echo=$ac_try;; 9629esac 9630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9631 (eval "$ac_try") 2>&5 9632 ac_status=$? 9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9634 (exit $ac_status); }; }; then 9635 ac_cv_lib_dl_dlopen=yes 9636else 9637 echo "$as_me: failed program was:" >&5 9638sed 's/^/| /' conftest.$ac_ext >&5 9639 9640 ac_cv_lib_dl_dlopen=no 9641fi 9642 9643rm -f core conftest.err conftest.$ac_objext \ 9644 conftest$ac_exeext conftest.$ac_ext 9645LIBS=$ac_check_lib_save_LIBS 9646fi 9647{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9648echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 9649if test $ac_cv_lib_dl_dlopen = yes; then 9650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9651else 9652 9653 lt_cv_dlopen="dyld" 9654 lt_cv_dlopen_libs= 9655 lt_cv_dlopen_self=yes 9656 9657fi 9658 9659 ;; 9660 9661 *) 9662 { echo "$as_me:$LINENO: checking for shl_load" >&5 9663echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } 9664if test "${ac_cv_func_shl_load+set}" = set; then 9665 echo $ECHO_N "(cached) $ECHO_C" >&6 9666else 9667 cat >conftest.$ac_ext <<_ACEOF 9668/* confdefs.h. */ 9669_ACEOF 9670cat confdefs.h >>conftest.$ac_ext 9671cat >>conftest.$ac_ext <<_ACEOF 9672/* end confdefs.h. */ 9673/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9674 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9675#define shl_load innocuous_shl_load 9676 9677/* System header to define __stub macros and hopefully few prototypes, 9678 which can conflict with char shl_load (); below. 9679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9680 <limits.h> exists even on freestanding compilers. */ 9681 9682#ifdef __STDC__ 9683# include <limits.h> 9684#else 9685# include <assert.h> 9686#endif 9687 9688#undef shl_load 9689 9690/* Override any GCC internal prototype to avoid an error. 9691 Use char because int might match the return type of a GCC 9692 builtin and then its argument prototype would still apply. */ 9693#ifdef __cplusplus 9694extern "C" 9695#endif 9696char shl_load (); 9697/* The GNU C library defines this for functions which it implements 9698 to always fail with ENOSYS. Some functions are actually named 9699 something starting with __ and the normal name is an alias. */ 9700#if defined __stub_shl_load || defined __stub___shl_load 9701choke me 9702#endif 9703 9704int 9705main () 9706{ 9707return shl_load (); 9708 ; 9709 return 0; 9710} 9711_ACEOF 9712rm -f conftest.$ac_objext conftest$ac_exeext 9713if { (ac_try="$ac_link" 9714case "(($ac_try" in 9715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9716 *) ac_try_echo=$ac_try;; 9717esac 9718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9719 (eval "$ac_link") 2>conftest.er1 9720 ac_status=$? 9721 grep -v '^ *+' conftest.er1 >conftest.err 9722 rm -f conftest.er1 9723 cat conftest.err >&5 9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9725 (exit $ac_status); } && 9726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9727 { (case "(($ac_try" in 9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9729 *) ac_try_echo=$ac_try;; 9730esac 9731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9732 (eval "$ac_try") 2>&5 9733 ac_status=$? 9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9735 (exit $ac_status); }; } && 9736 { ac_try='test -s conftest$ac_exeext' 9737 { (case "(($ac_try" in 9738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9739 *) ac_try_echo=$ac_try;; 9740esac 9741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9742 (eval "$ac_try") 2>&5 9743 ac_status=$? 9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9745 (exit $ac_status); }; }; then 9746 ac_cv_func_shl_load=yes 9747else 9748 echo "$as_me: failed program was:" >&5 9749sed 's/^/| /' conftest.$ac_ext >&5 9750 9751 ac_cv_func_shl_load=no 9752fi 9753 9754rm -f core conftest.err conftest.$ac_objext \ 9755 conftest$ac_exeext conftest.$ac_ext 9756fi 9757{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9758echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } 9759if test $ac_cv_func_shl_load = yes; then 9760 lt_cv_dlopen="shl_load" 9761else 9762 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9763echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 9764if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9765 echo $ECHO_N "(cached) $ECHO_C" >&6 9766else 9767 ac_check_lib_save_LIBS=$LIBS 9768LIBS="-ldld $LIBS" 9769cat >conftest.$ac_ext <<_ACEOF 9770/* confdefs.h. */ 9771_ACEOF 9772cat confdefs.h >>conftest.$ac_ext 9773cat >>conftest.$ac_ext <<_ACEOF 9774/* end confdefs.h. */ 9775 9776/* Override any GCC internal prototype to avoid an error. 9777 Use char because int might match the return type of a GCC 9778 builtin and then its argument prototype would still apply. */ 9779#ifdef __cplusplus 9780extern "C" 9781#endif 9782char shl_load (); 9783int 9784main () 9785{ 9786return shl_load (); 9787 ; 9788 return 0; 9789} 9790_ACEOF 9791rm -f conftest.$ac_objext conftest$ac_exeext 9792if { (ac_try="$ac_link" 9793case "(($ac_try" in 9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9795 *) ac_try_echo=$ac_try;; 9796esac 9797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9798 (eval "$ac_link") 2>conftest.er1 9799 ac_status=$? 9800 grep -v '^ *+' conftest.er1 >conftest.err 9801 rm -f conftest.er1 9802 cat conftest.err >&5 9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9804 (exit $ac_status); } && 9805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9806 { (case "(($ac_try" in 9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9808 *) ac_try_echo=$ac_try;; 9809esac 9810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9811 (eval "$ac_try") 2>&5 9812 ac_status=$? 9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9814 (exit $ac_status); }; } && 9815 { ac_try='test -s conftest$ac_exeext' 9816 { (case "(($ac_try" in 9817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9818 *) ac_try_echo=$ac_try;; 9819esac 9820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9821 (eval "$ac_try") 2>&5 9822 ac_status=$? 9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9824 (exit $ac_status); }; }; then 9825 ac_cv_lib_dld_shl_load=yes 9826else 9827 echo "$as_me: failed program was:" >&5 9828sed 's/^/| /' conftest.$ac_ext >&5 9829 9830 ac_cv_lib_dld_shl_load=no 9831fi 9832 9833rm -f core conftest.err conftest.$ac_objext \ 9834 conftest$ac_exeext conftest.$ac_ext 9835LIBS=$ac_check_lib_save_LIBS 9836fi 9837{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9838echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 9839if test $ac_cv_lib_dld_shl_load = yes; then 9840 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9841else 9842 { echo "$as_me:$LINENO: checking for dlopen" >&5 9843echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 9844if test "${ac_cv_func_dlopen+set}" = set; then 9845 echo $ECHO_N "(cached) $ECHO_C" >&6 9846else 9847 cat >conftest.$ac_ext <<_ACEOF 9848/* confdefs.h. */ 9849_ACEOF 9850cat confdefs.h >>conftest.$ac_ext 9851cat >>conftest.$ac_ext <<_ACEOF 9852/* end confdefs.h. */ 9853/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9854 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9855#define dlopen innocuous_dlopen 9856 9857/* System header to define __stub macros and hopefully few prototypes, 9858 which can conflict with char dlopen (); below. 9859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9860 <limits.h> exists even on freestanding compilers. */ 9861 9862#ifdef __STDC__ 9863# include <limits.h> 9864#else 9865# include <assert.h> 9866#endif 9867 9868#undef dlopen 9869 9870/* Override any GCC internal prototype to avoid an error. 9871 Use char because int might match the return type of a GCC 9872 builtin and then its argument prototype would still apply. */ 9873#ifdef __cplusplus 9874extern "C" 9875#endif 9876char dlopen (); 9877/* The GNU C library defines this for functions which it implements 9878 to always fail with ENOSYS. Some functions are actually named 9879 something starting with __ and the normal name is an alias. */ 9880#if defined __stub_dlopen || defined __stub___dlopen 9881choke me 9882#endif 9883 9884int 9885main () 9886{ 9887return dlopen (); 9888 ; 9889 return 0; 9890} 9891_ACEOF 9892rm -f conftest.$ac_objext conftest$ac_exeext 9893if { (ac_try="$ac_link" 9894case "(($ac_try" in 9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9896 *) ac_try_echo=$ac_try;; 9897esac 9898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9899 (eval "$ac_link") 2>conftest.er1 9900 ac_status=$? 9901 grep -v '^ *+' conftest.er1 >conftest.err 9902 rm -f conftest.er1 9903 cat conftest.err >&5 9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9905 (exit $ac_status); } && 9906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9907 { (case "(($ac_try" in 9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9909 *) ac_try_echo=$ac_try;; 9910esac 9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9912 (eval "$ac_try") 2>&5 9913 ac_status=$? 9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9915 (exit $ac_status); }; } && 9916 { ac_try='test -s conftest$ac_exeext' 9917 { (case "(($ac_try" in 9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9919 *) ac_try_echo=$ac_try;; 9920esac 9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9922 (eval "$ac_try") 2>&5 9923 ac_status=$? 9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9925 (exit $ac_status); }; }; then 9926 ac_cv_func_dlopen=yes 9927else 9928 echo "$as_me: failed program was:" >&5 9929sed 's/^/| /' conftest.$ac_ext >&5 9930 9931 ac_cv_func_dlopen=no 9932fi 9933 9934rm -f core conftest.err conftest.$ac_objext \ 9935 conftest$ac_exeext conftest.$ac_ext 9936fi 9937{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9938echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 9939if test $ac_cv_func_dlopen = yes; then 9940 lt_cv_dlopen="dlopen" 9941else 9942 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9943echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 9944if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9945 echo $ECHO_N "(cached) $ECHO_C" >&6 9946else 9947 ac_check_lib_save_LIBS=$LIBS 9948LIBS="-ldl $LIBS" 9949cat >conftest.$ac_ext <<_ACEOF 9950/* confdefs.h. */ 9951_ACEOF 9952cat confdefs.h >>conftest.$ac_ext 9953cat >>conftest.$ac_ext <<_ACEOF 9954/* end confdefs.h. */ 9955 9956/* Override any GCC internal prototype to avoid an error. 9957 Use char because int might match the return type of a GCC 9958 builtin and then its argument prototype would still apply. */ 9959#ifdef __cplusplus 9960extern "C" 9961#endif 9962char dlopen (); 9963int 9964main () 9965{ 9966return dlopen (); 9967 ; 9968 return 0; 9969} 9970_ACEOF 9971rm -f conftest.$ac_objext conftest$ac_exeext 9972if { (ac_try="$ac_link" 9973case "(($ac_try" in 9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9975 *) ac_try_echo=$ac_try;; 9976esac 9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9978 (eval "$ac_link") 2>conftest.er1 9979 ac_status=$? 9980 grep -v '^ *+' conftest.er1 >conftest.err 9981 rm -f conftest.er1 9982 cat conftest.err >&5 9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9984 (exit $ac_status); } && 9985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9986 { (case "(($ac_try" in 9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9988 *) ac_try_echo=$ac_try;; 9989esac 9990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9991 (eval "$ac_try") 2>&5 9992 ac_status=$? 9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9994 (exit $ac_status); }; } && 9995 { ac_try='test -s conftest$ac_exeext' 9996 { (case "(($ac_try" in 9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9998 *) ac_try_echo=$ac_try;; 9999esac 10000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10001 (eval "$ac_try") 2>&5 10002 ac_status=$? 10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10004 (exit $ac_status); }; }; then 10005 ac_cv_lib_dl_dlopen=yes 10006else 10007 echo "$as_me: failed program was:" >&5 10008sed 's/^/| /' conftest.$ac_ext >&5 10009 10010 ac_cv_lib_dl_dlopen=no 10011fi 10012 10013rm -f core conftest.err conftest.$ac_objext \ 10014 conftest$ac_exeext conftest.$ac_ext 10015LIBS=$ac_check_lib_save_LIBS 10016fi 10017{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 10018echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 10019if test $ac_cv_lib_dl_dlopen = yes; then 10020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10021else 10022 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 10023echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } 10024if test "${ac_cv_lib_svld_dlopen+set}" = set; then 10025 echo $ECHO_N "(cached) $ECHO_C" >&6 10026else 10027 ac_check_lib_save_LIBS=$LIBS 10028LIBS="-lsvld $LIBS" 10029cat >conftest.$ac_ext <<_ACEOF 10030/* confdefs.h. */ 10031_ACEOF 10032cat confdefs.h >>conftest.$ac_ext 10033cat >>conftest.$ac_ext <<_ACEOF 10034/* end confdefs.h. */ 10035 10036/* Override any GCC internal prototype to avoid an error. 10037 Use char because int might match the return type of a GCC 10038 builtin and then its argument prototype would still apply. */ 10039#ifdef __cplusplus 10040extern "C" 10041#endif 10042char dlopen (); 10043int 10044main () 10045{ 10046return dlopen (); 10047 ; 10048 return 0; 10049} 10050_ACEOF 10051rm -f conftest.$ac_objext conftest$ac_exeext 10052if { (ac_try="$ac_link" 10053case "(($ac_try" in 10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10055 *) ac_try_echo=$ac_try;; 10056esac 10057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10058 (eval "$ac_link") 2>conftest.er1 10059 ac_status=$? 10060 grep -v '^ *+' conftest.er1 >conftest.err 10061 rm -f conftest.er1 10062 cat conftest.err >&5 10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10064 (exit $ac_status); } && 10065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10066 { (case "(($ac_try" in 10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10068 *) ac_try_echo=$ac_try;; 10069esac 10070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10071 (eval "$ac_try") 2>&5 10072 ac_status=$? 10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10074 (exit $ac_status); }; } && 10075 { ac_try='test -s conftest$ac_exeext' 10076 { (case "(($ac_try" in 10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10078 *) ac_try_echo=$ac_try;; 10079esac 10080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10081 (eval "$ac_try") 2>&5 10082 ac_status=$? 10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10084 (exit $ac_status); }; }; then 10085 ac_cv_lib_svld_dlopen=yes 10086else 10087 echo "$as_me: failed program was:" >&5 10088sed 's/^/| /' conftest.$ac_ext >&5 10089 10090 ac_cv_lib_svld_dlopen=no 10091fi 10092 10093rm -f core conftest.err conftest.$ac_objext \ 10094 conftest$ac_exeext conftest.$ac_ext 10095LIBS=$ac_check_lib_save_LIBS 10096fi 10097{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 10098echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } 10099if test $ac_cv_lib_svld_dlopen = yes; then 10100 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10101else 10102 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 10103echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } 10104if test "${ac_cv_lib_dld_dld_link+set}" = set; then 10105 echo $ECHO_N "(cached) $ECHO_C" >&6 10106else 10107 ac_check_lib_save_LIBS=$LIBS 10108LIBS="-ldld $LIBS" 10109cat >conftest.$ac_ext <<_ACEOF 10110/* confdefs.h. */ 10111_ACEOF 10112cat confdefs.h >>conftest.$ac_ext 10113cat >>conftest.$ac_ext <<_ACEOF 10114/* end confdefs.h. */ 10115 10116/* Override any GCC internal prototype to avoid an error. 10117 Use char because int might match the return type of a GCC 10118 builtin and then its argument prototype would still apply. */ 10119#ifdef __cplusplus 10120extern "C" 10121#endif 10122char dld_link (); 10123int 10124main () 10125{ 10126return dld_link (); 10127 ; 10128 return 0; 10129} 10130_ACEOF 10131rm -f conftest.$ac_objext conftest$ac_exeext 10132if { (ac_try="$ac_link" 10133case "(($ac_try" in 10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10135 *) ac_try_echo=$ac_try;; 10136esac 10137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10138 (eval "$ac_link") 2>conftest.er1 10139 ac_status=$? 10140 grep -v '^ *+' conftest.er1 >conftest.err 10141 rm -f conftest.er1 10142 cat conftest.err >&5 10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10144 (exit $ac_status); } && 10145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10146 { (case "(($ac_try" in 10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10148 *) ac_try_echo=$ac_try;; 10149esac 10150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10151 (eval "$ac_try") 2>&5 10152 ac_status=$? 10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10154 (exit $ac_status); }; } && 10155 { ac_try='test -s conftest$ac_exeext' 10156 { (case "(($ac_try" in 10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10158 *) ac_try_echo=$ac_try;; 10159esac 10160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10161 (eval "$ac_try") 2>&5 10162 ac_status=$? 10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10164 (exit $ac_status); }; }; then 10165 ac_cv_lib_dld_dld_link=yes 10166else 10167 echo "$as_me: failed program was:" >&5 10168sed 's/^/| /' conftest.$ac_ext >&5 10169 10170 ac_cv_lib_dld_dld_link=no 10171fi 10172 10173rm -f core conftest.err conftest.$ac_objext \ 10174 conftest$ac_exeext conftest.$ac_ext 10175LIBS=$ac_check_lib_save_LIBS 10176fi 10177{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 10178echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } 10179if test $ac_cv_lib_dld_dld_link = yes; then 10180 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 10181fi 10182 10183 10184fi 10185 10186 10187fi 10188 10189 10190fi 10191 10192 10193fi 10194 10195 10196fi 10197 10198 ;; 10199 esac 10200 10201 if test "x$lt_cv_dlopen" != xno; then 10202 enable_dlopen=yes 10203 else 10204 enable_dlopen=no 10205 fi 10206 10207 case $lt_cv_dlopen in 10208 dlopen) 10209 save_CPPFLAGS="$CPPFLAGS" 10210 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10211 10212 save_LDFLAGS="$LDFLAGS" 10213 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10214 10215 save_LIBS="$LIBS" 10216 LIBS="$lt_cv_dlopen_libs $LIBS" 10217 10218 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 10219echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } 10220if test "${lt_cv_dlopen_self+set}" = set; then 10221 echo $ECHO_N "(cached) $ECHO_C" >&6 10222else 10223 if test "$cross_compiling" = yes; then : 10224 lt_cv_dlopen_self=cross 10225else 10226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10227 lt_status=$lt_dlunknown 10228 cat > conftest.$ac_ext <<EOF 10229#line 10229 "configure" 10230#include "confdefs.h" 10231 10232#if HAVE_DLFCN_H 10233#include <dlfcn.h> 10234#endif 10235 10236#include <stdio.h> 10237 10238#ifdef RTLD_GLOBAL 10239# define LT_DLGLOBAL RTLD_GLOBAL 10240#else 10241# ifdef DL_GLOBAL 10242# define LT_DLGLOBAL DL_GLOBAL 10243# else 10244# define LT_DLGLOBAL 0 10245# endif 10246#endif 10247 10248/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10249 find out it does not work in some platform. */ 10250#ifndef LT_DLLAZY_OR_NOW 10251# ifdef RTLD_LAZY 10252# define LT_DLLAZY_OR_NOW RTLD_LAZY 10253# else 10254# ifdef DL_LAZY 10255# define LT_DLLAZY_OR_NOW DL_LAZY 10256# else 10257# ifdef RTLD_NOW 10258# define LT_DLLAZY_OR_NOW RTLD_NOW 10259# else 10260# ifdef DL_NOW 10261# define LT_DLLAZY_OR_NOW DL_NOW 10262# else 10263# define LT_DLLAZY_OR_NOW 0 10264# endif 10265# endif 10266# endif 10267# endif 10268#endif 10269 10270#ifdef __cplusplus 10271extern "C" void exit (int); 10272#endif 10273 10274void fnord() { int i=42;} 10275int main () 10276{ 10277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10278 int status = $lt_dlunknown; 10279 10280 if (self) 10281 { 10282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10283 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10284 /* dlclose (self); */ 10285 } 10286 else 10287 puts (dlerror ()); 10288 10289 exit (status); 10290} 10291EOF 10292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10293 (eval $ac_link) 2>&5 10294 ac_status=$? 10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10296 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10297 (./conftest; exit; ) >&5 2>/dev/null 10298 lt_status=$? 10299 case x$lt_status in 10300 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10301 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10302 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10303 esac 10304 else : 10305 # compilation failed 10306 lt_cv_dlopen_self=no 10307 fi 10308fi 10309rm -fr conftest* 10310 10311 10312fi 10313{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 10314echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } 10315 10316 if test "x$lt_cv_dlopen_self" = xyes; then 10317 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10318 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 10319echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } 10320if test "${lt_cv_dlopen_self_static+set}" = set; then 10321 echo $ECHO_N "(cached) $ECHO_C" >&6 10322else 10323 if test "$cross_compiling" = yes; then : 10324 lt_cv_dlopen_self_static=cross 10325else 10326 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10327 lt_status=$lt_dlunknown 10328 cat > conftest.$ac_ext <<EOF 10329#line 10329 "configure" 10330#include "confdefs.h" 10331 10332#if HAVE_DLFCN_H 10333#include <dlfcn.h> 10334#endif 10335 10336#include <stdio.h> 10337 10338#ifdef RTLD_GLOBAL 10339# define LT_DLGLOBAL RTLD_GLOBAL 10340#else 10341# ifdef DL_GLOBAL 10342# define LT_DLGLOBAL DL_GLOBAL 10343# else 10344# define LT_DLGLOBAL 0 10345# endif 10346#endif 10347 10348/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10349 find out it does not work in some platform. */ 10350#ifndef LT_DLLAZY_OR_NOW 10351# ifdef RTLD_LAZY 10352# define LT_DLLAZY_OR_NOW RTLD_LAZY 10353# else 10354# ifdef DL_LAZY 10355# define LT_DLLAZY_OR_NOW DL_LAZY 10356# else 10357# ifdef RTLD_NOW 10358# define LT_DLLAZY_OR_NOW RTLD_NOW 10359# else 10360# ifdef DL_NOW 10361# define LT_DLLAZY_OR_NOW DL_NOW 10362# else 10363# define LT_DLLAZY_OR_NOW 0 10364# endif 10365# endif 10366# endif 10367# endif 10368#endif 10369 10370#ifdef __cplusplus 10371extern "C" void exit (int); 10372#endif 10373 10374void fnord() { int i=42;} 10375int main () 10376{ 10377 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10378 int status = $lt_dlunknown; 10379 10380 if (self) 10381 { 10382 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10383 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10384 /* dlclose (self); */ 10385 } 10386 else 10387 puts (dlerror ()); 10388 10389 exit (status); 10390} 10391EOF 10392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10393 (eval $ac_link) 2>&5 10394 ac_status=$? 10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10396 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 10397 (./conftest; exit; ) >&5 2>/dev/null 10398 lt_status=$? 10399 case x$lt_status in 10400 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10401 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10402 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10403 esac 10404 else : 10405 # compilation failed 10406 lt_cv_dlopen_self_static=no 10407 fi 10408fi 10409rm -fr conftest* 10410 10411 10412fi 10413{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 10414echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } 10415 fi 10416 10417 CPPFLAGS="$save_CPPFLAGS" 10418 LDFLAGS="$save_LDFLAGS" 10419 LIBS="$save_LIBS" 10420 ;; 10421 esac 10422 10423 case $lt_cv_dlopen_self in 10424 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10425 *) enable_dlopen_self=unknown ;; 10426 esac 10427 10428 case $lt_cv_dlopen_self_static in 10429 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10430 *) enable_dlopen_self_static=unknown ;; 10431 esac 10432fi 10433 10434 10435# Report which library types will actually be built 10436{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10437echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 10438{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 10439echo "${ECHO_T}$can_build_shared" >&6; } 10440 10441{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10442echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 10443test "$can_build_shared" = "no" && enable_shared=no 10444 10445# On AIX, shared libraries and static libraries use the same namespace, and 10446# are all built from PIC. 10447case $host_os in 10448aix3*) 10449 test "$enable_shared" = yes && enable_static=no 10450 if test -n "$RANLIB"; then 10451 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10452 postinstall_cmds='$RANLIB $lib' 10453 fi 10454 ;; 10455 10456aix4* | aix5*) 10457 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10458 test "$enable_shared" = yes && enable_static=no 10459 fi 10460 ;; 10461esac 10462{ echo "$as_me:$LINENO: result: $enable_shared" >&5 10463echo "${ECHO_T}$enable_shared" >&6; } 10464 10465{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10466echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 10467# Make sure either enable_shared or enable_static is yes. 10468test "$enable_shared" = yes || enable_static=yes 10469{ echo "$as_me:$LINENO: result: $enable_static" >&5 10470echo "${ECHO_T}$enable_static" >&6; } 10471 10472# The else clause should only fire when bootstrapping the 10473# libtool distribution, otherwise you forgot to ship ltmain.sh 10474# with your package, and you will get complaints that there are 10475# no rules to generate ltmain.sh. 10476if test -f "$ltmain"; then 10477 # See if we are running on zsh, and set the options which allow our commands through 10478 # without removal of \ escapes. 10479 if test -n "${ZSH_VERSION+set}" ; then 10480 setopt NO_GLOB_SUBST 10481 fi 10482 # Now quote all the things that may contain metacharacters while being 10483 # careful not to overquote the AC_SUBSTed values. We take copies of the 10484 # variables and quote the copies for generation of the libtool script. 10485 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10486 SED SHELL STRIP \ 10487 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10488 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10489 deplibs_check_method reload_flag reload_cmds need_locks \ 10490 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10491 lt_cv_sys_global_symbol_to_c_name_address \ 10492 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10493 old_postinstall_cmds old_postuninstall_cmds \ 10494 compiler \ 10495 CC \ 10496 LD \ 10497 lt_prog_compiler_wl \ 10498 lt_prog_compiler_pic \ 10499 lt_prog_compiler_static \ 10500 lt_prog_compiler_no_builtin_flag \ 10501 export_dynamic_flag_spec \ 10502 thread_safe_flag_spec \ 10503 whole_archive_flag_spec \ 10504 enable_shared_with_static_runtimes \ 10505 old_archive_cmds \ 10506 old_archive_from_new_cmds \ 10507 predep_objects \ 10508 postdep_objects \ 10509 predeps \ 10510 postdeps \ 10511 compiler_lib_search_path \ 10512 archive_cmds \ 10513 archive_expsym_cmds \ 10514 postinstall_cmds \ 10515 postuninstall_cmds \ 10516 old_archive_from_expsyms_cmds \ 10517 allow_undefined_flag \ 10518 no_undefined_flag \ 10519 export_symbols_cmds \ 10520 hardcode_libdir_flag_spec \ 10521 hardcode_libdir_flag_spec_ld \ 10522 hardcode_libdir_separator \ 10523 hardcode_automatic \ 10524 module_cmds \ 10525 module_expsym_cmds \ 10526 lt_cv_prog_compiler_c_o \ 10527 exclude_expsyms \ 10528 include_expsyms; do 10529 10530 case $var in 10531 old_archive_cmds | \ 10532 old_archive_from_new_cmds | \ 10533 archive_cmds | \ 10534 archive_expsym_cmds | \ 10535 module_cmds | \ 10536 module_expsym_cmds | \ 10537 old_archive_from_expsyms_cmds | \ 10538 export_symbols_cmds | \ 10539 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10540 postinstall_cmds | postuninstall_cmds | \ 10541 old_postinstall_cmds | old_postuninstall_cmds | \ 10542 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10543 # Double-quote double-evaled strings. 10544 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10545 ;; 10546 *) 10547 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10548 ;; 10549 esac 10550 done 10551 10552 case $lt_echo in 10553 *'\$0 --fallback-echo"') 10554 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 10555 ;; 10556 esac 10557 10558cfgfile="${ofile}T" 10559 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10560 $rm -f "$cfgfile" 10561 { echo "$as_me:$LINENO: creating $ofile" >&5 10562echo "$as_me: creating $ofile" >&6;} 10563 10564 cat <<__EOF__ >> "$cfgfile" 10565#! $SHELL 10566 10567# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10568# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10569# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10570# 10571# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 10572# Free Software Foundation, Inc. 10573# 10574# This file is part of GNU Libtool: 10575# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10576# 10577# This program is free software; you can redistribute it and/or modify 10578# it under the terms of the GNU General Public License as published by 10579# the Free Software Foundation; either version 2 of the License, or 10580# (at your option) any later version. 10581# 10582# This program is distributed in the hope that it will be useful, but 10583# WITHOUT ANY WARRANTY; without even the implied warranty of 10584# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10585# General Public License for more details. 10586# 10587# You should have received a copy of the GNU General Public License 10588# along with this program; if not, write to the Free Software 10589# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10590# 10591# As a special exception to the GNU General Public License, if you 10592# distribute this file as part of a program that contains a 10593# configuration script generated by Autoconf, you may include it under 10594# the same distribution terms that you use for the rest of that program. 10595 10596# A sed program that does not truncate output. 10597SED=$lt_SED 10598 10599# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10600Xsed="$SED -e 1s/^X//" 10601 10602# The HP-UX ksh and POSIX shell print the target directory to stdout 10603# if CDPATH is set. 10604(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10605 10606# The names of the tagged configurations supported by this script. 10607available_tags= 10608 10609# ### BEGIN LIBTOOL CONFIG 10610 10611# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10612 10613# Shell to use when invoking shell scripts. 10614SHELL=$lt_SHELL 10615 10616# Whether or not to build shared libraries. 10617build_libtool_libs=$enable_shared 10618 10619# Whether or not to build static libraries. 10620build_old_libs=$enable_static 10621 10622# Whether or not to add -lc for building shared libraries. 10623build_libtool_need_lc=$archive_cmds_need_lc 10624 10625# Whether or not to disallow shared libs when runtime libs are static 10626allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10627 10628# Whether or not to optimize for fast installation. 10629fast_install=$enable_fast_install 10630 10631# The host system. 10632host_alias=$host_alias 10633host=$host 10634host_os=$host_os 10635 10636# The build system. 10637build_alias=$build_alias 10638build=$build 10639build_os=$build_os 10640 10641# An echo program that does not interpret backslashes. 10642echo=$lt_echo 10643 10644# The archiver. 10645AR=$lt_AR 10646AR_FLAGS=$lt_AR_FLAGS 10647 10648# A C compiler. 10649LTCC=$lt_LTCC 10650 10651# LTCC compiler flags. 10652LTCFLAGS=$lt_LTCFLAGS 10653 10654# A language-specific compiler. 10655CC=$lt_compiler 10656 10657# Is the compiler the GNU C compiler? 10658with_gcc=$GCC 10659 10660# An ERE matcher. 10661EGREP=$lt_EGREP 10662 10663# The linker used to build libraries. 10664LD=$lt_LD 10665 10666# Whether we need hard or soft links. 10667LN_S=$lt_LN_S 10668 10669# A BSD-compatible nm program. 10670NM=$lt_NM 10671 10672# A symbol stripping program 10673STRIP=$lt_STRIP 10674 10675# Used to examine libraries when file_magic_cmd begins "file" 10676MAGIC_CMD=$MAGIC_CMD 10677 10678# Used on cygwin: DLL creation program. 10679DLLTOOL="$DLLTOOL" 10680 10681# Used on cygwin: object dumper. 10682OBJDUMP="$OBJDUMP" 10683 10684# Used on cygwin: assembler. 10685AS="$AS" 10686 10687# The name of the directory that contains temporary libtool files. 10688objdir=$objdir 10689 10690# How to create reloadable object files. 10691reload_flag=$lt_reload_flag 10692reload_cmds=$lt_reload_cmds 10693 10694# How to pass a linker flag through the compiler. 10695wl=$lt_lt_prog_compiler_wl 10696 10697# Object file suffix (normally "o"). 10698objext="$ac_objext" 10699 10700# Old archive suffix (normally "a"). 10701libext="$libext" 10702 10703# Shared library suffix (normally ".so"). 10704shrext_cmds='$shrext_cmds' 10705 10706# Executable file suffix (normally ""). 10707exeext="$exeext" 10708 10709# Additional compiler flags for building library objects. 10710pic_flag=$lt_lt_prog_compiler_pic 10711pic_mode=$pic_mode 10712 10713# What is the maximum length of a command? 10714max_cmd_len=$lt_cv_sys_max_cmd_len 10715 10716# Does compiler simultaneously support -c and -o options? 10717compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10718 10719# Must we lock files when doing compilation? 10720need_locks=$lt_need_locks 10721 10722# Do we need the lib prefix for modules? 10723need_lib_prefix=$need_lib_prefix 10724 10725# Do we need a version for libraries? 10726need_version=$need_version 10727 10728# Whether dlopen is supported. 10729dlopen_support=$enable_dlopen 10730 10731# Whether dlopen of programs is supported. 10732dlopen_self=$enable_dlopen_self 10733 10734# Whether dlopen of statically linked programs is supported. 10735dlopen_self_static=$enable_dlopen_self_static 10736 10737# Compiler flag to prevent dynamic linking. 10738link_static_flag=$lt_lt_prog_compiler_static 10739 10740# Compiler flag to turn off builtin functions. 10741no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10742 10743# Compiler flag to allow reflexive dlopens. 10744export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10745 10746# Compiler flag to generate shared objects directly from archives. 10747whole_archive_flag_spec=$lt_whole_archive_flag_spec 10748 10749# Compiler flag to generate thread-safe objects. 10750thread_safe_flag_spec=$lt_thread_safe_flag_spec 10751 10752# Library versioning type. 10753version_type=$version_type 10754 10755# Format of library name prefix. 10756libname_spec=$lt_libname_spec 10757 10758# List of archive names. First name is the real one, the rest are links. 10759# The last name is the one that the linker finds with -lNAME. 10760library_names_spec=$lt_library_names_spec 10761 10762# The coded name of the library, if different from the real name. 10763soname_spec=$lt_soname_spec 10764 10765# Commands used to build and install an old-style archive. 10766RANLIB=$lt_RANLIB 10767old_archive_cmds=$lt_old_archive_cmds 10768old_postinstall_cmds=$lt_old_postinstall_cmds 10769old_postuninstall_cmds=$lt_old_postuninstall_cmds 10770 10771# Create an old-style archive from a shared archive. 10772old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10773 10774# Create a temporary old-style archive to link instead of a shared archive. 10775old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10776 10777# Commands used to build and install a shared archive. 10778archive_cmds=$lt_archive_cmds 10779archive_expsym_cmds=$lt_archive_expsym_cmds 10780postinstall_cmds=$lt_postinstall_cmds 10781postuninstall_cmds=$lt_postuninstall_cmds 10782 10783# Commands used to build a loadable module (assumed same as above if empty) 10784module_cmds=$lt_module_cmds 10785module_expsym_cmds=$lt_module_expsym_cmds 10786 10787# Commands to strip libraries. 10788old_striplib=$lt_old_striplib 10789striplib=$lt_striplib 10790 10791# Dependencies to place before the objects being linked to create a 10792# shared library. 10793predep_objects=$lt_predep_objects 10794 10795# Dependencies to place after the objects being linked to create a 10796# shared library. 10797postdep_objects=$lt_postdep_objects 10798 10799# Dependencies to place before the objects being linked to create a 10800# shared library. 10801predeps=$lt_predeps 10802 10803# Dependencies to place after the objects being linked to create a 10804# shared library. 10805postdeps=$lt_postdeps 10806 10807# The library search path used internally by the compiler when linking 10808# a shared library. 10809compiler_lib_search_path=$lt_compiler_lib_search_path 10810 10811# Method to check whether dependent libraries are shared objects. 10812deplibs_check_method=$lt_deplibs_check_method 10813 10814# Command to use when deplibs_check_method == file_magic. 10815file_magic_cmd=$lt_file_magic_cmd 10816 10817# Flag that allows shared libraries with undefined symbols to be built. 10818allow_undefined_flag=$lt_allow_undefined_flag 10819 10820# Flag that forces no undefined symbols. 10821no_undefined_flag=$lt_no_undefined_flag 10822 10823# Commands used to finish a libtool library installation in a directory. 10824finish_cmds=$lt_finish_cmds 10825 10826# Same as above, but a single script fragment to be evaled but not shown. 10827finish_eval=$lt_finish_eval 10828 10829# Take the output of nm and produce a listing of raw symbols and C names. 10830global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 10831 10832# Transform the output of nm in a proper C declaration 10833global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 10834 10835# Transform the output of nm in a C name address pair 10836global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 10837 10838# This is the shared library runtime path variable. 10839runpath_var=$runpath_var 10840 10841# This is the shared library path variable. 10842shlibpath_var=$shlibpath_var 10843 10844# Is shlibpath searched before the hard-coded library search path? 10845shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10846 10847# How to hardcode a shared library path into an executable. 10848hardcode_action=$hardcode_action 10849 10850# Whether we should hardcode library paths into libraries. 10851hardcode_into_libs=$hardcode_into_libs 10852 10853# Flag to hardcode \$libdir into a binary during linking. 10854# This must work even if \$libdir does not exist. 10855hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10856 10857# If ld is used when linking, flag to hardcode \$libdir into 10858# a binary during linking. This must work even if \$libdir does 10859# not exist. 10860hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 10861 10862# Whether we need a single -rpath flag with a separated argument. 10863hardcode_libdir_separator=$lt_hardcode_libdir_separator 10864 10865# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 10866# resulting binary. 10867hardcode_direct=$hardcode_direct 10868 10869# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10870# resulting binary. 10871hardcode_minus_L=$hardcode_minus_L 10872 10873# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10874# the resulting binary. 10875hardcode_shlibpath_var=$hardcode_shlibpath_var 10876 10877# Set to yes if building a shared library automatically hardcodes DIR into the library 10878# and all subsequent libraries and executables linked against it. 10879hardcode_automatic=$hardcode_automatic 10880 10881# Variables whose values should be saved in libtool wrapper scripts and 10882# restored at relink time. 10883variables_saved_for_relink="$variables_saved_for_relink" 10884 10885# Whether libtool must link a program against all its dependency libraries. 10886link_all_deplibs=$link_all_deplibs 10887 10888# Compile-time system search path for libraries 10889sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10890 10891# Run-time system search path for libraries 10892sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10893 10894# Fix the shell variable \$srcfile for the compiler. 10895fix_srcfile_path="$fix_srcfile_path" 10896 10897# Set to yes if exported symbols are required. 10898always_export_symbols=$always_export_symbols 10899 10900# The commands to list exported symbols. 10901export_symbols_cmds=$lt_export_symbols_cmds 10902 10903# The commands to extract the exported symbol list from a shared archive. 10904extract_expsyms_cmds=$lt_extract_expsyms_cmds 10905 10906# Symbols that should not be listed in the preloaded symbols. 10907exclude_expsyms=$lt_exclude_expsyms 10908 10909# Symbols that must always be exported. 10910include_expsyms=$lt_include_expsyms 10911 10912# ### END LIBTOOL CONFIG 10913 10914__EOF__ 10915 10916 10917 case $host_os in 10918 aix3*) 10919 cat <<\EOF >> "$cfgfile" 10920 10921# AIX sometimes has problems with the GCC collect2 program. For some 10922# reason, if we set the COLLECT_NAMES environment variable, the problems 10923# vanish in a puff of smoke. 10924if test "X${COLLECT_NAMES+set}" != Xset; then 10925 COLLECT_NAMES= 10926 export COLLECT_NAMES 10927fi 10928EOF 10929 ;; 10930 esac 10931 10932 # We use sed instead of cat because bash on DJGPP gets confused if 10933 # if finds mixed CR/LF and LF-only lines. Since sed operates in 10934 # text mode, it properly converts lines to CR/LF. This bash problem 10935 # is reportedly fixed, but why not run on old versions too? 10936 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 10937 10938 mv -f "$cfgfile" "$ofile" || \ 10939 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 10940 chmod +x "$ofile" 10941 10942else 10943 # If there is no Makefile yet, we rely on a make rule to execute 10944 # `config.status --recheck' to rerun these tests and create the 10945 # libtool script then. 10946 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 10947 if test -f "$ltmain_in"; then 10948 test -f Makefile && make "$ltmain" 10949 fi 10950fi 10951 10952 10953ac_ext=c 10954ac_cpp='$CPP $CPPFLAGS' 10955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10957ac_compiler_gnu=$ac_cv_c_compiler_gnu 10958 10959CC="$lt_save_CC" 10960 10961 10962# Check whether --with-tags was given. 10963if test "${with_tags+set}" = set; then 10964 withval=$with_tags; tagnames="$withval" 10965fi 10966 10967 10968if test -f "$ltmain" && test -n "$tagnames"; then 10969 if test ! -f "${ofile}"; then 10970 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 10971echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 10972 fi 10973 10974 if test -z "$LTCC"; then 10975 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 10976 if test -z "$LTCC"; then 10977 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 10978echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 10979 else 10980 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 10981echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 10982 fi 10983 fi 10984 if test -z "$LTCFLAGS"; then 10985 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 10986 fi 10987 10988 # Extract list of available tagged configurations in $ofile. 10989 # Note that this assumes the entire list is on one line. 10990 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 10991 10992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10993 for tagname in $tagnames; do 10994 IFS="$lt_save_ifs" 10995 # Check whether tagname contains only valid characters 10996 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 10997 "") ;; 10998 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 10999echo "$as_me: error: invalid tag name: $tagname" >&2;} 11000 { (exit 1); exit 1; }; } 11001 ;; 11002 esac 11003 11004 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11005 then 11006 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11007echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11008 { (exit 1); exit 1; }; } 11009 fi 11010 11011 # Update the list of available tags. 11012 if test -n "$tagname"; then 11013 echo appending configuration tag \"$tagname\" to $ofile 11014 11015 case $tagname in 11016 CXX) 11017 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11018 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11019 (test "X$CXX" != "Xg++"))) ; then 11020 ac_ext=cpp 11021ac_cpp='$CXXCPP $CPPFLAGS' 11022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11025 11026 11027 11028 11029archive_cmds_need_lc_CXX=no 11030allow_undefined_flag_CXX= 11031always_export_symbols_CXX=no 11032archive_expsym_cmds_CXX= 11033export_dynamic_flag_spec_CXX= 11034hardcode_direct_CXX=no 11035hardcode_libdir_flag_spec_CXX= 11036hardcode_libdir_flag_spec_ld_CXX= 11037hardcode_libdir_separator_CXX= 11038hardcode_minus_L_CXX=no 11039hardcode_shlibpath_var_CXX=unsupported 11040hardcode_automatic_CXX=no 11041module_cmds_CXX= 11042module_expsym_cmds_CXX= 11043link_all_deplibs_CXX=unknown 11044old_archive_cmds_CXX=$old_archive_cmds 11045no_undefined_flag_CXX= 11046whole_archive_flag_spec_CXX= 11047enable_shared_with_static_runtimes_CXX=no 11048 11049# Dependencies to place before and after the object being linked: 11050predep_objects_CXX= 11051postdep_objects_CXX= 11052predeps_CXX= 11053postdeps_CXX= 11054compiler_lib_search_path_CXX= 11055 11056# Source file extension for C++ test sources. 11057ac_ext=cpp 11058 11059# Object file extension for compiled C++ test sources. 11060objext=o 11061objext_CXX=$objext 11062 11063# Code to be used in simple compile tests 11064lt_simple_compile_test_code="int some_variable = 0;\n" 11065 11066# Code to be used in simple link tests 11067lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 11068 11069# ltmain only uses $CC for tagged configurations so make sure $CC is set. 11070 11071# If no C compiler was specified, use CC. 11072LTCC=${LTCC-"$CC"} 11073 11074# If no C compiler flags were specified, use CFLAGS. 11075LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11076 11077# Allow CC to be a program name with arguments. 11078compiler=$CC 11079 11080 11081# save warnings/boilerplate of simple test code 11082ac_outfile=conftest.$ac_objext 11083printf "$lt_simple_compile_test_code" >conftest.$ac_ext 11084eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11085_lt_compiler_boilerplate=`cat conftest.err` 11086$rm conftest* 11087 11088ac_outfile=conftest.$ac_objext 11089printf "$lt_simple_link_test_code" >conftest.$ac_ext 11090eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11091_lt_linker_boilerplate=`cat conftest.err` 11092$rm conftest* 11093 11094 11095# Allow CC to be a program name with arguments. 11096lt_save_CC=$CC 11097lt_save_LD=$LD 11098lt_save_GCC=$GCC 11099GCC=$GXX 11100lt_save_with_gnu_ld=$with_gnu_ld 11101lt_save_path_LD=$lt_cv_path_LD 11102if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11103 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11104else 11105 $as_unset lt_cv_prog_gnu_ld 11106fi 11107if test -n "${lt_cv_path_LDCXX+set}"; then 11108 lt_cv_path_LD=$lt_cv_path_LDCXX 11109else 11110 $as_unset lt_cv_path_LD 11111fi 11112test -z "${LDCXX+set}" || LD=$LDCXX 11113CC=${CXX-"c++"} 11114compiler=$CC 11115compiler_CXX=$CC 11116for cc_temp in $compiler""; do 11117 case $cc_temp in 11118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11120 \-*) ;; 11121 *) break;; 11122 esac 11123done 11124cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11125 11126 11127# We don't want -fno-exception wen compiling C++ code, so set the 11128# no_builtin_flag separately 11129if test "$GXX" = yes; then 11130 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11131else 11132 lt_prog_compiler_no_builtin_flag_CXX= 11133fi 11134 11135if test "$GXX" = yes; then 11136 # Set up default GNU C++ configuration 11137 11138 11139# Check whether --with-gnu-ld was given. 11140if test "${with_gnu_ld+set}" = set; then 11141 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11142else 11143 with_gnu_ld=no 11144fi 11145 11146ac_prog=ld 11147if test "$GCC" = yes; then 11148 # Check if gcc -print-prog-name=ld gives a path. 11149 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 11150echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } 11151 case $host in 11152 *-*-mingw*) 11153 # gcc leaves a trailing carriage return which upsets mingw 11154 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11155 *) 11156 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11157 esac 11158 case $ac_prog in 11159 # Accept absolute paths. 11160 [\\/]* | ?:[\\/]*) 11161 re_direlt='/[^/][^/]*/\.\./' 11162 # Canonicalize the pathname of ld 11163 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 11164 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11165 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 11166 done 11167 test -z "$LD" && LD="$ac_prog" 11168 ;; 11169 "") 11170 # If it fails, then pretend we aren't using GCC. 11171 ac_prog=ld 11172 ;; 11173 *) 11174 # If it is relative, then search for the first ld in PATH. 11175 with_gnu_ld=unknown 11176 ;; 11177 esac 11178elif test "$with_gnu_ld" = yes; then 11179 { echo "$as_me:$LINENO: checking for GNU ld" >&5 11180echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } 11181else 11182 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 11183echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } 11184fi 11185if test "${lt_cv_path_LD+set}" = set; then 11186 echo $ECHO_N "(cached) $ECHO_C" >&6 11187else 11188 if test -z "$LD"; then 11189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11190 for ac_dir in $PATH; do 11191 IFS="$lt_save_ifs" 11192 test -z "$ac_dir" && ac_dir=. 11193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11194 lt_cv_path_LD="$ac_dir/$ac_prog" 11195 # Check to see if the program is GNU ld. I'd rather use --version, 11196 # but apparently some variants of GNU ld only accept -v. 11197 # Break only if it was the GNU/non-GNU ld that we prefer. 11198 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11199 *GNU* | *'with BFD'*) 11200 test "$with_gnu_ld" != no && break 11201 ;; 11202 *) 11203 test "$with_gnu_ld" != yes && break 11204 ;; 11205 esac 11206 fi 11207 done 11208 IFS="$lt_save_ifs" 11209else 11210 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11211fi 11212fi 11213 11214LD="$lt_cv_path_LD" 11215if test -n "$LD"; then 11216 { echo "$as_me:$LINENO: result: $LD" >&5 11217echo "${ECHO_T}$LD" >&6; } 11218else 11219 { echo "$as_me:$LINENO: result: no" >&5 11220echo "${ECHO_T}no" >&6; } 11221fi 11222test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11223echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11224 { (exit 1); exit 1; }; } 11225{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11226echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } 11227if test "${lt_cv_prog_gnu_ld+set}" = set; then 11228 echo $ECHO_N "(cached) $ECHO_C" >&6 11229else 11230 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11231case `$LD -v 2>&1 </dev/null` in 11232*GNU* | *'with BFD'*) 11233 lt_cv_prog_gnu_ld=yes 11234 ;; 11235*) 11236 lt_cv_prog_gnu_ld=no 11237 ;; 11238esac 11239fi 11240{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 11241echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } 11242with_gnu_ld=$lt_cv_prog_gnu_ld 11243 11244 11245 11246 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11247 # archiving commands below assume that GNU ld is being used. 11248 if test "$with_gnu_ld" = yes; then 11249 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11250 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' 11251 11252 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11253 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11254 11255 # If archive_cmds runs LD, not CC, wlarc should be empty 11256 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11257 # investigate it a little bit more. (MM) 11258 wlarc='${wl}' 11259 11260 # ancient GNU ld didn't support --whole-archive et. al. 11261 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11262 grep 'no-whole-archive' > /dev/null; then 11263 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11264 else 11265 whole_archive_flag_spec_CXX= 11266 fi 11267 else 11268 with_gnu_ld=no 11269 wlarc= 11270 11271 # A generic and very simple default shared library creation 11272 # command for GNU C++ for the case where it uses the native 11273 # linker, instead of GNU ld. If possible, this setting should 11274 # overridden to take advantage of the native linker features on 11275 # the platform it is being used on. 11276 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11277 fi 11278 11279 # Commands to make compiler produce verbose output that lists 11280 # what "hidden" libraries, object files and flags are used when 11281 # linking a shared library. 11282 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11283 11284else 11285 GXX=no 11286 with_gnu_ld=no 11287 wlarc= 11288fi 11289 11290# PORTME: fill in a description of your system's C++ link characteristics 11291{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11292echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 11293ld_shlibs_CXX=yes 11294case $host_os in 11295 aix3*) 11296 # FIXME: insert proper C++ library support 11297 ld_shlibs_CXX=no 11298 ;; 11299 aix4* | aix5*) 11300 if test "$host_cpu" = ia64; then 11301 # On IA64, the linker does run time linking by default, so we don't 11302 # have to do anything special. 11303 aix_use_runtimelinking=no 11304 exp_sym_flag='-Bexport' 11305 no_entry_flag="" 11306 else 11307 aix_use_runtimelinking=no 11308 11309 # Test if we are trying to use run time linking or normal 11310 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11311 # need to do runtime linking. 11312 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 11313 for ld_flag in $LDFLAGS; do 11314 case $ld_flag in 11315 *-brtl*) 11316 aix_use_runtimelinking=yes 11317 break 11318 ;; 11319 esac 11320 done 11321 ;; 11322 esac 11323 11324 exp_sym_flag='-bexport' 11325 no_entry_flag='-bnoentry' 11326 fi 11327 11328 # When large executables or shared objects are built, AIX ld can 11329 # have problems creating the table of contents. If linking a library 11330 # or program results in "error TOC overflow" add -mminimal-toc to 11331 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11332 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11333 11334 archive_cmds_CXX='' 11335 hardcode_direct_CXX=yes 11336 hardcode_libdir_separator_CXX=':' 11337 link_all_deplibs_CXX=yes 11338 11339 if test "$GXX" = yes; then 11340 case $host_os in aix4.[012]|aix4.[012].*) 11341 # We only want to do this on AIX 4.2 and lower, the check 11342 # below for broken collect2 doesn't work under 4.3+ 11343 collect2name=`${CC} -print-prog-name=collect2` 11344 if test -f "$collect2name" && \ 11345 strings "$collect2name" | grep resolve_lib_name >/dev/null 11346 then 11347 # We have reworked collect2 11348 hardcode_direct_CXX=yes 11349 else 11350 # We have old collect2 11351 hardcode_direct_CXX=unsupported 11352 # It fails to find uninstalled libraries when the uninstalled 11353 # path is not listed in the libpath. Setting hardcode_minus_L 11354 # to unsupported forces relinking 11355 hardcode_minus_L_CXX=yes 11356 hardcode_libdir_flag_spec_CXX='-L$libdir' 11357 hardcode_libdir_separator_CXX= 11358 fi 11359 ;; 11360 esac 11361 shared_flag='-shared' 11362 if test "$aix_use_runtimelinking" = yes; then 11363 shared_flag="$shared_flag "'${wl}-G' 11364 fi 11365 else 11366 # not using gcc 11367 if test "$host_cpu" = ia64; then 11368 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11369 # chokes on -Wl,-G. The following line is correct: 11370 shared_flag='-G' 11371 else 11372 if test "$aix_use_runtimelinking" = yes; then 11373 shared_flag='${wl}-G' 11374 else 11375 shared_flag='${wl}-bM:SRE' 11376 fi 11377 fi 11378 fi 11379 11380 # It seems that -bexpall does not export symbols beginning with 11381 # underscore (_), so it is better to generate a list of symbols to export. 11382 always_export_symbols_CXX=yes 11383 if test "$aix_use_runtimelinking" = yes; then 11384 # Warning - without using the other runtime loading flags (-brtl), 11385 # -berok will link without error, but may produce a broken library. 11386 allow_undefined_flag_CXX='-berok' 11387 # Determine the default libpath from the value encoded in an empty executable. 11388 cat >conftest.$ac_ext <<_ACEOF 11389/* confdefs.h. */ 11390_ACEOF 11391cat confdefs.h >>conftest.$ac_ext 11392cat >>conftest.$ac_ext <<_ACEOF 11393/* end confdefs.h. */ 11394 11395int 11396main () 11397{ 11398 11399 ; 11400 return 0; 11401} 11402_ACEOF 11403rm -f conftest.$ac_objext conftest$ac_exeext 11404if { (ac_try="$ac_link" 11405case "(($ac_try" in 11406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11407 *) ac_try_echo=$ac_try;; 11408esac 11409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11410 (eval "$ac_link") 2>conftest.er1 11411 ac_status=$? 11412 grep -v '^ *+' conftest.er1 >conftest.err 11413 rm -f conftest.er1 11414 cat conftest.err >&5 11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11416 (exit $ac_status); } && 11417 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11418 { (case "(($ac_try" in 11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11420 *) ac_try_echo=$ac_try;; 11421esac 11422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11423 (eval "$ac_try") 2>&5 11424 ac_status=$? 11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11426 (exit $ac_status); }; } && 11427 { ac_try='test -s conftest$ac_exeext' 11428 { (case "(($ac_try" in 11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11430 *) ac_try_echo=$ac_try;; 11431esac 11432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11433 (eval "$ac_try") 2>&5 11434 ac_status=$? 11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11436 (exit $ac_status); }; }; then 11437 11438aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11439}'` 11440# Check for a 64-bit object if we didn't find anything. 11441if 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; } 11442}'`; fi 11443else 11444 echo "$as_me: failed program was:" >&5 11445sed 's/^/| /' conftest.$ac_ext >&5 11446 11447 11448fi 11449 11450rm -f core conftest.err conftest.$ac_objext \ 11451 conftest$ac_exeext conftest.$ac_ext 11452if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11453 11454 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11455 11456 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" 11457 else 11458 if test "$host_cpu" = ia64; then 11459 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11460 allow_undefined_flag_CXX="-z nodefs" 11461 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" 11462 else 11463 # Determine the default libpath from the value encoded in an empty executable. 11464 cat >conftest.$ac_ext <<_ACEOF 11465/* confdefs.h. */ 11466_ACEOF 11467cat confdefs.h >>conftest.$ac_ext 11468cat >>conftest.$ac_ext <<_ACEOF 11469/* end confdefs.h. */ 11470 11471int 11472main () 11473{ 11474 11475 ; 11476 return 0; 11477} 11478_ACEOF 11479rm -f conftest.$ac_objext conftest$ac_exeext 11480if { (ac_try="$ac_link" 11481case "(($ac_try" in 11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11483 *) ac_try_echo=$ac_try;; 11484esac 11485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11486 (eval "$ac_link") 2>conftest.er1 11487 ac_status=$? 11488 grep -v '^ *+' conftest.er1 >conftest.err 11489 rm -f conftest.er1 11490 cat conftest.err >&5 11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11492 (exit $ac_status); } && 11493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 11494 { (case "(($ac_try" in 11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11496 *) ac_try_echo=$ac_try;; 11497esac 11498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11499 (eval "$ac_try") 2>&5 11500 ac_status=$? 11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11502 (exit $ac_status); }; } && 11503 { ac_try='test -s conftest$ac_exeext' 11504 { (case "(($ac_try" in 11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11506 *) ac_try_echo=$ac_try;; 11507esac 11508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11509 (eval "$ac_try") 2>&5 11510 ac_status=$? 11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11512 (exit $ac_status); }; }; then 11513 11514aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 11515}'` 11516# Check for a 64-bit object if we didn't find anything. 11517if 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; } 11518}'`; fi 11519else 11520 echo "$as_me: failed program was:" >&5 11521sed 's/^/| /' conftest.$ac_ext >&5 11522 11523 11524fi 11525 11526rm -f core conftest.err conftest.$ac_objext \ 11527 conftest$ac_exeext conftest.$ac_ext 11528if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11529 11530 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11531 # Warning - without using the other run time loading flags, 11532 # -berok will link without error, but may produce a broken library. 11533 no_undefined_flag_CXX=' ${wl}-bernotok' 11534 allow_undefined_flag_CXX=' ${wl}-berok' 11535 # Exported symbols can be pulled into shared objects from archives 11536 whole_archive_flag_spec_CXX='$convenience' 11537 archive_cmds_need_lc_CXX=yes 11538 # This is similar to how AIX traditionally builds its shared libraries. 11539 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' 11540 fi 11541 fi 11542 ;; 11543 11544 beos*) 11545 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11546 allow_undefined_flag_CXX=unsupported 11547 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11548 # support --undefined. This deserves some investigation. FIXME 11549 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11550 else 11551 ld_shlibs_CXX=no 11552 fi 11553 ;; 11554 11555 chorus*) 11556 case $cc_basename in 11557 *) 11558 # FIXME: insert proper C++ library support 11559 ld_shlibs_CXX=no 11560 ;; 11561 esac 11562 ;; 11563 11564 cygwin* | mingw* | pw32*) 11565 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11566 # as there is no search path for DLLs. 11567 hardcode_libdir_flag_spec_CXX='-L$libdir' 11568 allow_undefined_flag_CXX=unsupported 11569 always_export_symbols_CXX=no 11570 enable_shared_with_static_runtimes_CXX=yes 11571 11572 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11573 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' 11574 # If the export-symbols file already is a .def file (1st line 11575 # is EXPORTS), use it as is; otherwise, prepend... 11576 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11577 cp $export_symbols $output_objdir/$soname.def; 11578 else 11579 echo EXPORTS > $output_objdir/$soname.def; 11580 cat $export_symbols >> $output_objdir/$soname.def; 11581 fi~ 11582 $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' 11583 else 11584 ld_shlibs_CXX=no 11585 fi 11586 ;; 11587 darwin* | rhapsody*) 11588 case $host_os in 11589 rhapsody* | darwin1.[012]) 11590 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 11591 ;; 11592 *) # Darwin 1.3 on 11593 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 11594 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11595 else 11596 case ${MACOSX_DEPLOYMENT_TARGET} in 11597 10.[012]) 11598 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11599 ;; 11600 10.*) 11601 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 11602 ;; 11603 esac 11604 fi 11605 ;; 11606 esac 11607 archive_cmds_need_lc_CXX=no 11608 hardcode_direct_CXX=no 11609 hardcode_automatic_CXX=yes 11610 hardcode_shlibpath_var_CXX=unsupported 11611 whole_archive_flag_spec_CXX='' 11612 link_all_deplibs_CXX=yes 11613 11614 if test "$GXX" = yes ; then 11615 lt_int_apple_cc_single_mod=no 11616 output_verbose_link_cmd='echo' 11617 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 11618 lt_int_apple_cc_single_mod=yes 11619 fi 11620 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11621 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11622 else 11623 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' 11624 fi 11625 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11626 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11627 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 11628 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}' 11629 else 11630 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}' 11631 fi 11632 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}' 11633 else 11634 case $cc_basename in 11635 xlc*) 11636 output_verbose_link_cmd='echo' 11637 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' 11638 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11639 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11640 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}' 11641 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}' 11642 ;; 11643 *) 11644 ld_shlibs_CXX=no 11645 ;; 11646 esac 11647 fi 11648 ;; 11649 11650 dgux*) 11651 case $cc_basename in 11652 ec++*) 11653 # FIXME: insert proper C++ library support 11654 ld_shlibs_CXX=no 11655 ;; 11656 ghcx*) 11657 # Green Hills C++ Compiler 11658 # FIXME: insert proper C++ library support 11659 ld_shlibs_CXX=no 11660 ;; 11661 *) 11662 # FIXME: insert proper C++ library support 11663 ld_shlibs_CXX=no 11664 ;; 11665 esac 11666 ;; 11667 freebsd[12]*) 11668 # C++ shared libraries reported to be fairly broken before switch to ELF 11669 ld_shlibs_CXX=no 11670 ;; 11671 freebsd-elf*) 11672 archive_cmds_need_lc_CXX=no 11673 ;; 11674 freebsd* | dragonfly*) 11675 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11676 # conventions 11677 ld_shlibs_CXX=yes 11678 ;; 11679 gnu*) 11680 ;; 11681 hpux9*) 11682 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11683 hardcode_libdir_separator_CXX=: 11684 export_dynamic_flag_spec_CXX='${wl}-E' 11685 hardcode_direct_CXX=yes 11686 hardcode_minus_L_CXX=yes # Not in the search PATH, 11687 # but as the default 11688 # location of the library. 11689 11690 case $cc_basename in 11691 CC*) 11692 # FIXME: insert proper C++ library support 11693 ld_shlibs_CXX=no 11694 ;; 11695 aCC*) 11696 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' 11697 # Commands to make compiler produce verbose output that lists 11698 # what "hidden" libraries, object files and flags are used when 11699 # linking a shared library. 11700 # 11701 # There doesn't appear to be a way to prevent this compiler from 11702 # explicitly linking system object files so we need to strip them 11703 # from the output so that they don't get included in the library 11704 # dependencies. 11705 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' 11706 ;; 11707 *) 11708 if test "$GXX" = yes; then 11709 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' 11710 else 11711 # FIXME: insert proper C++ library support 11712 ld_shlibs_CXX=no 11713 fi 11714 ;; 11715 esac 11716 ;; 11717 hpux10*|hpux11*) 11718 if test $with_gnu_ld = no; then 11719 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11720 hardcode_libdir_separator_CXX=: 11721 11722 case $host_cpu in 11723 hppa*64*|ia64*) 11724 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 11725 ;; 11726 *) 11727 export_dynamic_flag_spec_CXX='${wl}-E' 11728 ;; 11729 esac 11730 fi 11731 case $host_cpu in 11732 hppa*64*|ia64*) 11733 hardcode_direct_CXX=no 11734 hardcode_shlibpath_var_CXX=no 11735 ;; 11736 *) 11737 hardcode_direct_CXX=yes 11738 hardcode_minus_L_CXX=yes # Not in the search PATH, 11739 # but as the default 11740 # location of the library. 11741 ;; 11742 esac 11743 11744 case $cc_basename in 11745 CC*) 11746 # FIXME: insert proper C++ library support 11747 ld_shlibs_CXX=no 11748 ;; 11749 aCC*) 11750 case $host_cpu in 11751 hppa*64*) 11752 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11753 ;; 11754 ia64*) 11755 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11756 ;; 11757 *) 11758 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11759 ;; 11760 esac 11761 # Commands to make compiler produce verbose output that lists 11762 # what "hidden" libraries, object files and flags are used when 11763 # linking a shared library. 11764 # 11765 # There doesn't appear to be a way to prevent this compiler from 11766 # explicitly linking system object files so we need to strip them 11767 # from the output so that they don't get included in the library 11768 # dependencies. 11769 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' 11770 ;; 11771 *) 11772 if test "$GXX" = yes; then 11773 if test $with_gnu_ld = no; then 11774 case $host_cpu in 11775 hppa*64*) 11776 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11777 ;; 11778 ia64*) 11779 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11780 ;; 11781 *) 11782 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' 11783 ;; 11784 esac 11785 fi 11786 else 11787 # FIXME: insert proper C++ library support 11788 ld_shlibs_CXX=no 11789 fi 11790 ;; 11791 esac 11792 ;; 11793 interix3*) 11794 hardcode_direct_CXX=no 11795 hardcode_shlibpath_var_CXX=no 11796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11797 export_dynamic_flag_spec_CXX='${wl}-E' 11798 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11799 # Instead, shared libraries are loaded at an image base (0x10000000 by 11800 # default) and relocated if they conflict, which is a slow very memory 11801 # consuming and fragmenting process. To avoid this, we pick a random, 11802 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11803 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11804 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' 11805 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' 11806 ;; 11807 irix5* | irix6*) 11808 case $cc_basename in 11809 CC*) 11810 # SGI C++ 11811 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' 11812 11813 # Archives containing C++ object files must be created using 11814 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11815 # necessary to make sure instantiated templates are included 11816 # in the archive. 11817 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11818 ;; 11819 *) 11820 if test "$GXX" = yes; then 11821 if test "$with_gnu_ld" = no; then 11822 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' 11823 else 11824 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' 11825 fi 11826 fi 11827 link_all_deplibs_CXX=yes 11828 ;; 11829 esac 11830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11831 hardcode_libdir_separator_CXX=: 11832 ;; 11833 linux* | k*bsd*-gnu) 11834 case $cc_basename in 11835 KCC*) 11836 # Kuck and Associates, Inc. (KAI) C++ Compiler 11837 11838 # KCC will only create a shared library if the output file 11839 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11840 # to its proper name (with version) after linking. 11841 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' 11842 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' 11843 # Commands to make compiler produce verbose output that lists 11844 # what "hidden" libraries, object files and flags are used when 11845 # linking a shared library. 11846 # 11847 # There doesn't appear to be a way to prevent this compiler from 11848 # explicitly linking system object files so we need to strip them 11849 # from the output so that they don't get included in the library 11850 # dependencies. 11851 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' 11852 11853 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 11854 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11855 11856 # Archives containing C++ object files must be created using 11857 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11858 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11859 ;; 11860 icpc*) 11861 # Intel C++ 11862 with_gnu_ld=yes 11863 # version 8.0 and above of icpc choke on multiply defined symbols 11864 # if we add $predep_objects and $postdep_objects, however 7.1 and 11865 # earlier do not add the objects themselves. 11866 case `$CC -V 2>&1` in 11867 *"Version 7."*) 11868 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11869 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' 11870 ;; 11871 *) # Version 8.0 or newer 11872 tmp_idyn= 11873 case $host_cpu in 11874 ia64*) tmp_idyn=' -i_dynamic';; 11875 esac 11876 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11877 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' 11878 ;; 11879 esac 11880 archive_cmds_need_lc_CXX=no 11881 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11882 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11883 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11884 ;; 11885 pgCC*) 11886 # Portland Group C++ compiler 11887 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 11888 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' 11889 11890 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11891 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11892 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' 11893 ;; 11894 cxx*) 11895 # Compaq C++ 11896 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11897 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' 11898 11899 runpath_var=LD_RUN_PATH 11900 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 11901 hardcode_libdir_separator_CXX=: 11902 11903 # Commands to make compiler produce verbose output that lists 11904 # what "hidden" libraries, object files and flags are used when 11905 # linking a shared library. 11906 # 11907 # There doesn't appear to be a way to prevent this compiler from 11908 # explicitly linking system object files so we need to strip them 11909 # from the output so that they don't get included in the library 11910 # dependencies. 11911 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' 11912 ;; 11913 esac 11914 ;; 11915 lynxos*) 11916 # FIXME: insert proper C++ library support 11917 ld_shlibs_CXX=no 11918 ;; 11919 m88k*) 11920 # FIXME: insert proper C++ library support 11921 ld_shlibs_CXX=no 11922 ;; 11923 mvs*) 11924 case $cc_basename in 11925 cxx*) 11926 # FIXME: insert proper C++ library support 11927 ld_shlibs_CXX=no 11928 ;; 11929 *) 11930 # FIXME: insert proper C++ library support 11931 ld_shlibs_CXX=no 11932 ;; 11933 esac 11934 ;; 11935 netbsd* | netbsdelf*-gnu) 11936 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11937 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 11938 wlarc= 11939 hardcode_libdir_flag_spec_CXX='-R$libdir' 11940 hardcode_direct_CXX=yes 11941 hardcode_shlibpath_var_CXX=no 11942 fi 11943 # Workaround some broken pre-1.5 toolchains 11944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 11945 ;; 11946 openbsd2*) 11947 # C++ shared libraries are fairly broken 11948 ld_shlibs_CXX=no 11949 ;; 11950 openbsd*) 11951 hardcode_direct_CXX=yes 11952 hardcode_shlibpath_var_CXX=no 11953 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11954 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11955 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11956 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 11957 export_dynamic_flag_spec_CXX='${wl}-E' 11958 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11959 fi 11960 output_verbose_link_cmd='echo' 11961 ;; 11962 osf3*) 11963 case $cc_basename in 11964 KCC*) 11965 # Kuck and Associates, Inc. (KAI) C++ Compiler 11966 11967 # KCC will only create a shared library if the output file 11968 # ends with ".so" (or ".sl" for HP-UX), so rename the library 11969 # to its proper name (with version) after linking. 11970 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' 11971 11972 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11973 hardcode_libdir_separator_CXX=: 11974 11975 # Archives containing C++ object files must be created using 11976 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 11977 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 11978 11979 ;; 11980 RCC*) 11981 # Rational C++ 2.4.1 11982 # FIXME: insert proper C++ library support 11983 ld_shlibs_CXX=no 11984 ;; 11985 cxx*) 11986 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 11987 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' 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 # 11996 # There doesn't appear to be a way to prevent this compiler from 11997 # explicitly linking system object files so we need to strip them 11998 # from the output so that they don't get included in the library 11999 # dependencies. 12000 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' 12001 ;; 12002 *) 12003 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12004 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12005 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' 12006 12007 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12008 hardcode_libdir_separator_CXX=: 12009 12010 # Commands to make compiler produce verbose output that lists 12011 # what "hidden" libraries, object files and flags are used when 12012 # linking a shared library. 12013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12014 12015 else 12016 # FIXME: insert proper C++ library support 12017 ld_shlibs_CXX=no 12018 fi 12019 ;; 12020 esac 12021 ;; 12022 osf4* | osf5*) 12023 case $cc_basename in 12024 KCC*) 12025 # Kuck and Associates, Inc. (KAI) C++ Compiler 12026 12027 # KCC will only create a shared library if the output file 12028 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12029 # to its proper name (with version) after linking. 12030 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' 12031 12032 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12033 hardcode_libdir_separator_CXX=: 12034 12035 # Archives containing C++ object files must be created using 12036 # the KAI C++ compiler. 12037 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12038 ;; 12039 RCC*) 12040 # Rational C++ 2.4.1 12041 # FIXME: insert proper C++ library support 12042 ld_shlibs_CXX=no 12043 ;; 12044 cxx*) 12045 allow_undefined_flag_CXX=' -expect_unresolved \*' 12046 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' 12047 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12048 echo "-hidden">> $lib.exp~ 12049 $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~ 12050 $rm $lib.exp' 12051 12052 hardcode_libdir_flag_spec_CXX='-rpath $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 # 12059 # There doesn't appear to be a way to prevent this compiler from 12060 # explicitly linking system object files so we need to strip them 12061 # from the output so that they don't get included in the library 12062 # dependencies. 12063 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' 12064 ;; 12065 *) 12066 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12067 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12068 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' 12069 12070 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12071 hardcode_libdir_separator_CXX=: 12072 12073 # Commands to make compiler produce verbose output that lists 12074 # what "hidden" libraries, object files and flags are used when 12075 # linking a shared library. 12076 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12077 12078 else 12079 # FIXME: insert proper C++ library support 12080 ld_shlibs_CXX=no 12081 fi 12082 ;; 12083 esac 12084 ;; 12085 psos*) 12086 # FIXME: insert proper C++ library support 12087 ld_shlibs_CXX=no 12088 ;; 12089 sunos4*) 12090 case $cc_basename in 12091 CC*) 12092 # Sun C++ 4.x 12093 # FIXME: insert proper C++ library support 12094 ld_shlibs_CXX=no 12095 ;; 12096 lcc*) 12097 # Lucid 12098 # FIXME: insert proper C++ library support 12099 ld_shlibs_CXX=no 12100 ;; 12101 *) 12102 # FIXME: insert proper C++ library support 12103 ld_shlibs_CXX=no 12104 ;; 12105 esac 12106 ;; 12107 solaris*) 12108 case $cc_basename in 12109 CC*) 12110 # Sun C++ 4.2, 5.x and Centerline C++ 12111 archive_cmds_need_lc_CXX=yes 12112 no_undefined_flag_CXX=' -zdefs' 12113 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12114 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12115 $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' 12116 12117 hardcode_libdir_flag_spec_CXX='-R$libdir' 12118 hardcode_shlibpath_var_CXX=no 12119 case $host_os in 12120 solaris2.[0-5] | solaris2.[0-5].*) ;; 12121 *) 12122 # The C++ compiler is used as linker so we must use $wl 12123 # flag to pass the commands to the underlying system 12124 # linker. We must also pass each convience library through 12125 # to the system linker between allextract/defaultextract. 12126 # The C++ compiler will combine linker options so we 12127 # cannot just pass the convience library names through 12128 # without $wl. 12129 # Supported since Solaris 2.6 (maybe 2.5.1?) 12130 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' 12131 ;; 12132 esac 12133 link_all_deplibs_CXX=yes 12134 12135 output_verbose_link_cmd='echo' 12136 12137 # Archives containing C++ object files must be created using 12138 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12139 # necessary to make sure instantiated templates are included 12140 # in the archive. 12141 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12142 ;; 12143 gcx*) 12144 # Green Hills C++ Compiler 12145 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12146 12147 # The C++ compiler must be used to create the archive. 12148 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12149 ;; 12150 *) 12151 # GNU C++ compiler with Solaris linker 12152 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12153 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12154 if $CC --version | grep -v '^2\.7' > /dev/null; then 12155 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12156 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12157 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12158 12159 # Commands to make compiler produce verbose output that lists 12160 # what "hidden" libraries, object files and flags are used when 12161 # linking a shared library. 12162 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12163 else 12164 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12165 # platform. 12166 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12167 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12168 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12169 12170 # Commands to make compiler produce verbose output that lists 12171 # what "hidden" libraries, object files and flags are used when 12172 # linking a shared library. 12173 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12174 fi 12175 12176 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12177 fi 12178 ;; 12179 esac 12180 ;; 12181 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12182 no_undefined_flag_CXX='${wl}-z,text' 12183 archive_cmds_need_lc_CXX=no 12184 hardcode_shlibpath_var_CXX=no 12185 runpath_var='LD_RUN_PATH' 12186 12187 case $cc_basename in 12188 CC*) 12189 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12190 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12191 ;; 12192 *) 12193 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12194 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12195 ;; 12196 esac 12197 ;; 12198 sysv5* | sco3.2v5* | sco5v6*) 12199 # Note: We can NOT use -z defs as we might desire, because we do not 12200 # link with -lc, and that would cause any symbols used from libc to 12201 # always be unresolved, which means just about no library would 12202 # ever link correctly. If we're not using GNU ld we use -z text 12203 # though, which does catch some bad symbols but isn't as heavy-handed 12204 # as -z defs. 12205 # For security reasons, it is highly recommended that you always 12206 # use absolute paths for naming shared libraries, and exclude the 12207 # DT_RUNPATH tag from executables and libraries. But doing so 12208 # requires that you compile everything twice, which is a pain. 12209 # So that behaviour is only enabled if SCOABSPATH is set to a 12210 # non-empty value in the environment. Most likely only useful for 12211 # creating official distributions of packages. 12212 # This is a hack until libtool officially supports absolute path 12213 # names for shared libraries. 12214 no_undefined_flag_CXX='${wl}-z,text' 12215 allow_undefined_flag_CXX='${wl}-z,nodefs' 12216 archive_cmds_need_lc_CXX=no 12217 hardcode_shlibpath_var_CXX=no 12218 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12219 hardcode_libdir_separator_CXX=':' 12220 link_all_deplibs_CXX=yes 12221 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12222 runpath_var='LD_RUN_PATH' 12223 12224 case $cc_basename in 12225 CC*) 12226 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12227 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12228 ;; 12229 *) 12230 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12231 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12232 ;; 12233 esac 12234 ;; 12235 tandem*) 12236 case $cc_basename in 12237 NCC*) 12238 # NonStop-UX NCC 3.20 12239 # FIXME: insert proper C++ library support 12240 ld_shlibs_CXX=no 12241 ;; 12242 *) 12243 # FIXME: insert proper C++ library support 12244 ld_shlibs_CXX=no 12245 ;; 12246 esac 12247 ;; 12248 vxworks*) 12249 # FIXME: insert proper C++ library support 12250 ld_shlibs_CXX=no 12251 ;; 12252 *) 12253 # FIXME: insert proper C++ library support 12254 ld_shlibs_CXX=no 12255 ;; 12256esac 12257{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12258echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12259test "$ld_shlibs_CXX" = no && can_build_shared=no 12260 12261GCC_CXX="$GXX" 12262LD_CXX="$LD" 12263 12264 12265cat > conftest.$ac_ext <<EOF 12266class Foo 12267{ 12268public: 12269 Foo (void) { a = 0; } 12270private: 12271 int a; 12272}; 12273EOF 12274 12275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12276 (eval $ac_compile) 2>&5 12277 ac_status=$? 12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12279 (exit $ac_status); }; then 12280 # Parse the compiler output and extract the necessary 12281 # objects, libraries and library flags. 12282 12283 # Sentinel used to keep track of whether or not we are before 12284 # the conftest object file. 12285 pre_test_object_deps_done=no 12286 12287 # The `*' in the case matches for architectures that use `case' in 12288 # $output_verbose_cmd can trigger glob expansion during the loop 12289 # eval without this substitution. 12290 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12291 12292 for p in `eval $output_verbose_link_cmd`; do 12293 case $p in 12294 12295 -L* | -R* | -l*) 12296 # Some compilers place space between "-{L,R}" and the path. 12297 # Remove the space. 12298 if test $p = "-L" \ 12299 || test $p = "-R"; then 12300 prev=$p 12301 continue 12302 else 12303 prev= 12304 fi 12305 12306 if test "$pre_test_object_deps_done" = no; then 12307 case $p in 12308 -L* | -R*) 12309 # Internal compiler library paths should come after those 12310 # provided the user. The postdeps already come after the 12311 # user supplied libs so there is no need to process them. 12312 if test -z "$compiler_lib_search_path_CXX"; then 12313 compiler_lib_search_path_CXX="${prev}${p}" 12314 else 12315 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12316 fi 12317 ;; 12318 # The "-l" case would never come before the object being 12319 # linked, so don't bother handling this case. 12320 esac 12321 else 12322 if test -z "$postdeps_CXX"; then 12323 postdeps_CXX="${prev}${p}" 12324 else 12325 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12326 fi 12327 fi 12328 ;; 12329 12330 *.$objext) 12331 # This assumes that the test object file only shows up 12332 # once in the compiler output. 12333 if test "$p" = "conftest.$objext"; then 12334 pre_test_object_deps_done=yes 12335 continue 12336 fi 12337 12338 if test "$pre_test_object_deps_done" = no; then 12339 if test -z "$predep_objects_CXX"; then 12340 predep_objects_CXX="$p" 12341 else 12342 predep_objects_CXX="$predep_objects_CXX $p" 12343 fi 12344 else 12345 if test -z "$postdep_objects_CXX"; then 12346 postdep_objects_CXX="$p" 12347 else 12348 postdep_objects_CXX="$postdep_objects_CXX $p" 12349 fi 12350 fi 12351 ;; 12352 12353 *) ;; # Ignore the rest. 12354 12355 esac 12356 done 12357 12358 # Clean up. 12359 rm -f a.out a.exe 12360else 12361 echo "libtool.m4: error: problem compiling CXX test program" 12362fi 12363 12364$rm -f confest.$objext 12365 12366# PORTME: override above test on systems where it is broken 12367case $host_os in 12368interix3*) 12369 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12370 # hack all around it, let's just trust "g++" to DTRT. 12371 predep_objects_CXX= 12372 postdep_objects_CXX= 12373 postdeps_CXX= 12374 ;; 12375 12376solaris*) 12377 case $cc_basename in 12378 CC*) 12379 # Adding this requires a known-good setup of shared libraries for 12380 # Sun compiler versions before 5.6, else PIC objects from an old 12381 # archive will be linked into the output, leading to subtle bugs. 12382 postdeps_CXX='-lCstd -lCrun' 12383 ;; 12384 esac 12385 ;; 12386esac 12387 12388 12389case " $postdeps_CXX " in 12390*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12391esac 12392 12393lt_prog_compiler_wl_CXX= 12394lt_prog_compiler_pic_CXX= 12395lt_prog_compiler_static_CXX= 12396 12397{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12398echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 12399 12400 # C++ specific cases for pic, static, wl, etc. 12401 if test "$GXX" = yes; then 12402 lt_prog_compiler_wl_CXX='-Wl,' 12403 lt_prog_compiler_static_CXX='-static' 12404 12405 case $host_os in 12406 aix*) 12407 # All AIX code is PIC. 12408 if test "$host_cpu" = ia64; then 12409 # AIX 5 now supports IA64 processor 12410 lt_prog_compiler_static_CXX='-Bstatic' 12411 fi 12412 ;; 12413 amigaos*) 12414 # FIXME: we need at least 68020 code to build shared libraries, but 12415 # adding the `-m68020' flag to GCC prevents building anything better, 12416 # like `-m68040'. 12417 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12418 ;; 12419 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12420 # PIC is the default for these OSes. 12421 ;; 12422 mingw* | os2* | pw32*) 12423 # This hack is so that the source file can tell whether it is being 12424 # built for inclusion in a dll (and should export symbols for example). 12425 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12426 ;; 12427 darwin* | rhapsody*) 12428 # PIC is the default on this platform 12429 # Common symbols not allowed in MH_DYLIB files 12430 lt_prog_compiler_pic_CXX='-fno-common' 12431 ;; 12432 *djgpp*) 12433 # DJGPP does not support shared libraries at all 12434 lt_prog_compiler_pic_CXX= 12435 ;; 12436 interix3*) 12437 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12438 # Instead, we relocate shared libraries at runtime. 12439 ;; 12440 sysv4*MP*) 12441 if test -d /usr/nec; then 12442 lt_prog_compiler_pic_CXX=-Kconform_pic 12443 fi 12444 ;; 12445 hpux*) 12446 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12447 # not for PA HP-UX. 12448 case $host_cpu in 12449 hppa*64*|ia64*) 12450 ;; 12451 *) 12452 lt_prog_compiler_pic_CXX='-fPIC' 12453 ;; 12454 esac 12455 ;; 12456 *) 12457 lt_prog_compiler_pic_CXX='-fPIC' 12458 ;; 12459 esac 12460 else 12461 case $host_os in 12462 aix4* | aix5*) 12463 # All AIX code is PIC. 12464 if test "$host_cpu" = ia64; then 12465 # AIX 5 now supports IA64 processor 12466 lt_prog_compiler_static_CXX='-Bstatic' 12467 else 12468 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12469 fi 12470 ;; 12471 chorus*) 12472 case $cc_basename in 12473 cxch68*) 12474 # Green Hills C++ Compiler 12475 # _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" 12476 ;; 12477 esac 12478 ;; 12479 darwin*) 12480 # PIC is the default on this platform 12481 # Common symbols not allowed in MH_DYLIB files 12482 case $cc_basename in 12483 xlc*) 12484 lt_prog_compiler_pic_CXX='-qnocommon' 12485 lt_prog_compiler_wl_CXX='-Wl,' 12486 ;; 12487 esac 12488 ;; 12489 dgux*) 12490 case $cc_basename in 12491 ec++*) 12492 lt_prog_compiler_pic_CXX='-KPIC' 12493 ;; 12494 ghcx*) 12495 # Green Hills C++ Compiler 12496 lt_prog_compiler_pic_CXX='-pic' 12497 ;; 12498 *) 12499 ;; 12500 esac 12501 ;; 12502 freebsd* | dragonfly*) 12503 # FreeBSD uses GNU C++ 12504 ;; 12505 hpux9* | hpux10* | hpux11*) 12506 case $cc_basename in 12507 CC*) 12508 lt_prog_compiler_wl_CXX='-Wl,' 12509 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12510 if test "$host_cpu" != ia64; then 12511 lt_prog_compiler_pic_CXX='+Z' 12512 fi 12513 ;; 12514 aCC*) 12515 lt_prog_compiler_wl_CXX='-Wl,' 12516 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12517 case $host_cpu in 12518 hppa*64*|ia64*) 12519 # +Z the default 12520 ;; 12521 *) 12522 lt_prog_compiler_pic_CXX='+Z' 12523 ;; 12524 esac 12525 ;; 12526 *) 12527 ;; 12528 esac 12529 ;; 12530 interix*) 12531 # This is c89, which is MS Visual C++ (no shared libs) 12532 # Anyone wants to do a port? 12533 ;; 12534 irix5* | irix6* | nonstopux*) 12535 case $cc_basename in 12536 CC*) 12537 lt_prog_compiler_wl_CXX='-Wl,' 12538 lt_prog_compiler_static_CXX='-non_shared' 12539 # CC pic flag -KPIC is the default. 12540 ;; 12541 *) 12542 ;; 12543 esac 12544 ;; 12545 linux* | k*bsd*-gnu) 12546 case $cc_basename in 12547 KCC*) 12548 # KAI C++ Compiler 12549 lt_prog_compiler_wl_CXX='--backend -Wl,' 12550 lt_prog_compiler_pic_CXX='-fPIC' 12551 ;; 12552 icpc* | ecpc*) 12553 # Intel C++ 12554 lt_prog_compiler_wl_CXX='-Wl,' 12555 lt_prog_compiler_pic_CXX='-KPIC' 12556 lt_prog_compiler_static_CXX='-static' 12557 ;; 12558 pgCC*) 12559 # Portland Group C++ compiler. 12560 lt_prog_compiler_wl_CXX='-Wl,' 12561 lt_prog_compiler_pic_CXX='-fpic' 12562 lt_prog_compiler_static_CXX='-Bstatic' 12563 ;; 12564 cxx*) 12565 # Compaq C++ 12566 # Make sure the PIC flag is empty. It appears that all Alpha 12567 # Linux and Compaq Tru64 Unix objects are PIC. 12568 lt_prog_compiler_pic_CXX= 12569 lt_prog_compiler_static_CXX='-non_shared' 12570 ;; 12571 *) 12572 ;; 12573 esac 12574 ;; 12575 lynxos*) 12576 ;; 12577 m88k*) 12578 ;; 12579 mvs*) 12580 case $cc_basename in 12581 cxx*) 12582 lt_prog_compiler_pic_CXX='-W c,exportall' 12583 ;; 12584 *) 12585 ;; 12586 esac 12587 ;; 12588 netbsd* | netbsdelf*-gnu) 12589 ;; 12590 osf3* | osf4* | osf5*) 12591 case $cc_basename in 12592 KCC*) 12593 lt_prog_compiler_wl_CXX='--backend -Wl,' 12594 ;; 12595 RCC*) 12596 # Rational C++ 2.4.1 12597 lt_prog_compiler_pic_CXX='-pic' 12598 ;; 12599 cxx*) 12600 # Digital/Compaq C++ 12601 lt_prog_compiler_wl_CXX='-Wl,' 12602 # Make sure the PIC flag is empty. It appears that all Alpha 12603 # Linux and Compaq Tru64 Unix objects are PIC. 12604 lt_prog_compiler_pic_CXX= 12605 lt_prog_compiler_static_CXX='-non_shared' 12606 ;; 12607 *) 12608 ;; 12609 esac 12610 ;; 12611 psos*) 12612 ;; 12613 solaris*) 12614 case $cc_basename in 12615 CC*) 12616 # Sun C++ 4.2, 5.x and Centerline C++ 12617 lt_prog_compiler_pic_CXX='-KPIC' 12618 lt_prog_compiler_static_CXX='-Bstatic' 12619 lt_prog_compiler_wl_CXX='-Qoption ld ' 12620 ;; 12621 gcx*) 12622 # Green Hills C++ Compiler 12623 lt_prog_compiler_pic_CXX='-PIC' 12624 ;; 12625 *) 12626 ;; 12627 esac 12628 ;; 12629 sunos4*) 12630 case $cc_basename in 12631 CC*) 12632 # Sun C++ 4.x 12633 lt_prog_compiler_pic_CXX='-pic' 12634 lt_prog_compiler_static_CXX='-Bstatic' 12635 ;; 12636 lcc*) 12637 # Lucid 12638 lt_prog_compiler_pic_CXX='-pic' 12639 ;; 12640 *) 12641 ;; 12642 esac 12643 ;; 12644 tandem*) 12645 case $cc_basename in 12646 NCC*) 12647 # NonStop-UX NCC 3.20 12648 lt_prog_compiler_pic_CXX='-KPIC' 12649 ;; 12650 *) 12651 ;; 12652 esac 12653 ;; 12654 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12655 case $cc_basename in 12656 CC*) 12657 lt_prog_compiler_wl_CXX='-Wl,' 12658 lt_prog_compiler_pic_CXX='-KPIC' 12659 lt_prog_compiler_static_CXX='-Bstatic' 12660 ;; 12661 esac 12662 ;; 12663 vxworks*) 12664 ;; 12665 *) 12666 lt_prog_compiler_can_build_shared_CXX=no 12667 ;; 12668 esac 12669 fi 12670 12671{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 12672echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } 12673 12674# 12675# Check to make sure the PIC flag actually works. 12676# 12677if test -n "$lt_prog_compiler_pic_CXX"; then 12678 12679{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12680echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } 12681if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 12682 echo $ECHO_N "(cached) $ECHO_C" >&6 12683else 12684 lt_prog_compiler_pic_works_CXX=no 12685 ac_outfile=conftest.$ac_objext 12686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12687 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 12688 # Insert the option either (1) after the last *FLAGS variable, or 12689 # (2) before a word containing "conftest.", or (3) at the end. 12690 # Note that $ac_compile itself does not contain backslashes and begins 12691 # with a dollar sign (not a hyphen), so the echo should work correctly. 12692 # The option is referenced via a variable to avoid confusing sed. 12693 lt_compile=`echo "$ac_compile" | $SED \ 12694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12696 -e 's:$: $lt_compiler_flag:'` 12697 (eval echo "\"\$as_me:12697: $lt_compile\"" >&5) 12698 (eval "$lt_compile" 2>conftest.err) 12699 ac_status=$? 12700 cat conftest.err >&5 12701 echo "$as_me:12701: \$? = $ac_status" >&5 12702 if (exit $ac_status) && test -s "$ac_outfile"; then 12703 # The compiler can only warn and ignore the option if not recognized 12704 # So say no if there are warnings other than the usual output. 12705 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 12708 lt_prog_compiler_pic_works_CXX=yes 12709 fi 12710 fi 12711 $rm conftest* 12712 12713fi 12714{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 12715echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } 12716 12717if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 12718 case $lt_prog_compiler_pic_CXX in 12719 "" | " "*) ;; 12720 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 12721 esac 12722else 12723 lt_prog_compiler_pic_CXX= 12724 lt_prog_compiler_can_build_shared_CXX=no 12725fi 12726 12727fi 12728case $host_os in 12729 # For platforms which do not support PIC, -DPIC is meaningless: 12730 *djgpp*) 12731 lt_prog_compiler_pic_CXX= 12732 ;; 12733 *) 12734 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12735 ;; 12736esac 12737 12738# 12739# Check to make sure the static flag actually works. 12740# 12741wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12742{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12743echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 12744if test "${lt_prog_compiler_static_works_CXX+set}" = set; then 12745 echo $ECHO_N "(cached) $ECHO_C" >&6 12746else 12747 lt_prog_compiler_static_works_CXX=no 12748 save_LDFLAGS="$LDFLAGS" 12749 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 12750 printf "$lt_simple_link_test_code" > conftest.$ac_ext 12751 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12752 # The linker can only warn and ignore the option if not recognized 12753 # So say no if there are warnings 12754 if test -s conftest.err; then 12755 # Append any errors to the config.log. 12756 cat conftest.err 1>&5 12757 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 12758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12759 if diff conftest.exp conftest.er2 >/dev/null; then 12760 lt_prog_compiler_static_works_CXX=yes 12761 fi 12762 else 12763 lt_prog_compiler_static_works_CXX=yes 12764 fi 12765 fi 12766 $rm conftest* 12767 LDFLAGS="$save_LDFLAGS" 12768 12769fi 12770{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 12771echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } 12772 12773if test x"$lt_prog_compiler_static_works_CXX" = xyes; then 12774 : 12775else 12776 lt_prog_compiler_static_CXX= 12777fi 12778 12779 12780{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12781echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 12782if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 12783 echo $ECHO_N "(cached) $ECHO_C" >&6 12784else 12785 lt_cv_prog_compiler_c_o_CXX=no 12786 $rm -r conftest 2>/dev/null 12787 mkdir conftest 12788 cd conftest 12789 mkdir out 12790 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12791 12792 lt_compiler_flag="-o out/conftest2.$ac_objext" 12793 # Insert the option either (1) after the last *FLAGS variable, or 12794 # (2) before a word containing "conftest.", or (3) at the end. 12795 # Note that $ac_compile itself does not contain backslashes and begins 12796 # with a dollar sign (not a hyphen), so the echo should work correctly. 12797 lt_compile=`echo "$ac_compile" | $SED \ 12798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 12799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12800 -e 's:$: $lt_compiler_flag:'` 12801 (eval echo "\"\$as_me:12801: $lt_compile\"" >&5) 12802 (eval "$lt_compile" 2>out/conftest.err) 12803 ac_status=$? 12804 cat out/conftest.err >&5 12805 echo "$as_me:12805: \$? = $ac_status" >&5 12806 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12807 then 12808 # The compiler can only warn and ignore the option if not recognized 12809 # So say no if there are warnings 12810 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 12811 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 12812 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 12813 lt_cv_prog_compiler_c_o_CXX=yes 12814 fi 12815 fi 12816 chmod u+w . 2>&5 12817 $rm conftest* 12818 # SGI C++ compiler will create directory out/ii_files/ for 12819 # template instantiation 12820 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12821 $rm out/* && rmdir out 12822 cd .. 12823 rmdir conftest 12824 $rm conftest* 12825 12826fi 12827{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 12828echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } 12829 12830 12831hard_links="nottested" 12832if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 12833 # do not overwrite the value of need_locks provided by the user 12834 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12835echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 12836 hard_links=yes 12837 $rm conftest* 12838 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12839 touch conftest.a 12840 ln conftest.a conftest.b 2>&5 || hard_links=no 12841 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12842 { echo "$as_me:$LINENO: result: $hard_links" >&5 12843echo "${ECHO_T}$hard_links" >&6; } 12844 if test "$hard_links" = no; then 12845 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12846echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12847 need_locks=warn 12848 fi 12849else 12850 need_locks=no 12851fi 12852 12853{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12854echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 12855 12856 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12857 case $host_os in 12858 aix4* | aix5*) 12859 # If we're using GNU nm, then we don't want the "-C" option. 12860 # -C means demangle to AIX nm, but means don't demangle with GNU nm 12861 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 12862 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' 12863 else 12864 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' 12865 fi 12866 ;; 12867 pw32*) 12868 export_symbols_cmds_CXX="$ltdll_cmds" 12869 ;; 12870 cygwin* | mingw*) 12871 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' 12872 ;; 12873 linux* | k*bsd*-gnu) 12874 link_all_deplibs_CXX=no 12875 ;; 12876 *) 12877 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 12878 ;; 12879 esac 12880 12881{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12882echo "${ECHO_T}$ld_shlibs_CXX" >&6; } 12883test "$ld_shlibs_CXX" = no && can_build_shared=no 12884 12885# 12886# Do we need to explicitly link libc? 12887# 12888case "x$archive_cmds_need_lc_CXX" in 12889x|xyes) 12890 # Assume -lc should be added 12891 archive_cmds_need_lc_CXX=yes 12892 12893 if test "$enable_shared" = yes && test "$GCC" = yes; then 12894 case $archive_cmds_CXX in 12895 *'~'*) 12896 # FIXME: we may have to deal with multi-command sequences. 12897 ;; 12898 '$CC '*) 12899 # Test whether the compiler implicitly links with -lc since on some 12900 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12901 # to ld, don't add -lc before -lgcc. 12902 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12903echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 12904 $rm conftest* 12905 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12906 12907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12908 (eval $ac_compile) 2>&5 12909 ac_status=$? 12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12911 (exit $ac_status); } 2>conftest.err; then 12912 soname=conftest 12913 lib=conftest 12914 libobjs=conftest.$ac_objext 12915 deplibs= 12916 wl=$lt_prog_compiler_wl_CXX 12917 pic_flag=$lt_prog_compiler_pic_CXX 12918 compiler_flags=-v 12919 linker_flags=-v 12920 verstring= 12921 output_objdir=. 12922 libname=conftest 12923 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 12924 allow_undefined_flag_CXX= 12925 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 12926 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 12927 ac_status=$? 12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12929 (exit $ac_status); } 12930 then 12931 archive_cmds_need_lc_CXX=no 12932 else 12933 archive_cmds_need_lc_CXX=yes 12934 fi 12935 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 12936 else 12937 cat conftest.err 1>&5 12938 fi 12939 $rm conftest* 12940 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 12941echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } 12942 ;; 12943 esac 12944 fi 12945 ;; 12946esac 12947 12948{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12949echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 12950library_names_spec= 12951libname_spec='lib$name' 12952soname_spec= 12953shrext_cmds=".so" 12954postinstall_cmds= 12955postuninstall_cmds= 12956finish_cmds= 12957finish_eval= 12958shlibpath_var= 12959shlibpath_overrides_runpath=unknown 12960version_type=none 12961dynamic_linker="$host_os ld.so" 12962sys_lib_dlsearch_path_spec="/lib /usr/lib" 12963if test "$GCC" = yes; then 12964 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12965 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12966 # if the path contains ";" then we assume it to be the separator 12967 # otherwise default to the standard path separator (i.e. ":") - it is 12968 # assumed that no part of a normal pathname contains ";" but that should 12969 # okay in the real world where ";" in dirpaths is itself problematic. 12970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12971 else 12972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12973 fi 12974else 12975 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12976fi 12977need_lib_prefix=unknown 12978hardcode_into_libs=no 12979 12980# when you set need_version to no, make sure it does not cause -set_version 12981# flags to be left without arguments 12982need_version=unknown 12983 12984case $host_os in 12985aix3*) 12986 version_type=linux 12987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12988 shlibpath_var=LIBPATH 12989 12990 # AIX 3 has no versioning support, so we append a major version to the name. 12991 soname_spec='${libname}${release}${shared_ext}$major' 12992 ;; 12993 12994aix4* | aix5*) 12995 version_type=linux 12996 need_lib_prefix=no 12997 need_version=no 12998 hardcode_into_libs=yes 12999 if test "$host_cpu" = ia64; then 13000 # AIX 5 supports IA64 13001 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13002 shlibpath_var=LD_LIBRARY_PATH 13003 else 13004 # With GCC up to 2.95.x, collect2 would create an import file 13005 # for dependence libraries. The import file would start with 13006 # the line `#! .'. This would cause the generated library to 13007 # depend on `.', always an invalid library. This was fixed in 13008 # development snapshots of GCC prior to 3.0. 13009 case $host_os in 13010 aix4 | aix4.[01] | aix4.[01].*) 13011 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13012 echo ' yes ' 13013 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13014 : 13015 else 13016 can_build_shared=no 13017 fi 13018 ;; 13019 esac 13020 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13021 # soname into executable. Probably we can add versioning support to 13022 # collect2, so additional links can be useful in future. 13023 if test "$aix_use_runtimelinking" = yes; then 13024 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13025 # instead of lib<name>.a to let people know that these are not 13026 # typical AIX shared libraries. 13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13028 else 13029 # We preserve .a as extension for shared libraries through AIX4.2 13030 # and later when we are not doing run time linking. 13031 library_names_spec='${libname}${release}.a $libname.a' 13032 soname_spec='${libname}${release}${shared_ext}$major' 13033 fi 13034 shlibpath_var=LIBPATH 13035 fi 13036 ;; 13037 13038amigaos*) 13039 library_names_spec='$libname.ixlibrary $libname.a' 13040 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13041 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' 13042 ;; 13043 13044beos*) 13045 library_names_spec='${libname}${shared_ext}' 13046 dynamic_linker="$host_os ld.so" 13047 shlibpath_var=LIBRARY_PATH 13048 ;; 13049 13050bsdi[45]*) 13051 version_type=linux 13052 need_version=no 13053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13054 soname_spec='${libname}${release}${shared_ext}$major' 13055 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13056 shlibpath_var=LD_LIBRARY_PATH 13057 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13058 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13059 # the default ld.so.conf also contains /usr/contrib/lib and 13060 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13061 # libtool to hard-code these into programs 13062 ;; 13063 13064cygwin* | mingw* | pw32*) 13065 version_type=windows 13066 shrext_cmds=".dll" 13067 need_version=no 13068 need_lib_prefix=no 13069 13070 case $GCC,$host_os in 13071 yes,cygwin* | yes,mingw* | yes,pw32*) 13072 library_names_spec='$libname.dll.a' 13073 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13074 postinstall_cmds='base_file=`basename \${file}`~ 13075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13076 dldir=$destdir/`dirname \$dlpath`~ 13077 test -d \$dldir || mkdir -p \$dldir~ 13078 $install_prog $dir/$dlname \$dldir/$dlname~ 13079 chmod a+x \$dldir/$dlname' 13080 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13081 dlpath=$dir/\$dldll~ 13082 $rm \$dlpath' 13083 shlibpath_overrides_runpath=yes 13084 13085 case $host_os in 13086 cygwin*) 13087 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13088 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13089 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13090 ;; 13091 mingw*) 13092 # MinGW DLLs use traditional 'lib' prefix 13093 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13094 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13095 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 13096 # It is most probably a Windows format PATH printed by 13097 # mingw gcc, but we are running on Cygwin. Gcc prints its search 13098 # path with ; separators, and with drive letters. We can handle the 13099 # drive letters (cygwin fileutils understands them), so leave them, 13100 # especially as we might pass files found there to a mingw objdump, 13101 # which wouldn't understand a cygwinified path. Ahh. 13102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13103 else 13104 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13105 fi 13106 ;; 13107 pw32*) 13108 # pw32 DLLs use 'pw' prefix rather than 'lib' 13109 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13110 ;; 13111 esac 13112 ;; 13113 13114 *) 13115 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13116 ;; 13117 esac 13118 dynamic_linker='Win32 ld.exe' 13119 # FIXME: first we should search . and the directory the executable is in 13120 shlibpath_var=PATH 13121 ;; 13122 13123darwin* | rhapsody*) 13124 dynamic_linker="$host_os dyld" 13125 version_type=darwin 13126 need_lib_prefix=no 13127 need_version=no 13128 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13129 soname_spec='${libname}${release}${major}$shared_ext' 13130 shlibpath_overrides_runpath=yes 13131 shlibpath_var=DYLD_LIBRARY_PATH 13132 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13133 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13134 if test "$GCC" = yes; then 13135 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"` 13136 else 13137 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13138 fi 13139 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13140 ;; 13141 13142dgux*) 13143 version_type=linux 13144 need_lib_prefix=no 13145 need_version=no 13146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13147 soname_spec='${libname}${release}${shared_ext}$major' 13148 shlibpath_var=LD_LIBRARY_PATH 13149 ;; 13150 13151freebsd1*) 13152 dynamic_linker=no 13153 ;; 13154 13155freebsd* | dragonfly*) 13156 # DragonFly does not have aout. When/if they implement a new 13157 # versioning mechanism, adjust this. 13158 if test -x /usr/bin/objformat; then 13159 objformat=`/usr/bin/objformat` 13160 else 13161 case $host_os in 13162 freebsd[123]*) objformat=aout ;; 13163 *) objformat=elf ;; 13164 esac 13165 fi 13166 version_type=freebsd-$objformat 13167 case $version_type in 13168 freebsd-elf*) 13169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13170 need_version=no 13171 need_lib_prefix=no 13172 ;; 13173 freebsd-*) 13174 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13175 need_version=yes 13176 ;; 13177 esac 13178 shlibpath_var=LD_LIBRARY_PATH 13179 case $host_os in 13180 freebsd2*) 13181 shlibpath_overrides_runpath=yes 13182 ;; 13183 freebsd3.[01]* | freebsdelf3.[01]*) 13184 shlibpath_overrides_runpath=yes 13185 hardcode_into_libs=yes 13186 ;; 13187 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13188 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13189 shlibpath_overrides_runpath=no 13190 hardcode_into_libs=yes 13191 ;; 13192 freebsd*) # from 4.6 on 13193 shlibpath_overrides_runpath=yes 13194 hardcode_into_libs=yes 13195 ;; 13196 esac 13197 ;; 13198 13199gnu*) 13200 version_type=linux 13201 need_lib_prefix=no 13202 need_version=no 13203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13204 soname_spec='${libname}${release}${shared_ext}$major' 13205 shlibpath_var=LD_LIBRARY_PATH 13206 hardcode_into_libs=yes 13207 ;; 13208 13209hpux9* | hpux10* | hpux11*) 13210 # Give a soname corresponding to the major version so that dld.sl refuses to 13211 # link against other versions. 13212 version_type=sunos 13213 need_lib_prefix=no 13214 need_version=no 13215 case $host_cpu in 13216 ia64*) 13217 shrext_cmds='.so' 13218 hardcode_into_libs=yes 13219 dynamic_linker="$host_os dld.so" 13220 shlibpath_var=LD_LIBRARY_PATH 13221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13223 soname_spec='${libname}${release}${shared_ext}$major' 13224 if test "X$HPUX_IA64_MODE" = X32; then 13225 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13226 else 13227 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13228 fi 13229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13230 ;; 13231 hppa*64*) 13232 shrext_cmds='.sl' 13233 hardcode_into_libs=yes 13234 dynamic_linker="$host_os dld.sl" 13235 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13238 soname_spec='${libname}${release}${shared_ext}$major' 13239 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13241 ;; 13242 *) 13243 shrext_cmds='.sl' 13244 dynamic_linker="$host_os dld.sl" 13245 shlibpath_var=SHLIB_PATH 13246 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13248 soname_spec='${libname}${release}${shared_ext}$major' 13249 ;; 13250 esac 13251 # HP-UX runs *really* slowly unless shared libraries are mode 555. 13252 postinstall_cmds='chmod 555 $lib' 13253 ;; 13254 13255interix3*) 13256 version_type=linux 13257 need_lib_prefix=no 13258 need_version=no 13259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13260 soname_spec='${libname}${release}${shared_ext}$major' 13261 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13262 shlibpath_var=LD_LIBRARY_PATH 13263 shlibpath_overrides_runpath=no 13264 hardcode_into_libs=yes 13265 ;; 13266 13267irix5* | irix6* | nonstopux*) 13268 case $host_os in 13269 nonstopux*) version_type=nonstopux ;; 13270 *) 13271 if test "$lt_cv_prog_gnu_ld" = yes; then 13272 version_type=linux 13273 else 13274 version_type=irix 13275 fi ;; 13276 esac 13277 need_lib_prefix=no 13278 need_version=no 13279 soname_spec='${libname}${release}${shared_ext}$major' 13280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13281 case $host_os in 13282 irix5* | nonstopux*) 13283 libsuff= shlibsuff= 13284 ;; 13285 *) 13286 case $LD in # libtool.m4 will add one of these switches to LD 13287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13288 libsuff= shlibsuff= libmagic=32-bit;; 13289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13290 libsuff=32 shlibsuff=N32 libmagic=N32;; 13291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13292 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13293 *) libsuff= shlibsuff= libmagic=never-match;; 13294 esac 13295 ;; 13296 esac 13297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13298 shlibpath_overrides_runpath=no 13299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13301 hardcode_into_libs=yes 13302 ;; 13303 13304# No shared lib support for Linux oldld, aout, or coff. 13305linux*oldld* | linux*aout* | linux*coff*) 13306 dynamic_linker=no 13307 ;; 13308 13309# This must be Linux ELF. 13310linux* | k*bsd*-gnu) 13311 version_type=linux 13312 need_lib_prefix=no 13313 need_version=no 13314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13315 soname_spec='${libname}${release}${shared_ext}$major' 13316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13317 shlibpath_var=LD_LIBRARY_PATH 13318 shlibpath_overrides_runpath=no 13319 # This implies no fast_install, which is unacceptable. 13320 # Some rework will be needed to allow for fast_install 13321 # before this can be enabled. 13322 hardcode_into_libs=yes 13323 13324 # Append ld.so.conf contents to the search path 13325 if test -f /etc/ld.so.conf; then 13326 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' ' '` 13327 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13328 fi 13329 13330 # We used to test for /lib/ld.so.1 and disable shared libraries on 13331 # powerpc, because MkLinux only supported shared libraries with the 13332 # GNU dynamic linker. Since this was broken with cross compilers, 13333 # most powerpc-linux boxes support dynamic linking these days and 13334 # people can always --disable-shared, the test was removed, and we 13335 # assume the GNU/Linux dynamic linker is in use. 13336 dynamic_linker='GNU/Linux ld.so' 13337 ;; 13338 13339netbsdelf*-gnu) 13340 version_type=linux 13341 need_lib_prefix=no 13342 need_version=no 13343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13344 soname_spec='${libname}${release}${shared_ext}$major' 13345 shlibpath_var=LD_LIBRARY_PATH 13346 shlibpath_overrides_runpath=no 13347 hardcode_into_libs=yes 13348 dynamic_linker='NetBSD ld.elf_so' 13349 ;; 13350 13351netbsd*) 13352 version_type=sunos 13353 need_lib_prefix=no 13354 need_version=no 13355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13358 dynamic_linker='NetBSD (a.out) ld.so' 13359 else 13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13361 soname_spec='${libname}${release}${shared_ext}$major' 13362 dynamic_linker='NetBSD ld.elf_so' 13363 fi 13364 shlibpath_var=LD_LIBRARY_PATH 13365 shlibpath_overrides_runpath=yes 13366 hardcode_into_libs=yes 13367 ;; 13368 13369newsos6) 13370 version_type=linux 13371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13372 shlibpath_var=LD_LIBRARY_PATH 13373 shlibpath_overrides_runpath=yes 13374 ;; 13375 13376nto-qnx*) 13377 version_type=linux 13378 need_lib_prefix=no 13379 need_version=no 13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13381 soname_spec='${libname}${release}${shared_ext}$major' 13382 shlibpath_var=LD_LIBRARY_PATH 13383 shlibpath_overrides_runpath=yes 13384 ;; 13385 13386openbsd*) 13387 version_type=sunos 13388 sys_lib_dlsearch_path_spec="/usr/lib" 13389 need_lib_prefix=no 13390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13391 case $host_os in 13392 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13393 *) need_version=no ;; 13394 esac 13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13397 shlibpath_var=LD_LIBRARY_PATH 13398 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13399 case $host_os in 13400 openbsd2.[89] | openbsd2.[89].*) 13401 shlibpath_overrides_runpath=no 13402 ;; 13403 *) 13404 shlibpath_overrides_runpath=yes 13405 ;; 13406 esac 13407 else 13408 shlibpath_overrides_runpath=yes 13409 fi 13410 ;; 13411 13412os2*) 13413 libname_spec='$name' 13414 shrext_cmds=".dll" 13415 need_lib_prefix=no 13416 library_names_spec='$libname${shared_ext} $libname.a' 13417 dynamic_linker='OS/2 ld.exe' 13418 shlibpath_var=LIBPATH 13419 ;; 13420 13421osf3* | osf4* | osf5*) 13422 version_type=osf 13423 need_lib_prefix=no 13424 need_version=no 13425 soname_spec='${libname}${release}${shared_ext}$major' 13426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13427 shlibpath_var=LD_LIBRARY_PATH 13428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13430 ;; 13431 13432solaris*) 13433 version_type=linux 13434 need_lib_prefix=no 13435 need_version=no 13436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13437 soname_spec='${libname}${release}${shared_ext}$major' 13438 shlibpath_var=LD_LIBRARY_PATH 13439 shlibpath_overrides_runpath=yes 13440 hardcode_into_libs=yes 13441 # ldd complains unless libraries are executable 13442 postinstall_cmds='chmod +x $lib' 13443 ;; 13444 13445sunos4*) 13446 version_type=sunos 13447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13448 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13449 shlibpath_var=LD_LIBRARY_PATH 13450 shlibpath_overrides_runpath=yes 13451 if test "$with_gnu_ld" = yes; then 13452 need_lib_prefix=no 13453 fi 13454 need_version=yes 13455 ;; 13456 13457sysv4 | sysv4.3*) 13458 version_type=linux 13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13460 soname_spec='${libname}${release}${shared_ext}$major' 13461 shlibpath_var=LD_LIBRARY_PATH 13462 case $host_vendor in 13463 sni) 13464 shlibpath_overrides_runpath=no 13465 need_lib_prefix=no 13466 export_dynamic_flag_spec='${wl}-Blargedynsym' 13467 runpath_var=LD_RUN_PATH 13468 ;; 13469 siemens) 13470 need_lib_prefix=no 13471 ;; 13472 motorola) 13473 need_lib_prefix=no 13474 need_version=no 13475 shlibpath_overrides_runpath=no 13476 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13477 ;; 13478 esac 13479 ;; 13480 13481sysv4*MP*) 13482 if test -d /usr/nec ;then 13483 version_type=linux 13484 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13485 soname_spec='$libname${shared_ext}.$major' 13486 shlibpath_var=LD_LIBRARY_PATH 13487 fi 13488 ;; 13489 13490sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13491 version_type=freebsd-elf 13492 need_lib_prefix=no 13493 need_version=no 13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13495 soname_spec='${libname}${release}${shared_ext}$major' 13496 shlibpath_var=LD_LIBRARY_PATH 13497 hardcode_into_libs=yes 13498 if test "$with_gnu_ld" = yes; then 13499 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13500 shlibpath_overrides_runpath=no 13501 else 13502 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13503 shlibpath_overrides_runpath=yes 13504 case $host_os in 13505 sco3.2v5*) 13506 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13507 ;; 13508 esac 13509 fi 13510 sys_lib_dlsearch_path_spec='/usr/lib' 13511 ;; 13512 13513uts4*) 13514 version_type=linux 13515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13516 soname_spec='${libname}${release}${shared_ext}$major' 13517 shlibpath_var=LD_LIBRARY_PATH 13518 ;; 13519 13520*) 13521 dynamic_linker=no 13522 ;; 13523esac 13524{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13525echo "${ECHO_T}$dynamic_linker" >&6; } 13526test "$dynamic_linker" = no && can_build_shared=no 13527 13528variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13529if test "$GCC" = yes; then 13530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13531fi 13532 13533{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13534echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 13535hardcode_action_CXX= 13536if test -n "$hardcode_libdir_flag_spec_CXX" || \ 13537 test -n "$runpath_var_CXX" || \ 13538 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13539 13540 # We can hardcode non-existant directories. 13541 if test "$hardcode_direct_CXX" != no && 13542 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13543 # have to relink, otherwise we might link with an installed library 13544 # when we should be linking with a yet-to-be-installed one 13545 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13546 test "$hardcode_minus_L_CXX" != no; then 13547 # Linking always hardcodes the temporary library directory. 13548 hardcode_action_CXX=relink 13549 else 13550 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13551 hardcode_action_CXX=immediate 13552 fi 13553else 13554 # We cannot hardcode anything, or else we can only hardcode existing 13555 # directories. 13556 hardcode_action_CXX=unsupported 13557fi 13558{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 13559echo "${ECHO_T}$hardcode_action_CXX" >&6; } 13560 13561if test "$hardcode_action_CXX" = relink; then 13562 # Fast installation is not supported 13563 enable_fast_install=no 13564elif test "$shlibpath_overrides_runpath" = yes || 13565 test "$enable_shared" = no; then 13566 # Fast installation is not necessary 13567 enable_fast_install=needless 13568fi 13569 13570 13571# The else clause should only fire when bootstrapping the 13572# libtool distribution, otherwise you forgot to ship ltmain.sh 13573# with your package, and you will get complaints that there are 13574# no rules to generate ltmain.sh. 13575if test -f "$ltmain"; then 13576 # See if we are running on zsh, and set the options which allow our commands through 13577 # without removal of \ escapes. 13578 if test -n "${ZSH_VERSION+set}" ; then 13579 setopt NO_GLOB_SUBST 13580 fi 13581 # Now quote all the things that may contain metacharacters while being 13582 # careful not to overquote the AC_SUBSTed values. We take copies of the 13583 # variables and quote the copies for generation of the libtool script. 13584 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13585 SED SHELL STRIP \ 13586 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13587 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13588 deplibs_check_method reload_flag reload_cmds need_locks \ 13589 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13590 lt_cv_sys_global_symbol_to_c_name_address \ 13591 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13592 old_postinstall_cmds old_postuninstall_cmds \ 13593 compiler_CXX \ 13594 CC_CXX \ 13595 LD_CXX \ 13596 lt_prog_compiler_wl_CXX \ 13597 lt_prog_compiler_pic_CXX \ 13598 lt_prog_compiler_static_CXX \ 13599 lt_prog_compiler_no_builtin_flag_CXX \ 13600 export_dynamic_flag_spec_CXX \ 13601 thread_safe_flag_spec_CXX \ 13602 whole_archive_flag_spec_CXX \ 13603 enable_shared_with_static_runtimes_CXX \ 13604 old_archive_cmds_CXX \ 13605 old_archive_from_new_cmds_CXX \ 13606 predep_objects_CXX \ 13607 postdep_objects_CXX \ 13608 predeps_CXX \ 13609 postdeps_CXX \ 13610 compiler_lib_search_path_CXX \ 13611 archive_cmds_CXX \ 13612 archive_expsym_cmds_CXX \ 13613 postinstall_cmds_CXX \ 13614 postuninstall_cmds_CXX \ 13615 old_archive_from_expsyms_cmds_CXX \ 13616 allow_undefined_flag_CXX \ 13617 no_undefined_flag_CXX \ 13618 export_symbols_cmds_CXX \ 13619 hardcode_libdir_flag_spec_CXX \ 13620 hardcode_libdir_flag_spec_ld_CXX \ 13621 hardcode_libdir_separator_CXX \ 13622 hardcode_automatic_CXX \ 13623 module_cmds_CXX \ 13624 module_expsym_cmds_CXX \ 13625 lt_cv_prog_compiler_c_o_CXX \ 13626 exclude_expsyms_CXX \ 13627 include_expsyms_CXX; do 13628 13629 case $var in 13630 old_archive_cmds_CXX | \ 13631 old_archive_from_new_cmds_CXX | \ 13632 archive_cmds_CXX | \ 13633 archive_expsym_cmds_CXX | \ 13634 module_cmds_CXX | \ 13635 module_expsym_cmds_CXX | \ 13636 old_archive_from_expsyms_cmds_CXX | \ 13637 export_symbols_cmds_CXX | \ 13638 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13639 postinstall_cmds | postuninstall_cmds | \ 13640 old_postinstall_cmds | old_postuninstall_cmds | \ 13641 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13642 # Double-quote double-evaled strings. 13643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13644 ;; 13645 *) 13646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13647 ;; 13648 esac 13649 done 13650 13651 case $lt_echo in 13652 *'\$0 --fallback-echo"') 13653 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13654 ;; 13655 esac 13656 13657cfgfile="$ofile" 13658 13659 cat <<__EOF__ >> "$cfgfile" 13660# ### BEGIN LIBTOOL TAG CONFIG: $tagname 13661 13662# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13663 13664# Shell to use when invoking shell scripts. 13665SHELL=$lt_SHELL 13666 13667# Whether or not to build shared libraries. 13668build_libtool_libs=$enable_shared 13669 13670# Whether or not to build static libraries. 13671build_old_libs=$enable_static 13672 13673# Whether or not to add -lc for building shared libraries. 13674build_libtool_need_lc=$archive_cmds_need_lc_CXX 13675 13676# Whether or not to disallow shared libs when runtime libs are static 13677allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13678 13679# Whether or not to optimize for fast installation. 13680fast_install=$enable_fast_install 13681 13682# The host system. 13683host_alias=$host_alias 13684host=$host 13685host_os=$host_os 13686 13687# The build system. 13688build_alias=$build_alias 13689build=$build 13690build_os=$build_os 13691 13692# An echo program that does not interpret backslashes. 13693echo=$lt_echo 13694 13695# The archiver. 13696AR=$lt_AR 13697AR_FLAGS=$lt_AR_FLAGS 13698 13699# A C compiler. 13700LTCC=$lt_LTCC 13701 13702# LTCC compiler flags. 13703LTCFLAGS=$lt_LTCFLAGS 13704 13705# A language-specific compiler. 13706CC=$lt_compiler_CXX 13707 13708# Is the compiler the GNU C compiler? 13709with_gcc=$GCC_CXX 13710 13711# An ERE matcher. 13712EGREP=$lt_EGREP 13713 13714# The linker used to build libraries. 13715LD=$lt_LD_CXX 13716 13717# Whether we need hard or soft links. 13718LN_S=$lt_LN_S 13719 13720# A BSD-compatible nm program. 13721NM=$lt_NM 13722 13723# A symbol stripping program 13724STRIP=$lt_STRIP 13725 13726# Used to examine libraries when file_magic_cmd begins "file" 13727MAGIC_CMD=$MAGIC_CMD 13728 13729# Used on cygwin: DLL creation program. 13730DLLTOOL="$DLLTOOL" 13731 13732# Used on cygwin: object dumper. 13733OBJDUMP="$OBJDUMP" 13734 13735# Used on cygwin: assembler. 13736AS="$AS" 13737 13738# The name of the directory that contains temporary libtool files. 13739objdir=$objdir 13740 13741# How to create reloadable object files. 13742reload_flag=$lt_reload_flag 13743reload_cmds=$lt_reload_cmds 13744 13745# How to pass a linker flag through the compiler. 13746wl=$lt_lt_prog_compiler_wl_CXX 13747 13748# Object file suffix (normally "o"). 13749objext="$ac_objext" 13750 13751# Old archive suffix (normally "a"). 13752libext="$libext" 13753 13754# Shared library suffix (normally ".so"). 13755shrext_cmds='$shrext_cmds' 13756 13757# Executable file suffix (normally ""). 13758exeext="$exeext" 13759 13760# Additional compiler flags for building library objects. 13761pic_flag=$lt_lt_prog_compiler_pic_CXX 13762pic_mode=$pic_mode 13763 13764# What is the maximum length of a command? 13765max_cmd_len=$lt_cv_sys_max_cmd_len 13766 13767# Does compiler simultaneously support -c and -o options? 13768compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13769 13770# Must we lock files when doing compilation? 13771need_locks=$lt_need_locks 13772 13773# Do we need the lib prefix for modules? 13774need_lib_prefix=$need_lib_prefix 13775 13776# Do we need a version for libraries? 13777need_version=$need_version 13778 13779# Whether dlopen is supported. 13780dlopen_support=$enable_dlopen 13781 13782# Whether dlopen of programs is supported. 13783dlopen_self=$enable_dlopen_self 13784 13785# Whether dlopen of statically linked programs is supported. 13786dlopen_self_static=$enable_dlopen_self_static 13787 13788# Compiler flag to prevent dynamic linking. 13789link_static_flag=$lt_lt_prog_compiler_static_CXX 13790 13791# Compiler flag to turn off builtin functions. 13792no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13793 13794# Compiler flag to allow reflexive dlopens. 13795export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13796 13797# Compiler flag to generate shared objects directly from archives. 13798whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13799 13800# Compiler flag to generate thread-safe objects. 13801thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13802 13803# Library versioning type. 13804version_type=$version_type 13805 13806# Format of library name prefix. 13807libname_spec=$lt_libname_spec 13808 13809# List of archive names. First name is the real one, the rest are links. 13810# The last name is the one that the linker finds with -lNAME. 13811library_names_spec=$lt_library_names_spec 13812 13813# The coded name of the library, if different from the real name. 13814soname_spec=$lt_soname_spec 13815 13816# Commands used to build and install an old-style archive. 13817RANLIB=$lt_RANLIB 13818old_archive_cmds=$lt_old_archive_cmds_CXX 13819old_postinstall_cmds=$lt_old_postinstall_cmds 13820old_postuninstall_cmds=$lt_old_postuninstall_cmds 13821 13822# Create an old-style archive from a shared archive. 13823old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13824 13825# Create a temporary old-style archive to link instead of a shared archive. 13826old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13827 13828# Commands used to build and install a shared archive. 13829archive_cmds=$lt_archive_cmds_CXX 13830archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13831postinstall_cmds=$lt_postinstall_cmds 13832postuninstall_cmds=$lt_postuninstall_cmds 13833 13834# Commands used to build a loadable module (assumed same as above if empty) 13835module_cmds=$lt_module_cmds_CXX 13836module_expsym_cmds=$lt_module_expsym_cmds_CXX 13837 13838# Commands to strip libraries. 13839old_striplib=$lt_old_striplib 13840striplib=$lt_striplib 13841 13842# Dependencies to place before the objects being linked to create a 13843# shared library. 13844predep_objects=$lt_predep_objects_CXX 13845 13846# Dependencies to place after the objects being linked to create a 13847# shared library. 13848postdep_objects=$lt_postdep_objects_CXX 13849 13850# Dependencies to place before the objects being linked to create a 13851# shared library. 13852predeps=$lt_predeps_CXX 13853 13854# Dependencies to place after the objects being linked to create a 13855# shared library. 13856postdeps=$lt_postdeps_CXX 13857 13858# The library search path used internally by the compiler when linking 13859# a shared library. 13860compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13861 13862# Method to check whether dependent libraries are shared objects. 13863deplibs_check_method=$lt_deplibs_check_method 13864 13865# Command to use when deplibs_check_method == file_magic. 13866file_magic_cmd=$lt_file_magic_cmd 13867 13868# Flag that allows shared libraries with undefined symbols to be built. 13869allow_undefined_flag=$lt_allow_undefined_flag_CXX 13870 13871# Flag that forces no undefined symbols. 13872no_undefined_flag=$lt_no_undefined_flag_CXX 13873 13874# Commands used to finish a libtool library installation in a directory. 13875finish_cmds=$lt_finish_cmds 13876 13877# Same as above, but a single script fragment to be evaled but not shown. 13878finish_eval=$lt_finish_eval 13879 13880# Take the output of nm and produce a listing of raw symbols and C names. 13881global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13882 13883# Transform the output of nm in a proper C declaration 13884global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13885 13886# Transform the output of nm in a C name address pair 13887global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13888 13889# This is the shared library runtime path variable. 13890runpath_var=$runpath_var 13891 13892# This is the shared library path variable. 13893shlibpath_var=$shlibpath_var 13894 13895# Is shlibpath searched before the hard-coded library search path? 13896shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13897 13898# How to hardcode a shared library path into an executable. 13899hardcode_action=$hardcode_action_CXX 13900 13901# Whether we should hardcode library paths into libraries. 13902hardcode_into_libs=$hardcode_into_libs 13903 13904# Flag to hardcode \$libdir into a binary during linking. 13905# This must work even if \$libdir does not exist. 13906hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13907 13908# If ld is used when linking, flag to hardcode \$libdir into 13909# a binary during linking. This must work even if \$libdir does 13910# not exist. 13911hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13912 13913# Whether we need a single -rpath flag with a separated argument. 13914hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13915 13916# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13917# resulting binary. 13918hardcode_direct=$hardcode_direct_CXX 13919 13920# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13921# resulting binary. 13922hardcode_minus_L=$hardcode_minus_L_CXX 13923 13924# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13925# the resulting binary. 13926hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13927 13928# Set to yes if building a shared library automatically hardcodes DIR into the library 13929# and all subsequent libraries and executables linked against it. 13930hardcode_automatic=$hardcode_automatic_CXX 13931 13932# Variables whose values should be saved in libtool wrapper scripts and 13933# restored at relink time. 13934variables_saved_for_relink="$variables_saved_for_relink" 13935 13936# Whether libtool must link a program against all its dependency libraries. 13937link_all_deplibs=$link_all_deplibs_CXX 13938 13939# Compile-time system search path for libraries 13940sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13941 13942# Run-time system search path for libraries 13943sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13944 13945# Fix the shell variable \$srcfile for the compiler. 13946fix_srcfile_path="$fix_srcfile_path_CXX" 13947 13948# Set to yes if exported symbols are required. 13949always_export_symbols=$always_export_symbols_CXX 13950 13951# The commands to list exported symbols. 13952export_symbols_cmds=$lt_export_symbols_cmds_CXX 13953 13954# The commands to extract the exported symbol list from a shared archive. 13955extract_expsyms_cmds=$lt_extract_expsyms_cmds 13956 13957# Symbols that should not be listed in the preloaded symbols. 13958exclude_expsyms=$lt_exclude_expsyms_CXX 13959 13960# Symbols that must always be exported. 13961include_expsyms=$lt_include_expsyms_CXX 13962 13963# ### END LIBTOOL TAG CONFIG: $tagname 13964 13965__EOF__ 13966 13967 13968else 13969 # If there is no Makefile yet, we rely on a make rule to execute 13970 # `config.status --recheck' to rerun these tests and create the 13971 # libtool script then. 13972 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13973 if test -f "$ltmain_in"; then 13974 test -f Makefile && make "$ltmain" 13975 fi 13976fi 13977 13978 13979ac_ext=c 13980ac_cpp='$CPP $CPPFLAGS' 13981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13983ac_compiler_gnu=$ac_cv_c_compiler_gnu 13984 13985CC=$lt_save_CC 13986LDCXX=$LD 13987LD=$lt_save_LD 13988GCC=$lt_save_GCC 13989with_gnu_ldcxx=$with_gnu_ld 13990with_gnu_ld=$lt_save_with_gnu_ld 13991lt_cv_path_LDCXX=$lt_cv_path_LD 13992lt_cv_path_LD=$lt_save_path_LD 13993lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13994lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13995 13996 else 13997 tagname="" 13998 fi 13999 ;; 14000 14001 F77) 14002 if test -n "$F77" && test "X$F77" != "Xno"; then 14003 14004ac_ext=f 14005ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14006ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14007ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14008 14009 14010archive_cmds_need_lc_F77=no 14011allow_undefined_flag_F77= 14012always_export_symbols_F77=no 14013archive_expsym_cmds_F77= 14014export_dynamic_flag_spec_F77= 14015hardcode_direct_F77=no 14016hardcode_libdir_flag_spec_F77= 14017hardcode_libdir_flag_spec_ld_F77= 14018hardcode_libdir_separator_F77= 14019hardcode_minus_L_F77=no 14020hardcode_automatic_F77=no 14021module_cmds_F77= 14022module_expsym_cmds_F77= 14023link_all_deplibs_F77=unknown 14024old_archive_cmds_F77=$old_archive_cmds 14025no_undefined_flag_F77= 14026whole_archive_flag_spec_F77= 14027enable_shared_with_static_runtimes_F77=no 14028 14029# Source file extension for f77 test sources. 14030ac_ext=f 14031 14032# Object file extension for compiled f77 test sources. 14033objext=o 14034objext_F77=$objext 14035 14036# Code to be used in simple compile tests 14037lt_simple_compile_test_code=" subroutine t\n return\n end\n" 14038 14039# Code to be used in simple link tests 14040lt_simple_link_test_code=" program t\n end\n" 14041 14042# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14043 14044# If no C compiler was specified, use CC. 14045LTCC=${LTCC-"$CC"} 14046 14047# If no C compiler flags were specified, use CFLAGS. 14048LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14049 14050# Allow CC to be a program name with arguments. 14051compiler=$CC 14052 14053 14054# save warnings/boilerplate of simple test code 14055ac_outfile=conftest.$ac_objext 14056printf "$lt_simple_compile_test_code" >conftest.$ac_ext 14057eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14058_lt_compiler_boilerplate=`cat conftest.err` 14059$rm conftest* 14060 14061ac_outfile=conftest.$ac_objext 14062printf "$lt_simple_link_test_code" >conftest.$ac_ext 14063eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14064_lt_linker_boilerplate=`cat conftest.err` 14065$rm conftest* 14066 14067 14068# Allow CC to be a program name with arguments. 14069lt_save_CC="$CC" 14070CC=${F77-"f77"} 14071compiler=$CC 14072compiler_F77=$CC 14073for cc_temp in $compiler""; do 14074 case $cc_temp in 14075 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14076 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14077 \-*) ;; 14078 *) break;; 14079 esac 14080done 14081cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14082 14083 14084{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14085echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } 14086{ echo "$as_me:$LINENO: result: $can_build_shared" >&5 14087echo "${ECHO_T}$can_build_shared" >&6; } 14088 14089{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14090echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } 14091test "$can_build_shared" = "no" && enable_shared=no 14092 14093# On AIX, shared libraries and static libraries use the same namespace, and 14094# are all built from PIC. 14095case $host_os in 14096aix3*) 14097 test "$enable_shared" = yes && enable_static=no 14098 if test -n "$RANLIB"; then 14099 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14100 postinstall_cmds='$RANLIB $lib' 14101 fi 14102 ;; 14103aix4* | aix5*) 14104 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14105 test "$enable_shared" = yes && enable_static=no 14106 fi 14107 ;; 14108esac 14109{ echo "$as_me:$LINENO: result: $enable_shared" >&5 14110echo "${ECHO_T}$enable_shared" >&6; } 14111 14112{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14113echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } 14114# Make sure either enable_shared or enable_static is yes. 14115test "$enable_shared" = yes || enable_static=yes 14116{ echo "$as_me:$LINENO: result: $enable_static" >&5 14117echo "${ECHO_T}$enable_static" >&6; } 14118 14119GCC_F77="$G77" 14120LD_F77="$LD" 14121 14122lt_prog_compiler_wl_F77= 14123lt_prog_compiler_pic_F77= 14124lt_prog_compiler_static_F77= 14125 14126{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14127echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 14128 14129 if test "$GCC" = yes; then 14130 lt_prog_compiler_wl_F77='-Wl,' 14131 lt_prog_compiler_static_F77='-static' 14132 14133 case $host_os in 14134 aix*) 14135 # All AIX code is PIC. 14136 if test "$host_cpu" = ia64; then 14137 # AIX 5 now supports IA64 processor 14138 lt_prog_compiler_static_F77='-Bstatic' 14139 fi 14140 ;; 14141 14142 amigaos*) 14143 # FIXME: we need at least 68020 code to build shared libraries, but 14144 # adding the `-m68020' flag to GCC prevents building anything better, 14145 # like `-m68040'. 14146 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14147 ;; 14148 14149 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14150 # PIC is the default for these OSes. 14151 ;; 14152 14153 mingw* | pw32* | os2*) 14154 # This hack is so that the source file can tell whether it is being 14155 # built for inclusion in a dll (and should export symbols for example). 14156 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14157 ;; 14158 14159 darwin* | rhapsody*) 14160 # PIC is the default on this platform 14161 # Common symbols not allowed in MH_DYLIB files 14162 lt_prog_compiler_pic_F77='-fno-common' 14163 ;; 14164 14165 interix3*) 14166 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14167 # Instead, we relocate shared libraries at runtime. 14168 ;; 14169 14170 msdosdjgpp*) 14171 # Just because we use GCC doesn't mean we suddenly get shared libraries 14172 # on systems that don't support them. 14173 lt_prog_compiler_can_build_shared_F77=no 14174 enable_shared=no 14175 ;; 14176 14177 sysv4*MP*) 14178 if test -d /usr/nec; then 14179 lt_prog_compiler_pic_F77=-Kconform_pic 14180 fi 14181 ;; 14182 14183 hpux*) 14184 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14185 # not for PA HP-UX. 14186 case $host_cpu in 14187 hppa*64*|ia64*) 14188 # +Z the default 14189 ;; 14190 *) 14191 lt_prog_compiler_pic_F77='-fPIC' 14192 ;; 14193 esac 14194 ;; 14195 14196 *) 14197 lt_prog_compiler_pic_F77='-fPIC' 14198 ;; 14199 esac 14200 else 14201 # PORTME Check for flag to pass linker flags through the system compiler. 14202 case $host_os in 14203 aix*) 14204 lt_prog_compiler_wl_F77='-Wl,' 14205 if test "$host_cpu" = ia64; then 14206 # AIX 5 now supports IA64 processor 14207 lt_prog_compiler_static_F77='-Bstatic' 14208 else 14209 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14210 fi 14211 ;; 14212 darwin*) 14213 # PIC is the default on this platform 14214 # Common symbols not allowed in MH_DYLIB files 14215 case $cc_basename in 14216 xlc*) 14217 lt_prog_compiler_pic_F77='-qnocommon' 14218 lt_prog_compiler_wl_F77='-Wl,' 14219 ;; 14220 esac 14221 ;; 14222 14223 mingw* | pw32* | os2*) 14224 # This hack is so that the source file can tell whether it is being 14225 # built for inclusion in a dll (and should export symbols for example). 14226 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14227 ;; 14228 14229 hpux9* | hpux10* | hpux11*) 14230 lt_prog_compiler_wl_F77='-Wl,' 14231 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14232 # not for PA HP-UX. 14233 case $host_cpu in 14234 hppa*64*|ia64*) 14235 # +Z the default 14236 ;; 14237 *) 14238 lt_prog_compiler_pic_F77='+Z' 14239 ;; 14240 esac 14241 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14242 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14243 ;; 14244 14245 irix5* | irix6* | nonstopux*) 14246 lt_prog_compiler_wl_F77='-Wl,' 14247 # PIC (with -KPIC) is the default. 14248 lt_prog_compiler_static_F77='-non_shared' 14249 ;; 14250 14251 newsos6) 14252 lt_prog_compiler_pic_F77='-KPIC' 14253 lt_prog_compiler_static_F77='-Bstatic' 14254 ;; 14255 14256 linux* | k*bsd*-gnu) 14257 case $cc_basename in 14258 icc* | ecc*) 14259 lt_prog_compiler_wl_F77='-Wl,' 14260 lt_prog_compiler_pic_F77='-KPIC' 14261 lt_prog_compiler_static_F77='-static' 14262 ;; 14263 pgcc* | pgf77* | pgf90* | pgf95*) 14264 # Portland Group compilers (*not* the Pentium gcc compiler, 14265 # which looks to be a dead project) 14266 lt_prog_compiler_wl_F77='-Wl,' 14267 lt_prog_compiler_pic_F77='-fpic' 14268 lt_prog_compiler_static_F77='-Bstatic' 14269 ;; 14270 ccc*) 14271 lt_prog_compiler_wl_F77='-Wl,' 14272 # All Alpha code is PIC. 14273 lt_prog_compiler_static_F77='-non_shared' 14274 ;; 14275 esac 14276 ;; 14277 14278 osf3* | osf4* | osf5*) 14279 lt_prog_compiler_wl_F77='-Wl,' 14280 # All OSF/1 code is PIC. 14281 lt_prog_compiler_static_F77='-non_shared' 14282 ;; 14283 14284 solaris*) 14285 lt_prog_compiler_pic_F77='-KPIC' 14286 lt_prog_compiler_static_F77='-Bstatic' 14287 case $cc_basename in 14288 f77* | f90* | f95*) 14289 lt_prog_compiler_wl_F77='-Qoption ld ';; 14290 *) 14291 lt_prog_compiler_wl_F77='-Wl,';; 14292 esac 14293 ;; 14294 14295 sunos4*) 14296 lt_prog_compiler_wl_F77='-Qoption ld ' 14297 lt_prog_compiler_pic_F77='-PIC' 14298 lt_prog_compiler_static_F77='-Bstatic' 14299 ;; 14300 14301 sysv4 | sysv4.2uw2* | sysv4.3*) 14302 lt_prog_compiler_wl_F77='-Wl,' 14303 lt_prog_compiler_pic_F77='-KPIC' 14304 lt_prog_compiler_static_F77='-Bstatic' 14305 ;; 14306 14307 sysv4*MP*) 14308 if test -d /usr/nec ;then 14309 lt_prog_compiler_pic_F77='-Kconform_pic' 14310 lt_prog_compiler_static_F77='-Bstatic' 14311 fi 14312 ;; 14313 14314 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14315 lt_prog_compiler_wl_F77='-Wl,' 14316 lt_prog_compiler_pic_F77='-KPIC' 14317 lt_prog_compiler_static_F77='-Bstatic' 14318 ;; 14319 14320 unicos*) 14321 lt_prog_compiler_wl_F77='-Wl,' 14322 lt_prog_compiler_can_build_shared_F77=no 14323 ;; 14324 14325 uts4*) 14326 lt_prog_compiler_pic_F77='-pic' 14327 lt_prog_compiler_static_F77='-Bstatic' 14328 ;; 14329 14330 *) 14331 lt_prog_compiler_can_build_shared_F77=no 14332 ;; 14333 esac 14334 fi 14335 14336{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14337echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } 14338 14339# 14340# Check to make sure the PIC flag actually works. 14341# 14342if test -n "$lt_prog_compiler_pic_F77"; then 14343 14344{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14345echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } 14346if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 14347 echo $ECHO_N "(cached) $ECHO_C" >&6 14348else 14349 lt_prog_compiler_pic_works_F77=no 14350 ac_outfile=conftest.$ac_objext 14351 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14352 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14353 # Insert the option either (1) after the last *FLAGS variable, or 14354 # (2) before a word containing "conftest.", or (3) at the end. 14355 # Note that $ac_compile itself does not contain backslashes and begins 14356 # with a dollar sign (not a hyphen), so the echo should work correctly. 14357 # The option is referenced via a variable to avoid confusing sed. 14358 lt_compile=`echo "$ac_compile" | $SED \ 14359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14361 -e 's:$: $lt_compiler_flag:'` 14362 (eval echo "\"\$as_me:14362: $lt_compile\"" >&5) 14363 (eval "$lt_compile" 2>conftest.err) 14364 ac_status=$? 14365 cat conftest.err >&5 14366 echo "$as_me:14366: \$? = $ac_status" >&5 14367 if (exit $ac_status) && test -s "$ac_outfile"; then 14368 # The compiler can only warn and ignore the option if not recognized 14369 # So say no if there are warnings other than the usual output. 14370 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14372 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14373 lt_prog_compiler_pic_works_F77=yes 14374 fi 14375 fi 14376 $rm conftest* 14377 14378fi 14379{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 14380echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } 14381 14382if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 14383 case $lt_prog_compiler_pic_F77 in 14384 "" | " "*) ;; 14385 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14386 esac 14387else 14388 lt_prog_compiler_pic_F77= 14389 lt_prog_compiler_can_build_shared_F77=no 14390fi 14391 14392fi 14393case $host_os in 14394 # For platforms which do not support PIC, -DPIC is meaningless: 14395 *djgpp*) 14396 lt_prog_compiler_pic_F77= 14397 ;; 14398 *) 14399 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14400 ;; 14401esac 14402 14403# 14404# Check to make sure the static flag actually works. 14405# 14406wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14407{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14408echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 14409if test "${lt_prog_compiler_static_works_F77+set}" = set; then 14410 echo $ECHO_N "(cached) $ECHO_C" >&6 14411else 14412 lt_prog_compiler_static_works_F77=no 14413 save_LDFLAGS="$LDFLAGS" 14414 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14415 printf "$lt_simple_link_test_code" > conftest.$ac_ext 14416 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14417 # The linker can only warn and ignore the option if not recognized 14418 # So say no if there are warnings 14419 if test -s conftest.err; then 14420 # Append any errors to the config.log. 14421 cat conftest.err 1>&5 14422 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14424 if diff conftest.exp conftest.er2 >/dev/null; then 14425 lt_prog_compiler_static_works_F77=yes 14426 fi 14427 else 14428 lt_prog_compiler_static_works_F77=yes 14429 fi 14430 fi 14431 $rm conftest* 14432 LDFLAGS="$save_LDFLAGS" 14433 14434fi 14435{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 14436echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } 14437 14438if test x"$lt_prog_compiler_static_works_F77" = xyes; then 14439 : 14440else 14441 lt_prog_compiler_static_F77= 14442fi 14443 14444 14445{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14446echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 14447if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14448 echo $ECHO_N "(cached) $ECHO_C" >&6 14449else 14450 lt_cv_prog_compiler_c_o_F77=no 14451 $rm -r conftest 2>/dev/null 14452 mkdir conftest 14453 cd conftest 14454 mkdir out 14455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14456 14457 lt_compiler_flag="-o out/conftest2.$ac_objext" 14458 # Insert the option either (1) after the last *FLAGS variable, or 14459 # (2) before a word containing "conftest.", or (3) at the end. 14460 # Note that $ac_compile itself does not contain backslashes and begins 14461 # with a dollar sign (not a hyphen), so the echo should work correctly. 14462 lt_compile=`echo "$ac_compile" | $SED \ 14463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14465 -e 's:$: $lt_compiler_flag:'` 14466 (eval echo "\"\$as_me:14466: $lt_compile\"" >&5) 14467 (eval "$lt_compile" 2>out/conftest.err) 14468 ac_status=$? 14469 cat out/conftest.err >&5 14470 echo "$as_me:14470: \$? = $ac_status" >&5 14471 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14472 then 14473 # The compiler can only warn and ignore the option if not recognized 14474 # So say no if there are warnings 14475 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14476 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14477 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14478 lt_cv_prog_compiler_c_o_F77=yes 14479 fi 14480 fi 14481 chmod u+w . 2>&5 14482 $rm conftest* 14483 # SGI C++ compiler will create directory out/ii_files/ for 14484 # template instantiation 14485 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14486 $rm out/* && rmdir out 14487 cd .. 14488 rmdir conftest 14489 $rm conftest* 14490 14491fi 14492{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14493echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } 14494 14495 14496hard_links="nottested" 14497if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14498 # do not overwrite the value of need_locks provided by the user 14499 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14500echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 14501 hard_links=yes 14502 $rm conftest* 14503 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14504 touch conftest.a 14505 ln conftest.a conftest.b 2>&5 || hard_links=no 14506 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14507 { echo "$as_me:$LINENO: result: $hard_links" >&5 14508echo "${ECHO_T}$hard_links" >&6; } 14509 if test "$hard_links" = no; then 14510 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14511echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14512 need_locks=warn 14513 fi 14514else 14515 need_locks=no 14516fi 14517 14518{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14519echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 14520 14521 runpath_var= 14522 allow_undefined_flag_F77= 14523 enable_shared_with_static_runtimes_F77=no 14524 archive_cmds_F77= 14525 archive_expsym_cmds_F77= 14526 old_archive_From_new_cmds_F77= 14527 old_archive_from_expsyms_cmds_F77= 14528 export_dynamic_flag_spec_F77= 14529 whole_archive_flag_spec_F77= 14530 thread_safe_flag_spec_F77= 14531 hardcode_libdir_flag_spec_F77= 14532 hardcode_libdir_flag_spec_ld_F77= 14533 hardcode_libdir_separator_F77= 14534 hardcode_direct_F77=no 14535 hardcode_minus_L_F77=no 14536 hardcode_shlibpath_var_F77=unsupported 14537 link_all_deplibs_F77=unknown 14538 hardcode_automatic_F77=no 14539 module_cmds_F77= 14540 module_expsym_cmds_F77= 14541 always_export_symbols_F77=no 14542 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14543 # include_expsyms should be a list of space-separated symbols to be *always* 14544 # included in the symbol list 14545 include_expsyms_F77= 14546 # exclude_expsyms can be an extended regexp of symbols to exclude 14547 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14548 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14549 # as well as any symbol that contains `d'. 14550 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14551 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14552 # platforms (ab)use it in PIC code, but their linkers get confused if 14553 # the symbol is explicitly referenced. Since portable code cannot 14554 # rely on this symbol name, it's probably fine to never include it in 14555 # preloaded symbol tables. 14556 extract_expsyms_cmds= 14557 # Just being paranoid about ensuring that cc_basename is set. 14558 for cc_temp in $compiler""; do 14559 case $cc_temp in 14560 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14561 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14562 \-*) ;; 14563 *) break;; 14564 esac 14565done 14566cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14567 14568 case $host_os in 14569 cygwin* | mingw* | pw32*) 14570 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14571 # When not using gcc, we currently assume that we are using 14572 # Microsoft Visual C++. 14573 if test "$GCC" != yes; then 14574 with_gnu_ld=no 14575 fi 14576 ;; 14577 interix*) 14578 # we just hope/assume this is gcc and not c89 (= MSVC++) 14579 with_gnu_ld=yes 14580 ;; 14581 openbsd*) 14582 with_gnu_ld=no 14583 ;; 14584 esac 14585 14586 ld_shlibs_F77=yes 14587 if test "$with_gnu_ld" = yes; then 14588 # If archive_cmds runs LD, not CC, wlarc should be empty 14589 wlarc='${wl}' 14590 14591 # Set some defaults for GNU ld with shared library support. These 14592 # are reset later if shared libraries are not supported. Putting them 14593 # here allows them to be overridden if necessary. 14594 runpath_var=LD_RUN_PATH 14595 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14596 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14597 # ancient GNU ld didn't support --whole-archive et. al. 14598 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14599 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14600 else 14601 whole_archive_flag_spec_F77= 14602 fi 14603 supports_anon_versioning=no 14604 case `$LD -v 2>/dev/null` in 14605 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14606 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14607 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14608 *\ 2.11.*) ;; # other 2.11 versions 14609 *) supports_anon_versioning=yes ;; 14610 esac 14611 14612 # See if GNU ld supports shared libraries. 14613 case $host_os in 14614 aix3* | aix4* | aix5*) 14615 # On AIX/PPC, the GNU linker is very broken 14616 if test "$host_cpu" != ia64; then 14617 ld_shlibs_F77=no 14618 cat <<EOF 1>&2 14619 14620*** Warning: the GNU linker, at least up to release 2.9.1, is reported 14621*** to be unable to reliably create shared libraries on AIX. 14622*** Therefore, libtool is disabling shared libraries support. If you 14623*** really care for shared libraries, you may want to modify your PATH 14624*** so that a non-GNU linker is found, and then restart. 14625 14626EOF 14627 fi 14628 ;; 14629 14630 amigaos*) 14631 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)' 14632 hardcode_libdir_flag_spec_F77='-L$libdir' 14633 hardcode_minus_L_F77=yes 14634 14635 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14636 # that the semantics of dynamic libraries on AmigaOS, at least up 14637 # to version 4, is to share data among multiple programs linked 14638 # with the same dynamic library. Since this doesn't match the 14639 # behavior of shared libraries on other platforms, we can't use 14640 # them. 14641 ld_shlibs_F77=no 14642 ;; 14643 14644 beos*) 14645 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14646 allow_undefined_flag_F77=unsupported 14647 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14648 # support --undefined. This deserves some investigation. FIXME 14649 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14650 else 14651 ld_shlibs_F77=no 14652 fi 14653 ;; 14654 14655 cygwin* | mingw* | pw32*) 14656 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14657 # as there is no search path for DLLs. 14658 hardcode_libdir_flag_spec_F77='-L$libdir' 14659 allow_undefined_flag_F77=unsupported 14660 always_export_symbols_F77=no 14661 enable_shared_with_static_runtimes_F77=yes 14662 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14663 14664 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14665 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14666 # If the export-symbols file already is a .def file (1st line 14667 # is EXPORTS), use it as is; otherwise, prepend... 14668 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14669 cp $export_symbols $output_objdir/$soname.def; 14670 else 14671 echo EXPORTS > $output_objdir/$soname.def; 14672 cat $export_symbols >> $output_objdir/$soname.def; 14673 fi~ 14674 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14675 else 14676 ld_shlibs_F77=no 14677 fi 14678 ;; 14679 14680 interix3*) 14681 hardcode_direct_F77=no 14682 hardcode_shlibpath_var_F77=no 14683 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14684 export_dynamic_flag_spec_F77='${wl}-E' 14685 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14686 # Instead, shared libraries are loaded at an image base (0x10000000 by 14687 # default) and relocated if they conflict, which is a slow very memory 14688 # consuming and fragmenting process. To avoid this, we pick a random, 14689 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14690 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14691 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' 14692 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' 14693 ;; 14694 14695 linux* | k*bsd*-gnu) 14696 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14697 tmp_addflag= 14698 case $cc_basename,$host_cpu in 14699 pgcc*) # Portland Group C compiler 14700 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' 14701 tmp_addflag=' $pic_flag' 14702 ;; 14703 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14704 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' 14705 tmp_addflag=' $pic_flag -Mnomain' ;; 14706 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14707 tmp_addflag=' -i_dynamic' ;; 14708 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14709 tmp_addflag=' -i_dynamic -nofor_main' ;; 14710 ifc* | ifort*) # Intel Fortran compiler 14711 tmp_addflag=' -nofor_main' ;; 14712 esac 14713 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14714 14715 if test $supports_anon_versioning = yes; then 14716 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14718 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14719 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14720 fi 14721 link_all_deplibs_F77=no 14722 else 14723 ld_shlibs_F77=no 14724 fi 14725 ;; 14726 14727 netbsd* | netbsdelf*-gnu) 14728 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14729 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14730 wlarc= 14731 else 14732 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14733 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14734 fi 14735 ;; 14736 14737 solaris*) 14738 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14739 ld_shlibs_F77=no 14740 cat <<EOF 1>&2 14741 14742*** Warning: The releases 2.8.* of the GNU linker cannot reliably 14743*** create shared libraries on Solaris systems. Therefore, libtool 14744*** is disabling shared libraries support. We urge you to upgrade GNU 14745*** binutils to release 2.9.1 or newer. Another option is to modify 14746*** your PATH or compiler configuration so that the native linker is 14747*** used, and then restart. 14748 14749EOF 14750 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14751 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14752 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14753 else 14754 ld_shlibs_F77=no 14755 fi 14756 ;; 14757 14758 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 14759 case `$LD -v 2>&1` in 14760 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 14761 ld_shlibs_F77=no 14762 cat <<_LT_EOF 1>&2 14763 14764*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 14765*** reliably create shared libraries on SCO systems. Therefore, libtool 14766*** is disabling shared libraries support. We urge you to upgrade GNU 14767*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 14768*** your PATH or compiler configuration so that the native linker is 14769*** used, and then restart. 14770 14771_LT_EOF 14772 ;; 14773 *) 14774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14775 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 14776 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 14777 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 14778 else 14779 ld_shlibs_F77=no 14780 fi 14781 ;; 14782 esac 14783 ;; 14784 14785 sunos4*) 14786 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14787 wlarc= 14788 hardcode_direct_F77=yes 14789 hardcode_shlibpath_var_F77=no 14790 ;; 14791 14792 *) 14793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14794 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14795 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14796 else 14797 ld_shlibs_F77=no 14798 fi 14799 ;; 14800 esac 14801 14802 if test "$ld_shlibs_F77" = no; then 14803 runpath_var= 14804 hardcode_libdir_flag_spec_F77= 14805 export_dynamic_flag_spec_F77= 14806 whole_archive_flag_spec_F77= 14807 fi 14808 else 14809 # PORTME fill in a description of your system's linker (not GNU ld) 14810 case $host_os in 14811 aix3*) 14812 allow_undefined_flag_F77=unsupported 14813 always_export_symbols_F77=yes 14814 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' 14815 # Note: this linker hardcodes the directories in LIBPATH if there 14816 # are no directories specified by -L. 14817 hardcode_minus_L_F77=yes 14818 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 14819 # Neither direct hardcoding nor static linking is supported with a 14820 # broken collect2. 14821 hardcode_direct_F77=unsupported 14822 fi 14823 ;; 14824 14825 aix4* | aix5*) 14826 if test "$host_cpu" = ia64; then 14827 # On IA64, the linker does run time linking by default, so we don't 14828 # have to do anything special. 14829 aix_use_runtimelinking=no 14830 exp_sym_flag='-Bexport' 14831 no_entry_flag="" 14832 else 14833 # If we're using GNU nm, then we don't want the "-C" option. 14834 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14835 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14836 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' 14837 else 14838 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' 14839 fi 14840 aix_use_runtimelinking=no 14841 14842 # Test if we are trying to use run time linking or normal 14843 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14844 # need to do runtime linking. 14845 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14846 for ld_flag in $LDFLAGS; do 14847 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14848 aix_use_runtimelinking=yes 14849 break 14850 fi 14851 done 14852 ;; 14853 esac 14854 14855 exp_sym_flag='-bexport' 14856 no_entry_flag='-bnoentry' 14857 fi 14858 14859 # When large executables or shared objects are built, AIX ld can 14860 # have problems creating the table of contents. If linking a library 14861 # or program results in "error TOC overflow" add -mminimal-toc to 14862 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14863 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14864 14865 archive_cmds_F77='' 14866 hardcode_direct_F77=yes 14867 hardcode_libdir_separator_F77=':' 14868 link_all_deplibs_F77=yes 14869 14870 if test "$GCC" = yes; then 14871 case $host_os in aix4.[012]|aix4.[012].*) 14872 # We only want to do this on AIX 4.2 and lower, the check 14873 # below for broken collect2 doesn't work under 4.3+ 14874 collect2name=`${CC} -print-prog-name=collect2` 14875 if test -f "$collect2name" && \ 14876 strings "$collect2name" | grep resolve_lib_name >/dev/null 14877 then 14878 # We have reworked collect2 14879 hardcode_direct_F77=yes 14880 else 14881 # We have old collect2 14882 hardcode_direct_F77=unsupported 14883 # It fails to find uninstalled libraries when the uninstalled 14884 # path is not listed in the libpath. Setting hardcode_minus_L 14885 # to unsupported forces relinking 14886 hardcode_minus_L_F77=yes 14887 hardcode_libdir_flag_spec_F77='-L$libdir' 14888 hardcode_libdir_separator_F77= 14889 fi 14890 ;; 14891 esac 14892 shared_flag='-shared' 14893 if test "$aix_use_runtimelinking" = yes; then 14894 shared_flag="$shared_flag "'${wl}-G' 14895 fi 14896 else 14897 # not using gcc 14898 if test "$host_cpu" = ia64; then 14899 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14900 # chokes on -Wl,-G. The following line is correct: 14901 shared_flag='-G' 14902 else 14903 if test "$aix_use_runtimelinking" = yes; then 14904 shared_flag='${wl}-G' 14905 else 14906 shared_flag='${wl}-bM:SRE' 14907 fi 14908 fi 14909 fi 14910 14911 # It seems that -bexpall does not export symbols beginning with 14912 # underscore (_), so it is better to generate a list of symbols to export. 14913 always_export_symbols_F77=yes 14914 if test "$aix_use_runtimelinking" = yes; then 14915 # Warning - without using the other runtime loading flags (-brtl), 14916 # -berok will link without error, but may produce a broken library. 14917 allow_undefined_flag_F77='-berok' 14918 # Determine the default libpath from the value encoded in an empty executable. 14919 cat >conftest.$ac_ext <<_ACEOF 14920 program main 14921 14922 end 14923_ACEOF 14924rm -f conftest.$ac_objext conftest$ac_exeext 14925if { (ac_try="$ac_link" 14926case "(($ac_try" in 14927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14928 *) ac_try_echo=$ac_try;; 14929esac 14930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14931 (eval "$ac_link") 2>conftest.er1 14932 ac_status=$? 14933 grep -v '^ *+' conftest.er1 >conftest.err 14934 rm -f conftest.er1 14935 cat conftest.err >&5 14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14937 (exit $ac_status); } && 14938 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 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); }; } && 14948 { ac_try='test -s conftest$ac_exeext' 14949 { (case "(($ac_try" in 14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14951 *) ac_try_echo=$ac_try;; 14952esac 14953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14954 (eval "$ac_try") 2>&5 14955 ac_status=$? 14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14957 (exit $ac_status); }; }; then 14958 14959aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14960}'` 14961# Check for a 64-bit object if we didn't find anything. 14962if 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; } 14963}'`; fi 14964else 14965 echo "$as_me: failed program was:" >&5 14966sed 's/^/| /' conftest.$ac_ext >&5 14967 14968 14969fi 14970 14971rm -f core conftest.err conftest.$ac_objext \ 14972 conftest$ac_exeext conftest.$ac_ext 14973if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14974 14975 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14976 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" 14977 else 14978 if test "$host_cpu" = ia64; then 14979 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14980 allow_undefined_flag_F77="-z nodefs" 14981 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" 14982 else 14983 # Determine the default libpath from the value encoded in an empty executable. 14984 cat >conftest.$ac_ext <<_ACEOF 14985 program main 14986 14987 end 14988_ACEOF 14989rm -f conftest.$ac_objext conftest$ac_exeext 14990if { (ac_try="$ac_link" 14991case "(($ac_try" in 14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14993 *) ac_try_echo=$ac_try;; 14994esac 14995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14996 (eval "$ac_link") 2>conftest.er1 14997 ac_status=$? 14998 grep -v '^ *+' conftest.er1 >conftest.err 14999 rm -f conftest.er1 15000 cat conftest.err >&5 15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15002 (exit $ac_status); } && 15003 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' 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); }; } && 15013 { ac_try='test -s conftest$ac_exeext' 15014 { (case "(($ac_try" in 15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15016 *) ac_try_echo=$ac_try;; 15017esac 15018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15019 (eval "$ac_try") 2>&5 15020 ac_status=$? 15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15022 (exit $ac_status); }; }; then 15023 15024aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15025}'` 15026# Check for a 64-bit object if we didn't find anything. 15027if 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; } 15028}'`; fi 15029else 15030 echo "$as_me: failed program was:" >&5 15031sed 's/^/| /' conftest.$ac_ext >&5 15032 15033 15034fi 15035 15036rm -f core conftest.err conftest.$ac_objext \ 15037 conftest$ac_exeext conftest.$ac_ext 15038if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15039 15040 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15041 # Warning - without using the other run time loading flags, 15042 # -berok will link without error, but may produce a broken library. 15043 no_undefined_flag_F77=' ${wl}-bernotok' 15044 allow_undefined_flag_F77=' ${wl}-berok' 15045 # Exported symbols can be pulled into shared objects from archives 15046 whole_archive_flag_spec_F77='$convenience' 15047 archive_cmds_need_lc_F77=yes 15048 # This is similar to how AIX traditionally builds its shared libraries. 15049 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' 15050 fi 15051 fi 15052 ;; 15053 15054 amigaos*) 15055 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)' 15056 hardcode_libdir_flag_spec_F77='-L$libdir' 15057 hardcode_minus_L_F77=yes 15058 # see comment about different semantics on the GNU ld section 15059 ld_shlibs_F77=no 15060 ;; 15061 15062 bsdi[45]*) 15063 export_dynamic_flag_spec_F77=-rdynamic 15064 ;; 15065 15066 cygwin* | mingw* | pw32*) 15067 # When not using gcc, we currently assume that we are using 15068 # Microsoft Visual C++. 15069 # hardcode_libdir_flag_spec is actually meaningless, as there is 15070 # no search path for DLLs. 15071 hardcode_libdir_flag_spec_F77=' ' 15072 allow_undefined_flag_F77=unsupported 15073 # Tell ltmain to make .lib files, not .a files. 15074 libext=lib 15075 # Tell ltmain to make .dll files, not .so files. 15076 shrext_cmds=".dll" 15077 # FIXME: Setting linknames here is a bad hack. 15078 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15079 # The linker will automatically build a .lib file if we build a DLL. 15080 old_archive_From_new_cmds_F77='true' 15081 # FIXME: Should let the user specify the lib program. 15082 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 15083 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15084 enable_shared_with_static_runtimes_F77=yes 15085 ;; 15086 15087 darwin* | rhapsody*) 15088 case $host_os in 15089 rhapsody* | darwin1.[012]) 15090 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15091 ;; 15092 *) # Darwin 1.3 on 15093 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15094 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15095 else 15096 case ${MACOSX_DEPLOYMENT_TARGET} in 15097 10.[012]) 15098 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15099 ;; 15100 10.*) 15101 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15102 ;; 15103 esac 15104 fi 15105 ;; 15106 esac 15107 archive_cmds_need_lc_F77=no 15108 hardcode_direct_F77=no 15109 hardcode_automatic_F77=yes 15110 hardcode_shlibpath_var_F77=unsupported 15111 whole_archive_flag_spec_F77='' 15112 link_all_deplibs_F77=yes 15113 if test "$GCC" = yes ; then 15114 output_verbose_link_cmd='echo' 15115 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15116 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15117 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15118 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}' 15119 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}' 15120 else 15121 case $cc_basename in 15122 xlc*) 15123 output_verbose_link_cmd='echo' 15124 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 15125 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15126 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15127 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}' 15128 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}' 15129 ;; 15130 *) 15131 ld_shlibs_F77=no 15132 ;; 15133 esac 15134 fi 15135 ;; 15136 15137 dgux*) 15138 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15139 hardcode_libdir_flag_spec_F77='-L$libdir' 15140 hardcode_shlibpath_var_F77=no 15141 ;; 15142 15143 freebsd1*) 15144 ld_shlibs_F77=no 15145 ;; 15146 15147 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15148 # support. Future versions do this automatically, but an explicit c++rt0.o 15149 # does not break anything, and helps significantly (at the cost of a little 15150 # extra space). 15151 freebsd2.2*) 15152 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15153 hardcode_libdir_flag_spec_F77='-R$libdir' 15154 hardcode_direct_F77=yes 15155 hardcode_shlibpath_var_F77=no 15156 ;; 15157 15158 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15159 freebsd2*) 15160 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15161 hardcode_direct_F77=yes 15162 hardcode_minus_L_F77=yes 15163 hardcode_shlibpath_var_F77=no 15164 ;; 15165 15166 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15167 freebsd* | dragonfly*) 15168 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15169 hardcode_libdir_flag_spec_F77='-R$libdir' 15170 hardcode_direct_F77=yes 15171 hardcode_shlibpath_var_F77=no 15172 ;; 15173 15174 hpux9*) 15175 if test "$GCC" = yes; then 15176 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' 15177 else 15178 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' 15179 fi 15180 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15181 hardcode_libdir_separator_F77=: 15182 hardcode_direct_F77=yes 15183 15184 # hardcode_minus_L: Not really in the search PATH, 15185 # but as the default location of the library. 15186 hardcode_minus_L_F77=yes 15187 export_dynamic_flag_spec_F77='${wl}-E' 15188 ;; 15189 15190 hpux10*) 15191 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15192 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15193 else 15194 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15195 fi 15196 if test "$with_gnu_ld" = no; then 15197 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15198 hardcode_libdir_separator_F77=: 15199 15200 hardcode_direct_F77=yes 15201 export_dynamic_flag_spec_F77='${wl}-E' 15202 15203 # hardcode_minus_L: Not really in the search PATH, 15204 # but as the default location of the library. 15205 hardcode_minus_L_F77=yes 15206 fi 15207 ;; 15208 15209 hpux11*) 15210 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15211 case $host_cpu in 15212 hppa*64*) 15213 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15214 ;; 15215 ia64*) 15216 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15217 ;; 15218 *) 15219 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15220 ;; 15221 esac 15222 else 15223 case $host_cpu in 15224 hppa*64*) 15225 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15226 ;; 15227 ia64*) 15228 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15229 ;; 15230 *) 15231 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15232 ;; 15233 esac 15234 fi 15235 if test "$with_gnu_ld" = no; then 15236 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15237 hardcode_libdir_separator_F77=: 15238 15239 case $host_cpu in 15240 hppa*64*|ia64*) 15241 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15242 hardcode_direct_F77=no 15243 hardcode_shlibpath_var_F77=no 15244 ;; 15245 *) 15246 hardcode_direct_F77=yes 15247 export_dynamic_flag_spec_F77='${wl}-E' 15248 15249 # hardcode_minus_L: Not really in the search PATH, 15250 # but as the default location of the library. 15251 hardcode_minus_L_F77=yes 15252 ;; 15253 esac 15254 fi 15255 ;; 15256 15257 irix5* | irix6* | nonstopux*) 15258 if test "$GCC" = yes; then 15259 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' 15260 else 15261 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' 15262 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15263 fi 15264 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15265 hardcode_libdir_separator_F77=: 15266 link_all_deplibs_F77=yes 15267 ;; 15268 15269 netbsd* | netbsdelf*-gnu) 15270 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15271 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15272 else 15273 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15274 fi 15275 hardcode_libdir_flag_spec_F77='-R$libdir' 15276 hardcode_direct_F77=yes 15277 hardcode_shlibpath_var_F77=no 15278 ;; 15279 15280 newsos6) 15281 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15282 hardcode_direct_F77=yes 15283 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15284 hardcode_libdir_separator_F77=: 15285 hardcode_shlibpath_var_F77=no 15286 ;; 15287 15288 openbsd*) 15289 hardcode_direct_F77=yes 15290 hardcode_shlibpath_var_F77=no 15291 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15292 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15293 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15294 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15295 export_dynamic_flag_spec_F77='${wl}-E' 15296 else 15297 case $host_os in 15298 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15299 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15300 hardcode_libdir_flag_spec_F77='-R$libdir' 15301 ;; 15302 *) 15303 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15304 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15305 ;; 15306 esac 15307 fi 15308 ;; 15309 15310 os2*) 15311 hardcode_libdir_flag_spec_F77='-L$libdir' 15312 hardcode_minus_L_F77=yes 15313 allow_undefined_flag_F77=unsupported 15314 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' 15315 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15316 ;; 15317 15318 osf3*) 15319 if test "$GCC" = yes; then 15320 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15321 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' 15322 else 15323 allow_undefined_flag_F77=' -expect_unresolved \*' 15324 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' 15325 fi 15326 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15327 hardcode_libdir_separator_F77=: 15328 ;; 15329 15330 osf4* | osf5*) # as osf3* with the addition of -msym flag 15331 if test "$GCC" = yes; then 15332 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15333 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' 15334 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15335 else 15336 allow_undefined_flag_F77=' -expect_unresolved \*' 15337 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' 15338 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~ 15339 $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' 15340 15341 # Both c and cxx compiler support -rpath directly 15342 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15343 fi 15344 hardcode_libdir_separator_F77=: 15345 ;; 15346 15347 solaris*) 15348 no_undefined_flag_F77=' -z text' 15349 if test "$GCC" = yes; then 15350 wlarc='${wl}' 15351 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15352 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15353 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15354 else 15355 wlarc='' 15356 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15357 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15358 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15359 fi 15360 hardcode_libdir_flag_spec_F77='-R$libdir' 15361 hardcode_shlibpath_var_F77=no 15362 case $host_os in 15363 solaris2.[0-5] | solaris2.[0-5].*) ;; 15364 *) 15365 # The compiler driver will combine linker options so we 15366 # cannot just pass the convience library names through 15367 # without $wl, iff we do not link with $LD. 15368 # Luckily, gcc supports the same syntax we need for Sun Studio. 15369 # Supported since Solaris 2.6 (maybe 2.5.1?) 15370 case $wlarc in 15371 '') 15372 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 15373 *) 15374 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' ;; 15375 esac ;; 15376 esac 15377 link_all_deplibs_F77=yes 15378 ;; 15379 15380 sunos4*) 15381 if test "x$host_vendor" = xsequent; then 15382 # Use $CC to link under sequent, because it throws in some extra .o 15383 # files that make .init and .fini sections work. 15384 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15385 else 15386 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15387 fi 15388 hardcode_libdir_flag_spec_F77='-L$libdir' 15389 hardcode_direct_F77=yes 15390 hardcode_minus_L_F77=yes 15391 hardcode_shlibpath_var_F77=no 15392 ;; 15393 15394 sysv4) 15395 case $host_vendor in 15396 sni) 15397 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15398 hardcode_direct_F77=yes # is this really true??? 15399 ;; 15400 siemens) 15401 ## LD is ld it makes a PLAMLIB 15402 ## CC just makes a GrossModule. 15403 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15404 reload_cmds_F77='$CC -r -o $output$reload_objs' 15405 hardcode_direct_F77=no 15406 ;; 15407 motorola) 15408 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15409 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15410 ;; 15411 esac 15412 runpath_var='LD_RUN_PATH' 15413 hardcode_shlibpath_var_F77=no 15414 ;; 15415 15416 sysv4.3*) 15417 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15418 hardcode_shlibpath_var_F77=no 15419 export_dynamic_flag_spec_F77='-Bexport' 15420 ;; 15421 15422 sysv4*MP*) 15423 if test -d /usr/nec; then 15424 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15425 hardcode_shlibpath_var_F77=no 15426 runpath_var=LD_RUN_PATH 15427 hardcode_runpath_var=yes 15428 ld_shlibs_F77=yes 15429 fi 15430 ;; 15431 15432 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 15433 no_undefined_flag_F77='${wl}-z,text' 15434 archive_cmds_need_lc_F77=no 15435 hardcode_shlibpath_var_F77=no 15436 runpath_var='LD_RUN_PATH' 15437 15438 if test "$GCC" = yes; then 15439 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15440 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15441 else 15442 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15443 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15444 fi 15445 ;; 15446 15447 sysv5* | sco3.2v5* | sco5v6*) 15448 # Note: We can NOT use -z defs as we might desire, because we do not 15449 # link with -lc, and that would cause any symbols used from libc to 15450 # always be unresolved, which means just about no library would 15451 # ever link correctly. If we're not using GNU ld we use -z text 15452 # though, which does catch some bad symbols but isn't as heavy-handed 15453 # as -z defs. 15454 no_undefined_flag_F77='${wl}-z,text' 15455 allow_undefined_flag_F77='${wl}-z,nodefs' 15456 archive_cmds_need_lc_F77=no 15457 hardcode_shlibpath_var_F77=no 15458 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 15459 hardcode_libdir_separator_F77=':' 15460 link_all_deplibs_F77=yes 15461 export_dynamic_flag_spec_F77='${wl}-Bexport' 15462 runpath_var='LD_RUN_PATH' 15463 15464 if test "$GCC" = yes; then 15465 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15466 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15467 else 15468 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15469 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 15470 fi 15471 ;; 15472 15473 uts4*) 15474 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15475 hardcode_libdir_flag_spec_F77='-L$libdir' 15476 hardcode_shlibpath_var_F77=no 15477 ;; 15478 15479 *) 15480 ld_shlibs_F77=no 15481 ;; 15482 esac 15483 fi 15484 15485{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 15486echo "${ECHO_T}$ld_shlibs_F77" >&6; } 15487test "$ld_shlibs_F77" = no && can_build_shared=no 15488 15489# 15490# Do we need to explicitly link libc? 15491# 15492case "x$archive_cmds_need_lc_F77" in 15493x|xyes) 15494 # Assume -lc should be added 15495 archive_cmds_need_lc_F77=yes 15496 15497 if test "$enable_shared" = yes && test "$GCC" = yes; then 15498 case $archive_cmds_F77 in 15499 *'~'*) 15500 # FIXME: we may have to deal with multi-command sequences. 15501 ;; 15502 '$CC '*) 15503 # Test whether the compiler implicitly links with -lc since on some 15504 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15505 # to ld, don't add -lc before -lgcc. 15506 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 15507echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 15508 $rm conftest* 15509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15510 15511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15512 (eval $ac_compile) 2>&5 15513 ac_status=$? 15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15515 (exit $ac_status); } 2>conftest.err; then 15516 soname=conftest 15517 lib=conftest 15518 libobjs=conftest.$ac_objext 15519 deplibs= 15520 wl=$lt_prog_compiler_wl_F77 15521 pic_flag=$lt_prog_compiler_pic_F77 15522 compiler_flags=-v 15523 linker_flags=-v 15524 verstring= 15525 output_objdir=. 15526 libname=conftest 15527 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 15528 allow_undefined_flag_F77= 15529 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 15530 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 15531 ac_status=$? 15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15533 (exit $ac_status); } 15534 then 15535 archive_cmds_need_lc_F77=no 15536 else 15537 archive_cmds_need_lc_F77=yes 15538 fi 15539 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 15540 else 15541 cat conftest.err 1>&5 15542 fi 15543 $rm conftest* 15544 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 15545echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } 15546 ;; 15547 esac 15548 fi 15549 ;; 15550esac 15551 15552{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 15553echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 15554library_names_spec= 15555libname_spec='lib$name' 15556soname_spec= 15557shrext_cmds=".so" 15558postinstall_cmds= 15559postuninstall_cmds= 15560finish_cmds= 15561finish_eval= 15562shlibpath_var= 15563shlibpath_overrides_runpath=unknown 15564version_type=none 15565dynamic_linker="$host_os ld.so" 15566sys_lib_dlsearch_path_spec="/lib /usr/lib" 15567if test "$GCC" = yes; then 15568 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15569 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 15570 # if the path contains ";" then we assume it to be the separator 15571 # otherwise default to the standard path separator (i.e. ":") - it is 15572 # assumed that no part of a normal pathname contains ";" but that should 15573 # okay in the real world where ";" in dirpaths is itself problematic. 15574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15575 else 15576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15577 fi 15578else 15579 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15580fi 15581need_lib_prefix=unknown 15582hardcode_into_libs=no 15583 15584# when you set need_version to no, make sure it does not cause -set_version 15585# flags to be left without arguments 15586need_version=unknown 15587 15588case $host_os in 15589aix3*) 15590 version_type=linux 15591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15592 shlibpath_var=LIBPATH 15593 15594 # AIX 3 has no versioning support, so we append a major version to the name. 15595 soname_spec='${libname}${release}${shared_ext}$major' 15596 ;; 15597 15598aix4* | aix5*) 15599 version_type=linux 15600 need_lib_prefix=no 15601 need_version=no 15602 hardcode_into_libs=yes 15603 if test "$host_cpu" = ia64; then 15604 # AIX 5 supports IA64 15605 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15606 shlibpath_var=LD_LIBRARY_PATH 15607 else 15608 # With GCC up to 2.95.x, collect2 would create an import file 15609 # for dependence libraries. The import file would start with 15610 # the line `#! .'. This would cause the generated library to 15611 # depend on `.', always an invalid library. This was fixed in 15612 # development snapshots of GCC prior to 3.0. 15613 case $host_os in 15614 aix4 | aix4.[01] | aix4.[01].*) 15615 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15616 echo ' yes ' 15617 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15618 : 15619 else 15620 can_build_shared=no 15621 fi 15622 ;; 15623 esac 15624 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15625 # soname into executable. Probably we can add versioning support to 15626 # collect2, so additional links can be useful in future. 15627 if test "$aix_use_runtimelinking" = yes; then 15628 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15629 # instead of lib<name>.a to let people know that these are not 15630 # typical AIX shared libraries. 15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15632 else 15633 # We preserve .a as extension for shared libraries through AIX4.2 15634 # and later when we are not doing run time linking. 15635 library_names_spec='${libname}${release}.a $libname.a' 15636 soname_spec='${libname}${release}${shared_ext}$major' 15637 fi 15638 shlibpath_var=LIBPATH 15639 fi 15640 ;; 15641 15642amigaos*) 15643 library_names_spec='$libname.ixlibrary $libname.a' 15644 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15645 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' 15646 ;; 15647 15648beos*) 15649 library_names_spec='${libname}${shared_ext}' 15650 dynamic_linker="$host_os ld.so" 15651 shlibpath_var=LIBRARY_PATH 15652 ;; 15653 15654bsdi[45]*) 15655 version_type=linux 15656 need_version=no 15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15658 soname_spec='${libname}${release}${shared_ext}$major' 15659 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15660 shlibpath_var=LD_LIBRARY_PATH 15661 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15662 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15663 # the default ld.so.conf also contains /usr/contrib/lib and 15664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15665 # libtool to hard-code these into programs 15666 ;; 15667 15668cygwin* | mingw* | pw32*) 15669 version_type=windows 15670 shrext_cmds=".dll" 15671 need_version=no 15672 need_lib_prefix=no 15673 15674 case $GCC,$host_os in 15675 yes,cygwin* | yes,mingw* | yes,pw32*) 15676 library_names_spec='$libname.dll.a' 15677 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15678 postinstall_cmds='base_file=`basename \${file}`~ 15679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15680 dldir=$destdir/`dirname \$dlpath`~ 15681 test -d \$dldir || mkdir -p \$dldir~ 15682 $install_prog $dir/$dlname \$dldir/$dlname~ 15683 chmod a+x \$dldir/$dlname' 15684 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15685 dlpath=$dir/\$dldll~ 15686 $rm \$dlpath' 15687 shlibpath_overrides_runpath=yes 15688 15689 case $host_os in 15690 cygwin*) 15691 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15692 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15693 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15694 ;; 15695 mingw*) 15696 # MinGW DLLs use traditional 'lib' prefix 15697 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15698 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15699 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15700 # It is most probably a Windows format PATH printed by 15701 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15702 # path with ; separators, and with drive letters. We can handle the 15703 # drive letters (cygwin fileutils understands them), so leave them, 15704 # especially as we might pass files found there to a mingw objdump, 15705 # which wouldn't understand a cygwinified path. Ahh. 15706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15707 else 15708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15709 fi 15710 ;; 15711 pw32*) 15712 # pw32 DLLs use 'pw' prefix rather than 'lib' 15713 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15714 ;; 15715 esac 15716 ;; 15717 15718 *) 15719 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15720 ;; 15721 esac 15722 dynamic_linker='Win32 ld.exe' 15723 # FIXME: first we should search . and the directory the executable is in 15724 shlibpath_var=PATH 15725 ;; 15726 15727darwin* | rhapsody*) 15728 dynamic_linker="$host_os dyld" 15729 version_type=darwin 15730 need_lib_prefix=no 15731 need_version=no 15732 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15733 soname_spec='${libname}${release}${major}$shared_ext' 15734 shlibpath_overrides_runpath=yes 15735 shlibpath_var=DYLD_LIBRARY_PATH 15736 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15737 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15738 if test "$GCC" = yes; then 15739 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"` 15740 else 15741 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15742 fi 15743 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15744 ;; 15745 15746dgux*) 15747 version_type=linux 15748 need_lib_prefix=no 15749 need_version=no 15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15751 soname_spec='${libname}${release}${shared_ext}$major' 15752 shlibpath_var=LD_LIBRARY_PATH 15753 ;; 15754 15755freebsd1*) 15756 dynamic_linker=no 15757 ;; 15758 15759freebsd* | dragonfly*) 15760 # DragonFly does not have aout. When/if they implement a new 15761 # versioning mechanism, adjust this. 15762 if test -x /usr/bin/objformat; then 15763 objformat=`/usr/bin/objformat` 15764 else 15765 case $host_os in 15766 freebsd[123]*) objformat=aout ;; 15767 *) objformat=elf ;; 15768 esac 15769 fi 15770 version_type=freebsd-$objformat 15771 case $version_type in 15772 freebsd-elf*) 15773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15774 need_version=no 15775 need_lib_prefix=no 15776 ;; 15777 freebsd-*) 15778 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15779 need_version=yes 15780 ;; 15781 esac 15782 shlibpath_var=LD_LIBRARY_PATH 15783 case $host_os in 15784 freebsd2*) 15785 shlibpath_overrides_runpath=yes 15786 ;; 15787 freebsd3.[01]* | freebsdelf3.[01]*) 15788 shlibpath_overrides_runpath=yes 15789 hardcode_into_libs=yes 15790 ;; 15791 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15792 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15793 shlibpath_overrides_runpath=no 15794 hardcode_into_libs=yes 15795 ;; 15796 freebsd*) # from 4.6 on 15797 shlibpath_overrides_runpath=yes 15798 hardcode_into_libs=yes 15799 ;; 15800 esac 15801 ;; 15802 15803gnu*) 15804 version_type=linux 15805 need_lib_prefix=no 15806 need_version=no 15807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15808 soname_spec='${libname}${release}${shared_ext}$major' 15809 shlibpath_var=LD_LIBRARY_PATH 15810 hardcode_into_libs=yes 15811 ;; 15812 15813hpux9* | hpux10* | hpux11*) 15814 # Give a soname corresponding to the major version so that dld.sl refuses to 15815 # link against other versions. 15816 version_type=sunos 15817 need_lib_prefix=no 15818 need_version=no 15819 case $host_cpu in 15820 ia64*) 15821 shrext_cmds='.so' 15822 hardcode_into_libs=yes 15823 dynamic_linker="$host_os dld.so" 15824 shlibpath_var=LD_LIBRARY_PATH 15825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15827 soname_spec='${libname}${release}${shared_ext}$major' 15828 if test "X$HPUX_IA64_MODE" = X32; then 15829 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15830 else 15831 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15832 fi 15833 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15834 ;; 15835 hppa*64*) 15836 shrext_cmds='.sl' 15837 hardcode_into_libs=yes 15838 dynamic_linker="$host_os dld.sl" 15839 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15842 soname_spec='${libname}${release}${shared_ext}$major' 15843 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15844 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15845 ;; 15846 *) 15847 shrext_cmds='.sl' 15848 dynamic_linker="$host_os dld.sl" 15849 shlibpath_var=SHLIB_PATH 15850 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15852 soname_spec='${libname}${release}${shared_ext}$major' 15853 ;; 15854 esac 15855 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15856 postinstall_cmds='chmod 555 $lib' 15857 ;; 15858 15859interix3*) 15860 version_type=linux 15861 need_lib_prefix=no 15862 need_version=no 15863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15864 soname_spec='${libname}${release}${shared_ext}$major' 15865 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15866 shlibpath_var=LD_LIBRARY_PATH 15867 shlibpath_overrides_runpath=no 15868 hardcode_into_libs=yes 15869 ;; 15870 15871irix5* | irix6* | nonstopux*) 15872 case $host_os in 15873 nonstopux*) version_type=nonstopux ;; 15874 *) 15875 if test "$lt_cv_prog_gnu_ld" = yes; then 15876 version_type=linux 15877 else 15878 version_type=irix 15879 fi ;; 15880 esac 15881 need_lib_prefix=no 15882 need_version=no 15883 soname_spec='${libname}${release}${shared_ext}$major' 15884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15885 case $host_os in 15886 irix5* | nonstopux*) 15887 libsuff= shlibsuff= 15888 ;; 15889 *) 15890 case $LD in # libtool.m4 will add one of these switches to LD 15891 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15892 libsuff= shlibsuff= libmagic=32-bit;; 15893 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15894 libsuff=32 shlibsuff=N32 libmagic=N32;; 15895 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15896 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15897 *) libsuff= shlibsuff= libmagic=never-match;; 15898 esac 15899 ;; 15900 esac 15901 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15902 shlibpath_overrides_runpath=no 15903 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15904 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15905 hardcode_into_libs=yes 15906 ;; 15907 15908# No shared lib support for Linux oldld, aout, or coff. 15909linux*oldld* | linux*aout* | linux*coff*) 15910 dynamic_linker=no 15911 ;; 15912 15913# This must be Linux ELF. 15914linux* | k*bsd*-gnu) 15915 version_type=linux 15916 need_lib_prefix=no 15917 need_version=no 15918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15919 soname_spec='${libname}${release}${shared_ext}$major' 15920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15921 shlibpath_var=LD_LIBRARY_PATH 15922 shlibpath_overrides_runpath=no 15923 # This implies no fast_install, which is unacceptable. 15924 # Some rework will be needed to allow for fast_install 15925 # before this can be enabled. 15926 hardcode_into_libs=yes 15927 15928 # Append ld.so.conf contents to the search path 15929 if test -f /etc/ld.so.conf; then 15930 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' ' '` 15931 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15932 fi 15933 15934 # We used to test for /lib/ld.so.1 and disable shared libraries on 15935 # powerpc, because MkLinux only supported shared libraries with the 15936 # GNU dynamic linker. Since this was broken with cross compilers, 15937 # most powerpc-linux boxes support dynamic linking these days and 15938 # people can always --disable-shared, the test was removed, and we 15939 # assume the GNU/Linux dynamic linker is in use. 15940 dynamic_linker='GNU/Linux ld.so' 15941 ;; 15942 15943netbsdelf*-gnu) 15944 version_type=linux 15945 need_lib_prefix=no 15946 need_version=no 15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15948 soname_spec='${libname}${release}${shared_ext}$major' 15949 shlibpath_var=LD_LIBRARY_PATH 15950 shlibpath_overrides_runpath=no 15951 hardcode_into_libs=yes 15952 dynamic_linker='NetBSD ld.elf_so' 15953 ;; 15954 15955netbsd*) 15956 version_type=sunos 15957 need_lib_prefix=no 15958 need_version=no 15959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15962 dynamic_linker='NetBSD (a.out) ld.so' 15963 else 15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15965 soname_spec='${libname}${release}${shared_ext}$major' 15966 dynamic_linker='NetBSD ld.elf_so' 15967 fi 15968 shlibpath_var=LD_LIBRARY_PATH 15969 shlibpath_overrides_runpath=yes 15970 hardcode_into_libs=yes 15971 ;; 15972 15973newsos6) 15974 version_type=linux 15975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15976 shlibpath_var=LD_LIBRARY_PATH 15977 shlibpath_overrides_runpath=yes 15978 ;; 15979 15980nto-qnx*) 15981 version_type=linux 15982 need_lib_prefix=no 15983 need_version=no 15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15985 soname_spec='${libname}${release}${shared_ext}$major' 15986 shlibpath_var=LD_LIBRARY_PATH 15987 shlibpath_overrides_runpath=yes 15988 ;; 15989 15990openbsd*) 15991 version_type=sunos 15992 sys_lib_dlsearch_path_spec="/usr/lib" 15993 need_lib_prefix=no 15994 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15995 case $host_os in 15996 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15997 *) need_version=no ;; 15998 esac 15999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16001 shlibpath_var=LD_LIBRARY_PATH 16002 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16003 case $host_os in 16004 openbsd2.[89] | openbsd2.[89].*) 16005 shlibpath_overrides_runpath=no 16006 ;; 16007 *) 16008 shlibpath_overrides_runpath=yes 16009 ;; 16010 esac 16011 else 16012 shlibpath_overrides_runpath=yes 16013 fi 16014 ;; 16015 16016os2*) 16017 libname_spec='$name' 16018 shrext_cmds=".dll" 16019 need_lib_prefix=no 16020 library_names_spec='$libname${shared_ext} $libname.a' 16021 dynamic_linker='OS/2 ld.exe' 16022 shlibpath_var=LIBPATH 16023 ;; 16024 16025osf3* | osf4* | osf5*) 16026 version_type=osf 16027 need_lib_prefix=no 16028 need_version=no 16029 soname_spec='${libname}${release}${shared_ext}$major' 16030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16031 shlibpath_var=LD_LIBRARY_PATH 16032 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16033 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16034 ;; 16035 16036solaris*) 16037 version_type=linux 16038 need_lib_prefix=no 16039 need_version=no 16040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16041 soname_spec='${libname}${release}${shared_ext}$major' 16042 shlibpath_var=LD_LIBRARY_PATH 16043 shlibpath_overrides_runpath=yes 16044 hardcode_into_libs=yes 16045 # ldd complains unless libraries are executable 16046 postinstall_cmds='chmod +x $lib' 16047 ;; 16048 16049sunos4*) 16050 version_type=sunos 16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16053 shlibpath_var=LD_LIBRARY_PATH 16054 shlibpath_overrides_runpath=yes 16055 if test "$with_gnu_ld" = yes; then 16056 need_lib_prefix=no 16057 fi 16058 need_version=yes 16059 ;; 16060 16061sysv4 | sysv4.3*) 16062 version_type=linux 16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16064 soname_spec='${libname}${release}${shared_ext}$major' 16065 shlibpath_var=LD_LIBRARY_PATH 16066 case $host_vendor in 16067 sni) 16068 shlibpath_overrides_runpath=no 16069 need_lib_prefix=no 16070 export_dynamic_flag_spec='${wl}-Blargedynsym' 16071 runpath_var=LD_RUN_PATH 16072 ;; 16073 siemens) 16074 need_lib_prefix=no 16075 ;; 16076 motorola) 16077 need_lib_prefix=no 16078 need_version=no 16079 shlibpath_overrides_runpath=no 16080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16081 ;; 16082 esac 16083 ;; 16084 16085sysv4*MP*) 16086 if test -d /usr/nec ;then 16087 version_type=linux 16088 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16089 soname_spec='$libname${shared_ext}.$major' 16090 shlibpath_var=LD_LIBRARY_PATH 16091 fi 16092 ;; 16093 16094sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16095 version_type=freebsd-elf 16096 need_lib_prefix=no 16097 need_version=no 16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16099 soname_spec='${libname}${release}${shared_ext}$major' 16100 shlibpath_var=LD_LIBRARY_PATH 16101 hardcode_into_libs=yes 16102 if test "$with_gnu_ld" = yes; then 16103 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16104 shlibpath_overrides_runpath=no 16105 else 16106 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16107 shlibpath_overrides_runpath=yes 16108 case $host_os in 16109 sco3.2v5*) 16110 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16111 ;; 16112 esac 16113 fi 16114 sys_lib_dlsearch_path_spec='/usr/lib' 16115 ;; 16116 16117uts4*) 16118 version_type=linux 16119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16120 soname_spec='${libname}${release}${shared_ext}$major' 16121 shlibpath_var=LD_LIBRARY_PATH 16122 ;; 16123 16124*) 16125 dynamic_linker=no 16126 ;; 16127esac 16128{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16129echo "${ECHO_T}$dynamic_linker" >&6; } 16130test "$dynamic_linker" = no && can_build_shared=no 16131 16132variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16133if test "$GCC" = yes; then 16134 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16135fi 16136 16137{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16138echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 16139hardcode_action_F77= 16140if test -n "$hardcode_libdir_flag_spec_F77" || \ 16141 test -n "$runpath_var_F77" || \ 16142 test "X$hardcode_automatic_F77" = "Xyes" ; then 16143 16144 # We can hardcode non-existant directories. 16145 if test "$hardcode_direct_F77" != no && 16146 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16147 # have to relink, otherwise we might link with an installed library 16148 # when we should be linking with a yet-to-be-installed one 16149 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 16150 test "$hardcode_minus_L_F77" != no; then 16151 # Linking always hardcodes the temporary library directory. 16152 hardcode_action_F77=relink 16153 else 16154 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16155 hardcode_action_F77=immediate 16156 fi 16157else 16158 # We cannot hardcode anything, or else we can only hardcode existing 16159 # directories. 16160 hardcode_action_F77=unsupported 16161fi 16162{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 16163echo "${ECHO_T}$hardcode_action_F77" >&6; } 16164 16165if test "$hardcode_action_F77" = relink; then 16166 # Fast installation is not supported 16167 enable_fast_install=no 16168elif test "$shlibpath_overrides_runpath" = yes || 16169 test "$enable_shared" = no; then 16170 # Fast installation is not necessary 16171 enable_fast_install=needless 16172fi 16173 16174 16175# The else clause should only fire when bootstrapping the 16176# libtool distribution, otherwise you forgot to ship ltmain.sh 16177# with your package, and you will get complaints that there are 16178# no rules to generate ltmain.sh. 16179if test -f "$ltmain"; then 16180 # See if we are running on zsh, and set the options which allow our commands through 16181 # without removal of \ escapes. 16182 if test -n "${ZSH_VERSION+set}" ; then 16183 setopt NO_GLOB_SUBST 16184 fi 16185 # Now quote all the things that may contain metacharacters while being 16186 # careful not to overquote the AC_SUBSTed values. We take copies of the 16187 # variables and quote the copies for generation of the libtool script. 16188 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 16189 SED SHELL STRIP \ 16190 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 16191 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 16192 deplibs_check_method reload_flag reload_cmds need_locks \ 16193 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 16194 lt_cv_sys_global_symbol_to_c_name_address \ 16195 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 16196 old_postinstall_cmds old_postuninstall_cmds \ 16197 compiler_F77 \ 16198 CC_F77 \ 16199 LD_F77 \ 16200 lt_prog_compiler_wl_F77 \ 16201 lt_prog_compiler_pic_F77 \ 16202 lt_prog_compiler_static_F77 \ 16203 lt_prog_compiler_no_builtin_flag_F77 \ 16204 export_dynamic_flag_spec_F77 \ 16205 thread_safe_flag_spec_F77 \ 16206 whole_archive_flag_spec_F77 \ 16207 enable_shared_with_static_runtimes_F77 \ 16208 old_archive_cmds_F77 \ 16209 old_archive_from_new_cmds_F77 \ 16210 predep_objects_F77 \ 16211 postdep_objects_F77 \ 16212 predeps_F77 \ 16213 postdeps_F77 \ 16214 compiler_lib_search_path_F77 \ 16215 archive_cmds_F77 \ 16216 archive_expsym_cmds_F77 \ 16217 postinstall_cmds_F77 \ 16218 postuninstall_cmds_F77 \ 16219 old_archive_from_expsyms_cmds_F77 \ 16220 allow_undefined_flag_F77 \ 16221 no_undefined_flag_F77 \ 16222 export_symbols_cmds_F77 \ 16223 hardcode_libdir_flag_spec_F77 \ 16224 hardcode_libdir_flag_spec_ld_F77 \ 16225 hardcode_libdir_separator_F77 \ 16226 hardcode_automatic_F77 \ 16227 module_cmds_F77 \ 16228 module_expsym_cmds_F77 \ 16229 lt_cv_prog_compiler_c_o_F77 \ 16230 exclude_expsyms_F77 \ 16231 include_expsyms_F77; do 16232 16233 case $var in 16234 old_archive_cmds_F77 | \ 16235 old_archive_from_new_cmds_F77 | \ 16236 archive_cmds_F77 | \ 16237 archive_expsym_cmds_F77 | \ 16238 module_cmds_F77 | \ 16239 module_expsym_cmds_F77 | \ 16240 old_archive_from_expsyms_cmds_F77 | \ 16241 export_symbols_cmds_F77 | \ 16242 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 16243 postinstall_cmds | postuninstall_cmds | \ 16244 old_postinstall_cmds | old_postuninstall_cmds | \ 16245 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 16246 # Double-quote double-evaled strings. 16247 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 16248 ;; 16249 *) 16250 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 16251 ;; 16252 esac 16253 done 16254 16255 case $lt_echo in 16256 *'\$0 --fallback-echo"') 16257 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 16258 ;; 16259 esac 16260 16261cfgfile="$ofile" 16262 16263 cat <<__EOF__ >> "$cfgfile" 16264# ### BEGIN LIBTOOL TAG CONFIG: $tagname 16265 16266# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16267 16268# Shell to use when invoking shell scripts. 16269SHELL=$lt_SHELL 16270 16271# Whether or not to build shared libraries. 16272build_libtool_libs=$enable_shared 16273 16274# Whether or not to build static libraries. 16275build_old_libs=$enable_static 16276 16277# Whether or not to add -lc for building shared libraries. 16278build_libtool_need_lc=$archive_cmds_need_lc_F77 16279 16280# Whether or not to disallow shared libs when runtime libs are static 16281allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 16282 16283# Whether or not to optimize for fast installation. 16284fast_install=$enable_fast_install 16285 16286# The host system. 16287host_alias=$host_alias 16288host=$host 16289host_os=$host_os 16290 16291# The build system. 16292build_alias=$build_alias 16293build=$build 16294build_os=$build_os 16295 16296# An echo program that does not interpret backslashes. 16297echo=$lt_echo 16298 16299# The archiver. 16300AR=$lt_AR 16301AR_FLAGS=$lt_AR_FLAGS 16302 16303# A C compiler. 16304LTCC=$lt_LTCC 16305 16306# LTCC compiler flags. 16307LTCFLAGS=$lt_LTCFLAGS 16308 16309# A language-specific compiler. 16310CC=$lt_compiler_F77 16311 16312# Is the compiler the GNU C compiler? 16313with_gcc=$GCC_F77 16314 16315# An ERE matcher. 16316EGREP=$lt_EGREP 16317 16318# The linker used to build libraries. 16319LD=$lt_LD_F77 16320 16321# Whether we need hard or soft links. 16322LN_S=$lt_LN_S 16323 16324# A BSD-compatible nm program. 16325NM=$lt_NM 16326 16327# A symbol stripping program 16328STRIP=$lt_STRIP 16329 16330# Used to examine libraries when file_magic_cmd begins "file" 16331MAGIC_CMD=$MAGIC_CMD 16332 16333# Used on cygwin: DLL creation program. 16334DLLTOOL="$DLLTOOL" 16335 16336# Used on cygwin: object dumper. 16337OBJDUMP="$OBJDUMP" 16338 16339# Used on cygwin: assembler. 16340AS="$AS" 16341 16342# The name of the directory that contains temporary libtool files. 16343objdir=$objdir 16344 16345# How to create reloadable object files. 16346reload_flag=$lt_reload_flag 16347reload_cmds=$lt_reload_cmds 16348 16349# How to pass a linker flag through the compiler. 16350wl=$lt_lt_prog_compiler_wl_F77 16351 16352# Object file suffix (normally "o"). 16353objext="$ac_objext" 16354 16355# Old archive suffix (normally "a"). 16356libext="$libext" 16357 16358# Shared library suffix (normally ".so"). 16359shrext_cmds='$shrext_cmds' 16360 16361# Executable file suffix (normally ""). 16362exeext="$exeext" 16363 16364# Additional compiler flags for building library objects. 16365pic_flag=$lt_lt_prog_compiler_pic_F77 16366pic_mode=$pic_mode 16367 16368# What is the maximum length of a command? 16369max_cmd_len=$lt_cv_sys_max_cmd_len 16370 16371# Does compiler simultaneously support -c and -o options? 16372compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 16373 16374# Must we lock files when doing compilation? 16375need_locks=$lt_need_locks 16376 16377# Do we need the lib prefix for modules? 16378need_lib_prefix=$need_lib_prefix 16379 16380# Do we need a version for libraries? 16381need_version=$need_version 16382 16383# Whether dlopen is supported. 16384dlopen_support=$enable_dlopen 16385 16386# Whether dlopen of programs is supported. 16387dlopen_self=$enable_dlopen_self 16388 16389# Whether dlopen of statically linked programs is supported. 16390dlopen_self_static=$enable_dlopen_self_static 16391 16392# Compiler flag to prevent dynamic linking. 16393link_static_flag=$lt_lt_prog_compiler_static_F77 16394 16395# Compiler flag to turn off builtin functions. 16396no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 16397 16398# Compiler flag to allow reflexive dlopens. 16399export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 16400 16401# Compiler flag to generate shared objects directly from archives. 16402whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 16403 16404# Compiler flag to generate thread-safe objects. 16405thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 16406 16407# Library versioning type. 16408version_type=$version_type 16409 16410# Format of library name prefix. 16411libname_spec=$lt_libname_spec 16412 16413# List of archive names. First name is the real one, the rest are links. 16414# The last name is the one that the linker finds with -lNAME. 16415library_names_spec=$lt_library_names_spec 16416 16417# The coded name of the library, if different from the real name. 16418soname_spec=$lt_soname_spec 16419 16420# Commands used to build and install an old-style archive. 16421RANLIB=$lt_RANLIB 16422old_archive_cmds=$lt_old_archive_cmds_F77 16423old_postinstall_cmds=$lt_old_postinstall_cmds 16424old_postuninstall_cmds=$lt_old_postuninstall_cmds 16425 16426# Create an old-style archive from a shared archive. 16427old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 16428 16429# Create a temporary old-style archive to link instead of a shared archive. 16430old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 16431 16432# Commands used to build and install a shared archive. 16433archive_cmds=$lt_archive_cmds_F77 16434archive_expsym_cmds=$lt_archive_expsym_cmds_F77 16435postinstall_cmds=$lt_postinstall_cmds 16436postuninstall_cmds=$lt_postuninstall_cmds 16437 16438# Commands used to build a loadable module (assumed same as above if empty) 16439module_cmds=$lt_module_cmds_F77 16440module_expsym_cmds=$lt_module_expsym_cmds_F77 16441 16442# Commands to strip libraries. 16443old_striplib=$lt_old_striplib 16444striplib=$lt_striplib 16445 16446# Dependencies to place before the objects being linked to create a 16447# shared library. 16448predep_objects=$lt_predep_objects_F77 16449 16450# Dependencies to place after the objects being linked to create a 16451# shared library. 16452postdep_objects=$lt_postdep_objects_F77 16453 16454# Dependencies to place before the objects being linked to create a 16455# shared library. 16456predeps=$lt_predeps_F77 16457 16458# Dependencies to place after the objects being linked to create a 16459# shared library. 16460postdeps=$lt_postdeps_F77 16461 16462# The library search path used internally by the compiler when linking 16463# a shared library. 16464compiler_lib_search_path=$lt_compiler_lib_search_path_F77 16465 16466# Method to check whether dependent libraries are shared objects. 16467deplibs_check_method=$lt_deplibs_check_method 16468 16469# Command to use when deplibs_check_method == file_magic. 16470file_magic_cmd=$lt_file_magic_cmd 16471 16472# Flag that allows shared libraries with undefined symbols to be built. 16473allow_undefined_flag=$lt_allow_undefined_flag_F77 16474 16475# Flag that forces no undefined symbols. 16476no_undefined_flag=$lt_no_undefined_flag_F77 16477 16478# Commands used to finish a libtool library installation in a directory. 16479finish_cmds=$lt_finish_cmds 16480 16481# Same as above, but a single script fragment to be evaled but not shown. 16482finish_eval=$lt_finish_eval 16483 16484# Take the output of nm and produce a listing of raw symbols and C names. 16485global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16486 16487# Transform the output of nm in a proper C declaration 16488global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16489 16490# Transform the output of nm in a C name address pair 16491global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16492 16493# This is the shared library runtime path variable. 16494runpath_var=$runpath_var 16495 16496# This is the shared library path variable. 16497shlibpath_var=$shlibpath_var 16498 16499# Is shlibpath searched before the hard-coded library search path? 16500shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16501 16502# How to hardcode a shared library path into an executable. 16503hardcode_action=$hardcode_action_F77 16504 16505# Whether we should hardcode library paths into libraries. 16506hardcode_into_libs=$hardcode_into_libs 16507 16508# Flag to hardcode \$libdir into a binary during linking. 16509# This must work even if \$libdir does not exist. 16510hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 16511 16512# If ld is used when linking, flag to hardcode \$libdir into 16513# a binary during linking. This must work even if \$libdir does 16514# not exist. 16515hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 16516 16517# Whether we need a single -rpath flag with a separated argument. 16518hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 16519 16520# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 16521# resulting binary. 16522hardcode_direct=$hardcode_direct_F77 16523 16524# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 16525# resulting binary. 16526hardcode_minus_L=$hardcode_minus_L_F77 16527 16528# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 16529# the resulting binary. 16530hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 16531 16532# Set to yes if building a shared library automatically hardcodes DIR into the library 16533# and all subsequent libraries and executables linked against it. 16534hardcode_automatic=$hardcode_automatic_F77 16535 16536# Variables whose values should be saved in libtool wrapper scripts and 16537# restored at relink time. 16538variables_saved_for_relink="$variables_saved_for_relink" 16539 16540# Whether libtool must link a program against all its dependency libraries. 16541link_all_deplibs=$link_all_deplibs_F77 16542 16543# Compile-time system search path for libraries 16544sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16545 16546# Run-time system search path for libraries 16547sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16548 16549# Fix the shell variable \$srcfile for the compiler. 16550fix_srcfile_path="$fix_srcfile_path_F77" 16551 16552# Set to yes if exported symbols are required. 16553always_export_symbols=$always_export_symbols_F77 16554 16555# The commands to list exported symbols. 16556export_symbols_cmds=$lt_export_symbols_cmds_F77 16557 16558# The commands to extract the exported symbol list from a shared archive. 16559extract_expsyms_cmds=$lt_extract_expsyms_cmds 16560 16561# Symbols that should not be listed in the preloaded symbols. 16562exclude_expsyms=$lt_exclude_expsyms_F77 16563 16564# Symbols that must always be exported. 16565include_expsyms=$lt_include_expsyms_F77 16566 16567# ### END LIBTOOL TAG CONFIG: $tagname 16568 16569__EOF__ 16570 16571 16572else 16573 # If there is no Makefile yet, we rely on a make rule to execute 16574 # `config.status --recheck' to rerun these tests and create the 16575 # libtool script then. 16576 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16577 if test -f "$ltmain_in"; then 16578 test -f Makefile && make "$ltmain" 16579 fi 16580fi 16581 16582 16583ac_ext=c 16584ac_cpp='$CPP $CPPFLAGS' 16585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16587ac_compiler_gnu=$ac_cv_c_compiler_gnu 16588 16589CC="$lt_save_CC" 16590 16591 else 16592 tagname="" 16593 fi 16594 ;; 16595 16596 GCJ) 16597 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16598 16599 16600# Source file extension for Java test sources. 16601ac_ext=java 16602 16603# Object file extension for compiled Java test sources. 16604objext=o 16605objext_GCJ=$objext 16606 16607# Code to be used in simple compile tests 16608lt_simple_compile_test_code="class foo {}\n" 16609 16610# Code to be used in simple link tests 16611lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16612 16613# ltmain only uses $CC for tagged configurations so make sure $CC is set. 16614 16615# If no C compiler was specified, use CC. 16616LTCC=${LTCC-"$CC"} 16617 16618# If no C compiler flags were specified, use CFLAGS. 16619LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 16620 16621# Allow CC to be a program name with arguments. 16622compiler=$CC 16623 16624 16625# save warnings/boilerplate of simple test code 16626ac_outfile=conftest.$ac_objext 16627printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16628eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16629_lt_compiler_boilerplate=`cat conftest.err` 16630$rm conftest* 16631 16632ac_outfile=conftest.$ac_objext 16633printf "$lt_simple_link_test_code" >conftest.$ac_ext 16634eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 16635_lt_linker_boilerplate=`cat conftest.err` 16636$rm conftest* 16637 16638 16639# Allow CC to be a program name with arguments. 16640lt_save_CC="$CC" 16641CC=${GCJ-"gcj"} 16642compiler=$CC 16643compiler_GCJ=$CC 16644for cc_temp in $compiler""; do 16645 case $cc_temp in 16646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16648 \-*) ;; 16649 *) break;; 16650 esac 16651done 16652cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16653 16654 16655# GCJ did not exist at the time GCC didn't implicitly link libc in. 16656archive_cmds_need_lc_GCJ=no 16657 16658old_archive_cmds_GCJ=$old_archive_cmds 16659 16660 16661lt_prog_compiler_no_builtin_flag_GCJ= 16662 16663if test "$GCC" = yes; then 16664 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16665 16666 16667{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16668echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } 16669if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16670 echo $ECHO_N "(cached) $ECHO_C" >&6 16671else 16672 lt_cv_prog_compiler_rtti_exceptions=no 16673 ac_outfile=conftest.$ac_objext 16674 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16675 lt_compiler_flag="-fno-rtti -fno-exceptions" 16676 # Insert the option either (1) after the last *FLAGS variable, or 16677 # (2) before a word containing "conftest.", or (3) at the end. 16678 # Note that $ac_compile itself does not contain backslashes and begins 16679 # with a dollar sign (not a hyphen), so the echo should work correctly. 16680 # The option is referenced via a variable to avoid confusing sed. 16681 lt_compile=`echo "$ac_compile" | $SED \ 16682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16684 -e 's:$: $lt_compiler_flag:'` 16685 (eval echo "\"\$as_me:16685: $lt_compile\"" >&5) 16686 (eval "$lt_compile" 2>conftest.err) 16687 ac_status=$? 16688 cat conftest.err >&5 16689 echo "$as_me:16689: \$? = $ac_status" >&5 16690 if (exit $ac_status) && test -s "$ac_outfile"; then 16691 # The compiler can only warn and ignore the option if not recognized 16692 # So say no if there are warnings other than the usual output. 16693 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16695 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16696 lt_cv_prog_compiler_rtti_exceptions=yes 16697 fi 16698 fi 16699 $rm conftest* 16700 16701fi 16702{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16703echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16704 16705if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16706 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16707else 16708 : 16709fi 16710 16711fi 16712 16713lt_prog_compiler_wl_GCJ= 16714lt_prog_compiler_pic_GCJ= 16715lt_prog_compiler_static_GCJ= 16716 16717{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16718echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } 16719 16720 if test "$GCC" = yes; then 16721 lt_prog_compiler_wl_GCJ='-Wl,' 16722 lt_prog_compiler_static_GCJ='-static' 16723 16724 case $host_os in 16725 aix*) 16726 # All AIX code is PIC. 16727 if test "$host_cpu" = ia64; then 16728 # AIX 5 now supports IA64 processor 16729 lt_prog_compiler_static_GCJ='-Bstatic' 16730 fi 16731 ;; 16732 16733 amigaos*) 16734 # FIXME: we need at least 68020 code to build shared libraries, but 16735 # adding the `-m68020' flag to GCC prevents building anything better, 16736 # like `-m68040'. 16737 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16738 ;; 16739 16740 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16741 # PIC is the default for these OSes. 16742 ;; 16743 16744 mingw* | pw32* | os2*) 16745 # This hack is so that the source file can tell whether it is being 16746 # built for inclusion in a dll (and should export symbols for example). 16747 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16748 ;; 16749 16750 darwin* | rhapsody*) 16751 # PIC is the default on this platform 16752 # Common symbols not allowed in MH_DYLIB files 16753 lt_prog_compiler_pic_GCJ='-fno-common' 16754 ;; 16755 16756 interix3*) 16757 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16758 # Instead, we relocate shared libraries at runtime. 16759 ;; 16760 16761 msdosdjgpp*) 16762 # Just because we use GCC doesn't mean we suddenly get shared libraries 16763 # on systems that don't support them. 16764 lt_prog_compiler_can_build_shared_GCJ=no 16765 enable_shared=no 16766 ;; 16767 16768 sysv4*MP*) 16769 if test -d /usr/nec; then 16770 lt_prog_compiler_pic_GCJ=-Kconform_pic 16771 fi 16772 ;; 16773 16774 hpux*) 16775 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16776 # not for PA HP-UX. 16777 case $host_cpu in 16778 hppa*64*|ia64*) 16779 # +Z the default 16780 ;; 16781 *) 16782 lt_prog_compiler_pic_GCJ='-fPIC' 16783 ;; 16784 esac 16785 ;; 16786 16787 *) 16788 lt_prog_compiler_pic_GCJ='-fPIC' 16789 ;; 16790 esac 16791 else 16792 # PORTME Check for flag to pass linker flags through the system compiler. 16793 case $host_os in 16794 aix*) 16795 lt_prog_compiler_wl_GCJ='-Wl,' 16796 if test "$host_cpu" = ia64; then 16797 # AIX 5 now supports IA64 processor 16798 lt_prog_compiler_static_GCJ='-Bstatic' 16799 else 16800 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16801 fi 16802 ;; 16803 darwin*) 16804 # PIC is the default on this platform 16805 # Common symbols not allowed in MH_DYLIB files 16806 case $cc_basename in 16807 xlc*) 16808 lt_prog_compiler_pic_GCJ='-qnocommon' 16809 lt_prog_compiler_wl_GCJ='-Wl,' 16810 ;; 16811 esac 16812 ;; 16813 16814 mingw* | pw32* | os2*) 16815 # This hack is so that the source file can tell whether it is being 16816 # built for inclusion in a dll (and should export symbols for example). 16817 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16818 ;; 16819 16820 hpux9* | hpux10* | hpux11*) 16821 lt_prog_compiler_wl_GCJ='-Wl,' 16822 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16823 # not for PA HP-UX. 16824 case $host_cpu in 16825 hppa*64*|ia64*) 16826 # +Z the default 16827 ;; 16828 *) 16829 lt_prog_compiler_pic_GCJ='+Z' 16830 ;; 16831 esac 16832 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16833 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16834 ;; 16835 16836 irix5* | irix6* | nonstopux*) 16837 lt_prog_compiler_wl_GCJ='-Wl,' 16838 # PIC (with -KPIC) is the default. 16839 lt_prog_compiler_static_GCJ='-non_shared' 16840 ;; 16841 16842 newsos6) 16843 lt_prog_compiler_pic_GCJ='-KPIC' 16844 lt_prog_compiler_static_GCJ='-Bstatic' 16845 ;; 16846 16847 linux* | k*bsd*-gnu) 16848 case $cc_basename in 16849 icc* | ecc*) 16850 lt_prog_compiler_wl_GCJ='-Wl,' 16851 lt_prog_compiler_pic_GCJ='-KPIC' 16852 lt_prog_compiler_static_GCJ='-static' 16853 ;; 16854 pgcc* | pgf77* | pgf90* | pgf95*) 16855 # Portland Group compilers (*not* the Pentium gcc compiler, 16856 # which looks to be a dead project) 16857 lt_prog_compiler_wl_GCJ='-Wl,' 16858 lt_prog_compiler_pic_GCJ='-fpic' 16859 lt_prog_compiler_static_GCJ='-Bstatic' 16860 ;; 16861 ccc*) 16862 lt_prog_compiler_wl_GCJ='-Wl,' 16863 # All Alpha code is PIC. 16864 lt_prog_compiler_static_GCJ='-non_shared' 16865 ;; 16866 esac 16867 ;; 16868 16869 osf3* | osf4* | osf5*) 16870 lt_prog_compiler_wl_GCJ='-Wl,' 16871 # All OSF/1 code is PIC. 16872 lt_prog_compiler_static_GCJ='-non_shared' 16873 ;; 16874 16875 solaris*) 16876 lt_prog_compiler_pic_GCJ='-KPIC' 16877 lt_prog_compiler_static_GCJ='-Bstatic' 16878 case $cc_basename in 16879 f77* | f90* | f95*) 16880 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16881 *) 16882 lt_prog_compiler_wl_GCJ='-Wl,';; 16883 esac 16884 ;; 16885 16886 sunos4*) 16887 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16888 lt_prog_compiler_pic_GCJ='-PIC' 16889 lt_prog_compiler_static_GCJ='-Bstatic' 16890 ;; 16891 16892 sysv4 | sysv4.2uw2* | sysv4.3*) 16893 lt_prog_compiler_wl_GCJ='-Wl,' 16894 lt_prog_compiler_pic_GCJ='-KPIC' 16895 lt_prog_compiler_static_GCJ='-Bstatic' 16896 ;; 16897 16898 sysv4*MP*) 16899 if test -d /usr/nec ;then 16900 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16901 lt_prog_compiler_static_GCJ='-Bstatic' 16902 fi 16903 ;; 16904 16905 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16906 lt_prog_compiler_wl_GCJ='-Wl,' 16907 lt_prog_compiler_pic_GCJ='-KPIC' 16908 lt_prog_compiler_static_GCJ='-Bstatic' 16909 ;; 16910 16911 unicos*) 16912 lt_prog_compiler_wl_GCJ='-Wl,' 16913 lt_prog_compiler_can_build_shared_GCJ=no 16914 ;; 16915 16916 uts4*) 16917 lt_prog_compiler_pic_GCJ='-pic' 16918 lt_prog_compiler_static_GCJ='-Bstatic' 16919 ;; 16920 16921 *) 16922 lt_prog_compiler_can_build_shared_GCJ=no 16923 ;; 16924 esac 16925 fi 16926 16927{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16928echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } 16929 16930# 16931# Check to make sure the PIC flag actually works. 16932# 16933if test -n "$lt_prog_compiler_pic_GCJ"; then 16934 16935{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16936echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } 16937if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16938 echo $ECHO_N "(cached) $ECHO_C" >&6 16939else 16940 lt_prog_compiler_pic_works_GCJ=no 16941 ac_outfile=conftest.$ac_objext 16942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16943 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16944 # Insert the option either (1) after the last *FLAGS variable, or 16945 # (2) before a word containing "conftest.", or (3) at the end. 16946 # Note that $ac_compile itself does not contain backslashes and begins 16947 # with a dollar sign (not a hyphen), so the echo should work correctly. 16948 # The option is referenced via a variable to avoid confusing sed. 16949 lt_compile=`echo "$ac_compile" | $SED \ 16950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16952 -e 's:$: $lt_compiler_flag:'` 16953 (eval echo "\"\$as_me:16953: $lt_compile\"" >&5) 16954 (eval "$lt_compile" 2>conftest.err) 16955 ac_status=$? 16956 cat conftest.err >&5 16957 echo "$as_me:16957: \$? = $ac_status" >&5 16958 if (exit $ac_status) && test -s "$ac_outfile"; then 16959 # The compiler can only warn and ignore the option if not recognized 16960 # So say no if there are warnings other than the usual output. 16961 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 16962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16964 lt_prog_compiler_pic_works_GCJ=yes 16965 fi 16966 fi 16967 $rm conftest* 16968 16969fi 16970{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16971echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } 16972 16973if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16974 case $lt_prog_compiler_pic_GCJ in 16975 "" | " "*) ;; 16976 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16977 esac 16978else 16979 lt_prog_compiler_pic_GCJ= 16980 lt_prog_compiler_can_build_shared_GCJ=no 16981fi 16982 16983fi 16984case $host_os in 16985 # For platforms which do not support PIC, -DPIC is meaningless: 16986 *djgpp*) 16987 lt_prog_compiler_pic_GCJ= 16988 ;; 16989 *) 16990 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16991 ;; 16992esac 16993 16994# 16995# Check to make sure the static flag actually works. 16996# 16997wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" 16998{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16999echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } 17000if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then 17001 echo $ECHO_N "(cached) $ECHO_C" >&6 17002else 17003 lt_prog_compiler_static_works_GCJ=no 17004 save_LDFLAGS="$LDFLAGS" 17005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17006 printf "$lt_simple_link_test_code" > conftest.$ac_ext 17007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17008 # The linker can only warn and ignore the option if not recognized 17009 # So say no if there are warnings 17010 if test -s conftest.err; then 17011 # Append any errors to the config.log. 17012 cat conftest.err 1>&5 17013 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 17014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17015 if diff conftest.exp conftest.er2 >/dev/null; then 17016 lt_prog_compiler_static_works_GCJ=yes 17017 fi 17018 else 17019 lt_prog_compiler_static_works_GCJ=yes 17020 fi 17021 fi 17022 $rm conftest* 17023 LDFLAGS="$save_LDFLAGS" 17024 17025fi 17026{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 17027echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } 17028 17029if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then 17030 : 17031else 17032 lt_prog_compiler_static_GCJ= 17033fi 17034 17035 17036{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 17037echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } 17038if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 17039 echo $ECHO_N "(cached) $ECHO_C" >&6 17040else 17041 lt_cv_prog_compiler_c_o_GCJ=no 17042 $rm -r conftest 2>/dev/null 17043 mkdir conftest 17044 cd conftest 17045 mkdir out 17046 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17047 17048 lt_compiler_flag="-o out/conftest2.$ac_objext" 17049 # Insert the option either (1) after the last *FLAGS variable, or 17050 # (2) before a word containing "conftest.", or (3) at the end. 17051 # Note that $ac_compile itself does not contain backslashes and begins 17052 # with a dollar sign (not a hyphen), so the echo should work correctly. 17053 lt_compile=`echo "$ac_compile" | $SED \ 17054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17056 -e 's:$: $lt_compiler_flag:'` 17057 (eval echo "\"\$as_me:17057: $lt_compile\"" >&5) 17058 (eval "$lt_compile" 2>out/conftest.err) 17059 ac_status=$? 17060 cat out/conftest.err >&5 17061 echo "$as_me:17061: \$? = $ac_status" >&5 17062 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17063 then 17064 # The compiler can only warn and ignore the option if not recognized 17065 # So say no if there are warnings 17066 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 17067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17069 lt_cv_prog_compiler_c_o_GCJ=yes 17070 fi 17071 fi 17072 chmod u+w . 2>&5 17073 $rm conftest* 17074 # SGI C++ compiler will create directory out/ii_files/ for 17075 # template instantiation 17076 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 17077 $rm out/* && rmdir out 17078 cd .. 17079 rmdir conftest 17080 $rm conftest* 17081 17082fi 17083{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 17084echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } 17085 17086 17087hard_links="nottested" 17088if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 17089 # do not overwrite the value of need_locks provided by the user 17090 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 17091echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } 17092 hard_links=yes 17093 $rm conftest* 17094 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17095 touch conftest.a 17096 ln conftest.a conftest.b 2>&5 || hard_links=no 17097 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17098 { echo "$as_me:$LINENO: result: $hard_links" >&5 17099echo "${ECHO_T}$hard_links" >&6; } 17100 if test "$hard_links" = no; then 17101 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 17102echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 17103 need_locks=warn 17104 fi 17105else 17106 need_locks=no 17107fi 17108 17109{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17110echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } 17111 17112 runpath_var= 17113 allow_undefined_flag_GCJ= 17114 enable_shared_with_static_runtimes_GCJ=no 17115 archive_cmds_GCJ= 17116 archive_expsym_cmds_GCJ= 17117 old_archive_From_new_cmds_GCJ= 17118 old_archive_from_expsyms_cmds_GCJ= 17119 export_dynamic_flag_spec_GCJ= 17120 whole_archive_flag_spec_GCJ= 17121 thread_safe_flag_spec_GCJ= 17122 hardcode_libdir_flag_spec_GCJ= 17123 hardcode_libdir_flag_spec_ld_GCJ= 17124 hardcode_libdir_separator_GCJ= 17125 hardcode_direct_GCJ=no 17126 hardcode_minus_L_GCJ=no 17127 hardcode_shlibpath_var_GCJ=unsupported 17128 link_all_deplibs_GCJ=unknown 17129 hardcode_automatic_GCJ=no 17130 module_cmds_GCJ= 17131 module_expsym_cmds_GCJ= 17132 always_export_symbols_GCJ=no 17133 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17134 # include_expsyms should be a list of space-separated symbols to be *always* 17135 # included in the symbol list 17136 include_expsyms_GCJ= 17137 # exclude_expsyms can be an extended regexp of symbols to exclude 17138 # it will be wrapped by ` (' and `)$', so one must not match beginning or 17139 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 17140 # as well as any symbol that contains `d'. 17141 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 17142 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 17143 # platforms (ab)use it in PIC code, but their linkers get confused if 17144 # the symbol is explicitly referenced. Since portable code cannot 17145 # rely on this symbol name, it's probably fine to never include it in 17146 # preloaded symbol tables. 17147 extract_expsyms_cmds= 17148 # Just being paranoid about ensuring that cc_basename is set. 17149 for cc_temp in $compiler""; do 17150 case $cc_temp in 17151 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 17152 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 17153 \-*) ;; 17154 *) break;; 17155 esac 17156done 17157cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 17158 17159 case $host_os in 17160 cygwin* | mingw* | pw32*) 17161 # FIXME: the MSVC++ port hasn't been tested in a loooong time 17162 # When not using gcc, we currently assume that we are using 17163 # Microsoft Visual C++. 17164 if test "$GCC" != yes; then 17165 with_gnu_ld=no 17166 fi 17167 ;; 17168 interix*) 17169 # we just hope/assume this is gcc and not c89 (= MSVC++) 17170 with_gnu_ld=yes 17171 ;; 17172 openbsd*) 17173 with_gnu_ld=no 17174 ;; 17175 esac 17176 17177 ld_shlibs_GCJ=yes 17178 if test "$with_gnu_ld" = yes; then 17179 # If archive_cmds runs LD, not CC, wlarc should be empty 17180 wlarc='${wl}' 17181 17182 # Set some defaults for GNU ld with shared library support. These 17183 # are reset later if shared libraries are not supported. Putting them 17184 # here allows them to be overridden if necessary. 17185 runpath_var=LD_RUN_PATH 17186 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 17187 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 17188 # ancient GNU ld didn't support --whole-archive et. al. 17189 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 17190 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 17191 else 17192 whole_archive_flag_spec_GCJ= 17193 fi 17194 supports_anon_versioning=no 17195 case `$LD -v 2>/dev/null` in 17196 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17197 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17198 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17199 *\ 2.11.*) ;; # other 2.11 versions 17200 *) supports_anon_versioning=yes ;; 17201 esac 17202 17203 # See if GNU ld supports shared libraries. 17204 case $host_os in 17205 aix3* | aix4* | aix5*) 17206 # On AIX/PPC, the GNU linker is very broken 17207 if test "$host_cpu" != ia64; then 17208 ld_shlibs_GCJ=no 17209 cat <<EOF 1>&2 17210 17211*** Warning: the GNU linker, at least up to release 2.9.1, is reported 17212*** to be unable to reliably create shared libraries on AIX. 17213*** Therefore, libtool is disabling shared libraries support. If you 17214*** really care for shared libraries, you may want to modify your PATH 17215*** so that a non-GNU linker is found, and then restart. 17216 17217EOF 17218 fi 17219 ;; 17220 17221 amigaos*) 17222 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)' 17223 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17224 hardcode_minus_L_GCJ=yes 17225 17226 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 17227 # that the semantics of dynamic libraries on AmigaOS, at least up 17228 # to version 4, is to share data among multiple programs linked 17229 # with the same dynamic library. Since this doesn't match the 17230 # behavior of shared libraries on other platforms, we can't use 17231 # them. 17232 ld_shlibs_GCJ=no 17233 ;; 17234 17235 beos*) 17236 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17237 allow_undefined_flag_GCJ=unsupported 17238 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 17239 # support --undefined. This deserves some investigation. FIXME 17240 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17241 else 17242 ld_shlibs_GCJ=no 17243 fi 17244 ;; 17245 17246 cygwin* | mingw* | pw32*) 17247 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 17248 # as there is no search path for DLLs. 17249 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17250 allow_undefined_flag_GCJ=unsupported 17251 always_export_symbols_GCJ=no 17252 enable_shared_with_static_runtimes_GCJ=yes 17253 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 17254 17255 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 17256 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17257 # If the export-symbols file already is a .def file (1st line 17258 # is EXPORTS), use it as is; otherwise, prepend... 17259 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 17260 cp $export_symbols $output_objdir/$soname.def; 17261 else 17262 echo EXPORTS > $output_objdir/$soname.def; 17263 cat $export_symbols >> $output_objdir/$soname.def; 17264 fi~ 17265 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 17266 else 17267 ld_shlibs_GCJ=no 17268 fi 17269 ;; 17270 17271 interix3*) 17272 hardcode_direct_GCJ=no 17273 hardcode_shlibpath_var_GCJ=no 17274 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17275 export_dynamic_flag_spec_GCJ='${wl}-E' 17276 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 17277 # Instead, shared libraries are loaded at an image base (0x10000000 by 17278 # default) and relocated if they conflict, which is a slow very memory 17279 # consuming and fragmenting process. To avoid this, we pick a random, 17280 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 17281 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 17282 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' 17283 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' 17284 ;; 17285 17286 linux* | k*bsd*-gnu) 17287 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17288 tmp_addflag= 17289 case $cc_basename,$host_cpu in 17290 pgcc*) # Portland Group C compiler 17291 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' 17292 tmp_addflag=' $pic_flag' 17293 ;; 17294 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 17295 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' 17296 tmp_addflag=' $pic_flag -Mnomain' ;; 17297 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 17298 tmp_addflag=' -i_dynamic' ;; 17299 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 17300 tmp_addflag=' -i_dynamic -nofor_main' ;; 17301 ifc* | ifort*) # Intel Fortran compiler 17302 tmp_addflag=' -nofor_main' ;; 17303 esac 17304 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17305 17306 if test $supports_anon_versioning = yes; then 17307 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 17308 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17309 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17310 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17311 fi 17312 link_all_deplibs_GCJ=no 17313 else 17314 ld_shlibs_GCJ=no 17315 fi 17316 ;; 17317 17318 netbsd* | netbsdelf*-gnu) 17319 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17320 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 17321 wlarc= 17322 else 17323 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17324 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17325 fi 17326 ;; 17327 17328 solaris*) 17329 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 17330 ld_shlibs_GCJ=no 17331 cat <<EOF 1>&2 17332 17333*** Warning: The releases 2.8.* of the GNU linker cannot reliably 17334*** create shared libraries on Solaris systems. Therefore, libtool 17335*** is disabling shared libraries support. We urge you to upgrade GNU 17336*** binutils to release 2.9.1 or newer. Another option is to modify 17337*** your PATH or compiler configuration so that the native linker is 17338*** used, and then restart. 17339 17340EOF 17341 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17342 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17343 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17344 else 17345 ld_shlibs_GCJ=no 17346 fi 17347 ;; 17348 17349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17350 case `$LD -v 2>&1` in 17351 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17352 ld_shlibs_GCJ=no 17353 cat <<_LT_EOF 1>&2 17354 17355*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 17356*** reliably create shared libraries on SCO systems. Therefore, libtool 17357*** is disabling shared libraries support. We urge you to upgrade GNU 17358*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17359*** your PATH or compiler configuration so that the native linker is 17360*** used, and then restart. 17361 17362_LT_EOF 17363 ;; 17364 *) 17365 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17366 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 17367 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 17368 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 17369 else 17370 ld_shlibs_GCJ=no 17371 fi 17372 ;; 17373 esac 17374 ;; 17375 17376 sunos4*) 17377 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17378 wlarc= 17379 hardcode_direct_GCJ=yes 17380 hardcode_shlibpath_var_GCJ=no 17381 ;; 17382 17383 *) 17384 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 17385 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17386 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 17387 else 17388 ld_shlibs_GCJ=no 17389 fi 17390 ;; 17391 esac 17392 17393 if test "$ld_shlibs_GCJ" = no; then 17394 runpath_var= 17395 hardcode_libdir_flag_spec_GCJ= 17396 export_dynamic_flag_spec_GCJ= 17397 whole_archive_flag_spec_GCJ= 17398 fi 17399 else 17400 # PORTME fill in a description of your system's linker (not GNU ld) 17401 case $host_os in 17402 aix3*) 17403 allow_undefined_flag_GCJ=unsupported 17404 always_export_symbols_GCJ=yes 17405 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' 17406 # Note: this linker hardcodes the directories in LIBPATH if there 17407 # are no directories specified by -L. 17408 hardcode_minus_L_GCJ=yes 17409 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 17410 # Neither direct hardcoding nor static linking is supported with a 17411 # broken collect2. 17412 hardcode_direct_GCJ=unsupported 17413 fi 17414 ;; 17415 17416 aix4* | aix5*) 17417 if test "$host_cpu" = ia64; then 17418 # On IA64, the linker does run time linking by default, so we don't 17419 # have to do anything special. 17420 aix_use_runtimelinking=no 17421 exp_sym_flag='-Bexport' 17422 no_entry_flag="" 17423 else 17424 # If we're using GNU nm, then we don't want the "-C" option. 17425 # -C means demangle to AIX nm, but means don't demangle with GNU nm 17426 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 17427 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' 17428 else 17429 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' 17430 fi 17431 aix_use_runtimelinking=no 17432 17433 # Test if we are trying to use run time linking or normal 17434 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17435 # need to do runtime linking. 17436 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 17437 for ld_flag in $LDFLAGS; do 17438 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 17439 aix_use_runtimelinking=yes 17440 break 17441 fi 17442 done 17443 ;; 17444 esac 17445 17446 exp_sym_flag='-bexport' 17447 no_entry_flag='-bnoentry' 17448 fi 17449 17450 # When large executables or shared objects are built, AIX ld can 17451 # have problems creating the table of contents. If linking a library 17452 # or program results in "error TOC overflow" add -mminimal-toc to 17453 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17454 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17455 17456 archive_cmds_GCJ='' 17457 hardcode_direct_GCJ=yes 17458 hardcode_libdir_separator_GCJ=':' 17459 link_all_deplibs_GCJ=yes 17460 17461 if test "$GCC" = yes; then 17462 case $host_os in aix4.[012]|aix4.[012].*) 17463 # We only want to do this on AIX 4.2 and lower, the check 17464 # below for broken collect2 doesn't work under 4.3+ 17465 collect2name=`${CC} -print-prog-name=collect2` 17466 if test -f "$collect2name" && \ 17467 strings "$collect2name" | grep resolve_lib_name >/dev/null 17468 then 17469 # We have reworked collect2 17470 hardcode_direct_GCJ=yes 17471 else 17472 # We have old collect2 17473 hardcode_direct_GCJ=unsupported 17474 # It fails to find uninstalled libraries when the uninstalled 17475 # path is not listed in the libpath. Setting hardcode_minus_L 17476 # to unsupported forces relinking 17477 hardcode_minus_L_GCJ=yes 17478 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17479 hardcode_libdir_separator_GCJ= 17480 fi 17481 ;; 17482 esac 17483 shared_flag='-shared' 17484 if test "$aix_use_runtimelinking" = yes; then 17485 shared_flag="$shared_flag "'${wl}-G' 17486 fi 17487 else 17488 # not using gcc 17489 if test "$host_cpu" = ia64; then 17490 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17491 # chokes on -Wl,-G. The following line is correct: 17492 shared_flag='-G' 17493 else 17494 if test "$aix_use_runtimelinking" = yes; then 17495 shared_flag='${wl}-G' 17496 else 17497 shared_flag='${wl}-bM:SRE' 17498 fi 17499 fi 17500 fi 17501 17502 # It seems that -bexpall does not export symbols beginning with 17503 # underscore (_), so it is better to generate a list of symbols to export. 17504 always_export_symbols_GCJ=yes 17505 if test "$aix_use_runtimelinking" = yes; then 17506 # Warning - without using the other runtime loading flags (-brtl), 17507 # -berok will link without error, but may produce a broken library. 17508 allow_undefined_flag_GCJ='-berok' 17509 # Determine the default libpath from the value encoded in an empty executable. 17510 cat >conftest.$ac_ext <<_ACEOF 17511/* confdefs.h. */ 17512_ACEOF 17513cat confdefs.h >>conftest.$ac_ext 17514cat >>conftest.$ac_ext <<_ACEOF 17515/* end confdefs.h. */ 17516 17517int 17518main () 17519{ 17520 17521 ; 17522 return 0; 17523} 17524_ACEOF 17525rm -f conftest.$ac_objext conftest$ac_exeext 17526if { (ac_try="$ac_link" 17527case "(($ac_try" in 17528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17529 *) ac_try_echo=$ac_try;; 17530esac 17531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17532 (eval "$ac_link") 2>conftest.er1 17533 ac_status=$? 17534 grep -v '^ *+' conftest.er1 >conftest.err 17535 rm -f conftest.er1 17536 cat conftest.err >&5 17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17538 (exit $ac_status); } && 17539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17540 { (case "(($ac_try" in 17541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17542 *) ac_try_echo=$ac_try;; 17543esac 17544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17545 (eval "$ac_try") 2>&5 17546 ac_status=$? 17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17548 (exit $ac_status); }; } && 17549 { ac_try='test -s conftest$ac_exeext' 17550 { (case "(($ac_try" in 17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17552 *) ac_try_echo=$ac_try;; 17553esac 17554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17555 (eval "$ac_try") 2>&5 17556 ac_status=$? 17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17558 (exit $ac_status); }; }; then 17559 17560aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17561}'` 17562# Check for a 64-bit object if we didn't find anything. 17563if 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; } 17564}'`; fi 17565else 17566 echo "$as_me: failed program was:" >&5 17567sed 's/^/| /' conftest.$ac_ext >&5 17568 17569 17570fi 17571 17572rm -f core conftest.err conftest.$ac_objext \ 17573 conftest$ac_exeext conftest.$ac_ext 17574if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17575 17576 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17577 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" 17578 else 17579 if test "$host_cpu" = ia64; then 17580 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 17581 allow_undefined_flag_GCJ="-z nodefs" 17582 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" 17583 else 17584 # Determine the default libpath from the value encoded in an empty executable. 17585 cat >conftest.$ac_ext <<_ACEOF 17586/* confdefs.h. */ 17587_ACEOF 17588cat confdefs.h >>conftest.$ac_ext 17589cat >>conftest.$ac_ext <<_ACEOF 17590/* end confdefs.h. */ 17591 17592int 17593main () 17594{ 17595 17596 ; 17597 return 0; 17598} 17599_ACEOF 17600rm -f conftest.$ac_objext conftest$ac_exeext 17601if { (ac_try="$ac_link" 17602case "(($ac_try" in 17603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17604 *) ac_try_echo=$ac_try;; 17605esac 17606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17607 (eval "$ac_link") 2>conftest.er1 17608 ac_status=$? 17609 grep -v '^ *+' conftest.er1 >conftest.err 17610 rm -f conftest.er1 17611 cat conftest.err >&5 17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17613 (exit $ac_status); } && 17614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 17615 { (case "(($ac_try" in 17616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17617 *) ac_try_echo=$ac_try;; 17618esac 17619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17620 (eval "$ac_try") 2>&5 17621 ac_status=$? 17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17623 (exit $ac_status); }; } && 17624 { ac_try='test -s conftest$ac_exeext' 17625 { (case "(($ac_try" in 17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17627 *) ac_try_echo=$ac_try;; 17628esac 17629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17630 (eval "$ac_try") 2>&5 17631 ac_status=$? 17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17633 (exit $ac_status); }; }; then 17634 17635aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 17636}'` 17637# Check for a 64-bit object if we didn't find anything. 17638if 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; } 17639}'`; fi 17640else 17641 echo "$as_me: failed program was:" >&5 17642sed 's/^/| /' conftest.$ac_ext >&5 17643 17644 17645fi 17646 17647rm -f core conftest.err conftest.$ac_objext \ 17648 conftest$ac_exeext conftest.$ac_ext 17649if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 17650 17651 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 17652 # Warning - without using the other run time loading flags, 17653 # -berok will link without error, but may produce a broken library. 17654 no_undefined_flag_GCJ=' ${wl}-bernotok' 17655 allow_undefined_flag_GCJ=' ${wl}-berok' 17656 # Exported symbols can be pulled into shared objects from archives 17657 whole_archive_flag_spec_GCJ='$convenience' 17658 archive_cmds_need_lc_GCJ=yes 17659 # This is similar to how AIX traditionally builds its shared libraries. 17660 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' 17661 fi 17662 fi 17663 ;; 17664 17665 amigaos*) 17666 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)' 17667 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17668 hardcode_minus_L_GCJ=yes 17669 # see comment about different semantics on the GNU ld section 17670 ld_shlibs_GCJ=no 17671 ;; 17672 17673 bsdi[45]*) 17674 export_dynamic_flag_spec_GCJ=-rdynamic 17675 ;; 17676 17677 cygwin* | mingw* | pw32*) 17678 # When not using gcc, we currently assume that we are using 17679 # Microsoft Visual C++. 17680 # hardcode_libdir_flag_spec is actually meaningless, as there is 17681 # no search path for DLLs. 17682 hardcode_libdir_flag_spec_GCJ=' ' 17683 allow_undefined_flag_GCJ=unsupported 17684 # Tell ltmain to make .lib files, not .a files. 17685 libext=lib 17686 # Tell ltmain to make .dll files, not .so files. 17687 shrext_cmds=".dll" 17688 # FIXME: Setting linknames here is a bad hack. 17689 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17690 # The linker will automatically build a .lib file if we build a DLL. 17691 old_archive_From_new_cmds_GCJ='true' 17692 # FIXME: Should let the user specify the lib program. 17693 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17694 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17695 enable_shared_with_static_runtimes_GCJ=yes 17696 ;; 17697 17698 darwin* | rhapsody*) 17699 case $host_os in 17700 rhapsody* | darwin1.[012]) 17701 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17702 ;; 17703 *) # Darwin 1.3 on 17704 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17705 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17706 else 17707 case ${MACOSX_DEPLOYMENT_TARGET} in 17708 10.[012]) 17709 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17710 ;; 17711 10.*) 17712 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17713 ;; 17714 esac 17715 fi 17716 ;; 17717 esac 17718 archive_cmds_need_lc_GCJ=no 17719 hardcode_direct_GCJ=no 17720 hardcode_automatic_GCJ=yes 17721 hardcode_shlibpath_var_GCJ=unsupported 17722 whole_archive_flag_spec_GCJ='' 17723 link_all_deplibs_GCJ=yes 17724 if test "$GCC" = yes ; then 17725 output_verbose_link_cmd='echo' 17726 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17727 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17728 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17729 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}' 17730 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}' 17731 else 17732 case $cc_basename in 17733 xlc*) 17734 output_verbose_link_cmd='echo' 17735 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17736 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17737 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17738 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}' 17739 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}' 17740 ;; 17741 *) 17742 ld_shlibs_GCJ=no 17743 ;; 17744 esac 17745 fi 17746 ;; 17747 17748 dgux*) 17749 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17750 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17751 hardcode_shlibpath_var_GCJ=no 17752 ;; 17753 17754 freebsd1*) 17755 ld_shlibs_GCJ=no 17756 ;; 17757 17758 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17759 # support. Future versions do this automatically, but an explicit c++rt0.o 17760 # does not break anything, and helps significantly (at the cost of a little 17761 # extra space). 17762 freebsd2.2*) 17763 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17764 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17765 hardcode_direct_GCJ=yes 17766 hardcode_shlibpath_var_GCJ=no 17767 ;; 17768 17769 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17770 freebsd2*) 17771 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17772 hardcode_direct_GCJ=yes 17773 hardcode_minus_L_GCJ=yes 17774 hardcode_shlibpath_var_GCJ=no 17775 ;; 17776 17777 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17778 freebsd* | dragonfly*) 17779 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17780 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17781 hardcode_direct_GCJ=yes 17782 hardcode_shlibpath_var_GCJ=no 17783 ;; 17784 17785 hpux9*) 17786 if test "$GCC" = yes; then 17787 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' 17788 else 17789 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' 17790 fi 17791 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17792 hardcode_libdir_separator_GCJ=: 17793 hardcode_direct_GCJ=yes 17794 17795 # hardcode_minus_L: Not really in the search PATH, 17796 # but as the default location of the library. 17797 hardcode_minus_L_GCJ=yes 17798 export_dynamic_flag_spec_GCJ='${wl}-E' 17799 ;; 17800 17801 hpux10*) 17802 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17803 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17804 else 17805 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17806 fi 17807 if test "$with_gnu_ld" = no; then 17808 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17809 hardcode_libdir_separator_GCJ=: 17810 17811 hardcode_direct_GCJ=yes 17812 export_dynamic_flag_spec_GCJ='${wl}-E' 17813 17814 # hardcode_minus_L: Not really in the search PATH, 17815 # but as the default location of the library. 17816 hardcode_minus_L_GCJ=yes 17817 fi 17818 ;; 17819 17820 hpux11*) 17821 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17822 case $host_cpu in 17823 hppa*64*) 17824 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17825 ;; 17826 ia64*) 17827 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17828 ;; 17829 *) 17830 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17831 ;; 17832 esac 17833 else 17834 case $host_cpu in 17835 hppa*64*) 17836 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17837 ;; 17838 ia64*) 17839 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17840 ;; 17841 *) 17842 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17843 ;; 17844 esac 17845 fi 17846 if test "$with_gnu_ld" = no; then 17847 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17848 hardcode_libdir_separator_GCJ=: 17849 17850 case $host_cpu in 17851 hppa*64*|ia64*) 17852 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17853 hardcode_direct_GCJ=no 17854 hardcode_shlibpath_var_GCJ=no 17855 ;; 17856 *) 17857 hardcode_direct_GCJ=yes 17858 export_dynamic_flag_spec_GCJ='${wl}-E' 17859 17860 # hardcode_minus_L: Not really in the search PATH, 17861 # but as the default location of the library. 17862 hardcode_minus_L_GCJ=yes 17863 ;; 17864 esac 17865 fi 17866 ;; 17867 17868 irix5* | irix6* | nonstopux*) 17869 if test "$GCC" = yes; then 17870 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' 17871 else 17872 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' 17873 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17874 fi 17875 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17876 hardcode_libdir_separator_GCJ=: 17877 link_all_deplibs_GCJ=yes 17878 ;; 17879 17880 netbsd* | netbsdelf*-gnu) 17881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17882 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17883 else 17884 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17885 fi 17886 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17887 hardcode_direct_GCJ=yes 17888 hardcode_shlibpath_var_GCJ=no 17889 ;; 17890 17891 newsos6) 17892 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17893 hardcode_direct_GCJ=yes 17894 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17895 hardcode_libdir_separator_GCJ=: 17896 hardcode_shlibpath_var_GCJ=no 17897 ;; 17898 17899 openbsd*) 17900 hardcode_direct_GCJ=yes 17901 hardcode_shlibpath_var_GCJ=no 17902 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17903 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17904 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17905 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17906 export_dynamic_flag_spec_GCJ='${wl}-E' 17907 else 17908 case $host_os in 17909 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17910 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17911 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17912 ;; 17913 *) 17914 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17915 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17916 ;; 17917 esac 17918 fi 17919 ;; 17920 17921 os2*) 17922 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17923 hardcode_minus_L_GCJ=yes 17924 allow_undefined_flag_GCJ=unsupported 17925 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' 17926 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17927 ;; 17928 17929 osf3*) 17930 if test "$GCC" = yes; then 17931 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17932 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' 17933 else 17934 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17935 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' 17936 fi 17937 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17938 hardcode_libdir_separator_GCJ=: 17939 ;; 17940 17941 osf4* | osf5*) # as osf3* with the addition of -msym flag 17942 if test "$GCC" = yes; then 17943 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17944 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' 17945 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17946 else 17947 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17948 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' 17949 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~ 17950 $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' 17951 17952 # Both c and cxx compiler support -rpath directly 17953 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17954 fi 17955 hardcode_libdir_separator_GCJ=: 17956 ;; 17957 17958 solaris*) 17959 no_undefined_flag_GCJ=' -z text' 17960 if test "$GCC" = yes; then 17961 wlarc='${wl}' 17962 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17963 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17964 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17965 else 17966 wlarc='' 17967 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17968 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17969 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17970 fi 17971 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17972 hardcode_shlibpath_var_GCJ=no 17973 case $host_os in 17974 solaris2.[0-5] | solaris2.[0-5].*) ;; 17975 *) 17976 # The compiler driver will combine linker options so we 17977 # cannot just pass the convience library names through 17978 # without $wl, iff we do not link with $LD. 17979 # Luckily, gcc supports the same syntax we need for Sun Studio. 17980 # Supported since Solaris 2.6 (maybe 2.5.1?) 17981 case $wlarc in 17982 '') 17983 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17984 *) 17985 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' ;; 17986 esac ;; 17987 esac 17988 link_all_deplibs_GCJ=yes 17989 ;; 17990 17991 sunos4*) 17992 if test "x$host_vendor" = xsequent; then 17993 # Use $CC to link under sequent, because it throws in some extra .o 17994 # files that make .init and .fini sections work. 17995 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17996 else 17997 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17998 fi 17999 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18000 hardcode_direct_GCJ=yes 18001 hardcode_minus_L_GCJ=yes 18002 hardcode_shlibpath_var_GCJ=no 18003 ;; 18004 18005 sysv4) 18006 case $host_vendor in 18007 sni) 18008 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18009 hardcode_direct_GCJ=yes # is this really true??? 18010 ;; 18011 siemens) 18012 ## LD is ld it makes a PLAMLIB 18013 ## CC just makes a GrossModule. 18014 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 18015 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 18016 hardcode_direct_GCJ=no 18017 ;; 18018 motorola) 18019 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18020 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 18021 ;; 18022 esac 18023 runpath_var='LD_RUN_PATH' 18024 hardcode_shlibpath_var_GCJ=no 18025 ;; 18026 18027 sysv4.3*) 18028 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18029 hardcode_shlibpath_var_GCJ=no 18030 export_dynamic_flag_spec_GCJ='-Bexport' 18031 ;; 18032 18033 sysv4*MP*) 18034 if test -d /usr/nec; then 18035 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18036 hardcode_shlibpath_var_GCJ=no 18037 runpath_var=LD_RUN_PATH 18038 hardcode_runpath_var=yes 18039 ld_shlibs_GCJ=yes 18040 fi 18041 ;; 18042 18043 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) 18044 no_undefined_flag_GCJ='${wl}-z,text' 18045 archive_cmds_need_lc_GCJ=no 18046 hardcode_shlibpath_var_GCJ=no 18047 runpath_var='LD_RUN_PATH' 18048 18049 if test "$GCC" = yes; then 18050 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18051 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18052 else 18053 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18054 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 18055 fi 18056 ;; 18057 18058 sysv5* | sco3.2v5* | sco5v6*) 18059 # Note: We can NOT use -z defs as we might desire, because we do not 18060 # link with -lc, and that would cause any symbols used from libc to 18061 # always be unresolved, which means just about no library would 18062 # ever link correctly. If we're not using GNU ld we use -z text 18063 # though, which does catch some bad symbols but isn't as heavy-handed 18064 # as -z defs. 18065 no_undefined_flag_GCJ='${wl}-z,text' 18066 allow_undefined_flag_GCJ='${wl}-z,nodefs' 18067 archive_cmds_need_lc_GCJ=no 18068 hardcode_shlibpath_var_GCJ=no 18069 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 18070 hardcode_libdir_separator_GCJ=':' 18071 link_all_deplibs_GCJ=yes 18072 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 18073 runpath_var='LD_RUN_PATH' 18074 18075 if test "$GCC" = yes; then 18076 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18077 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18078 else 18079 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18080 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 18081 fi 18082 ;; 18083 18084 uts4*) 18085 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 18086 hardcode_libdir_flag_spec_GCJ='-L$libdir' 18087 hardcode_shlibpath_var_GCJ=no 18088 ;; 18089 18090 *) 18091 ld_shlibs_GCJ=no 18092 ;; 18093 esac 18094 fi 18095 18096{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 18097echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } 18098test "$ld_shlibs_GCJ" = no && can_build_shared=no 18099 18100# 18101# Do we need to explicitly link libc? 18102# 18103case "x$archive_cmds_need_lc_GCJ" in 18104x|xyes) 18105 # Assume -lc should be added 18106 archive_cmds_need_lc_GCJ=yes 18107 18108 if test "$enable_shared" = yes && test "$GCC" = yes; then 18109 case $archive_cmds_GCJ in 18110 *'~'*) 18111 # FIXME: we may have to deal with multi-command sequences. 18112 ;; 18113 '$CC '*) 18114 # Test whether the compiler implicitly links with -lc since on some 18115 # systems, -lgcc has to come before -lc. If gcc already passes -lc 18116 # to ld, don't add -lc before -lgcc. 18117 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 18118echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } 18119 $rm conftest* 18120 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 18121 18122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18123 (eval $ac_compile) 2>&5 18124 ac_status=$? 18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18126 (exit $ac_status); } 2>conftest.err; then 18127 soname=conftest 18128 lib=conftest 18129 libobjs=conftest.$ac_objext 18130 deplibs= 18131 wl=$lt_prog_compiler_wl_GCJ 18132 pic_flag=$lt_prog_compiler_pic_GCJ 18133 compiler_flags=-v 18134 linker_flags=-v 18135 verstring= 18136 output_objdir=. 18137 libname=conftest 18138 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 18139 allow_undefined_flag_GCJ= 18140 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 18141 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 18142 ac_status=$? 18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18144 (exit $ac_status); } 18145 then 18146 archive_cmds_need_lc_GCJ=no 18147 else 18148 archive_cmds_need_lc_GCJ=yes 18149 fi 18150 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 18151 else 18152 cat conftest.err 1>&5 18153 fi 18154 $rm conftest* 18155 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 18156echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } 18157 ;; 18158 esac 18159 fi 18160 ;; 18161esac 18162 18163{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 18164echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } 18165library_names_spec= 18166libname_spec='lib$name' 18167soname_spec= 18168shrext_cmds=".so" 18169postinstall_cmds= 18170postuninstall_cmds= 18171finish_cmds= 18172finish_eval= 18173shlibpath_var= 18174shlibpath_overrides_runpath=unknown 18175version_type=none 18176dynamic_linker="$host_os ld.so" 18177sys_lib_dlsearch_path_spec="/lib /usr/lib" 18178if test "$GCC" = yes; then 18179 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18180 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 18181 # if the path contains ";" then we assume it to be the separator 18182 # otherwise default to the standard path separator (i.e. ":") - it is 18183 # assumed that no part of a normal pathname contains ";" but that should 18184 # okay in the real world where ";" in dirpaths is itself problematic. 18185 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18186 else 18187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18188 fi 18189else 18190 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18191fi 18192need_lib_prefix=unknown 18193hardcode_into_libs=no 18194 18195# when you set need_version to no, make sure it does not cause -set_version 18196# flags to be left without arguments 18197need_version=unknown 18198 18199case $host_os in 18200aix3*) 18201 version_type=linux 18202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 18203 shlibpath_var=LIBPATH 18204 18205 # AIX 3 has no versioning support, so we append a major version to the name. 18206 soname_spec='${libname}${release}${shared_ext}$major' 18207 ;; 18208 18209aix4* | aix5*) 18210 version_type=linux 18211 need_lib_prefix=no 18212 need_version=no 18213 hardcode_into_libs=yes 18214 if test "$host_cpu" = ia64; then 18215 # AIX 5 supports IA64 18216 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 18217 shlibpath_var=LD_LIBRARY_PATH 18218 else 18219 # With GCC up to 2.95.x, collect2 would create an import file 18220 # for dependence libraries. The import file would start with 18221 # the line `#! .'. This would cause the generated library to 18222 # depend on `.', always an invalid library. This was fixed in 18223 # development snapshots of GCC prior to 3.0. 18224 case $host_os in 18225 aix4 | aix4.[01] | aix4.[01].*) 18226 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18227 echo ' yes ' 18228 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 18229 : 18230 else 18231 can_build_shared=no 18232 fi 18233 ;; 18234 esac 18235 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 18236 # soname into executable. Probably we can add versioning support to 18237 # collect2, so additional links can be useful in future. 18238 if test "$aix_use_runtimelinking" = yes; then 18239 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18240 # instead of lib<name>.a to let people know that these are not 18241 # typical AIX shared libraries. 18242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18243 else 18244 # We preserve .a as extension for shared libraries through AIX4.2 18245 # and later when we are not doing run time linking. 18246 library_names_spec='${libname}${release}.a $libname.a' 18247 soname_spec='${libname}${release}${shared_ext}$major' 18248 fi 18249 shlibpath_var=LIBPATH 18250 fi 18251 ;; 18252 18253amigaos*) 18254 library_names_spec='$libname.ixlibrary $libname.a' 18255 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18256 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' 18257 ;; 18258 18259beos*) 18260 library_names_spec='${libname}${shared_ext}' 18261 dynamic_linker="$host_os ld.so" 18262 shlibpath_var=LIBRARY_PATH 18263 ;; 18264 18265bsdi[45]*) 18266 version_type=linux 18267 need_version=no 18268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18269 soname_spec='${libname}${release}${shared_ext}$major' 18270 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18271 shlibpath_var=LD_LIBRARY_PATH 18272 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18273 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18274 # the default ld.so.conf also contains /usr/contrib/lib and 18275 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18276 # libtool to hard-code these into programs 18277 ;; 18278 18279cygwin* | mingw* | pw32*) 18280 version_type=windows 18281 shrext_cmds=".dll" 18282 need_version=no 18283 need_lib_prefix=no 18284 18285 case $GCC,$host_os in 18286 yes,cygwin* | yes,mingw* | yes,pw32*) 18287 library_names_spec='$libname.dll.a' 18288 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18289 postinstall_cmds='base_file=`basename \${file}`~ 18290 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 18291 dldir=$destdir/`dirname \$dlpath`~ 18292 test -d \$dldir || mkdir -p \$dldir~ 18293 $install_prog $dir/$dlname \$dldir/$dlname~ 18294 chmod a+x \$dldir/$dlname' 18295 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18296 dlpath=$dir/\$dldll~ 18297 $rm \$dlpath' 18298 shlibpath_overrides_runpath=yes 18299 18300 case $host_os in 18301 cygwin*) 18302 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18303 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18304 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 18305 ;; 18306 mingw*) 18307 # MinGW DLLs use traditional 'lib' prefix 18308 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18309 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 18310 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 18311 # It is most probably a Windows format PATH printed by 18312 # mingw gcc, but we are running on Cygwin. Gcc prints its search 18313 # path with ; separators, and with drive letters. We can handle the 18314 # drive letters (cygwin fileutils understands them), so leave them, 18315 # especially as we might pass files found there to a mingw objdump, 18316 # which wouldn't understand a cygwinified path. Ahh. 18317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18318 else 18319 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18320 fi 18321 ;; 18322 pw32*) 18323 # pw32 DLLs use 'pw' prefix rather than 'lib' 18324 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 18325 ;; 18326 esac 18327 ;; 18328 18329 *) 18330 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 18331 ;; 18332 esac 18333 dynamic_linker='Win32 ld.exe' 18334 # FIXME: first we should search . and the directory the executable is in 18335 shlibpath_var=PATH 18336 ;; 18337 18338darwin* | rhapsody*) 18339 dynamic_linker="$host_os dyld" 18340 version_type=darwin 18341 need_lib_prefix=no 18342 need_version=no 18343 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 18344 soname_spec='${libname}${release}${major}$shared_ext' 18345 shlibpath_overrides_runpath=yes 18346 shlibpath_var=DYLD_LIBRARY_PATH 18347 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18348 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 18349 if test "$GCC" = yes; then 18350 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"` 18351 else 18352 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 18353 fi 18354 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18355 ;; 18356 18357dgux*) 18358 version_type=linux 18359 need_lib_prefix=no 18360 need_version=no 18361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 18362 soname_spec='${libname}${release}${shared_ext}$major' 18363 shlibpath_var=LD_LIBRARY_PATH 18364 ;; 18365 18366freebsd1*) 18367 dynamic_linker=no 18368 ;; 18369 18370freebsd* | dragonfly*) 18371 # DragonFly does not have aout. When/if they implement a new 18372 # versioning mechanism, adjust this. 18373 if test -x /usr/bin/objformat; then 18374 objformat=`/usr/bin/objformat` 18375 else 18376 case $host_os in 18377 freebsd[123]*) objformat=aout ;; 18378 *) objformat=elf ;; 18379 esac 18380 fi 18381 version_type=freebsd-$objformat 18382 case $version_type in 18383 freebsd-elf*) 18384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18385 need_version=no 18386 need_lib_prefix=no 18387 ;; 18388 freebsd-*) 18389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 18390 need_version=yes 18391 ;; 18392 esac 18393 shlibpath_var=LD_LIBRARY_PATH 18394 case $host_os in 18395 freebsd2*) 18396 shlibpath_overrides_runpath=yes 18397 ;; 18398 freebsd3.[01]* | freebsdelf3.[01]*) 18399 shlibpath_overrides_runpath=yes 18400 hardcode_into_libs=yes 18401 ;; 18402 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18403 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18404 shlibpath_overrides_runpath=no 18405 hardcode_into_libs=yes 18406 ;; 18407 freebsd*) # from 4.6 on 18408 shlibpath_overrides_runpath=yes 18409 hardcode_into_libs=yes 18410 ;; 18411 esac 18412 ;; 18413 18414gnu*) 18415 version_type=linux 18416 need_lib_prefix=no 18417 need_version=no 18418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 18419 soname_spec='${libname}${release}${shared_ext}$major' 18420 shlibpath_var=LD_LIBRARY_PATH 18421 hardcode_into_libs=yes 18422 ;; 18423 18424hpux9* | hpux10* | hpux11*) 18425 # Give a soname corresponding to the major version so that dld.sl refuses to 18426 # link against other versions. 18427 version_type=sunos 18428 need_lib_prefix=no 18429 need_version=no 18430 case $host_cpu in 18431 ia64*) 18432 shrext_cmds='.so' 18433 hardcode_into_libs=yes 18434 dynamic_linker="$host_os dld.so" 18435 shlibpath_var=LD_LIBRARY_PATH 18436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18438 soname_spec='${libname}${release}${shared_ext}$major' 18439 if test "X$HPUX_IA64_MODE" = X32; then 18440 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18441 else 18442 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18443 fi 18444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18445 ;; 18446 hppa*64*) 18447 shrext_cmds='.sl' 18448 hardcode_into_libs=yes 18449 dynamic_linker="$host_os dld.sl" 18450 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18453 soname_spec='${libname}${release}${shared_ext}$major' 18454 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18456 ;; 18457 *) 18458 shrext_cmds='.sl' 18459 dynamic_linker="$host_os dld.sl" 18460 shlibpath_var=SHLIB_PATH 18461 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18463 soname_spec='${libname}${release}${shared_ext}$major' 18464 ;; 18465 esac 18466 # HP-UX runs *really* slowly unless shared libraries are mode 555. 18467 postinstall_cmds='chmod 555 $lib' 18468 ;; 18469 18470interix3*) 18471 version_type=linux 18472 need_lib_prefix=no 18473 need_version=no 18474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18475 soname_spec='${libname}${release}${shared_ext}$major' 18476 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18477 shlibpath_var=LD_LIBRARY_PATH 18478 shlibpath_overrides_runpath=no 18479 hardcode_into_libs=yes 18480 ;; 18481 18482irix5* | irix6* | nonstopux*) 18483 case $host_os in 18484 nonstopux*) version_type=nonstopux ;; 18485 *) 18486 if test "$lt_cv_prog_gnu_ld" = yes; then 18487 version_type=linux 18488 else 18489 version_type=irix 18490 fi ;; 18491 esac 18492 need_lib_prefix=no 18493 need_version=no 18494 soname_spec='${libname}${release}${shared_ext}$major' 18495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 18496 case $host_os in 18497 irix5* | nonstopux*) 18498 libsuff= shlibsuff= 18499 ;; 18500 *) 18501 case $LD in # libtool.m4 will add one of these switches to LD 18502 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18503 libsuff= shlibsuff= libmagic=32-bit;; 18504 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18505 libsuff=32 shlibsuff=N32 libmagic=N32;; 18506 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18507 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18508 *) libsuff= shlibsuff= libmagic=never-match;; 18509 esac 18510 ;; 18511 esac 18512 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18513 shlibpath_overrides_runpath=no 18514 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 18515 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 18516 hardcode_into_libs=yes 18517 ;; 18518 18519# No shared lib support for Linux oldld, aout, or coff. 18520linux*oldld* | linux*aout* | linux*coff*) 18521 dynamic_linker=no 18522 ;; 18523 18524# This must be Linux ELF. 18525linux* | k*bsd*-gnu) 18526 version_type=linux 18527 need_lib_prefix=no 18528 need_version=no 18529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18530 soname_spec='${libname}${release}${shared_ext}$major' 18531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18532 shlibpath_var=LD_LIBRARY_PATH 18533 shlibpath_overrides_runpath=no 18534 # This implies no fast_install, which is unacceptable. 18535 # Some rework will be needed to allow for fast_install 18536 # before this can be enabled. 18537 hardcode_into_libs=yes 18538 18539 # Append ld.so.conf contents to the search path 18540 if test -f /etc/ld.so.conf; then 18541 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' ' '` 18542 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18543 fi 18544 18545 # We used to test for /lib/ld.so.1 and disable shared libraries on 18546 # powerpc, because MkLinux only supported shared libraries with the 18547 # GNU dynamic linker. Since this was broken with cross compilers, 18548 # most powerpc-linux boxes support dynamic linking these days and 18549 # people can always --disable-shared, the test was removed, and we 18550 # assume the GNU/Linux dynamic linker is in use. 18551 dynamic_linker='GNU/Linux ld.so' 18552 ;; 18553 18554netbsdelf*-gnu) 18555 version_type=linux 18556 need_lib_prefix=no 18557 need_version=no 18558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18559 soname_spec='${libname}${release}${shared_ext}$major' 18560 shlibpath_var=LD_LIBRARY_PATH 18561 shlibpath_overrides_runpath=no 18562 hardcode_into_libs=yes 18563 dynamic_linker='NetBSD ld.elf_so' 18564 ;; 18565 18566netbsd*) 18567 version_type=sunos 18568 need_lib_prefix=no 18569 need_version=no 18570 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 18571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18573 dynamic_linker='NetBSD (a.out) ld.so' 18574 else 18575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18576 soname_spec='${libname}${release}${shared_ext}$major' 18577 dynamic_linker='NetBSD ld.elf_so' 18578 fi 18579 shlibpath_var=LD_LIBRARY_PATH 18580 shlibpath_overrides_runpath=yes 18581 hardcode_into_libs=yes 18582 ;; 18583 18584newsos6) 18585 version_type=linux 18586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18587 shlibpath_var=LD_LIBRARY_PATH 18588 shlibpath_overrides_runpath=yes 18589 ;; 18590 18591nto-qnx*) 18592 version_type=linux 18593 need_lib_prefix=no 18594 need_version=no 18595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18596 soname_spec='${libname}${release}${shared_ext}$major' 18597 shlibpath_var=LD_LIBRARY_PATH 18598 shlibpath_overrides_runpath=yes 18599 ;; 18600 18601openbsd*) 18602 version_type=sunos 18603 sys_lib_dlsearch_path_spec="/usr/lib" 18604 need_lib_prefix=no 18605 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 18606 case $host_os in 18607 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 18608 *) need_version=no ;; 18609 esac 18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18612 shlibpath_var=LD_LIBRARY_PATH 18613 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 18614 case $host_os in 18615 openbsd2.[89] | openbsd2.[89].*) 18616 shlibpath_overrides_runpath=no 18617 ;; 18618 *) 18619 shlibpath_overrides_runpath=yes 18620 ;; 18621 esac 18622 else 18623 shlibpath_overrides_runpath=yes 18624 fi 18625 ;; 18626 18627os2*) 18628 libname_spec='$name' 18629 shrext_cmds=".dll" 18630 need_lib_prefix=no 18631 library_names_spec='$libname${shared_ext} $libname.a' 18632 dynamic_linker='OS/2 ld.exe' 18633 shlibpath_var=LIBPATH 18634 ;; 18635 18636osf3* | osf4* | osf5*) 18637 version_type=osf 18638 need_lib_prefix=no 18639 need_version=no 18640 soname_spec='${libname}${release}${shared_ext}$major' 18641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18642 shlibpath_var=LD_LIBRARY_PATH 18643 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18644 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18645 ;; 18646 18647solaris*) 18648 version_type=linux 18649 need_lib_prefix=no 18650 need_version=no 18651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18652 soname_spec='${libname}${release}${shared_ext}$major' 18653 shlibpath_var=LD_LIBRARY_PATH 18654 shlibpath_overrides_runpath=yes 18655 hardcode_into_libs=yes 18656 # ldd complains unless libraries are executable 18657 postinstall_cmds='chmod +x $lib' 18658 ;; 18659 18660sunos4*) 18661 version_type=sunos 18662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18663 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18664 shlibpath_var=LD_LIBRARY_PATH 18665 shlibpath_overrides_runpath=yes 18666 if test "$with_gnu_ld" = yes; then 18667 need_lib_prefix=no 18668 fi 18669 need_version=yes 18670 ;; 18671 18672sysv4 | sysv4.3*) 18673 version_type=linux 18674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18675 soname_spec='${libname}${release}${shared_ext}$major' 18676 shlibpath_var=LD_LIBRARY_PATH 18677 case $host_vendor in 18678 sni) 18679 shlibpath_overrides_runpath=no 18680 need_lib_prefix=no 18681 export_dynamic_flag_spec='${wl}-Blargedynsym' 18682 runpath_var=LD_RUN_PATH 18683 ;; 18684 siemens) 18685 need_lib_prefix=no 18686 ;; 18687 motorola) 18688 need_lib_prefix=no 18689 need_version=no 18690 shlibpath_overrides_runpath=no 18691 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18692 ;; 18693 esac 18694 ;; 18695 18696sysv4*MP*) 18697 if test -d /usr/nec ;then 18698 version_type=linux 18699 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18700 soname_spec='$libname${shared_ext}.$major' 18701 shlibpath_var=LD_LIBRARY_PATH 18702 fi 18703 ;; 18704 18705sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18706 version_type=freebsd-elf 18707 need_lib_prefix=no 18708 need_version=no 18709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18710 soname_spec='${libname}${release}${shared_ext}$major' 18711 shlibpath_var=LD_LIBRARY_PATH 18712 hardcode_into_libs=yes 18713 if test "$with_gnu_ld" = yes; then 18714 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18715 shlibpath_overrides_runpath=no 18716 else 18717 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18718 shlibpath_overrides_runpath=yes 18719 case $host_os in 18720 sco3.2v5*) 18721 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18722 ;; 18723 esac 18724 fi 18725 sys_lib_dlsearch_path_spec='/usr/lib' 18726 ;; 18727 18728uts4*) 18729 version_type=linux 18730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18731 soname_spec='${libname}${release}${shared_ext}$major' 18732 shlibpath_var=LD_LIBRARY_PATH 18733 ;; 18734 18735*) 18736 dynamic_linker=no 18737 ;; 18738esac 18739{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18740echo "${ECHO_T}$dynamic_linker" >&6; } 18741test "$dynamic_linker" = no && can_build_shared=no 18742 18743variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18744if test "$GCC" = yes; then 18745 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18746fi 18747 18748{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18749echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } 18750hardcode_action_GCJ= 18751if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18752 test -n "$runpath_var_GCJ" || \ 18753 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18754 18755 # We can hardcode non-existant directories. 18756 if test "$hardcode_direct_GCJ" != no && 18757 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18758 # have to relink, otherwise we might link with an installed library 18759 # when we should be linking with a yet-to-be-installed one 18760 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18761 test "$hardcode_minus_L_GCJ" != no; then 18762 # Linking always hardcodes the temporary library directory. 18763 hardcode_action_GCJ=relink 18764 else 18765 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18766 hardcode_action_GCJ=immediate 18767 fi 18768else 18769 # We cannot hardcode anything, or else we can only hardcode existing 18770 # directories. 18771 hardcode_action_GCJ=unsupported 18772fi 18773{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18774echo "${ECHO_T}$hardcode_action_GCJ" >&6; } 18775 18776if test "$hardcode_action_GCJ" = relink; then 18777 # Fast installation is not supported 18778 enable_fast_install=no 18779elif test "$shlibpath_overrides_runpath" = yes || 18780 test "$enable_shared" = no; then 18781 # Fast installation is not necessary 18782 enable_fast_install=needless 18783fi 18784 18785 18786# The else clause should only fire when bootstrapping the 18787# libtool distribution, otherwise you forgot to ship ltmain.sh 18788# with your package, and you will get complaints that there are 18789# no rules to generate ltmain.sh. 18790if test -f "$ltmain"; then 18791 # See if we are running on zsh, and set the options which allow our commands through 18792 # without removal of \ escapes. 18793 if test -n "${ZSH_VERSION+set}" ; then 18794 setopt NO_GLOB_SUBST 18795 fi 18796 # Now quote all the things that may contain metacharacters while being 18797 # careful not to overquote the AC_SUBSTed values. We take copies of the 18798 # variables and quote the copies for generation of the libtool script. 18799 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 18800 SED SHELL STRIP \ 18801 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18802 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18803 deplibs_check_method reload_flag reload_cmds need_locks \ 18804 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18805 lt_cv_sys_global_symbol_to_c_name_address \ 18806 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18807 old_postinstall_cmds old_postuninstall_cmds \ 18808 compiler_GCJ \ 18809 CC_GCJ \ 18810 LD_GCJ \ 18811 lt_prog_compiler_wl_GCJ \ 18812 lt_prog_compiler_pic_GCJ \ 18813 lt_prog_compiler_static_GCJ \ 18814 lt_prog_compiler_no_builtin_flag_GCJ \ 18815 export_dynamic_flag_spec_GCJ \ 18816 thread_safe_flag_spec_GCJ \ 18817 whole_archive_flag_spec_GCJ \ 18818 enable_shared_with_static_runtimes_GCJ \ 18819 old_archive_cmds_GCJ \ 18820 old_archive_from_new_cmds_GCJ \ 18821 predep_objects_GCJ \ 18822 postdep_objects_GCJ \ 18823 predeps_GCJ \ 18824 postdeps_GCJ \ 18825 compiler_lib_search_path_GCJ \ 18826 archive_cmds_GCJ \ 18827 archive_expsym_cmds_GCJ \ 18828 postinstall_cmds_GCJ \ 18829 postuninstall_cmds_GCJ \ 18830 old_archive_from_expsyms_cmds_GCJ \ 18831 allow_undefined_flag_GCJ \ 18832 no_undefined_flag_GCJ \ 18833 export_symbols_cmds_GCJ \ 18834 hardcode_libdir_flag_spec_GCJ \ 18835 hardcode_libdir_flag_spec_ld_GCJ \ 18836 hardcode_libdir_separator_GCJ \ 18837 hardcode_automatic_GCJ \ 18838 module_cmds_GCJ \ 18839 module_expsym_cmds_GCJ \ 18840 lt_cv_prog_compiler_c_o_GCJ \ 18841 exclude_expsyms_GCJ \ 18842 include_expsyms_GCJ; do 18843 18844 case $var in 18845 old_archive_cmds_GCJ | \ 18846 old_archive_from_new_cmds_GCJ | \ 18847 archive_cmds_GCJ | \ 18848 archive_expsym_cmds_GCJ | \ 18849 module_cmds_GCJ | \ 18850 module_expsym_cmds_GCJ | \ 18851 old_archive_from_expsyms_cmds_GCJ | \ 18852 export_symbols_cmds_GCJ | \ 18853 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18854 postinstall_cmds | postuninstall_cmds | \ 18855 old_postinstall_cmds | old_postuninstall_cmds | \ 18856 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18857 # Double-quote double-evaled strings. 18858 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18859 ;; 18860 *) 18861 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18862 ;; 18863 esac 18864 done 18865 18866 case $lt_echo in 18867 *'\$0 --fallback-echo"') 18868 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18869 ;; 18870 esac 18871 18872cfgfile="$ofile" 18873 18874 cat <<__EOF__ >> "$cfgfile" 18875# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18876 18877# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18878 18879# Shell to use when invoking shell scripts. 18880SHELL=$lt_SHELL 18881 18882# Whether or not to build shared libraries. 18883build_libtool_libs=$enable_shared 18884 18885# Whether or not to build static libraries. 18886build_old_libs=$enable_static 18887 18888# Whether or not to add -lc for building shared libraries. 18889build_libtool_need_lc=$archive_cmds_need_lc_GCJ 18890 18891# Whether or not to disallow shared libs when runtime libs are static 18892allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 18893 18894# Whether or not to optimize for fast installation. 18895fast_install=$enable_fast_install 18896 18897# The host system. 18898host_alias=$host_alias 18899host=$host 18900host_os=$host_os 18901 18902# The build system. 18903build_alias=$build_alias 18904build=$build 18905build_os=$build_os 18906 18907# An echo program that does not interpret backslashes. 18908echo=$lt_echo 18909 18910# The archiver. 18911AR=$lt_AR 18912AR_FLAGS=$lt_AR_FLAGS 18913 18914# A C compiler. 18915LTCC=$lt_LTCC 18916 18917# LTCC compiler flags. 18918LTCFLAGS=$lt_LTCFLAGS 18919 18920# A language-specific compiler. 18921CC=$lt_compiler_GCJ 18922 18923# Is the compiler the GNU C compiler? 18924with_gcc=$GCC_GCJ 18925 18926# An ERE matcher. 18927EGREP=$lt_EGREP 18928 18929# The linker used to build libraries. 18930LD=$lt_LD_GCJ 18931 18932# Whether we need hard or soft links. 18933LN_S=$lt_LN_S 18934 18935# A BSD-compatible nm program. 18936NM=$lt_NM 18937 18938# A symbol stripping program 18939STRIP=$lt_STRIP 18940 18941# Used to examine libraries when file_magic_cmd begins "file" 18942MAGIC_CMD=$MAGIC_CMD 18943 18944# Used on cygwin: DLL creation program. 18945DLLTOOL="$DLLTOOL" 18946 18947# Used on cygwin: object dumper. 18948OBJDUMP="$OBJDUMP" 18949 18950# Used on cygwin: assembler. 18951AS="$AS" 18952 18953# The name of the directory that contains temporary libtool files. 18954objdir=$objdir 18955 18956# How to create reloadable object files. 18957reload_flag=$lt_reload_flag 18958reload_cmds=$lt_reload_cmds 18959 18960# How to pass a linker flag through the compiler. 18961wl=$lt_lt_prog_compiler_wl_GCJ 18962 18963# Object file suffix (normally "o"). 18964objext="$ac_objext" 18965 18966# Old archive suffix (normally "a"). 18967libext="$libext" 18968 18969# Shared library suffix (normally ".so"). 18970shrext_cmds='$shrext_cmds' 18971 18972# Executable file suffix (normally ""). 18973exeext="$exeext" 18974 18975# Additional compiler flags for building library objects. 18976pic_flag=$lt_lt_prog_compiler_pic_GCJ 18977pic_mode=$pic_mode 18978 18979# What is the maximum length of a command? 18980max_cmd_len=$lt_cv_sys_max_cmd_len 18981 18982# Does compiler simultaneously support -c and -o options? 18983compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 18984 18985# Must we lock files when doing compilation? 18986need_locks=$lt_need_locks 18987 18988# Do we need the lib prefix for modules? 18989need_lib_prefix=$need_lib_prefix 18990 18991# Do we need a version for libraries? 18992need_version=$need_version 18993 18994# Whether dlopen is supported. 18995dlopen_support=$enable_dlopen 18996 18997# Whether dlopen of programs is supported. 18998dlopen_self=$enable_dlopen_self 18999 19000# Whether dlopen of statically linked programs is supported. 19001dlopen_self_static=$enable_dlopen_self_static 19002 19003# Compiler flag to prevent dynamic linking. 19004link_static_flag=$lt_lt_prog_compiler_static_GCJ 19005 19006# Compiler flag to turn off builtin functions. 19007no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19008 19009# Compiler flag to allow reflexive dlopens. 19010export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19011 19012# Compiler flag to generate shared objects directly from archives. 19013whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19014 19015# Compiler flag to generate thread-safe objects. 19016thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19017 19018# Library versioning type. 19019version_type=$version_type 19020 19021# Format of library name prefix. 19022libname_spec=$lt_libname_spec 19023 19024# List of archive names. First name is the real one, the rest are links. 19025# The last name is the one that the linker finds with -lNAME. 19026library_names_spec=$lt_library_names_spec 19027 19028# The coded name of the library, if different from the real name. 19029soname_spec=$lt_soname_spec 19030 19031# Commands used to build and install an old-style archive. 19032RANLIB=$lt_RANLIB 19033old_archive_cmds=$lt_old_archive_cmds_GCJ 19034old_postinstall_cmds=$lt_old_postinstall_cmds 19035old_postuninstall_cmds=$lt_old_postuninstall_cmds 19036 19037# Create an old-style archive from a shared archive. 19038old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19039 19040# Create a temporary old-style archive to link instead of a shared archive. 19041old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19042 19043# Commands used to build and install a shared archive. 19044archive_cmds=$lt_archive_cmds_GCJ 19045archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19046postinstall_cmds=$lt_postinstall_cmds 19047postuninstall_cmds=$lt_postuninstall_cmds 19048 19049# Commands used to build a loadable module (assumed same as above if empty) 19050module_cmds=$lt_module_cmds_GCJ 19051module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19052 19053# Commands to strip libraries. 19054old_striplib=$lt_old_striplib 19055striplib=$lt_striplib 19056 19057# Dependencies to place before the objects being linked to create a 19058# shared library. 19059predep_objects=$lt_predep_objects_GCJ 19060 19061# Dependencies to place after the objects being linked to create a 19062# shared library. 19063postdep_objects=$lt_postdep_objects_GCJ 19064 19065# Dependencies to place before the objects being linked to create a 19066# shared library. 19067predeps=$lt_predeps_GCJ 19068 19069# Dependencies to place after the objects being linked to create a 19070# shared library. 19071postdeps=$lt_postdeps_GCJ 19072 19073# The library search path used internally by the compiler when linking 19074# a shared library. 19075compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19076 19077# Method to check whether dependent libraries are shared objects. 19078deplibs_check_method=$lt_deplibs_check_method 19079 19080# Command to use when deplibs_check_method == file_magic. 19081file_magic_cmd=$lt_file_magic_cmd 19082 19083# Flag that allows shared libraries with undefined symbols to be built. 19084allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19085 19086# Flag that forces no undefined symbols. 19087no_undefined_flag=$lt_no_undefined_flag_GCJ 19088 19089# Commands used to finish a libtool library installation in a directory. 19090finish_cmds=$lt_finish_cmds 19091 19092# Same as above, but a single script fragment to be evaled but not shown. 19093finish_eval=$lt_finish_eval 19094 19095# Take the output of nm and produce a listing of raw symbols and C names. 19096global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19097 19098# Transform the output of nm in a proper C declaration 19099global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19100 19101# Transform the output of nm in a C name address pair 19102global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19103 19104# This is the shared library runtime path variable. 19105runpath_var=$runpath_var 19106 19107# This is the shared library path variable. 19108shlibpath_var=$shlibpath_var 19109 19110# Is shlibpath searched before the hard-coded library search path? 19111shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19112 19113# How to hardcode a shared library path into an executable. 19114hardcode_action=$hardcode_action_GCJ 19115 19116# Whether we should hardcode library paths into libraries. 19117hardcode_into_libs=$hardcode_into_libs 19118 19119# Flag to hardcode \$libdir into a binary during linking. 19120# This must work even if \$libdir does not exist. 19121hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19122 19123# If ld is used when linking, flag to hardcode \$libdir into 19124# a binary during linking. This must work even if \$libdir does 19125# not exist. 19126hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19127 19128# Whether we need a single -rpath flag with a separated argument. 19129hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19130 19131# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19132# resulting binary. 19133hardcode_direct=$hardcode_direct_GCJ 19134 19135# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19136# resulting binary. 19137hardcode_minus_L=$hardcode_minus_L_GCJ 19138 19139# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19140# the resulting binary. 19141hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19142 19143# Set to yes if building a shared library automatically hardcodes DIR into the library 19144# and all subsequent libraries and executables linked against it. 19145hardcode_automatic=$hardcode_automatic_GCJ 19146 19147# Variables whose values should be saved in libtool wrapper scripts and 19148# restored at relink time. 19149variables_saved_for_relink="$variables_saved_for_relink" 19150 19151# Whether libtool must link a program against all its dependency libraries. 19152link_all_deplibs=$link_all_deplibs_GCJ 19153 19154# Compile-time system search path for libraries 19155sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19156 19157# Run-time system search path for libraries 19158sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19159 19160# Fix the shell variable \$srcfile for the compiler. 19161fix_srcfile_path="$fix_srcfile_path_GCJ" 19162 19163# Set to yes if exported symbols are required. 19164always_export_symbols=$always_export_symbols_GCJ 19165 19166# The commands to list exported symbols. 19167export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19168 19169# The commands to extract the exported symbol list from a shared archive. 19170extract_expsyms_cmds=$lt_extract_expsyms_cmds 19171 19172# Symbols that should not be listed in the preloaded symbols. 19173exclude_expsyms=$lt_exclude_expsyms_GCJ 19174 19175# Symbols that must always be exported. 19176include_expsyms=$lt_include_expsyms_GCJ 19177 19178# ### END LIBTOOL TAG CONFIG: $tagname 19179 19180__EOF__ 19181 19182 19183else 19184 # If there is no Makefile yet, we rely on a make rule to execute 19185 # `config.status --recheck' to rerun these tests and create the 19186 # libtool script then. 19187 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19188 if test -f "$ltmain_in"; then 19189 test -f Makefile && make "$ltmain" 19190 fi 19191fi 19192 19193 19194ac_ext=c 19195ac_cpp='$CPP $CPPFLAGS' 19196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19198ac_compiler_gnu=$ac_cv_c_compiler_gnu 19199 19200CC="$lt_save_CC" 19201 19202 else 19203 tagname="" 19204 fi 19205 ;; 19206 19207 RC) 19208 19209 19210# Source file extension for RC test sources. 19211ac_ext=rc 19212 19213# Object file extension for compiled RC test sources. 19214objext=o 19215objext_RC=$objext 19216 19217# Code to be used in simple compile tests 19218lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19219 19220# Code to be used in simple link tests 19221lt_simple_link_test_code="$lt_simple_compile_test_code" 19222 19223# ltmain only uses $CC for tagged configurations so make sure $CC is set. 19224 19225# If no C compiler was specified, use CC. 19226LTCC=${LTCC-"$CC"} 19227 19228# If no C compiler flags were specified, use CFLAGS. 19229LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 19230 19231# Allow CC to be a program name with arguments. 19232compiler=$CC 19233 19234 19235# save warnings/boilerplate of simple test code 19236ac_outfile=conftest.$ac_objext 19237printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19238eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19239_lt_compiler_boilerplate=`cat conftest.err` 19240$rm conftest* 19241 19242ac_outfile=conftest.$ac_objext 19243printf "$lt_simple_link_test_code" >conftest.$ac_ext 19244eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 19245_lt_linker_boilerplate=`cat conftest.err` 19246$rm conftest* 19247 19248 19249# Allow CC to be a program name with arguments. 19250lt_save_CC="$CC" 19251CC=${RC-"windres"} 19252compiler=$CC 19253compiler_RC=$CC 19254for cc_temp in $compiler""; do 19255 case $cc_temp in 19256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19258 \-*) ;; 19259 *) break;; 19260 esac 19261done 19262cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19263 19264lt_cv_prog_compiler_c_o_RC=yes 19265 19266# The else clause should only fire when bootstrapping the 19267# libtool distribution, otherwise you forgot to ship ltmain.sh 19268# with your package, and you will get complaints that there are 19269# no rules to generate ltmain.sh. 19270if test -f "$ltmain"; then 19271 # See if we are running on zsh, and set the options which allow our commands through 19272 # without removal of \ escapes. 19273 if test -n "${ZSH_VERSION+set}" ; then 19274 setopt NO_GLOB_SUBST 19275 fi 19276 # Now quote all the things that may contain metacharacters while being 19277 # careful not to overquote the AC_SUBSTed values. We take copies of the 19278 # variables and quote the copies for generation of the libtool script. 19279 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 19280 SED SHELL STRIP \ 19281 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19282 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19283 deplibs_check_method reload_flag reload_cmds need_locks \ 19284 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19285 lt_cv_sys_global_symbol_to_c_name_address \ 19286 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19287 old_postinstall_cmds old_postuninstall_cmds \ 19288 compiler_RC \ 19289 CC_RC \ 19290 LD_RC \ 19291 lt_prog_compiler_wl_RC \ 19292 lt_prog_compiler_pic_RC \ 19293 lt_prog_compiler_static_RC \ 19294 lt_prog_compiler_no_builtin_flag_RC \ 19295 export_dynamic_flag_spec_RC \ 19296 thread_safe_flag_spec_RC \ 19297 whole_archive_flag_spec_RC \ 19298 enable_shared_with_static_runtimes_RC \ 19299 old_archive_cmds_RC \ 19300 old_archive_from_new_cmds_RC \ 19301 predep_objects_RC \ 19302 postdep_objects_RC \ 19303 predeps_RC \ 19304 postdeps_RC \ 19305 compiler_lib_search_path_RC \ 19306 archive_cmds_RC \ 19307 archive_expsym_cmds_RC \ 19308 postinstall_cmds_RC \ 19309 postuninstall_cmds_RC \ 19310 old_archive_from_expsyms_cmds_RC \ 19311 allow_undefined_flag_RC \ 19312 no_undefined_flag_RC \ 19313 export_symbols_cmds_RC \ 19314 hardcode_libdir_flag_spec_RC \ 19315 hardcode_libdir_flag_spec_ld_RC \ 19316 hardcode_libdir_separator_RC \ 19317 hardcode_automatic_RC \ 19318 module_cmds_RC \ 19319 module_expsym_cmds_RC \ 19320 lt_cv_prog_compiler_c_o_RC \ 19321 exclude_expsyms_RC \ 19322 include_expsyms_RC; do 19323 19324 case $var in 19325 old_archive_cmds_RC | \ 19326 old_archive_from_new_cmds_RC | \ 19327 archive_cmds_RC | \ 19328 archive_expsym_cmds_RC | \ 19329 module_cmds_RC | \ 19330 module_expsym_cmds_RC | \ 19331 old_archive_from_expsyms_cmds_RC | \ 19332 export_symbols_cmds_RC | \ 19333 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19334 postinstall_cmds | postuninstall_cmds | \ 19335 old_postinstall_cmds | old_postuninstall_cmds | \ 19336 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19337 # Double-quote double-evaled strings. 19338 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19339 ;; 19340 *) 19341 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19342 ;; 19343 esac 19344 done 19345 19346 case $lt_echo in 19347 *'\$0 --fallback-echo"') 19348 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19349 ;; 19350 esac 19351 19352cfgfile="$ofile" 19353 19354 cat <<__EOF__ >> "$cfgfile" 19355# ### BEGIN LIBTOOL TAG CONFIG: $tagname 19356 19357# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19358 19359# Shell to use when invoking shell scripts. 19360SHELL=$lt_SHELL 19361 19362# Whether or not to build shared libraries. 19363build_libtool_libs=$enable_shared 19364 19365# Whether or not to build static libraries. 19366build_old_libs=$enable_static 19367 19368# Whether or not to add -lc for building shared libraries. 19369build_libtool_need_lc=$archive_cmds_need_lc_RC 19370 19371# Whether or not to disallow shared libs when runtime libs are static 19372allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19373 19374# Whether or not to optimize for fast installation. 19375fast_install=$enable_fast_install 19376 19377# The host system. 19378host_alias=$host_alias 19379host=$host 19380host_os=$host_os 19381 19382# The build system. 19383build_alias=$build_alias 19384build=$build 19385build_os=$build_os 19386 19387# An echo program that does not interpret backslashes. 19388echo=$lt_echo 19389 19390# The archiver. 19391AR=$lt_AR 19392AR_FLAGS=$lt_AR_FLAGS 19393 19394# A C compiler. 19395LTCC=$lt_LTCC 19396 19397# LTCC compiler flags. 19398LTCFLAGS=$lt_LTCFLAGS 19399 19400# A language-specific compiler. 19401CC=$lt_compiler_RC 19402 19403# Is the compiler the GNU C compiler? 19404with_gcc=$GCC_RC 19405 19406# An ERE matcher. 19407EGREP=$lt_EGREP 19408 19409# The linker used to build libraries. 19410LD=$lt_LD_RC 19411 19412# Whether we need hard or soft links. 19413LN_S=$lt_LN_S 19414 19415# A BSD-compatible nm program. 19416NM=$lt_NM 19417 19418# A symbol stripping program 19419STRIP=$lt_STRIP 19420 19421# Used to examine libraries when file_magic_cmd begins "file" 19422MAGIC_CMD=$MAGIC_CMD 19423 19424# Used on cygwin: DLL creation program. 19425DLLTOOL="$DLLTOOL" 19426 19427# Used on cygwin: object dumper. 19428OBJDUMP="$OBJDUMP" 19429 19430# Used on cygwin: assembler. 19431AS="$AS" 19432 19433# The name of the directory that contains temporary libtool files. 19434objdir=$objdir 19435 19436# How to create reloadable object files. 19437reload_flag=$lt_reload_flag 19438reload_cmds=$lt_reload_cmds 19439 19440# How to pass a linker flag through the compiler. 19441wl=$lt_lt_prog_compiler_wl_RC 19442 19443# Object file suffix (normally "o"). 19444objext="$ac_objext" 19445 19446# Old archive suffix (normally "a"). 19447libext="$libext" 19448 19449# Shared library suffix (normally ".so"). 19450shrext_cmds='$shrext_cmds' 19451 19452# Executable file suffix (normally ""). 19453exeext="$exeext" 19454 19455# Additional compiler flags for building library objects. 19456pic_flag=$lt_lt_prog_compiler_pic_RC 19457pic_mode=$pic_mode 19458 19459# What is the maximum length of a command? 19460max_cmd_len=$lt_cv_sys_max_cmd_len 19461 19462# Does compiler simultaneously support -c and -o options? 19463compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19464 19465# Must we lock files when doing compilation? 19466need_locks=$lt_need_locks 19467 19468# Do we need the lib prefix for modules? 19469need_lib_prefix=$need_lib_prefix 19470 19471# Do we need a version for libraries? 19472need_version=$need_version 19473 19474# Whether dlopen is supported. 19475dlopen_support=$enable_dlopen 19476 19477# Whether dlopen of programs is supported. 19478dlopen_self=$enable_dlopen_self 19479 19480# Whether dlopen of statically linked programs is supported. 19481dlopen_self_static=$enable_dlopen_self_static 19482 19483# Compiler flag to prevent dynamic linking. 19484link_static_flag=$lt_lt_prog_compiler_static_RC 19485 19486# Compiler flag to turn off builtin functions. 19487no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19488 19489# Compiler flag to allow reflexive dlopens. 19490export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19491 19492# Compiler flag to generate shared objects directly from archives. 19493whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19494 19495# Compiler flag to generate thread-safe objects. 19496thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19497 19498# Library versioning type. 19499version_type=$version_type 19500 19501# Format of library name prefix. 19502libname_spec=$lt_libname_spec 19503 19504# List of archive names. First name is the real one, the rest are links. 19505# The last name is the one that the linker finds with -lNAME. 19506library_names_spec=$lt_library_names_spec 19507 19508# The coded name of the library, if different from the real name. 19509soname_spec=$lt_soname_spec 19510 19511# Commands used to build and install an old-style archive. 19512RANLIB=$lt_RANLIB 19513old_archive_cmds=$lt_old_archive_cmds_RC 19514old_postinstall_cmds=$lt_old_postinstall_cmds 19515old_postuninstall_cmds=$lt_old_postuninstall_cmds 19516 19517# Create an old-style archive from a shared archive. 19518old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19519 19520# Create a temporary old-style archive to link instead of a shared archive. 19521old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19522 19523# Commands used to build and install a shared archive. 19524archive_cmds=$lt_archive_cmds_RC 19525archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19526postinstall_cmds=$lt_postinstall_cmds 19527postuninstall_cmds=$lt_postuninstall_cmds 19528 19529# Commands used to build a loadable module (assumed same as above if empty) 19530module_cmds=$lt_module_cmds_RC 19531module_expsym_cmds=$lt_module_expsym_cmds_RC 19532 19533# Commands to strip libraries. 19534old_striplib=$lt_old_striplib 19535striplib=$lt_striplib 19536 19537# Dependencies to place before the objects being linked to create a 19538# shared library. 19539predep_objects=$lt_predep_objects_RC 19540 19541# Dependencies to place after the objects being linked to create a 19542# shared library. 19543postdep_objects=$lt_postdep_objects_RC 19544 19545# Dependencies to place before the objects being linked to create a 19546# shared library. 19547predeps=$lt_predeps_RC 19548 19549# Dependencies to place after the objects being linked to create a 19550# shared library. 19551postdeps=$lt_postdeps_RC 19552 19553# The library search path used internally by the compiler when linking 19554# a shared library. 19555compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19556 19557# Method to check whether dependent libraries are shared objects. 19558deplibs_check_method=$lt_deplibs_check_method 19559 19560# Command to use when deplibs_check_method == file_magic. 19561file_magic_cmd=$lt_file_magic_cmd 19562 19563# Flag that allows shared libraries with undefined symbols to be built. 19564allow_undefined_flag=$lt_allow_undefined_flag_RC 19565 19566# Flag that forces no undefined symbols. 19567no_undefined_flag=$lt_no_undefined_flag_RC 19568 19569# Commands used to finish a libtool library installation in a directory. 19570finish_cmds=$lt_finish_cmds 19571 19572# Same as above, but a single script fragment to be evaled but not shown. 19573finish_eval=$lt_finish_eval 19574 19575# Take the output of nm and produce a listing of raw symbols and C names. 19576global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19577 19578# Transform the output of nm in a proper C declaration 19579global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19580 19581# Transform the output of nm in a C name address pair 19582global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19583 19584# This is the shared library runtime path variable. 19585runpath_var=$runpath_var 19586 19587# This is the shared library path variable. 19588shlibpath_var=$shlibpath_var 19589 19590# Is shlibpath searched before the hard-coded library search path? 19591shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19592 19593# How to hardcode a shared library path into an executable. 19594hardcode_action=$hardcode_action_RC 19595 19596# Whether we should hardcode library paths into libraries. 19597hardcode_into_libs=$hardcode_into_libs 19598 19599# Flag to hardcode \$libdir into a binary during linking. 19600# This must work even if \$libdir does not exist. 19601hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19602 19603# If ld is used when linking, flag to hardcode \$libdir into 19604# a binary during linking. This must work even if \$libdir does 19605# not exist. 19606hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19607 19608# Whether we need a single -rpath flag with a separated argument. 19609hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19610 19611# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19612# resulting binary. 19613hardcode_direct=$hardcode_direct_RC 19614 19615# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19616# resulting binary. 19617hardcode_minus_L=$hardcode_minus_L_RC 19618 19619# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19620# the resulting binary. 19621hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19622 19623# Set to yes if building a shared library automatically hardcodes DIR into the library 19624# and all subsequent libraries and executables linked against it. 19625hardcode_automatic=$hardcode_automatic_RC 19626 19627# Variables whose values should be saved in libtool wrapper scripts and 19628# restored at relink time. 19629variables_saved_for_relink="$variables_saved_for_relink" 19630 19631# Whether libtool must link a program against all its dependency libraries. 19632link_all_deplibs=$link_all_deplibs_RC 19633 19634# Compile-time system search path for libraries 19635sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19636 19637# Run-time system search path for libraries 19638sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19639 19640# Fix the shell variable \$srcfile for the compiler. 19641fix_srcfile_path="$fix_srcfile_path_RC" 19642 19643# Set to yes if exported symbols are required. 19644always_export_symbols=$always_export_symbols_RC 19645 19646# The commands to list exported symbols. 19647export_symbols_cmds=$lt_export_symbols_cmds_RC 19648 19649# The commands to extract the exported symbol list from a shared archive. 19650extract_expsyms_cmds=$lt_extract_expsyms_cmds 19651 19652# Symbols that should not be listed in the preloaded symbols. 19653exclude_expsyms=$lt_exclude_expsyms_RC 19654 19655# Symbols that must always be exported. 19656include_expsyms=$lt_include_expsyms_RC 19657 19658# ### END LIBTOOL TAG CONFIG: $tagname 19659 19660__EOF__ 19661 19662 19663else 19664 # If there is no Makefile yet, we rely on a make rule to execute 19665 # `config.status --recheck' to rerun these tests and create the 19666 # libtool script then. 19667 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19668 if test -f "$ltmain_in"; then 19669 test -f Makefile && make "$ltmain" 19670 fi 19671fi 19672 19673 19674ac_ext=c 19675ac_cpp='$CPP $CPPFLAGS' 19676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19678ac_compiler_gnu=$ac_cv_c_compiler_gnu 19679 19680CC="$lt_save_CC" 19681 19682 ;; 19683 19684 *) 19685 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19686echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19687 { (exit 1); exit 1; }; } 19688 ;; 19689 esac 19690 19691 # Append the new tag name to the list of available tags. 19692 if test -n "$tagname" ; then 19693 available_tags="$available_tags $tagname" 19694 fi 19695 fi 19696 done 19697 IFS="$lt_save_ifs" 19698 19699 # Now substitute the updated list of available tags. 19700 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19701 mv "${ofile}T" "$ofile" 19702 chmod +x "$ofile" 19703 else 19704 rm -f "${ofile}T" 19705 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19706echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19707 { (exit 1); exit 1; }; } 19708 fi 19709fi 19710 19711 19712 19713# This can be used to rebuild libtool when needed 19714LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19715 19716# Always use our own libtool. 19717LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19718 19719# Prevent multiple expansion 19720 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741# 19742# Check for Xrender 19743# 19744 19745 19746if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19747 if test -n "$ac_tool_prefix"; then 19748 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19749set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19750{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19752if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 19753 echo $ECHO_N "(cached) $ECHO_C" >&6 19754else 19755 case $PKG_CONFIG in 19756 [\\/]* | ?:[\\/]*) 19757 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19758 ;; 19759 *) 19760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19761for as_dir in $PATH 19762do 19763 IFS=$as_save_IFS 19764 test -z "$as_dir" && as_dir=. 19765 for ac_exec_ext in '' $ac_executable_extensions; do 19766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19767 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19769 break 2 19770 fi 19771done 19772done 19773IFS=$as_save_IFS 19774 19775 ;; 19776esac 19777fi 19778PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19779if test -n "$PKG_CONFIG"; then 19780 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 19781echo "${ECHO_T}$PKG_CONFIG" >&6; } 19782else 19783 { echo "$as_me:$LINENO: result: no" >&5 19784echo "${ECHO_T}no" >&6; } 19785fi 19786 19787 19788fi 19789if test -z "$ac_cv_path_PKG_CONFIG"; then 19790 ac_pt_PKG_CONFIG=$PKG_CONFIG 19791 # Extract the first word of "pkg-config", so it can be a program name with args. 19792set dummy pkg-config; ac_word=$2 19793{ echo "$as_me:$LINENO: checking for $ac_word" >&5 19794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 19795if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 19796 echo $ECHO_N "(cached) $ECHO_C" >&6 19797else 19798 case $ac_pt_PKG_CONFIG in 19799 [\\/]* | ?:[\\/]*) 19800 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19801 ;; 19802 *) 19803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19804for as_dir in $PATH 19805do 19806 IFS=$as_save_IFS 19807 test -z "$as_dir" && as_dir=. 19808 for ac_exec_ext in '' $ac_executable_extensions; do 19809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 19810 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19812 break 2 19813 fi 19814done 19815done 19816IFS=$as_save_IFS 19817 19818 ;; 19819esac 19820fi 19821ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19822if test -n "$ac_pt_PKG_CONFIG"; then 19823 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 19824echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } 19825else 19826 { echo "$as_me:$LINENO: result: no" >&5 19827echo "${ECHO_T}no" >&6; } 19828fi 19829 19830 if test "x$ac_pt_PKG_CONFIG" = x; then 19831 PKG_CONFIG="" 19832 else 19833 case $cross_compiling:$ac_tool_warned in 19834yes:) 19835{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 19836whose name does not start with the host triplet. If you think this 19837configuration is useful to you, please write to autoconf@gnu.org." >&5 19838echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 19839whose name does not start with the host triplet. If you think this 19840configuration is useful to you, please write to autoconf@gnu.org." >&2;} 19841ac_tool_warned=yes ;; 19842esac 19843 PKG_CONFIG=$ac_pt_PKG_CONFIG 19844 fi 19845else 19846 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19847fi 19848 19849fi 19850if test -n "$PKG_CONFIG"; then 19851 _pkg_min_version=0.9.0 19852 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 19853echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } 19854 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19855 { echo "$as_me:$LINENO: result: yes" >&5 19856echo "${ECHO_T}yes" >&6; } 19857 else 19858 { echo "$as_me:$LINENO: result: no" >&5 19859echo "${ECHO_T}no" >&6; } 19860 PKG_CONFIG="" 19861 fi 19862 19863fi 19864 19865pkg_failed=no 19866{ echo "$as_me:$LINENO: checking for XRENDER" >&5 19867echo $ECHO_N "checking for XRENDER... $ECHO_C" >&6; } 19868 19869if test -n "$PKG_CONFIG"; then 19870 if test -n "$XRENDER_CFLAGS"; then 19871 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS" 19872 else 19873 if test -n "$PKG_CONFIG" && \ 19874 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2\"") >&5 19875 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2") 2>&5 19876 ac_status=$? 19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19878 (exit $ac_status); }; then 19879 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2" 2>/dev/null` 19880else 19881 pkg_failed=yes 19882fi 19883 fi 19884else 19885 pkg_failed=untried 19886fi 19887if test -n "$PKG_CONFIG"; then 19888 if test -n "$XRENDER_LIBS"; then 19889 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS" 19890 else 19891 if test -n "$PKG_CONFIG" && \ 19892 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2\"") >&5 19893 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2") 2>&5 19894 ac_status=$? 19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19896 (exit $ac_status); }; then 19897 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2" 2>/dev/null` 19898else 19899 pkg_failed=yes 19900fi 19901 fi 19902else 19903 pkg_failed=untried 19904fi 19905 19906 19907 19908if test $pkg_failed = yes; then 19909 19910if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19911 _pkg_short_errors_supported=yes 19912else 19913 _pkg_short_errors_supported=no 19914fi 19915 if test $_pkg_short_errors_supported = yes; then 19916 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xrender >= 0.8.2"` 19917 else 19918 XRENDER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xrender >= 0.8.2"` 19919 fi 19920 # Put the nasty error message in config.log where it belongs 19921 echo "$XRENDER_PKG_ERRORS" >&5 19922 19923 xrender_found_with_pkgconfig=no 19924elif test $pkg_failed = untried; then 19925 xrender_found_with_pkgconfig=no 19926else 19927 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS 19928 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS 19929 { echo "$as_me:$LINENO: result: yes" >&5 19930echo "${ECHO_T}yes" >&6; } 19931 xrender_found_with_pkgconfig=yes 19932fi 19933case "$xrender_found_with_pkgconfig" in 19934no) 19935 19936pkg_failed=no 19937{ echo "$as_me:$LINENO: checking for XRENDER" >&5 19938echo $ECHO_N "checking for XRENDER... $ECHO_C" >&6; } 19939 19940if test -n "$PKG_CONFIG"; then 19941 if test -n "$XRENDER_CFLAGS"; then 19942 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS" 19943 else 19944 if test -n "$PKG_CONFIG" && \ 19945 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender >= 0\"") >&5 19946 ($PKG_CONFIG --exists --print-errors "xrender >= 0") 2>&5 19947 ac_status=$? 19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19949 (exit $ac_status); }; then 19950 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0" 2>/dev/null` 19951else 19952 pkg_failed=yes 19953fi 19954 fi 19955else 19956 pkg_failed=untried 19957fi 19958if test -n "$PKG_CONFIG"; then 19959 if test -n "$XRENDER_LIBS"; then 19960 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS" 19961 else 19962 if test -n "$PKG_CONFIG" && \ 19963 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xrender >= 0\"") >&5 19964 ($PKG_CONFIG --exists --print-errors "xrender >= 0") 2>&5 19965 ac_status=$? 19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19967 (exit $ac_status); }; then 19968 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0" 2>/dev/null` 19969else 19970 pkg_failed=yes 19971fi 19972 fi 19973else 19974 pkg_failed=untried 19975fi 19976 19977 19978 19979if test $pkg_failed = yes; then 19980 19981if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19982 _pkg_short_errors_supported=yes 19983else 19984 _pkg_short_errors_supported=no 19985fi 19986 if test $_pkg_short_errors_supported = yes; then 19987 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xrender >= 0"` 19988 else 19989 XRENDER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xrender >= 0"` 19990 fi 19991 # Put the nasty error message in config.log where it belongs 19992 echo "$XRENDER_PKG_ERRORS" >&5 19993 19994 old_xrender_found_with_pkgconfig=no 19995elif test $pkg_failed = untried; then 19996 old_xrender_found_with_pkgconfig=no 19997else 19998 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS 19999 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS 20000 { echo "$as_me:$LINENO: result: yes" >&5 20001echo "${ECHO_T}yes" >&6; } 20002 old_xrender_found_with_pkgconfig=yes 20003fi 20004 case "$old_xrender_found_with_pkgconfig" in 20005 yes) 20006 XRENDER_LIBS="$XRENDER_LIBS -lXext -lX11" 20007 ;; 20008 *) 20009 # checks for X 20010 { echo "$as_me:$LINENO: checking for X" >&5 20011echo $ECHO_N "checking for X... $ECHO_C" >&6; } 20012 20013 20014# Check whether --with-x was given. 20015if test "${with_x+set}" = set; then 20016 withval=$with_x; 20017fi 20018 20019# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 20020if test "x$with_x" = xno; then 20021 # The user explicitly disabled X. 20022 have_x=disabled 20023else 20024 case $x_includes,$x_libraries in #( 20025 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 20026echo "$as_me: error: Cannot use X directory names containing '" >&2;} 20027 { (exit 1); exit 1; }; };; #( 20028 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 20029 echo $ECHO_N "(cached) $ECHO_C" >&6 20030else 20031 # One or both of the vars are not set, and there is no cached value. 20032ac_x_includes=no ac_x_libraries=no 20033rm -f -r conftest.dir 20034if mkdir conftest.dir; then 20035 cd conftest.dir 20036 cat >Imakefile <<'_ACEOF' 20037incroot: 20038 @echo incroot='${INCROOT}' 20039usrlibdir: 20040 @echo usrlibdir='${USRLIBDIR}' 20041libdir: 20042 @echo libdir='${LIBDIR}' 20043_ACEOF 20044 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 20045 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 20046 for ac_var in incroot usrlibdir libdir; do 20047 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 20048 done 20049 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 20050 for ac_extension in a so sl; do 20051 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 20052 test -f "$ac_im_libdir/libX11.$ac_extension"; then 20053 ac_im_usrlibdir=$ac_im_libdir; break 20054 fi 20055 done 20056 # Screen out bogus values from the imake configuration. They are 20057 # bogus both because they are the default anyway, and because 20058 # using them would break gcc on systems where it needs fixed includes. 20059 case $ac_im_incroot in 20060 /usr/include) ac_x_includes= ;; 20061 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 20062 esac 20063 case $ac_im_usrlibdir in 20064 /usr/lib | /lib) ;; 20065 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 20066 esac 20067 fi 20068 cd .. 20069 rm -f -r conftest.dir 20070fi 20071 20072# Standard set of common directories for X headers. 20073# Check X11 before X11Rn because it is often a symlink to the current release. 20074ac_x_header_dirs=' 20075/usr/X11/include 20076/usr/X11R6/include 20077/usr/X11R5/include 20078/usr/X11R4/include 20079 20080/usr/include/X11 20081/usr/include/X11R6 20082/usr/include/X11R5 20083/usr/include/X11R4 20084 20085/usr/local/X11/include 20086/usr/local/X11R6/include 20087/usr/local/X11R5/include 20088/usr/local/X11R4/include 20089 20090/usr/local/include/X11 20091/usr/local/include/X11R6 20092/usr/local/include/X11R5 20093/usr/local/include/X11R4 20094 20095/usr/X386/include 20096/usr/x386/include 20097/usr/XFree86/include/X11 20098 20099/usr/include 20100/usr/local/include 20101/usr/unsupported/include 20102/usr/athena/include 20103/usr/local/x11r5/include 20104/usr/lpp/Xamples/include 20105 20106/usr/openwin/include 20107/usr/openwin/share/include' 20108 20109if test "$ac_x_includes" = no; then 20110 # Guess where to find include files, by looking for Xlib.h. 20111 # First, try using that file with no special directory specified. 20112 cat >conftest.$ac_ext <<_ACEOF 20113/* confdefs.h. */ 20114_ACEOF 20115cat confdefs.h >>conftest.$ac_ext 20116cat >>conftest.$ac_ext <<_ACEOF 20117/* end confdefs.h. */ 20118#include <X11/Xlib.h> 20119_ACEOF 20120if { (ac_try="$ac_cpp conftest.$ac_ext" 20121case "(($ac_try" in 20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20123 *) ac_try_echo=$ac_try;; 20124esac 20125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20127 ac_status=$? 20128 grep -v '^ *+' conftest.er1 >conftest.err 20129 rm -f conftest.er1 20130 cat conftest.err >&5 20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20132 (exit $ac_status); } >/dev/null; then 20133 if test -s conftest.err; then 20134 ac_cpp_err=$ac_c_preproc_warn_flag 20135 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20136 else 20137 ac_cpp_err= 20138 fi 20139else 20140 ac_cpp_err=yes 20141fi 20142if test -z "$ac_cpp_err"; then 20143 # We can compile using X headers with no special include directory. 20144ac_x_includes= 20145else 20146 echo "$as_me: failed program was:" >&5 20147sed 's/^/| /' conftest.$ac_ext >&5 20148 20149 for ac_dir in $ac_x_header_dirs; do 20150 if test -r "$ac_dir/X11/Xlib.h"; then 20151 ac_x_includes=$ac_dir 20152 break 20153 fi 20154done 20155fi 20156 20157rm -f conftest.err conftest.$ac_ext 20158fi # $ac_x_includes = no 20159 20160if test "$ac_x_libraries" = no; then 20161 # Check for the libraries. 20162 # See if we find them without any special options. 20163 # Don't add to $LIBS permanently. 20164 ac_save_LIBS=$LIBS 20165 LIBS="-lXt $LIBS" 20166 cat >conftest.$ac_ext <<_ACEOF 20167/* confdefs.h. */ 20168_ACEOF 20169cat confdefs.h >>conftest.$ac_ext 20170cat >>conftest.$ac_ext <<_ACEOF 20171/* end confdefs.h. */ 20172#include <X11/Xlib.h> 20173int 20174main () 20175{ 20176XrmInitialize () 20177 ; 20178 return 0; 20179} 20180_ACEOF 20181rm -f conftest.$ac_objext conftest$ac_exeext 20182if { (ac_try="$ac_link" 20183case "(($ac_try" in 20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20185 *) ac_try_echo=$ac_try;; 20186esac 20187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20188 (eval "$ac_link") 2>conftest.er1 20189 ac_status=$? 20190 grep -v '^ *+' conftest.er1 >conftest.err 20191 rm -f conftest.er1 20192 cat conftest.err >&5 20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20194 (exit $ac_status); } && 20195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20196 { (case "(($ac_try" in 20197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20198 *) ac_try_echo=$ac_try;; 20199esac 20200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20201 (eval "$ac_try") 2>&5 20202 ac_status=$? 20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20204 (exit $ac_status); }; } && 20205 { ac_try='test -s conftest$ac_exeext' 20206 { (case "(($ac_try" in 20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20208 *) ac_try_echo=$ac_try;; 20209esac 20210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20211 (eval "$ac_try") 2>&5 20212 ac_status=$? 20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20214 (exit $ac_status); }; }; then 20215 LIBS=$ac_save_LIBS 20216# We can link X programs with no special library path. 20217ac_x_libraries= 20218else 20219 echo "$as_me: failed program was:" >&5 20220sed 's/^/| /' conftest.$ac_ext >&5 20221 20222 LIBS=$ac_save_LIBS 20223for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 20224do 20225 # Don't even attempt the hair of trying to link an X program! 20226 for ac_extension in a so sl; do 20227 if test -r "$ac_dir/libXt.$ac_extension"; then 20228 ac_x_libraries=$ac_dir 20229 break 2 20230 fi 20231 done 20232done 20233fi 20234 20235rm -f core conftest.err conftest.$ac_objext \ 20236 conftest$ac_exeext conftest.$ac_ext 20237fi # $ac_x_libraries = no 20238 20239case $ac_x_includes,$ac_x_libraries in #( 20240 no,* | *,no | *\'*) 20241 # Didn't find X, or a directory has "'" in its name. 20242 ac_cv_have_x="have_x=no";; #( 20243 *) 20244 # Record where we found X for the cache. 20245 ac_cv_have_x="have_x=yes\ 20246 ac_x_includes='$ac_x_includes'\ 20247 ac_x_libraries='$ac_x_libraries'" 20248esac 20249fi 20250;; #( 20251 *) have_x=yes;; 20252 esac 20253 eval "$ac_cv_have_x" 20254fi # $with_x != no 20255 20256if test "$have_x" != yes; then 20257 { echo "$as_me:$LINENO: result: $have_x" >&5 20258echo "${ECHO_T}$have_x" >&6; } 20259 no_x=yes 20260else 20261 # If each of the values was on the command line, it overrides each guess. 20262 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 20263 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 20264 # Update the cache value to reflect the command line values. 20265 ac_cv_have_x="have_x=yes\ 20266 ac_x_includes='$x_includes'\ 20267 ac_x_libraries='$x_libraries'" 20268 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 20269echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 20270fi 20271 20272 20273 XRENDER_CFLAGS="-I$x_includes" 20274 XRENDER_LIBS="-L$x_libraries -lXrender -lXext -lX11" 20275 20276 saved_CPPFLAGS="$CPPFLAGS" 20277 CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS" 20278 20279for ac_header in X11/extensions/Xrender.h 20280do 20281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 20282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20283 { echo "$as_me:$LINENO: checking for $ac_header" >&5 20284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20286 echo $ECHO_N "(cached) $ECHO_C" >&6 20287fi 20288ac_res=`eval echo '${'$as_ac_Header'}'` 20289 { echo "$as_me:$LINENO: result: $ac_res" >&5 20290echo "${ECHO_T}$ac_res" >&6; } 20291else 20292 # Is the header compilable? 20293{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 20294echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 20295cat >conftest.$ac_ext <<_ACEOF 20296/* confdefs.h. */ 20297_ACEOF 20298cat confdefs.h >>conftest.$ac_ext 20299cat >>conftest.$ac_ext <<_ACEOF 20300/* end confdefs.h. */ 20301$ac_includes_default 20302#include <$ac_header> 20303_ACEOF 20304rm -f conftest.$ac_objext 20305if { (ac_try="$ac_compile" 20306case "(($ac_try" in 20307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20308 *) ac_try_echo=$ac_try;; 20309esac 20310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20311 (eval "$ac_compile") 2>conftest.er1 20312 ac_status=$? 20313 grep -v '^ *+' conftest.er1 >conftest.err 20314 rm -f conftest.er1 20315 cat conftest.err >&5 20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20317 (exit $ac_status); } && 20318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20319 { (case "(($ac_try" in 20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20321 *) ac_try_echo=$ac_try;; 20322esac 20323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20324 (eval "$ac_try") 2>&5 20325 ac_status=$? 20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20327 (exit $ac_status); }; } && 20328 { ac_try='test -s conftest.$ac_objext' 20329 { (case "(($ac_try" in 20330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20331 *) ac_try_echo=$ac_try;; 20332esac 20333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20334 (eval "$ac_try") 2>&5 20335 ac_status=$? 20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20337 (exit $ac_status); }; }; then 20338 ac_header_compiler=yes 20339else 20340 echo "$as_me: failed program was:" >&5 20341sed 's/^/| /' conftest.$ac_ext >&5 20342 20343 ac_header_compiler=no 20344fi 20345 20346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20347{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 20348echo "${ECHO_T}$ac_header_compiler" >&6; } 20349 20350# Is the header present? 20351{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 20352echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 20353cat >conftest.$ac_ext <<_ACEOF 20354/* confdefs.h. */ 20355_ACEOF 20356cat confdefs.h >>conftest.$ac_ext 20357cat >>conftest.$ac_ext <<_ACEOF 20358/* end confdefs.h. */ 20359#include <$ac_header> 20360_ACEOF 20361if { (ac_try="$ac_cpp conftest.$ac_ext" 20362case "(($ac_try" in 20363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20364 *) ac_try_echo=$ac_try;; 20365esac 20366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 20368 ac_status=$? 20369 grep -v '^ *+' conftest.er1 >conftest.err 20370 rm -f conftest.er1 20371 cat conftest.err >&5 20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20373 (exit $ac_status); } >/dev/null; then 20374 if test -s conftest.err; then 20375 ac_cpp_err=$ac_c_preproc_warn_flag 20376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 20377 else 20378 ac_cpp_err= 20379 fi 20380else 20381 ac_cpp_err=yes 20382fi 20383if test -z "$ac_cpp_err"; then 20384 ac_header_preproc=yes 20385else 20386 echo "$as_me: failed program was:" >&5 20387sed 's/^/| /' conftest.$ac_ext >&5 20388 20389 ac_header_preproc=no 20390fi 20391 20392rm -f conftest.err conftest.$ac_ext 20393{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 20394echo "${ECHO_T}$ac_header_preproc" >&6; } 20395 20396# So? What about this header? 20397case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 20398 yes:no: ) 20399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 20400echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 20401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 20402echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 20403 ac_header_preproc=yes 20404 ;; 20405 no:yes:* ) 20406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 20407echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 20408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 20409echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 20410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 20411echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 20412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 20413echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 20414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 20415echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 20416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 20417echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 20418 ( cat <<\_ASBOX 20419## ---------------------------------------------------------------------- ## 20420## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 20421## ---------------------------------------------------------------------- ## 20422_ASBOX 20423 ) | sed "s/^/$as_me: WARNING: /" >&2 20424 ;; 20425esac 20426{ echo "$as_me:$LINENO: checking for $ac_header" >&5 20427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 20428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 20429 echo $ECHO_N "(cached) $ECHO_C" >&6 20430else 20431 eval "$as_ac_Header=\$ac_header_preproc" 20432fi 20433ac_res=`eval echo '${'$as_ac_Header'}'` 20434 { echo "$as_me:$LINENO: result: $ac_res" >&5 20435echo "${ECHO_T}$ac_res" >&6; } 20436 20437fi 20438if test `eval echo '${'$as_ac_Header'}'` = yes; then 20439 cat >>confdefs.h <<_ACEOF 20440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 20441_ACEOF 20442 20443else 20444 { { echo "$as_me:$LINENO: error: Xrender.h not found." >&5 20445echo "$as_me: error: Xrender.h not found." >&2;} 20446 { (exit 1); exit 1; }; } 20447fi 20448 20449done 20450 20451 CPPFLAGS="$saved_CPPFLAGS" 20452 20453 saved_LIBS="$LIBS" 20454 LIBS="$LIBS $XRENDER_LIBS" 20455 20456for ac_func in XRenderFindStandardFormat 20457do 20458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20459{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20461if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20462 echo $ECHO_N "(cached) $ECHO_C" >&6 20463else 20464 cat >conftest.$ac_ext <<_ACEOF 20465/* confdefs.h. */ 20466_ACEOF 20467cat confdefs.h >>conftest.$ac_ext 20468cat >>conftest.$ac_ext <<_ACEOF 20469/* end confdefs.h. */ 20470/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20471 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20472#define $ac_func innocuous_$ac_func 20473 20474/* System header to define __stub macros and hopefully few prototypes, 20475 which can conflict with char $ac_func (); below. 20476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20477 <limits.h> exists even on freestanding compilers. */ 20478 20479#ifdef __STDC__ 20480# include <limits.h> 20481#else 20482# include <assert.h> 20483#endif 20484 20485#undef $ac_func 20486 20487/* Override any GCC internal prototype to avoid an error. 20488 Use char because int might match the return type of a GCC 20489 builtin and then its argument prototype would still apply. */ 20490#ifdef __cplusplus 20491extern "C" 20492#endif 20493char $ac_func (); 20494/* The GNU C library defines this for functions which it implements 20495 to always fail with ENOSYS. Some functions are actually named 20496 something starting with __ and the normal name is an alias. */ 20497#if defined __stub_$ac_func || defined __stub___$ac_func 20498choke me 20499#endif 20500 20501int 20502main () 20503{ 20504return $ac_func (); 20505 ; 20506 return 0; 20507} 20508_ACEOF 20509rm -f conftest.$ac_objext conftest$ac_exeext 20510if { (ac_try="$ac_link" 20511case "(($ac_try" in 20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20513 *) ac_try_echo=$ac_try;; 20514esac 20515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20516 (eval "$ac_link") 2>conftest.er1 20517 ac_status=$? 20518 grep -v '^ *+' conftest.er1 >conftest.err 20519 rm -f conftest.er1 20520 cat conftest.err >&5 20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20522 (exit $ac_status); } && 20523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20524 { (case "(($ac_try" in 20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20526 *) ac_try_echo=$ac_try;; 20527esac 20528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20529 (eval "$ac_try") 2>&5 20530 ac_status=$? 20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20532 (exit $ac_status); }; } && 20533 { ac_try='test -s conftest$ac_exeext' 20534 { (case "(($ac_try" in 20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20536 *) ac_try_echo=$ac_try;; 20537esac 20538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20539 (eval "$ac_try") 2>&5 20540 ac_status=$? 20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20542 (exit $ac_status); }; }; then 20543 eval "$as_ac_var=yes" 20544else 20545 echo "$as_me: failed program was:" >&5 20546sed 's/^/| /' conftest.$ac_ext >&5 20547 20548 eval "$as_ac_var=no" 20549fi 20550 20551rm -f core conftest.err conftest.$ac_objext \ 20552 conftest$ac_exeext conftest.$ac_ext 20553fi 20554ac_res=`eval echo '${'$as_ac_var'}'` 20555 { echo "$as_me:$LINENO: result: $ac_res" >&5 20556echo "${ECHO_T}$ac_res" >&6; } 20557if test `eval echo '${'$as_ac_var'}'` = yes; then 20558 cat >>confdefs.h <<_ACEOF 20559#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20560_ACEOF 20561 20562else 20563 { { echo "$as_me:$LINENO: error: libXrender not found or too old." >&5 20564echo "$as_me: error: libXrender not found or too old." >&2;} 20565 { (exit 1); exit 1; }; } 20566fi 20567done 20568 20569 LIBS="$saved_LIBS" 20570 ;; 20571 esac 20572 ;; 20573esac 20574 20575# Check freetype configuration 20576 20577# Check whether --with-freetype-config was given. 20578if test "${with_freetype_config+set}" = set; then 20579 withval=$with_freetype_config; freetype_config=$withval 20580else 20581 freetype_config=auto 20582fi 20583 20584 20585if test "$freetype_config" = "auto"; then 20586 20587pkg_failed=no 20588{ echo "$as_me:$LINENO: checking for FREETYPE" >&5 20589echo $ECHO_N "checking for FREETYPE... $ECHO_C" >&6; } 20590 20591if test -n "$PKG_CONFIG"; then 20592 if test -n "$FREETYPE_CFLAGS"; then 20593 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 20594 else 20595 if test -n "$PKG_CONFIG" && \ 20596 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5 20597 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 20598 ac_status=$? 20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20600 (exit $ac_status); }; then 20601 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 20602else 20603 pkg_failed=yes 20604fi 20605 fi 20606else 20607 pkg_failed=untried 20608fi 20609if test -n "$PKG_CONFIG"; then 20610 if test -n "$FREETYPE_LIBS"; then 20611 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 20612 else 20613 if test -n "$PKG_CONFIG" && \ 20614 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freetype2\"") >&5 20615 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 20616 ac_status=$? 20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20618 (exit $ac_status); }; then 20619 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 20620else 20621 pkg_failed=yes 20622fi 20623 fi 20624else 20625 pkg_failed=untried 20626fi 20627 20628 20629 20630if test $pkg_failed = yes; then 20631 20632if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20633 _pkg_short_errors_supported=yes 20634else 20635 _pkg_short_errors_supported=no 20636fi 20637 if test $_pkg_short_errors_supported = yes; then 20638 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2"` 20639 else 20640 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"` 20641 fi 20642 # Put the nasty error message in config.log where it belongs 20643 echo "$FREETYPE_PKG_ERRORS" >&5 20644 20645 freetype_config=yes 20646elif test $pkg_failed = untried; then 20647 freetype_config=yes 20648else 20649 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 20650 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 20651 { echo "$as_me:$LINENO: result: yes" >&5 20652echo "${ECHO_T}yes" >&6; } 20653 freetype_config=no 20654fi 20655fi 20656 20657if test "$freetype_config" = "yes"; then 20658 # Extract the first word of "freetype-config", so it can be a program name with args. 20659set dummy freetype-config; ac_word=$2 20660{ echo "$as_me:$LINENO: checking for $ac_word" >&5 20661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 20662if test "${ac_cv_path_ft_config+set}" = set; then 20663 echo $ECHO_N "(cached) $ECHO_C" >&6 20664else 20665 case $ft_config in 20666 [\\/]* | ?:[\\/]*) 20667 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path. 20668 ;; 20669 *) 20670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20671for as_dir in $PATH 20672do 20673 IFS=$as_save_IFS 20674 test -z "$as_dir" && as_dir=. 20675 for ac_exec_ext in '' $ac_executable_extensions; do 20676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then 20677 ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext" 20678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20679 break 2 20680 fi 20681done 20682done 20683IFS=$as_save_IFS 20684 20685 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no" 20686 ;; 20687esac 20688fi 20689ft_config=$ac_cv_path_ft_config 20690if test -n "$ft_config"; then 20691 { echo "$as_me:$LINENO: result: $ft_config" >&5 20692echo "${ECHO_T}$ft_config" >&6; } 20693else 20694 { echo "$as_me:$LINENO: result: no" >&5 20695echo "${ECHO_T}no" >&6; } 20696fi 20697 20698 20699 if test "$ft_config" = "no"; then 20700 { { echo "$as_me:$LINENO: error: You must have freetype installed; see http://www.freetype.org/" >&5 20701echo "$as_me: error: You must have freetype installed; see http://www.freetype.org/" >&2;} 20702 { (exit 1); exit 1; }; } 20703 fi 20704else 20705 ft_config="$freetype_config" 20706fi 20707 20708if test "$freetype_config" != "no"; then 20709 FREETYPE_CFLAGS="`$ft_config --cflags`" 20710 FREETYPE_LIBS="`$ft_config --libs`" 20711fi 20712 20713# Check fontconfig configuration 20714 20715pkg_failed=no 20716{ echo "$as_me:$LINENO: checking for FONTCONFIG" >&5 20717echo $ECHO_N "checking for FONTCONFIG... $ECHO_C" >&6; } 20718 20719if test -n "$PKG_CONFIG"; then 20720 if test -n "$FONTCONFIG_CFLAGS"; then 20721 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" 20722 else 20723 if test -n "$PKG_CONFIG" && \ 20724 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2\"") >&5 20725 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2") 2>&5 20726 ac_status=$? 20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20728 (exit $ac_status); }; then 20729 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2" 2>/dev/null` 20730else 20731 pkg_failed=yes 20732fi 20733 fi 20734else 20735 pkg_failed=untried 20736fi 20737if test -n "$PKG_CONFIG"; then 20738 if test -n "$FONTCONFIG_LIBS"; then 20739 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" 20740 else 20741 if test -n "$PKG_CONFIG" && \ 20742 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.2\"") >&5 20743 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.2") 2>&5 20744 ac_status=$? 20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20746 (exit $ac_status); }; then 20747 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2" 2>/dev/null` 20748else 20749 pkg_failed=yes 20750fi 20751 fi 20752else 20753 pkg_failed=untried 20754fi 20755 20756 20757 20758if test $pkg_failed = yes; then 20759 20760if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20761 _pkg_short_errors_supported=yes 20762else 20763 _pkg_short_errors_supported=no 20764fi 20765 if test $_pkg_short_errors_supported = yes; then 20766 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "fontconfig >= 2.2"` 20767 else 20768 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2"` 20769 fi 20770 # Put the nasty error message in config.log where it belongs 20771 echo "$FONTCONFIG_PKG_ERRORS" >&5 20772 20773 { { echo "$as_me:$LINENO: error: Package requirements (fontconfig >= 2.2) were not met: 20774 20775$FONTCONFIG_PKG_ERRORS 20776 20777Consider adjusting the PKG_CONFIG_PATH environment variable if you 20778installed software in a non-standard prefix. 20779 20780Alternatively, you may set the environment variables FONTCONFIG_CFLAGS 20781and FONTCONFIG_LIBS to avoid the need to call pkg-config. 20782See the pkg-config man page for more details. 20783" >&5 20784echo "$as_me: error: Package requirements (fontconfig >= 2.2) were not met: 20785 20786$FONTCONFIG_PKG_ERRORS 20787 20788Consider adjusting the PKG_CONFIG_PATH environment variable if you 20789installed software in a non-standard prefix. 20790 20791Alternatively, you may set the environment variables FONTCONFIG_CFLAGS 20792and FONTCONFIG_LIBS to avoid the need to call pkg-config. 20793See the pkg-config man page for more details. 20794" >&2;} 20795 { (exit 1); exit 1; }; } 20796elif test $pkg_failed = untried; then 20797 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 20798is in your PATH or set the PKG_CONFIG environment variable to the full 20799path to pkg-config. 20800 20801Alternatively, you may set the environment variables FONTCONFIG_CFLAGS 20802and FONTCONFIG_LIBS to avoid the need to call pkg-config. 20803See the pkg-config man page for more details. 20804 20805To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20806See \`config.log' for more details." >&5 20807echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 20808is in your PATH or set the PKG_CONFIG environment variable to the full 20809path to pkg-config. 20810 20811Alternatively, you may set the environment variables FONTCONFIG_CFLAGS 20812and FONTCONFIG_LIBS to avoid the need to call pkg-config. 20813See the pkg-config man page for more details. 20814 20815To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 20816See \`config.log' for more details." >&2;} 20817 { (exit 1); exit 1; }; } 20818else 20819 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS 20820 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS 20821 { echo "$as_me:$LINENO: result: yes" >&5 20822echo "${ECHO_T}yes" >&6; } 20823 : 20824fi 20825 20826 20827 20828 20829 20830 20831 20832 20833fontconfig_save_libs="$LIBS" 20834fontconfig_save_cflags="$CFLAGS" 20835LIBS="$LIBS $FREETYPE_LIBS" 20836CFLAGS="$CFLAGS $FREETYPE_CFLAGS" 20837 20838 20839 20840 20841 20842for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_GlyphSlot_Embolden 20843do 20844as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 20845{ echo "$as_me:$LINENO: checking for $ac_func" >&5 20846echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 20847if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 20848 echo $ECHO_N "(cached) $ECHO_C" >&6 20849else 20850 cat >conftest.$ac_ext <<_ACEOF 20851/* confdefs.h. */ 20852_ACEOF 20853cat confdefs.h >>conftest.$ac_ext 20854cat >>conftest.$ac_ext <<_ACEOF 20855/* end confdefs.h. */ 20856/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 20857 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 20858#define $ac_func innocuous_$ac_func 20859 20860/* System header to define __stub macros and hopefully few prototypes, 20861 which can conflict with char $ac_func (); below. 20862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 20863 <limits.h> exists even on freestanding compilers. */ 20864 20865#ifdef __STDC__ 20866# include <limits.h> 20867#else 20868# include <assert.h> 20869#endif 20870 20871#undef $ac_func 20872 20873/* Override any GCC internal prototype to avoid an error. 20874 Use char because int might match the return type of a GCC 20875 builtin and then its argument prototype would still apply. */ 20876#ifdef __cplusplus 20877extern "C" 20878#endif 20879char $ac_func (); 20880/* The GNU C library defines this for functions which it implements 20881 to always fail with ENOSYS. Some functions are actually named 20882 something starting with __ and the normal name is an alias. */ 20883#if defined __stub_$ac_func || defined __stub___$ac_func 20884choke me 20885#endif 20886 20887int 20888main () 20889{ 20890return $ac_func (); 20891 ; 20892 return 0; 20893} 20894_ACEOF 20895rm -f conftest.$ac_objext conftest$ac_exeext 20896if { (ac_try="$ac_link" 20897case "(($ac_try" in 20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20899 *) ac_try_echo=$ac_try;; 20900esac 20901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20902 (eval "$ac_link") 2>conftest.er1 20903 ac_status=$? 20904 grep -v '^ *+' conftest.er1 >conftest.err 20905 rm -f conftest.er1 20906 cat conftest.err >&5 20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20908 (exit $ac_status); } && 20909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20910 { (case "(($ac_try" in 20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20912 *) ac_try_echo=$ac_try;; 20913esac 20914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20915 (eval "$ac_try") 2>&5 20916 ac_status=$? 20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20918 (exit $ac_status); }; } && 20919 { ac_try='test -s conftest$ac_exeext' 20920 { (case "(($ac_try" in 20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20922 *) ac_try_echo=$ac_try;; 20923esac 20924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20925 (eval "$ac_try") 2>&5 20926 ac_status=$? 20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20928 (exit $ac_status); }; }; then 20929 eval "$as_ac_var=yes" 20930else 20931 echo "$as_me: failed program was:" >&5 20932sed 's/^/| /' conftest.$ac_ext >&5 20933 20934 eval "$as_ac_var=no" 20935fi 20936 20937rm -f core conftest.err conftest.$ac_objext \ 20938 conftest$ac_exeext conftest.$ac_ext 20939fi 20940ac_res=`eval echo '${'$as_ac_var'}'` 20941 { echo "$as_me:$LINENO: result: $ac_res" >&5 20942echo "${ECHO_T}$ac_res" >&6; } 20943if test `eval echo '${'$as_ac_var'}'` = yes; then 20944 cat >>confdefs.h <<_ACEOF 20945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 20946_ACEOF 20947 20948fi 20949done 20950 20951{ echo "$as_me:$LINENO: checking for FT_Bitmap_Size.y_ppem" >&5 20952echo $ECHO_N "checking for FT_Bitmap_Size.y_ppem... $ECHO_C" >&6; } 20953if test "${ac_cv_member_FT_Bitmap_Size_y_ppem+set}" = set; then 20954 echo $ECHO_N "(cached) $ECHO_C" >&6 20955else 20956 cat >conftest.$ac_ext <<_ACEOF 20957/* confdefs.h. */ 20958_ACEOF 20959cat confdefs.h >>conftest.$ac_ext 20960cat >>conftest.$ac_ext <<_ACEOF 20961/* end confdefs.h. */ 20962#include <ft2build.h> 20963#include FT_FREETYPE_H 20964 20965int 20966main () 20967{ 20968static FT_Bitmap_Size ac_aggr; 20969if (ac_aggr.y_ppem) 20970return 0; 20971 ; 20972 return 0; 20973} 20974_ACEOF 20975rm -f conftest.$ac_objext 20976if { (ac_try="$ac_compile" 20977case "(($ac_try" in 20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20979 *) ac_try_echo=$ac_try;; 20980esac 20981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20982 (eval "$ac_compile") 2>conftest.er1 20983 ac_status=$? 20984 grep -v '^ *+' conftest.er1 >conftest.err 20985 rm -f conftest.er1 20986 cat conftest.err >&5 20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20988 (exit $ac_status); } && 20989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 20990 { (case "(($ac_try" in 20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 20992 *) ac_try_echo=$ac_try;; 20993esac 20994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 20995 (eval "$ac_try") 2>&5 20996 ac_status=$? 20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20998 (exit $ac_status); }; } && 20999 { ac_try='test -s conftest.$ac_objext' 21000 { (case "(($ac_try" in 21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21002 *) ac_try_echo=$ac_try;; 21003esac 21004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21005 (eval "$ac_try") 2>&5 21006 ac_status=$? 21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21008 (exit $ac_status); }; }; then 21009 ac_cv_member_FT_Bitmap_Size_y_ppem=yes 21010else 21011 echo "$as_me: failed program was:" >&5 21012sed 's/^/| /' conftest.$ac_ext >&5 21013 21014 cat >conftest.$ac_ext <<_ACEOF 21015/* confdefs.h. */ 21016_ACEOF 21017cat confdefs.h >>conftest.$ac_ext 21018cat >>conftest.$ac_ext <<_ACEOF 21019/* end confdefs.h. */ 21020#include <ft2build.h> 21021#include FT_FREETYPE_H 21022 21023int 21024main () 21025{ 21026static FT_Bitmap_Size ac_aggr; 21027if (sizeof ac_aggr.y_ppem) 21028return 0; 21029 ; 21030 return 0; 21031} 21032_ACEOF 21033rm -f conftest.$ac_objext 21034if { (ac_try="$ac_compile" 21035case "(($ac_try" in 21036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21037 *) ac_try_echo=$ac_try;; 21038esac 21039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21040 (eval "$ac_compile") 2>conftest.er1 21041 ac_status=$? 21042 grep -v '^ *+' conftest.er1 >conftest.err 21043 rm -f conftest.er1 21044 cat conftest.err >&5 21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21046 (exit $ac_status); } && 21047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 21048 { (case "(($ac_try" in 21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21050 *) ac_try_echo=$ac_try;; 21051esac 21052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21053 (eval "$ac_try") 2>&5 21054 ac_status=$? 21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21056 (exit $ac_status); }; } && 21057 { ac_try='test -s conftest.$ac_objext' 21058 { (case "(($ac_try" in 21059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 21060 *) ac_try_echo=$ac_try;; 21061esac 21062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 21063 (eval "$ac_try") 2>&5 21064 ac_status=$? 21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21066 (exit $ac_status); }; }; then 21067 ac_cv_member_FT_Bitmap_Size_y_ppem=yes 21068else 21069 echo "$as_me: failed program was:" >&5 21070sed 's/^/| /' conftest.$ac_ext >&5 21071 21072 ac_cv_member_FT_Bitmap_Size_y_ppem=no 21073fi 21074 21075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21076fi 21077 21078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21079fi 21080{ echo "$as_me:$LINENO: result: $ac_cv_member_FT_Bitmap_Size_y_ppem" >&5 21081echo "${ECHO_T}$ac_cv_member_FT_Bitmap_Size_y_ppem" >&6; } 21082if test $ac_cv_member_FT_Bitmap_Size_y_ppem = yes; then 21083 HAVE_FT_BITMAP_SIZE_Y_PPEM=1 21084else 21085 HAVE_FT_BITMAP_SIZE_Y_PPEM=0 21086fi 21087 21088 21089cat >>confdefs.h <<_ACEOF 21090#define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM 21091_ACEOF 21092 21093 21094LIBS="$fontconfig_save_libs" 21095CFLAGS="$fontconfig_save_cflags" 21096 21097if test "$VERSION" = "" ; then 21098 VERSION=$PACKAGE_VERSION; 21099fi 21100 21101WARN_CFLAGS="" 21102 21103if test "x$GCC" = "xyes"; then 21104 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \ 21105 -Wmissing-prototypes -Wmissing-declarations \ 21106 -Wnested-externs -fno-strict-aliasing" 21107fi 21108 21109 21110 21111 21112# Check whether --with-release-version was given. 21113if test "${with_release_version+set}" = set; then 21114 withval=$with_release_version; RELEASE_VERSION="$withval" 21115else 21116 RELEASE_VERSION="" 21117fi 21118 21119 if test "x$RELEASE_VERSION" != "x"; then 21120 PACKAGE="$PACKAGE-$RELEASE_VERSION" 21121 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 21122 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 21123echo "$as_me: Building with package name set to $PACKAGE" >&6;} 21124 fi 21125 21126cat >>confdefs.h <<_ACEOF 21127#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\).*/\1/p'` 21128_ACEOF 21129 21130 PVM=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\)\.\([^\.]\+\).*/\2/p'` 21131 if test "x$PVM" = "x"; then 21132 PVM="0" 21133 fi 21134 21135cat >>confdefs.h <<_ACEOF 21136#define PACKAGE_VERSION_MINOR $PVM 21137_ACEOF 21138 21139 PVP=`echo $PACKAGE_VERSION | sed -ne 's/^\([^\.]\+\)\.\([^\.]\+\)\.\([^\.]\+\).*/\3/p'` 21140 if test "x$PVP" = "x"; then 21141 PVP="0" 21142 fi 21143 21144cat >>confdefs.h <<_ACEOF 21145#define PACKAGE_VERSION_PATCHLEVEL $PVP 21146_ACEOF 21147 21148 21149 21150ac_config_files="$ac_config_files Makefile xft.pc xft-config src/Makefile man/Makefile man/xft-config.1 man/Xft.3" 21151 21152cat >confcache <<\_ACEOF 21153# This file is a shell script that caches the results of configure 21154# tests run on this system so they can be shared between configure 21155# scripts and configure runs, see configure's option --config-cache. 21156# It is not useful on other systems. If it contains results you don't 21157# want to keep, you may remove or edit it. 21158# 21159# config.status only pays attention to the cache file if you give it 21160# the --recheck option to rerun configure. 21161# 21162# `ac_cv_env_foo' variables (set or unset) will be overridden when 21163# loading this file, other *unset* `ac_cv_foo' will be assigned the 21164# following values. 21165 21166_ACEOF 21167 21168# The following way of writing the cache mishandles newlines in values, 21169# but we know of no workaround that is simple, portable, and efficient. 21170# So, we kill variables containing newlines. 21171# Ultrix sh set writes to stderr and can't be redirected directly, 21172# and sets the high bit in the cache file unless we assign to the vars. 21173( 21174 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21175 eval ac_val=\$$ac_var 21176 case $ac_val in #( 21177 *${as_nl}*) 21178 case $ac_var in #( 21179 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 21180echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 21181 esac 21182 case $ac_var in #( 21183 _ | IFS | as_nl) ;; #( 21184 *) $as_unset $ac_var ;; 21185 esac ;; 21186 esac 21187 done 21188 21189 (set) 2>&1 | 21190 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21191 *${as_nl}ac_space=\ *) 21192 # `set' does not quote correctly, so add quotes (double-quote 21193 # substitution turns \\\\ into \\, and sed turns \\ into \). 21194 sed -n \ 21195 "s/'/'\\\\''/g; 21196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21197 ;; #( 21198 *) 21199 # `set' quotes correctly as required by POSIX, so do not add quotes. 21200 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21201 ;; 21202 esac | 21203 sort 21204) | 21205 sed ' 21206 /^ac_cv_env_/b end 21207 t clear 21208 :clear 21209 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21210 t end 21211 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21212 :end' >>confcache 21213if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21214 if test -w "$cache_file"; then 21215 test "x$cache_file" != "x/dev/null" && 21216 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 21217echo "$as_me: updating cache $cache_file" >&6;} 21218 cat confcache >$cache_file 21219 else 21220 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 21221echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21222 fi 21223fi 21224rm -f confcache 21225 21226test "x$prefix" = xNONE && prefix=$ac_default_prefix 21227# Let make expand exec_prefix. 21228test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21229 21230DEFS=-DHAVE_CONFIG_H 21231 21232ac_libobjs= 21233ac_ltlibobjs= 21234for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21235 # 1. Remove the extension, and $U if already installed. 21236 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21237 ac_i=`echo "$ac_i" | sed "$ac_script"` 21238 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21239 # will be set to the directory where LIBOBJS objects are built. 21240 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21241 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 21242done 21243LIBOBJS=$ac_libobjs 21244 21245LTLIBOBJS=$ac_ltlibobjs 21246 21247 21248if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 21249 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 21250Usually this means the macro was only invoked conditionally." >&5 21251echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 21252Usually this means the macro was only invoked conditionally." >&2;} 21253 { (exit 1); exit 1; }; } 21254fi 21255if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21256 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 21257Usually this means the macro was only invoked conditionally." >&5 21258echo "$as_me: error: conditional \"AMDEP\" was never defined. 21259Usually this means the macro was only invoked conditionally." >&2;} 21260 { (exit 1); exit 1; }; } 21261fi 21262if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21263 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 21264Usually this means the macro was only invoked conditionally." >&5 21265echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 21266Usually this means the macro was only invoked conditionally." >&2;} 21267 { (exit 1); exit 1; }; } 21268fi 21269if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 21270 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. 21271Usually this means the macro was only invoked conditionally." >&5 21272echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. 21273Usually this means the macro was only invoked conditionally." >&2;} 21274 { (exit 1); exit 1; }; } 21275fi 21276 21277: ${CONFIG_STATUS=./config.status} 21278ac_clean_files_save=$ac_clean_files 21279ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21280{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 21281echo "$as_me: creating $CONFIG_STATUS" >&6;} 21282cat >$CONFIG_STATUS <<_ACEOF 21283#! $SHELL 21284# Generated by $as_me. 21285# Run this file to recreate the current configuration. 21286# Compiler output produced by configure, useful for debugging 21287# configure, is in config.log if it exists. 21288 21289debug=false 21290ac_cs_recheck=false 21291ac_cs_silent=false 21292SHELL=\${CONFIG_SHELL-$SHELL} 21293_ACEOF 21294 21295cat >>$CONFIG_STATUS <<\_ACEOF 21296## --------------------- ## 21297## M4sh Initialization. ## 21298## --------------------- ## 21299 21300# Be Bourne compatible 21301if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 21302 emulate sh 21303 NULLCMD=: 21304 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 21305 # is contrary to our usage. Disable this feature. 21306 alias -g '${1+"$@"}'='"$@"' 21307 setopt NO_GLOB_SUBST 21308else 21309 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac 21310fi 21311BIN_SH=xpg4; export BIN_SH # for Tru64 21312DUALCASE=1; export DUALCASE # for MKS sh 21313 21314 21315# PATH needs CR 21316# Avoid depending upon Character Ranges. 21317as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21318as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21319as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21320as_cr_digits='0123456789' 21321as_cr_alnum=$as_cr_Letters$as_cr_digits 21322 21323# The user is always right. 21324if test "${PATH_SEPARATOR+set}" != set; then 21325 echo "#! /bin/sh" >conf$$.sh 21326 echo "exit 0" >>conf$$.sh 21327 chmod +x conf$$.sh 21328 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 21329 PATH_SEPARATOR=';' 21330 else 21331 PATH_SEPARATOR=: 21332 fi 21333 rm -f conf$$.sh 21334fi 21335 21336# Support unset when possible. 21337if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 21338 as_unset=unset 21339else 21340 as_unset=false 21341fi 21342 21343 21344# IFS 21345# We need space, tab and new line, in precisely that order. Quoting is 21346# there to prevent editors from complaining about space-tab. 21347# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21348# splitting by setting IFS to empty value.) 21349as_nl=' 21350' 21351IFS=" "" $as_nl" 21352 21353# Find who we are. Look in the path if we contain no directory separator. 21354case $0 in 21355 *[\\/]* ) as_myself=$0 ;; 21356 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21357for as_dir in $PATH 21358do 21359 IFS=$as_save_IFS 21360 test -z "$as_dir" && as_dir=. 21361 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21362done 21363IFS=$as_save_IFS 21364 21365 ;; 21366esac 21367# We did not find ourselves, most probably we were run as `sh COMMAND' 21368# in which case we are not to be found in the path. 21369if test "x$as_myself" = x; then 21370 as_myself=$0 21371fi 21372if test ! -f "$as_myself"; then 21373 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21374 { (exit 1); exit 1; } 21375fi 21376 21377# Work around bugs in pre-3.0 UWIN ksh. 21378for as_var in ENV MAIL MAILPATH 21379do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21380done 21381PS1='$ ' 21382PS2='> ' 21383PS4='+ ' 21384 21385# NLS nuisances. 21386for as_var in \ 21387 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 21388 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 21389 LC_TELEPHONE LC_TIME 21390do 21391 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 21392 eval $as_var=C; export $as_var 21393 else 21394 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 21395 fi 21396done 21397 21398# Required to use basename. 21399if expr a : '\(a\)' >/dev/null 2>&1 && 21400 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21401 as_expr=expr 21402else 21403 as_expr=false 21404fi 21405 21406if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21407 as_basename=basename 21408else 21409 as_basename=false 21410fi 21411 21412 21413# Name of the executable. 21414as_me=`$as_basename -- "$0" || 21415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21416 X"$0" : 'X\(//\)$' \| \ 21417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21418echo X/"$0" | 21419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21420 s//\1/ 21421 q 21422 } 21423 /^X\/\(\/\/\)$/{ 21424 s//\1/ 21425 q 21426 } 21427 /^X\/\(\/\).*/{ 21428 s//\1/ 21429 q 21430 } 21431 s/.*/./; q'` 21432 21433# CDPATH. 21434$as_unset CDPATH 21435 21436 21437 21438 as_lineno_1=$LINENO 21439 as_lineno_2=$LINENO 21440 test "x$as_lineno_1" != "x$as_lineno_2" && 21441 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 21442 21443 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 21444 # uniformly replaced by the line number. The first 'sed' inserts a 21445 # line-number line after each line using $LINENO; the second 'sed' 21446 # does the real work. The second script uses 'N' to pair each 21447 # line-number line with the line containing $LINENO, and appends 21448 # trailing '-' during substitution so that $LINENO is not a special 21449 # case at line end. 21450 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 21451 # scripts with optimization help from Paolo Bonzini. Blame Lee 21452 # E. McMahon (1931-1989) for sed's syntax. :-) 21453 sed -n ' 21454 p 21455 /[$]LINENO/= 21456 ' <$as_myself | 21457 sed ' 21458 s/[$]LINENO.*/&-/ 21459 t lineno 21460 b 21461 :lineno 21462 N 21463 :loop 21464 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 21465 t loop 21466 s/-\n.*// 21467 ' >$as_me.lineno && 21468 chmod +x "$as_me.lineno" || 21469 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 21470 { (exit 1); exit 1; }; } 21471 21472 # Don't try to exec as it changes $[0], causing all sort of problems 21473 # (the dirname of $[0] is not the place where we might find the 21474 # original and so on. Autoconf is especially sensitive to this). 21475 . "./$as_me.lineno" 21476 # Exit status is that of the last command. 21477 exit 21478} 21479 21480 21481if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21482 as_dirname=dirname 21483else 21484 as_dirname=false 21485fi 21486 21487ECHO_C= ECHO_N= ECHO_T= 21488case `echo -n x` in 21489-n*) 21490 case `echo 'x\c'` in 21491 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21492 *) ECHO_C='\c';; 21493 esac;; 21494*) 21495 ECHO_N='-n';; 21496esac 21497 21498if expr a : '\(a\)' >/dev/null 2>&1 && 21499 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21500 as_expr=expr 21501else 21502 as_expr=false 21503fi 21504 21505rm -f conf$$ conf$$.exe conf$$.file 21506if test -d conf$$.dir; then 21507 rm -f conf$$.dir/conf$$.file 21508else 21509 rm -f conf$$.dir 21510 mkdir conf$$.dir 21511fi 21512echo >conf$$.file 21513if ln -s conf$$.file conf$$ 2>/dev/null; then 21514 as_ln_s='ln -s' 21515 # ... but there are two gotchas: 21516 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21517 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21518 # In both cases, we have to default to `cp -p'. 21519 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21520 as_ln_s='cp -p' 21521elif ln conf$$.file conf$$ 2>/dev/null; then 21522 as_ln_s=ln 21523else 21524 as_ln_s='cp -p' 21525fi 21526rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21527rmdir conf$$.dir 2>/dev/null 21528 21529if mkdir -p . 2>/dev/null; then 21530 as_mkdir_p=: 21531else 21532 test -d ./-p && rmdir ./-p 21533 as_mkdir_p=false 21534fi 21535 21536# Find out whether ``test -x'' works. Don't use a zero-byte file, as 21537# systems may use methods other than mode bits to determine executability. 21538cat >conf$$.file <<_ASEOF 21539#! /bin/sh 21540exit 0 21541_ASEOF 21542chmod +x conf$$.file 21543if test -x conf$$.file >/dev/null 2>&1; then 21544 as_executable_p="test -x" 21545else 21546 as_executable_p=: 21547fi 21548rm -f conf$$.file 21549 21550# Sed expression to map a string onto a valid CPP name. 21551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21552 21553# Sed expression to map a string onto a valid variable name. 21554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21555 21556 21557exec 6>&1 21558 21559# Save the log message, to keep $[0] and so on meaningful, and to 21560# report actual input values of CONFIG_FILES etc. instead of their 21561# values after options handling. 21562ac_log=" 21563This file was extended by libXft $as_me 2.1.12, which was 21564generated by GNU Autoconf 2.60. Invocation command line was 21565 21566 CONFIG_FILES = $CONFIG_FILES 21567 CONFIG_HEADERS = $CONFIG_HEADERS 21568 CONFIG_LINKS = $CONFIG_LINKS 21569 CONFIG_COMMANDS = $CONFIG_COMMANDS 21570 $ $0 $@ 21571 21572on `(hostname || uname -n) 2>/dev/null | sed 1q` 21573" 21574 21575_ACEOF 21576 21577cat >>$CONFIG_STATUS <<_ACEOF 21578# Files that config.status was made for. 21579config_files="$ac_config_files" 21580config_headers="$ac_config_headers" 21581config_commands="$ac_config_commands" 21582 21583_ACEOF 21584 21585cat >>$CONFIG_STATUS <<\_ACEOF 21586ac_cs_usage="\ 21587\`$as_me' instantiates files from templates according to the 21588current configuration. 21589 21590Usage: $0 [OPTIONS] [FILE]... 21591 21592 -h, --help print this help, then exit 21593 -V, --version print version number, then exit 21594 -q, --quiet do not print progress messages 21595 -d, --debug don't remove temporary files 21596 --recheck update $as_me by reconfiguring in the same conditions 21597 --file=FILE[:TEMPLATE] 21598 instantiate the configuration file FILE 21599 --header=FILE[:TEMPLATE] 21600 instantiate the configuration header FILE 21601 21602Configuration files: 21603$config_files 21604 21605Configuration headers: 21606$config_headers 21607 21608Configuration commands: 21609$config_commands 21610 21611Report bugs to <bug-autoconf@gnu.org>." 21612 21613_ACEOF 21614cat >>$CONFIG_STATUS <<_ACEOF 21615ac_cs_version="\\ 21616libXft config.status 2.1.12 21617configured by $0, generated by GNU Autoconf 2.60, 21618 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 21619 21620Copyright (C) 2006 Free Software Foundation, Inc. 21621This config.status script is free software; the Free Software Foundation 21622gives unlimited permission to copy, distribute and modify it." 21623 21624ac_pwd='$ac_pwd' 21625srcdir='$srcdir' 21626INSTALL='$INSTALL' 21627_ACEOF 21628 21629cat >>$CONFIG_STATUS <<\_ACEOF 21630# If no file are specified by the user, then we need to provide default 21631# value. By we need to know if files were specified by the user. 21632ac_need_defaults=: 21633while test $# != 0 21634do 21635 case $1 in 21636 --*=*) 21637 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21638 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21639 ac_shift=: 21640 ;; 21641 *) 21642 ac_option=$1 21643 ac_optarg=$2 21644 ac_shift=shift 21645 ;; 21646 esac 21647 21648 case $ac_option in 21649 # Handling of the options. 21650 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21651 ac_cs_recheck=: ;; 21652 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21653 echo "$ac_cs_version"; exit ;; 21654 --debug | --debu | --deb | --de | --d | -d ) 21655 debug=: ;; 21656 --file | --fil | --fi | --f ) 21657 $ac_shift 21658 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 21659 ac_need_defaults=false;; 21660 --header | --heade | --head | --hea ) 21661 $ac_shift 21662 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 21663 ac_need_defaults=false;; 21664 --he | --h) 21665 # Conflict between --help and --header 21666 { echo "$as_me: error: ambiguous option: $1 21667Try \`$0 --help' for more information." >&2 21668 { (exit 1); exit 1; }; };; 21669 --help | --hel | -h ) 21670 echo "$ac_cs_usage"; exit ;; 21671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21672 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21673 ac_cs_silent=: ;; 21674 21675 # This is an error. 21676 -*) { echo "$as_me: error: unrecognized option: $1 21677Try \`$0 --help' for more information." >&2 21678 { (exit 1); exit 1; }; } ;; 21679 21680 *) ac_config_targets="$ac_config_targets $1" 21681 ac_need_defaults=false ;; 21682 21683 esac 21684 shift 21685done 21686 21687ac_configure_extra_args= 21688 21689if $ac_cs_silent; then 21690 exec 6>/dev/null 21691 ac_configure_extra_args="$ac_configure_extra_args --silent" 21692fi 21693 21694_ACEOF 21695cat >>$CONFIG_STATUS <<_ACEOF 21696if \$ac_cs_recheck; then 21697 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 21698 CONFIG_SHELL=$SHELL 21699 export CONFIG_SHELL 21700 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21701fi 21702 21703_ACEOF 21704cat >>$CONFIG_STATUS <<\_ACEOF 21705exec 5>>config.log 21706{ 21707 echo 21708 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21709## Running $as_me. ## 21710_ASBOX 21711 echo "$ac_log" 21712} >&5 21713 21714_ACEOF 21715cat >>$CONFIG_STATUS <<_ACEOF 21716# 21717# INIT-COMMANDS 21718# 21719AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21720 21721_ACEOF 21722 21723cat >>$CONFIG_STATUS <<\_ACEOF 21724 21725# Handling of arguments. 21726for ac_config_target in $ac_config_targets 21727do 21728 case $ac_config_target in 21729 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21730 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21731 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21732 "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;; 21733 "xft-config") CONFIG_FILES="$CONFIG_FILES xft-config" ;; 21734 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21735 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21736 "man/xft-config.1") CONFIG_FILES="$CONFIG_FILES man/xft-config.1" ;; 21737 "man/Xft.3") CONFIG_FILES="$CONFIG_FILES man/Xft.3" ;; 21738 21739 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 21740echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 21741 { (exit 1); exit 1; }; };; 21742 esac 21743done 21744 21745 21746# If the user did not use the arguments to specify the items to instantiate, 21747# then the envvar interface is used. Set only those that are not. 21748# We use the long form for the default assignment because of an extremely 21749# bizarre bug on SunOS 4.1.3. 21750if $ac_need_defaults; then 21751 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21752 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21753 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21754fi 21755 21756# Have a temporary directory for convenience. Make it in the build tree 21757# simply because there is no reason against having it here, and in addition, 21758# creating and moving files from /tmp can sometimes cause problems. 21759# Hook for its removal unless debugging. 21760# Note that there is a small window in which the directory will not be cleaned: 21761# after its creation but before its name has been assigned to `$tmp'. 21762$debug || 21763{ 21764 tmp= 21765 trap 'exit_status=$? 21766 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 21767' 0 21768 trap '{ (exit 1); exit 1; }' 1 2 13 15 21769} 21770# Create a (secure) tmp directory for tmp files. 21771 21772{ 21773 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21774 test -n "$tmp" && test -d "$tmp" 21775} || 21776{ 21777 tmp=./conf$$-$RANDOM 21778 (umask 077 && mkdir "$tmp") 21779} || 21780{ 21781 echo "$me: cannot create a temporary directory in ." >&2 21782 { (exit 1); exit 1; } 21783} 21784 21785# 21786# Set up the sed scripts for CONFIG_FILES section. 21787# 21788 21789# No need to generate the scripts if there are no CONFIG_FILES. 21790# This happens for instance when ./config.status config.h 21791if test -n "$CONFIG_FILES"; then 21792 21793_ACEOF 21794 21795 21796 21797ac_delim='%!_!# ' 21798for ac_last_try in false false false false false :; do 21799 cat >conf$$subs.sed <<_ACEOF 21800SHELL!$SHELL$ac_delim 21801PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 21802PACKAGE_NAME!$PACKAGE_NAME$ac_delim 21803PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 21804PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 21805PACKAGE_STRING!$PACKAGE_STRING$ac_delim 21806PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 21807exec_prefix!$exec_prefix$ac_delim 21808prefix!$prefix$ac_delim 21809program_transform_name!$program_transform_name$ac_delim 21810bindir!$bindir$ac_delim 21811sbindir!$sbindir$ac_delim 21812libexecdir!$libexecdir$ac_delim 21813datarootdir!$datarootdir$ac_delim 21814datadir!$datadir$ac_delim 21815sysconfdir!$sysconfdir$ac_delim 21816sharedstatedir!$sharedstatedir$ac_delim 21817localstatedir!$localstatedir$ac_delim 21818includedir!$includedir$ac_delim 21819oldincludedir!$oldincludedir$ac_delim 21820docdir!$docdir$ac_delim 21821infodir!$infodir$ac_delim 21822htmldir!$htmldir$ac_delim 21823dvidir!$dvidir$ac_delim 21824pdfdir!$pdfdir$ac_delim 21825psdir!$psdir$ac_delim 21826libdir!$libdir$ac_delim 21827localedir!$localedir$ac_delim 21828mandir!$mandir$ac_delim 21829DEFS!$DEFS$ac_delim 21830ECHO_C!$ECHO_C$ac_delim 21831ECHO_N!$ECHO_N$ac_delim 21832ECHO_T!$ECHO_T$ac_delim 21833LIBS!$LIBS$ac_delim 21834build_alias!$build_alias$ac_delim 21835host_alias!$host_alias$ac_delim 21836target_alias!$target_alias$ac_delim 21837INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 21838INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 21839INSTALL_DATA!$INSTALL_DATA$ac_delim 21840CYGPATH_W!$CYGPATH_W$ac_delim 21841PACKAGE!$PACKAGE$ac_delim 21842VERSION!$VERSION$ac_delim 21843ACLOCAL!$ACLOCAL$ac_delim 21844AUTOCONF!$AUTOCONF$ac_delim 21845AUTOMAKE!$AUTOMAKE$ac_delim 21846AUTOHEADER!$AUTOHEADER$ac_delim 21847MAKEINFO!$MAKEINFO$ac_delim 21848install_sh!$install_sh$ac_delim 21849STRIP!$STRIP$ac_delim 21850INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim 21851mkdir_p!$mkdir_p$ac_delim 21852AWK!$AWK$ac_delim 21853SET_MAKE!$SET_MAKE$ac_delim 21854am__leading_dot!$am__leading_dot$ac_delim 21855AMTAR!$AMTAR$ac_delim 21856am__tar!$am__tar$ac_delim 21857am__untar!$am__untar$ac_delim 21858AMSHOWCMDSAT!$AMSHOWCMDSAT$ac_delim 21859AMDEPSHOWCMDSAT!$AMDEPSHOWCMDSAT$ac_delim 21860AMPRETTYECHO!$AMPRETTYECHO$ac_delim 21861AMCMDECHO!$AMCMDECHO$ac_delim 21862LT_QUIET!$LT_QUIET$ac_delim 21863MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim 21864MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim 21865MAINT!$MAINT$ac_delim 21866CC!$CC$ac_delim 21867CFLAGS!$CFLAGS$ac_delim 21868LDFLAGS!$LDFLAGS$ac_delim 21869CPPFLAGS!$CPPFLAGS$ac_delim 21870ac_ct_CC!$ac_ct_CC$ac_delim 21871EXEEXT!$EXEEXT$ac_delim 21872OBJEXT!$OBJEXT$ac_delim 21873DEPDIR!$DEPDIR$ac_delim 21874am__include!$am__include$ac_delim 21875am__quote!$am__quote$ac_delim 21876AMDEP_TRUE!$AMDEP_TRUE$ac_delim 21877AMDEP_FALSE!$AMDEP_FALSE$ac_delim 21878AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim 21879CCDEPMODE!$CCDEPMODE$ac_delim 21880am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim 21881am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim 21882build!$build$ac_delim 21883build_cpu!$build_cpu$ac_delim 21884build_vendor!$build_vendor$ac_delim 21885build_os!$build_os$ac_delim 21886host!$host$ac_delim 21887host_cpu!$host_cpu$ac_delim 21888host_vendor!$host_vendor$ac_delim 21889host_os!$host_os$ac_delim 21890GREP!$GREP$ac_delim 21891EGREP!$EGREP$ac_delim 21892LN_S!$LN_S$ac_delim 21893ECHO!$ECHO$ac_delim 21894AR!$AR$ac_delim 21895RANLIB!$RANLIB$ac_delim 21896CPP!$CPP$ac_delim 21897_ACEOF 21898 21899 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 21900 break 21901 elif $ac_last_try; then 21902 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21903echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21904 { (exit 1); exit 1; }; } 21905 else 21906 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21907 fi 21908done 21909 21910ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21911if test -n "$ac_eof"; then 21912 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21913 ac_eof=`expr $ac_eof + 1` 21914fi 21915 21916cat >>$CONFIG_STATUS <<_ACEOF 21917cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 21918/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21919_ACEOF 21920sed ' 21921s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21922s/^/s,@/; s/!/@,|#_!!_#|/ 21923:n 21924t n 21925s/'"$ac_delim"'$/,g/; t 21926s/$/\\/; p 21927N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21928' >>$CONFIG_STATUS <conf$$subs.sed 21929rm -f conf$$subs.sed 21930cat >>$CONFIG_STATUS <<_ACEOF 21931CEOF$ac_eof 21932_ACEOF 21933 21934 21935ac_delim='%!_!# ' 21936for ac_last_try in false false false false false :; do 21937 cat >conf$$subs.sed <<_ACEOF 21938CXX!$CXX$ac_delim 21939CXXFLAGS!$CXXFLAGS$ac_delim 21940ac_ct_CXX!$ac_ct_CXX$ac_delim 21941CXXDEPMODE!$CXXDEPMODE$ac_delim 21942am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim 21943am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim 21944CXXCPP!$CXXCPP$ac_delim 21945F77!$F77$ac_delim 21946FFLAGS!$FFLAGS$ac_delim 21947ac_ct_F77!$ac_ct_F77$ac_delim 21948LIBTOOL!$LIBTOOL$ac_delim 21949PKG_CONFIG!$PKG_CONFIG$ac_delim 21950XRENDER_CFLAGS!$XRENDER_CFLAGS$ac_delim 21951XRENDER_LIBS!$XRENDER_LIBS$ac_delim 21952XMKMF!$XMKMF$ac_delim 21953FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim 21954FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim 21955ft_config!$ft_config$ac_delim 21956FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim 21957FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim 21958WARN_CFLAGS!$WARN_CFLAGS$ac_delim 21959LIBOBJS!$LIBOBJS$ac_delim 21960LTLIBOBJS!$LTLIBOBJS$ac_delim 21961_ACEOF 21962 21963 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then 21964 break 21965 elif $ac_last_try; then 21966 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 21967echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 21968 { (exit 1); exit 1; }; } 21969 else 21970 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21971 fi 21972done 21973 21974ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 21975if test -n "$ac_eof"; then 21976 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 21977 ac_eof=`expr $ac_eof + 1` 21978fi 21979 21980cat >>$CONFIG_STATUS <<_ACEOF 21981cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 21982/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 21983_ACEOF 21984sed ' 21985s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 21986s/^/s,@/; s/!/@,|#_!!_#|/ 21987:n 21988t n 21989s/'"$ac_delim"'$/,g/; t 21990s/$/\\/; p 21991N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 21992' >>$CONFIG_STATUS <conf$$subs.sed 21993rm -f conf$$subs.sed 21994cat >>$CONFIG_STATUS <<_ACEOF 21995:end 21996s/|#_!!_#|//g 21997CEOF$ac_eof 21998_ACEOF 21999 22000 22001# VPATH may cause trouble with some makes, so we remove $(srcdir), 22002# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 22003# trailing colons and then remove the whole line if VPATH becomes empty 22004# (actually we leave an empty line to preserve line numbers). 22005if test "x$srcdir" = x.; then 22006 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 22007s/:*\$(srcdir):*/:/ 22008s/:*\${srcdir}:*/:/ 22009s/:*@srcdir@:*/:/ 22010s/^\([^=]*=[ ]*\):*/\1/ 22011s/:*$// 22012s/^[^=]*=[ ]*$// 22013}' 22014fi 22015 22016cat >>$CONFIG_STATUS <<\_ACEOF 22017fi # test -n "$CONFIG_FILES" 22018 22019 22020for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS 22021do 22022 case $ac_tag in 22023 :[FHLC]) ac_mode=$ac_tag; continue;; 22024 esac 22025 case $ac_mode$ac_tag in 22026 :[FHL]*:*);; 22027 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 22028echo "$as_me: error: Invalid tag $ac_tag." >&2;} 22029 { (exit 1); exit 1; }; };; 22030 :[FH]-) ac_tag=-:-;; 22031 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22032 esac 22033 ac_save_IFS=$IFS 22034 IFS=: 22035 set x $ac_tag 22036 IFS=$ac_save_IFS 22037 shift 22038 ac_file=$1 22039 shift 22040 22041 case $ac_mode in 22042 :L) ac_source=$1;; 22043 :[FH]) 22044 ac_file_inputs= 22045 for ac_f 22046 do 22047 case $ac_f in 22048 -) ac_f="$tmp/stdin";; 22049 *) # Look for the file first in the build tree, then in the source tree 22050 # (if the path is not absolute). The absolute path cannot be DOS-style, 22051 # because $ac_f cannot contain `:'. 22052 test -f "$ac_f" || 22053 case $ac_f in 22054 [\\/$]*) false;; 22055 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22056 esac || 22057 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 22058echo "$as_me: error: cannot find input file: $ac_f" >&2;} 22059 { (exit 1); exit 1; }; };; 22060 esac 22061 ac_file_inputs="$ac_file_inputs $ac_f" 22062 done 22063 22064 # Let's still pretend it is `configure' which instantiates (i.e., don't 22065 # use $as_me), people would be surprised to read: 22066 # /* config.h. Generated by config.status. */ 22067 configure_input="Generated from "`IFS=: 22068 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 22069 if test x"$ac_file" != x-; then 22070 configure_input="$ac_file. $configure_input" 22071 { echo "$as_me:$LINENO: creating $ac_file" >&5 22072echo "$as_me: creating $ac_file" >&6;} 22073 fi 22074 22075 case $ac_tag in 22076 *:-:* | *:-) cat >"$tmp/stdin";; 22077 esac 22078 ;; 22079 esac 22080 22081 ac_dir=`$as_dirname -- "$ac_file" || 22082$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22083 X"$ac_file" : 'X\(//\)[^/]' \| \ 22084 X"$ac_file" : 'X\(//\)$' \| \ 22085 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22086echo X"$ac_file" | 22087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22088 s//\1/ 22089 q 22090 } 22091 /^X\(\/\/\)[^/].*/{ 22092 s//\1/ 22093 q 22094 } 22095 /^X\(\/\/\)$/{ 22096 s//\1/ 22097 q 22098 } 22099 /^X\(\/\).*/{ 22100 s//\1/ 22101 q 22102 } 22103 s/.*/./; q'` 22104 { as_dir="$ac_dir" 22105 case $as_dir in #( 22106 -*) as_dir=./$as_dir;; 22107 esac 22108 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22109 as_dirs= 22110 while :; do 22111 case $as_dir in #( 22112 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22113 *) as_qdir=$as_dir;; 22114 esac 22115 as_dirs="'$as_qdir' $as_dirs" 22116 as_dir=`$as_dirname -- "$as_dir" || 22117$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22118 X"$as_dir" : 'X\(//\)[^/]' \| \ 22119 X"$as_dir" : 'X\(//\)$' \| \ 22120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22121echo X"$as_dir" | 22122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22123 s//\1/ 22124 q 22125 } 22126 /^X\(\/\/\)[^/].*/{ 22127 s//\1/ 22128 q 22129 } 22130 /^X\(\/\/\)$/{ 22131 s//\1/ 22132 q 22133 } 22134 /^X\(\/\).*/{ 22135 s//\1/ 22136 q 22137 } 22138 s/.*/./; q'` 22139 test -d "$as_dir" && break 22140 done 22141 test -z "$as_dirs" || eval "mkdir $as_dirs" 22142 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22143echo "$as_me: error: cannot create directory $as_dir" >&2;} 22144 { (exit 1); exit 1; }; }; } 22145 ac_builddir=. 22146 22147case "$ac_dir" in 22148.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22149*) 22150 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 22151 # A ".." for each directory in $ac_dir_suffix. 22152 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 22153 case $ac_top_builddir_sub in 22154 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22155 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22156 esac ;; 22157esac 22158ac_abs_top_builddir=$ac_pwd 22159ac_abs_builddir=$ac_pwd$ac_dir_suffix 22160# for backward compatibility: 22161ac_top_builddir=$ac_top_build_prefix 22162 22163case $srcdir in 22164 .) # We are building in place. 22165 ac_srcdir=. 22166 ac_top_srcdir=$ac_top_builddir_sub 22167 ac_abs_top_srcdir=$ac_pwd ;; 22168 [\\/]* | ?:[\\/]* ) # Absolute name. 22169 ac_srcdir=$srcdir$ac_dir_suffix; 22170 ac_top_srcdir=$srcdir 22171 ac_abs_top_srcdir=$srcdir ;; 22172 *) # Relative name. 22173 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22174 ac_top_srcdir=$ac_top_build_prefix$srcdir 22175 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22176esac 22177ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22178 22179 22180 case $ac_mode in 22181 :F) 22182 # 22183 # CONFIG_FILE 22184 # 22185 22186 case $INSTALL in 22187 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22188 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22189 esac 22190_ACEOF 22191 22192cat >>$CONFIG_STATUS <<\_ACEOF 22193# If the template does not know about datarootdir, expand it. 22194# FIXME: This hack should be removed a few years after 2.60. 22195ac_datarootdir_hack=; ac_datarootdir_seen= 22196 22197case `sed -n '/datarootdir/ { 22198 p 22199 q 22200} 22201/@datadir@/p 22202/@docdir@/p 22203/@infodir@/p 22204/@localedir@/p 22205/@mandir@/p 22206' $ac_file_inputs` in 22207*datarootdir*) ac_datarootdir_seen=yes;; 22208*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22209 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22210echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22211_ACEOF 22212cat >>$CONFIG_STATUS <<_ACEOF 22213 ac_datarootdir_hack=' 22214 s&@datadir@&$datadir&g 22215 s&@docdir@&$docdir&g 22216 s&@infodir@&$infodir&g 22217 s&@localedir@&$localedir&g 22218 s&@mandir@&$mandir&g 22219 s&\\\${datarootdir}&$datarootdir&g' ;; 22220esac 22221_ACEOF 22222 22223# Neutralize VPATH when `$srcdir' = `.'. 22224# Shell code in configure.ac might set extrasub. 22225# FIXME: do we really want to maintain this feature? 22226cat >>$CONFIG_STATUS <<_ACEOF 22227 sed "$ac_vpsub 22228$extrasub 22229_ACEOF 22230cat >>$CONFIG_STATUS <<\_ACEOF 22231:t 22232/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22233s&@configure_input@&$configure_input&;t t 22234s&@top_builddir@&$ac_top_builddir_sub&;t t 22235s&@srcdir@&$ac_srcdir&;t t 22236s&@abs_srcdir@&$ac_abs_srcdir&;t t 22237s&@top_srcdir@&$ac_top_srcdir&;t t 22238s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22239s&@builddir@&$ac_builddir&;t t 22240s&@abs_builddir@&$ac_abs_builddir&;t t 22241s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22242s&@INSTALL@&$ac_INSTALL&;t t 22243$ac_datarootdir_hack 22244" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 22245 22246test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22247 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 22248 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 22249 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22250which seems to be undefined. Please make sure it is defined." >&5 22251echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22252which seems to be undefined. Please make sure it is defined." >&2;} 22253 22254 rm -f "$tmp/stdin" 22255 case $ac_file in 22256 -) cat "$tmp/out"; rm -f "$tmp/out";; 22257 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 22258 esac 22259 ;; 22260 :H) 22261 # 22262 # CONFIG_HEADER 22263 # 22264_ACEOF 22265 22266# Transform confdefs.h into a sed script `conftest.defines', that 22267# substitutes the proper values into config.h.in to produce config.h. 22268rm -f conftest.defines conftest.tail 22269# First, append a space to every undef/define line, to ease matching. 22270echo 's/$/ /' >conftest.defines 22271# Then, protect against being on the right side of a sed subst, or in 22272# an unquoted here document, in config.status. If some macros were 22273# called several times there might be several #defines for the same 22274# symbol, which is useless. But do not sort them, since the last 22275# AC_DEFINE must be honored. 22276ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22277# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 22278# NAME is the cpp macro being defined, VALUE is the value it is being given. 22279# PARAMS is the parameter list in the macro definition--in most cases, it's 22280# just an empty string. 22281ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 22282ac_dB='\\)[ (].*,\\1define\\2' 22283ac_dC=' ' 22284ac_dD=' ,' 22285 22286uniq confdefs.h | 22287 sed -n ' 22288 t rset 22289 :rset 22290 s/^[ ]*#[ ]*define[ ][ ]*// 22291 t ok 22292 d 22293 :ok 22294 s/[\\&,]/\\&/g 22295 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 22296 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 22297 ' >>conftest.defines 22298 22299# Remove the space that was appended to ease matching. 22300# Then replace #undef with comments. This is necessary, for 22301# example, in the case of _POSIX_SOURCE, which is predefined and required 22302# on some systems where configure will not decide to define it. 22303# (The regexp can be short, since the line contains either #define or #undef.) 22304echo 's/ $// 22305s,^[ #]*u.*,/* & */,' >>conftest.defines 22306 22307# Break up conftest.defines: 22308ac_max_sed_lines=50 22309 22310# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 22311# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 22312# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 22313# et cetera. 22314ac_in='$ac_file_inputs' 22315ac_out='"$tmp/out1"' 22316ac_nxt='"$tmp/out2"' 22317 22318while : 22319do 22320 # Write a here document: 22321 cat >>$CONFIG_STATUS <<_ACEOF 22322 # First, check the format of the line: 22323 cat >"\$tmp/defines.sed" <<\\CEOF 22324/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 22325/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 22326b 22327:def 22328_ACEOF 22329 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 22330 echo 'CEOF 22331 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 22332 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 22333 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 22334 grep . conftest.tail >/dev/null || break 22335 rm -f conftest.defines 22336 mv conftest.tail conftest.defines 22337done 22338rm -f conftest.defines conftest.tail 22339 22340echo "ac_result=$ac_in" >>$CONFIG_STATUS 22341cat >>$CONFIG_STATUS <<\_ACEOF 22342 if test x"$ac_file" != x-; then 22343 echo "/* $configure_input */" >"$tmp/config.h" 22344 cat "$ac_result" >>"$tmp/config.h" 22345 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 22346 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 22347echo "$as_me: $ac_file is unchanged" >&6;} 22348 else 22349 rm -f $ac_file 22350 mv "$tmp/config.h" $ac_file 22351 fi 22352 else 22353 echo "/* $configure_input */" 22354 cat "$ac_result" 22355 fi 22356 rm -f "$tmp/out12" 22357# Compute $ac_file's index in $config_headers. 22358_am_stamp_count=1 22359for _am_header in $config_headers :; do 22360 case $_am_header in 22361 $ac_file | $ac_file:* ) 22362 break ;; 22363 * ) 22364 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22365 esac 22366done 22367echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || 22368$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22369 X$ac_file : 'X\(//\)[^/]' \| \ 22370 X$ac_file : 'X\(//\)$' \| \ 22371 X$ac_file : 'X\(/\)' \| . 2>/dev/null || 22372echo X$ac_file | 22373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22374 s//\1/ 22375 q 22376 } 22377 /^X\(\/\/\)[^/].*/{ 22378 s//\1/ 22379 q 22380 } 22381 /^X\(\/\/\)$/{ 22382 s//\1/ 22383 q 22384 } 22385 /^X\(\/\).*/{ 22386 s//\1/ 22387 q 22388 } 22389 s/.*/./; q'`/stamp-h$_am_stamp_count 22390 ;; 22391 22392 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 22393echo "$as_me: executing $ac_file commands" >&6;} 22394 ;; 22395 esac 22396 22397 22398 case $ac_file$ac_mode in 22399 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 22400 # Strip MF so we end up with the name of the file. 22401 mf=`echo "$mf" | sed -e 's/:.*$//'` 22402 # Check whether this is an Automake generated Makefile or not. 22403 # We used to match only the files named `Makefile.in', but 22404 # some people rename them; so instead we look at the file content. 22405 # Grep'ing the first line is not enough: some people post-process 22406 # each Makefile.in and add a new line on top of each file to say so. 22407 # So let's grep whole file. 22408 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 22409 dirpart=`$as_dirname -- "$mf" || 22410$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22411 X"$mf" : 'X\(//\)[^/]' \| \ 22412 X"$mf" : 'X\(//\)$' \| \ 22413 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22414echo X"$mf" | 22415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22416 s//\1/ 22417 q 22418 } 22419 /^X\(\/\/\)[^/].*/{ 22420 s//\1/ 22421 q 22422 } 22423 /^X\(\/\/\)$/{ 22424 s//\1/ 22425 q 22426 } 22427 /^X\(\/\).*/{ 22428 s//\1/ 22429 q 22430 } 22431 s/.*/./; q'` 22432 else 22433 continue 22434 fi 22435 # Extract the definition of DEPDIR, am__include, and am__quote 22436 # from the Makefile without running `make'. 22437 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22438 test -z "$DEPDIR" && continue 22439 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22440 test -z "am__include" && continue 22441 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22442 # When using ansi2knr, U may be empty or an underscore; expand it 22443 U=`sed -n 's/^U = //p' < "$mf"` 22444 # Find all dependency output files, they are included files with 22445 # $(DEPDIR) in their names. We invoke sed twice because it is the 22446 # simplest approach to changing $(DEPDIR) to its actual value in the 22447 # expansion. 22448 for file in `sed -n " 22449 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22450 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 22451 # Make sure the directory exists. 22452 test -f "$dirpart/$file" && continue 22453 fdir=`$as_dirname -- "$file" || 22454$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22455 X"$file" : 'X\(//\)[^/]' \| \ 22456 X"$file" : 'X\(//\)$' \| \ 22457 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22458echo X"$file" | 22459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22460 s//\1/ 22461 q 22462 } 22463 /^X\(\/\/\)[^/].*/{ 22464 s//\1/ 22465 q 22466 } 22467 /^X\(\/\/\)$/{ 22468 s//\1/ 22469 q 22470 } 22471 /^X\(\/\).*/{ 22472 s//\1/ 22473 q 22474 } 22475 s/.*/./; q'` 22476 { as_dir=$dirpart/$fdir 22477 case $as_dir in #( 22478 -*) as_dir=./$as_dir;; 22479 esac 22480 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 22481 as_dirs= 22482 while :; do 22483 case $as_dir in #( 22484 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 22485 *) as_qdir=$as_dir;; 22486 esac 22487 as_dirs="'$as_qdir' $as_dirs" 22488 as_dir=`$as_dirname -- "$as_dir" || 22489$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22490 X"$as_dir" : 'X\(//\)[^/]' \| \ 22491 X"$as_dir" : 'X\(//\)$' \| \ 22492 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22493echo X"$as_dir" | 22494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22495 s//\1/ 22496 q 22497 } 22498 /^X\(\/\/\)[^/].*/{ 22499 s//\1/ 22500 q 22501 } 22502 /^X\(\/\/\)$/{ 22503 s//\1/ 22504 q 22505 } 22506 /^X\(\/\).*/{ 22507 s//\1/ 22508 q 22509 } 22510 s/.*/./; q'` 22511 test -d "$as_dir" && break 22512 done 22513 test -z "$as_dirs" || eval "mkdir $as_dirs" 22514 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 22515echo "$as_me: error: cannot create directory $as_dir" >&2;} 22516 { (exit 1); exit 1; }; }; } 22517 # echo "creating $dirpart/$file" 22518 echo '# dummy' > "$dirpart/$file" 22519 done 22520done 22521 ;; 22522 22523 esac 22524done # for ac_tag 22525 22526 22527{ (exit 0); exit 0; } 22528_ACEOF 22529chmod +x $CONFIG_STATUS 22530ac_clean_files=$ac_clean_files_save 22531 22532 22533# configure is writing to config.log, and then calls config.status. 22534# config.status does its own redirection, appending to config.log. 22535# Unfortunately, on DOS this fails, as config.log is still kept open 22536# by configure, so config.status won't be able to write to it; its 22537# output is simply discarded. So we exec the FD to /dev/null, 22538# effectively closing config.log, so it can be properly (re)opened and 22539# appended to by config.status. When coming back to configure, we 22540# need to make the FD available again. 22541if test "$no_create" != yes; then 22542 ac_cs_success=: 22543 ac_config_status_args= 22544 test "$silent" = yes && 22545 ac_config_status_args="$ac_config_status_args --quiet" 22546 exec 5>/dev/null 22547 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22548 exec 5>>config.log 22549 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22550 # would make configure fail if this is the last instruction. 22551 $ac_cs_success || { (exit 1); exit 1; } 22552fi 22553 22554